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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21729487e5b960d9c8e72a9291bd5c0f5f9a62cc | 145 | ex | Elixir | lib/sthub/wows/utils.ex | Rukenshia/sthub-web | 2749e0a08ca71683ca1d44ceecc89310dea70e07 | [
"MIT"
] | null | null | null | lib/sthub/wows/utils.ex | Rukenshia/sthub-web | 2749e0a08ca71683ca1d44ceecc89310dea70e07 | [
"MIT"
] | 14 | 2020-07-17T06:00:03.000Z | 2020-10-29T20:28:32.000Z | lib/sthub/wows/utils.ex | Rukenshia/sthub-web | 2749e0a08ca71683ca1d44ceecc89310dea70e07 | [
"MIT"
] | null | null | null | defmodule StHub.Wows.Utils do
def realm_to_tld(realm) do
case realm do
"na" ->
"com"
v ->
v
end
end
end
| 12.083333 | 29 | 0.510345 |
2172a3642324b382aa5f1fc7a82b726f3d37d51a | 2,294 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_update_line_item_shipping_details.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_update_line_item_shipping_details.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_custom_batch_request_entry_update_line_item_shipping_details.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37 | 179 | 0.741935 |
2172ce0cd1b04e150bee6d32f03a18a48764e8a2 | 6,280 | ex | Elixir | lib/exmoji.ex | sqrnut/exmoji | 6c6058d2493caeea04e12088fa1db33613b82d4d | [
"MIT"
] | null | null | null | lib/exmoji.ex | sqrnut/exmoji | 6c6058d2493caeea04e12088fa1db33613b82d4d | [
"MIT"
] | null | null | null | lib/exmoji.ex | sqrnut/exmoji | 6c6058d2493caeea04e12088fa1db33613b82d4d | [
"MIT"
] | null | null | null | defmodule Exmoji do
@moduledoc """
An Elixir/Erlang library providing low level operations for dealing with Emoji
glyphs in the Unicode standard.
Exmoji is like a swiss-army knife for dealing with Emoji encoding issues. If
all you need to do is translate `:poop:` into a smiling poop glyph, then there
are p... | 29.763033 | 132 | 0.674522 |
2172d0b93a8e7e62cd23277c77b5435cdb747915 | 1,163 | ex | Elixir | lib/ueberauth_example_web/endpoint.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | lib/ueberauth_example_web/endpoint.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | lib/ueberauth_example_web/endpoint.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | defmodule UeberauthExampleWeb.Endpoint do
@moduledoc false
use Phoenix.Endpoint, otp_app: :ueberauth_example
socket "/socket", UeberauthExampleWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are ... | 23.734694 | 70 | 0.705073 |
2172d6135609e75ebbead2fb3e93d7bed657eaee | 939 | ex | Elixir | lib/knock/resources/workflows.ex | philipbrown/knock-elixir | e527a5821d8b1380def872c64ddef86f2521a6d1 | [
"MIT"
] | 11 | 2021-05-10T10:31:17.000Z | 2022-03-22T18:29:31.000Z | lib/knock/resources/workflows.ex | philipbrown/knock-elixir | e527a5821d8b1380def872c64ddef86f2521a6d1 | [
"MIT"
] | 1 | 2021-11-04T21:34:34.000Z | 2021-11-04T21:34:34.000Z | lib/knock/resources/workflows.ex | philipbrown/knock-elixir | e527a5821d8b1380def872c64ddef86f2521a6d1 | [
"MIT"
] | 3 | 2021-11-01T22:36:56.000Z | 2022-03-24T09:50:19.000Z | defmodule Knock.Workflows do
@moduledoc """
Functions for interacting with Knock notify resources.
"""
alias Knock.Api
@doc """
Executes a notify call for the workflow with the given key.
Note: properties must contain at least `actor` and `recipents` for the call to be valid.
"""
@spec trigger(Knock... | 31.3 | 90 | 0.687966 |
2172ea348e41e5f986cea40fe33055a284470f6d | 1,867 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/list_campaigns_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_campaigns_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/list_campaigns_response.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.34 | 235 | 0.741296 |
2172ff7367324960c16609a871adf63bbafdd8e6 | 11 | ex | Elixir | testData/org/elixir_lang/parser_definition/atom_dot_operation_parsing_test_case/Alias.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/atom_dot_operation_parsing_test_case/Alias.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/atom_dot_operation_parsing_test_case/Alias.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | :atom.Alias | 11 | 11 | 0.818182 |
21730b25f7d3aa29f69230b14a448d531854f287 | 2,602 | ex | Elixir | test/support/strategies/oauth2_test_case.ex | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | test/support/strategies/oauth2_test_case.ex | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | test/support/strategies/oauth2_test_case.ex | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | defmodule PowAssent.Test.OAuth2TestCase do
@moduledoc false
use ExUnit.CaseTemplate
setup _tags do
params = %{"code" => "test", "redirect_uri" => "test", "state" => "test"}
bypass = Bypass.open()
config = [client_secret: "secret", site: "http://localhost:#{bypass.port}", session_params: %{state: "tes... | 32.936709 | 113 | 0.669101 |
21732443aac595ed2cd6159ce657a7bda79644b6 | 756 | exs | Elixir | test/differ_ecto/type_test.exs | DanilaMihailov/differ_ecto | 0ae47329b7853f0bba2f9b8ee4ed9d161d815a31 | [
"Apache-2.0"
] | 1 | 2020-05-02T00:40:47.000Z | 2020-05-02T00:40:47.000Z | test/differ_ecto/type_test.exs | DanilaMihailov/differ_ecto | 0ae47329b7853f0bba2f9b8ee4ed9d161d815a31 | [
"Apache-2.0"
] | null | null | null | test/differ_ecto/type_test.exs | DanilaMihailov/differ_ecto | 0ae47329b7853f0bba2f9b8ee4ed9d161d815a31 | [
"Apache-2.0"
] | null | null | null | defmodule DifferEctoTypeTest do
use ExUnit.Case
import Ecto.Type
alias DifferEcto.Diff
test "type is list" do
assert Diff.type() == :list
end
test "load" do
assert load(Diff, [["eq", "qwert"]]) == {:ok, [eq: "qwert"]}
assert load(Diff, [["diff", [["ins", "xcv"]]]]) == {:ok, [diff: [ins: "xcv"]... | 29.076923 | 82 | 0.493386 |
2173376146e05e613e081c71cdd290b7e2362a9e | 1,514 | exs | Elixir | mix.exs | ScrimpyCat/SimpleMarkdownEx | 30f04a4defd3235c4a150589cb0d4189caf7481f | [
"BSD-2-Clause"
] | 5 | 2016-04-16T00:01:27.000Z | 2018-06-27T06:06:21.000Z | mix.exs | ScrimpyCat/SimpleMarkdownEx | 30f04a4defd3235c4a150589cb0d4189caf7481f | [
"BSD-2-Clause"
] | 1 | 2020-06-24T03:49:32.000Z | 2020-06-24T03:49:32.000Z | mix.exs | ScrimpyCat/SimpleMarkdownEx | 30f04a4defd3235c4a150589cb0d4189caf7481f | [
"BSD-2-Clause"
] | 1 | 2020-06-23T09:06:56.000Z | 2020-06-23T09:06:56.000Z | defmodule SimpleMarkdown.Mixfile do
use Mix.Project
def project do
[
app: :simple_markdown,
description: "A simple and extendable Markdown converter",
version: "0.8.2",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_perm... | 30.28 | 201 | 0.521136 |
217374991ddfd472d8e864a4f199ee49e0456284 | 329 | ex | Elixir | lib/oli/delivery/updates/messages.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/delivery/updates/messages.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/delivery/updates/messages.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Delivery.Updates.Messages do
### Message creation API
def message_update_progress(section_id) do
["update_progress", section(section_id)] |> join
end
## Private helpers
defp section(section_id), do: "section_" <> Integer.to_string(section_id)
defp join(messages), do: Enum.join(messages, ... | 27.416667 | 75 | 0.729483 |
217378f802484f0df4552db86372658ccb49d5a2 | 223 | exs | Elixir | .check.exs | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 101 | 2020-06-11T23:51:50.000Z | 2022-03-30T16:29:18.000Z | .check.exs | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 11 | 2020-10-11T11:50:24.000Z | 2022-02-12T08:54:50.000Z | .check.exs | kianmeng/Domo | 1dcd2a0fb7d11b8c99db45b76aca95825db27d3b | [
"MIT"
] | 4 | 2020-07-02T08:54:22.000Z | 2021-12-26T09:59:15.000Z | [
## all available options with default values (see `mix check` docs for description)
# parallel: true,
# skipped: true,
## list of tools (see `mix check` docs for defaults)
tools: [
{:dialyzer, false}
]
]
| 20.272727 | 85 | 0.641256 |
2173a8b62035750d9ceb269f84317e56c4c6b6b8 | 3,366 | exs | Elixir | test/blocks/json_path_mapper/json_template_test.exs | rbino/astarte_flow | 21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a | [
"Apache-2.0"
] | null | null | null | test/blocks/json_path_mapper/json_template_test.exs | rbino/astarte_flow | 21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a | [
"Apache-2.0"
] | null | null | null | test/blocks/json_path_mapper/json_template_test.exs | rbino/astarte_flow | 21a1a4ae9594cccd00db6a1ba2f857be8ba7da9a | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2019 Ispirata Srl
#
# 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 appl... | 38.25 | 89 | 0.639929 |
2173b432d8fd7b759d17806088e2b1b648a0af86 | 1,220 | exs | Elixir | config/test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | 1 | 2022-02-20T10:42:07.000Z | 2022-02-20T10:42:07.000Z | config/test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | config/test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | import Config
alias Commanded.EventStore.Adapters.InMemory
alias Commanded.Serialization.JsonSerializer
config :logger, :console, level: :debug, format: "[$level] $message\n"
config :ex_unit,
assert_receive_timeout: 1_000,
capture_log: true,
exclude: [:distributed]
config :commanded,
assert_receive_event_ti... | 35.882353 | 88 | 0.82623 |
2173e64f96a7f5a2c80c89e2cc723dddfeea11fe | 421 | ex | Elixir | lib/fika/types.ex | v0idpwn/fika | 4453d1c9222f7c2ab09f03d436f2222c7e325344 | [
"Apache-2.0"
] | null | null | null | lib/fika/types.ex | v0idpwn/fika | 4453d1c9222f7c2ab09f03d436f2222c7e325344 | [
"Apache-2.0"
] | null | null | null | lib/fika/types.ex | v0idpwn/fika | 4453d1c9222f7c2ab09f03d436f2222c7e325344 | [
"Apache-2.0"
] | null | null | null | defmodule Fika.Types do
@moduledoc """
This module contains the types in Fika which are implemented using structs
"""
defmodule FunctionRef do
defstruct [:arg_types, :return_type]
defimpl String.Chars, for: FunctionRef do
def to_string(%{arg_types: arg_types, return_type: return_type}) do
... | 24.764706 | 76 | 0.667458 |
2173eeef5aab53bdc2d31873a8703e7d285c857c | 282 | exs | Elixir | apps/neoscan_web/config/test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 75 | 2017-07-23T02:45:32.000Z | 2021-12-13T11:04:17.000Z | apps/neoscan_web/config/test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 252 | 2017-07-13T19:36:00.000Z | 2021-07-28T18:40:00.000Z | apps/neoscan_web/config/test.exs | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 87 | 2017-07-23T02:45:34.000Z | 2022-03-02T14:54:27.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :neoscan_web, NeoscanWeb.Endpoint,
http: [port: 4001],
secret_key_base: "J8EWtXVVWp+AmNn4fmdodz17pug1X8v8QbjiPnNf0IkeFYhY140Dhei7UGUACHXs",
server: false
| 31.333333 | 86 | 0.783688 |
2173fabdd990c2c79d0a3dedf8ad0e88c58bc16c | 825 | exs | Elixir | bench/witchcraft/semigroup/integer_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | bench/witchcraft/semigroup/integer_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | bench/witchcraft/semigroup/integer_bench.exs | florius0/witchcraft | 6c61c3ecd5b431c52e8b60aafb05596d9182205e | [
"MIT"
] | null | null | null | defmodule Witchcraft.Semigroup.IntegerBench do
@moduledoc false
use Benchfella
use Witchcraft.Semigroup
#########
# Setup #
#########
# ---------- #
# Data Types #
# ---------- #
@int_a 10
@int_b -45
##########
# Kernel #
##########
bench("Kernel.+/2", do: @int_a + @int_b)
#######... | 17.1875 | 59 | 0.484848 |
2174003773f0cdf1382f41431e11e4803ea7dfd4 | 3,331 | ex | Elixir | lib/groupher_server/mailer/email.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/mailer/email.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/mailer/email.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Email do
@moduledoc """
the email dispatch system for Groupher
welcom_email -> send to new register
"""
import Bamboo.Email
import Helper.Utils, only: [get_config: 2]
alias GroupherServer.{Accounts, Billing, Email, Mailer}
alias Accounts.Model.User
alias Billing.Model.BillR... | 28.965217 | 86 | 0.645152 |
217425ac7d594085d60a20f56852d822eb9b309e | 102 | ex | Elixir | lib/bitty/repo.ex | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | 1 | 2021-06-17T21:49:04.000Z | 2021-06-17T21:49:04.000Z | lib/bitty/repo.ex | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | null | null | null | lib/bitty/repo.ex | doomspork/tiny | fab5bb717fb7247b7a9daa1ed0058ad052005a5f | [
"Apache-2.0"
] | null | null | null | defmodule Bitty.Repo do
use Ecto.Repo,
otp_app: :bitty,
adapter: Ecto.Adapters.Postgres
end
| 17 | 35 | 0.715686 |
21742a1017dfbb346aede852c880ae80b0e15d93 | 4,173 | ex | Elixir | lib/google_api/you_tube/v3/api/channel_banners.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/api/channel_banners.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/api/channel_banners.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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.164384 | 715 | 0.739756 |
21743179f101131f9d4404829902acceae7bfd05 | 2,051 | ex | Elixir | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/sign_blob_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/sign_blob_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/iam_credentials/lib/google_api/iam_credentials/v1/model/sign_blob_request.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... | 40.215686 | 554 | 0.747928 |
21744f2ee6dea9e92a8b04ab5eefc9b5a2fd6729 | 1,189 | ex | Elixir | lib/phoenix_elm_jukebox.ex | tommcgurl/phoenix_elm_jukebox | de522b700f484e9b7f9f73a826695c0cf06472b5 | [
"MIT"
] | null | null | null | lib/phoenix_elm_jukebox.ex | tommcgurl/phoenix_elm_jukebox | de522b700f484e9b7f9f73a826695c0cf06472b5 | [
"MIT"
] | null | null | null | lib/phoenix_elm_jukebox.ex | tommcgurl/phoenix_elm_jukebox | de522b700f484e9b7f9f73a826695c0cf06472b5 | [
"MIT"
] | null | null | null | defmodule PhoenixElmJukebox do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto r... | 34.970588 | 95 | 0.726661 |
2174515ad02d6f8435adb8ffa1623f316987b602 | 487 | ex | Elixir | lib/phoenix/pubsub/nats_pub_conn_supervisor.ex | xflagstudio/phoenix_pubsub_nats | e173a794901deac67d068c72ef9db557884b9dc8 | [
"MIT"
] | 6 | 2017-04-10T07:52:10.000Z | 2021-07-07T12:08:55.000Z | lib/phoenix/pubsub/nats_pub_conn_supervisor.ex | xflagstudio/phoenix_pubsub_nats | e173a794901deac67d068c72ef9db557884b9dc8 | [
"MIT"
] | null | null | null | lib/phoenix/pubsub/nats_pub_conn_supervisor.ex | xflagstudio/phoenix_pubsub_nats | e173a794901deac67d068c72ef9db557884b9dc8 | [
"MIT"
] | 3 | 2017-04-19T11:43:50.000Z | 2018-04-13T08:49:29.000Z | defmodule Phoenix.PubSub.NatsPubConnSupervisor do
use Supervisor
alias Phoenix.PubSub.Nats
def start_link(server, pool_size, opts) do
Supervisor.start_link(__MODULE__, [server, pool_size, opts])
end
def init([server, pool_size, opts]) do
children = for shard <- 0..(pool_size - 1) do
name = Nat... | 27.055556 | 64 | 0.714579 |
2174608fb389a497c662da5d5df23d93563c4849 | 19,248 | ex | Elixir | lib/codes/codes_w18.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_w18.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_w18.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_W18 do
alias IcdCode.ICDCode
def _W1800XA do
%ICDCode{full_code: "W1800XA",
category_code: "W18",
short_code: "00XA",
full_name: "Striking against unspecified object with subsequent fall, initial encounter",
short_name: "Striking against uns... | 46.718447 | 139 | 0.672018 |
217496e9e6995a4d33f7243d690eecb10b04bd6e | 1,621 | exs | Elixir | test/credo/check/warning/unsafe_exec_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/check/warning/unsafe_exec_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/check/warning/unsafe_exec_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.Check.Warning.UnsafeExecTest do
use Credo.Test.Case
@described_check Credo.Check.Warning.UnsafeExec
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
def run_with_system_cmd2(executable, arguments) do
Syste... | 21.905405 | 75 | 0.64343 |
2174a1faacc6a7cff618529ed29fbe9528b923e3 | 286 | exs | Elixir | priv/repo/migrations/20210420075623_add_sent_renewal_notifications.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20210420075623_add_sent_renewal_notifications.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20210420075623_add_sent_renewal_notifications.exs | plausible-insights/plausible | 88173342b9e969894879bfb2e8d203426f6a1b1c | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AddSentRenewalNotifications do
use Ecto.Migration
def change do
create table(:sent_renewal_notifications) do
add :user_id, references(:users), null: false, on_delete: :delete_all
add :timestamp, :naive_datetime
end
end
end
| 26 | 75 | 0.751748 |
2174c0ce8e41bb157b8daac3532bc090d729d261 | 114 | exs | Elixir | test/couchdb_connector/headers_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/headers_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/headers_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.HeadersTest do
use ExUnit.Case, async: true
doctest Couchdb.Connector.Headers
end
| 22.8 | 42 | 0.815789 |
2174d412fe4a5b67136a1e1946c886921476bd2d | 1,474 | ex | Elixir | lib/doc_gen_web/views/error_helpers.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | null | null | null | lib/doc_gen_web/views/error_helpers.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | 27 | 2018-10-29T18:34:44.000Z | 2019-03-11T18:43:12.000Z | lib/doc_gen_web/views/error_helpers.ex | the-mikedavis/doc_gen | efcc884ea65bba5748f41c5601abd00db2777ec4 | [
"BSD-3-Clause"
] | null | null | null | defmodule DocGenWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:... | 32.755556 | 75 | 0.669607 |
2174de1b14ab6dd1f4b96fd045c2ff87d3570ad8 | 513 | ex | Elixir | test/support/fixtures/file_fixtures.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | 3 | 2021-11-08T15:19:19.000Z | 2021-11-11T03:18:35.000Z | test/support/fixtures/file_fixtures.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | test/support/fixtures/file_fixtures.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | defmodule YourBot.FileFixtures do
alias YourBot.Bots.Project
import YourBot.UniqueData
def valid_file_attrs(attrs \\ %{}) do
Enum.into(attrs, %{
name: unique_name("file"),
content: unique_name("content")
})
end
def file_fixture(project, attrs) do
{:ok, file} = Project.create_file(pro... | 23.318182 | 62 | 0.676413 |
2174f178d5a2b1e47038d377a21e360077df1054 | 512 | ex | Elixir | lib/uf/ro_14.ex | edmaarcosta/IEEx | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | null | null | null | lib/uf/ro_14.ex | edmaarcosta/IEEx | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | 1 | 2017-12-05T15:58:10.000Z | 2017-12-05T15:58:10.000Z | lib/uf/ro_14.ex | edmaarcosta/ieex | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | 1 | 2018-10-01T19:35:47.000Z | 2018-10-01T19:35:47.000Z | defmodule IEEx.UF.RO14 do
alias IEEx.Util
@peso [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]
def is_valid?(input) do
l_ie =
input
|> Util.only_numbers()
|> Util.parse_ie()
# extrai digito verificador
[f_dig] = Util.get_digs(l_ie, 1)
#
rest_ie = List.delete_at(l_ie, -1)
#... | 18.962963 | 59 | 0.5 |
217558e41d1b4ea670fd7ff30eb35df3e844ccbf | 30,819 | ex | Elixir | lib/cldr/number/formatter/decimal_formatter.ex | kipcole9/cldr_numbers | c840630fcb729cd8245b843c0b12f08e64fbc8f1 | [
"Apache-2.0"
] | 8 | 2017-12-13T00:39:34.000Z | 2019-04-12T06:00:07.000Z | lib/cldr/number/formatter/decimal_formatter.ex | kipcole9/cldr_numbers | c840630fcb729cd8245b843c0b12f08e64fbc8f1 | [
"Apache-2.0"
] | 8 | 2017-10-29T23:38:32.000Z | 2019-03-20T19:22:43.000Z | lib/cldr/number/formatter/decimal_formatter.ex | kipcole9/cldr_numbers | c840630fcb729cd8245b843c0b12f08e64fbc8f1 | [
"Apache-2.0"
] | 7 | 2017-10-05T11:35:36.000Z | 2018-08-20T12:17:03.000Z | defmodule Cldr.Number.Formatter.Decimal do
@moduledoc """
Formats a number according to a locale-specific predefined format or a user-defined format.
As a performance optimization, all decimal formats known at compile time are
compiled into function that roughly halves the time to format a number
compared to... | 33.645197 | 141 | 0.685356 |
21755a044aaec249ddaf5aee462d70900d1e82b8 | 1,935 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_create_document_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_create_document_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v3alpha1_create_document_operation_metadata.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... | 34.553571 | 192 | 0.776744 |
217562139b228f4d9523f1c3f2a55debc9ebfdb5 | 1,084 | ex | Elixir | lib/raptor.ex | adammcfadden/raptor | 4ee7ee2ec2e0d9e08b30a9c6c8d14c9bc19e80d5 | [
"Unlicense"
] | 1 | 2017-05-11T21:09:44.000Z | 2017-05-11T21:09:44.000Z | lib/raptor.ex | adammcfadden/raptor | 4ee7ee2ec2e0d9e08b30a9c6c8d14c9bc19e80d5 | [
"Unlicense"
] | 1 | 2017-05-12T00:50:58.000Z | 2017-05-12T19:00:22.000Z | lib/raptor.ex | adammcfadden/raptor | 4ee7ee2ec2e0d9e08b30a9c6c8d14c9bc19e80d5 | [
"Unlicense"
] | null | null | null | defmodule Raptor.Server do
@moduledoc """
Raptor.Service starts the Raptor.Worker, and keeps it alive
"""
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(Raptor.Worker, [])
]
opts = [strategy: :one_for_one, name: Raptor.Supervisor]
... | 20.074074 | 75 | 0.665129 |
217590a63dc4ca64a0b2185a501b431754abd1a5 | 3,170 | ex | Elixir | lib/earmark/helpers/ast_helpers.ex | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | lib/earmark/helpers/ast_helpers.ex | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | lib/earmark/helpers/ast_helpers.ex | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | 1 | 2020-03-31T19:53:15.000Z | 2020-03-31T19:53:15.000Z | defmodule Earmark.Helpers.AstHelpers do
@moduledoc false
import Earmark.Helpers
import Earmark.Helpers.AttrParser
alias Earmark.Block
@doc false
def augment_tag_with_ial(tags, ial)
def augment_tag_with_ial([{t, a, c}|tags], atts) do
[{t, merge_attrs(a, atts), c}|tags]
end
@doc false
def c... | 27.565217 | 120 | 0.601262 |
2175a6fb1440797bb4431ac41c9ed8a52b8ccbdd | 3,812 | exs | Elixir | test/singyeong/store_test.exs | queer/singyeong | 3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a | [
"BSD-3-Clause"
] | 70 | 2018-10-25T06:06:37.000Z | 2022-03-14T19:51:56.000Z | test/singyeong/store_test.exs | queer/singyeong | 3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a | [
"BSD-3-Clause"
] | 140 | 2019-02-19T06:52:59.000Z | 2022-03-01T11:13:41.000Z | test/singyeong/store_test.exs | queer/singyeong | 3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a | [
"BSD-3-Clause"
] | 9 | 2019-03-20T12:17:28.000Z | 2021-03-11T18:51:00.000Z | defmodule Singyeong.StoreTest do
use ExUnit.Case, async: false
alias Singyeong.Store
alias Singyeong.Store.Client
@app_id "app"
@client_id "client"
setup do
Store.start()
on_exit fn ->
Store.stop()
end
end
describe "add_client/1" do
test "it works" do
{:ok, out} = Store.a... | 23.974843 | 72 | 0.534365 |
2175c18b41b22f93e03575ff8a9b72fe7fd6612d | 957 | ex | Elixir | test/support/channel_case.ex | herrkessler/helloPhoenix | be0e7d56b0c09b81c9eab7620e95dd1d6c6b2aaa | [
"MIT"
] | null | null | null | test/support/channel_case.ex | herrkessler/helloPhoenix | be0e7d56b0c09b81c9eab7620e95dd1d6c6b2aaa | [
"MIT"
] | null | null | null | test/support/channel_case.ex | herrkessler/helloPhoenix | be0e7d56b0c09b81c9eab7620e95dd1d6c6b2aaa | [
"MIT"
] | null | null | null | defmodule HelloPhoenixWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interac... | 25.184211 | 74 | 0.722048 |
2175c52e0649e19375de8d1bc4e6a0057dfdd092 | 1,109 | ex | Elixir | lib/ueberauth_example_web/controllers/auth_controller.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | lib/ueberauth_example_web/controllers/auth_controller.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | lib/ueberauth_example_web/controllers/auth_controller.ex | chulkilee/ueberauth_example | 877fdb63199bf8d00bc72a72908ab2cb34b752aa | [
"MIT"
] | null | null | null | defmodule UeberauthExampleWeb.AuthController do
@moduledoc """
Auth controller responsible for handling Ueberauth responses
"""
use UeberauthExampleWeb, :controller
plug(Ueberauth)
alias Ueberauth.Strategy.Helpers
def request(conn, _params) do
render(conn, "request.html", callback_url: Helpers.call... | 25.204545 | 75 | 0.633904 |
2175ff37f5a7bfdc3d4b0f542f3790a6484576ee | 371 | ex | Elixir | lib/podcatcher/emails.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | lib/podcatcher/emails.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | lib/podcatcher/emails.ex | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | defmodule Podcatcher.Emails do
use Bamboo.Phoenix, view: Podcatcher.Web.EmailView
@default_sender "support@podbaby.me"
def reset_password_email(conn, user, token) do
new_email(
to: user.email,
from: @default_sender,
subject: "Reset your password",
)
|> render("recover_password.text... | 24.733333 | 76 | 0.692722 |
21761b18fbe645491dff8cd60400964da4236202 | 1,129 | exs | Elixir | test/fotd_code_test.exs | aesmail/fotd | 03bc3f145ed2aa30bafa25198570c380a8d0ad31 | [
"Apache-2.0"
] | 1 | 2018-11-24T12:01:30.000Z | 2018-11-24T12:01:30.000Z | test/fotd_code_test.exs | wojtekmach/fotd | f485b6b8d4d9e7b3385699f6175d1bc61d13035a | [
"Apache-2.0"
] | null | null | null | test/fotd_code_test.exs | wojtekmach/fotd | f485b6b8d4d9e7b3385699f6175d1bc61d13035a | [
"Apache-2.0"
] | null | null | null | defmodule Fotd.CodeTest do
use ExUnit.Case, async: true
test "module is considered legit when belongs to Elixir and is not banned" do
assert Fotd.Code.legit? Phoenix
assert Fotd.Code.legit? Ecto
assert Fotd.Code.legit? :"Elixir.Kernel"
refute Fotd.Code.legit? Fotd
refute Fotd.Code.legit? Earma... | 32.257143 | 106 | 0.705049 |
217626f34d636d16db622abd7a2e89997f356436 | 782 | exs | Elixir | apps/neoscan/priv/repo/migrations/20170719015316_vouts.exs | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2021-02-23T02:55:26.000Z | 2021-02-23T02:55:26.000Z | apps/neoscan/priv/repo/migrations/20170719015316_vouts.exs | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoscan/priv/repo/migrations/20170719015316_vouts.exs | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2019-10-16T21:37:31.000Z | 2019-10-16T21:37:31.000Z | defmodule Neoscan.Repo.Migrations.Vouts do
use Ecto.Migration
def change do
create table(:vouts) do
add(:asset, :string)
add(:address_hash, :string)
add(:n, :integer)
add(:value, :float)
add(:txid, :string)
add(:time, :integer)
add(:start_height, :integer)
add(:... | 25.225806 | 77 | 0.634271 |
21762959275ad169db5f717a7e1c77493a0f6056 | 655 | ex | Elixir | lib/radixir/crypto/hash.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | 16 | 2022-01-05T20:41:55.000Z | 2022-03-25T09:06:43.000Z | lib/radixir/crypto/hash.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | null | null | null | lib/radixir/crypto/hash.ex | radixir/radixir | 703034330e857bc084b78dd927ec611c3ea54349 | [
"Apache-2.0"
] | 1 | 2022-02-10T21:55:26.000Z | 2022-02-10T21:55:26.000Z | defmodule Radixir.Crypto.Hash do
@moduledoc false
def sha256(data) do
try do
{:ok, :crypto.hash(:sha256, data)}
rescue
e in ArgumentError -> {:error, e}
end
end
def sha256!(data) do
case sha256(data) do
{:ok, digest} -> digest
{:error, reason} -> raise "sha256 error: #{i... | 19.848485 | 66 | 0.578626 |
217639375e77d12e503af4519f15198bedb03909 | 3,603 | ex | Elixir | lib/Split-Bills/Splitbills.ex | AkioCode/SplitterBills | 880a9ba46acbf5a55c2f29bbac74ab88676ee540 | [
"MIT"
] | 1 | 2021-01-24T23:38:34.000Z | 2021-01-24T23:38:34.000Z | lib/Split-Bills/Splitbills.ex | AkioCode/SplitterBills | 880a9ba46acbf5a55c2f29bbac74ab88676ee540 | [
"MIT"
] | null | null | null | lib/Split-Bills/Splitbills.ex | AkioCode/SplitterBills | 880a9ba46acbf5a55c2f29bbac74ab88676ee540 | [
"MIT"
] | null | null | null | defmodule Splitbills do
@moduledoc """
...
"""
@doc """
Returns a list of maps with email (person) and their splitted bill
## Parameters
- Shopping list: A list of maps with purchased items in the following format:
%{
name: _item_name,
features: ${
price: _item_pri... | 31.330435 | 167 | 0.586733 |
2176704f0e48b1e6d7540fd083a92634b4079f25 | 2,802 | exs | Elixir | test/notoriety/note_test.exs | aoswalt/notoriety | e8599a7831be0b647511f59881c536b6c5d97147 | [
"MIT"
] | null | null | null | test/notoriety/note_test.exs | aoswalt/notoriety | e8599a7831be0b647511f59881c536b6c5d97147 | [
"MIT"
] | 5 | 2020-02-01T16:37:57.000Z | 2021-05-08T16:44:10.000Z | test/notoriety/note_test.exs | aoswalt/notoriety | e8599a7831be0b647511f59881c536b6c5d97147 | [
"MIT"
] | null | null | null | defmodule Notoriety.NoteTest do
use ExUnit.Case, async: true
alias Notoriety.Note
test "title/1 returns the given title" do
title = "this title"
note = Note.new(text: "", title: title)
assert Note.title(note) == title
end
test "title/1 returns first empty text line without title" do
title ... | 20.602941 | 63 | 0.540685 |
21767818996b2b0ed3de3a4d37ed7472a79a2e9b | 2,033 | ex | Elixir | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/client_user.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/client_user.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/client_user.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... | 38.358491 | 174 | 0.722086 |
2176973d8f2d6c54b9ecbfdb97284f0ade44d851 | 501 | exs | Elixir | config/test.exs | kf8a/phenodata | 51370be0522f632a98df47c9d104c7a2cf2214c6 | [
"MIT"
] | null | null | null | config/test.exs | kf8a/phenodata | 51370be0522f632a98df47c9d104c7a2cf2214c6 | [
"MIT"
] | null | null | null | config/test.exs | kf8a/phenodata | 51370be0522f632a98df47c9d104c7a2cf2214c6 | [
"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 :phenodata, Phenodata.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :phenodata, Phenoda... | 25.05 | 56 | 0.738523 |
2176fd8599ef51b24992af378f8f09f3c0978b29 | 2,140 | ex | Elixir | lib/astarte_flow/blocks/dynamic_virtual_device_pool/dets_credentials_storage.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 11 | 2020-01-30T17:44:35.000Z | 2022-01-13T19:17:21.000Z | lib/astarte_flow/blocks/dynamic_virtual_device_pool/dets_credentials_storage.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 100 | 2020-02-11T10:01:35.000Z | 2022-02-17T10:39:35.000Z | lib/astarte_flow/blocks/dynamic_virtual_device_pool/dets_credentials_storage.ex | Pavinati/astarte_flow | 82b6bee82e23907f7623a94a072239591b19b9d8 | [
"Apache-2.0"
] | 7 | 2020-01-30T11:33:20.000Z | 2021-05-03T09:48:41.000Z | #
# This file is part of Astarte.
#
# Copyright 2020 Ispirata Srl
#
# 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 appl... | 28.533333 | 101 | 0.707944 |
217726eaa67322d9087840fd991f38d14c03cedb | 1,050 | ex | Elixir | apps/discordbot/test/fake/discord/websocket_handler.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 4 | 2018-11-19T06:10:52.000Z | 2022-02-03T01:50:23.000Z | apps/discordbot/test/fake/discord/websocket_handler.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 254 | 2018-11-19T06:08:51.000Z | 2021-07-22T13:47:26.000Z | apps/discordbot/test/fake/discord/websocket_handler.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | null | null | null | defmodule DiscordBot.Fake.Discord.WebsocketHandler do
@moduledoc false
@behaviour :cowboy_websocket
alias DiscordBot.Fake.Discord.Core
alias DiscordBot.Model.Payload
def init(req, args) do
[core] = args
Core.request_socket(core, req)
{:cowboy_websocket, req, %{core: core}}
end
def websocket... | 23.863636 | 57 | 0.670476 |
217739d7d5c23784b97a4ebef481bedbe15fd20e | 10,730 | ex | Elixir | clients/custom_search/lib/google_api/custom_search/v1/model/search_queries_next_page.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/custom_search/lib/google_api/custom_search/v1/model/search_queries_next_page.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/custom_search/lib/google_api/custom_search/v1/model/search_queries_next_page.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.447005 | 137 | 0.662255 |
217778b912755c81f53db3b0491ffcb224184893 | 1,892 | ex | Elixir | lib/new_relic/telemetry/ecto/metadata.ex | mrz/elixir_agent | bbfa4c57d2d89e29b2cf1649c2c072968e73ebc7 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/telemetry/ecto/metadata.ex | mrz/elixir_agent | bbfa4c57d2d89e29b2cf1649c2c072968e73ebc7 | [
"Apache-2.0"
] | null | null | null | lib/new_relic/telemetry/ecto/metadata.ex | mrz/elixir_agent | bbfa4c57d2d89e29b2cf1649c2c072968e73ebc7 | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Telemetry.Ecto.Metadata do
@moduledoc false
def parse(%{result: {:ok, %{__struct__: Postgrex.Cursor}}}), do: :ignore
def parse(%{result: {:ok, %{__struct__: MyXQL.Cursor}}}), do: :ignore
def parse(%{query: query, result: {_ok_err, %{__struct__: struct}}})
when struct in [Postgrex.Resu... | 31.533333 | 86 | 0.593023 |
21777d2c062c459e6798a505d93ac7d9a658a433 | 5,690 | exs | Elixir | apps/re_web/test/graphql/duplicity_checker/query_test.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_web/test/graphql/duplicity_checker/query_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | null | null | null | apps/re_web/test/graphql/duplicity_checker/query_test.exs | eduardomartines/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReWeb.GraphQL.DuplicityChecker.QueryTest do
use ReWeb.ConnCase
import Re.Factory
alias ReWeb.AbsintheHelpers
setup %{conn: conn} do
conn = put_req_header(conn, "accept", "application/json")
admin_user = insert(:user, email: "admin@email.com", role: "admin")
user_user = insert(:user, ema... | 28.883249 | 116 | 0.559754 |
21778c0f2bc657ff388f776069aee61792c5c492 | 1,245 | exs | Elixir | template/$PROJECT_NAME$/config/config.exs | zeroasterisk/mix-gen-za_min_template | 24bfce134d77635ac06557cf6b732716cd809f0a | [
"MIT"
] | null | null | null | template/$PROJECT_NAME$/config/config.exs | zeroasterisk/mix-gen-za_min_template | 24bfce134d77635ac06557cf6b732716cd809f0a | [
"MIT"
] | null | null | null | template/$PROJECT_NAME$/config/config.exs | zeroasterisk/mix-gen-za_min_template | 24bfce134d77635ac06557cf6b732716cd809f0a | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
if Mix.env == :dev do
config :mix_test_watch,
exclude: [~r/\.#/, ~r{priv/repo/migrations}]
end
# This configuration is loaded before any dependency and is restricted
# to this... | 34.583333 | 73 | 0.73253 |
21783cc0eee4acf038eeed8544662b39f89b049d | 1,139 | exs | Elixir | config/config.exs | cogini/nerves_init_ec2 | 8f68b069db48f6aa32c6b3ad2c73c1756c9afeb3 | [
"Apache-2.0"
] | 3 | 2018-08-05T12:48:49.000Z | 2018-08-09T07:44:35.000Z | config/config.exs | cogini/nerves_init_ec2 | 8f68b069db48f6aa32c6b3ad2c73c1756c9afeb3 | [
"Apache-2.0"
] | 1 | 2018-08-04T23:55:54.000Z | 2018-08-05T23:16:23.000Z | config/config.exs | cogini/nerves_init_ec2 | 8f68b069db48f6aa32c6b3ad2c73c1756c9afeb3 | [
"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.741935 | 73 | 0.755048 |
21784c6865eebde43861e6ff55a171d791c7b0dc | 827 | ex | Elixir | lib/hl7/2.5/segments/iim.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/iim.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/iim.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.IIM do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
primary_key_value_iim: DataTypes.Cwe,
service_item_code: DataTypes.Cwe,
inventory_lot_number: nil,
inventory_expiration_date: DataTypes.Ts,
... | 30.62963 | 54 | 0.737606 |
2178530d841263a1bbac87487dcd1e6dbbae3b43 | 237 | exs | Elixir | larc_website/priv/repo/migrations/20200625150418_create_users.exs | Cate-Lukner/cate-lukner-internship | 43e8b467287ea3a7955e23f18180cb4f849e6620 | [
"MIT"
] | null | null | null | larc_website/priv/repo/migrations/20200625150418_create_users.exs | Cate-Lukner/cate-lukner-internship | 43e8b467287ea3a7955e23f18180cb4f849e6620 | [
"MIT"
] | null | null | null | larc_website/priv/repo/migrations/20200625150418_create_users.exs | Cate-Lukner/cate-lukner-internship | 43e8b467287ea3a7955e23f18180cb4f849e6620 | [
"MIT"
] | 1 | 2020-05-22T19:21:24.000Z | 2020-05-22T19:21:24.000Z | defmodule LarcWebsite.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :email, :string
add :subject, :string
timestamps()
end
end
end
| 15.8 | 52 | 0.649789 |
217859e10a50ba3dd26a3ca94b557774ff9e66c8 | 976 | ex | Elixir | lib/day1/part1.ex | anamba/adventofcode2017 | 87d886107c45d40b72b925e992ff665330205ad6 | [
"MIT"
] | null | null | null | lib/day1/part1.ex | anamba/adventofcode2017 | 87d886107c45d40b72b925e992ff665330205ad6 | [
"MIT"
] | null | null | null | lib/day1/part1.ex | anamba/adventofcode2017 | 87d886107c45d40b72b925e992ff665330205ad6 | [
"MIT"
] | null | null | null | defmodule Day1.Part1 do
@doc """
iex> Day1.Part1.part1("1122")
3
iex> Day1.Part1.part1("1111")
4
iex> Day1.Part1.part1("1234")
0
iex> Day1.Part1.part1("91212129")
9
"""
def part1(input) do
# duplicate the first element to the end to simulate wraparound
# not... | 21.688889 | 97 | 0.568648 |
21785d6bfacf9f7d8610c7be6556839c5ada0b2d | 1,804 | exs | Elixir | clients/slides/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/slides/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/slides/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.925373 | 97 | 0.65133 |
21787a830d87e8abd94814b17d87576cbc79f094 | 515 | exs | Elixir | play_ui/config/config.exs | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | 1 | 2019-05-29T00:45:46.000Z | 2019-05-29T00:45:46.000Z | play_ui/config/config.exs | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | null | null | null | play_ui/config/config.exs | QuantumProductions/scenic_font_test | ff8d0df6ade399039b9d9e816e398cb1ad80a7db | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# Configure the main viewport for the Scenic application
config :play, :viewport, %{
name: :main_viewport,
size: {500, 500},
default_scene: {Play.Scene.GameOver, Play.Scene.Asteroids},
drivers: [
%{
module: Scenic.Driver.Glfw,
name: :glfw,
opts: [resizeable: false, title: "... | 20.6 | 84 | 0.642718 |
217888c95f22c7ab5c1a4d25232ce59974175f14 | 1,749 | ex | Elixir | lib/cookbook_web/live/keep_liveview_across_redirect_live.ex | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | null | null | null | lib/cookbook_web/live/keep_liveview_across_redirect_live.ex | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | 11 | 2021-12-19T09:07:30.000Z | 2022-01-01T17:54:43.000Z | lib/cookbook_web/live/keep_liveview_across_redirect_live.ex | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | null | null | null | defmodule CookbookWeb.EmbeddedLiveView do
use CookbookWeb, :live_view
def render(assigns) do
~H"""
<div class="card mt-1 mb-3">
<div class="card-body">
This LiveView is embedded in another LiveView
<br />
Loaded at <%= @current_time %>
</div>
</div>
"""
end
... | 26.5 | 95 | 0.664951 |
217888eee2002821d1ceaf833231bfadbf84d12f | 2,238 | ex | Elixir | apps/cms/lib/search/facets.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/cms/lib/search/facets.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/cms/lib/search/facets.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule CMS.Search.Facets do
@moduledoc "Module for interacting with Search Facets"
alias CMS.Repo
alias CMS.Search.Facet
alias CMS.Search.Result
@default_opts [search_fn: &Repo.search/3, response_timeout: 5000]
@typep search_fn :: (String.t(), integer, [String.t()] -> Result.t())
@typep content_respo... | 31.971429 | 79 | 0.651028 |
217907e4cda2255eb65e8563a5ceb26714094d24 | 3,216 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spanner/lib/google_api/spanner/v1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/spanner/lib/google_api/spanner/v1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 57.428571 | 1,092 | 0.732276 |
21790a131e1db1df1b4ef975b62c5199b2f08e0f | 3,091 | exs | Elixir | test/find_my_personal/members_test.exs | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | test/find_my_personal/members_test.exs | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | 11 | 2022-01-12T02:39:42.000Z | 2022-02-09T02:17:04.000Z | test/find_my_personal/members_test.exs | gissandrogama/find_my_personal | 12f23b37e967949af9f3e511cf1ce684452d8f66 | [
"MIT"
] | null | null | null | defmodule FindMyPersonal.MembersTest do
use FindMyPersonal.DataCase
use Bamboo.Test
alias FindMyPersonal.{Members, Members.Mail}
import FindMyPersonal.MemberFixture
describe "emails tests" do
test "welcome email" do
member = member_fixture()
{:ok, email} = Mail.created({:ok, member})
... | 32.882979 | 89 | 0.672274 |
21790a21f78775f28ae02b4ae903b6a311364296 | 1,631 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/empty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2018 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... | 37.930233 | 381 | 0.748007 |
21790f8c50f53e200cd272b9fb83a4f54e8c8d70 | 1,193 | ex | Elixir | lib/exavier/mutators/conditionals_boundary.ex | dnlserrano/exavier | 3d4d64ebb83b533b85c51fa6f7fdd60983afa2b4 | [
"MIT"
] | 93 | 2019-07-22T09:21:31.000Z | 2022-02-02T05:49:29.000Z | lib/exavier/mutators/conditionals_boundary.ex | dnlserrano/exavier | 3d4d64ebb83b533b85c51fa6f7fdd60983afa2b4 | [
"MIT"
] | 21 | 2019-07-26T12:54:37.000Z | 2022-03-10T10:56:47.000Z | lib/exavier/mutators/conditionals_boundary.ex | dnlserrano/exavier | 3d4d64ebb83b533b85c51fa6f7fdd60983afa2b4 | [
"MIT"
] | 7 | 2019-11-05T08:32:51.000Z | 2020-11-25T19:37:35.000Z | defmodule Exavier.Mutators.ConditionalsBoundary do
@moduledoc """
Mutates conditional operators to change their boundary..
Conditionals are replaced according to the table below.
| Original | Mutation |
|----------|----------|
| < | <= |
| <= | < |
| > | >= |
|... | 22.942308 | 77 | 0.595138 |
21795135c76eb5f082e73968d9faafba1c5428cf | 4,373 | ex | Elixir | lib/eex/lib/eex/compiler.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/eex/lib/eex/compiler.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/eex/lib/eex/compiler.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule EEx.Compiler do
@moduledoc false
# When changing this setting, don't forget to update the docs for EEx
@default_engine EEx.SmartEngine
@doc """
This is the compilation entry point. It glues the tokenizer
and the engine together by handling the tokens and invoking
the engine every time a full e... | 35.552846 | 101 | 0.659959 |
21798d5bb16d98f9383ea265684fbe6d7cc66cf1 | 82 | exs | Elixir | test/web_demo_web/views/layout_view_test.exs | pankaryp/Phoenix-server-demo | 7a028bb14ad58400e0215281e09627e168cf5792 | [
"MIT"
] | null | null | null | test/web_demo_web/views/layout_view_test.exs | pankaryp/Phoenix-server-demo | 7a028bb14ad58400e0215281e09627e168cf5792 | [
"MIT"
] | null | null | null | test/web_demo_web/views/layout_view_test.exs | pankaryp/Phoenix-server-demo | 7a028bb14ad58400e0215281e09627e168cf5792 | [
"MIT"
] | null | null | null | defmodule WebDemoWeb.LayoutViewTest do
use WebDemoWeb.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
2179ac99980d34da4c5c6b0303518f57ec5eb455 | 85 | ex | Elixir | lib/readable_orphans/newtypes.ex | tkachuk-labs/readable-orphans | 389d5b5d8e403084ef41a191565527ac46382752 | [
"MIT"
] | null | null | null | lib/readable_orphans/newtypes.ex | tkachuk-labs/readable-orphans | 389d5b5d8e403084ef41a191565527ac46382752 | [
"MIT"
] | null | null | null | lib/readable_orphans/newtypes.ex | tkachuk-labs/readable-orphans | 389d5b5d8e403084ef41a191565527ac46382752 | [
"MIT"
] | null | null | null | defmodule ReadableOrphans.Either do
@type t :: Algae.Either.t()
defstruct []
end
| 17 | 35 | 0.717647 |
2179d313807ae1cb2d4762067e6b715aa3f3cfc9 | 7,074 | ex | Elixir | lib/esx/transport.ex | ikeikeikeike/esx | f38d6576e9bce466b91e4d75ed2c690756db6fb0 | [
"MIT"
] | 27 | 2017-03-21T15:42:07.000Z | 2021-10-18T21:15:53.000Z | lib/esx/transport.ex | ikeikeikeike/es | f38d6576e9bce466b91e4d75ed2c690756db6fb0 | [
"MIT"
] | 2 | 2017-06-03T19:25:13.000Z | 2019-06-05T00:06:48.000Z | lib/esx/transport.ex | ikeikeikeike/es | f38d6576e9bce466b91e4d75ed2c690756db6fb0 | [
"MIT"
] | 4 | 2017-10-08T20:17:14.000Z | 2021-05-24T11:22:13.000Z | defmodule ESx.Transport do
@moduledoc "ESx.Transport"
use ESx.Transport.Config
import ESx.Checks, only: [present?: 1]
defmodule State do
@moduledoc "State"
use ESx.Transport.Statex, [
:last_request_at,
:resurrect_after,
:counter,
:reload_after,
:reload,
:randomize... | 26.593985 | 98 | 0.569268 |
2179d408191540cca63e53c45397036501f69912 | 374 | ex | Elixir | test/support/shopifex_dummy/lib/shopifex_dummy_web/router.ex | versus-systems/shopifex | 48b1e7e6b3b5cf31010097ad768325f783168124 | [
"Apache-2.0"
] | null | null | null | test/support/shopifex_dummy/lib/shopifex_dummy_web/router.ex | versus-systems/shopifex | 48b1e7e6b3b5cf31010097ad768325f783168124 | [
"Apache-2.0"
] | null | null | null | test/support/shopifex_dummy/lib/shopifex_dummy_web/router.ex | versus-systems/shopifex | 48b1e7e6b3b5cf31010097ad768325f783168124 | [
"Apache-2.0"
] | null | null | null | defmodule ShopifexDummyWeb.Router do
use ShopifexDummyWeb, :router
require ShopifexWeb.Routes
ShopifexWeb.Routes.pipelines()
ShopifexWeb.Routes.payment_routes(ShopifexDummyWeb)
ShopifexWeb.Routes.auth_routes(ShopifexDummyWeb)
scope "/", ShopifexDummyWeb do
pipe_through([:shopify_browser, :shopify_sess... | 24.933333 | 54 | 0.780749 |
217a17d9d5640da70500f6ddc1e5394bb844f364 | 358 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20180717115100_fix_exchange_account_in_consumption.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet_db/priv/repo/migrations/20180717115100_fix_exchange_account_in_consumption.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20180717115100_fix_exchange_account_in_consumption.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletDB.Repo.Migrations.FixExchangeAccountInConsumption do
use Ecto.Migration
def change do
alter table(:transaction_consumption) do
remove :exchange_account_uuid
end
flush()
alter table(:transaction_consumption) do
add :exchange_account_uuid, references(:account, type: :u... | 22.375 | 82 | 0.740223 |
217a48c45c327eaf3f2fa19cc47223a4c540fe0d | 1,081 | exs | Elixir | config/dev.exs | 22cans/exsyslog | 13fea0db89213c2cbfce06721009021b7566f4bc | [
"MIT"
] | 18 | 2015-07-21T18:40:08.000Z | 2020-01-12T19:10:40.000Z | config/dev.exs | 22cans/exsyslog | 13fea0db89213c2cbfce06721009021b7566f4bc | [
"MIT"
] | 9 | 2015-11-09T11:51:36.000Z | 2020-06-18T09:43:49.000Z | config/dev.exs | 22cans/exsyslog | 13fea0db89213c2cbfce06721009021b7566f4bc | [
"MIT"
] | 16 | 2015-11-06T23:39:40.000Z | 2020-03-25T18:12:38.000Z | use Mix.Config
config :logger,
utc_log: true,
truncate: 8192,
sync_threshold: 40,
discard_threshold_for_error_logger: 500,
compile_time_purge_level: :debug,
backends: [
{ExSyslog, :exsyslog_error},
{ExSyslog, :exsyslog_debug},
{ExSyslog, :exsyslog_json}
]
co... | 25.139535 | 69 | 0.657724 |
217a53a8a33dd57be954e35be808e3c8fe1beb98 | 1,849 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/companion_click_through_override.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/companion_click_through_override.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/companion_click_through_override.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... | 36.98 | 166 | 0.751217 |
217a5cbf2246c274ce1583f23e26448d1938961c | 5,230 | ex | Elixir | apps/fz_http/lib/fz_http/users.ex | amishakov/firezone | cd85b0847ac1792ca00aedab99fbf0f7a520f1a6 | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http/users.ex | amishakov/firezone | cd85b0847ac1792ca00aedab99fbf0f7a520f1a6 | [
"Apache-2.0"
] | 1 | 2022-03-30T03:57:41.000Z | 2022-03-30T03:57:41.000Z | apps/fz_http/lib/fz_http/users.ex | amishakov/firezone | cd85b0847ac1792ca00aedab99fbf0f7a520f1a6 | [
"Apache-2.0"
] | null | null | null | defmodule FzHttp.Users do
@moduledoc """
The Users context.
"""
import Ecto.Query, warn: false
alias FzCommon.{FzCrypto, FzMap}
alias FzHttp.{Devices.Device, Mailer, Repo, Sites.Site, Telemetry, Users.User}
require Logger
# one hour
@sign_in_token_validity_secs 3600
def count do
Repo.one(fr... | 23.452915 | 94 | 0.639388 |
217a69155335be412b9a960c1feae619fa500c83 | 2,858 | ex | Elixir | lib/sanbase_web/graphql/schema/queries/billing_queries.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/graphql/schema/queries/billing_queries.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/graphql/schema/queries/billing_queries.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.Schema.BillingQueries do
use Absinthe.Schema.Notation
alias SanbaseWeb.Graphql.Resolvers.BillingResolver
alias SanbaseWeb.Graphql.Middlewares.JWTAuth
object :billing_queries do
@desc ~s"""
List available products with corresponding subscription plans.
"""
field :p... | 26.962264 | 88 | 0.693142 |
217a87dbc96bdcd19a3ab26cc750880a918d2cb5 | 400 | ex | Elixir | apps/definition_schedule/lib/schedule/v1.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/definition_schedule/lib/schedule/v1.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/definition_schedule/lib/schedule/v1.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Schedule.V1 do
use Definition.Schema
@impl true
def s do
schema(%Schedule{
version: version(1),
id: id(),
dataset_id: required_string(),
subset_id: required_string(),
cron: required_string(),
compaction_cron: required_string(),
extract: Extract.schema(),
... | 21.052632 | 41 | 0.625 |
217aa98c92128c1f1a8a0095f58f03f75b21f433 | 3,850 | ex | Elixir | lib/helper/converter/editor_to_html/class.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/helper/converter/editor_to_html/class.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/helper/converter/editor_to_html/class.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule Helper.Converter.EditorToHTML.Class do
@moduledoc """
html article class names parsed from editor.js's json data
currently use https://editorjs.io/ as rich-text editor
# NOTE: DONOT CHANGE ONCE SET, OTHERWISE IT WILL CAUSE INCOMPATIBILITY ISSUE
"""
@doc """
get all the class names of the parse... | 36.666667 | 78 | 0.576883 |
217abc17b8d6d8d31021c8f99e282c2346adc8a6 | 7,008 | exs | Elixir | test/lib/timber/integrations/error_logger_test.exs | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | test/lib/timber/integrations/error_logger_test.exs | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | test/lib/timber/integrations/error_logger_test.exs | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | defmodule Timber.Integrations.ErrorLoggerTest do
use Timber.TestCase
import Timber.TestHelpers
alias Timber.FakeHTTPClient
alias Timber.LoggerBackends.HTTP
alias Timber.Events.ErrorEvent
defp add_timber_error_logger() do
:ok = :error_logger.add_report_handler(Timber.Integrations.ErrorLogger)
ExUni... | 28.258065 | 76 | 0.635131 |
217ad164f40a4122cf1f37c762f86558b87e256a | 77,265 | ex | Elixir | lib/elixir/lib/module.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | 1 | 2022-03-28T12:04:08.000Z | 2022-03-28T12:04:08.000Z | lib/elixir/lib/module.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module.ex | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | defmodule Module do
@moduledoc ~S'''
Provides functions to deal with modules during compilation time.
It allows a developer to dynamically add, delete and register
attributes, attach documentation and so forth.
After a module is compiled, using many of the functions in
this module will raise errors, since... | 32.086794 | 113 | 0.660221 |
217ada19b2ea5c7a11ca52667db5ee1f134bd11b | 114 | ex | Elixir | lib/rdf/xsd/facets/fraction_digits.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | 53 | 2017-06-25T22:20:44.000Z | 2020-04-27T17:27:51.000Z | lib/rdf/xsd/facets/fraction_digits.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | 7 | 2017-06-25T00:29:11.000Z | 2020-03-11T00:23:47.000Z | lib/rdf/xsd/facets/fraction_digits.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | 3 | 2020-07-03T13:25:36.000Z | 2021-04-04T12:33:51.000Z | defmodule RDF.XSD.Facets.FractionDigits do
use RDF.XSD.Facet, name: :fraction_digits, type: non_neg_integer
end
| 28.5 | 66 | 0.807018 |
217b104289bd49cc1cc4a80c304c83cdbccd3bc1 | 393 | ex | Elixir | test/support/test_update_handler.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | test/support/test_update_handler.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | test/support/test_update_handler.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule FarmbotTestSupport.TestUpdateHandler do
@moduledoc "Handles prep and post OTA update."
@behaviour Farmbot.System.UpdateHandler
use Farmbot.Logger
# Update Handler callbacks
def apply_firmware(_file_path) do
:ok
end
def before_update do
:ok
end
def post_update do
:ok
end
... | 14.555556 | 49 | 0.712468 |
217b738177308c5a693d66535d26851b43d8f82e | 890 | exs | Elixir | test/magnet/encoder_test.exs | gausby/magnet | a5ddb2f7aacb8b58c6ec52f56440d1eb7478bf99 | [
"Apache-2.0"
] | 6 | 2016-01-31T21:27:42.000Z | 2020-01-13T21:53:34.000Z | test/magnet/encoder_test.exs | gausby/magnet | a5ddb2f7aacb8b58c6ec52f56440d1eb7478bf99 | [
"Apache-2.0"
] | 5 | 2018-11-11T11:06:37.000Z | 2018-11-19T22:11:50.000Z | test/magnet/encoder_test.exs | rustra/magnet | a5ddb2f7aacb8b58c6ec52f56440d1eb7478bf99 | [
"Apache-2.0"
] | 2 | 2018-11-13T14:46:36.000Z | 2021-04-30T21:29:57.000Z | defmodule Magnet.EncoderTest do
use ExUnit.Case
alias Magnet.Decoder
alias Magnet.Encoder
test "encoding empty magnet should result in `magnet:?`" do
assert {:ok, "magnet:?"} = Encoder.encode(%Magnet{})
end
test "should encode input and decode it back to the same" do
magnet = ~w(magnet:?
... | 31.785714 | 93 | 0.659551 |
217b74cb7586338b26558841ab7a9d413fdb33a3 | 890 | ex | Elixir | test/support/nested_case.ex | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 20 | 2017-06-25T12:30:03.000Z | 2021-04-25T06:43:31.000Z | test/support/nested_case.ex | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 8 | 2017-11-19T17:15:32.000Z | 2020-02-02T12:50:03.000Z | test/support/nested_case.ex | nickolaich/formex_ecto | 322907daa4924d1c297acc7f9e60f99bc8f2f6f3 | [
"MIT"
] | 9 | 2018-03-30T22:14:13.000Z | 2021-11-15T12:12:56.000Z | defmodule Formex.Ecto.NestedCase do
defmacro __using__(_) do
quote do
use Formex.Ecto.TestCase
import Formex.Builder
alias Formex.Ecto.TestModel.User
alias Formex.Ecto.TestModel.UserInfo
alias Formex.Ecto.TestRepo
def insert_users() do
TestRepo.insert(%User{first_name:... | 26.969697 | 78 | 0.608989 |
217b8490c83c4daa74a30b3feaaafb7878679c8f | 10,941 | ex | Elixir | lib/coxir/gateway/stage/dispatcher.ex | satom99/coxir | 75bce94dcbe5dfa49e920d2f4ce0de224c315ce4 | [
"Apache-2.0"
] | 178 | 2018-04-08T17:11:56.000Z | 2022-03-25T15:36:41.000Z | lib/coxir/gateway/stage/dispatcher.ex | satom99/coxir | 75bce94dcbe5dfa49e920d2f4ce0de224c315ce4 | [
"Apache-2.0"
] | 21 | 2018-04-30T21:33:59.000Z | 2019-09-03T17:25:26.000Z | lib/coxir/gateway/stage/dispatcher.ex | satom99/coxir | 75bce94dcbe5dfa49e920d2f4ce0de224c315ce4 | [
"Apache-2.0"
] | 25 | 2018-04-21T19:41:03.000Z | 2021-07-24T22:40:40.000Z | defmodule Coxir.Gateway.Dispatcher do
@moduledoc """
Work in progress.
"""
use GenStage
alias Coxir.Gateway.Payload
alias Coxir.Gateway.Payload.{Ready, GuildMembersChunk}
alias Coxir.Gateway.Payload.{MessageReactionRemoveAll, MessageReactionRemoveEmoji}
alias Coxir.Gateway.Payload.{VoiceServerUpdate, V... | 29.57027 | 86 | 0.692715 |
217ba5ca37948b01db329ba5d0ad2983af6a998b | 7,597 | ex | Elixir | lib/rig_inbound_gateway_web/v1/subscription_controller.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | lib/rig_inbound_gateway_web/v1/subscription_controller.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | lib/rig_inbound_gateway_web/v1/subscription_controller.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigInboundGatewayWeb.V1.SubscriptionController do
use Rig.Config, [:cors]
use RigInboundGatewayWeb, :controller
alias Result
alias RIG.AuthorizationCheck.Request
alias RIG.AuthorizationCheck.Subscription, as: SubscriptionAuthZ
alias Rig.Connection
alias RIG.JWT
alias RIG.Plug.BodyReader
al... | 30.146825 | 96 | 0.635382 |
217bb1ac710b4cd2d03add360d49edbb1364ebf6 | 2,275 | ex | Elixir | implementations/elixir/ockam/ockam_hub/lib/hub/service/tracing.ex | mvisentin88/ockam | be34a3ea86b47f022578e12ba83ba01c855d895c | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_hub/lib/hub/service/tracing.ex | mvisentin88/ockam | be34a3ea86b47f022578e12ba83ba01c855d895c | [
"Apache-2.0"
] | 119 | 2021-07-20T15:12:29.000Z | 2022-03-01T10:31:53.000Z | implementations/elixir/ockam/ockam_hub/lib/hub/service/tracing.ex | mvisentin88/ockam | be34a3ea86b47f022578e12ba83ba01c855d895c | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Hub.Service.Tracing do
@moduledoc """
Tracing service.
Create watchers - workers to intercept traffic
Watchers will forward all traffic without changes
but send a copy of the payload to the tracing route.
"""
use Ockam.Worker
alias Ockam.Message
alias Ockam.Router
require Logger... | 22.979798 | 81 | 0.687912 |
217bbdab24e15cc7949f092d0630bc44fb162f71 | 2,545 | ex | Elixir | lib/ex_twilio/resources/account.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/account.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/account.ex | john-griffin/ex_twilio | 75c018094fbfafdd140c9a90d6306b8d952c1a75 | [
"MIT"
] | null | null | null | defmodule ExTwilio.Account do
@moduledoc """
Represents an Account or Subaccount resource.
- [Account docs](https://www.twilio.com/docs/api/rest/accounts)
- [Subaccount docs](https://www.twilio.com/docs/api/rest/subaccounts)
## Examples
An ExTwilio.Account can represent either an Account or a SubAccount.... | 30.662651 | 90 | 0.65776 |
217bf0b524042a6118012434b605f7f46d67959a | 197 | exs | Elixir | apps/mcam_server/priv/repo/migrations/20201207122648_default_camera_name.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/mcam_server/priv/repo/migrations/20201207122648_default_camera_name.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/mcam_server/priv/repo/migrations/20201207122648_default_camera_name.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule McamServer.Repo.Migrations.DefaultCameraName do
use Ecto.Migration
def up do
McamServer.Repo.query!("UPDATE cameras SET name=board_id")
end
def down do
# nope
end
end
| 16.416667 | 62 | 0.730964 |
217bf2e65770f0016c3cd4413b05ac2ee706dbac | 1,522 | ex | Elixir | external/activestorage_ex_phoenix/lib/activestorage_ex_phoenix_web/views/error_helpers.ex | kieraneglin/activestorage_ex | 3cc00c212f2e87f9e04651e16e6701af8893cc7b | [
"MIT"
] | null | null | null | external/activestorage_ex_phoenix/lib/activestorage_ex_phoenix_web/views/error_helpers.ex | kieraneglin/activestorage_ex | 3cc00c212f2e87f9e04651e16e6701af8893cc7b | [
"MIT"
] | null | null | null | external/activestorage_ex_phoenix/lib/activestorage_ex_phoenix_web/views/error_helpers.ex | kieraneglin/activestorage_ex | 3cc00c212f2e87f9e04651e16e6701af8893cc7b | [
"MIT"
] | 2 | 2019-05-30T18:29:37.000Z | 2020-06-27T18:40:03.000Z | defmodule ActivestorageExPhoenixWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
... | 33.822222 | 91 | 0.680026 |
217bfc8e62fb4f4d0b58d5b7d6e8c0737ec1da8c | 65,349 | exs | Elixir | spec/value_spec.exs | mspanc/dbux | 294ee5a62f1d1b3fafe97dd85b80829289be55ae | [
"MIT"
] | 8 | 2016-09-18T23:43:30.000Z | 2021-05-04T04:23:07.000Z | spec/value_spec.exs | mspanc/dbux | 294ee5a62f1d1b3fafe97dd85b80829289be55ae | [
"MIT"
] | 10 | 2016-05-31T22:22:01.000Z | 2016-09-28T20:11:25.000Z | spec/value_spec.exs | mspanc/dbux | 294ee5a62f1d1b3fafe97dd85b80829289be55ae | [
"MIT"
] | 4 | 2016-09-14T12:50:26.000Z | 2019-11-18T19:48:42.000Z | defmodule DBux.ValueSpec do
use ESpec, async: false
describe ".marshall/2" do
let :bitstring, do: DBux.Value.marshall(<< >>, %DBux.Value{type: type, value: value}, endianness)
context "if passed 'byte' value" do
let :type, do: :byte
let :endianness, do: :little_endian
context "that is v... | 37.214692 | 204 | 0.580361 |
217c2a1443712ec988e22bd6703ee84175758081 | 369 | ex | Elixir | lib/inmana.ex | joaoeliandro/inmana | f50f77dc14498349f5f361a8acfba86093d66a81 | [
"MIT"
] | 2 | 2021-04-21T04:55:47.000Z | 2021-04-21T15:38:42.000Z | lib/inmana.ex | joaoeliandro/inmana | f50f77dc14498349f5f361a8acfba86093d66a81 | [
"MIT"
] | null | null | null | lib/inmana.ex | joaoeliandro/inmana | f50f77dc14498349f5f361a8acfba86093d66a81 | [
"MIT"
] | 1 | 2021-04-25T22:20:19.000Z | 2021-04-25T22:20:19.000Z | defmodule Inmana do
alias Inmana.Restaurants.Create, as: RestaurantCreate
alias Inmana.Supplies.Create, as: SupplyCreate
alias Inmana.Supplies.Get, as: SupplyGet
defdelegate create_restaurant(params), to: RestaurantCreate, as: :call
defdelegate create_supply(params), to: SupplyCreate, as: :call
defdelegat... | 33.545455 | 72 | 0.780488 |
217c2e497a36321ec938f162a0955646fed6b36b | 1,502 | ex | Elixir | lib/grizzly/zwave/commands/version_command_class_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/version_command_class_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/version_command_class_report.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.VersionCommandClassReport do
@moduledoc """
Reports the command class version for a device
Params:
* `:command_class` - the name of the command class the report is for
(required)
* `:version` - the version of the command class in the report (required)
"""
@beh... | 26.350877 | 86 | 0.642477 |
217c57a596b5a34d5bc4869e611c26e082ebd414 | 1,176 | ex | Elixir | test/support/conn_case.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | 2 | 2021-03-10T04:15:17.000Z | 2021-05-10T23:54:35.000Z | test/support/conn_case.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | defmodule HealthWeb.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... | 28.682927 | 68 | 0.72534 |
217c7951ae806c04da60163097f72fac2237adeb | 1,477 | exs | Elixir | config/dev.exs | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 3 | 2020-05-01T17:14:23.000Z | 2021-05-15T16:22:43.000Z | config/dev.exs | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"MIT"
] | 13 | 2019-08-14T15:44:24.000Z | 2021-09-01T20:17:55.000Z | config/dev.exs | solomonhawk/gifs-to-gifs-reborn | fbe829a73bba45dc015eb091e9016d48a422bd9d | [
"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 webpack to recompile .js and .css sources.
config :ui, Ui.Endpoint,
http: [port: 4000],
debug_er... | 25.465517 | 56 | 0.645227 |
217cf394cc940061706ee0d82797305c55e77512 | 1,764 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_surrogate_type.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_surrogate_type.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_surrogate_type.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36 | 121 | 0.781746 |
217cfe63e5747c90d180115fa060e2d16bb727ed | 3,117 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_result.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_result.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... | 48.703125 | 303 | 0.737568 |
217d05e06c004f79cd1a0008ff41bff41ef331b4 | 75 | ex | Elixir | web/views/layout_view.ex | tsara27/collab-x-phoenix | 828f8fbdcf853a43e096a42dc2f003cf443eb792 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | tsara27/collab-x-phoenix | 828f8fbdcf853a43e096a42dc2f003cf443eb792 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | tsara27/collab-x-phoenix | 828f8fbdcf853a43e096a42dc2f003cf443eb792 | [
"MIT"
] | null | null | null | defmodule CollabXPhoenix.LayoutView do
use CollabXPhoenix.Web, :view
end
| 18.75 | 38 | 0.826667 |
217d1c7b5adfbaae12908207428395b2ca8721f0 | 481 | ex | Elixir | prism/lib/prism_web/router.ex | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | 5 | 2019-10-19T16:44:47.000Z | 2020-05-05T16:33:58.000Z | prism/lib/prism_web/router.ex | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | null | null | null | prism/lib/prism_web/router.ex | we-write-code/prism-backend | d09c753d1e3343e15823c84d0137f8d1e7a33556 | [
"Apache-2.0"
] | null | null | null | defmodule PrismWeb.Router do
use PrismWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", PrismWeb do
pipe_throug... | 17.814815 | 39 | 0.66736 |
217d2d4ef3b988f30a170a7387cce98ae00cb328 | 4,820 | ex | Elixir | lib/logger_json_file_backend.ex | guiyanzhong/elixir_logger_json_file_backend | 790e302d23f46b62dcd01d441649745e71718e1e | [
"0BSD"
] | null | null | null | lib/logger_json_file_backend.ex | guiyanzhong/elixir_logger_json_file_backend | 790e302d23f46b62dcd01d441649745e71718e1e | [
"0BSD"
] | null | null | null | lib/logger_json_file_backend.ex | guiyanzhong/elixir_logger_json_file_backend | 790e302d23f46b62dcd01d441649745e71718e1e | [
"0BSD"
] | null | null | null | defmodule LoggerJSONFileBackend do
@behaviour :gen_event
@macro_env_fields [:pid] ++ Map.keys(%Macro.Env{})
@formatter if Version.compare(System.version(), "1.6.0") == :lt, do: Logger.Utils, else: Logger.Formatter
@impl :gen_event
def init({__MODULE__, name}) do
{:ok, configure(name, [])}
end
@impl... | 31.710526 | 191 | 0.620954 |
217d30be2d7633d687bb32f0650faf574beac864 | 2,149 | ex | Elixir | clients/translate/lib/google_api/translate/v2/model/translations_resource.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/translate/lib/google_api/translate/v2/model/translations_resource.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/translate/lib/google_api/translate/v2/model/translations_resource.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.796296 | 299 | 0.74872 |
217d4e572c3f662a0f3a7f3c2e4fbb87ee82da0c | 466 | exs | Elixir | test/support/session_helper.exs | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 130 | 2016-06-21T07:58:46.000Z | 2022-01-01T21:45:23.000Z | test/support/session_helper.exs | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 50 | 2016-06-29T16:01:42.000Z | 2019-08-07T21:33:49.000Z | test/support/session_helper.exs | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 20 | 2016-07-02T11:37:33.000Z | 2018-10-26T19:12:41.000Z | defmodule Openmaize.SessionHelper do
@moduledoc """
Session helper for testing purposes.
"""
use Plug.Test
@secret String.duplicate("abcdef0123456789", 8)
@default_opts [store: :cookie, key: "spameggs", signing_salt: "signing salt", log: false]
@signing_opts Plug.Session.init(@default_opts)
def sign_... | 24.526316 | 91 | 0.714592 |
217d655e66129f26a784dcc48cbdec473d2a8ea2 | 1,490 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/routers_preview_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/routers_preview_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/routers_preview_response.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 ... | 31.702128 | 109 | 0.744295 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.