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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e65ae992ac4344dc4c38ea1cf6bbc822d7b95b1 | 17,760 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/sites.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/sites.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/sites.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 48.92562 | 457 | 0.624606 |
9e66832457266469df58dbfb8db58b1c9d7328b3 | 90 | ex | Elixir | web/views/live_view.ex | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | web/views/live_view.ex | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | web/views/live_view.ex | jschoch/unpolydrab | 419fa9ac2e23edcc347dc96102caffaedc0beb36 | [
"MIT"
] | null | null | null | defmodule DrabTestApp.LiveView do
@moduledoc false
use DrabTestApp.Web, :view
end
| 12.857143 | 33 | 0.755556 |
9e669c09c3d301b9d31129bcbeddf81b8eb4d511 | 978 | ex | Elixir | lib/tix.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 1 | 2021-08-16T18:52:45.000Z | 2021-08-16T18:52:45.000Z | lib/tix.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 16 | 2021-03-09T19:39:31.000Z | 2022-03-15T15:20:24.000Z | lib/tix.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | null | null | null | defmodule Tix do
require Logger
@moduledoc """
Documentation for Tix.
"""
@doc """
Starts the Tix supervisor that watches the file system and runs the appropriate test(s).
"""
def start do
Code.compiler_options(ignore_module_conflict: true)
{:ok, _started_apps} = Application.ensure_all_started... | 19.959184 | 90 | 0.668712 |
9e669f06636582b687565cebd194017e6f7d6b5e | 399 | exs | Elixir | mix.exs | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | 1 | 2019-07-04T00:39:31.000Z | 2019-07-04T00:39:31.000Z | mix.exs | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | null | null | null | mix.exs | qwertystop/dominions5.analyst | 7c39ea14640b3a2d2c70df249688bc501f2f2184 | [
"MIT"
] | null | null | null | defmodule TurnStructure.Mixfile do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#
#... | 19 | 59 | 0.656642 |
9e66c2b4d01039bf232261e16636c5755edf482d | 9,388 | ex | Elixir | lib/protobuf/encoder.ex | jechol/protobuf | 8a361e684da2b14d0e68a02372888833e4929c91 | [
"MIT"
] | null | null | null | lib/protobuf/encoder.ex | jechol/protobuf | 8a361e684da2b14d0e68a02372888833e4929c91 | [
"MIT"
] | null | null | null | lib/protobuf/encoder.ex | jechol/protobuf | 8a361e684da2b14d0e68a02372888833e4929c91 | [
"MIT"
] | null | null | null | defmodule Protobuf.Encoder do
@moduledoc false
import Protobuf.WireTypes
import Bitwise, only: [bsr: 2, band: 2, bsl: 2, bor: 2]
alias Protobuf.{MessageProps, FieldProps}
@spec encode(atom, map | struct, keyword) :: iodata
def encode(mod, msg, opts) do
case msg do
%{__struct__: ^mod} ->
... | 31.086093 | 95 | 0.623775 |
9e66ca5fd95e5ebe4e1f164bf7538261b1a6b28f | 1,348 | ex | Elixir | apps/omg_watcher/lib/challenger/challenge.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/challenger/challenge.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/challenger/challenge.ex | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 36.432432 | 103 | 0.718101 |
9e66ed36dfda02e85629c387c99e37c797e1aa51 | 1,320 | exs | Elixir | phoenix_commerce/config/dev.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_commerce/config/dev.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_commerce/config/dev.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :phoenix_commerce, PhoenixCommerce.Endpoint,
h... | 30.697674 | 74 | 0.72197 |
9e672a250e1f539db5fa7947b97e8f996a26ea17 | 1,343 | ex | Elixir | lib/bitcoin/protocol/messages/reject.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 81 | 2017-04-20T17:42:59.000Z | 2022-02-08T03:49:22.000Z | lib/bitcoin/protocol/messages/reject.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 2 | 2017-09-07T13:58:57.000Z | 2018-01-13T10:38:07.000Z | lib/bitcoin/protocol/messages/reject.ex | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 22 | 2017-08-16T14:19:44.000Z | 2021-12-22T04:36:57.000Z | defmodule Bitcoin.Protocol.Messages.Reject do
@moduledoc """
The reject message is sent when messages are rejected.
https://en.bitcoin.it/wiki/Protocol_specification#reject
"""
alias Bitcoin.Protocol.Types.VarString
@reject_reasons %{
0x01 => :malformed,
0x10 => :invalid,
0x11 => :obsole... | 25.826923 | 123 | 0.63589 |
9e674f5f62dac27d965baafde7b872478d1b8ce4 | 425 | exs | Elixir | test/roleboard_web/views/error_view_test.exs | JuneShores/roleboard | 76a3b1f68f65aa5b18866ed62cd018235f7b9b13 | [
"MIT"
] | null | null | null | test/roleboard_web/views/error_view_test.exs | JuneShores/roleboard | 76a3b1f68f65aa5b18866ed62cd018235f7b9b13 | [
"MIT"
] | 2 | 2021-03-10T04:37:08.000Z | 2021-05-11T00:20:22.000Z | test/roleboard_web/views/error_view_test.exs | JuneShores/roleboard | 76a3b1f68f65aa5b18866ed62cd018235f7b9b13 | [
"MIT"
] | null | null | null | defmodule RoleboardWeb.ErrorViewTest do
use RoleboardWeb.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(RoleboardWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
... | 28.333333 | 94 | 0.738824 |
9e6750bae9aa71f5dbe0969bedabe3988642ae93 | 131 | ex | Elixir | debian/rtchmod.cron.d.ex | tarhovalex/rtchmod | 35b207cfb0974fab7444ef9bf0b93c38822e2bd7 | [
"MIT"
] | null | null | null | debian/rtchmod.cron.d.ex | tarhovalex/rtchmod | 35b207cfb0974fab7444ef9bf0b93c38822e2bd7 | [
"MIT"
] | 5 | 2018-07-31T15:16:02.000Z | 2021-12-05T23:08:52.000Z | debian/rtchmod.cron.d.ex | tarhovalex/rtchmod | 35b207cfb0974fab7444ef9bf0b93c38822e2bd7 | [
"MIT"
] | 1 | 2015-11-15T21:44:51.000Z | 2015-11-15T21:44:51.000Z | #
# Regular cron jobs for the rtchmod package
#
0 4 * * * root [ -x /usr/bin/rtchmod_maintenance ] && /usr/bin/rtchmod_maintenance
| 26.2 | 82 | 0.70229 |
9e6788167556295ab0d3c142f4feeb88d4575314 | 1,432 | exs | Elixir | test/petal/avatar_test.exs | MortadaAK/petal_components | 69980b96afec232715071d75d3a394ac6daf75b3 | [
"MIT"
] | null | null | null | test/petal/avatar_test.exs | MortadaAK/petal_components | 69980b96afec232715071d75d3a394ac6daf75b3 | [
"MIT"
] | null | null | null | test/petal/avatar_test.exs | MortadaAK/petal_components | 69980b96afec232715071d75d3a394ac6daf75b3 | [
"MIT"
] | null | null | null | defmodule PetalComponents.AvatarTest do
use ComponentCase
import PetalComponents.Avatar
test "it renders the avatar correctly" do
assigns = %{}
html =
rendered_to_string(~H"""
<.avatar src="image.png" />
""")
assert html =~ "<img"
end
test "it renders the avatar with placehol... | 18.358974 | 90 | 0.553073 |
9e67945b48e6d8bcbf1ce02e6c50008ccf715d07 | 3,339 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/block_getter/supervisor.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher/lib/omg_watcher/block_getter/supervisor.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher/lib/omg_watcher/block_getter/supervisor.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 40.719512 | 117 | 0.736149 |
9e67b51c92bc2076b9a7399b11252b098ec3ebfd | 716 | ex | Elixir | lib/secret_grinch_web/controllers/session_controller.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 3 | 2017-08-03T16:49:18.000Z | 2018-10-03T03:30:26.000Z | lib/secret_grinch_web/controllers/session_controller.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 18 | 2017-08-04T12:43:08.000Z | 2017-08-05T14:15:41.000Z | lib/secret_grinch_web/controllers/session_controller.ex | clorofila-league/secret_grinch | b06ac85ff5f06d5405d190ccc9966b01f0406b87 | [
"Apache-2.0"
] | 1 | 2018-10-03T03:30:29.000Z | 2018-10-03T03:30:29.000Z | defmodule SecretGrinchWeb.SessionController do
use SecretGrinchWeb, :controller
def new(conn, _) do
render conn, "new.html"
end
def create(conn, %{"session" => %{"email" => email, "password" => pass}}) do
case SecretGrinchWeb.Auth.login_by_email_and_pass(conn, email, pass, repo: SecretGrinch.Repo) do
... | 26.518519 | 100 | 0.634078 |
9e67bb7143a85974970e8c1d05f4e92b4250d29a | 938 | ex | Elixir | apps/exsemantica_phx/lib/exsemantica_phx/protect.ex | Chlorophytus/exsemantica | f1c64cb8ae0543e5a2f015a65071d81d57fa3224 | [
"Apache-2.0"
] | 1 | 2021-09-11T15:46:04.000Z | 2021-09-11T15:46:04.000Z | apps/exsemantica_phx/lib/exsemantica_phx/protect.ex | Chlorophytus/exsemantica | f1c64cb8ae0543e5a2f015a65071d81d57fa3224 | [
"Apache-2.0"
] | 4 | 2021-01-18T00:49:02.000Z | 2022-02-23T05:18:37.000Z | apps/exsemantica_phx/lib/exsemantica_phx/protect.ex | Chlorophytus/exsemantica | f1c64cb8ae0543e5a2f015a65071d81d57fa3224 | [
"Apache-2.0"
] | null | null | null | defmodule ExsemanticaPhx.Protect do
import Ecto.Query
@paranoia 4096
def create_contract(username) do
user_struct =
ExsemanticaPhx.Repo.one(
from(u in ExsemanticaPhx.Site.User, where: u.username == ^username and is_nil(u.contract))
)
cond do
is_nil(user_struct) ->
nil
... | 22.878049 | 98 | 0.641791 |
9e67e2c69790ac83ff6c710206b16ba3937822bf | 2,615 | ex | Elixir | lib/html_sanitize_ex/scrubber/markdown_html.ex | v1z4/html_sanitize_ex | 03b0894a492a71083d00a524dc9e1156a529bc65 | [
"MIT"
] | null | null | null | lib/html_sanitize_ex/scrubber/markdown_html.ex | v1z4/html_sanitize_ex | 03b0894a492a71083d00a524dc9e1156a529bc65 | [
"MIT"
] | null | null | null | lib/html_sanitize_ex/scrubber/markdown_html.ex | v1z4/html_sanitize_ex | 03b0894a492a71083d00a524dc9e1156a529bc65 | [
"MIT"
] | null | null | null | defmodule HtmlSanitizeEx.Scrubber.MarkdownHTML do
@moduledoc """
Allows basic HTML tags to support user input for writing relatively
plain text with Markdown (GitHub flavoured Markdown supported).
Technically this is a more relaxed version of the BasicHTML scrubber.
Does not allow any mailto-links, styling,... | 33.101266 | 73 | 0.734608 |
9e67e727932c9085d779bffd622b278aa3815770 | 833 | exs | Elixir | test/support/test_factory.exs | dark-elixir/dark_testing | 1969ea2a08f6dbeaa0f3556da0338bae9bbb465b | [
"MIT"
] | null | null | null | test/support/test_factory.exs | dark-elixir/dark_testing | 1969ea2a08f6dbeaa0f3556da0338bae9bbb465b | [
"MIT"
] | null | null | null | test/support/test_factory.exs | dark-elixir/dark_testing | 1969ea2a08f6dbeaa0f3556da0338bae9bbb465b | [
"MIT"
] | null | null | null | defmodule DarkTesting.TestFactory do
# credo:disable-for-this-file
defmodule TestStruct do
defstruct [:a, :b, :c, :d, :no_matcher, :matcher]
end
def example_test_mutation_factory do
%{no_matcher: []}
end
def example_test_with_matcher_mutation_matchers do
%{matcher: &is_nil/1}
end
def exa... | 20.825 | 54 | 0.683073 |
9e67fa48286a1fdf6a813800c5293c2253841a1f | 629 | exs | Elixir | apps/tai/test/tai/orders/transitions/accept_cancel_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/test/tai/orders/transitions/accept_cancel_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/test/tai/orders/transitions/accept_cancel_test.exs | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Orders.Transitions.AcceptCancelTest do
use ExUnit.Case, async: false
alias Tai.Orders.Transitions
test ".attrs/1 returns a list of updatable order attributes" do
last_received_at = DateTime.utc_now()
last_venue_timestamp = DateTime.utc_now()
transition = %Transitions.AcceptCancel{
... | 31.45 | 65 | 0.758347 |
9e67fb38806c73ae88282a03b2028b17f9e368de | 28,019 | exs | Elixir | test/trento/domain/sap_system/sap_system_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | test/trento/domain/sap_system/sap_system_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | test/trento/domain/sap_system/sap_system_test.exs | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.SapSystemTest do
use Trento.AggregateCase, aggregate: Trento.Domain.SapSystem, async: true
import Trento.Factory
alias Trento.Domain.Commands.{
RegisterApplicationInstance,
RegisterDatabaseInstance
}
alias Trento.Domain.Events.{
ApplicationInstanceHealthChanged,
Application... | 32.77076 | 107 | 0.580463 |
9e68051f52192e791650d542d492fa14f4ac94f0 | 1,756 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response_insert_errors.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response_insert_errors.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response_insert_errors.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.12 | 156 | 0.739749 |
9e6811fa19f0f34d505e261196b1a5af6eddb87d | 617 | ex | Elixir | lib/phone/nanp.ex | turnhub/phone | 020d4ac43d1b191a7b2b7ff3c15cfe8078646c7a | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp.ex | turnhub/phone | 020d4ac43d1b191a7b2b7ff3c15cfe8078646c7a | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp.ex | turnhub/phone | 020d4ac43d1b191a7b2b7ff3c15cfe8078646c7a | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP do
@moduledoc false
use Helper.Country
matcher(:modules, [
Phone.NANP.AS,
Phone.NANP.AI,
Phone.NANP.AG,
Phone.NANP.BS,
Phone.NANP.BB,
Phone.NANP.BM,
Phone.NANP.CA,
Phone.NANP.DM,
Phone.NANP.DO,
Phone.NANP.GD,
Phone.NANP.GU,
Phone.NANP.JM1,
... | 17.138889 | 23 | 0.602917 |
9e6834e8a90532979cffaf0779ec7d9e50ce5537 | 3,499 | exs | Elixir | test/mailto_test.exs | kianmeng/url | e65a0f3cff4bea203c7965d4d7c4cf612169d726 | [
"Apache-2.0"
] | null | null | null | test/mailto_test.exs | kianmeng/url | e65a0f3cff4bea203c7965d4d7c4cf612169d726 | [
"Apache-2.0"
] | null | null | null | test/mailto_test.exs | kianmeng/url | e65a0f3cff4bea203c7965d4d7c4cf612169d726 | [
"Apache-2.0"
] | null | null | null | defmodule MailtoTest do
use ExUnit.Case
test "simple mailto" do
assert URL.parse("mailto:infobot@example.com?subject=current-issue") ==
%URL{
authority: nil,
fragment: nil,
host: nil,
parsed_path: %URL.Mailto{
params: %{"subject" => "current-issue"},
to... | 27.335938 | 98 | 0.54044 |
9e68400b328d44222f90ff8de64b15de685928a1 | 158 | ex | Elixir | lib/bitpay/errors.ex | bitpay/elixir-client | cccf8abbad5da7ad3d01d186bd14bf69eca68770 | [
"MIT"
] | 35 | 2015-01-18T02:16:11.000Z | 2021-11-14T01:55:34.000Z | lib/bitpay/errors.ex | philosodad/bitpay-elixir | cccf8abbad5da7ad3d01d186bd14bf69eca68770 | [
"MIT"
] | 3 | 2015-06-24T15:18:57.000Z | 2017-05-17T17:52:05.000Z | lib/bitpay/errors.ex | bitpay/elixir-client | cccf8abbad5da7ad3d01d186bd14bf69eca68770 | [
"MIT"
] | 13 | 2015-01-16T21:11:22.000Z | 2021-10-29T23:23:59.000Z | defmodule BitPay.ArgumentError do
defexception message: "incorrect argument"
end
defmodule BitPay.BitPayError do
defexception message: "BitPay Error"
end
| 22.571429 | 44 | 0.822785 |
9e6842ad0e99c0aec33de52836c9bd455f7b5c9e | 1,835 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_update_user_link_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_update_user_link_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_update_user_link_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.622642 | 160 | 0.768937 |
9e68804aba4b32ce1c1fe19d43f420a6590f9c84 | 684 | ex | Elixir | lib/mix/tasks/gen.referrals.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | lib/mix/tasks/gen.referrals.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | lib/mix/tasks/gen.referrals.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Mix.Tasks.Gen.Referrals do
use Mix.Task
alias Safira.Contest
def run(args) do
cond do
length(args) != 2 ->
Mix.shell.info "Needs to receive badge id and number of refarrels"
args |> List.last |> String.to_integer <= 0 ->
Mix.shell.info "Number of refarrels needs to be ab... | 25.333333 | 74 | 0.605263 |
9e6880a96d8f6c66d2c49022f711554f88a8c943 | 15,315 | ex | Elixir | lib/elixir/lib/code.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/elixir/lib/code.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | defmodule Code do
defexception LoadError, [:file, :message] do
def exception(opts) do
file = opts[:file]
LoadError[message: "could not load #{file}", file: file]
end
end
@moduledoc """
Utilities for managing code compilation, code evaluation and code loading.
This module complements [Erl... | 32.106918 | 123 | 0.685929 |
9e6880b238363492ca359aeaa0728c610bdee7ff | 2,035 | exs | Elixir | test/fighter/accounts/accounts_test.exs | gautambaghel/fighter | 970a098f0d234892af351070b6b2b596b9a2d83c | [
"Apache-2.0"
] | null | null | null | test/fighter/accounts/accounts_test.exs | gautambaghel/fighter | 970a098f0d234892af351070b6b2b596b9a2d83c | [
"Apache-2.0"
] | null | null | null | test/fighter/accounts/accounts_test.exs | gautambaghel/fighter | 970a098f0d234892af351070b6b2b596b9a2d83c | [
"Apache-2.0"
] | null | null | null | defmodule Fighter.AccountsTest do
use Fighter.DataCase
alias Fighter.Accounts
describe "users" do
alias Fighter.Accounts.User
@valid_attrs %{email: "some email", name: "some name"}
@update_attrs %{email: "some updated email", name: "some updated name"}
@invalid_attrs %{email: nil, name: nil}
... | 29.926471 | 85 | 0.649631 |
9e688e3f7424afa50ea51305072d83fc6fce7acf | 1,022 | exs | Elixir | test/support/endpoint.exs | devonestes/ex_admin | e135ae7c28de78fc87baf519ff8a32da12e8bf66 | [
"MIT"
] | 1,347 | 2015-10-05T18:23:49.000Z | 2022-01-09T18:38:36.000Z | test/support/endpoint.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 402 | 2015-10-03T13:53:32.000Z | 2021-07-08T09:52:22.000Z | test/support/endpoint.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 333 | 2015-10-12T22:56:57.000Z | 2021-05-26T18:40:24.000Z | defmodule TestExAdmin.Endpoint do
use Phoenix.Endpoint, otp_app: :ex_admin
# 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,
at: "/",
from: :ex_admi... | 22.217391 | 70 | 0.681996 |
9e689fcb88390c6574c4343b144868c161cb0de1 | 6,375 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/iam/lib/google_api/iam/v1/model/policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/iam/lib/google_api/iam/v1/model/policy.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... | 113.839286 | 2,012 | 0.748549 |
9e68cfe3f457a6b01d9b8477cc539a4623e86714 | 1,631 | ex | Elixir | lib/web/router.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 1 | 2020-06-03T07:45:17.000Z | 2020-06-03T07:45:17.000Z | lib/web/router.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 6 | 2021-06-17T23:13:19.000Z | 2021-08-31T21:15:21.000Z | lib/web/router.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 2 | 2020-06-03T22:08:06.000Z | 2022-03-11T22:13:36.000Z | defmodule Web.Router do
use Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Web.Plugs.FetchUser
end
pipeline :logged_in do
plug Web.Plugs.EnsureUser
end
pipeline :a... | 22.652778 | 92 | 0.678725 |
9e68d97e833f58880a1f2c659137e7d6c1e01cc2 | 12,534 | ex | Elixir | lib/engines/pki/pki.ex | azohra/ptolemy | a1a7007f5408271cc88b30560ed636c6bd26e77c | [
"MIT"
] | 15 | 2018-12-20T15:02:21.000Z | 2020-10-09T00:38:47.000Z | lib/engines/pki/pki.ex | azohra/ptolemy | a1a7007f5408271cc88b30560ed636c6bd26e77c | [
"MIT"
] | 7 | 2019-03-01T19:05:09.000Z | 2019-04-12T19:38:45.000Z | lib/engines/pki/pki.ex | azohra/ptolemy | a1a7007f5408271cc88b30560ed636c6bd26e77c | [
"MIT"
] | 2 | 2019-02-26T16:02:12.000Z | 2020-04-24T15:44:34.000Z | defmodule Ptolemy.Engines.PKI do
@moduledoc """
`Ptolemy.Engines.PKI` provides a public facing API for CRUD operations for the Vault PKI engine.
Some function in this modules have additional options that can be provided to vault, you can get the option
values from: https://www.vaultproject.io/api/secret/pki/in... | 36.649123 | 109 | 0.651189 |
9e68e6e446b84820cd11d880b206cd5f2beaeb6c | 787 | ex | Elixir | lib/mix/tasks/google_apis.discover.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/google_apis.discover.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/google_apis.discover.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 29.148148 | 74 | 0.747141 |
9e68f1430a3d471a7c72051cfe1bf1faf384628b | 962 | ex | Elixir | api/lib/remote_day/emails/late_remote_day.ex | arkanoryn/remote_day | 10e0a4b8995c44fae774c21189725b54f69186b4 | [
"Apache-2.0"
] | null | null | null | api/lib/remote_day/emails/late_remote_day.ex | arkanoryn/remote_day | 10e0a4b8995c44fae774c21189725b54f69186b4 | [
"Apache-2.0"
] | 24 | 2018-10-19T07:54:11.000Z | 2022-02-26T13:28:55.000Z | api/lib/remote_day/emails/late_remote_day.ex | arkanoryn/remote_day | 10e0a4b8995c44fae774c21189725b54f69186b4 | [
"Apache-2.0"
] | null | null | null | defmodule RemoteDay.Emails.LateRemoteWorkers do
@moduledoc """
email to late announcement
"""
import Bamboo.Email
alias RemoteDay.{
Account.User,
Emails.Receivers
}
require Logger
@from "remote@your_office.com"
def announcement(%User{} = user) do
date = Timex.format!(Timex.today(), "{0... | 17.814815 | 62 | 0.586279 |
9e6954a0fe41f98d1492479e36316e9fafee22da | 3,782 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 57.30303 | 515 | 0.735854 |
9e699edda0c977ae77c74479defcf40be97df9d4 | 190 | ex | Elixir | testData/org/elixir_lang/parser_definition/bracket_operation_parsing_test_case/DualOperator.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/bracket_operation_parsing_test_case/DualOperator.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/bracket_operation_parsing_test_case/DualOperator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | Module.+[key: value]
Module.+ [key: value]
Module.+[()]
Module.+ [()]
Module.+[matched_expression]
Module.+ [matched_expression]
Module.+[matched_expression,]
Module.+ [matched_expression,]
| 21.111111 | 30 | 0.715789 |
9e69d6cb50a8c3021ce6daee1dbc9aa0c799b309 | 498 | exs | Elixir | test/test_helper.exs | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 10 | 2015-03-15T16:12:00.000Z | 2021-02-09T09:30:17.000Z | test/test_helper.exs | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 1 | 2019-04-20T12:09:24.000Z | 2019-04-20T12:09:24.000Z | test/test_helper.exs | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 5 | 2019-01-19T19:47:09.000Z | 2021-11-11T23:54:25.000Z | ExUnit.start()
defmodule Fixtures do
def path(filename) do
Path.join [File.cwd!, "test", "fixtures", filename]
end
def read(filename) do
filename |> path |> File.read!
end
end
defmodule StagingArea do
@keep_files false
def path(filename) do
Path.join [File.cwd!, "test", "tmp", filename]
... | 15.090909 | 55 | 0.644578 |
9e69ee57ee0727ef8ecd351d5023838767713fee | 24,282 | ex | Elixir | data/auto_generated/video/85ccd74b8a2167063c1f4cf12e45b62d.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/auto_generated/video/85ccd74b8a2167063c1f4cf12e45b62d.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/auto_generated/video/85ccd74b8a2167063c1f4cf12e45b62d.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule(Data.AutoGenerated.Video.Rendered_85ccd74b8a2167063c1f4cf12e45b62d) do
@moduledoc "#{"Billeradweg (FR4): Walter-Hammer-Weg Richtung Westen (Nebenstrecke FR4)"}
AUTOGENERATED. To update this file, run mix velo.videos.generate.
See Video.Rendered for functionality.
"
@behaviour Video.Rendered
@im... | 73.138554 | 94 | 0.699036 |
9e69f64482c0524bf2c04ef3169fd8d2bc68d603 | 2,880 | ex | Elixir | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_cloud_policysimulator_v1_access_state_diff.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_cloud_policysimulator_v1_access_state_diff.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_cloud_policysimulator_v1_access_state_diff.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... | 42.352941 | 287 | 0.754167 |
9e69f9f36a63dddff4be684f690522984569306e | 138 | exs | Elixir | lectures/webserv/test/webserv_test.exs | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | lectures/webserv/test/webserv_test.exs | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | lectures/webserv/test/webserv_test.exs | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | defmodule WServerTest do
use ExUnit.Case
doctest WServer
test "greets the world" do
assert WServer.hello() == :world
end
end
| 15.333333 | 36 | 0.710145 |
9e6a1a49f4f0a7f09b36c319097247e3837fae22 | 118 | exs | Elixir | test/Microgun_test.exs | ridrum/Microgun | 44f0c1d17c97a7d9d43a8f1ee95b045e744f16e1 | [
"MIT"
] | null | null | null | test/Microgun_test.exs | ridrum/Microgun | 44f0c1d17c97a7d9d43a8f1ee95b045e744f16e1 | [
"MIT"
] | null | null | null | test/Microgun_test.exs | ridrum/Microgun | 44f0c1d17c97a7d9d43a8f1ee95b045e744f16e1 | [
"MIT"
] | null | null | null | defmodule MicrogunTest do
use ExUnit.Case
doctest Microgun
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.111111 | 25 | 0.677966 |
9e6a1cad31a5144133c6a875d08e7b5ac0a0add3 | 3,544 | exs | Elixir | test/bus_car/request_test.exs | elbow-jason/bus_car | cd70b9f6b8dd404eb518f642491e0a4430e2d9f9 | [
"MIT"
] | 18 | 2016-09-25T21:36:39.000Z | 2021-02-17T15:09:52.000Z | test/bus_car/request_test.exs | elbow-jason/bus_car | cd70b9f6b8dd404eb518f642491e0a4430e2d9f9 | [
"MIT"
] | 7 | 2016-12-08T05:01:23.000Z | 2018-04-05T08:55:11.000Z | test/bus_car/request_test.exs | elbow-jason/bus_car | cd70b9f6b8dd404eb518f642491e0a4430e2d9f9 | [
"MIT"
] | 1 | 2020-04-24T02:10:15.000Z | 2020-04-24T02:10:15.000Z | defmodule BusCarRequestTest do
use ExUnit.Case, async: true
doctest BusCar.Request
alias BusCar.Request
@valid %{
host: "beef",
port: 4444,
}
test "Request.new raises without :host" do
assert_raise RuntimeError, fn -> Request.new end
end
test "Request.new raises without :port" do
asse... | 28.352 | 92 | 0.610045 |
9e6a2d9e91f3b3b69d2c2633c93ce9918797f288 | 55,532 | exs | Elixir | test/wifi_compatibility_test.exs | axelson/vintage_net_wifi | b989ec5a8122fca212cf62e7e6b489af4314cb5e | [
"Apache-2.0"
] | 20 | 2019-12-03T18:26:25.000Z | 2022-02-08T09:27:23.000Z | test/wifi_compatibility_test.exs | axelson/vintage_net_wifi | b989ec5a8122fca212cf62e7e6b489af4314cb5e | [
"Apache-2.0"
] | 29 | 2020-01-21T02:21:47.000Z | 2022-02-16T13:02:24.000Z | test/wifi_compatibility_test.exs | axelson/vintage_net_wifi | b989ec5a8122fca212cf62e7e6b489af4314cb5e | [
"Apache-2.0"
] | 12 | 2020-02-16T16:48:03.000Z | 2022-03-24T12:10:52.000Z | defmodule WiFiCompatibilityTest do
use ExUnit.Case
alias VintageNet.Interface.RawConfig
import VintageNetWiFiTest.Utils
import ExUnit.CaptureLog
#
# These tests ensure that VintageNet.Technology.WiFi users get updated properly.
# This is super-important to keep for a while so that pre-0.7.0 users are no... | 30.579295 | 99 | 0.553014 |
9e6a31804b5cbb0d8bc0c57e71adb39895610952 | 69 | ex | Elixir | lib/todays_pizza_web/views/page_view.ex | JohnB/todays_pizza | 816c8f4f566558bbf8910ef6dd20e363bcddf8fd | [
"MIT"
] | null | null | null | lib/todays_pizza_web/views/page_view.ex | JohnB/todays_pizza | 816c8f4f566558bbf8910ef6dd20e363bcddf8fd | [
"MIT"
] | null | null | null | lib/todays_pizza_web/views/page_view.ex | JohnB/todays_pizza | 816c8f4f566558bbf8910ef6dd20e363bcddf8fd | [
"MIT"
] | null | null | null | defmodule TodaysPizzaWeb.PageView do
use TodaysPizzaWeb, :view
end
| 17.25 | 36 | 0.826087 |
9e6a3a2425df9a19de7aab88daa553ae0c6a9a11 | 1,011 | ex | Elixir | lib/login/session.ex | pablobm/doorman | 3e28226b91dcd50a0405a99fcc1437becb515bd1 | [
"MIT"
] | null | null | null | lib/login/session.ex | pablobm/doorman | 3e28226b91dcd50a0405a99fcc1437becb515bd1 | [
"MIT"
] | null | null | null | lib/login/session.ex | pablobm/doorman | 3e28226b91dcd50a0405a99fcc1437becb515bd1 | [
"MIT"
] | null | null | null | defmodule Doorman.Login.Session do
use Doorman.Login
@session_key :user_id
@session_secret :session_secret
@doc """
Logs in given user by setting `:user_id` on the session of passed in `conn`.
"""
def login(conn, user) do
conn
|> Plug.Conn.put_session(@session_key, user.id)
|> Plug.Conn.put_... | 25.923077 | 78 | 0.684471 |
9e6a5b20cf88145eff8880a90ef90ed1243d8819 | 7,466 | exs | Elixir | lib/elixir/test/elixir/code_formatter/literals_test.exs | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/literals_test.exs | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_formatter/literals_test.exs | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Code.Formatter.LiteralsTest do
use ExUnit.Case, async: true
import CodeFormatterHelpers
@short_length [line_length: 10]
describe "integers" do
test "in decimal base" do
assert_same "0"
assert_same "100"
assert_same "007"
a... | 18.949239 | 69 | 0.518216 |
9e6a65c85810ffab32c0b2652617f778cfa8fdb7 | 1,253 | ex | Elixir | lib/ibu/cup.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | 1 | 2021-01-18T17:39:05.000Z | 2021-01-18T17:39:05.000Z | lib/ibu/cup.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | lib/ibu/cup.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | defmodule IBU.Cup do
import IBU.DateHelper, only: [to_date_time: 1]
defstruct([
:ibu_id,
:as_of,
:description,
:name,
:short_name,
:completed_races,
:total_races,
:standings
])
@type t :: %__MODULE__{
ibu_id: binary,
as_of: DateTime.t(),
descriptio... | 25.06 | 93 | 0.5834 |
9e6a77dbee66fa9ee881e8a0e3bcef8e019d9ca8 | 4,636 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/request_builder.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/request_builder.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... | 28.795031 | 137 | 0.669974 |
9e6ae782d138cc8414acc01007f55963a919e5b6 | 39,698 | ex | Elixir | lib/phoenix/endpoint.ex | gjaldon/phoenix | a85a13d8bfbd7d768bb86d38da427875df3fb703 | [
"MIT"
] | 1 | 2015-05-19T11:04:16.000Z | 2015-05-19T11:04:16.000Z | lib/phoenix/endpoint.ex | gjaldon/phoenix | a85a13d8bfbd7d768bb86d38da427875df3fb703 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | gjaldon/phoenix | a85a13d8bfbd7d768bb86d38da427875df3fb703 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint do
@moduledoc ~S"""
Defines a Phoenix endpoint.
The endpoint is the boundary where all requests to your
web application start. It is also the interface your
application provides to the underlying web servers.
Overall, an endpoint has three responsibilities:
* to provide a w... | 48.060533 | 10,136 | 0.752884 |
9e6af080c6e8640a9ac0b7c4e8e051480df77e86 | 496 | exs | Elixir | apps/core/priv/prm_repo/migrations/20180611121332_create_contract_divisions.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/prm_repo/migrations/20180611121332_create_contract_divisions.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/prm_repo/migrations/20180611121332_create_contract_divisions.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMRepo.Migrations.CreateContractDivisions do
@moduledoc false
use Ecto.Migration
def change do
create table(:contract_divisions, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:division_id, :uuid, null: false)
add(:contract_id, references(:contracts, type: :u... | 27.555556 | 81 | 0.693548 |
9e6af111c8050d37e1ad5f5256efb1c473ab6b89 | 14,164 | ex | Elixir | lib/ash_json_api/controllers/helpers.ex | ash-project/ash_json_api | 93cb568a3f1ee91f8cfc0f493088d15b42a3f6ea | [
"MIT"
] | 11 | 2020-09-21T22:03:42.000Z | 2022-02-02T23:48:11.000Z | lib/ash_json_api/controllers/helpers.ex | ash-project/ash_json_api | 93cb568a3f1ee91f8cfc0f493088d15b42a3f6ea | [
"MIT"
] | 44 | 2020-05-02T04:37:42.000Z | 2021-06-25T14:38:44.000Z | lib/ash_json_api/controllers/helpers.ex | ash-project/ash_json_api | 93cb568a3f1ee91f8cfc0f493088d15b42a3f6ea | [
"MIT"
] | 9 | 2020-08-25T20:23:34.000Z | 2022-02-14T04:40:10.000Z | defmodule AshJsonApi.Controllers.Helpers do
@moduledoc false
# @moduledoc """
# When we open up ash json api tooling to allow people to build custom
# behavior around it, we can use this documentation
# Tools for control flow around a request, and common controller utilities.
# While we haven't focused on ... | 27.827112 | 99 | 0.588323 |
9e6afa26a155f8fee0908d20c9a80c1d2947087c | 2,148 | ex | Elixir | lib/challenge_gov/saved_challenges.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/challenge_gov/saved_challenges.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/challenge_gov/saved_challenges.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.SavedChallenges do
@moduledoc """
Context for saved challenges
"""
@behaviour Stein.Filter
import Ecto.Query
alias ChallengeGov.Challenges
alias ChallengeGov.GovDelivery
alias ChallengeGov.Repo
alias ChallengeGov.SavedChallenges.SavedChallenge
alias Stein.Filter
def all(u... | 21.918367 | 75 | 0.637803 |
9e6b0371063781488f44e6f1c15338891d9c6d20 | 41,297 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 47.467816 | 1,062 | 0.678427 |
9e6b03cf60af4f1b30c51202bd33490a338dcc5a | 1,660 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_attach_endpoints_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_attach_endpoints_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/network_endpoint_groups_attach_endpoints_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.877551 | 153 | 0.760843 |
9e6b06448f3678b9646e7988b9ccac3f44287385 | 2,573 | ex | Elixir | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_response_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_response_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_custom_batch_response_entry.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.203125 | 201 | 0.707346 |
9e6b09ff4fbea17f1a7fe0f8722fca41d4b8772c | 1,411 | ex | Elixir | lib/uro_web/controllers/session_controller.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | lib/uro_web/controllers/session_controller.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | lib/uro_web/controllers/session_controller.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule UroWeb.SessionController do
use UroWeb, :controller
use UroWeb.Helpers.Auth
@doc false
defp login_valid(conn) do
conn
|> put_flash(:info, gettext("Welcome back!"))
|> redirect(to: Routes.page_path(conn, :index))
end
@doc false
defp login_invalid(conn) do
conn
|> put_flash(:... | 25.196429 | 85 | 0.639972 |
9e6b17e9640457758c53a415df54231bc240fe68 | 12,732 | ex | Elixir | lib/rummage_ecto/hooks/sort.ex | ramansah/rummage_ecto | 0f24fdccfe504e3c5b8337698446c17fefc60766 | [
"MIT"
] | 1 | 2019-02-11T19:54:24.000Z | 2019-02-11T19:54:24.000Z | lib/rummage_ecto/hooks/sort.ex | ramansah/rummage_ecto | 0f24fdccfe504e3c5b8337698446c17fefc60766 | [
"MIT"
] | null | null | null | lib/rummage_ecto/hooks/sort.ex | ramansah/rummage_ecto | 0f24fdccfe504e3c5b8337698446c17fefc60766 | [
"MIT"
] | 2 | 2019-11-02T21:36:27.000Z | 2021-03-02T15:58:31.000Z | defmodule Rummage.Ecto.Hook.Sort do
@moduledoc """
`Rummage.Ecto.Hook.Sort` is the default sort hook that comes with
`Rummage.Ecto`.
This module provides a operations that can add sorting functionality to
a pipeline of `Ecto` queries. This module works by taking the `field` that should
be used to `order_by... | 35.07438 | 157 | 0.670908 |
9e6b4070dd18306fb553986d1c4e4d5a23f8b8da | 1,888 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/service_account.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/service_account.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/service_account.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... | 37.76 | 169 | 0.745233 |
9e6b8d75e4709e3c058e3d727c325ca34a018674 | 312 | ex | Elixir | lib/api_web/views/attendance_view.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 1 | 2017-09-10T23:51:40.000Z | 2017-09-10T23:51:40.000Z | lib/api_web/views/attendance_view.ex | nunopolonia/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | 24 | 2018-03-14T18:17:00.000Z | 2021-03-01T07:47:53.000Z | lib/api_web/views/attendance_view.ex | portosummerofcode/psc-api | 2e358503851cc04cdaa89201a3f56586f8746736 | [
"MIT"
] | null | null | null | defmodule ApiWeb.AttendanceView do
use Api.Web, :view
alias ApiWeb.{Admin.UserView}
def render("attendance_user.json", %{attendance: attendance}) do
Map.merge(
render_one(attendance.user, UserView, "user_short.json"),
%{
checked_in: attendance.checked_in,
}
)
end
end
| 20.8 | 66 | 0.666667 |
9e6bb13bf047d2ef2a8105d67e5bdf4b4f425b9d | 461 | exs | Elixir | rel/config.exs | Nebo15/ael.api | 22624a2673d0af1ef5f89b2429979456d2589eda | [
"MIT"
] | 19 | 2017-04-27T14:00:16.000Z | 2021-06-08T20:47:39.000Z | rel/config.exs | Nebo15/ael.api | 22624a2673d0af1ef5f89b2429979456d2589eda | [
"MIT"
] | 3 | 2017-05-17T13:13:33.000Z | 2017-05-29T15:08:30.000Z | rel/config.exs | Nebo15/ael.api | 22624a2673d0af1ef5f89b2429979456d2589eda | [
"MIT"
] | 4 | 2017-07-27T16:15:22.000Z | 2021-06-08T20:47:45.000Z | use Mix.Releases.Config,
default_release: :default,
default_environment: :default
environment :default do
set pre_start_hook: "bin/hooks/pre-start.sh"
set dev_mode: false
set include_erts: false
set include_src: false
set overlays: [
{:template, "rel/templates/vm.args.eex", "releases/<%= release_vers... | 21.952381 | 87 | 0.720174 |
9e6bc38e35eda9032796c31615763d5a67c59f91 | 2,387 | exs | Elixir | mix.exs | FunkyStudioHQ/phoenix-pagination | 558de222d268529031de8782e8027c01831076af | [
"MIT"
] | null | null | null | mix.exs | FunkyStudioHQ/phoenix-pagination | 558de222d268529031de8782e8027c01831076af | [
"MIT"
] | null | null | null | mix.exs | FunkyStudioHQ/phoenix-pagination | 558de222d268529031de8782e8027c01831076af | [
"MIT"
] | null | null | null | defmodule Phoenix.Pagination.Mixfile do
use Mix.Project
@version "0.6.0"
def project do
[app: :phoenix_pagination,
version: @version,
elixir: "~> 1.7",
elixirc_paths: path(Mix.env),
package: package(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
dep... | 28.759036 | 81 | 0.581902 |
9e6be0da1797951cc3234d2fc84fd62e19df3ca1 | 2,828 | ex | Elixir | lib/rogger.ex | szTheory/rogger | bf8acdd90fedce5451e60170ce7abd8a8645e61d | [
"MIT"
] | 15 | 2015-04-28T07:16:38.000Z | 2020-08-25T01:22:59.000Z | lib/rogger.ex | szTheory/rogger | bf8acdd90fedce5451e60170ce7abd8a8645e61d | [
"MIT"
] | null | null | null | lib/rogger.ex | szTheory/rogger | bf8acdd90fedce5451e60170ce7abd8a8645e61d | [
"MIT"
] | 2 | 2015-11-05T16:08:34.000Z | 2020-03-03T21:16:36.000Z | defmodule Rogger do
use Application
use GenServer
use Timex
require Logger
@info_exchange "info"
@warn_exchange "warn"
@error_exchange "error"
@app Application.get_env :rogger, :app
### Public API
def init(_) do
{:ok, configure([])}
end
def handle_call({:configure, options}, _state) do
... | 29.768421 | 90 | 0.662659 |
9e6c0b4b4831276fa073410f484d932932fc3ebc | 2,355 | ex | Elixir | lib/joq/job_event.ex | FelixKiunke/joq | aa71b20b6a385eb80a06045b28d19aad2d697ade | [
"Unlicense",
"MIT"
] | null | null | null | lib/joq/job_event.ex | FelixKiunke/joq | aa71b20b6a385eb80a06045b28d19aad2d697ade | [
"Unlicense",
"MIT"
] | 2 | 2017-01-20T17:39:37.000Z | 2017-01-20T17:40:49.000Z | lib/joq/job_event.ex | FelixKiunke/joq | aa71b20b6a385eb80a06045b28d19aad2d697ade | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Joq.JobEvent do
@moduledoc ~S"""
Reports events from the job running lifecycle.
Events are `{result, job}` messages where `job` is a `Joq.Job` struct and
`result` can be
* `:finished` - the job was completed successfully,
* `:failed` - an error has occurred (note this event after the last at... | 24.53125 | 79 | 0.637792 |
9e6c52a2a806ad718a150226e51e1e940ceb98f1 | 18,465 | ex | Elixir | lib/elixir/lib/module/types/pattern.ex | tverlaan/elixir | d25b61db13d94ee83374748581c7bcb8e2dfc0e6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/types/pattern.ex | tverlaan/elixir | d25b61db13d94ee83374748581c7bcb8e2dfc0e6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/types/pattern.ex | tverlaan/elixir | d25b61db13d94ee83374748581c7bcb8e2dfc0e6 | [
"Apache-2.0"
] | null | null | null | defmodule Module.Types.Pattern do
@moduledoc false
alias Module.Types.Of
import Module.Types.{Helpers, Unify}
@doc """
Handles patterns and guards at once.
"""
def of_head(patterns, guards, stack, context) do
with {:ok, types, context} <-
map_reduce_ok(patterns, context, &of_pattern(&1, s... | 33.330325 | 98 | 0.579529 |
9e6ca5a6bc53aaaaa882c44e6213a2e9de9b741d | 684 | exs | Elixir | priv/repo/migrations/20161202114834_create_snapmails.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | priv/repo/migrations/20161202114834_create_snapmails.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | priv/repo/migrations/20161202114834_create_snapmails.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | defmodule Evercam.Repo.Migrations.CreateSnapmail do
use Ecto.Migration
def up do
create table(:snapmails) do
add :exid, :string, null: false
add :subject, :string, null: false
add :recipients, :string
add :message, :string
add :notify_days, :string
add :notify_time, :string,... | 27.36 | 76 | 0.669591 |
9e6cee06115a4b3df6397d2c9c238fbe71be04cb | 1,394 | exs | Elixir | test/bson/types_test.exs | kamciokodzi/mongodb-old | 99e96a4ae6b963914ab733a8ba551ad1fcf75b2c | [
"Apache-2.0"
] | null | null | null | test/bson/types_test.exs | kamciokodzi/mongodb-old | 99e96a4ae6b963914ab733a8ba551ad1fcf75b2c | [
"Apache-2.0"
] | null | null | null | test/bson/types_test.exs | kamciokodzi/mongodb-old | 99e96a4ae6b963914ab733a8ba551ad1fcf75b2c | [
"Apache-2.0"
] | null | null | null | defmodule BSON.TypesTest do
use ExUnit.Case, async: true
test "inspect BSON.Binary" do
value = %BSON.Binary{binary: <<1, 2, 3>>}
assert inspect(value) == "#BSON.Binary<010203>"
value = %BSON.Binary{binary: <<1, 2, 3>>, subtype: :uuid}
assert inspect(value) == "#BSON.Binary<010203, uuid>"
end
... | 32.418605 | 90 | 0.635581 |
9e6d216da1d80d665a55b016a01a99cec2e322bd | 1,723 | ex | Elixir | apps/tai/lib/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/new_partial_fill.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/new_partial_fill.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/bitmex/stream/process_auth/messages/update_orders/new_partial_fill.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.Messages.UpdateOrders.NewPartialFill do
defstruct ~w(
account
cl_ord_id
cum_qty
leaves_qty
order_id
symbol
timestamp
)a
end
defimpl Tai.VenueAdapters.Bitmex.Stream.ProcessAuth.Message,
for: Tai.VenueAdapters.Bitmex.Stream.ProcessAu... | 26.507692 | 93 | 0.669762 |
9e6d555ce683488592e23382cefec5e38f78f088 | 4,660 | ex | Elixir | src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/debian/manpage.sgml.ex | alexoterno/turtlebot2_with_head | ac714f77379dd0f47ddb76d83896fdabee269a03 | [
"MIT"
] | null | null | null | src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/debian/manpage.sgml.ex | alexoterno/turtlebot2_with_head | ac714f77379dd0f47ddb76d83896fdabee269a03 | [
"MIT"
] | null | null | null | src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/debian/manpage.sgml.ex | alexoterno/turtlebot2_with_head | ac714f77379dd0f47ddb76d83896fdabee269a03 | [
"MIT"
] | null | null | null | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Ma... | 29.681529 | 75 | 0.659013 |
9e6d8eaa17553f6a07263044328de3298357488f | 1,580 | exs | Elixir | test/corker/slack/users_test.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 5 | 2019-05-24T17:00:42.000Z | 2019-05-27T13:50:56.000Z | test/corker/slack/users_test.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 17 | 2019-05-27T08:59:36.000Z | 2020-02-17T06:45:27.000Z | test/corker/slack/users_test.exs | justmendes/corker | b7a6d7cbae47d30816bb99b8fe8576e9a0d5722d | [
"0BSD"
] | 1 | 2019-08-27T14:27:06.000Z | 2019-08-27T14:27:06.000Z | defmodule Corker.Slack.UsersTest do
use Corker.DataCase, async: true
doctest Corker.Slack.Users
alias Corker.{
Accounts.User,
Repo,
Slack.Users
}
describe "extract/1" do
test "creates a user for each slack user in the list" do
slack_users = build_list(5, :slack_user) |> Enum.into(%{}, ... | 23.939394 | 79 | 0.589241 |
9e6d90f7ff3958ba37565f6f7f5592ca53bd3082 | 683 | ex | Elixir | lib/adyen_checkout_ex/model/ideal_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/ideal_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/ideal_details.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.IdealDetails do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"issuer",
:"recurringDetailReferenc... | 21.34375 | 91 | 0.670571 |
9e6d94fb1ea4d04bc87aa88d1738575b983695cf | 1,546 | ex | Elixir | test/support/conn_case.ex | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | 25 | 2021-03-23T07:27:21.000Z | 2021-10-31T15:09:52.000Z | test/support/conn_case.ex | longnd/elixir-gscraper | 894570afd89e54b80ca591a56a182da55ac6ee61 | [
"MIT"
] | null | null | null | defmodule GscraperWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if t... | 26.655172 | 62 | 0.698577 |
9e6da132757356c13c53c87f1fa89c315f3b23f9 | 2,311 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/non_billable_winning_bid_status_row.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/non_billable_winning_bid_status_row.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/non_billable_winning_bid_status_row.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 ... | 41.267857 | 181 | 0.754652 |
9e6dc7a51897f252177b483c40f96c7d4643ffd0 | 1,256 | exs | Elixir | mix.exs | maartenvanvliet/receivex | 4ec326e99047a8a2d21c36fdde6cb5335270a889 | [
"MIT"
] | 18 | 2018-12-14T16:53:27.000Z | 2022-03-16T09:30:36.000Z | mix.exs | maartenvanvliet/receivex | 4ec326e99047a8a2d21c36fdde6cb5335270a889 | [
"MIT"
] | 44 | 2019-04-16T04:32:17.000Z | 2022-03-24T04:03:53.000Z | mix.exs | maartenvanvliet/receivex | 4ec326e99047a8a2d21c36fdde6cb5335270a889 | [
"MIT"
] | 3 | 2020-01-17T15:29:33.000Z | 2021-12-12T19:50:33.000Z | defmodule Receivex.MixProject do
use Mix.Project
@version "0.8.2"
def project do
[
app: :receivex,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
name: "Receivex",
description: ... | 25.632653 | 77 | 0.563694 |
9e6de028625522423d6b0d3def42a0310fabda9f | 1,182 | exs | Elixir | test/etherscan/api/stats_test.exs | L1h3r/etherscan | 5e12bae407e1e8175cb58f72de042387383c5c50 | [
"MIT"
] | 14 | 2017-10-20T03:10:44.000Z | 2021-10-04T03:00:07.000Z | test/etherscan/api/stats_test.exs | L1h3r/etherscan | 5e12bae407e1e8175cb58f72de042387383c5c50 | [
"MIT"
] | 5 | 2017-10-20T03:36:37.000Z | 2018-03-25T00:58:01.000Z | test/etherscan/api/stats_test.exs | L1h3r/etherscan | 5e12bae407e1e8175cb58f72de042387383c5c50 | [
"MIT"
] | 4 | 2018-03-25T00:49:18.000Z | 2019-11-28T00:33:06.000Z | defmodule Etherscan.StatsTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
use Etherscan.Constants
setup_all do
HTTPoison.start()
:ok
end
describe "get_token_supply/1" do
test "with valid token address" do
use_cassette "get_token_supply" do
response = Ethersc... | 26.266667 | 66 | 0.669205 |
9e6e04f74c6dcc84ad10a11316f5e8b6ec554e27 | 377 | ex | Elixir | test/support/authentication_test_helpers.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/support/authentication_test_helpers.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/support/authentication_test_helpers.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.AuthenticationTestHelpers do
use Phoenix.ConnTest
import CodeCorps.Factories
def authenticate(conn) do
user = insert(:user)
conn
|> authenticate(user)
end
def authenticate(conn, user) do
{:ok, token, _} = user |> CodeCorps.Guardian.encode_and_sign()
conn
|> put_... | 19.842105 | 66 | 0.69496 |
9e6e0827e06a276b245fb9318a97a24402fff332 | 1,693 | exs | Elixir | config/dev.exs | juniornelson123/api_banking_teste | db263511d78fffe9e4081551817d006df2094316 | [
"MIT"
] | null | null | null | config/dev.exs | juniornelson123/api_banking_teste | db263511d78fffe9e4081551817d006df2094316 | [
"MIT"
] | null | null | null | config/dev.exs | juniornelson123/api_banking_teste | db263511d78fffe9e4081551817d006df2094316 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :api_banking, ApiBanking.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "api_banking",
hostname: "db",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and en... | 28.694915 | 68 | 0.728293 |
9e6e1a019b5c0ca7f062402d0f55685967da2fcb | 2,851 | ex | Elixir | lib/cforum_web/channels/users_channel.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/channels/users_channel.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/channels/users_channel.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule CforumWeb.UsersChannel do
use CforumWeb, :channel
use Appsignal.Instrumentation.Decorators
alias Cforum.Accounts.User
alias Cforum.Forums
alias Cforum.ConfigManager
alias Cforum.Messages.ReadMessages
alias Cforum.Accounts.Notifications
alias Cforum.Accounts.PrivMessages
@decorate channel_... | 33.151163 | 99 | 0.70221 |
9e6e32c14da05d60e9d529c90fe1c519874c22d5 | 1,259 | ex | Elixir | apps/exred_ui/lib/exred_ui_web/channels/user_socket.ex | exredorg/exred | 0ece8e6680747ba8f30b4413ede598a45495aa7c | [
"MIT"
] | null | null | null | apps/exred_ui/lib/exred_ui_web/channels/user_socket.ex | exredorg/exred | 0ece8e6680747ba8f30b4413ede598a45495aa7c | [
"MIT"
] | null | null | null | apps/exred_ui/lib/exred_ui_web/channels/user_socket.ex | exredorg/exred | 0ece8e6680747ba8f30b4413ede598a45495aa7c | [
"MIT"
] | null | null | null | defmodule ExredUIWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "cmd:*", ExredUIWeb.CmdChannel
channel "event:*", ExredUIWeb.EventChannel
# channel "room:*", ExredUIWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.Long... | 31.475 | 83 | 0.706116 |
9e6e34b01d592b89e3bf0740d552fdd7d31e3ac5 | 347 | exs | Elixir | test/tortoise/package/disconnect_test.exs | lucaong/tortoise | fd2f83527937ba39b47f58eb8d392a1aa927e28f | [
"Apache-2.0"
] | 272 | 2018-04-22T22:47:35.000Z | 2022-03-01T05:22:02.000Z | test/tortoise/package/disconnect_test.exs | lucaong/tortoise | fd2f83527937ba39b47f58eb8d392a1aa927e28f | [
"Apache-2.0"
] | 120 | 2018-04-22T20:42:04.000Z | 2022-01-20T23:12:13.000Z | test/tortoise/package/disconnect_test.exs | lucaong/tortoise | fd2f83527937ba39b47f58eb8d392a1aa927e28f | [
"Apache-2.0"
] | 58 | 2018-04-24T06:28:36.000Z | 2022-02-09T06:55:42.000Z | defmodule Tortoise.Package.DisconnectTest do
use ExUnit.Case
doctest Tortoise.Package.Disconnect
alias Tortoise.Package
test "encoding and decoding disconnect messages" do
disconnect = %Package.Disconnect{}
assert ^disconnect =
disconnect
|> Package.encode()
|> ... | 21.6875 | 53 | 0.67147 |
9e6e6b17dd765ce9654ffa3353b7f50e74bbe39b | 1,824 | exs | Elixir | mix.exs | dkataskin/mongodb | 6ae204966e0842c852466431c9fcb06056e1ceb9 | [
"Apache-2.0"
] | 286 | 2017-06-06T04:21:31.000Z | 2021-09-11T16:37:59.000Z | mix.exs | dkataskin/mongodb | 6ae204966e0842c852466431c9fcb06056e1ceb9 | [
"Apache-2.0"
] | 202 | 2017-05-28T13:22:01.000Z | 2020-05-15T20:15:51.000Z | mix.exs | dkataskin/mongodb | 6ae204966e0842c852466431c9fcb06056e1ceb9 | [
"Apache-2.0"
] | 120 | 2016-12-16T17:05:12.000Z | 2020-05-15T16:20:17.000Z | defmodule Mongodb.Mixfile do
use Mix.Project
@version "1.0.0-beta.1"
def project do
[
app: :mongodb,
version: @version,
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.5",
name: "Mongodb",
deps: deps(),
docs: docs(),
description: description(),
pa... | 22.243902 | 95 | 0.558662 |
9e6e76a11c762596421711d68d16706c6560bbc1 | 1,492 | ex | Elixir | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.52381 | 282 | 0.763405 |
9e6e8784708569563b83b7392689e54f2fcf563b | 1,139 | exs | Elixir | clients/o_auth2/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/o_auth2/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/o_auth2/config/config.exs | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.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.741935 | 73 | 0.755926 |
9e6eb56d5d580e22859a3796353b6dd476869d36 | 453 | ex | Elixir | lib/ex_platform_web/plugs/i18n.ex | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | 129 | 2021-05-30T10:10:59.000Z | 2022-03-27T14:42:48.000Z | lib/ex_platform_web/plugs/i18n.ex | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | 48 | 2021-05-30T21:34:03.000Z | 2022-02-21T14:20:04.000Z | lib/ex_platform_web/plugs/i18n.ex | joseph-lozano/ex_platform | 55208dfc50e1bd1ed232141798579fdcb6fc54af | [
"MIT"
] | 12 | 2021-05-30T22:03:49.000Z | 2022-02-08T19:59:16.000Z | defmodule ExPlatformWeb.Plugs.I18n do
@moduledoc """
I18n plug to set the language on an HTTP request.
"""
import Plug.Conn
def init(param), do: param
def call(%Plug.Conn{private: %{cldr_locale: %Cldr.LanguageTag{language: locale}}} = conn, _opts) do
Gettext.put_locale(locale)
ExPlatform.Cldr.pu... | 26.647059 | 101 | 0.693157 |
9e6eb5af7541a2e852faa1ee2a67d5a07205842a | 14,534 | ex | Elixir | lib/phoenix_live_view/test/live_view_test.ex | shamanime/phoenix_live_view | 1e12305ca065f99543fc66db6504cb8c8f30c9fc | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | shamanime/phoenix_live_view | 1e12305ca065f99543fc66db6504cb8c8f30c9fc | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | shamanime/phoenix_live_view | 1e12305ca065f99543fc66db6504cb8c8f30c9fc | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest do
@moduledoc """
Conveniences for testing Phoenix live views.
In LiveView tests, we interact with views via process
communication in substitution of a browser. Like a browser,
our test process receives messages about the rendered updates
from the view which can be asserted a... | 31.188841 | 108 | 0.635544 |
9e6ec21a04e3138e0b3dc61ccb44b9d6803facc3 | 1,807 | exs | Elixir | test/game/command/drop_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 1 | 2019-02-10T10:22:39.000Z | 2019-02-10T10:22:39.000Z | test/game/command/drop_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | test/game/command/drop_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Game.Command.DropTest do
use Data.ModelCase
@socket Test.Networking.Socket
@room Test.Game.Room
alias Game.Command.Drop
setup do
start_and_clear_items()
insert_item(%{id: 1, name: "Sword", keywords: []})
@socket.clear_messages()
user = base_user()
state = session_state(%{use... | 26.573529 | 82 | 0.620365 |
9e6f0a8245ff2fe1829a802404af894f369690f1 | 1,954 | exs | Elixir | config/dev.exs | kenforthewin/mentat | 417ce989e13f2f08990b872027ce8dcb3a1e6e99 | [
"MIT"
] | 88 | 2018-06-17T17:36:56.000Z | 2021-11-20T20:29:27.000Z | config/dev.exs | kenforthewin/scalar | 417ce989e13f2f08990b872027ce8dcb3a1e6e99 | [
"MIT"
] | 47 | 2018-05-12T00:12:37.000Z | 2018-06-16T19:52:52.000Z | config/dev.exs | kenforthewin/scalar | 417ce989e13f2f08990b872027ce8dcb3a1e6e99 | [
"MIT"
] | 6 | 2018-06-17T17:37:11.000Z | 2020-04-12T04:05:49.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :app, AppWeb.Endpoint,
http: [port: 4000],
d... | 33.118644 | 170 | 0.697544 |
9e6f1413cc96f495dd2f054f928b8879c4e08b66 | 1,827 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounts_custom_batch_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounts_custom_batch_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/accounts_custom_batch_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.54 | 167 | 0.746032 |
9e6f19a2b53aa69e77fbbed04184c4a7db30c43e | 21,905 | ex | Elixir | lib/mail_slurp_api/api/inbox_controller.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/api/inbox_controller.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/api/inbox_controller.ex | sumup-bank/mailslurp-client-elixir | 87ccdedf2f0f4cd3e50f5781ffb088142e3cf4e8 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Api.InboxController do
@moduledoc """
API calls for all endpoints tagged `InboxController`.
"""
alias MailSlurpAPI.Connection
... | 41.174812 | 798 | 0.675097 |
9e6f1dfeaa4a709dddbe6e4016a9ad97c248113c | 2,666 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/api/channels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/api/channels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/api/channels.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... | 36.520548 | 170 | 0.693923 |
9e6f23d459793ed9fda93d52f911e53d83b8b4db | 259 | ex | Elixir | lib/bike_brigade.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade do
@moduledoc """
BikeBrigade keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 25.9 | 66 | 0.760618 |
9e6f29caeffd90f889fdcb0d37910271f7ec54b1 | 3,624 | exs | Elixir | test/strip_js_test.exs | appcues/strip_js | 120a75affaea83c60df9d25a7d808446103b133e | [
"MIT"
] | 12 | 2019-04-02T22:13:39.000Z | 2021-05-04T09:03:34.000Z | test/strip_js_test.exs | appcues/strip_js | 120a75affaea83c60df9d25a7d808446103b133e | [
"MIT"
] | 2 | 2020-04-15T20:13:45.000Z | 2020-04-27T14:33:35.000Z | test/strip_js_test.exs | appcues/strip_js | 120a75affaea83c60df9d25a7d808446103b133e | [
"MIT"
] | 1 | 2019-04-19T17:02:57.000Z | 2019-04-19T17:02:57.000Z | defmodule StripJsTest do
use ExSpec, async: true
doctest StripJs
@html_with_js """
<html>
<head>
<title>garbage</title>
<script src="poop.js"></script>
<script>wowCool();</script>
</head>
<body>
<!--omg comment-->
<a href="http://example.com" onclick="alert('wow')">Click me</a>
<d... | 25.885714 | 90 | 0.54277 |
9e6f3d0ce264cf667a837998240a70288338e82b | 1,187 | ex | Elixir | web/lib/squitter_web/channels/user_socket.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 34 | 2017-08-30T02:29:41.000Z | 2021-05-29T20:21:43.000Z | web/lib/squitter_web/channels/user_socket.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 7 | 2017-09-12T05:27:23.000Z | 2020-01-06T22:07:52.000Z | web/lib/squitter_web/channels/user_socket.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 9 | 2017-09-11T22:17:55.000Z | 2022-01-31T03:07:58.000Z | defmodule Squitter.Web.UserSocket do
use Phoenix.Socket
## Channels
channel("aircraft:*", Squitter.Web.AircraftChannel)
## Transports
transport(:websocket, Phoenix.Transports.WebSocket)
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to ... | 31.236842 | 84 | 0.704297 |
9e6f52a45473a728b85fc9ec083921c127b6e033 | 6,046 | exs | Elixir | youtube/elixir_tutorial/main.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | youtube/elixir_tutorial/main.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | youtube/elixir_tutorial/main.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule M do
def data_stuff do
# my_float = 3.14159
# IO.puts "Float: #{is_float(my_float)}"
IO.puts "Atom: #{is_atom(:Pittsburgh)}"
# one_to_10 = 1..10
end
def string_stuff do
my_str = "My Sentence"
IO.puts "Length: #{String.length(my_str)}"
longer_str = my_str <> " is longer"
... | 19.822951 | 70 | 0.560536 |
9e6f557e0922a7cbd94ee2766f2ec7d4da6a7365 | 1,856 | exs | Elixir | test/tembeza_web/controllers/url_controller_test.exs | AdolfodelSel/Tembeza | 20c19d6cc090e7c128bf35f016b7a3843cfc0dad | [
"Apache-2.0"
] | null | null | null | test/tembeza_web/controllers/url_controller_test.exs | AdolfodelSel/Tembeza | 20c19d6cc090e7c128bf35f016b7a3843cfc0dad | [
"Apache-2.0"
] | 1 | 2021-05-11T18:22:04.000Z | 2021-05-11T18:22:04.000Z | test/tembeza_web/controllers/url_controller_test.exs | AdolfodelSel/Tembeza | 20c19d6cc090e7c128bf35f016b7a3843cfc0dad | [
"Apache-2.0"
] | null | null | null | defmodule TembezaWeb.UrlControllerTest do
use TembezaWeb.ConnCase
alias TembezaWeb.UrlController
setup do
bypass = Bypass.open()
{:ok, bypass: bypass}
end
describe "fetch urls" do
test "success fetch", %{conn: conn, bypass: bypass}do
Bypass.expect(bypass, fn conn ->
Plug.Conn.res... | 26.898551 | 181 | 0.541487 |
9e6f9014c1963fa6e9847ab0dc6a8d102aad9602 | 1,595 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_cancel_test_order_by_customer_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_cancel_test_order_by_customer_response.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_cancel_test_order_by_customer_response.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... | 33.229167 | 170 | 0.760502 |
9e6f91832377057de56aec4ed79a43786bd443ad | 2,945 | ex | Elixir | apps/tai/lib/tai/venue_adapters/okex/stream/process_auth.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/venue_adapters/okex/stream/process_auth.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/okex/stream/process_auth.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.OkEx.Stream.ProcessAuth do
use GenServer
alias Tai.Events
alias Tai.VenueAdapters.OkEx.{ClientId, Stream}
defmodule State do
@type venue_id :: Tai.Venues.Adapter.venue_id()
@type t :: %State{venue: atom, tasks: map}
@enforce_keys ~w(venue tasks)a
defstruct ~w(venue ... | 26.061947 | 85 | 0.634635 |
9e6fd969ccfc80be43ce2060f080a2383faa014a | 1,764 | exs | Elixir | bench/run.exs | Overbryd/poison | b095851a0ea3e3106e5700b743187226c607de26 | [
"CC0-1.0"
] | null | null | null | bench/run.exs | Overbryd/poison | b095851a0ea3e3106e5700b743187226c607de26 | [
"CC0-1.0"
] | null | null | null | bench/run.exs | Overbryd/poison | b095851a0ea3e3106e5700b743187226c607de26 | [
"CC0-1.0"
] | 1 | 2021-08-09T09:19:05.000Z | 2021-08-09T09:19:05.000Z | encode_jobs = %{
"Poison" => &Poison.encode!/1,
"JSX" => &JSX.encode!/1,
"Tiny" => &Tiny.encode!/1,
"jsone" => &:jsone.encode/1,
"jiffy" => &:jiffy.encode/1,
"JSON" => &JSON.encode!/1,
}
encode_inputs = [
"GitHub",
"Giphy",
"GovTrack",
"Blockchain",
"Pokedex",
"JSON Generator",
"UTF-... | 18.967742 | 54 | 0.554989 |
9e6fe5e6402dff960b0e8d2929ac37e864f30a90 | 217 | ex | Elixir | lib/job_board_web/controllers/plugs/add_site_config.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/plugs/add_site_config.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/plugs/add_site_config.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoardWeb.Plugs.AddSiteConfig do
import Plug.Conn
alias JobBoard.Siteconfigs
def init(_params) do
end
def call(conn, _params) do
conn
|> assign(:config, Siteconfigs.get_main)
end
end
| 16.692308 | 44 | 0.728111 |
9e6ff065916499038d09a57b4caac6629268fdbd | 3,017 | ex | Elixir | lib/brando/traits/sequenced.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/traits/sequenced.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/traits/sequenced.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Trait.Sequenced do
@moduledoc """
A sequenced resource
## Options
- `append: true`: Sequences the item to the last possible position.
"""
use Brando.Trait
alias Brando.Cache
alias Brando.Datasource
alias Ecto.Changeset
import Ecto.Query
@type changeset :: Changeset.t()
... | 23.944444 | 90 | 0.617501 |
9e6ff3de2ff31cc5cdbca62221f204ab9ac61cbe | 1,189 | exs | Elixir | test/couchdb_connector/as_map_test.exs | PinheiroRodrigo/couchdb_connector | 464136ebe47049c5b3143bbd5f74977c82c9c621 | [
"Apache-2.0"
] | 64 | 2016-01-20T17:48:05.000Z | 2017-05-24T18:00:14.000Z | test/couchdb_connector/as_map_test.exs | PinheiroRodrigo/couchdb_connector | 464136ebe47049c5b3143bbd5f74977c82c9c621 | [
"Apache-2.0"
] | 40 | 2016-01-16T18:39:46.000Z | 2017-06-03T10:02:54.000Z | test/couchdb_connector/as_map_test.exs | PinheiroRodrigo/couchdb_connector | 464136ebe47049c5b3143bbd5f74977c82c9c621 | [
"Apache-2.0"
] | 22 | 2015-12-28T00:23:20.000Z | 2017-05-28T21:58:21.000Z | defmodule Couchdb.Connector.AsMapTest do
use ExUnit.Case
import Couchdb.Connector.AsMap
test "as_map/1 with invalid json string should raise RuntimeError" do
invalid = "{\"_id\":\"foo\",\"_rev\":\"1-0f97561a543ed2e9c98a24dea818ec10\",test_key\":\"test_value\"}\n"
assert_raise(RuntimeError, fn -> as_map... | 32.135135 | 109 | 0.677881 |
9e6ff6f93e80b70441f4a2d65883f395514ac7d4 | 1,806 | ex | Elixir | clients/script/lib/google_api/script/v1/model/list_deployments_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/script/lib/google_api/script/v1/model/list_deployments_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/script/lib/google_api/script/v1/model/list_deployments_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... | 36.12 | 139 | 0.734773 |
9e7001ad1e41933e287938fdc0182ae331ec4edd | 2,319 | ex | Elixir | lib/exmoji/util.ex | christhekeele/exmoji | 02cb57a5aa06dba5fe0c64c2eae4c74151fa2ee5 | [
"MIT"
] | null | null | null | lib/exmoji/util.ex | christhekeele/exmoji | 02cb57a5aa06dba5fe0c64c2eae4c74151fa2ee5 | [
"MIT"
] | null | null | null | lib/exmoji/util.ex | christhekeele/exmoji | 02cb57a5aa06dba5fe0c64c2eae4c74151fa2ee5 | [
"MIT"
] | 1 | 2017-09-19T01:12:18.000Z | 2017-09-19T01:12:18.000Z | defmodule Exmoji.Util.Unified do
@moduledoc false
# actual conversion function, used by `Exmoji.Util` to generate precompiled
# methods, and also used as a fallback for unmatched values.
def _unified_to_char(uid) do
uid
|> String.split("-")
|> Enum.map( &(String.to_integer(&1, 16)) )
|> List.to... | 24.935484 | 79 | 0.697283 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.