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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7389815a7e54d559f1b51c0f09eb81809ca04271 | 958 | ex | Elixir | lib/docusign/model/new_account_summary.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/new_account_summary.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/new_account_summary.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # 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 DocuSign.Model.NewAccountSummary do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:accountId,
:accountIdGuid,
:acc... | 23.95 | 92 | 0.647182 |
7389b22e8d38923a164832985c2bd181a35b9927 | 2,529 | ex | Elixir | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/synthesize_speech_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/synthesize_speech_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/text_to_speech/lib/google_api/text_to_speech/v1beta1/model/synthesize_speech_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... | 47.716981 | 374 | 0.75089 |
7389b3720c3ec11990fb0b9a026999155d21e821 | 627 | ex | Elixir | lib/rockelivery/user/actions/create.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/rockelivery/user/actions/create.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | lib/rockelivery/user/actions/create.ex | joabehenrique/rockelivery | 02f83fe99df8e27d4e2a6270fecb39a521f2ceaf | [
"MIT"
] | null | null | null | defmodule Rockelivery.User.Actions.Create do
alias Rockelivery.{Error, Repo}
alias Rockelivery.User.User
def call(%{"cep" => cep} = params) do
changeset = User.changeset(params)
with {:ok, %User{}} <- User.build(changeset),
{:ok, _cep_info} <- client().get_cep_info(cep),
{:ok, %User{}}... | 26.125 | 69 | 0.620415 |
7389d9c98a1815af02a7c33e9db87d155be2b1e9 | 1,778 | ex | Elixir | test/support/model_case.ex | soarpatriot/flour | 52a57c553da84bd3abad5834014e06370f40a20b | [
"MIT"
] | 1 | 2016-08-05T07:03:43.000Z | 2016-08-05T07:03:43.000Z | test/support/model_case.ex | soarpatriot/flour | 52a57c553da84bd3abad5834014e06370f40a20b | [
"MIT"
] | null | null | null | test/support/model_case.ex | soarpatriot/flour | 52a57c553da84bd3abad5834014e06370f40a20b | [
"MIT"
] | null | null | null | defmodule Flour.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. For th... | 26.939394 | 84 | 0.68279 |
7389ebde9f4a8e31e634259c762865894727c589 | 1,859 | exs | Elixir | hermes/config/dev.exs | jparr721/Hermes | 0ce141897e292a6e4492461f6581f0619c43b8bf | [
"MIT"
] | null | null | null | hermes/config/dev.exs | jparr721/Hermes | 0ce141897e292a6e4492461f6581f0619c43b8bf | [
"MIT"
] | null | null | null | hermes/config/dev.exs | jparr721/Hermes | 0ce141897e292a6e4492461f6581f0619c43b8bf | [
"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.
#
# In order to use HTTPS in development, a self-signed... | 32.614035 | 170 | 0.699839 |
738a092782f0b469dfba2e86950b1d86caaf5521 | 304 | ex | Elixir | lib/dml_runner/consumer.ex | sizumita/DMLRunner | 9200346be11cf7422f34d54c4065fab2010d79c4 | [
"MIT"
] | null | null | null | lib/dml_runner/consumer.ex | sizumita/DMLRunner | 9200346be11cf7422f34d54c4065fab2010d79c4 | [
"MIT"
] | null | null | null | lib/dml_runner/consumer.ex | sizumita/DMLRunner | 9200346be11cf7422f34d54c4065fab2010d79c4 | [
"MIT"
] | null | null | null | defmodule DmlRunner.Consumer do
use Nostrum.Consumer
alias DmlRunner.Command
alias Nostrum.Api
def start_link do
Consumer.start_link(__MODULE__)
end
def handle_event({:MESSAGE_CREATE, msg, _ws_state}) do
Command.handle(msg)
end
def handle_event(_event) do
:noop
end
end
| 16 | 56 | 0.733553 |
738a0d7414a22e6585f824e3bb41c7d303e2cf3e | 81 | ex | Elixir | lib/elixir/test/elixir/fixtures/parallel_compiler/bar.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/elixir/test/elixir/fixtures/parallel_compiler/bar.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/fixtures/parallel_compiler/bar.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule BarParallel do
end
require FooParallel
IO.puts(FooParallel.message())
| 13.5 | 30 | 0.82716 |
738a2dcce9051639c6b261216cfe3d427c0a1e2d | 4 | ex | Elixir | testData/org/elixir_lang/parser_definition/literal_sigil_line_parsing_test_case/Minimal.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/literal_sigil_line_parsing_test_case/Minimal.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/literal_sigil_line_parsing_test_case/Minimal.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ~X{} | 4 | 4 | 0.25 |
738a39030ca65a50a41dc4412aa90a56e964becf | 144 | exs | Elixir | .formatter.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 13 | 2017-12-11T13:59:42.000Z | 2020-11-16T21:52:31.000Z | .formatter.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 310 | 2017-11-13T22:52:26.000Z | 2018-11-19T17:49:30.000Z | .formatter.exs | vforgione/plenario2 | 001526e5c60a1d32794a18f3fd65ead6cade1a29 | [
"Apache-2.0"
] | 3 | 2017-12-05T00:36:12.000Z | 2020-03-10T15:15:29.000Z | [
import_deps: [:ecto, :phoenix],
inputs: ["*.{ex,exs}", "{config,lib,priv,test}/**/*.{ex,exs}"],
subdirectories: ["priv/*/migrations"]
]
| 24 | 65 | 0.576389 |
738a4a204e19e0604831c4bdfc3061c5d43ab6d0 | 143 | exs | Elixir | test/chopperbot/split/order_calculator_test.exs | flipay/chopperbot | 29d81a343442bdd8eae7627bc6eb3c7d83cd0151 | [
"MIT"
] | 5 | 2019-12-14T03:12:28.000Z | 2020-03-04T12:58:44.000Z | test/chopperbot/split/order_calculator_test.exs | flipay/chopperbot | 29d81a343442bdd8eae7627bc6eb3c7d83cd0151 | [
"MIT"
] | 12 | 2020-01-07T09:31:33.000Z | 2020-03-27T06:11:21.000Z | test/chopperbot/split/order_calculator_test.exs | flipay/chopperbot | 29d81a343442bdd8eae7627bc6eb3c7d83cd0151 | [
"MIT"
] | 1 | 2020-01-09T10:35:37.000Z | 2020-01-09T10:35:37.000Z | defmodule Chopperbot.Split.OrderCalculatorTest do
use ExUnit.Case, async: true
doctest Chopperbot.Split.OrderCalculator, import: true
end
| 23.833333 | 56 | 0.818182 |
738a4a4ac2bcb2b6580a2ca191714f54f2d642e7 | 1,878 | exs | Elixir | clients/big_query_reservation/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query_reservation/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query_reservation/mix.exs | 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... | 28.029851 | 112 | 0.663472 |
738a5972998080607fea039cf6df91246fd176fa | 829 | exs | Elixir | test/radex/writer/example_test.exs | smartlogic/radex | 001d2b6fc564d9fbcbd98fcffdc89a03dc210c80 | [
"MIT"
] | 3 | 2017-10-12T18:23:33.000Z | 2019-05-14T21:28:09.000Z | test/radex/writer/example_test.exs | smartlogic/radex | 001d2b6fc564d9fbcbd98fcffdc89a03dc210c80 | [
"MIT"
] | null | null | null | test/radex/writer/example_test.exs | smartlogic/radex | 001d2b6fc564d9fbcbd98fcffdc89a03dc210c80 | [
"MIT"
] | null | null | null | defmodule Radex.Writer.ExampleTest do
use ExUnit.Case
alias Radex.Conn
alias Radex.Metadata
alias Radex.Writer.Example
test "filters out empty examples from metadata" do
metadata = %{
"key1" => %Metadata{success: true},
"key2" => %Metadata{success: true, conns: [%Conn{}]}
}
assert E... | 30.703704 | 85 | 0.68275 |
738a64943264a199f50010642c785a6bd4db1e56 | 3,275 | exs | Elixir | test/wunderground/astronomy_test.exs | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 2 | 2017-08-23T21:48:07.000Z | 2017-10-16T21:35:36.000Z | test/wunderground/astronomy_test.exs | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 8 | 2017-08-23T10:02:35.000Z | 2017-09-03T11:35:36.000Z | test/wunderground/astronomy_test.exs | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 1 | 2021-06-22T15:02:15.000Z | 2021-06-22T15:02:15.000Z | defmodule Wunderground.AstronomyTest do
@moduledoc false
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
alias Wunderground.Astronomy
@not_found {:not_found, "No cities match your search query"}
@station_offline {:station_offline, "The station you're looking for either doesn't... | 28.478261 | 124 | 0.630534 |
738a67be7d1d652d4ec30f64d305b7bfdb5b0e3e | 3,676 | ex | Elixir | apps/language_server/lib/language_server/providers/document_symbols.ex | tmepple/elixir-ls | 01d5ee857bb8b9e729da622dbc4f64b680aac3fc | [
"Apache-2.0"
] | 912 | 2017-06-08T03:58:03.000Z | 2021-09-06T03:42:07.000Z | apps/language_server/lib/language_server/providers/document_symbols.ex | tmepple/elixir-ls | 01d5ee857bb8b9e729da622dbc4f64b680aac3fc | [
"Apache-2.0"
] | 196 | 2017-06-09T23:32:16.000Z | 2021-10-15T15:38:43.000Z | apps/language_server/lib/language_server/providers/document_symbols.ex | tmepple/elixir-ls | 01d5ee857bb8b9e729da622dbc4f64b680aac3fc | [
"Apache-2.0"
] | 78 | 2017-07-06T18:35:34.000Z | 2020-04-12T08:10:45.000Z | defmodule ElixirLS.LanguageServer.Providers.DocumentSymbols do
@moduledoc """
Document Symbols provider
"""
@symbol_enum %{
file: 1,
module: 2,
namespace: 3,
package: 4,
class: 5,
method: 6,
property: 7,
field: 8,
constructor: 9,
enum: 10,
interface: 11,
function:... | 25.887324 | 95 | 0.593308 |
738a8191bae807243735af23d26ef3a83c49362d | 1,121 | exs | Elixir | test/game/command/debug_test.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/game/command/debug_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/game/command/debug_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Command.DebugTest do
use ExVenture.CommandCase
alias Game.Command.Debug
doctest Debug
describe "list debug information for admins" do
setup do
user = %{flags: ["admin"]}
%{state: %{user: user, socket: :socket}}
end
test "displays debug information", %{state: state} do... | 21.557692 | 57 | 0.604817 |
738b0775d199b48fc57380f523900443f8fe1a67 | 3,939 | ex | Elixir | lib/phoenix/live_dashboard/components/shared_usage_card_component.ex | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/components/shared_usage_card_component.ex | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/components/shared_usage_card_component.ex | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.SharedUsageCardComponent do
use Phoenix.LiveDashboard.Web, :live_component
@csp_nonces %{img: nil, script: nil, style: nil}
@impl true
def mount(socket) do
{:ok, socket}
end
def normalize_params(params) do
params
|> validate_required([:usages, :total_data, :tot... | 32.553719 | 138 | 0.520183 |
738b233d19a832194f5c442979f6ae4639449de0 | 77 | exs | Elixir | v01/ch15/case.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v01/ch15/case.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v01/ch15/case.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | n = 3
case n do
1 -> IO.puts "A"
2 -> IO.puts "B"
_ -> IO.puts "C"
end
| 11 | 18 | 0.467532 |
738b317d08476b39c185b58e229cf4ef78a2ba4e | 405 | exs | Elixir | test/prop_web/views/error_view_test.exs | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 22 | 2021-06-29T09:25:52.000Z | 2022-03-16T09:17:24.000Z | test/prop_web/views/error_view_test.exs | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 54 | 2021-06-28T19:54:17.000Z | 2022-03-27T06:49:30.000Z | test/prop_web/views/error_view_test.exs | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 2 | 2022-01-08T10:16:30.000Z | 2022-02-20T09:45:50.000Z | defmodule PropWeb.ErrorViewTest do
use PropWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(PropWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
assert rend... | 27 | 89 | 0.725926 |
738b63856dd658e29b2233e791266a8d390ad7e4 | 11,682 | ex | Elixir | lib/epicenter_web/live/case_investigation_contact_live.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | lib/epicenter_web/live/case_investigation_contact_live.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | lib/epicenter_web/live/case_investigation_contact_live.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.CaseInvestigationContactLive do
use EpicenterWeb, :live_view
import Epicenter.PhiValidation, only: [validate_phi: 2]
import EpicenterWeb.ConfirmationModal, only: [confirmation_prompt: 1]
import EpicenterWeb.IconView, only: [back_icon: 0]
import EpicenterWeb.LiveHelpers,
only: [
... | 34.767857 | 240 | 0.64441 |
738b712dc003ccedbbc2313040006c7e08c307a5 | 185 | ex | Elixir | debian/ndn-perl-apache2-mod-perl.cron.d.ex | dreamhost/dpkg-ndn-perl-mod-perl | b22e73bc5bbff804cece98fd2b8138b14883efd3 | [
"Apache-2.0"
] | null | null | null | debian/ndn-perl-apache2-mod-perl.cron.d.ex | dreamhost/dpkg-ndn-perl-mod-perl | b22e73bc5bbff804cece98fd2b8138b14883efd3 | [
"Apache-2.0"
] | null | null | null | debian/ndn-perl-apache2-mod-perl.cron.d.ex | dreamhost/dpkg-ndn-perl-mod-perl | b22e73bc5bbff804cece98fd2b8138b14883efd3 | [
"Apache-2.0"
] | null | null | null | #
# Regular cron jobs for the ndn-perl-apache2-mod-perl package
#
0 4 * * * root [ -x /usr/bin/ndn-perl-apache2-mod-perl_maintenance ] && /usr/bin/ndn-perl-apache2-mod-perl_maintenance
| 37 | 118 | 0.724324 |
738b84e8e9cf54bae3ff4de8acd45ca19401c66e | 1,429 | exs | Elixir | test/test_helper.exs | pmarreck/coherence | aa0ef8403197dfd262863f4b0e592122a1a3e525 | [
"MIT"
] | 1,347 | 2016-07-04T23:20:10.000Z | 2022-02-10T20:10:48.000Z | test/test_helper.exs | pmarreck/coherence | aa0ef8403197dfd262863f4b0e592122a1a3e525 | [
"MIT"
] | 378 | 2016-07-06T16:30:28.000Z | 2021-09-16T13:34:05.000Z | test/test_helper.exs | pmarreck/coherence | aa0ef8403197dfd262863f4b0e592122a1a3e525 | [
"MIT"
] | 276 | 2016-07-06T20:26:17.000Z | 2021-12-06T19:32:41.000Z | ExUnit.start()
Application.ensure_all_started(:coherence)
# Code.require_file("./support/gettext.exs", __DIR__)
# Code.require_file("./support/messages.exs", __DIR__)
# Code.require_file("./support/view_helpers.exs", __DIR__)
# Code.require_file("./support/web.exs", __DIR__)
# Code.require_file("./support/dummy_contro... | 43.30303 | 81 | 0.76697 |
738bac902e304793be260a0f306958fca1b093af | 55 | ex | Elixir | lib/recycling_itsavesplanet_org_web/views/page_view.ex | AlShu/recycling.itsavesplanet.org | dd26944e39b250f3b0d12cbb99abb91e8f8ff49e | [
"MIT"
] | null | null | null | lib/recycling_itsavesplanet_org_web/views/page_view.ex | AlShu/recycling.itsavesplanet.org | dd26944e39b250f3b0d12cbb99abb91e8f8ff49e | [
"MIT"
] | null | null | null | lib/recycling_itsavesplanet_org_web/views/page_view.ex | AlShu/recycling.itsavesplanet.org | dd26944e39b250f3b0d12cbb99abb91e8f8ff49e | [
"MIT"
] | null | null | null | defmodule RISPWeb.PageView do
use RISPWeb, :view
end
| 13.75 | 29 | 0.781818 |
738bb07ac4dd00ab29057467862cbbf9d9d64d78 | 881 | exs | Elixir | mix.exs | HandOfGod94/vscode_exunit_formatter | ff10c51904435082516c926fb7ee3ca2c9104efe | [
"MIT"
] | null | null | null | mix.exs | HandOfGod94/vscode_exunit_formatter | ff10c51904435082516c926fb7ee3ca2c9104efe | [
"MIT"
] | null | null | null | mix.exs | HandOfGod94/vscode_exunit_formatter | ff10c51904435082516c926fb7ee3ca2c9104efe | [
"MIT"
] | null | null | null | defmodule VSCodeExUnitFormatter.MixProject do
use Mix.Project
def project do
[
app: :vscode_exunit_formatter,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.json": ... | 25.911765 | 94 | 0.584563 |
738be0875a58b776bb82b61b89dd9a0ab38be331 | 2,841 | ex | Elixir | lib/scrivener/headers.ex | Sardoan/scrivener_headers_json | 80a684b90ee59cf455864bf61f2d41fc9ee4bba3 | [
"MIT"
] | null | null | null | lib/scrivener/headers.ex | Sardoan/scrivener_headers_json | 80a684b90ee59cf455864bf61f2d41fc9ee4bba3 | [
"MIT"
] | null | null | null | lib/scrivener/headers.ex | Sardoan/scrivener_headers_json | 80a684b90ee59cf455864bf61f2d41fc9ee4bba3 | [
"MIT"
] | null | null | null | defmodule Scrivener.Headers do
@moduledoc """
Helpers for paginating API responses with [Scrivener](https://github.com/drewolson/scrivener) and HTTP headers. Implements [RFC-5988](https://mnot.github.io/I-D/rfc5988bis/), the proposed standard for Web linking.
Use `paginate/2` to set the pagination headers:
... | 36.896104 | 215 | 0.669835 |
738bedb9bb3fb84cddd85b09393c86754f8d2982 | 11,136 | exs | Elixir | test/swoosh/adapters/socket_labs_test.exs | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | 1 | 2020-12-22T19:28:30.000Z | 2020-12-22T19:28:30.000Z | test/swoosh/adapters/socket_labs_test.exs | Deepwalker/swoosh | 5970e1a20e5d787347ce825f4803e972ddc30095 | [
"MIT"
] | 21 | 2021-03-08T10:04:20.000Z | 2022-03-23T10:20:17.000Z | test/swoosh/adapters/socket_labs_test.exs | nash-io/swoosh | 05c8676890da07403225c302f9a069fc7d221330 | [
"MIT"
] | 1 | 2019-11-05T19:06:55.000Z | 2019-11-05T19:06:55.000Z | defmodule Swoosh.Adapters.SocketLabsTest do
use Swoosh.AdapterCase, async: true
import Swoosh.Email
alias Swoosh.Adapters.SocketLabs
@success_response """
{
"ErrorCode": "Success",
"MessageResults": [],
"TransactionReceipt": null
}
"""
setup do
bypass = Bypass.open()
con... | 28.335878 | 98 | 0.485004 |
738c01cbc5d7cc762685121764945f5c2467aa5b | 6,027 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/operating_system_versions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/operating_system_versions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/operating_system_versions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.883871 | 187 | 0.640285 |
738c1aa5e6e8a48c831d9ab777555576e2d489ae | 66 | exs | Elixir | 2020/otp/dash/test/test_helper.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/dash/test/test_helper.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/otp/dash/test/test_helper.exs | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Dash.Repo, :manual)
| 22 | 50 | 0.772727 |
738c25f342242810ce1cc8356a624719718e5bab | 1,764 | exs | Elixir | apps/admin_api/test/admin_api/v1/views/account_membership_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/views/account_membership_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/views/account_membership_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 33.283019 | 93 | 0.657596 |
738c7099b1c12f13e9ca26fcc68d712b65ca8cdd | 956 | ex | Elixir | test/support/properties_test_components.ex | darraghenright/surface | 6a6b1699f2f04c4f45686d96d48e33ab521423c9 | [
"MIT"
] | null | null | null | test/support/properties_test_components.ex | darraghenright/surface | 6a6b1699f2f04c4f45686d96d48e33ab521423c9 | [
"MIT"
] | null | null | null | test/support/properties_test_components.ex | darraghenright/surface | 6a6b1699f2f04c4f45686d96d48e33ab521423c9 | [
"MIT"
] | null | null | null | defmodule Surface.PropertiesTest.Components do
defmodule MyComponent do
use Surface.Component
@doc "The label"
property label, :string, required: true, default: ""
@doc "The class"
property class, :css_class
def render(assigns) do
~H"""
<div />
"""
end
end
defmodu... | 17.071429 | 56 | 0.60251 |
738c898e8c96747c9414c25ec81bdea5a4b938eb | 2,264 | exs | Elixir | test/ex_aws/instance_meta_test.exs | sivsushruth/ex_aws | 45a6fa6b6ed539066d1a5be0b04ef43d8305c4d0 | [
"MIT"
] | null | null | null | test/ex_aws/instance_meta_test.exs | sivsushruth/ex_aws | 45a6fa6b6ed539066d1a5be0b04ef43d8305c4d0 | [
"MIT"
] | null | null | null | test/ex_aws/instance_meta_test.exs | sivsushruth/ex_aws | 45a6fa6b6ed539066d1a5be0b04ef43d8305c4d0 | [
"MIT"
] | null | null | null | defmodule ExAws.InstanceMetaTest do
use ExUnit.Case, async: false
import Mox
# Let expect statements apply to ExAws.InstanceMetaTokenProvider process as well
setup :set_mox_from_context
test "instance_role" do
role_name = "dummy-role"
ExAws.Request.HttpMock
|> expect(:request, fn :put, _url, _... | 30.186667 | 94 | 0.639134 |
738cd3bbe849a41dbb54206036efa962569938e0 | 152 | ex | Elixir | apps/snitch_api/lib/snitch_api_web/views/option_type_view.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_api/lib/snitch_api_web/views/option_type_view.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_api/lib/snitch_api_web/views/option_type_view.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule SnitchApiWeb.OptionTypeView do
use SnitchApiWeb, :view
use JaSerializer.PhoenixView
attributes([
:display_name,
:name
])
end
| 15.2 | 40 | 0.730263 |
738cd8e7c984198c3db8944bf69e81f0d624acbb | 1,646 | exs | Elixir | backend/config/config.exs | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/config/config.exs | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/config/config.exs | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :edgehog,
ecto_repos: [Edgehog.Repo]
# Conf... | 26.983607 | 80 | 0.73147 |
738cfaf846876409570b9e1d39d6ccd9d8e10b66 | 64 | ex | Elixir | lib/web/views/setting_view.ex | coolandcodes/CodeSplintaCollector | fb1339022c23c11c336393b131dc6c1df4afdbd8 | [
"MIT"
] | null | null | null | lib/web/views/setting_view.ex | coolandcodes/CodeSplintaCollector | fb1339022c23c11c336393b131dc6c1df4afdbd8 | [
"MIT"
] | null | null | null | lib/web/views/setting_view.ex | coolandcodes/CodeSplintaCollector | fb1339022c23c11c336393b131dc6c1df4afdbd8 | [
"MIT"
] | null | null | null | defmodule TlcApp.Web.SettingView do
use TlcApp.Web, :view
end
| 16 | 35 | 0.78125 |
738d2a7dc6401009c9435729e5eddbd6a5554fbd | 1,836 | exs | Elixir | config/config.exs | danielhessell/wabanex | c0ad713a558a3cd52ca83bd22cd093e3c3c1b0f5 | [
"MIT"
] | null | null | null | config/config.exs | danielhessell/wabanex | c0ad713a558a3cd52ca83bd22cd093e3c3c1b0f5 | [
"MIT"
] | null | null | null | config/config.exs | danielhessell/wabanex | c0ad713a558a3cd52ca83bd22cd093e3c3c1b0f5 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :wabanex,
ecto_repos: [Wabanex.Repo]
# To a... | 31.655172 | 117 | 0.734205 |
738d2ff1b7bd78530119ad7ebc9e70cbf25f0321 | 242 | exs | Elixir | config/config.exs | hexedpackets/fault_tree | 340d08e8ea7733999531f79bdc712515053e0e85 | [
"Apache-2.0"
] | 3 | 2019-06-05T14:16:24.000Z | 2020-08-10T00:33:05.000Z | config/config.exs | hexedpackets/fault_tree | 340d08e8ea7733999531f79bdc712515053e0e85 | [
"Apache-2.0"
] | 15 | 2019-05-15T21:38:48.000Z | 2019-06-04T17:26:43.000Z | config/config.exs | hexedpackets/fault_tree | 340d08e8ea7733999531f79bdc712515053e0e85 | [
"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
config :trot, router: FaultTree.Router
config :logger, level: :debug
import_config "#{Mix.env()}.exs"
| 24.2 | 61 | 0.764463 |
738d6c5e85f28495fb86e1347ad19458499cc6cd | 917 | ex | Elixir | lib/changelog/transcripts/parser.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | lib/changelog/transcripts/parser.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | lib/changelog/transcripts/parser.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule Changelog.Transcripts.Parser do
@speaker_regex ~r{\*\*(.*?):\*\*}
def parse_text(string, participants \\ [])
def parse_text(string, participants) when is_nil(string), do: parse_text("", participants)
def parse_text(string, participants) do
@speaker_regex
|> Regex.split(string, include_captur... | 25.472222 | 92 | 0.586696 |
738d7d7d0834a242a909afec85bd198c46ae7c1c | 1,192 | ex | Elixir | lib/time_tracking_web/channels/user_socket.ex | leifg/time_tracking | 115c53482398f5aa6a2dbb246bee14c9f075b767 | [
"MIT"
] | 6 | 2018-01-09T08:57:20.000Z | 2018-06-20T08:59:42.000Z | lib/time_tracking_web/channels/user_socket.ex | leifg/time_tracking | 115c53482398f5aa6a2dbb246bee14c9f075b767 | [
"MIT"
] | 80 | 2016-05-04T20:31:37.000Z | 2021-07-12T05:12:29.000Z | lib/time_tracking_web/channels/user_socket.ex | leifg/time_tracking | 115c53482398f5aa6a2dbb246bee14c9f075b767 | [
"MIT"
] | null | null | null | defmodule TimeTrackingWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", TimeTrackingWeb.RoomChannel
## Transports
transport(:websocket, Phoenix.Transports.WebSocket)
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to ... | 31.368421 | 88 | 0.707215 |
738d9e333a70f3caffd0c6bc4c8f02d059589005 | 184 | exs | Elixir | test/util/words_test.exs | Celeo/gandalf_bot | f8e48b9a0b403fac5e29e514ce6c684d1bebeecc | [
"MIT"
] | null | null | null | test/util/words_test.exs | Celeo/gandalf_bot | f8e48b9a0b403fac5e29e514ce6c684d1bebeecc | [
"MIT"
] | null | null | null | test/util/words_test.exs | Celeo/gandalf_bot | f8e48b9a0b403fac5e29e514ce6c684d1bebeecc | [
"MIT"
] | null | null | null | defmodule Bot.Util.Words.Test do
alias Bot.Util.Words
use ExUnit.Case
test "can load words file" do
words = Words.load_words!()
assert length(words) > 100_000
end
end
| 18.4 | 34 | 0.701087 |
738dbe97c85df9b9b7835677df36ef085716f3a3 | 1,547 | ex | Elixir | fixtures/elixir_output/get_complex_url_params.ex | martinsirbe/curlconverter | c5324e85d2ca24ef4743fb2bb36139d23367e293 | [
"MIT"
] | 4,955 | 2015-01-02T09:04:20.000Z | 2021-10-06T03:54:43.000Z | fixtures/elixir_output/get_complex_url_params.ex | martinsirbe/curlconverter | c5324e85d2ca24ef4743fb2bb36139d23367e293 | [
"MIT"
] | 242 | 2015-03-27T05:59:11.000Z | 2021-10-03T08:36:05.000Z | fixtures/elixir_output/get_complex_url_params.ex | martinsirbe/curlconverter | c5324e85d2ca24ef4743fb2bb36139d23367e293 | [
"MIT"
] | 504 | 2015-01-02T16:04:36.000Z | 2021-10-01T03:43:55.000Z | request = %HTTPoison.Request{
method: :get,
url: "https://www.nomador.com/house-sitting/",
options: [],
headers: [],
params: [
{~s|page|, ~s|1|},
{~s|available|, ["", ~s|1|]},
{~s|location|, ~s|0|},
{~s|city[id]|, ~s|0|},
{~s|city[locality]|, ""},
{~s|city[locality_text]|, ""},
{~s... | 29.75 | 55 | 0.51713 |
738e19733ab552c3ba598b379e74b56ca9128a4c | 4,323 | ex | Elixir | lib/prometheus_phx.ex | theblitzapp/prometheus-phx | 0234a2464be673d33fc3da0c44298d85e60f7af7 | [
"Apache-2.0"
] | 5 | 2020-09-19T22:29:41.000Z | 2021-03-28T03:17:00.000Z | lib/prometheus_phx.ex | theblitzapp/prometheus-phx | 0234a2464be673d33fc3da0c44298d85e60f7af7 | [
"Apache-2.0"
] | 1 | 2021-04-15T19:03:45.000Z | 2021-04-15T19:03:45.000Z | lib/prometheus_phx.ex | theblitzapp/prometheus-phx | 0234a2464be673d33fc3da0c44298d85e60f7af7 | [
"Apache-2.0"
] | 4 | 2020-10-29T15:28:08.000Z | 2021-12-15T17:44:31.000Z | defmodule PrometheusPhx do
@moduledoc """
Handle the telemetry messages broadcasted from Phoenix
To attach to the Phoenix telemetry messages call the `setup/0` function. Then the handlers will receive the messages and write to prometheus.
"""
use Prometheus.Metric
require Prometheus.Contrib.HTTP
alias P... | 28.254902 | 143 | 0.636826 |
738e1f5254fbdab4ee887a05071f0096b847dc24 | 2,123 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_set_iam_policy_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_set_iam_policy_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_set_iam_policy_request.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... | 37.245614 | 167 | 0.732925 |
738e226e932e261bf4e832dd7db5c67af1479434 | 1,020 | ex | Elixir | test/process_managers/support/multi/todo_process_manager.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | 1 | 2022-02-20T10:42:07.000Z | 2022-02-20T10:42:07.000Z | test/process_managers/support/multi/todo_process_manager.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | test/process_managers/support/multi/todo_process_manager.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | defmodule Commanded.ProcessManagers.TodoProcessManager do
@moduledoc false
alias Commanded.ProcessManagers.{TodoApp, TodoProcessManager}
use Commanded.ProcessManagers.ProcessManager,
application: TodoApp,
name: __MODULE__
@derive Jason.Encoder
defstruct [:todo_uuid]
alias Commanded.ProcessManage... | 31.875 | 84 | 0.769608 |
738e2b1a578698935ad369cce137dd538a3e9328 | 559 | exs | Elixir | priv/repo/seeds.exs | eahanson/corex | 550020c5cbfc7dc828bc74e1edf0223c1cbffef1 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | eahanson/corex | 550020c5cbfc7dc828bc74e1edf0223c1cbffef1 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | eahanson/corex | 550020c5cbfc7dc828bc74e1edf0223c1cbffef1 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Corex.Repo.insert!(%Corex.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fai... | 32.882353 | 94 | 0.710197 |
738e2e79bd469c951bd7f9c845c452316a66708f | 884 | ex | Elixir | clients/container/lib/google_api/container/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.740741 | 74 | 0.75905 |
738e2f021d1dc35f9ac4d3a178a8a71aab80d718 | 1,786 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/comment_quoted_file_content.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/comment_quoted_file_content.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/comment_quoted_file_content.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... | 35.019608 | 168 | 0.740761 |
738e3abbe08da4e730018b336d5d722519bcf5be | 203 | ex | Elixir | lib/phone/cr.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/cr.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/cr.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.CR do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(506)()(.{8})/
def country, do: "Costa Rica"
def a2, do: "CR"
def a3, do: "CRI"
matcher(:regex, ["506"])
end
| 15.615385 | 35 | 0.596059 |
738e7d46d8fb02554a09708569b0b5641228c04d | 539 | exs | Elixir | test/sugar/templates/template_test.exs | pct/templates | 8a537eeca1db8c1c4877d76452a379ea4ec55bf5 | [
"MIT"
] | 7 | 2016-01-28T13:31:07.000Z | 2021-01-30T06:20:08.000Z | test/sugar/templates/template_test.exs | pct/templates | 8a537eeca1db8c1c4877d76452a379ea4ec55bf5 | [
"MIT"
] | 3 | 2015-05-08T07:05:17.000Z | 2015-08-23T19:03:33.000Z | test/sugar/templates/template_test.exs | pct/templates | 8a537eeca1db8c1c4877d76452a379ea4ec55bf5 | [
"MIT"
] | 8 | 2015-05-08T06:31:46.000Z | 2019-05-30T19:56:18.000Z | defmodule Sugar.Templates.TemplateTest do
use ExUnit.Case
test "__struct__" do
template = %Sugar.Templates.Template{
key: "main/index.html.eex",
source: "<%= 2 + 2 %>",
binary: nil,
engine: Sugar.Templates.Engines.EEx,
updated_at: {{2014, 05, 02}, {22, 41, 00}}
}
assert t... | 28.368421 | 65 | 0.61039 |
738e7f71fb73e2b89bc3ddc0c888712c5462c7e4 | 3,045 | ex | Elixir | lib/elixir/lib/macro/env.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro/env.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro/env.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | defmodule Macro.Env do
@moduledoc """
A record that holds compile time environment information.
The current environment can be accessed at any time as
`__ENV__`. Inside macros, the caller environment can be
accessed as `__CALLER__`. It contains the following fields:
* `module` - the current module name.
... | 35.823529 | 88 | 0.677833 |
738e8b5d4502d34a4c2cab4e31c613bcf9f4d20f | 882 | ex | Elixir | test/support/conn_case.ex | empex2019liveview/namedb | fd01151dd293f9740204435fed524bc364f81069 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | empex2019liveview/namedb | fd01151dd293f9740204435fed524bc364f81069 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | empex2019liveview/namedb | fd01151dd293f9740204435fed524bc364f81069 | [
"MIT"
] | null | null | null | defmodule NamedbWeb.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 the... | 26.727273 | 59 | 0.727891 |
738e961e6de392c83845dd0d2f86473703963103 | 348 | exs | Elixir | backend/priv/repo/migrations/20170522185843_create_file.exs | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | backend/priv/repo/migrations/20170522185843_create_file.exs | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | 7 | 2019-02-08T18:28:49.000Z | 2022-02-12T06:44:59.000Z | backend/priv/repo/migrations/20170522185843_create_file.exs | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | defmodule Aptamer.Repo.Migrations.CreateFile do
use Ecto.Migration
def change do
create table(:files, primary_key: false) do
add(:id, :binary_id, primary_key: true)
add(:file_name, :string)
add(:uploaded_on, :naive_datetime)
add(:file_purpose, :string)
add(:data, :bytea)
tim... | 23.2 | 47 | 0.66092 |
738ed0e659d34242d54619d7f11b5788dcd319b1 | 159 | ex | Elixir | lib/web/views/admin/user_view.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/web/views/admin/user_view.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/web/views/admin/user_view.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Admin.UserView do
use Librecov.Web, :view
import Scrivener.HTML
alias Librecov.Helpers.Display
alias Librecov.Helpers.Datetime
end
| 19.875 | 36 | 0.798742 |
738ed4bf329b113f58bb1fdbb631320ea1d679a7 | 914 | exs | Elixir | test/bootstrap_form/textarea_test.exs | feliperenan/bootstrap_form | a12d0665973687bfefeee499f8581398a25ccf75 | [
"MIT"
] | 6 | 2019-02-07T00:37:24.000Z | 2021-05-29T23:37:32.000Z | test/bootstrap_form/textarea_test.exs | feliperenan/bootstrap_form | a12d0665973687bfefeee499f8581398a25ccf75 | [
"MIT"
] | 7 | 2019-02-07T00:19:39.000Z | 2019-11-04T17:01:50.000Z | test/bootstrap_form/textarea_test.exs | feliperenan/bootstrap_form | a12d0665973687bfefeee499f8581398a25ccf75 | [
"MIT"
] | 3 | 2019-10-30T13:49:44.000Z | 2021-09-26T23:45:02.000Z | defmodule BootstrapForm.TextareaTest do
use ExUnit.Case
alias BootstrapForm.Textarea
import Phoenix.HTML, only: [safe_to_string: 1]
doctest Textarea
describe "build/3" do
test "generates an textarea input" do
expected =
~s(<div class="form-group wrapper-class">) <>
~s(<label cl... | 27.69697 | 96 | 0.640044 |
738ef06b26fd817a431c2c6a39790a9535dd98a3 | 1,898 | exs | Elixir | test/test_router.exs | FarmBot-Labs/laughing-octo-telegram | 9d3d161362b17da82378c51a815f4c46e0a7a09d | [
"MIT"
] | 2 | 2016-09-18T03:06:37.000Z | 2016-12-26T23:55:40.000Z | test/test_router.exs | FarmBot-Labs/laughing-octo-telegram | 9d3d161362b17da82378c51a815f4c46e0a7a09d | [
"MIT"
] | 3 | 2016-09-30T08:38:15.000Z | 2016-10-01T19:26:10.000Z | test/test_router.exs | FarmBot-Labs/laughing-octo-telegram | 9d3d161362b17da82378c51a815f4c46e0a7a09d | [
"MIT"
] | 5 | 2016-09-30T17:13:42.000Z | 2021-01-06T17:58:15.000Z | defmodule TestRouter do
use Plug.Router
plug CORSPlug
plug Plug.Parsers, parsers: [:urlencoded, :json],
pass: ["text/*"],
json_decoder: Poison
plug :match
plug :dispatch
def test_key do
"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzX... | 65.448276 | 930 | 0.810327 |
738f13df0ecd9adde230bb2b23a8f40ab2e52c0e | 15,985 | ex | Elixir | kousa/lib/kousa/room.ex | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 8 | 2021-06-30T07:02:52.000Z | 2021-08-30T18:58:38.000Z | kousa/lib/kousa/room.ex | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/lib/kousa/room.ex | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Kousa.Room do
alias Kousa.Utils.VoiceServerUtils
alias Beef.Users
alias Beef.Follows
alias Beef.Rooms
# note the following 2 module aliases are on the chopping block!
alias Beef.RoomPermissions
alias Beef.RoomBlocks
alias Onion.PubSub
alias Onion.UserSession
alias Broth.SocketHandler
de... | 27.751736 | 117 | 0.572662 |
738f1bf1dd7e40c2bdb84fd137e5b968592ab852 | 3,195 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/pivot_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/pivot_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/pivot_value.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... | 50.714286 | 436 | 0.720814 |
738f4bb0fbff9df31996a0acfb9502fed1a3184f | 1,773 | ex | Elixir | lib/yummy_web/endpoint.ex | MatthieuSegret/yummy-phoenix | 85b490075e3a0395b4e7cfa9f06936659e9d12b5 | [
"MIT"
] | 5 | 2017-08-27T19:45:43.000Z | 2019-06-28T08:12:25.000Z | lib/yummy_web/endpoint.ex | MatthieuSegret/yummy-phoenix | 85b490075e3a0395b4e7cfa9f06936659e9d12b5 | [
"MIT"
] | null | null | null | lib/yummy_web/endpoint.ex | MatthieuSegret/yummy-phoenix | 85b490075e3a0395b4e7cfa9f06936659e9d12b5 | [
"MIT"
] | null | null | null | defmodule YummyWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :yummy
socket "/socket", YummyWeb.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.
plug Plug.Static,
... | 28.142857 | 95 | 0.697124 |
738f4c4860dd3e36e147b9dd11afd0c7730bb67e | 870 | ex | Elixir | lib/ex_money_web/models/budget.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 184 | 2015-11-23T20:51:50.000Z | 2022-03-30T01:01:39.000Z | lib/ex_money_web/models/budget.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 15 | 2015-11-26T16:00:20.000Z | 2018-05-25T20:13:39.000Z | lib/ex_money_web/models/budget.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 21 | 2015-11-26T21:34:40.000Z | 2022-03-26T02:56:42.000Z | defmodule ExMoney.Budget do
use ExMoney.Web, :model
alias ExMoney.Budget
schema "budgets" do
field :accounts, {:array, :integer}
field :items, :map
field :start_date, :date
field :end_date, :date
field :income, :decimal
field :goal, :decimal
field :expectation, :decimal
belongs_... | 22.894737 | 92 | 0.665517 |
738f60ca68985f0d0572650be0d9344f2fdec219 | 1,119 | exs | Elixir | 2017/elixir/day13/config/config.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day13/config/config.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day13/config/config.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | 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.096774 | 73 | 0.75067 |
738f890855d381d674a3b2b0106f005c3b022c8e | 1,559 | ex | Elixir | hermes/test/support/model_case.ex | jparr721/Hermes | 0ce141897e292a6e4492461f6581f0619c43b8bf | [
"MIT"
] | null | null | null | hermes/test/support/model_case.ex | jparr721/Hermes | 0ce141897e292a6e4492461f6581f0619c43b8bf | [
"MIT"
] | null | null | null | hermes/test/support/model_case.ex | jparr721/Hermes | 0ce141897e292a6e4492461f6581f0619c43b8bf | [
"MIT"
] | null | null | null | defmodule Hermes.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. For t... | 26.423729 | 84 | 0.683772 |
738f8c07a94d3636e814cc7ecab51625c9d59251 | 462 | ex | Elixir | lib/rank/parsers/meta.ex | denispeplin/rank | f60eaad6ce9bae43a8ccbf9d0f667fb47f500863 | [
"MIT"
] | 58 | 2017-06-12T19:17:10.000Z | 2022-03-08T10:47:43.000Z | lib/rank/parsers/meta.ex | denispeplin/rank | f60eaad6ce9bae43a8ccbf9d0f667fb47f500863 | [
"MIT"
] | 2 | 2017-06-15T05:53:43.000Z | 2019-03-31T16:01:05.000Z | lib/rank/parsers/meta.ex | denispeplin/rank | f60eaad6ce9bae43a8ccbf9d0f667fb47f500863 | [
"MIT"
] | 5 | 2017-12-06T03:33:12.000Z | 2021-07-30T20:35:33.000Z | defmodule Rank.Parsers.Meta do
@moduledoc """
Parser for list of awesome lists
"""
require Logger
alias Rank.Parsers.Readme
@owner "sindresorhus"
@repo "awesome"
@doc """
Parse Awesome Meta
"""
def parse do
Logger.debug("Parsing meta")
Readme.parse(@owner, @repo)
|> Rank.Store.write... | 15.931034 | 36 | 0.634199 |
738f90cfd703a2ad9b420c460b42c5f9651f37f2 | 30,430 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1beta1/api/projects.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/api/projects.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/recommender/lib/google_api/recommender/v1beta1/api/projects.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.959877 | 508 | 0.639829 |
738f9292f36ca3f7aa336ab0dc64b8ac9f65ab7d | 1,769 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/list_locations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/logging/lib/google_api/logging/v2/model/list_locations_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/logging/lib/google_api/logging/v2/model/list_locations_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... | 35.38 | 163 | 0.734313 |
738f93c0e54b757b87f5f31bc3c64ce157fa19ba | 8,235 | ex | Elixir | lib/sanbase/api_call_limit/ets.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/api_call_limit/ets.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/api_call_limit/ets.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.ApiCallLimit.ETS do
@moduledoc ~s"""
Track the API Call quotas (get and update) of the user and remote IPs.
The quota is fetched from the central database and the progress of using it is
tracked in-memory in an ETS table. When API calls are made, the progress is
updated in the ETS table unt... | 35.960699 | 92 | 0.653309 |
738fab31c6660f81acf7e83a6c7b4f7726ba2e92 | 371 | exs | Elixir | test/test_helper.exs | bitpay/elixir-client | cccf8abbad5da7ad3d01d186bd14bf69eca68770 | [
"MIT"
] | 35 | 2015-01-18T02:16:11.000Z | 2021-11-14T01:55:34.000Z | test/test_helper.exs | philosodad/bitpay-elixir | cccf8abbad5da7ad3d01d186bd14bf69eca68770 | [
"MIT"
] | 3 | 2015-06-24T15:18:57.000Z | 2017-05-17T17:52:05.000Z | test/test_helper.exs | bitpay/elixir-client | cccf8abbad5da7ad3d01d186bd14bf69eca68770 | [
"MIT"
] | 13 | 2015-01-16T21:11:22.000Z | 2021-10-29T23:23:59.000Z | ExUnit.start()
#def an_illegal_claim_code
# legal_map = [*'A'..'Z'] + [*'a'..'z'] + [*0..9]
# first_length = rand(6)
# short_code = (0..first_length).map{legal_map.sample}.join
# second_length = [*8..25].sample
# long_code = [*8..25].sample.times.inject([]){|arr| arr << legal_map.sample}.join
# [nil, short_code,... | 33.727273 | 83 | 0.590296 |
738fb1b73d5e61507d38acd3a3d1a9ce81daeba1 | 1,882 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_skus_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_skus_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/list_skus_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... | 37.64 | 266 | 0.731668 |
738fbc70f1858ace938c708c3e29f9d2f72ca3ed | 1,102 | ex | Elixir | test/support/conn_case.ex | Baransu/togither | 87483348f0b800c2a28b2dabc77180a5b49ea59e | [
"BSD-3-Clause"
] | 1 | 2016-08-11T04:06:29.000Z | 2016-08-11T04:06:29.000Z | test/support/conn_case.ex | Baransu/togither | 87483348f0b800c2a28b2dabc77180a5b49ea59e | [
"BSD-3-Clause"
] | 1 | 2017-02-17T19:20:29.000Z | 2017-02-17T20:27:44.000Z | test/support/conn_case.ex | Baransu/togither | 87483348f0b800c2a28b2dabc77180a5b49ea59e | [
"BSD-3-Clause"
] | null | null | null | defmodule Togither.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 |
738fc8480d6e7a0b42e932230ba4e1ad0fc8f7f7 | 2,479 | exs | Elixir | test/link_preview/parsers/html_test.exs | PabloG6/link_preview | b00e6029e5f941e566e5b31b7dc7b9a7d490b11e | [
"Apache-2.0"
] | 15 | 2017-01-31T14:18:27.000Z | 2021-05-24T18:25:01.000Z | test/link_preview/parsers/html_test.exs | PabloG6/link_preview | b00e6029e5f941e566e5b31b7dc7b9a7d490b11e | [
"Apache-2.0"
] | 10 | 2016-09-18T23:55:28.000Z | 2016-09-30T06:35:10.000Z | test/link_preview/parsers/html_test.exs | PabloG6/link_preview | b00e6029e5f941e566e5b31b7dc7b9a7d490b11e | [
"Apache-2.0"
] | 11 | 2018-02-20T04:36:41.000Z | 2022-03-02T13:16:54.000Z | defmodule LinkPreview.Parsers.HtmlTest do
use LinkPreview.Case
alias LinkPreview.Parsers.Html
alias LinkPreview.Page
@page %Page{original_url: "http://example.com/", website_url: "example.com"}
setup [:reset_defaults]
describe "title" do
test "optimistic case" do
assert Html.title(@page, @html)... | 29.511905 | 98 | 0.65591 |
738fdbd38282f0ae5135eaab658cf4d801d90da6 | 2,059 | ex | Elixir | lib/file_size/ecto/bit_with_unit.ex | tlux/file_size_ecto | 654fe0c75c151c0ede53e0b9f2928bf412abeedb | [
"MIT"
] | null | null | null | lib/file_size/ecto/bit_with_unit.ex | tlux/file_size_ecto | 654fe0c75c151c0ede53e0b9f2928bf412abeedb | [
"MIT"
] | null | null | null | lib/file_size/ecto/bit_with_unit.ex | tlux/file_size_ecto | 654fe0c75c151c0ede53e0b9f2928bf412abeedb | [
"MIT"
] | null | null | null | defmodule FileSize.Ecto.BitWithUnit do
@moduledoc """
An Ecto type that represents a file size in bits, supporting storage of
different units. The value is stored as map in the database (i.e. jsonb when
using PostgreSQL).
## Example
defmodule MySchema do
use Ecto.Schema
schema "my_tab... | 20.386139 | 78 | 0.608548 |
738ff48f12c513423dde4d00d902fe2dd915e17f | 3,823 | ex | Elixir | lib/credo/check/readability/string_sigils.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | lib/credo/check/readability/string_sigils.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | lib/credo/check/readability/string_sigils.ex | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Readability.StringSigils do
alias Credo.SourceFile
alias Credo.Code.Heredocs
use Credo.Check,
base_priority: :low,
param_defaults: [
maximum_allowed_quotes: 3
],
explanations: [
check: ~S"""
If you used quoted strings that contain quotes, you might want to ... | 24.824675 | 114 | 0.631441 |
739010476ebabe1c5efcbf486788cdde7af153bf | 2,144 | ex | Elixir | lib/kaffe/config/producer.ex | jgaviria/kaffe | f7d54086bb7062c62cb012a1f73359843a0a625b | [
"MIT"
] | null | null | null | lib/kaffe/config/producer.ex | jgaviria/kaffe | f7d54086bb7062c62cb012a1f73359843a0a625b | [
"MIT"
] | null | null | null | lib/kaffe/config/producer.ex | jgaviria/kaffe | f7d54086bb7062c62cb012a1f73359843a0a625b | [
"MIT"
] | null | null | null | defmodule Kaffe.Config.Producer do
import Kaffe.Config, only: [heroku_kafka_endpoints: 0, parse_endpoints: 1]
def configuration do
%{
endpoints: endpoints(),
producer_config: client_producer_config(),
client_name: config_get(:client_name, :kaffe_producer_client),
topics: producer_topics... | 27.139241 | 99 | 0.696362 |
7390667e4defe33714c3a2ed4b532fd05eb2cc4f | 18,709 | ex | Elixir | lib/memcache.ex | thecodeboss/memcachex | d6de70a8b93524a71dc54f736fcb79b5377718fd | [
"MIT"
] | null | null | null | lib/memcache.ex | thecodeboss/memcachex | d6de70a8b93524a71dc54f736fcb79b5377718fd | [
"MIT"
] | null | null | null | lib/memcache.ex | thecodeboss/memcachex | d6de70a8b93524a71dc54f736fcb79b5377718fd | [
"MIT"
] | null | null | null | defmodule Memcache do
@moduledoc """
This module provides a user friendly API to interact with the
memcached server.
## Example
{:ok, pid} = Memcache.start_link()
{:ok} = Memcache.set(pid, "hello", "world")
{:ok, "world"} = Memcache.get(pid, "hello")
## Coder
`Memcache.Coder` allows yo... | 29.370487 | 98 | 0.65113 |
739081cfea8a8b9ef50d545a0363b5a041b430a9 | 3,719 | ex | Elixir | lib/marco_polo/connection/auth.ex | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | null | null | null | lib/marco_polo/connection/auth.ex | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | null | null | null | lib/marco_polo/connection/auth.ex | EdmondFrank/marco_polo | aa094be7bffc1a7b254124b2bb7628a56de01aef | [
"Apache-2.0"
] | null | null | null | defmodule MarcoPolo.Connection.Auth do
@moduledoc false
import MarcoPolo.Protocol.BinaryHelpers
alias MarcoPolo.Error
alias MarcoPolo.Protocol
@typep state :: Map.t
@protocol 32
@min_protocol 28
@serialization_protocol "ORecordSerializerBinary"
@timeout 5000
@doc """
Authenticate to the Orie... | 32.33913 | 104 | 0.648293 |
73908255eaba074f93f419eda29c14748f5c39b4 | 678 | ex | Elixir | lib/update_handler.ex | cjwadair/phx_in_place | 12ea71ec1d3dc8ac2b2f220d0b3f4c676706c570 | [
"MIT"
] | 4 | 2018-05-17T09:56:51.000Z | 2022-02-26T21:24:47.000Z | lib/update_handler.ex | cjwadair/phx_in_place | 12ea71ec1d3dc8ac2b2f220d0b3f4c676706c570 | [
"MIT"
] | null | null | null | lib/update_handler.ex | cjwadair/phx_in_place | 12ea71ec1d3dc8ac2b2f220d0b3f4c676706c570 | [
"MIT"
] | null | null | null | defmodule UpdateHandler do
@moduledoc false
@repo Application.get_env(:phx_in_place, :repo)
def update_repo(struct, id, attrs) do
changeset =
struct
|> @repo.get!(id)
|> struct.changeset(attrs)
case changeset.valid? do
true -> @repo.update(changeset)
false ->
{:e... | 20.545455 | 69 | 0.554572 |
7390ab6df544874c6a550184986d630f74e3e28b | 838 | exs | Elixir | mix.exs | asummers/testing_gocd_elixir | 67658c9ea17a99605ec5537ae3d1045784c1dbca | [
"MIT"
] | null | null | null | mix.exs | asummers/testing_gocd_elixir | 67658c9ea17a99605ec5537ae3d1045784c1dbca | [
"MIT"
] | null | null | null | mix.exs | asummers/testing_gocd_elixir | 67658c9ea17a99605ec5537ae3d1045784c1dbca | [
"MIT"
] | null | null | null | defmodule TestingGocdElixir.MixProject do
use Mix.Project
def project do
[
app: :testing_gocd_elixir,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applicat... | 22.052632 | 87 | 0.566826 |
7390b7f5fe7aa1e4a7cdc97b4d8addc5ceaf179c | 496 | exs | Elixir | config/test.exs | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | config/test.exs | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | config/test.exs | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :namuraid, Namuraid.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :namuraid, Namuraid.R... | 24.8 | 56 | 0.735887 |
739173db02ceea9d346984e5893d2c5d526576a8 | 193 | exs | Elixir | apps/montreal_elixir/config/test.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | apps/montreal_elixir/config/test.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | apps/montreal_elixir/config/test.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :montreal_elixir, MontrealElixir.Repo,
adapter: Ecto.Adapters.Postgres,
database: "montreal_elixir_test",
pool: Ecto.Adapters.SQL.Sandbox
| 24.125 | 45 | 0.792746 |
73919c314fb36c41d9b4a7e402482d259e138b59 | 4,133 | ex | Elixir | lib/scribe.ex | cowile/scribe | 75334daf0f1fd24ba92bceef67b4cb6e1e2c4f37 | [
"MIT"
] | 253 | 2016-08-13T21:47:42.000Z | 2022-01-18T06:53:28.000Z | lib/scribe.ex | cowile/scribe | 75334daf0f1fd24ba92bceef67b4cb6e1e2c4f37 | [
"MIT"
] | 15 | 2017-02-18T18:00:15.000Z | 2022-01-30T15:48:08.000Z | lib/scribe.ex | cowile/scribe | 75334daf0f1fd24ba92bceef67b4cb6e1e2c4f37 | [
"MIT"
] | 11 | 2016-12-23T08:21:36.000Z | 2021-12-31T21:03:26.000Z | defmodule Scribe do
@moduledoc """
Pretty-print tables of structs and maps
"""
alias Scribe.Table
@type data ::
[]
| [...]
| term
@typedoc ~S"""
Options for configuring table output.
- `:colorize` - When `false`, disables colored output. Defaults to `true`
- `:data` -... | 22.708791 | 79 | 0.566659 |
7391a7c9ac1f236196c43c3e342ae8d18bfcfbc5 | 781 | ex | Elixir | lib/mmss_server_ex.ex | leader22/mmss-server-ex | db399e06e422b443db028369dc61006f845c168c | [
"MIT"
] | null | null | null | lib/mmss_server_ex.ex | leader22/mmss-server-ex | db399e06e422b443db028369dc61006f845c168c | [
"MIT"
] | null | null | null | lib/mmss_server_ex.ex | leader22/mmss-server-ex | db399e06e422b443db028369dc61006f845c168c | [
"MIT"
] | null | null | null | defmodule MMSSServer do
@moduledoc """
My Mp3 Streaming Server SERVER implementation.
"""
use Application
require Logger
alias Plug.Adapters.Cowboy
def start(_type, _args) do
mpath = Env.fetch!(:mmss_server_ex, :mpath)
port = Env.fetch!(:mmss_server_ex, :port)
user = Env.fetch!(:mmss_server... | 20.552632 | 48 | 0.577465 |
7391e8c76b9f78f50217230cbd91c4d1f4f31ff2 | 1,123 | ex | Elixir | test/support/channel_case.ex | Ruin0x11/niacademy | f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Ruin0x11/niacademy | f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Ruin0x11/niacademy | f0b07aefa7b2bf5a8f643d851523ee43c6fd1c0f | [
"MIT"
] | null | null | null | defmodule NiacademyWeb.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 data structures and query the data layer.
Finally, if the test case interacts... | 27.390244 | 71 | 0.730187 |
739219139f8d6034b091da36232ef8f62c264e0b | 718 | ex | Elixir | examples/phoenix_shell/web/gettext.ex | acj/parley | 56b5c7b34f39c74af6ccd4a85a23ceccfc117bdf | [
"MIT"
] | 1 | 2021-07-02T22:50:40.000Z | 2021-07-02T22:50:40.000Z | examples/phoenix_shell/web/gettext.ex | acj/parley | 56b5c7b34f39c74af6ccd4a85a23ceccfc117bdf | [
"MIT"
] | null | null | null | examples/phoenix_shell/web/gettext.ex | acj/parley | 56b5c7b34f39c74af6ccd4a85a23ceccfc117bdf | [
"MIT"
] | null | null | null | defmodule PhoenixShell.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import PhoenixShell.Gettext
# Simple translation
gettext "Here ... | 28.72 | 72 | 0.685237 |
739237b8547adc7ad66407ae01dd8e30a60dc4b8 | 13,787 | ex | Elixir | day21/lib/day21.ex | the-shank/advent-of-code-2018 | 3be3958adad61e62e8a7ea6ec6a868f049c7a7e4 | [
"Apache-2.0"
] | 7 | 2018-12-12T01:08:24.000Z | 2019-12-09T19:50:36.000Z | day21/lib/day21.ex | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | day21/lib/day21.ex | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | defmodule Day21 do
use Bitwise
@moduledoc """
This module only solves the problem for my input data.
My input and the solutions can be found in test/day21_test.exs.
I solved part one by first examining the assembly program.
It quickly became apparent that register 0 (A) must be set
equal to the value o... | 25.437269 | 86 | 0.575905 |
73923b13291eaf10292151b4f87b3a6e5ddde229 | 1,288 | exs | Elixir | test/lib/deserialization/xs2a/synchronization_test.exs | ibanity/ibanity-elixir | c2e1feedbfc2376678c9db78c6365a82a654b00b | [
"MIT"
] | 3 | 2018-11-17T18:12:15.000Z | 2020-12-09T06:26:59.000Z | test/lib/deserialization/xs2a/synchronization_test.exs | ibanity/ibanity-elixir | c2e1feedbfc2376678c9db78c6365a82a654b00b | [
"MIT"
] | 2 | 2018-12-12T14:14:56.000Z | 2019-07-01T14:13:57.000Z | test/lib/deserialization/xs2a/synchronization_test.exs | ibanity/ibanity-elixir | c2e1feedbfc2376678c9db78c6365a82a654b00b | [
"MIT"
] | null | null | null | defmodule Ibanity.Xs2a.Synchronization.DeserializationTest do
use ExUnit.Case
import Ibanity.JsonDeserializer
alias Ibanity.DateTimeUtil
alias Ibanity.Xs2a.Synchronization
test "deserializes a synchronization" do
data = %{
"type" => "synchronization",
"id" => "e8b19b5e-068b-4802-a2da-0c641145... | 30.666667 | 67 | 0.631211 |
7392600e73d16a96d54b45b48377fafc35427e8d | 152 | exs | Elixir | test/test_helper.exs | erickgnavar/tweet_map | 4c8839e35dc96cd8d6ca12fb2895496f2a0c100e | [
"MIT"
] | null | null | null | test/test_helper.exs | erickgnavar/tweet_map | 4c8839e35dc96cd8d6ca12fb2895496f2a0c100e | [
"MIT"
] | null | null | null | test/test_helper.exs | erickgnavar/tweet_map | 4c8839e35dc96cd8d6ca12fb2895496f2a0c100e | [
"MIT"
] | null | null | null | ExUnit.start
Mix.Task.run "ecto.create", ["--quiet"]
Mix.Task.run "ecto.migrate", ["--quiet"]
Ecto.Adapters.SQL.begin_test_transaction(TweetMap.Repo)
| 21.714286 | 55 | 0.730263 |
73926904456401130c586398e28b94e0b842d686 | 4,303 | ex | Elixir | apps/rig_auth/lib/rig_auth/blacklist.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | apps/rig_auth/lib/rig_auth/blacklist.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 132 | 2018-11-26T14:00:54.000Z | 2022-03-11T04:17:54.000Z | apps/rig_auth/lib/rig_auth/blacklist.ex | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | defmodule RigAuth.Blacklist do
@moduledoc """
Enables blacklisting of JWTs by their jti claim.
The entries representing the banned claims feature an expiration timestamp,
which prevents the blacklist from growing indefinitely.
In a distributed setting, the node that does the blacklisting spreads the
infor... | 35.858333 | 98 | 0.689519 |
739274cb2a3c4e4d2f7bc24c8415741e9036ab4d | 6,190 | ex | Elixir | lib/resource_pool/resources/resources.ex | code-mancers/resource-pool | 83610857b63ec3d0b5e215f6ac63e12ccb99c2f1 | [
"MIT"
] | null | null | null | lib/resource_pool/resources/resources.ex | code-mancers/resource-pool | 83610857b63ec3d0b5e215f6ac63e12ccb99c2f1 | [
"MIT"
] | null | null | null | lib/resource_pool/resources/resources.ex | code-mancers/resource-pool | 83610857b63ec3d0b5e215f6ac63e12ccb99c2f1 | [
"MIT"
] | null | null | null | defmodule ResourcePool.Resources do
@moduledoc """
The Resources context.
"""
import Ecto.Query, warn: false
alias Ecto.Multi
alias ResourcePool.Repo
alias ResourcePool.Resources.Database
require Logger
def create_resource_bulk(callback, opts \\ []) do
nOfResource = opts[:nOfResource] || 1
... | 22.34657 | 130 | 0.591761 |
7392b28ce9e103f0efef2a9e212fc0f292a1615a | 1,618 | exs | Elixir | test/policr_mini_bot/captcha_test.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | test/policr_mini_bot/captcha_test.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | test/policr_mini_bot/captcha_test.exs | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMiniBot.CaptchaTest do
use ExUnit.Case
import PolicrMiniBot.Captcha
alias Telegex.Model.{InlineKeyboardMarkup, InlineKeyboardButton}
test "build_markup/1" do
markup =
[
[
"猫",
"狗",
"猪"
]
]
|> build_markup(100)
assert mar... | 26.966667 | 90 | 0.497528 |
7392b4bf8d1b0f584970e463db352cd1159a3514 | 1,220 | ex | Elixir | web/views/error_helpers.ex | appdojolabs/myapp | 41887a60f7ea86db3c70470631b703455c865042 | [
"MIT"
] | 41 | 2017-05-21T14:33:28.000Z | 2022-03-28T22:29:56.000Z | web/views/error_helpers.ex | DMeechan/deploy-elixir-docker-example | b63a46453629ced5134aba039575a3c010a6f2a1 | [
"MIT"
] | 2 | 2017-07-23T07:06:38.000Z | 2018-07-16T23:53:12.000Z | web/views/error_helpers.ex | appdojolabs/myapp | 41887a60f7ea86db3c70470631b703455c865042 | [
"MIT"
] | 16 | 2017-05-21T22:35:10.000Z | 2022-03-28T22:30:04.000Z | defmodule Myapp.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
if error = form.errors[field] do
content_tag :span, translate_error(error), cl... | 29.756098 | 71 | 0.665574 |
7392c92855a359f9fc74c79a0899b949257c660c | 1,846 | exs | Elixir | clients/compute/mix.exs | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/compute/mix.exs | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"Apache-2.0"
] | null | null | null | clients/compute/mix.exs | Contractbook/elixir-google-api | 342751041aaf8c2e7f76f9922cf24b9c5895802b | [
"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.552239 | 98 | 0.656013 |
7392de8a93f793a90b135fe3f8db2aabe13f6c6e | 137 | ex | Elixir | web/controllers/page_controller.ex | hackersguildco/flaggy | 5c52879f0f8541bba5603e6a678d9527e76507db | [
"MIT"
] | 1 | 2018-04-23T14:55:58.000Z | 2018-04-23T14:55:58.000Z | web/controllers/page_controller.ex | hackersguildco/flaggy | 5c52879f0f8541bba5603e6a678d9527e76507db | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | hackersguildco/flaggy | 5c52879f0f8541bba5603e6a678d9527e76507db | [
"MIT"
] | null | null | null | defmodule Flaggy.PageController do
use Flaggy.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 15.222222 | 34 | 0.722628 |
7393082869e9228a5341f35264f53fb9d6c7029b | 1,358 | ex | Elixir | lib/recipients.ex | terianil/sendgridex | e2a998fcea794cf71ab9df1ffb0b73198f916206 | [
"MIT"
] | null | null | null | lib/recipients.ex | terianil/sendgridex | e2a998fcea794cf71ab9df1ffb0b73198f916206 | [
"MIT"
] | null | null | null | lib/recipients.ex | terianil/sendgridex | e2a998fcea794cf71ab9df1ffb0b73198f916206 | [
"MIT"
] | null | null | null | defmodule SendGridEx.Recipients do
alias SendGridEx.Client
alias SendGridEx.Model.Recipient
alias SendGridEx.Model.RecipientId
@doc """
Adds a single recipient.
"""
def add(%Recipient{} = recipient) do
add([recipient])
end
@doc """
Adds multiple recipients.
"""
def add(recipients) when is_... | 22.262295 | 83 | 0.579529 |
73933aecacdb02b5ec7ae46531767491eafbd795 | 45,889 | ex | Elixir | lib/ecto/query/planner.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/planner.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/planner.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Planner do
# Normalizes a query and its parameters.
@moduledoc false
alias Ecto.Query.{BooleanExpr, DynamicExpr, JoinExpr, QueryExpr, SelectExpr}
if map_size(%Ecto.Query{}) != 17 do
raise "Ecto.Query match out of date in builder"
end
@doc """
Converts a query to a list of joins... | 36.047918 | 133 | 0.617926 |
73933c7d24833026458910ef196610d81437b5ad | 889 | ex | Elixir | lib/chat_api/slack_authorizations/settings.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api/slack_authorizations/settings.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api/slack_authorizations/settings.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.SlackAuthorizations.Settings do
use Ecto.Schema
import Ecto.Changeset
@type t :: %__MODULE__{
sync_all_incoming_threads: boolean(),
sync_by_emoji_tagging: boolean(),
sync_trigger_emoji: String.t(),
forward_synced_messages_to_reply_channel: boolean()
... | 29.633333 | 77 | 0.701912 |
739350710aa2ab277f5bb470214a9ed72d516a25 | 1,117 | exs | Elixir | tooling/pbt/config/config.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | tooling/pbt/config/config.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | tooling/pbt/config/config.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"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.032258 | 73 | 0.748433 |
73935670beb910ca23c28ab35375fe214e89e1b5 | 5,639 | exs | Elixir | apps/raptor/test/unit/raptor_web/authorize_controller_test.exs | Datastillery/smartcitiesdata | f4ab7e6877cfd68cd4bdac15cc879d930d11f270 | [
"Apache-2.0"
] | 18 | 2020-11-13T15:38:24.000Z | 2021-05-26T00:40:08.000Z | apps/raptor/test/unit/raptor_web/authorize_controller_test.exs | Datastillery/smartcitiesdata | f4ab7e6877cfd68cd4bdac15cc879d930d11f270 | [
"Apache-2.0"
] | 365 | 2020-09-21T12:31:40.000Z | 2021-09-25T14:54:21.000Z | apps/raptor/test/unit/raptor_web/authorize_controller_test.exs | Datastillery/smartcitiesdata | f4ab7e6877cfd68cd4bdac15cc879d930d11f270 | [
"Apache-2.0"
] | 3 | 2020-10-06T16:17:49.000Z | 2021-09-03T17:11:41.000Z | defmodule RaptorWeb.AuthorizeControllerTest do
use RaptorWeb.ConnCase
use Placebo
alias Raptor.Services.Auth0Management
alias Raptor.Services.DatasetStore
alias Raptor.Services.UserOrgAssocStore
@authorized_call [
%{
"email_verified" => true,
"user_id" => "penny"
}
]
@multiple_user... | 28.054726 | 114 | 0.625466 |
73937a9e1f278c592c64108ec9f38b5b9b0d94aa | 4,008 | ex | Elixir | apps/omg_utils/lib/omg_utils/http_rpc/response.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_utils/lib/omg_utils/http_rpc/response.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_utils/lib/omg_utils/http_rpc/response.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 27.452055 | 95 | 0.650449 |
73937c1cbe39e4e0e486880361bbfa5fc9df082c | 3,637 | exs | Elixir | test/entice/coordination_test.exs | hoodaly/entity | e325231c7c15375e45889e8bd0b71d48c60974ca | [
"WTFPL"
] | null | null | null | test/entice/coordination_test.exs | hoodaly/entity | e325231c7c15375e45889e8bd0b71d48c60974ca | [
"WTFPL"
] | null | null | null | test/entice/coordination_test.exs | hoodaly/entity | e325231c7c15375e45889e8bd0b71d48c60974ca | [
"WTFPL"
] | null | null | null | defmodule Entice.Logic.CoordinationTest do
use ExUnit.Case, async: true
alias Entice.Entity
alias Entice.Entity.{Coordination, Test.Spy}
defmodule TestAttr1, do: defstruct foo: 1337, bar: "lol"
defmodule TestAttr2, do: defstruct baz: false
defmodule TestAttr3, do: defstruct crux: "hello"
setup do
{... | 27.345865 | 78 | 0.653561 |
739395d7082fb154b95aa9ff77d91e422e634862 | 479 | exs | Elixir | test/10_parse/30_example_functions/params_test.exs | marick/ecto_test_dsl | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | 4 | 2021-02-09T17:26:34.000Z | 2021-08-08T01:42:52.000Z | test/10_parse/30_example_functions/params_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | test/10_parse/30_example_functions/params_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | defmodule Parse.ExampleFunctions.ParamsTest do
use EctoTestDSL.Case
use T.Drink.AndParse
use T.Parse.Exports
describe "creation" do
test "without eens" do
assert params(id: 5, age: 3) == {:params, Pnode.Params.parse(%{id: 5, age: 3})}
end
test "with eens" do
input = [id: 5, other_id: ... | 25.210526 | 85 | 0.634656 |
7393ad5a786f26b84c245993a1bb28869ef1e6a7 | 413 | ex | Elixir | test/support/factory.ex | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | null | null | null | test/support/factory.ex | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | null | null | null | test/support/factory.ex | jesseshieh/chess | 80e6854d5f0a05420e5eea6deee9e41f03445b5a | [
"MIT"
] | null | null | null | defmodule Chess.Factory do
alias Chess.Auth.User
alias Chess.Store.Game
alias Chess.Repo
def create_user(username \\ "zelda", password \\ "password") do
User.changeset(
%User{},
%{username: username, password: password}
)
|> Repo.insert!
end
def create_game_for(user) do
Game.cr... | 18.772727 | 65 | 0.624697 |
7393bd6a2bad61f4210f5604fb88dc34f561ffc2 | 1,125 | exs | Elixir | config/config.exs | kor-and-m/exproto | 64fcacd898b7a7947ec224e799caf9feacf78928 | [
"MIT"
] | 4 | 2018-03-19T13:34:35.000Z | 2018-07-11T19:20:34.000Z | config/config.exs | kor-and-m/exproto | 64fcacd898b7a7947ec224e799caf9feacf78928 | [
"MIT"
] | 1 | 2021-06-28T12:46:27.000Z | 2021-06-28T12:46:27.000Z | config/config.exs | k10pr0f/exproto | 3ae86c1308527a723465a14236849c7ab9ba949c | [
"MIT"
] | 1 | 2019-05-27T11:46:01.000Z | 2019-05-27T11:46:01.000Z | # 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.290323 | 73 | 0.752 |
7393c8372a177ea2f30dcaf95e0373f2016ee843 | 11,137 | exs | Elixir | test/ex_force/oauth_test.exs | gabrielpra1/ex_force | dcfad966649769b7fc581e9be770e895f5bcd12f | [
"MIT"
] | null | null | null | test/ex_force/oauth_test.exs | gabrielpra1/ex_force | dcfad966649769b7fc581e9be770e895f5bcd12f | [
"MIT"
] | null | null | null | test/ex_force/oauth_test.exs | gabrielpra1/ex_force | dcfad966649769b7fc581e9be770e895f5bcd12f | [
"MIT"
] | 2 | 2020-10-15T23:11:22.000Z | 2020-10-16T14:33:26.000Z | defmodule ExForce.OAuthTest do
use ExUnit.Case, async: true
doctest(ExForce.OAuth)
alias ExForce.{OAuth, OAuthResponse}
alias Plug.Conn
@unreachable_url "http://257.0.0.0:0"
setup do
with bypass <- Bypass.open(),
client <- OAuth.build_client(bypass_url(bypass)) do
{:ok, bypass: bypass,... | 33.851064 | 191 | 0.556254 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.