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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d535c9facac2a88bbdba43ead727297eba143d7d | 101,565 | ex | Elixir | clients/retail/lib/google_api/retail/v2/api/projects.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/retail/lib/google_api/retail/v2/api/projects.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/retail/lib/google_api/retail/v2/api/projects.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 50.379464 | 1,513 | 0.636735 |
d535dbeadf0abbf8c55e55e11854651679093a18 | 13,756 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/entitlements.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/entitlements.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/entitlements.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.872464 | 282 | 0.6664 |
d535f7dd0d21ee1d0df3da377cdd9dd3d0165d94 | 2,927 | exs | Elixir | apps/artemis_web/test/artemis_web/browser/feature_page_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_web/test/artemis_web/browser/feature_page_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/test/artemis_web/browser/feature_page_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisWeb.FeaturePageTest do
use ArtemisWeb.ConnCase
use ExUnit.Case
use Hound.Helpers
import Artemis.Factories
import ArtemisWeb.BrowserHelpers
import ArtemisWeb.Router.Helpers
@moduletag :browser
@url feature_url(ArtemisWeb.Endpoint, :index)
hound_session()
describe "authentication"... | 19.777027 | 74 | 0.616672 |
d5361fac30306451dd225a7b0673a0619b6f4baf | 168 | ex | Elixir | elixir-match/app/lib/match/hash.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/lib/match/hash.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/lib/match/hash.ex | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule Match.Hash do
def hmac(key, value, length \\ 25) do
:crypto.hmac(:sha256, key, value)
|> Base.encode16
|> String.slice(0, length)
end
end
| 21 | 39 | 0.625 |
d53653eb43ebd146c1d99bbc0fd8be480459e0a0 | 75 | ex | Elixir | lib/sacastats/mailer.ex | Bentheburrito/sacastats | 4ffcc165b67f03830f4fbf3516ab7ca7a90b0950 | [
"MIT"
] | null | null | null | lib/sacastats/mailer.ex | Bentheburrito/sacastats | 4ffcc165b67f03830f4fbf3516ab7ca7a90b0950 | [
"MIT"
] | 38 | 2021-07-09T06:13:30.000Z | 2022-03-30T20:22:43.000Z | lib/sacastats/mailer.ex | Bentheburrito/sacastats | 4ffcc165b67f03830f4fbf3516ab7ca7a90b0950 | [
"MIT"
] | null | null | null | defmodule SacaStats.Mailer do
use Swoosh.Mailer, otp_app: :sacastats
end
| 18.75 | 40 | 0.8 |
d53655df8832bf95131ab46f24608d98772b06e6 | 2,919 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/android_test.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/android_test.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/android_test.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... | 44.907692 | 164 | 0.751285 |
d5365d7aac77c8208fa1f6a22f8e707a85a9f3c8 | 14 | exs | Elixir | test/patterns/import-exlixir-extension/test.exs | lwchkg/gitbook-plugin-include-codeblock | 759082521265dca485b38fb60558e695211c787c | [
"BSD-2-Clause"
] | 39 | 2015-08-29T16:25:31.000Z | 2021-11-08T01:06:38.000Z | test/patterns/import-exlixir-extension/test.exs | lwchkg/gitbook-plugin-include-codeblock | 759082521265dca485b38fb60558e695211c787c | [
"BSD-2-Clause"
] | 62 | 2015-09-04T00:34:30.000Z | 2022-01-09T10:20:03.000Z | test/patterns/import-exlixir-extension/test.exs | lwchkg/gitbook-plugin-include-codeblock | 759082521265dca485b38fb60558e695211c787c | [
"BSD-2-Clause"
] | 32 | 2015-09-16T01:55:50.000Z | 2022-01-26T09:38:38.000Z | IO.puts "test" | 14 | 14 | 0.714286 |
d53665a9a34102bf3b6184edfca840a6eee6f65d | 915 | ex | Elixir | lib/senti/presentations/session.ex | jeepers3327/senti | 2e346759d8a8704f11364a835b6b9cd00a52c640 | [
"MIT"
] | null | null | null | lib/senti/presentations/session.ex | jeepers3327/senti | 2e346759d8a8704f11364a835b6b9cd00a52c640 | [
"MIT"
] | null | null | null | lib/senti/presentations/session.ex | jeepers3327/senti | 2e346759d8a8704f11364a835b6b9cd00a52c640 | [
"MIT"
] | null | null | null | defmodule Senti.Presentations.Session do
use Ecto.Schema
import Ecto.Changeset
alias Senti.Presentations.{Presentation, Response}
schema "sessions" do
field :access_code, :string
field :status, :string, default: "ready"
has_many :responses, Response
belongs_to :presentation, Presentation
... | 22.875 | 68 | 0.686339 |
d536696af171f60fb0d59c565afaaa10a78b7990 | 8,572 | ex | Elixir | lib/admin/default/player_data_management.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | 1 | 2021-12-21T14:22:12.000Z | 2021-12-21T14:22:12.000Z | lib/admin/default/player_data_management.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | lib/admin/default/player_data_management.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | defmodule PlayfabEx.Admin.Default.PlayerDataManagement do
@doc """
Adds a new player statistic configuration to the title, optionally allowing the developer to specify a reset interval and an aggregation method.
@link https://api.playfab.com/documentation/admin/method/CreatePlayerStatisticDefinition
"""
@sp... | 36.7897 | 171 | 0.736118 |
d5367b91a7d3dc03928f2cb14d3fdd8ce54eaa43 | 4,874 | ex | Elixir | lib/postoffice/messaging.ex | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | null | null | null | lib/postoffice/messaging.ex | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | null | null | null | lib/postoffice/messaging.ex | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | null | null | null | defmodule Postoffice.Messaging do
@moduledoc """
The Messaging context.
"""
import Ecto.Query, warn: false
alias Postoffice.Repo
alias Postoffice.Messaging.Message
alias Postoffice.Messaging.Publisher
alias Postoffice.Messaging.PublisherSuccess
alias Postoffice.Messaging.PublisherFailures
alias P... | 22.357798 | 90 | 0.647723 |
d5368e0ca6dc27af3128b5d04a9d97416dbe23d9 | 2,187 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_list_select.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_list_select.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_list_select.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.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... | 33.646154 | 161 | 0.726109 |
d536a13717ad79c1b3448db5e7bcdb78821a5a31 | 464 | ex | Elixir | lib/rasa_sdk/model/template_description.ex | henry-hz/rasa-sdk-elixir | 575a57a32b322eb5647bac67bd88e0e03f36685e | [
"Apache-2.0"
] | 3 | 2020-06-18T11:26:33.000Z | 2021-04-19T18:05:42.000Z | lib/rasa_sdk/model/template_description.ex | henry-hz/rasa-sdk-elixir | 575a57a32b322eb5647bac67bd88e0e03f36685e | [
"Apache-2.0"
] | null | null | null | lib/rasa_sdk/model/template_description.ex | henry-hz/rasa-sdk-elixir | 575a57a32b322eb5647bac67bd88e0e03f36685e | [
"Apache-2.0"
] | 3 | 2020-06-15T22:16:56.000Z | 2021-02-04T01:10:35.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 RasaSdk.Model.TemplateDescription do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:text
]
@type t :: %__MODULE__{
... | 17.846154 | 91 | 0.698276 |
d536bd54952cd54bfefcf550a56515ce40017daa | 21,696 | ex | Elixir | lib/codes/codes_v04.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v04.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_v04.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_V04 do
alias IcdCode.ICDCode
def _V0400XA do
%ICDCode{full_code: "V0400XA",
category_code: "V04",
short_code: "00XA",
full_name: "Pedestrian on foot injured in collision with heavy transport vehicle or bus in nontraffic accident, initial encounter",
... | 65.546828 | 190 | 0.728107 |
d536e494894983ac3981333c97f7e00a5eb4ffc7 | 1,751 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1/model/maintenance_window.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/memcache/lib/google_api/memcache/v1/model/maintenance_window.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/memcache/lib/google_api/memcache/v1/model/maintenance_window.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... | 35.02 | 107 | 0.737864 |
d536f4bd9d06337324cafd5b9b162c4681243ece | 598 | exs | Elixir | test/rocketpay/numbers_test.exs | nnmuniz/rocketpay | 3174bcb6bed1578a1cd96e3be90499cc87382b21 | [
"MIT"
] | 2 | 2021-03-09T22:58:09.000Z | 2021-03-28T12:22:11.000Z | test/rocketpay/numbers_test.exs | nnmuniz/rocketpay | 3174bcb6bed1578a1cd96e3be90499cc87382b21 | [
"MIT"
] | 9 | 2021-02-28T20:29:58.000Z | 2021-03-26T01:28:01.000Z | test/rocketpay/numbers_test.exs | nnmuniz/rocketpay | 3174bcb6bed1578a1cd96e3be90499cc87382b21 | [
"MIT"
] | 1 | 2021-03-28T11:56:37.000Z | 2021-03-28T11:56:37.000Z | defmodule Rocketpay.NumbersTest do
use ExUnit.Case, async: true
alias Rocketpay.Numbers
describe "sum_from_file/1" do
test "when there is a file with the giver name, returns the sum of numbers" do
response = Numbers.sum_from_file("numbers")
expect_response = {:ok, %{result: 37}}
assert res... | 29.9 | 82 | 0.690635 |
d5372c65d6655a309755db95049296c2debd685c | 1,750 | ex | Elixir | lib/ueberauth_example_web.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | lib/ueberauth_example_web.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | lib/ueberauth_example_web.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | defmodule UeberauthExampleWeb do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use UeberauthExample.Web, :controller
use UeberauthExample.Web, :view
The definitions below will be executed for every view,
control... | 22.151899 | 88 | 0.677714 |
d537376333d81f7b9c7813764a8af9c6f89d46ea | 1,047 | ex | Elixir | exercism/elixir/isbn-verifier/lib/isbn_verifier.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/isbn-verifier/lib/isbn_verifier.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/isbn-verifier/lib/isbn_verifier.ex | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule IsbnVerifier do
@doc """
Checks if a string is a valid ISBN-10 identifier
## Examples
iex> IsbnVerifier.isbn?("3-598-21507-X")
true
iex> IsbnVerifier.isbn?("3-598-2K507-0")
false
"""
@spec isbn?(String.t()) :: boolean
def isbn?(isbn) do
with lst <- String.to_cha... | 26.846154 | 97 | 0.543457 |
d5373f655005d7d6e8dbf6e814f03a2bff63299e | 97 | exs | Elixir | test/test_helper.exs | drdgvhbh/jsonrpc2-elixir | 02d41b41e3625da1a81b8dd911a0b23bb99b1c9e | [
"Apache-2.0"
] | 49 | 2016-07-14T01:12:59.000Z | 2022-03-22T02:13:50.000Z | test/test_helper.exs | drdgvhbh/jsonrpc2-elixir | 02d41b41e3625da1a81b8dd911a0b23bb99b1c9e | [
"Apache-2.0"
] | 18 | 2016-09-02T18:08:37.000Z | 2021-06-10T21:28:11.000Z | test/test_helper.exs | drdgvhbh/jsonrpc2-elixir | 02d41b41e3625da1a81b8dd911a0b23bb99b1c9e | [
"Apache-2.0"
] | 26 | 2016-09-07T21:46:16.000Z | 2021-10-09T13:52:16.000Z | Enum.map([:jiffy, :ranch, :shackle, :hackney], &Application.ensure_all_started/1)
ExUnit.start()
| 32.333333 | 81 | 0.742268 |
d5374899dcb983f17ab8a2ea9ae81735873d7f1d | 622 | ex | Elixir | lib/util.ex | T0ha/mix-erlang-tasks | 2db99d1bb70f11dab0ab3805795db0417179ab73 | [
"MIT"
] | 18 | 2015-04-02T12:13:09.000Z | 2021-01-16T15:51:42.000Z | lib/util.ex | T0ha/mix-erlang-tasks | 2db99d1bb70f11dab0ab3805795db0417179ab73 | [
"MIT"
] | 3 | 2015-08-31T12:58:12.000Z | 2016-12-31T01:10:10.000Z | lib/util.ex | T0ha/mix-erlang-tasks | 2db99d1bb70f11dab0ab3805795db0417179ab73 | [
"MIT"
] | 11 | 2015-04-02T12:13:29.000Z | 2022-01-31T14:41:15.000Z | defmodule MixErlangTasks.Util do
def filter_opts(opts) do
Enum.reduce(opts, [], fn
{name, nil}, acc -> [name|acc]
{name, val}, acc -> [name, val | acc]
end)
end
def compile_files(files, dir) do
File.mkdir_p!(dir)
status = Enum.reduce(files, :ok, fn path, status ->
case :compile... | 25.916667 | 72 | 0.601286 |
d53749bad7cfb22183be57f3126c9ac4138504a9 | 78 | exs | Elixir | test/views/layout_view_test.exs | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | defmodule MyChatEx.LayoutViewTest do
use MyChatEx.ConnCase, async: true
end
| 19.5 | 36 | 0.820513 |
d5376697bf7f093997805091ceb583cf96b8ba58 | 1,102 | ex | Elixir | test/support/conn_case.ex | DylanGuedes/forensic | 16ea59bb6aeefe636012b747a7caab26e0b7f686 | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | DylanGuedes/forensic | 16ea59bb6aeefe636012b747a7caab26e0b7f686 | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | DylanGuedes/forensic | 16ea59bb6aeefe636012b747a7caab26e0b7f686 | [
"Apache-2.0"
] | null | null | null | defmodule Forensic.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 da... | 24.488889 | 70 | 0.705989 |
d537764f05d0c1ef280bfdd0eeeaf12d82862c74 | 58 | exs | Elixir | config/dev.exs | shovelend/honeydew | 8575beaae480154bdfa5dae2f6a8814e1a563d80 | [
"MIT"
] | null | null | null | config/dev.exs | shovelend/honeydew | 8575beaae480154bdfa5dae2f6a8814e1a563d80 | [
"MIT"
] | null | null | null | config/dev.exs | shovelend/honeydew | 8575beaae480154bdfa5dae2f6a8814e1a563d80 | [
"MIT"
] | 1 | 2019-12-06T12:05:18.000Z | 2019-12-06T12:05:18.000Z | use Mix.Config
config :logger, :console,
level: :debug
| 11.6 | 25 | 0.706897 |
d537beb3d23b3ea9bf25df81f9baeba195155121 | 1,477 | ex | Elixir | examples/your_app/lib/your_app_web/views/error_helpers.ex | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | 11 | 2020-01-25T16:17:24.000Z | 2020-06-03T10:46:27.000Z | examples/your_app/lib/your_app_web/views/error_helpers.ex | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | null | null | null | examples/your_app/lib/your_app_web/views/error_helpers.ex | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | null | null | null | defmodule YourAppWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(... | 32.822222 | 76 | 0.670278 |
d537cf6621cf2142c935c0530e1ec54e2eb6a3c0 | 873 | ex | Elixir | lib/poker.ex | josemrb/poker_ex | 57aaa4fbde83b084e5e87cece1ee42c7b084ff9f | [
"MIT"
] | null | null | null | lib/poker.ex | josemrb/poker_ex | 57aaa4fbde83b084e5e87cece1ee42c7b084ff9f | [
"MIT"
] | null | null | null | lib/poker.ex | josemrb/poker_ex | 57aaa4fbde83b084e5e87cece1ee42c7b084ff9f | [
"MIT"
] | null | null | null | defmodule Poker do
@moduledoc """
Main module of Poker app.
"""
alias Poker.{Hand, Ranking}
@doc """
It receives a Keyword list with the player id as key and the input string for each player's hand as value.
## Examples
iex> input1 = "2H 3D 5S 9C KD"
iex> input2 = "2C 3H 4S 8C AH"
iex> Poker.pro... | 24.942857 | 108 | 0.636884 |
d537fa48eb8852885b4ce8d5a84ea50a34847ebd | 21,152 | exs | Elixir | lib/elixir/test/elixir/task_test.exs | thomascchen/elixir | d19a92bbf4cb3743ce726a87e584a1741b59f5b0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/task_test.exs | thomascchen/elixir | d19a92bbf4cb3743ce726a87e584a1741b59f5b0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/task_test.exs | thomascchen/elixir | d19a92bbf4cb3743ce726a87e584a1741b59f5b0 | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule TaskTest do
use ExUnit.Case
doctest Task
@moduletag :capture_log
def wait_and_send(caller, atom) do
send caller, :ready
receive do: (true -> true)
send caller, atom
end
defp create_task_in_other_process do
caller = self()
spawn fn... | 33.574603 | 108 | 0.592048 |
d538225cb5c9ca31ba45e382c72162708b13657d | 958 | exs | Elixir | apps/admin_panel/test/admin_panel/controllers/page_controller_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/admin_panel/test/admin_panel/controllers/page_controller_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/admin_panel/test/admin_panel/controllers/page_controller_test.exs | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule AdminPanel.PageControllerTest do
use ExUnit.Case, async: true
use Phoenix.ConnTest
# Attributes required by Phoenix.ConnTest
@endpoint AdminPanel.Endpoint
describe "GET request to /admin" do
test "returns the main front-end app page" do
response =
build_conn()
|> get("/ad... | 29.030303 | 88 | 0.659708 |
d538362dff202268304e864acc4b894e710d625f | 4,033 | exs | Elixir | test/aggregates/aggregate_concurrency_test.exs | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:23.000Z | 2018-12-28T20:48:23.000Z | test/aggregates/aggregate_concurrency_test.exs | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | test/aggregates/aggregate_concurrency_test.exs | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:24.000Z | 2018-12-28T20:48:24.000Z | defmodule Commanded.Aggregates.AggregateConcurrencyTest do
use Commanded.MockEventStoreCase
alias Commanded.Aggregates.{Aggregate, ExecutionContext}
alias Commanded.EventStore.RecordedEvent
alias Commanded.ExampleDomain.{BankAccount, OpenAccountHandler, DepositMoneyHandler}
alias Commanded.ExampleDomain.Bank... | 30.097015 | 94 | 0.646665 |
d538453e4eb1bfb9351287c398a24844fe48f895 | 80 | exs | Elixir | test_old/planga_web/views/layout_view_test.exs | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 37 | 2018-07-13T14:08:16.000Z | 2021-04-09T15:00:22.000Z | test_old/planga_web/views/layout_view_test.exs | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 9 | 2018-07-16T15:24:39.000Z | 2021-09-01T14:21:20.000Z | test_old/planga_web/views/layout_view_test.exs | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 3 | 2018-10-05T20:19:25.000Z | 2019-12-05T00:30:01.000Z | defmodule PlangaWeb.LayoutViewTest do
use PlangaWeb.ConnCase, async: true
end
| 20 | 37 | 0.825 |
d5385f50e93d7333d1ba93117a512d3222beda3c | 2,415 | ex | Elixir | examples/elixir-phoenix/lib/railwayphoenix_web.ex | PixelPasta/starters | bd245840f13f22f11cc271ddc9794feeea455fc0 | [
"MIT"
] | null | null | null | examples/elixir-phoenix/lib/railwayphoenix_web.ex | PixelPasta/starters | bd245840f13f22f11cc271ddc9794feeea455fc0 | [
"MIT"
] | 5 | 2022-01-28T21:45:40.000Z | 2022-02-28T03:51:31.000Z | examples/elixir-phoenix/lib/railwayphoenix_web.ex | PixelPasta/starters | bd245840f13f22f11cc271ddc9794feeea455fc0 | [
"MIT"
] | null | null | null | defmodule RailwayphoenixWeb 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 RailwayphoenixWeb, :controller
use RailwayphoenixWeb, :view
The definitions below will be executed for every... | 23.446602 | 81 | 0.691925 |
d5386faf1cfc64c955f39cd45701db33ffd1d648 | 531 | ex | Elixir | lib/radiator/media/network_image.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | 1 | 2021-03-02T16:59:40.000Z | 2021-03-02T16:59:40.000Z | lib/radiator/media/network_image.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | lib/radiator/media/network_image.ex | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | defmodule Radiator.Media.NetworkImage do
use Arc.Definition
use Arc.Ecto.Definition
@versions [:original, :thumbnail]
def filename(version, {_file, _network}) do
"cover_#{version}"
end
def storage_dir(_version, {_file, network}) do
"network/#{network.id}"
end
def s3_object_headers(_version, ... | 23.086957 | 87 | 0.706215 |
d53888d530545fdba4e494a74d7cc900e928aa26 | 497 | ex | Elixir | lib/leafblower_web/views/error_view.ex | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 31 | 2021-11-28T05:48:48.000Z | 2022-02-03T01:46:17.000Z | lib/leafblower_web/views/error_view.ex | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 8 | 2021-11-28T06:38:17.000Z | 2021-12-10T01:21:17.000Z | lib/leafblower_web/views/error_view.ex | aquap/leafblower | aa5f48dc99efef405af84de072199eaa3b13c02f | [
"Apache-2.0"
] | 2 | 2021-11-28T21:09:47.000Z | 2022-01-16T03:51:21.000Z | defmodule LeafblowerWeb.ErrorView do
use LeafblowerWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the templat... | 29.235294 | 61 | 0.738431 |
d538969cf656a7a8220bf0ab633074486487cfd1 | 37,262 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/videos.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/videos.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/videos.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 73.495069 | 1,186 | 0.735173 |
d538e4f33a4fc89c380b7b77cbf9af96295eb109 | 847 | exs | Elixir | apps/exquisitle/test/exquisitle_test.exs | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | apps/exquisitle/test/exquisitle_test.exs | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | apps/exquisitle/test/exquisitle_test.exs | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | defmodule ExquisitleTest do
use ExUnit.Case, async: true
alias Exquisitle.Impl.Game.Tally
describe "start_game/0" do
test "should return a pid" do
pid = Exquisitle.start_game(:easy)
assert is_pid(pid)
end
end
describe "hard_game/0" do
test "should return a pid" do
pid = Exquis... | 21.717949 | 58 | 0.643447 |
d538e94c5d539df1138949abd9d3cf763aa095d4 | 1,933 | exs | Elixir | test/depot/adapter/local_test.exs | mcrumm/depot | dfec1b3daeef06208491bb175241fff03fe8e59a | [
"Apache-2.0"
] | null | null | null | test/depot/adapter/local_test.exs | mcrumm/depot | dfec1b3daeef06208491bb175241fff03fe8e59a | [
"Apache-2.0"
] | null | null | null | test/depot/adapter/local_test.exs | mcrumm/depot | dfec1b3daeef06208491bb175241fff03fe8e59a | [
"Apache-2.0"
] | null | null | null | defmodule Depot.Adapter.LocalTest do
use ExUnit.Case, async: true
import Depot.AdapterTest
doctest Depot.Adapter.Local
setup do
{:ok, prefix} = Briefly.create(directory: true)
{:ok, prefix: prefix}
end
adapter_test %{prefix: prefix} do
filesystem = Depot.Adapter.Local.configure(prefix: prefix)... | 30.203125 | 83 | 0.652871 |
d538ea9cc825bd11c9f95ff37bf2071b83179931 | 2,697 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/resource.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/resource.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/security_center/lib/google_api/security_center/v1/model/resource.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... | 43.5 | 276 | 0.715239 |
d538ed01a82a76a780312728083c714e8b556e1d | 1,417 | ex | Elixir | lib/cain/endpoint/external_task.ex | pfitz/cain | c1038a9d80e51213ee665149c585231b16c11b3f | [
"Apache-2.0"
] | 6 | 2019-12-17T12:40:19.000Z | 2022-01-18T07:25:20.000Z | lib/cain/endpoint/external_task.ex | pfitz/cain | c1038a9d80e51213ee665149c585231b16c11b3f | [
"Apache-2.0"
] | 9 | 2019-12-18T13:01:11.000Z | 2021-02-12T14:24:43.000Z | lib/cain/endpoint/external_task.ex | pfitz/cain | c1038a9d80e51213ee665149c585231b16c11b3f | [
"Apache-2.0"
] | 1 | 2020-09-16T09:19:08.000Z | 2020-09-16T09:19:08.000Z | defmodule Cain.Endpoint.ExternalTask do
def get(id) do
{:get, "/external-task/#{id}", %{}, %{}}
end
def get_list do
{:get, "/external-task", %{}, %{}}
end
# def get_list(offset \\ 0, limit) when is_integer(limit) do
# {:post, "/external-task", %{"firstResult" => offset, "maxResults" => limit}, %... | 22.854839 | 87 | 0.573747 |
d538f1f3f3428ceba156b0ca25b6cb2839368f30 | 744 | ex | Elixir | lib/fadecandy.ex | lschuermann/fadex | 92a4d19424079a912781322794797101f6d7feab | [
"Apache-2.0"
] | null | null | null | lib/fadecandy.ex | lschuermann/fadex | 92a4d19424079a912781322794797101f6d7feab | [
"Apache-2.0"
] | null | null | null | lib/fadecandy.ex | lschuermann/fadex | 92a4d19424079a912781322794797101f6d7feab | [
"Apache-2.0"
] | null | null | null | defmodule Fadex.Fadecandy do
use Bitwise
def set_configuration(%Fadex.Connection{socket: socket}, config) do
defaults = [
dithering: :enabled,
keyframe_interpolation: :enabled,
led_mode: :usb
]
config = Keyword.merge(defaults, config) |> Enum.into(%{})
config_byte = 0x00
conf... | 23.25 | 69 | 0.611559 |
d53910efff2513ff237652fee7b43ac1ac35d605 | 426 | exs | Elixir | release_docs.exs | aforward-oss/decimal | b261fa9daeacfdfa1a675b540ffd2194901f7592 | [
"Apache-2.0"
] | null | null | null | release_docs.exs | aforward-oss/decimal | b261fa9daeacfdfa1a675b540ffd2194901f7592 | [
"Apache-2.0"
] | null | null | null | release_docs.exs | aforward-oss/decimal | b261fa9daeacfdfa1a675b540ffd2194901f7592 | [
"Apache-2.0"
] | null | null | null | additional_files = ["README.md"]
:os.cmd 'git clone --branch gh-pages `git config --get remote.origin.url` docs'
Mix.Task.run "docs"
Enum.each(additional_files, &File.cp!(&1, Path.join("docs", &1)))
File.cd! "docs", fn ->
:os.cmd 'git add -A .'
:os.cmd 'git commit -m "Updated docs"'
:os.cmd 'git push origin gh... | 25.058824 | 79 | 0.669014 |
d53919af418a947997c90d119aa481d911cffb86 | 548 | exs | Elixir | host_core/test/support/common.exs | mattwilkinsonn/wasmcloud-otp | 09b918e08cb566028c0fe9223ce9f0bdbc69b2cd | [
"Apache-2.0"
] | null | null | null | host_core/test/support/common.exs | mattwilkinsonn/wasmcloud-otp | 09b918e08cb566028c0fe9223ce9f0bdbc69b2cd | [
"Apache-2.0"
] | null | null | null | host_core/test/support/common.exs | mattwilkinsonn/wasmcloud-otp | 09b918e08cb566028c0fe9223ce9f0bdbc69b2cd | [
"Apache-2.0"
] | null | null | null | defmodule HostCoreTest.Common do
require Logger
def request_http(url, retries) when retries > 0 do
case HTTPoison.get(url) do
{:ok, resp} ->
{:ok, resp}
_ ->
Logger.debug("HTTP request failed, retrying in 1000ms, remaining retries #{retries}")
:timer.sleep(1000)
req... | 24.909091 | 93 | 0.629562 |
d539286f0058c5f33160804e0ebc8847c0da3822 | 2,022 | exs | Elixir | test/appsignal/monitor_test.exs | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | 234 | 2016-08-18T20:43:15.000Z | 2022-02-27T11:31:48.000Z | test/appsignal/monitor_test.exs | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | 563 | 2016-07-25T17:45:14.000Z | 2022-03-21T11:39:29.000Z | test/appsignal/monitor_test.exs | cblavier/appsignal-elixir | 6e191a9e50acab3537a6331cd08c269b9e0fd7f4 | [
"MIT"
] | 86 | 2016-09-13T22:53:46.000Z | 2022-02-16T11:03:51.000Z | defmodule Appsignal.MonitorTest do
use ExUnit.Case
import AppsignalTest.Utils
alias Appsignal.{Monitor, Test}
setup do
start_supervised!(Test.Nif)
:ok
end
test "is started by the main supervisor" do
assert is_pid(monitor_pid())
end
test "monitors a process" do
{:monitors, previous} = ... | 22.466667 | 77 | 0.624135 |
d53931c4a3a5c590a7aa52113a5d7a0973d5153c | 2,337 | ex | Elixir | clients/cloud_support/lib/google_api/cloud_support/v2beta/model/comment.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_support/lib/google_api/cloud_support/v2beta/model/comment.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_support/lib/google_api/cloud_support/v2beta/model/comment.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.610169 | 165 | 0.705178 |
d53936ae698679c6243e4db2b4901349a131b8ba | 1,163 | ex | Elixir | lib/ddd_ex_tickets_web/router.ex | mwindholtz/ddd_ex_tickets | c3cf196ffb8f6d315334a4984db54b2f7aed912e | [
"MIT"
] | 5 | 2021-05-27T01:25:15.000Z | 2022-02-16T09:51:58.000Z | lib/ddd_ex_tickets_web/router.ex | mwindholtz/ddd_ex_tickets | c3cf196ffb8f6d315334a4984db54b2f7aed912e | [
"MIT"
] | 2 | 2021-03-10T22:27:22.000Z | 2021-05-11T17:41:57.000Z | lib/ddd_ex_tickets_web/router.ex | mwindholtz/ddd_ex_tickets | c3cf196ffb8f6d315334a4984db54b2f7aed912e | [
"MIT"
] | 2 | 2021-01-01T13:48:03.000Z | 2021-04-16T15:23:37.000Z | defmodule DddExTicketsWeb.Router do
use DddExTicketsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {DddExTicketsWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :... | 26.431818 | 70 | 0.708512 |
d53966ac72eb1d529206e1e6c2f0fe786b6187c2 | 726 | exs | Elixir | config/config.exs | phaelar/hohenheim | f7347255d788b7656b31ac124f7f93428093c889 | [
"MIT"
] | null | null | null | config/config.exs | phaelar/hohenheim | f7347255d788b7656b31ac124f7f93428093c889 | [
"MIT"
] | 2 | 2016-11-30T08:57:20.000Z | 2016-12-05T06:59:41.000Z | config/config.exs | phaelar/hohenheim | f7347255d788b7656b31ac124f7f93428093c889 | [
"MIT"
] | null | null | null | use Mix.Config
config :app,
bot_name: "BGPHelperBot"
config :extwitter, :oauth, [
consumer_key: System.get_env("TWITTER_CONSUMER_KEY"),
consumer_secret: System.get_env("TWITTER_CONSUMER_SECRET"),
access_token: System.get_env("TWITTER_ACCESS_TOKEN"),
access_token_secret: System.get_env("TWI... | 27.923077 | 68 | 0.747934 |
d5397f174dda99c4020e4545e153493233c07db7 | 1,716 | ex | Elixir | lib/gcs_signed_url/query_string.ex | alexandrubagu/gcs_signed_url | 6ada3e41c1357b146d816e5fbba35418443d3cc9 | [
"MIT"
] | 16 | 2019-07-25T16:05:20.000Z | 2022-02-09T06:24:55.000Z | lib/gcs_signed_url/query_string.ex | alexandrubagu/gcs_signed_url | 6ada3e41c1357b146d816e5fbba35418443d3cc9 | [
"MIT"
] | 53 | 2020-04-21T16:35:49.000Z | 2022-03-28T13:04:07.000Z | lib/gcs_signed_url/query_string.ex | alexandrubagu/gcs_signed_url | 6ada3e41c1357b146d816e5fbba35418443d3cc9 | [
"MIT"
] | 10 | 2020-04-21T12:19:47.000Z | 2021-11-19T12:00:06.000Z | defmodule GcsSignedUrl.QueryString do
@moduledoc """
Manages aggregation and formatting of query parameters.
"""
@doc """
Adds required query parameters for signed URL, sorts them and encodes them as proper query string.
"""
@spec create(
String.t(),
String.t(),
GcsSignedUrl... | 33 | 119 | 0.651515 |
d5398c807e20729b6bf04a6f4c62c140260288a9 | 1,289 | ex | Elixir | lib/lle_cymraeg_web/controllers/business_controller.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/controllers/business_controller.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/controllers/business_controller.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | defmodule LleCymraegWeb.BusinessController do
use LleCymraegWeb, :controller
alias LleCymraeg.Businesses
alias LleCymraeg.Businesses.Business
action_fallback LleCymraegWeb.FallbackController
def index(conn, _params) do
businesses = Businesses.list_businesses()
render(conn, "index.json", businesses:... | 29.976744 | 98 | 0.686579 |
d5399671494e15efde2e0343156430df5bbfd931 | 795 | ex | Elixir | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/build_step_list.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/build_step_list.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/build_step_list.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Preview.Containers.Model.BuildStepList do
@moduledoc """
The collection of build items.
"""
@derive [Poison.En... | 26.5 | 107 | 0.725786 |
d539df1878e1dbb482b8cd4377970d52488bed6a | 798 | ex | Elixir | test/support/channel_case.ex | Devotu/magirator_app_channel | 75810edaef8f781981366702556da85460c07073 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Devotu/magirator_app_channel | 75810edaef8f781981366702556da85460c07073 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Devotu/magirator_app_channel | 75810edaef8f781981366702556da85460c07073 | [
"MIT"
] | null | null | null | defmodule MagiratorAppChannelWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case ... | 23.470588 | 58 | 0.734336 |
d539eae44012904250a3dfb67cd0067b2cfd4954 | 5,204 | exs | Elixir | test/club/colors/projectors/color_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | test/club/colors/projectors/color_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | test/club/colors/projectors/color_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.Colors.Projectors.ColorTest do
use Club.DataCase
alias Club.ReadRepo, as: Repo
alias Club.Colors
alias Club.Colors.Projections.Color, as: ColorProjection
alias Club.Colors.Events.{
ColorAdded,
ColorRenamed,
ColorHexUpdated,
ColorUsed,
ColorUsageStopped
}
@topic "dom... | 30.97619 | 98 | 0.676787 |
d53a04b7b4ddb88ab0fdd02ca756a0f93d448c4e | 4,341 | exs | Elixir | test/thrift/binary/framed/ssl_test.exs | pguillory/elixir-thrift | adff91ece6c303db3fd5cfc641fd43249d7c1dc9 | [
"Apache-2.0"
] | 209 | 2015-12-19T09:56:39.000Z | 2022-03-22T04:43:16.000Z | test/thrift/binary/framed/ssl_test.exs | Acidburn0zzz/elixir-thrift | ed84da9ced0e6f5d90ff90f1b22886830f2096ea | [
"Apache-2.0"
] | 312 | 2016-01-05T04:04:58.000Z | 2021-11-15T17:59:57.000Z | test/thrift/binary/framed/ssl_test.exs | Acidburn0zzz/elixir-thrift | ed84da9ced0e6f5d90ff90f1b22886830f2096ea | [
"Apache-2.0"
] | 40 | 2015-12-21T19:46:03.000Z | 2022-02-10T08:34:58.000Z | defmodule Servers.Binary.Framed.SSLTest do
use ThriftTestCase
use StubStats
@thrift_file name: "ssl_test.thrift",
contents: """
service SSLTest {
bool ping()
}
"""
alias Servers.Binary.Framed.SSLTest.SSLTest.Binary.Framed.{Clie... | 27.13125 | 91 | 0.638102 |
d53a0f5706a5495708a330b2ca424438c54baf79 | 202 | ex | Elixir | lib/booklist_web/views/loan_view.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | lib/booklist_web/views/loan_view.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | 3 | 2020-07-16T14:24:43.000Z | 2021-03-08T23:34:18.000Z | lib/booklist_web/views/loan_view.ex | allen-garvey/booklist-phoenix | b3c87713d742b64684c222cd3e5869dc9fbd2bd2 | [
"MIT"
] | null | null | null | defmodule BooklistWeb.LoanView do
use BooklistWeb, :view
def to_s(loan) do
BooklistWeb.LibraryView.to_s(loan.library) <> "—" <> BooklistWeb.SharedView.us_formatted_date(loan.due_date)
end
end
| 25.25 | 111 | 0.762376 |
d53a1bbfef2b9bc756eaea36bae0ebcd09f008a5 | 15,088 | exs | Elixir | test/release_version_test.exs | Fastcomm/edeliver | b75c691cb2e29ae586584fa2aa99113d521456e3 | [
"MIT",
"Unlicense"
] | 807 | 2017-06-30T04:50:01.000Z | 2022-03-24T09:57:48.000Z | test/release_version_test.exs | Fastcomm/edeliver | b75c691cb2e29ae586584fa2aa99113d521456e3 | [
"MIT",
"Unlicense"
] | 165 | 2017-06-26T12:57:43.000Z | 2022-03-29T14:36:49.000Z | test/release_version_test.exs | Fastcomm/edeliver | b75c691cb2e29ae586584fa2aa99113d521456e3 | [
"MIT",
"Unlicense"
] | 96 | 2017-07-01T17:30:22.000Z | 2022-03-21T09:34:34.000Z | # If these tests don't run because :cover is missing, install `erlang-tools`
defmodule Edeliver.Release.Version.Test do
use ExUnit.Case
alias Mix.Tasks.Release.Version, as: ReleaseVersion
import ExUnit.CaptureIO
import ReleaseVersion, only: :functions
setup_all do
:meck.new ReleaseVersion, [:passthrough]... | 53.885714 | 165 | 0.687765 |
d53a268e24c9dc485d6f884c62ffa3259ab50be8 | 1,374 | exs | Elixir | apps/snitch_api/test/snitch_api_web/plugs/load_user_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_api/test/snitch_api_web/plugs/load_user_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_api/test/snitch_api_web/plugs/load_user_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule SnitchApiWeb.Plugs.LoadUser do
use SnitchApiWeb.ConnCase, async: true
import Snitch.Factory
alias Snitch.Core.Tools.MultiTenancy.Repo
alias SnitchApi.Accounts
alias SnitchApiWeb.Plug.LoadUser
setup %{conn: conn} do
role = build(:role, name: "user")
Repo.insert(role, on_conflict: :nothin... | 27.48 | 81 | 0.644833 |
d53a344ef0f16a3cc1de7dc4071b8717bcd9db62 | 979 | ex | Elixir | lib/dapp_demo/api/response.ex | arpnetwork/dapp_demo | ff87809625ae6053378ddffd63e27c6225d93370 | [
"Apache-2.0"
] | null | null | null | lib/dapp_demo/api/response.ex | arpnetwork/dapp_demo | ff87809625ae6053378ddffd63e27c6225d93370 | [
"Apache-2.0"
] | null | null | null | lib/dapp_demo/api/response.ex | arpnetwork/dapp_demo | ff87809625ae6053378ddffd63e27c6225d93370 | [
"Apache-2.0"
] | null | null | null | defmodule DappDemo.API.Response do
@moduledoc """
Render response.
"""
alias Plug.Conn
@default_content_type "application/json"
def render(conn, data) when is_map(data) do
render(conn, Conn.Status.code(:ok), data)
end
@doc false
def render(conn, status, data) do
conn
|> Conn.put_resp_c... | 20.395833 | 72 | 0.644535 |
d53a5bb009d5c8b042a09f61acf3d78537b5d918 | 3,769 | exs | Elixir | test/ptr_web/views/vessel_view_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | test/ptr_web/views/vessel_view_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | test/ptr_web/views/vessel_view_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule PtrWeb.VesselViewTest do
use PtrWeb.ConnCase, async: true
alias PtrWeb.VesselView
alias Ptr.Cellars
alias Ptr.Cellars.{Cellar, Vessel}
alias Ptr.Options.Material
import Phoenix.View
setup %{conn: conn} do
cellar = %Cellar{id: "1", identifier: "gallo", name: "Gallo"}
{:ok, %{conn: con... | 22.842424 | 84 | 0.573362 |
d53a8064f9df28cfe3c18d2379610ea997e330c9 | 10,569 | ex | Elixir | lib/triplex.ex | Userpilot/triplex | c3f4518098551365674a4263a1cc6d6d269753a8 | [
"MIT"
] | null | null | null | lib/triplex.ex | Userpilot/triplex | c3f4518098551365674a4263a1cc6d6d269753a8 | [
"MIT"
] | null | null | null | lib/triplex.ex | Userpilot/triplex | c3f4518098551365674a4263a1cc6d6d269753a8 | [
"MIT"
] | null | null | null | defmodule Triplex do
@moduledoc """
This is the main module of Triplex.
The main objective of it is to make a little bit easier to manage tenants
through postgres db schemas or equivalents, executing queries and commands
inside and outside the tenant without much boilerplate code.
## Using the tenant
T... | 27.5953 | 98 | 0.621345 |
d53a970ee6e75e19d852da2b858db687a9ab3af7 | 471 | exs | Elixir | code/tooling/webapp/test/views/page_view_test.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/tooling/webapp/test/views/page_view_test.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/tooling/webapp/test/views/page_view_test.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 39.25 | 85 | 0.757962 |
d53ab73a1ba4f1a4040fc0f8e7fd55ffb39738fb | 1,308 | exs | Elixir | test/xdr/transactions/memo_type_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/transactions/memo_type_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/transactions/memo_type_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.MemoTypeTest do
use ExUnit.Case
alias StellarBase.XDR.MemoType
describe "MemoType" do
setup do
%{
identifier: :MEMO_TEXT,
memo_type: MemoType.new(:MEMO_TEXT),
binary: <<0, 0, 0, 1>>
}
end
test "new/1", %{identifier: type} do
%MemoT... | 27.25 | 84 | 0.637615 |
d53b107b8db7e90813557f83e9d531ee74fc3dbc | 159 | exs | Elixir | lib/mix/test/fixtures/deps_status/custom/raw_repo/mix.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/mix/test/fixtures/deps_status/custom/raw_repo/mix.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/mix/test/fixtures/deps_status/custom/raw_repo/mix.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | defmodule RawRepo.Mix do
use Mix.Project
def project do
Mix.shell.info ":raw_repo env is #{Mix.env}"
[app: :raw_repo, version: "0.1.0"]
end
end
| 17.666667 | 48 | 0.654088 |
d53b32ab2698a8973b3795a284c19b6ee0cecb52 | 1,829 | exs | Elixir | clients/dataproc/mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/mix.exs | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/mix.exs | 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... | 27.298507 | 103 | 0.653909 |
d53b37fd2d6b6cc3a537cf95d437ea9b26746dff | 229 | ex | Elixir | lib/phone/ru.ex | LaErika/phone | fc63a32dfd156b63b5c95ed59bd160046bae5dd3 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/ru.ex | LaErika/phone | fc63a32dfd156b63b5c95ed59bd160046bae5dd3 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/ru.ex | LaErika/phone | fc63a32dfd156b63b5c95ed59bd160046bae5dd3 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.RU do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(7)([3-589]..)(.{7})/
def country, do: "Russia"
def a2, do: "RU"
def a3, do: "RUS"
matcher(:regex, ["73", "74", "75", "78", "79"])
end
| 17.615385 | 49 | 0.554585 |
d53b530059ca6ae631f865ca875ba65c5c5e0441 | 4,830 | ex | Elixir | lib/distillery/plugins/modify_relup.ex | qhwa/edeliver | f90999b54a90f2eb6d68e21bf5759872b42eee41 | [
"Unlicense",
"MIT"
] | 1 | 2021-06-25T10:36:14.000Z | 2021-06-25T10:36:14.000Z | lib/distillery/plugins/modify_relup.ex | qhwa/edeliver | f90999b54a90f2eb6d68e21bf5759872b42eee41 | [
"Unlicense",
"MIT"
] | null | null | null | lib/distillery/plugins/modify_relup.ex | qhwa/edeliver | f90999b54a90f2eb6d68e21bf5759872b42eee41 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Releases.Plugin.ModifyRelup do
@moduledoc """
Exrm plugin to auto-patch the relup file when building upgrades.
"""
use Mix.Releases.Plugin
alias Edeliver.Relup.Instructions
def before_assembly(_), do: nil
def after_assembly(release = %Release{is_upgrade: true, version: version, name: name, o... | 40.932203 | 175 | 0.609317 |
d53b96dd2812f24533a2550172dd9fea90acaf5e | 1,617 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.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.6875 | 124 | 0.754484 |
d53b9b818591dc94ca862a6bff67fde9de1d26a2 | 57 | ex | Elixir | lib/funix_web/views/page_view.ex | spotifun/funix | c81a1b4584b826264241fcf2da13552a610842dd | [
"MIT"
] | null | null | null | lib/funix_web/views/page_view.ex | spotifun/funix | c81a1b4584b826264241fcf2da13552a610842dd | [
"MIT"
] | null | null | null | lib/funix_web/views/page_view.ex | spotifun/funix | c81a1b4584b826264241fcf2da13552a610842dd | [
"MIT"
] | null | null | null | defmodule FunixWeb.PageView do
use FunixWeb, :view
end
| 14.25 | 30 | 0.789474 |
d53bc0320c946e5e97a023d4fc64f683c81205ab | 581 | ex | Elixir | lib/arkecosystem/crypto/transactions/serialisers/transfer.ex | whitehat/elixir-crypto | 6347868ee15c7b79676df58bef54376a8dc6fd02 | [
"MIT"
] | null | null | null | lib/arkecosystem/crypto/transactions/serialisers/transfer.ex | whitehat/elixir-crypto | 6347868ee15c7b79676df58bef54376a8dc6fd02 | [
"MIT"
] | null | null | null | lib/arkecosystem/crypto/transactions/serialisers/transfer.ex | whitehat/elixir-crypto | 6347868ee15c7b79676df58bef54376a8dc6fd02 | [
"MIT"
] | null | null | null | defmodule ArkEcosystem.Crypto.Transactions.Serializers.Transfer do
alias ArkEcosystem.Crypto.Helpers.Base58Check
def serialize(bytes, transaction) do
amount = <<transaction.amount::little-unsigned-integer-size(64)>>
expiration =
if Map.has_key?(transaction, :expiration) do
<<transaction.expi... | 27.666667 | 69 | 0.700516 |
d53bc355b0e9a2203b635b6a4b020399688ed07b | 10,668 | ex | Elixir | lib/myxql/types.ex | qrede/myxql | a2166960c51bfe539b8e0a11da4bfcc4b484e907 | [
"Apache-2.0"
] | null | null | null | lib/myxql/types.ex | qrede/myxql | a2166960c51bfe539b8e0a11da4bfcc4b484e907 | [
"Apache-2.0"
] | null | null | null | lib/myxql/types.ex | qrede/myxql | a2166960c51bfe539b8e0a11da4bfcc4b484e907 | [
"Apache-2.0"
] | null | null | null | defmodule MyXQL.Types do
@moduledoc false
use Bitwise
#########################################################
# Basic types
#
# https://dev.mysql.com/doc/internals/en/basic-types.html
#########################################################
# https://dev.mysql.com/doc/internals/en/integer.html#fixe... | 29.798883 | 113 | 0.66676 |
d53c6a0d3dfa23e6179900e99a73e98e812a82f8 | 882 | exs | Elixir | test/fly_test.exs | superfly/fly_rpc_elixir | 35eb16fd0d8926e3cd528ba34b9bf4d8953df81b | [
"Apache-2.0"
] | 21 | 2021-10-04T01:05:19.000Z | 2022-03-30T15:32:14.000Z | test/fly_test.exs | superfly/fly_rpc_elixir | 35eb16fd0d8926e3cd528ba34b9bf4d8953df81b | [
"Apache-2.0"
] | 3 | 2022-01-25T19:00:27.000Z | 2022-03-24T23:26:34.000Z | test/fly_test.exs | superfly/fly_rpc_elixir | 35eb16fd0d8926e3cd528ba34b9bf4d8953df81b | [
"Apache-2.0"
] | 3 | 2021-10-15T02:54:55.000Z | 2022-03-12T15:03:49.000Z | defmodule FlyTest do
# Manipulates System ENV settings, don't run async
use ExUnit.Case, async: false
doctest Fly
describe "primary_region/0" do
test "when no primary set, sets to local" do
System.delete_env("PRIMARY_REGION")
assert "local" == Fly.primary_region()
assert "local" == Syste... | 26.727273 | 59 | 0.65873 |
d53c8e7eaeff40e2260d69be0ae8468d09b7519a | 7,028 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/creative.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/creative.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/creative.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 56.677419 | 458 | 0.747439 |
d53c94d60a64bd29c6d5fce0f5e191623308f23e | 3,907 | exs | Elixir | test/components/form/checkbox_test.exs | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | 1 | 2021-06-04T20:46:52.000Z | 2021-06-04T20:46:52.000Z | test/components/form/checkbox_test.exs | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | test/components/form/checkbox_test.exs | lnr0626/surface | 11ae4a8cfa167fc11c8f960e9d5821a057c9b5bb | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.CheckboxTest do
use Surface.ConnCase, async: true
alias Surface.Components.Form
alias Surface.Components.Form.Checkbox
test "checkbox" do
html =
render_surface do
~F"""
<Checkbox form="user" field="admin" />
"""
end
assert html =~ ... | 21.349727 | 102 | 0.533402 |
d53ca3eedcc8261db6a7259bb8a6ef1aa22ad4c9 | 1,790 | exs | Elixir | test/kitto_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 1,047 | 2016-05-11T16:09:29.000Z | 2022-03-29T17:17:26.000Z | test/kitto_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 132 | 2016-10-28T19:44:26.000Z | 2020-12-06T21:16:53.000Z | test/kitto_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 70 | 2016-10-26T00:11:05.000Z | 2022-01-02T21:43:06.000Z | defmodule KittoTest do
use ExUnit.Case
import ExUnit.CaptureLog
setup do
path = Application.get_env :kitto, :root
on_exit fn ->
Application.put_env :kitto, :root, path
end
end
test "#root when the :root config is set to a bitstring, it returns it" do
path = "somewhere"
Applicatio... | 25.571429 | 87 | 0.693855 |
d53ca9b335dad34d4c6a3696a9ff5dfc7e624c82 | 1,808 | exs | Elixir | priv/repo/migrations/001_ex_double_entry_tables.exs | coinjar/ex_double_entry | e2fde666daac1b42e7a32f704dabb61f8283a70c | [
"MIT"
] | 9 | 2022-02-05T08:00:05.000Z | 2022-03-20T04:53:46.000Z | priv/repo/migrations/001_ex_double_entry_tables.exs | coinjar/ex_double_entry | e2fde666daac1b42e7a32f704dabb61f8283a70c | [
"MIT"
] | 1 | 2022-02-24T06:14:07.000Z | 2022-02-24T06:14:07.000Z | priv/repo/migrations/001_ex_double_entry_tables.exs | coinjar/ex_double_entry | e2fde666daac1b42e7a32f704dabb61f8283a70c | [
"MIT"
] | 1 | 2022-02-24T02:54:01.000Z | 2022-02-24T02:54:01.000Z | defmodule ExDoubleEntry.Repo.Migrations.ExDoubleEntryMoney do
use Ecto.Migration
def change do
json_type =
if ExDoubleEntry.Repo.__adapter__ == Ecto.Adapters.Postgres do
:jsonb
else
:json
end
create table(:"#{ExDoubleEntry.db_table_prefix}account_balances") do
add :... | 42.046512 | 190 | 0.712942 |
d53cb5533c2f3d8b83d5eb85e935fea843010976 | 6,511 | ex | Elixir | lib/bgp/peer.ex | rzalamena/bgp_bench | 069e0583ec62b44f20d838849eb444434cf426fc | [
"MIT"
] | 2 | 2018-02-24T15:02:11.000Z | 2021-06-19T17:25:11.000Z | lib/bgp/peer.ex | rzalamena/bgp_bench | 069e0583ec62b44f20d838849eb444434cf426fc | [
"MIT"
] | null | null | null | lib/bgp/peer.ex | rzalamena/bgp_bench | 069e0583ec62b44f20d838849eb444434cf426fc | [
"MIT"
] | null | null | null | defmodule Bgp.Peer do
@moduledoc """
BGP peer handling library.
"""
use GenServer
require Logger
defmodule Options do
@moduledoc """
BGP peer options.
"""
@enforce_keys [:neighbor, :remote_as, :local_address, :local_as, :router_id]
defstruct neighbor: nil, neighbor_port: 179, remote_as:... | 28.186147 | 91 | 0.606358 |
d53cbdf215e749c39508e63d287d429511dd7146 | 14,325 | ex | Elixir | lib/ex_unit/lib/ex_unit.ex | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | 1 | 2021-02-22T14:21:02.000Z | 2021-02-22T14:21:02.000Z | lib/ex_unit/lib/ex_unit.ex | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit.ex | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit do
@moduledoc """
Unit testing framework for Elixir.
## Example
A basic setup for ExUnit is shown below:
# File: assertion_test.exs
# 1) Start ExUnit.
ExUnit.start()
# 2) Create a new test module (test case) and use "ExUnit.Case".
defmodule AssertionTest do
... | 32.556818 | 97 | 0.659197 |
d53cf232bbbc37164906adca81860047190443c5 | 4,426 | ex | Elixir | lib/tecnobot/bot.ex | tecnobrat/tecnobot | af67d8299e7ff3df325657cc831fd95e41b486ca | [
"MIT"
] | null | null | null | lib/tecnobot/bot.ex | tecnobrat/tecnobot | af67d8299e7ff3df325657cc831fd95e41b486ca | [
"MIT"
] | null | null | null | lib/tecnobot/bot.ex | tecnobrat/tecnobot | af67d8299e7ff3df325657cc831fd95e41b486ca | [
"MIT"
] | null | null | null | defmodule TecnoBot.Bot do
use GenServer
require Logger
defmodule Config do
defstruct server: nil,
port: nil,
pass: System.get_env("IRC_PASS"),
nick: nil,
user: nil,
name: nil,
channel: nil,
clien... | 29.905405 | 97 | 0.62404 |
d53d06be63051b620c3f4e35eae0789fabd7f92a | 670 | exs | Elixir | test/http_test.exs | connorlay/hue_sdk | f69e038c7f6527277f2ef13c92eb10c5d98b6ba8 | [
"MIT"
] | 4 | 2021-03-22T16:50:55.000Z | 2021-07-09T11:42:08.000Z | test/http_test.exs | connorlay/hue_sdk | f69e038c7f6527277f2ef13c92eb10c5d98b6ba8 | [
"MIT"
] | null | null | null | test/http_test.exs | connorlay/hue_sdk | f69e038c7f6527277f2ef13c92eb10c5d98b6ba8 | [
"MIT"
] | null | null | null | defmodule HueSDK.HTTPTest do
use ExUnit.Case, async: true
alias HueSDK.HTTP
test "verify_and_pin_self_signed_cert_fun/0" do
# construct a new verify function
assert {verify_fun, []} = HTTP.verify_and_pin_self_signed_cert_fun()
assert is_function(verify_fun)
# first cert returned is pinned
a... | 30.454545 | 72 | 0.680597 |
d53d25083b26a23d889f9669bcb48b73ddf2a1c9 | 1,538 | exs | Elixir | mix.exs | tverlaan/inet_tcp_dist | 4036fc4bdc4c91aed2348f2c87363cfc364e735f | [
"MIT"
] | 19 | 2017-05-06T00:34:58.000Z | 2020-08-05T11:10:23.000Z | mix.exs | tverlaan/inet_tcp_dist | 4036fc4bdc4c91aed2348f2c87363cfc364e735f | [
"MIT"
] | null | null | null | mix.exs | tverlaan/inet_tcp_dist | 4036fc4bdc4c91aed2348f2c87363cfc364e735f | [
"MIT"
] | 1 | 2019-06-11T09:06:01.000Z | 2019-06-11T09:06:01.000Z | defmodule InetTcp_dist.Mixfile do
use Mix.Project
def project do
[
app: :inet_tcp_dist,
version: "0.1.3",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
so... | 26.067797 | 101 | 0.620286 |
d53d33693f7dd32cbcc3bc5c51d135791584ad9e | 314 | exs | Elixir | config/test.exs | Ed-M72/teslamate | 2c3e8e0560da352ff3124ba0ae089a25bc119e1f | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | config/test.exs | Ed-M72/teslamate | 2c3e8e0560da352ff3124ba0ae089a25bc119e1f | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | config/test.exs | Ed-M72/teslamate | 2c3e8e0560da352ff3124ba0ae089a25bc119e1f | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | import Config
config :logger, level: :warning
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :teslamate, TeslaMateWeb.Endpoint, server: false
config :teslamate, TeslaMate.Repo, pool: Ecto.Adapters.SQL.Sandbox
config :phoenix, :plug_init_mode, :runtime
| 28.545455 | 66 | 0.773885 |
d53d7b0f1a0843368dc8c407dceeaceaa3741a54 | 432 | ex | Elixir | test/support/test_app.ex | lpil/rihanna | 83db1fab1550244a9e3cb347ccda607f5ff4e4b5 | [
"MIT"
] | 1 | 2019-02-11T14:07:57.000Z | 2019-02-11T14:07:57.000Z | test/support/test_app.ex | lpil/rihanna | 83db1fab1550244a9e3cb347ccda607f5ff4e4b5 | [
"MIT"
] | null | null | null | test/support/test_app.ex | lpil/rihanna | 83db1fab1550244a9e3cb347ccda607f5ff4e4b5 | [
"MIT"
] | null | null | null | defmodule TestApp do
@moduledoc """
An application used to start an Ecto Repo in test.
"""
defmodule Repo do
use Ecto.Repo, otp_app: :rihanna, adapter: Ecto.Adapters.Postgres
end
use Application
def start(_type, _args) do
{:ok, _} = Application.ensure_all_started(:ecto)
{:ok, _} = Applicati... | 24 | 69 | 0.708333 |
d53d80b229a26bb9aa7d4fb20ba3b7f97b9df43e | 3,788 | ex | Elixir | lib/logger/lib/logger/erlang_handler.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2019-08-13T23:22:33.000Z | 2019-08-13T23:22:33.000Z | lib/logger/lib/logger/erlang_handler.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/logger/lib/logger/erlang_handler.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | defmodule Logger.ErlangHandler do
@moduledoc false
@doc """
Hook required by `:logger`.
"""
def log(%{meta: %{domain: [:otp, :sasl | _]}}, %{sasl_reports?: false}) do
:ok
end
def log(%{meta: %{domain: [:supervisor_report]}}, %{sasl_reports?: false}) do
:ok
end
def log(%{level: level, msg: m... | 28.268657 | 95 | 0.61774 |
d53d91ed31bafd722c3b37a67181ac9fa46de018 | 1,207 | ex | Elixir | lib/tortoise311/package.ex | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 2 | 2021-12-23T21:51:31.000Z | 2022-02-20T22:29:24.000Z | lib/tortoise311/package.ex | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 11 | 2021-11-18T01:23:15.000Z | 2022-03-28T18:15:18.000Z | lib/tortoise311/package.ex | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 3 | 2021-11-19T16:23:38.000Z | 2022-03-18T11:36:54.000Z | defmodule Tortoise311.Package do
@moduledoc false
alias Tortoise311.Package
@opaque message ::
Package.Connect.t()
| Package.Connack.t()
| Package.Publish.t()
| Package.Puback.t()
| Package.Pubrec.t()
| Package.Pubrel.t()
| Pack... | 27.431818 | 73 | 0.598177 |
d53d94cbea228e83e59ac274936d06446986f66a | 10,330 | ex | Elixir | lib/elixir_ex_aliyun_ots_table_store_primary_key_schema.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | null | null | null | lib/elixir_ex_aliyun_ots_table_store_primary_key_schema.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 1 | 2022-02-08T06:37:02.000Z | 2022-02-08T06:37:02.000Z | lib/elixir_ex_aliyun_ots_table_store_primary_key_schema.ex | hou8/tablestore_protos | 1a3223326b92bbe196d57ce4dd19b5a8db1c728d | [
"MIT"
] | 2 | 2022-01-24T06:13:03.000Z | 2022-01-24T08:33:41.000Z | # credo:disable-for-this-file
defmodule(ExAliyunOts.TableStore.PrimaryKeySchema) do
@moduledoc false
(
defstruct(name: nil, type: nil, option: nil)
(
(
@spec encode(struct) :: {:ok, iodata} | {:error, any}
def(encode(msg)) do
try do
{:ok, encode!(msg)}
... | 27.473404 | 98 | 0.471249 |
d53d9cfe66fd722174d7326fbc6f20069d21b283 | 1,691 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/goal_visit_time_on_site_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics/lib/google_api/analytics/v3/model/goal_visit_time_on_site_details.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics/lib/google_api/analytics/v3/model/goal_visit_time_on_site_details.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.82 | 130 | 0.737433 |
d53d9e706837890c5abf9c2a754240ae70e575ab | 933 | exs | Elixir | mix.exs | jonzlin95/triton | 7201102a10148db27bac1172f0f4d5fec5672674 | [
"MIT"
] | null | null | null | mix.exs | jonzlin95/triton | 7201102a10148db27bac1172f0f4d5fec5672674 | [
"MIT"
] | null | null | null | mix.exs | jonzlin95/triton | 7201102a10148db27bac1172f0f4d5fec5672674 | [
"MIT"
] | null | null | null | defmodule Triton.Mixfile do
use Mix.Project
@version "0.2.4"
@url "https://github.com/blitzstudios/triton"
@maintainers ["Weixi Yen"]
def project do
[name: "Triton",
app: :triton,
version: @version,
source_url: @url,
elixir: "~> 1.4",
description: "Pure Elixir Cassandra ORM buil... | 20.733333 | 70 | 0.555198 |
d53dac254a069d0ace7ebabf36c108b920e86548 | 1,444 | exs | Elixir | test/supervisor_test.exs | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | test/supervisor_test.exs | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | test/supervisor_test.exs | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | defmodule Verk.SupervisorTest do
use ExUnit.Case
import Verk.Supervisor
setup do
Application.delete_env(:verk, :local_node_id)
Application.put_env(:verk, :node_id, "123")
Application.put_env(:verk, :redis_pool_size, 3)
on_exit(fn ->
Application.delete_env(:verk, :node_id)
Application... | 30.723404 | 95 | 0.664127 |
d53dae52632a868a34e4c9929205429b97a2aee4 | 627 | ex | Elixir | lib/central/helpers/component_helper.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central/helpers/component_helper.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/central/helpers/component_helper.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Central.Helpers.ComponentHelper do
@moduledoc """
"""
# http://blog.danielberkompas.com/2017/01/17/reusable-templates-in-phoenix.html
#
# Example usage:
# <%= central_component "tabs" do %>
# <%= central_component "tab", name: "All Products" %>
# <%= central_component "tab", name: "Featur... | 29.857143 | 91 | 0.674641 |
d53df40dbe54fa4e1b4e5251b26e2fe2489d7beb | 5,105 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_run.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_run.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_run.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 52.091837 | 244 | 0.68286 |
d53e01f441c0a0dfec644dc4047d427d08c61c62 | 67 | exs | Elixir | test/test_helper.exs | TheRealReal/algolia-elixir | 52ee6347fc5969c3a8ea1eab9ca8dfb2aec0fae5 | [
"Apache-2.0"
] | 2 | 2020-04-22T11:29:26.000Z | 2021-03-24T18:23:39.000Z | test/test_helper.exs | TheRealReal/algolia-elixir | 52ee6347fc5969c3a8ea1eab9ca8dfb2aec0fae5 | [
"Apache-2.0"
] | 1 | 2021-11-08T17:18:44.000Z | 2021-11-08T20:46:26.000Z | test/test_helper.exs | TheRealReal/algolia-elixir | 52ee6347fc5969c3a8ea1eab9ca8dfb2aec0fae5 | [
"Apache-2.0"
] | 1 | 2022-02-28T00:03:53.000Z | 2022-02-28T00:03:53.000Z | Code.require_file("telemetry_helper.exs", __DIR__)
ExUnit.start()
| 16.75 | 50 | 0.791045 |
d53e1201ac0f1634cc5d799dc814024de8b7a9d0 | 2,557 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/traffic_percent_strategy.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/traffic_percent_strategy.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/traffic_percent_strategy.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 53.270833 | 847 | 0.730153 |
d53e18baa3ea4e21154c96b5a19dd98e10141788 | 28,599 | exs | Elixir | test/tune/spotify/session/http_test.exs | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | 1 | 2021-07-09T11:57:41.000Z | 2021-07-09T11:57:41.000Z | test/tune/spotify/session/http_test.exs | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | null | null | null | test/tune/spotify/session/http_test.exs | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | 2 | 2021-07-09T11:57:45.000Z | 2022-01-06T23:37:19.000Z | defmodule Tune.Spotify.Session.HTTPTest do
use ExUnit.Case
use ExUnitProperties
import Mox
import Eventually
alias Tune.{Generators, Spotify.Schema, Spotify.Session.HTTP, Spotify.Client}
alias Schema.{Album, Artist, Episode, Player, Playlist, Show, Track}
@default_timeouts %{
refresh: 200,
retr... | 32.64726 | 98 | 0.619497 |
d53e37a5ed6f4f7fc428960a891e47035b04f601 | 244 | exs | Elixir | priv/repo/migrations/20210106201003_create_photos.exs | kevinmartiniano/elixir-insta-api | 5025e02f111a4952279839d92f64f960ca08026a | [
"Apache-2.0"
] | 2 | 2021-01-07T23:46:50.000Z | 2021-01-08T12:16:00.000Z | priv/repo/migrations/20210106201003_create_photos.exs | kevinmartiniano/elixir-insta-api | 5025e02f111a4952279839d92f64f960ca08026a | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20210106201003_create_photos.exs | kevinmartiniano/elixir-insta-api | 5025e02f111a4952279839d92f64f960ca08026a | [
"Apache-2.0"
] | null | null | null | defmodule InstaApi.Repo.Migrations.CreatePhotos do
use Ecto.Migration
def change do
create table(:photos) do
add :image_url, :string
add :caption, :string
add :id_user, :integer
timestamps()
end
end
end
| 16.266667 | 50 | 0.659836 |
d53e6f87e86a0275f332b82691e90ae990c3f5ea | 1,367 | exs | Elixir | test/tempfile_test.exs | glejeune/tempfile | 00b4174ffc167b644942a66c6c66e67d1a1fdf6b | [
"FSFAP"
] | 1 | 2017-10-16T07:24:27.000Z | 2017-10-16T07:24:27.000Z | test/tempfile_test.exs | glejeune/tempfile | 00b4174ffc167b644942a66c6c66e67d1a1fdf6b | [
"FSFAP"
] | null | null | null | test/tempfile_test.exs | glejeune/tempfile | 00b4174ffc167b644942a66c6c66e67d1a1fdf6b | [
"FSFAP"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule TempfileTest do
use ExUnit.Case
test "the basics" do
tf = Tempfile.open
if nil == tf do
IO.puts "NULL !!!!"
end
assert(Tempfile.open? tf)
assert(Tempfile.exists? tf)
tf = Tempfile.close tf
assert(false == Tempfile.open? tf)
... | 21.359375 | 52 | 0.640819 |
d53e7c730e9efc4208a5b8adb051bf47f5ef726a | 5,753 | ex | Elixir | lib/component/builder.ex | dmvt/component | f4227f9300ba880b636a3f9560a0f9616805cb07 | [
"MIT"
] | null | null | null | lib/component/builder.ex | dmvt/component | f4227f9300ba880b636a3f9560a0f9616805cb07 | [
"MIT"
] | null | null | null | lib/component/builder.ex | dmvt/component | f4227f9300ba880b636a3f9560a0f9616805cb07 | [
"MIT"
] | null | null | null | defmodule Component.Builder do
@moduledoc """
Conveniences for building components.
This module can be `use`-d into a module in order to build a component
pipeline:
defmodule MyApp do
use Component.Builder
component Component.Logger, some: :option
component :a_component_function... | 26.389908 | 83 | 0.684686 |
d53e978bbe5cf7f0923e9cc81d30985c98dbff1d | 6,268 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/attached_disk_initialize_params.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/attached_disk_initialize_params.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/attached_disk_initialize_params.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 ... | 57.504587 | 268 | 0.736918 |
d53eb7e31603455fa46ed1685b37f938f38d6aca | 35,846 | ex | Elixir | lib/elixir/lib/kernel/typespec.ex | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/typespec.ex | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/typespec.ex | bsmr-erlang/elixir | 0e72d4839cda97edce75ca0c537555ce4ead7a6a | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.Typespec do
@moduledoc false
@doc """
Defines a type.
This macro is responsible for handling the attribute `@type`.
## Examples
@type my_type :: atom
"""
defmacro deftype(type) do
pos = :elixir_locals.cache_env(__CALLER__)
%{line: line, file: file, module: module} = __CA... | 29.527183 | 99 | 0.617921 |
d53ecad164715d67d8ba04a16f275eb9180ef44b | 194 | exs | Elixir | test/controllers/page_controller_test.exs | outofboundstech/chatbot | a185ff7d6e7ae3f9d12a8b61baffe3d07e1ad069 | [
"FSFUL"
] | null | null | null | test/controllers/page_controller_test.exs | outofboundstech/chatbot | a185ff7d6e7ae3f9d12a8b61baffe3d07e1ad069 | [
"FSFUL"
] | 1 | 2016-05-17T04:53:02.000Z | 2016-05-17T04:53:02.000Z | test/controllers/page_controller_test.exs | outofboundstech/ChatBot | a185ff7d6e7ae3f9d12a8b61baffe3d07e1ad069 | [
"FSFUL"
] | null | null | null | defmodule ChatBot.PageControllerTest do
use ChatBot.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Free Chats Unlimited"
end
end
| 21.555556 | 61 | 0.680412 |
d53ed02ad7b83116d1f318079431237de002a1e3 | 503 | ex | Elixir | apps/tai/lib/tai/new_orders/transitions/skip.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/new_orders/transitions/skip.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/new_orders/transitions/skip.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.NewOrders.Transitions.Skip do
@moduledoc """
Bypass sending the order to the venue
"""
use Ecto.Schema
import Ecto.Changeset
@behaviour Tai.NewOrders.Transition
@type t :: %__MODULE__{}
@primary_key false
embedded_schema do
end
def changeset(transition, params) do
transitio... | 14.371429 | 43 | 0.658052 |
d53f39293d2f2c3d460e92e80d62a299e8fe07ba | 2,968 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/org_controller.ex | valiot/nerves_hub_web | 01aef0b9b6b07d9f5c5440f7df0d2a3ec026daa8 | [
"Apache-2.0"
] | 1 | 2020-08-04T14:13:24.000Z | 2020-08-04T14:13:24.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/org_controller.ex | valiot/nerves_hub_web | 01aef0b9b6b07d9f5c5440f7df0d2a3ec026daa8 | [
"Apache-2.0"
] | 1 | 2020-09-08T15:15:50.000Z | 2020-09-08T16:13:28.000Z | apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/org_controller.ex | valiot/nerves_hub_web | 01aef0b9b6b07d9f5c5440f7df0d2a3ec026daa8 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubWWWWeb.OrgController do
use NervesHubWWWWeb, :controller
alias Ecto.Changeset
alias NervesHubWebCore.Accounts
alias NervesHubWebCore.Accounts.Email
alias NervesHubWebCore.Accounts.{Invite, OrgKey, OrgUser}
alias NervesHubWebCore.Mailer
plug(:validate_role, [org: :admin] when action in... | 29.68 | 94 | 0.608827 |
d53f565cbb65ff0358008e9f2c1243af1293b5bc | 222 | ex | Elixir | steganoencrypto/lib/steganoencrypto/image.ex | sreecodeslayer/learn-elixir-phoenix | e32bcdbceef53b71dc560d79411c2023c13488ca | [
"MIT"
] | 1 | 2019-01-09T13:41:17.000Z | 2019-01-09T13:41:17.000Z | steganoencrypto/lib/steganoencrypto/image.ex | sreecodeslayer/learn-elixir-phoenix | e32bcdbceef53b71dc560d79411c2023c13488ca | [
"MIT"
] | null | null | null | steganoencrypto/lib/steganoencrypto/image.ex | sreecodeslayer/learn-elixir-phoenix | e32bcdbceef53b71dc560d79411c2023c13488ca | [
"MIT"
] | null | null | null | defmodule Steganoencrypto.Image do
def hide(ciphertext, filepath) do
IO.puts("ENC TEXT :: #{ciphertext}")
end
def unhide(filepath) do
IO.puts("IMG :: #{filepath}")
message = "unhidden message"
end
end
| 20.181818 | 40 | 0.666667 |
d53f66b989c19e71417286266b542be3a8ddaa87 | 1,284 | ex | Elixir | lib/api/router.ex | dustinrouillard/lanyard-redis | c1bed07df9501c5d8c2373741088b824c3b61331 | [
"MIT"
] | null | null | null | lib/api/router.ex | dustinrouillard/lanyard-redis | c1bed07df9501c5d8c2373741088b824c3b61331 | [
"MIT"
] | 1 | 2021-11-26T01:07:32.000Z | 2021-11-26T01:07:32.000Z | lib/api/router.ex | dustinrouillard/lanyard-redis | c1bed07df9501c5d8c2373741088b824c3b61331 | [
"MIT"
] | null | null | null | defmodule Lanyard.Api.Router do
import Plug.Conn
alias Lanyard.Api.Routes.V1
alias Lanyard.Api.Routes.Discord
alias Lanyard.Api.Routes.Metrics
alias Lanyard.Api.Util
alias Lanyard.Api.Quicklinks
use Plug.Router
@supported_quicktypes ["png", "gif", "webp", "jpg", "jpeg"]
plug(Corsica,
origins: ... | 18.882353 | 67 | 0.623832 |
d53fb0c05e1031faa7984dbb4de07196c6c634ed | 1,231 | exs | Elixir | test/ex_oauth2_provider/scopes_test.exs | aidanranney/ex_oauth2_provider | b6ab9c37d39430cd220b2be9794502111c05585c | [
"MIT"
] | 161 | 2017-02-27T19:29:17.000Z | 2021-12-22T12:29:14.000Z | test/ex_oauth2_provider/scopes_test.exs | lawalalao/ex_oauth2_provider | 093cc3b289a45e6aeac6205d40b632c0a0af8b3c | [
"MIT"
] | 54 | 2017-03-23T21:05:03.000Z | 2022-02-22T00:16:59.000Z | test/ex_oauth2_provider/scopes_test.exs | lawalalao/ex_oauth2_provider | 093cc3b289a45e6aeac6205d40b632c0a0af8b3c | [
"MIT"
] | 49 | 2017-02-26T22:38:34.000Z | 2022-03-07T19:17:03.000Z | defmodule ExOauth2Provider.ScopesTest do
use ExUnit.Case
alias ExOauth2Provider.Scopes
test "all?#true" do
scopes = ["read", "write", "profile"]
assert Scopes.all?(scopes, ["read", "profile"])
assert Scopes.all?(scopes, ["write"])
assert Scopes.all?(scopes, [])
end
test "all?#false" do
s... | 29.309524 | 77 | 0.631194 |
d53fb201cefe4cb014dc42d7e7a8e06abb8231b1 | 197 | exs | Elixir | elixir_in_action/ch05_concurrency_primitives/calculator_runner.exs | shivam-tripathi/learningElixir | 195af962dcd239230afd7732b88e577f26fc1eff | [
"MIT"
] | null | null | null | elixir_in_action/ch05_concurrency_primitives/calculator_runner.exs | shivam-tripathi/learningElixir | 195af962dcd239230afd7732b88e577f26fc1eff | [
"MIT"
] | null | null | null | elixir_in_action/ch05_concurrency_primitives/calculator_runner.exs | shivam-tripathi/learningElixir | 195af962dcd239230afd7732b88e577f26fc1eff | [
"MIT"
] | null | null | null | Code.load_file("calculator.exs", ".")
calc = Calculator.start(10)
Calculator.add(calc, 10)
Calculator.sub(calc, 8)
Calculator.mult(calc, 2)
Calculator.div(calc, 3)
IO.puts(Calculator.value(calc))
| 21.888889 | 37 | 0.741117 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.