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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab7d41a5c5277301f4087e39f95534236bae1b10 | 3,843 | exs | Elixir | test/turret_web/controllers/user_reset_password_controller_test.exs | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 1 | 2021-02-03T23:34:04.000Z | 2021-02-03T23:34:04.000Z | test/turret_web/controllers/user_reset_password_controller_test.exs | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | 58 | 2021-02-16T10:16:08.000Z | 2022-03-07T10:57:32.000Z | test/turret_web/controllers/user_reset_password_controller_test.exs | rosswilson/turret-elixir | effbc34a14e95d73db2075c66fe78f8432f83977 | [
"MIT"
] | null | null | null | defmodule TurretWeb.UserResetPasswordControllerTest do
use TurretWeb.ConnCase, async: true
alias Turret.Accounts
alias Turret.Repo
import Turret.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/reset_password" do
test "renders the reset password page", %{conn: conn} do... | 33.710526 | 91 | 0.63362 |
ab7d42c1c7015349c0a6096ab139a0a0f7c1fbee | 782 | exs | Elixir | config/config.exs | bbc/origin_simulator | 0e06c04043fe84a3e02836581829d5dd11095433 | [
"MIT"
] | 11 | 2019-02-03T21:46:28.000Z | 2020-02-03T21:05:21.000Z | config/config.exs | bbc/origin_simulator | 0e06c04043fe84a3e02836581829d5dd11095433 | [
"MIT"
] | 10 | 2019-06-07T15:54:43.000Z | 2021-04-19T08:00:24.000Z | config/config.exs | bbc/origin_simulator | 0e06c04043fe84a3e02836581829d5dd11095433 | [
"MIT"
] | 5 | 2019-07-25T17:48:04.000Z | 2021-02-23T16:43:21.000Z | 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 parent project. For this reason,
# if you want to provide default values for your application for
# 3rd-party users, it should ... | 28.962963 | 70 | 0.741688 |
ab7d77b76ac2e7417892d691443ce2c45b9082f8 | 2,811 | exs | Elixir | exercises/concept/rpg-character-sheet/test/rpg/character_sheet_test.exs | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 200 | 2019-12-12T13:50:59.000Z | 2022-02-20T22:38:42.000Z | exercises/concept/rpg-character-sheet/test/rpg/character_sheet_test.exs | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 1,938 | 2019-12-12T08:07:10.000Z | 2021-01-29T12:56:13.000Z | exercises/concept/rpg-character-sheet/test/rpg/character_sheet_test.exs | herminiotorres/exercism-elixir | 0464a968f3e37680b2bf34868b889d6f8de5581e | [
"MIT"
] | 239 | 2019-12-12T14:09:08.000Z | 2022-03-18T00:04:07.000Z | defmodule RPG.CharacterSheetTest do
use ExUnit.Case
import ExUnit.CaptureIO
describe "welcome/0" do
# @tag :pending
test "it prints a welcome message" do
io =
capture_io(fn ->
assert RPG.CharacterSheet.welcome() == :ok
end)
assert io == "Welcome! Let's fill out your... | 23.425 | 77 | 0.531483 |
ab7d9d829429ccb97bdbd9cc19cc74cf70d49977 | 1,010 | ex | Elixir | test/support/channel_case.ex | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | slurmulon/hone | 9cc817fef06fbec564b18a11faa472ecf902aa62 | [
"MIT"
] | null | null | null | defmodule Hone.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be asy... | 22.954545 | 66 | 0.692079 |
ab7e197c420946ff7db77bf9d24f728cf350eb2c | 348 | ex | Elixir | lib/strava/model/smooth_velocity_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | lib/strava/model/smooth_velocity_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | lib/strava/model/smooth_velocity_stream.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.SmoothVelocityStream do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:original_size,
:resolution,
:series_type,
:data
]
@type t :: %__MODULE__{
original_size: integer(),
resolution: String.t(),
series_type: String.t(),
da... | 16.571429 | 40 | 0.557471 |
ab7e2bd56b9d7417b6333d0a82949cdac80fef02 | 1,115 | exs | Elixir | test/phoenix/code_reloader_test.exs | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | test/phoenix/code_reloader_test.exs | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | test/phoenix/code_reloader_test.exs | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | defmodule Phoenix.CodeReloaderTest do
use ExUnit.Case, async: true
use RouterHelper
defmodule Endpoint do
def config(:reloadable_paths) do
["web"]
end
end
test "task touches files" do
assert Mix.Tasks.Compile.Phoenix.run([]) == :noop
end
test "reload!/1 sends recompilation through Gen... | 26.547619 | 69 | 0.654709 |
ab7e47631421b527f961e4e8bd0dfb6776bab52f | 603 | exs | Elixir | test/ed_explorer/web/views/error_view_test.exs | lee-dohm/ed-explorer | 879a883a8143531bc657fa74e55f72ed36b3547e | [
"MIT"
] | 1 | 2020-01-26T18:07:51.000Z | 2020-01-26T18:07:51.000Z | test/ed_explorer/web/views/error_view_test.exs | lee-dohm/ed-explorer | 879a883a8143531bc657fa74e55f72ed36b3547e | [
"MIT"
] | null | null | null | test/ed_explorer/web/views/error_view_test.exs | lee-dohm/ed-explorer | 879a883a8143531bc657fa74e55f72ed36b3547e | [
"MIT"
] | null | null | null | defmodule EdExplorer.Web.ErrorViewTest do
use EdExplorer.Web.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(EdExplorer.Web.ErrorView, "404.html", []) ==
"Page not found"
end
test ... | 27.409091 | 72 | 0.686567 |
ab7ecfeb8d59891d53cc02cd2a8d2ca2fe0a8eef | 1,564 | ex | Elixir | lib/digital_ocean/domain.ex | kianmeng/digital-ocean-elixir | eff6fd1c621ab51908edad731794b0ef2db1cac1 | [
"MIT"
] | 5 | 2020-09-20T19:35:32.000Z | 2021-12-15T08:57:22.000Z | lib/digital_ocean/domain.ex | kianmeng/digital-ocean-elixir | eff6fd1c621ab51908edad731794b0ef2db1cac1 | [
"MIT"
] | 8 | 2020-09-25T14:30:03.000Z | 2022-02-21T18:04:48.000Z | lib/digital_ocean/domain.ex | kianmeng/digital-ocean-elixir | eff6fd1c621ab51908edad731794b0ef2db1cac1 | [
"MIT"
] | 4 | 2020-09-25T14:26:11.000Z | 2021-08-09T06:43:18.000Z | defmodule DigitalOcean.Domain do
alias DigitalOcean.{ Operation }
@doc """
Create a domain.
## Examples
iex> DigitalOcean.Domain.create(
...> name: "example.com",
...> ip_address: "1.2.3.4"
...> ) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }
"""
@spec crea... | 22.666667 | 78 | 0.580563 |
ab7ed17feb3bcbec896ca8d998795103c3a590a7 | 330 | exs | Elixir | test/futaba_web/live/page_live_test.exs | sean-clayton/futaba | b7cdcb0ce4192f52a631f581ddee5a4f1c8fcd4a | [
"Unlicense"
] | null | null | null | test/futaba_web/live/page_live_test.exs | sean-clayton/futaba | b7cdcb0ce4192f52a631f581ddee5a4f1c8fcd4a | [
"Unlicense"
] | null | null | null | test/futaba_web/live/page_live_test.exs | sean-clayton/futaba | b7cdcb0ce4192f52a631f581ddee5a4f1c8fcd4a | [
"Unlicense"
] | null | null | null | defmodule FutabaWeb.PageLiveTest do
use FutabaWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Welcome to Phoenix!"
assert render(page_live) =~ "Welcome to Phoenix!"
... | 27.5 | 60 | 0.724242 |
ab7ee6c2e7b4e1ebbae83baf184c63f57b03adb8 | 1,573 | ex | Elixir | test/support/data_case.ex | sparrell/quizquadaminos | 6388252b7c32aa4101486cbf45d0d57d4e3a79da | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | test/support/data_case.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | test/support/data_case.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule Quadquizaminos.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes do... | 28.6 | 77 | 0.697394 |
ab7f0bf7346993be32b4a2c975c320dc14e6ca60 | 114 | exs | Elixir | test/hoover_test.exs | amorphid/hoover-elixir | f826676b804bc050e5f6a28c79848a764de30022 | [
"BSD-2-Clause"
] | null | null | null | test/hoover_test.exs | amorphid/hoover-elixir | f826676b804bc050e5f6a28c79848a764de30022 | [
"BSD-2-Clause"
] | null | null | null | test/hoover_test.exs | amorphid/hoover-elixir | f826676b804bc050e5f6a28c79848a764de30022 | [
"BSD-2-Clause"
] | null | null | null | defmodule HooverTest do
use ExUnit.Case
doctest Hoover
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.666667 | 23 | 0.666667 |
ab7f1169568d69b494e1e4f6221e7213ae64b3b0 | 10,418 | ex | Elixir | lib/tablespoon/protocol/ntcip_1211_extended.ex | paulswartz/tablespoon | 3637ee22cce16755fa50461058a079fa18d33b1b | [
"MIT"
] | 2 | 2020-04-03T14:39:23.000Z | 2020-12-17T23:12:58.000Z | lib/tablespoon/protocol/ntcip_1211_extended.ex | mbta/tablespoon | 4303ad8498f3e619b081ffbd6892156e0214b61e | [
"MIT"
] | 107 | 2019-09-16T12:52:17.000Z | 2022-02-28T10:25:15.000Z | lib/tablespoon/protocol/ntcip_1211_extended.ex | mbta/tablespoon | 4303ad8498f3e619b081ffbd6892156e0214b61e | [
"MIT"
] | null | null | null | defmodule Tablespoon.Protocol.NTCIP1211Extended do
@moduledoc """
Implementation of the NTCIP 1211 protocol, with the extended prgPriorityRequest message.
The protocol is generally documented here:
https://www.ntcip.org/wp-content/uploads/2018/11/NTCIP1211-v0224j.pdf
It's built on top of SNMP version 1, doc... | 33.284345 | 96 | 0.629487 |
ab7f28c73d24ea51d22f880e78b816cdc8cdfa16 | 336 | ex | Elixir | test/support/data_case.ex | esl/sphinx | 2b514a713035512d80ab5d63f6945b1e11357b28 | [
"Apache-2.0"
] | 1 | 2021-03-11T23:23:34.000Z | 2021-03-11T23:23:34.000Z | test/support/data_case.ex | filipevarjao/sphinx | ef9e3296ed134a6dbc448654541facf5d0792574 | [
"Apache-2.0"
] | 6 | 2019-12-04T19:42:33.000Z | 2019-12-19T16:27:15.000Z | test/support/data_case.ex | filipevarjao/sphinx | ef9e3296ed134a6dbc448654541facf5d0792574 | [
"Apache-2.0"
] | 2 | 2019-12-12T14:48:17.000Z | 2019-12-18T22:28:45.000Z | defmodule Sphinx.Support.DataCase do
@moduledoc """
Module for using when want to test with database
"""
use ExUnit.CaseTemplate
setup tags do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Sphinx.Repo)
unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.mode(Sphinx.Repo, {:shared, self()})
end
... | 19.764706 | 68 | 0.681548 |
ab7f29d97430703f659aebd6e9dd43b838a79bee | 7,224 | ex | Elixir | lib/swoosh/adapters/amazon_ses.ex | nathf/swoosh | 9507d32e3c14f52ef37e10996f161898c0c11250 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/amazon_ses.ex | nathf/swoosh | 9507d32e3c14f52ef37e10996f161898c0c11250 | [
"MIT"
] | null | null | null | lib/swoosh/adapters/amazon_ses.ex | nathf/swoosh | 9507d32e3c14f52ef37e10996f161898c0c11250 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(:mimemail) do
defmodule Swoosh.Adapters.AmazonSES do
@moduledoc ~S"""
An adapter that sends email using the Amazon Simple Email Service Query API.
This email adapter makes use of the Amazon SES SendRawEmail action and generates
a SMTP style message containing the information to... | 31.272727 | 117 | 0.638427 |
ab7f6bea2dd9df999a02dfff02882d5ac0382f67 | 8,041 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/api/operations.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/api/operations.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/api/operations.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... | 45.948571 | 196 | 0.632633 |
ab7f717786898320159982d4c2d505dcc4c72560 | 12,104 | exs | Elixir | test/dune_quoted_test.exs | functional-rewire/dune | 9a7d3fd182e5b29e0bfb0b2a97daba468231546c | [
"MIT"
] | 58 | 2021-09-19T09:06:36.000Z | 2022-02-03T11:19:38.000Z | test/dune_quoted_test.exs | functional-rewire/dune | 9a7d3fd182e5b29e0bfb0b2a97daba468231546c | [
"MIT"
] | null | null | null | test/dune_quoted_test.exs | functional-rewire/dune | 9a7d3fd182e5b29e0bfb0b2a97daba468231546c | [
"MIT"
] | 1 | 2021-09-26T14:56:18.000Z | 2021-09-26T14:56:18.000Z | defmodule DuneQuotedTest do
use ExUnit.Case, async: true
import ExUnit.CaptureIO
alias Dune.{Success, Failure}
defmacrop dune(do: ast) do
escaped_ast = Macro.escape(ast)
quote do
unquote(escaped_ast) |> Dune.eval_quoted(timeout: 100)
end
end
describe "Dune authorized" do
test "sim... | 32.713514 | 118 | 0.51041 |
ab7f9f70374acbc9f528af527e1d01915f9b5b05 | 900 | ex | Elixir | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/update_history_property.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/update_history_property.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/update_history_property.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Storage.Model.UpdateHistoryProperty do
@moduledoc """
An update history of the ImmutabilityPolicy of a blob contain... | 25 | 94 | 0.691111 |
ab7fa65fd6a5864c13c5b4b30288525948a1d08d | 125 | exs | Elixir | test/iso_8583/message/mti_test.exs | zemuldo/iso_8583_elixir | bc8782a20cd9bc5fa78c9c57338a68f459f9929c | [
"MIT"
] | 7 | 2020-03-02T07:12:49.000Z | 2022-03-15T02:03:30.000Z | test/iso_8583/message/mti_test.exs | zemuldo/iso_8583_elixir | bc8782a20cd9bc5fa78c9c57338a68f459f9929c | [
"MIT"
] | 1 | 2020-10-21T05:19:44.000Z | 2020-10-24T20:11:47.000Z | test/iso_8583/message/mti_test.exs | zemuldo/iso_8583_elixir | bc8782a20cd9bc5fa78c9c57338a68f459f9929c | [
"MIT"
] | 2 | 2020-03-02T07:14:50.000Z | 2022-03-15T17:18:57.000Z | defmodule ISO8583.Test.Message.MTITest do
@moduledoc false
use ExUnit.Case
alias ISO8583.Message.MTI
doctest MTI
end
| 17.857143 | 41 | 0.784 |
ab7fe20f6578d2394cfd86a86774851e7c2e72bd | 1,373 | ex | Elixir | apps/calgy/test/support/data_case.ex | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | 1 | 2017-09-18T08:54:46.000Z | 2017-09-18T08:54:46.000Z | apps/calgy/test/support/data_case.ex | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | null | null | null | apps/calgy/test/support/data_case.ex | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | null | null | null | defmodule Calgy.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test r... | 25.425926 | 77 | 0.677349 |
ab800f718e1774d460b7de6324f8be3d7edc1b72 | 6,323 | exs | Elixir | test/empex_cookbook_web/controllers/article_controller_test.exs | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | 4 | 2019-02-11T12:15:36.000Z | 2021-03-22T16:23:47.000Z | test/empex_cookbook_web/controllers/article_controller_test.exs | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | null | null | null | test/empex_cookbook_web/controllers/article_controller_test.exs | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | null | null | null | defmodule EmpexCookbookWeb.ArticleControllerTest do
use EmpexCookbookWeb.ConnCase
import EmpexCookbook.Factory
@create_attrs %{body: "some body", description: "some description", title: "some title"}
@update_attrs %{
body: "some updated body",
description: "some updated description",
title: "some ... | 34.933702 | 100 | 0.565554 |
ab8045500b45a551ee1605435252d9a76870c083 | 142,736 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/api/organizations.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/api/organizations.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/api/organizations.ex | mopp/elixir-google-api | d496227d17600bccbdf8f6be9ad1b7e7219d7ec6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 50.365561 | 2,230 | 0.632076 |
ab8057f21fb53b65140ad577e9125e56402fbbbd | 1,476 | ex | Elixir | lib/erlnote_web/endpoint.ex | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | lib/erlnote_web/endpoint.ex | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | 1 | 2019-11-02T13:46:12.000Z | 2019-11-02T13:46:12.000Z | lib/erlnote_web/endpoint.ex | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | defmodule ErlnoteWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :erlnote
use Absinthe.Phoenix.Endpoint
socket "/socket", ErlnoteWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.di... | 27.333333 | 69 | 0.702575 |
ab8082433ec49e537ba556f172aefbcb2524ff4b | 2,347 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_common_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_common_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_common_metadata.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 ... | 37.253968 | 122 | 0.710695 |
ab808d841724ade1eaf590d38ec55a31e2b22571 | 496 | ex | Elixir | web/router.ex | zackehh/phoenix_mongo | 3845d0ce9f13b6c8e4a9a3ac6d63a40a2ab7f413 | [
"MIT"
] | 3 | 2015-12-12T04:52:21.000Z | 2017-06-04T09:18:08.000Z | web/router.ex | iwhitfield/phoenix_mongo | 3845d0ce9f13b6c8e4a9a3ac6d63a40a2ab7f413 | [
"MIT"
] | 1 | 2015-11-19T04:47:26.000Z | 2015-11-19T04:47:26.000Z | web/router.ex | iwhitfield/phoenix_mongo | 3845d0ce9f13b6c8e4a9a3ac6d63a40a2ab7f413 | [
"MIT"
] | 2 | 2015-09-29T05:34:22.000Z | 2015-09-29T05:35:36.000Z | defmodule PhoenixMongo.Router do
use PhoenixMongo.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", PhoenixMongo do
pipe_through :browser # Use the ... | 19.076923 | 57 | 0.675403 |
ab80a0bddaead9f8e1cffc4374859c551463ad66 | 2,400 | exs | Elixir | test/raxx/static_test.exs | CrowdHailer/raxx_static | ef0e0873a4c19fec25a3b773e446ef5a18ddc02c | [
"Apache-2.0"
] | 5 | 2017-11-27T22:07:40.000Z | 2019-05-28T08:17:13.000Z | test/raxx/static_test.exs | CrowdHailer/raxx_static | ef0e0873a4c19fec25a3b773e446ef5a18ddc02c | [
"Apache-2.0"
] | 4 | 2017-12-06T19:25:21.000Z | 2019-05-02T13:14:00.000Z | test/raxx/static_test.exs | CrowdHailer/raxx_static | ef0e0873a4c19fec25a3b773e446ef5a18ddc02c | [
"Apache-2.0"
] | 1 | 2019-02-06T13:36:54.000Z | 2019-02-06T13:36:54.000Z | defmodule Raxx.StaticTest do
use ExUnit.Case
defmodule MyApp do
use Raxx.SimpleServer
@impl Raxx.SimpleServer
def handle_request(_request, _state) do
response(:no_content)
end
end
@static_setup Raxx.Static.setup(source: Path.join(__DIR__, "public"))
setup %{} do
stack = Raxx.Stac... | 28.571429 | 80 | 0.656667 |
ab80af83390f567f2829286cf3e288e81d551d2d | 2,382 | ex | Elixir | clients/books/lib/google_api/books/v1/model/series_series_series_subscription_release_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/series_series_series_subscription_release_info.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/books/lib/google_api/books/v1/model/series_series_series_subscription_release_info.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... | 36.646154 | 146 | 0.74895 |
ab8102bec7e51f811aa56cb9ef591a64ada9f010 | 1,175 | exs | Elixir | clients/machine_learning/config/config.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/config/config.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/config/config.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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... | 37.903226 | 73 | 0.763404 |
ab81253b07dfc1be5d25580d8cb49e644b1455bd | 27,072 | ex | Elixir | clients/api_keys/lib/google_api/api_keys/v2/api/projects.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/api_keys/lib/google_api/api_keys/v2/api/projects.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/api_keys/lib/google_api/api_keys/v2/api/projects.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.246073 | 458 | 0.617095 |
ab8159a10468382a8a948f51dd62f73fedc75e52 | 15,454 | ex | Elixir | clients/storage/lib/google_api/storage/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/api/projects.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/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... | 41.767568 | 409 | 0.674 |
ab81644cd108d88ba0ec02e586e1a5d812032476 | 2,425 | ex | Elixir | lib/currency_conversion.ex | strzibny/currency-conversion | 057ad0f4a6e9169db55ae52a06dc22675644d467 | [
"MIT"
] | null | null | null | lib/currency_conversion.ex | strzibny/currency-conversion | 057ad0f4a6e9169db55ae52a06dc22675644d467 | [
"MIT"
] | null | null | null | lib/currency_conversion.ex | strzibny/currency-conversion | 057ad0f4a6e9169db55ae52a06dc22675644d467 | [
"MIT"
] | null | null | null | defmodule CurrencyConversion do
@moduledoc """
Module to Convert Currencies.
"""
alias CurrencyConversion.Rates
alias CurrencyConversion.UpdateWorker
@doc """
Convert from currency A to B.
### Example
iex> CurrencyConversion.convert(Money.new(7_00, :CHF), :USD, %CurrencyConversion.Rates{base: ... | 33.680556 | 104 | 0.642062 |
ab81803322713ff1cf8a030ca921fee1e4648b36 | 314 | exs | Elixir | priv/repo/migrations/20211106135424_add_payment_toggles.exs | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211106135424_add_payment_toggles.exs | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211106135424_add_payment_toggles.exs | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | defmodule Glimesh.Repo.Migrations.AddPaymentToggles do
use Ecto.Migration
def change do
alter table(:channels) do
add :show_subscribe_button, :boolean, default: true
add :show_donate_button, :boolean, default: true
add :show_streamloots_button, :boolean, default: true
end
end
end
| 26.166667 | 59 | 0.732484 |
ab8185ee8d55cb2cc4fefdbbb0af60773eac4bad | 405 | ex | Elixir | lib/grapevine/contact.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | lib/grapevine/contact.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | lib/grapevine/contact.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Grapevine.Contact do
@moduledoc """
Contact context
"""
alias Grapevine.Emails
alias Grapevine.Mailer
def send(params) do
with {:ok, name} <- Map.fetch(params, "name"),
{:ok, email} <- Map.fetch(params, "email"),
{:ok, body} <- Map.fetch(params, "body") do
email = Ema... | 22.5 | 52 | 0.619753 |
ab819c7c0b6e1c771c18e4ea41295413b4033f5e | 2,022 | ex | Elixir | lib/horde/supervisor_supervisor.ex | smaximov/horde | 52b8e7f996b0508f0ecf195bfa24f1dc1a246e30 | [
"MIT"
] | 3 | 2019-11-11T17:00:04.000Z | 2019-11-20T22:01:06.000Z | lib/horde/supervisor_supervisor.ex | evadne/horde | 5778e243682850131ac6bec94e75a301d44a102b | [
"MIT"
] | null | null | null | lib/horde/supervisor_supervisor.ex | evadne/horde | 5778e243682850131ac6bec94e75a301d44a102b | [
"MIT"
] | null | null | null | defmodule Horde.SupervisorSupervisor do
@moduledoc false
use Supervisor
def init(options) do
root_name = get_root_name(options)
children = [
{DeltaCrdt, delta_crdt_options(options)},
{Horde.SupervisorImpl, Keyword.put(options, :name, root_name)},
{Horde.GracefulShutdownManager,
... | 30.636364 | 96 | 0.697824 |
ab81b54ecf0efc251bc4de51cd81297cdb0bd2fb | 1,646 | ex | Elixir | clients/container/lib/google_api/container/v1/model/cidr_block.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/cidr_block.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/cidr_block.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... | 32.27451 | 117 | 0.736938 |
ab81e36dfd84b49444db25d7cc7b400a793edfdd | 962 | ex | Elixir | Project4/Phoenix_files/room_channel.ex | Shreyassreedhara/DOS | a63d36d1ae743c9ec00c10a8013f96d6e397f06f | [
"MIT"
] | 6 | 2019-08-23T00:37:51.000Z | 2021-04-10T19:47:05.000Z | Project4/Phoenix_files/room_channel.ex | Shreyassreedhara/Distributed-Operating-System-Principles | a63d36d1ae743c9ec00c10a8013f96d6e397f06f | [
"MIT"
] | null | null | null | Project4/Phoenix_files/room_channel.ex | Shreyassreedhara/Distributed-Operating-System-Principles | a63d36d1ae743c9ec00c10a8013f96d6e397f06f | [
"MIT"
] | 3 | 2020-09-18T20:45:07.000Z | 2020-10-30T16:51:35.000Z | defmodule TestWeb.RoomChannel do
use Phoenix.Channel
def join("room:lobby", _message, socket) do
{:ok, socket}
end
def join(_room, _params, _socket) do
{:error, %{reason: "you can only join the lobby"}}
end
def handle_in("new_message", body, socket) do
# broadc... | 27.485714 | 58 | 0.596674 |
ab81f1da637cbb0c2b43e09007b803ae63e98bb3 | 233 | exs | Elixir | ttrack-backend/config/releases.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | ttrack-backend/config/releases.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | ttrack-backend/config/releases.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | import Config
config :ttrack, TtrackWeb.Endpoint,
server: true,
http: [port: {:system, "PORT"}], # Needed for Phoenix 1.2 and 1.4. Doesn't hurt for 1.3.
url: [host: System.get_env("APP_NAME") <> ".gigalixirapp.com", port: 80]
| 33.285714 | 90 | 0.669528 |
ab81f475ea3bce6ebe00c4557df2fc90434a275b | 14,039 | ex | Elixir | lib/axon/losses.ex | solanav/axon | d33c79b63a49f5096d9a68fd92d35edd9fb56102 | [
"Apache-2.0"
] | null | null | null | lib/axon/losses.ex | solanav/axon | d33c79b63a49f5096d9a68fd92d35edd9fb56102 | [
"Apache-2.0"
] | null | null | null | lib/axon/losses.ex | solanav/axon | d33c79b63a49f5096d9a68fd92d35edd9fb56102 | [
"Apache-2.0"
] | null | null | null | defmodule Axon.Losses do
@moduledoc """
Loss functions.
Loss functions evaluate predictions with respect to true
data, often to measure the divergence between a model's
representation of the data-generating distribution and the
true representation of the data-generating distribution.
Each loss function ... | 24.080617 | 107 | 0.529667 |
ab8200fe263fab08eab3ec455895a8df811c6b22 | 1,150 | exs | Elixir | config/config.exs | rstacruz/expug | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 89 | 2016-06-27T07:06:23.000Z | 2022-03-15T18:21:50.000Z | config/config.exs | rstacruz/exslim | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 11 | 2016-07-28T17:12:39.000Z | 2021-01-22T02:54:58.000Z | config/config.exs | rstacruz/exslim | 683eb34abd9465f42d42cbe359fa9ae848f9ec3d | [
"MIT"
] | 4 | 2016-07-26T15:50:35.000Z | 2019-09-16T22:49:21.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... | 34.848485 | 73 | 0.750435 |
ab821282e108773791bc002d718e62db44586da5 | 3,881 | ex | Elixir | clients/data_migration/lib/google_api/data_migration/v1beta1/model/connection_profile.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_migration/lib/google_api/data_migration/v1beta1/model/connection_profile.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_migration/lib/google_api/data_migration/v1beta1/model/connection_profile.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... | 52.445946 | 292 | 0.707807 |
ab823666fc8e794febf7b6f6bb9a7e752096c461 | 3,076 | ex | Elixir | lib/automata/core/automaton/types/graphical_models/behavior_tree/components/action.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | 150 | 2020-02-04T15:10:52.000Z | 2022-02-19T15:33:17.000Z | lib/automata/core/automaton/types/graphical_models/behavior_tree/components/action.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | 31 | 2020-02-09T01:37:23.000Z | 2020-05-21T01:50:14.000Z | lib/automata/core/automaton/types/graphical_models/behavior_tree/components/action.ex | venomnert/automata | 26b9bf3cb57fa8bc152fac8992ddcfe07c6e07a9 | [
"Apache-2.0"
] | 8 | 2020-02-06T04:42:20.000Z | 2022-01-21T00:21:20.000Z | defmodule Automaton.Types.BT.Action do
@moduledoc """
An action is a leaf in the tree.
It operates on the world as a component of a composite(control) node.
Actions can alter the system configuration, returning one of three possible
state values: Success, Failure, or Running. Conditions cannot alter t... | 27.464286 | 79 | 0.502276 |
ab824b0e0425b52b5829830b952bb5d1190f96f4 | 12,164 | ex | Elixir | lib/rubber_band/client.ex | tlux/rubberband | bece85cf8049ba487bba1d5df0906f6fbfa146eb | [
"MIT"
] | null | null | null | lib/rubber_band/client.ex | tlux/rubberband | bece85cf8049ba487bba1d5df0906f6fbfa146eb | [
"MIT"
] | null | null | null | lib/rubber_band/client.ex | tlux/rubberband | bece85cf8049ba487bba1d5df0906f6fbfa146eb | [
"MIT"
] | null | null | null | defmodule RubberBand.Client do
@moduledoc """
A low-level client that provides functions to retrieve and manage data from
Elasticsearch.
## Usage
You can either call the client directly if you have a config object.
iex> cfg = %RubberBand.Client.Config{base_url: "http://localhost:9201"}
...> Rub... | 29.031026 | 81 | 0.643045 |
ab8253a18359aaa1ea2cdc54fd4b328203022111 | 18,445 | ex | Elixir | lib/aws/generated/support.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/support.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/support.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Support do
@moduledoc """
AWS Support
The *AWS Support API Reference* is intended for programmers who need detailed
information about the AWS Support operations and data types.
You can... | 42.995338 | 161 | 0.752236 |
ab827d64749ce6ef0ff482a5481084715575863e | 2,234 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/bulk_list_line_item_assigned_targeting_options_response.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/bulk_list_line_item_assigned_targeting_options_response.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/bulk_list_line_item_assigned_targeting_options_response.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"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.848485 | 168 | 0.745748 |
ab82f2ccd3bc100ea393cc9be365e13fdac8980c | 1,998 | ex | Elixir | lib/bamboo/attachment.ex | Raulkumar/bamboo | 0fcff1bf61e595eb821bc691ed9370b6a092afbf | [
"MIT"
] | 1,845 | 2016-03-29T23:36:36.000Z | 2022-03-31T19:23:38.000Z | lib/bamboo/attachment.ex | Raulkumar/bamboo | 0fcff1bf61e595eb821bc691ed9370b6a092afbf | [
"MIT"
] | 407 | 2016-03-29T14:55:19.000Z | 2022-02-02T13:53:50.000Z | lib/bamboo/attachment.ex | Raulkumar/bamboo | 0fcff1bf61e595eb821bc691ed9370b6a092afbf | [
"MIT"
] | 361 | 2016-03-31T13:33:22.000Z | 2022-02-25T12:38:43.000Z | defmodule Bamboo.Attachment do
@moduledoc """
"""
defstruct filename: nil, content_type: nil, path: nil, data: nil, content_id: nil
@type t :: %__MODULE__{
path: nil | String.t(),
filename: nil | String.t(),
content_type: nil | String.t(),
data: nil | binary(),
... | 30.272727 | 135 | 0.64965 |
ab8308f2b544d4f72b7f276d00d4e77e1fdf258a | 446 | ex | Elixir | lib/kantele/character/events/inventory_event.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/kantele/character/events/inventory_event.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/kantele/character/events/inventory_event.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Kantele.Character.InventoryEvent do
use Kalevala.Character.Event
alias Kantele.Character.InventoryView
alias Kantele.World.Items
def list(conn, _params) do
item_instances =
Enum.map(conn.character.inventory, fn item_instance ->
%{item_instance | item: Items.get!(item_instance.item_... | 24.777778 | 66 | 0.717489 |
ab8326c4f2362032418e4f7617ec1cc1a007a5ca | 1,390 | ex | Elixir | lib/ibu/stats/standing.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | 1 | 2021-01-18T17:39:05.000Z | 2021-01-18T17:39:05.000Z | lib/ibu/stats/standing.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | lib/ibu/stats/standing.ex | ericgoodwin/ibu | 949ce9baf4f794ed74c0903f43e25c1f9caec840 | [
"Apache-2.0"
] | null | null | null | defmodule IBU.Stats.Standing do
@moduledoc """
"""
@spec build(list, map) :: map
def build(seasons, data) do
seasons
|> Enum.map(&season_id_key_mapping/1)
|> build_standings(data, %{})
end
@spec build_standings([{any, any}], any, any) :: any
defp build_standings([], _data, acc), do: acc
d... | 23.965517 | 64 | 0.593525 |
ab834022d990d42829615e2ce90a3c5ceb0ca8b6 | 393 | ex | Elixir | lib/beam_toolbox_web/supervisor.ex | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | 1 | 2018-01-14T09:41:05.000Z | 2018-01-14T09:41:05.000Z | lib/beam_toolbox_web/supervisor.ex | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | null | null | null | lib/beam_toolbox_web/supervisor.ex | chrismccord/beam_toolbox_web | 8aaf37b073cc4ca619e33d3742b51335a8944201 | [
"MIT"
] | null | null | null | defmodule BeamToolboxWeb.Supervisor do
use Supervisor
def start_link do
:supervisor.start_link(__MODULE__, [])
end
def init([]) do
children = [
worker(BeamToolboxWeb.Synchronizer, [])
]
# See http://elixir-lang.org/docs/stable/Supervisor.Behaviour.html
# for other strategies and sup... | 21.833333 | 70 | 0.704835 |
ab83589997c4433af73437b028165e57efb2061b | 589 | ex | Elixir | apps/auth_engine/lib/api/get_scores.ex | dottogame/overdot | 95aee9621e7036ab4857f49c6a745aaca4d645c5 | [
"MIT"
] | null | null | null | apps/auth_engine/lib/api/get_scores.ex | dottogame/overdot | 95aee9621e7036ab4857f49c6a745aaca4d645c5 | [
"MIT"
] | null | null | null | apps/auth_engine/lib/api/get_scores.ex | dottogame/overdot | 95aee9621e7036ab4857f49c6a745aaca4d645c5 | [
"MIT"
] | null | null | null | defmodule Api.GetScores do
use Raxx.Server
@impl Raxx.Server
def handle_request(req, state) do
[_, entry_id] = req.path
serialized_entries =
state.score_db
|> Couchdb.Connector.Reader.get(entry_id)
|> filter_scores()
|> Poison.encode!()
response(:ok)
|> set_header("conte... | 19.633333 | 53 | 0.633277 |
ab8390b0136f2fe0b6b6a457db00d462c1170208 | 17,322 | exs | Elixir | lib/elixir/test/elixir/kernel/impl_test.exs | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/elixir/test/elixir/kernel/impl_test.exs | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/impl_test.exs | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ImplTest do
use ExUnit.Case
defp capture_err(fun) do
ExUnit.CaptureIO.capture_io(:stderr, fun)
end
defp purge(module) do
:code.purge(module)
:code.delete(module)
end
setup do
on_exit(fn -> purge(Kernel.ImplTest.ImplAttribu... | 32.317164 | 132 | 0.567025 |
ab839283dcc7064d8b50cadcd2c4324ed64c5ef8 | 74 | exs | Elixir | niex/test/niex_web/views/page_view_test.exs | rellen/elixir_nx_demo | a0334e5f3b76f09421bf9c5bcb4c85bb3e929aad | [
"Apache-2.0"
] | 1 | 2021-04-10T01:02:29.000Z | 2021-04-10T01:02:29.000Z | test/niex_web/views/page_view_test.exs | team-alembic/elixir_nx_demo | a0334e5f3b76f09421bf9c5bcb4c85bb3e929aad | [
"Apache-2.0"
] | null | null | null | test/niex_web/views/page_view_test.exs | team-alembic/elixir_nx_demo | a0334e5f3b76f09421bf9c5bcb4c85bb3e929aad | [
"Apache-2.0"
] | 1 | 2021-03-24T23:04:57.000Z | 2021-03-24T23:04:57.000Z | defmodule NiexWeb.PageViewTest do
use NiexWeb.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
ab839b7ee205c2e8db1de1e0892371fd8eacda35 | 443 | ex | Elixir | lib/amad/config.ex | junna9a1/elixir-amazon-product-advertising-client | 13d470e0236a33dcefcbd0232ebaa74661b3bf65 | [
"MIT"
] | null | null | null | lib/amad/config.ex | junna9a1/elixir-amazon-product-advertising-client | 13d470e0236a33dcefcbd0232ebaa74661b3bf65 | [
"MIT"
] | null | null | null | lib/amad/config.ex | junna9a1/elixir-amazon-product-advertising-client | 13d470e0236a33dcefcbd0232ebaa74661b3bf65 | [
"MIT"
] | null | null | null | defmodule Amad.Config do
@moduledoc """
The configuration used for authorizing and versioning API requests.
"""
defstruct AssociateTag: Application.get_env(:amad, :associate_tag),
AWSAccessKeyId: Application.get_env(:amad, :access_key),
Service: "AWSECommerceService",
Versi... | 34.076923 | 71 | 0.62754 |
ab83aa7202f2b1520866e7881d4dccb56695ec89 | 2,784 | exs | Elixir | mix.exs | conceivably/money | af00c5b2023054fecb36fe71547251f656d12fdb | [
"Apache-2.0"
] | null | null | null | mix.exs | conceivably/money | af00c5b2023054fecb36fe71547251f656d12fdb | [
"Apache-2.0"
] | null | null | null | mix.exs | conceivably/money | af00c5b2023054fecb36fe71547251f656d12fdb | [
"Apache-2.0"
] | null | null | null | defmodule Money.Mixfile do
use Mix.Project
@version "5.3.1"
def project do
[
app: :ex_money,
version: @version,
elixir: "~> 1.6",
name: "Money",
source_url: "https://github.com/kipcole9/money",
docs: docs(),
build_embedded: Mix.env() == :prod,
start_permanent:... | 26.514286 | 89 | 0.554957 |
ab83ef209bbdc8cf4bf05987110bbd21cbabc392 | 2,419 | ex | Elixir | clients/domains/lib/google_api/domains/v1alpha2/model/glue_record.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/domains/lib/google_api/domains/v1alpha2/model/glue_record.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/domains/lib/google_api/domains/v1alpha2/model/glue_record.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... | 45.641509 | 380 | 0.723026 |
ab84215586fc760933438c26b552413714fe1770 | 13,654 | ex | Elixir | lib/wallaby/chrome.ex | pay-it-off/wallaby | d957f0dbf807180a25b8663f8e549071714ddc5d | [
"MIT"
] | null | null | null | lib/wallaby/chrome.ex | pay-it-off/wallaby | d957f0dbf807180a25b8663f8e549071714ddc5d | [
"MIT"
] | 3 | 2021-08-18T20:39:11.000Z | 2022-01-11T22:45:06.000Z | lib/wallaby/chrome.ex | pay-it-off/wallaby | d957f0dbf807180a25b8663f8e549071714ddc5d | [
"MIT"
] | null | null | null | defmodule Wallaby.Chrome do
@moduledoc """
The Chrome driver uses [Chromedriver](https://sites.google.com/a/chromium.org/chromedriver/) to power Google Chrome and Chromium.
## Usage
Start a Wallaby Session using this driver with the following command:
```
{:ok, session} = Wallaby.start_session()
```
... | 29.051064 | 272 | 0.673649 |
ab845fcf1544d7216603d57b81b69b37270ed156 | 1,205 | ex | Elixir | services/fc_identity/lib/fc_identity/command_validator.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_identity/lib/fc_identity/command_validator.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_identity/lib/fc_identity/command_validator.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCIdentity.CommandValidator do
@moduledoc false
alias FCIdentity.UsernameStore
alias FCSupport.Validation
@email_regex ~r/^[A-Za-z0-9'._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/
@username_regex ~r/^[A-Za-z0-9'._%+-@]+$/
def username(_, cmd) do
validations = [
length: [min: 3, max: 120, al... | 22.735849 | 69 | 0.584232 |
ab846ace29b3fef6e4400bddaebe977e55ecdea5 | 331 | exs | Elixir | farmbot_core/test/asset/farmware_env_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/test/asset/farmware_env_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/test/asset/farmware_env_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Asset.FarmwareEnvTest do
use ExUnit.Case, async: true
alias FarmbotCore.Asset.FarmwareEnv
@expected_keys [:id, :key, :value]
test "render/1" do
result = FarmwareEnv.render(%FarmwareEnv{})
mapper = fn key -> assert Map.has_key?(result, key) end
Enum.map(@expected_keys, mapper)... | 25.461538 | 59 | 0.716012 |
ab847b68e0e19cd95ddbfc159e500ff8960d505b | 732 | ex | Elixir | lib/oauth_xyz/sample/model/transaction.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 2 | 2020-04-22T13:22:25.000Z | 2020-12-01T12:01:30.000Z | lib/oauth_xyz/sample/model/transaction.ex | ritou/elixir-oauth-xyz | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | 3 | 2019-12-05T01:32:09.000Z | 2019-12-09T01:15:32.000Z | lib/oauth_xyz/sample/model/transaction.ex | ritou/elixir-oauth-xyz-web | 110d4eadb16fa5c106ae0f6fad49c0424bdbf477 | [
"MIT"
] | null | null | null | defmodule OAuthXYZ.Sample.Model.Transaction do
use OAuthXYZ.Sample.Model
@type t :: %__MODULE__{}
@primary_key {:id, :string, autogenerate: false}
schema "sample_transactions" do
# TODO: use EctoEnum
field :status, :string
field :display, :string
field :interact, :string
field :user, :st... | 23.612903 | 83 | 0.691257 |
ab84801620ab517d924241c22dd784848be4ace6 | 3,373 | ex | Elixir | lib/extty.ex | jjcarstens/extty | f0096daca1e08fcb388f3e2403c67fa1b7a699cc | [
"Apache-2.0"
] | 13 | 2020-06-27T20:50:09.000Z | 2022-02-17T15:18:34.000Z | lib/extty.ex | jjcarstens/extty | f0096daca1e08fcb388f3e2403c67fa1b7a699cc | [
"Apache-2.0"
] | 1 | 2020-10-30T05:46:27.000Z | 2020-10-30T17:12:11.000Z | lib/extty.ex | jjcarstens/extty | f0096daca1e08fcb388f3e2403c67fa1b7a699cc | [
"Apache-2.0"
] | 2 | 2020-07-13T03:01:20.000Z | 2021-11-06T17:25:06.000Z | defmodule ExTTY do
use GenServer
require Record
require Logger
Record.defrecord(:tty_pty, Record.extract(:tty_pty, from: "src/tty_pty.hrl"))
@spec start_link(keyword()) :: GenServer.on_start()
def start_link(opts \\ []) do
{name, opts} = Keyword.pop(opts, :name)
GenServer.start_link(__MODULE__, op... | 26.984 | 98 | 0.640379 |
ab84b11d879408ba9d2f5b60b5476231afe376b1 | 3,025 | ex | Elixir | lib/solid.ex | mayankgureja/solid | 5f3de437d88d91859ac1233b075b47cca51dcf13 | [
"MIT"
] | 1 | 2021-11-16T19:10:02.000Z | 2021-11-16T19:10:02.000Z | lib/solid.ex | mayankgureja/solid | 5f3de437d88d91859ac1233b075b47cca51dcf13 | [
"MIT"
] | null | null | null | lib/solid.ex | mayankgureja/solid | 5f3de437d88d91859ac1233b075b47cca51dcf13 | [
"MIT"
] | null | null | null | defmodule Solid do
@moduledoc """
Main module to interact with Solid
iex> Solid.parse("{{ variable }}") |> elem(1) |> Solid.render(%{ "variable" => "value" }) |> to_string
"value"
"""
alias Solid.{Object, Tag, Context}
defmodule Template do
@enforce_keys [:parsed_template]
defstruct [:parsed_tem... | 27.008929 | 104 | 0.618512 |
ab84cabe4fa4c3144caea912b49a97318059f5c4 | 2,865 | ex | Elixir | clients/container/lib/google_api/container/v1/model/private_cluster_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/private_cluster_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/private_cluster_config.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... | 42.761194 | 145 | 0.717277 |
ab84d90c64d224046f5abcc8fda096aa30b81260 | 1,384 | ex | Elixir | lib/absinthe_error_payload/validation_message.ex | qwexvf/absinthe_error_payload | d75abe2234ac48eeea00c6e9b7444172e9901f79 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-09-30T04:40:13.000Z | 2021-09-30T04:40:13.000Z | lib/absinthe_error_payload/validation_message.ex | qwexvf/absinthe_error_payload | d75abe2234ac48eeea00c6e9b7444172e9901f79 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | lib/absinthe_error_payload/validation_message.ex | qwexvf/absinthe_error_payload | d75abe2234ac48eeea00c6e9b7444172e9901f79 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | defmodule AbsintheErrorPayload.ValidationMessage do
@moduledoc """
Stores validation message information.
## Fields
### :field
The input field that the error applies to. The field can be used to
identify which field the error message should be displayed next to in the
presentation layer.
If there are... | 32.186047 | 113 | 0.742052 |
ab84dd1efd10275fd3b67175480760bce73bd994 | 77 | ex | Elixir | lib/myxql/result.ex | Schultzer/myxql | fbcbcade9a63d310da1847699422ab11f28a9abb | [
"Apache-2.0"
] | null | null | null | lib/myxql/result.ex | Schultzer/myxql | fbcbcade9a63d310da1847699422ab11f28a9abb | [
"Apache-2.0"
] | null | null | null | lib/myxql/result.ex | Schultzer/myxql | fbcbcade9a63d310da1847699422ab11f28a9abb | [
"Apache-2.0"
] | null | null | null | defmodule MyXQL.Result do
defstruct [:columns, :rows, :last_insert_id]
end
| 19.25 | 46 | 0.766234 |
ab84dd712e594da4736a574bb87b836e4235c7cc | 2,151 | ex | Elixir | clients/datastream/lib/google_api/datastream/v1/model/list_private_connections_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/datastream/lib/google_api/datastream/v1/model/list_private_connections_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/datastream/lib/google_api/datastream/v1/model/list_private_connections_response.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... | 40.584906 | 189 | 0.739191 |
ab84e3ef0257057f6998b8a1bee4e7f0026003fa | 82 | exs | Elixir | test/matchers/doc_test.exs | adriankumpf/infer | a8a59683d6d8abe4be1addaa1067046509e23655 | [
"MIT"
] | 4 | 2022-01-12T10:53:47.000Z | 2022-03-15T13:55:38.000Z | test/matchers/doc_test.exs | adriankumpf/infer | a8a59683d6d8abe4be1addaa1067046509e23655 | [
"MIT"
] | 4 | 2022-01-09T13:30:27.000Z | 2022-03-11T15:22:16.000Z | test/matchers/doc_test.exs | adriankumpf/infer | a8a59683d6d8abe4be1addaa1067046509e23655 | [
"MIT"
] | 3 | 2022-01-09T13:16:12.000Z | 2022-03-10T11:43:10.000Z | defmodule Infer.DocTest do
use ExUnit.Case, async: true
doctest Infer.Doc
end
| 16.4 | 30 | 0.768293 |
ab84f099b16c33d5a6a53cf6282c5699452acc5d | 10,266 | exs | Elixir | test/plug/debugger_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | test/plug/debugger_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | test/plug/debugger_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | defmodule Plug.DebuggerTest do
use ExUnit.Case, async: true
use Plug.Test
import ExUnit.CaptureLog
defmodule Exception do
defexception plug_status: 403, message: "oops"
end
defmodule Router do
use Plug.Router
use Plug.Debugger, otp_app: :plug
plug :match
plug :dispatch
def call(... | 32.384858 | 95 | 0.627119 |
ab84f630708e3411401d12cfb00073ef414b91f0 | 1,421 | ex | Elixir | apps/re/lib/tags/tag.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re/lib/tags/tag.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/lib/tags/tag.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule Re.Tag do
@moduledoc """
Model for tag value
"""
use Ecto.Schema
import Ecto.Changeset
alias Re.{
ChangesetHelper,
Slugs
}
@primary_key {:uuid, :binary_id, autogenerate: false}
schema "tags" do
field :name, :string
field :name_slug, :string
field :category, :string, d... | 24.084746 | 74 | 0.665025 |
ab854c68bccb46fadf3d4ee5c29973a08657ac00 | 712 | ex | Elixir | survey/lib/survey/api/image_api.ex | RamanBut-Husaim/pragstudio-elixir | 21c723c933966798ae944ca2fd72697e9d0f2fa2 | [
"MIT"
] | null | null | null | survey/lib/survey/api/image_api.ex | RamanBut-Husaim/pragstudio-elixir | 21c723c933966798ae944ca2fd72697e9d0f2fa2 | [
"MIT"
] | null | null | null | survey/lib/survey/api/image_api.ex | RamanBut-Husaim/pragstudio-elixir | 21c723c933966798ae944ca2fd72697e9d0f2fa2 | [
"MIT"
] | null | null | null | defmodule Survey.ImageApi do
def query(id) when is_binary(id) do
get_url(id)
|> HTTPoison.get
|> handle_response
end
defp get_url(id) do
"https://api.myjson.com/bins/#{URI.encode(id)}"
end
defp handle_response({:ok, %HTTPoison.Response{status_code: 200, body: body}}) do
image_url =
... | 21.575758 | 87 | 0.623596 |
ab8570e55786c889f39802d705bfee4a03166872 | 1,070 | ex | Elixir | test/support/conn_case.ex | lujeremy/AlfredoChat | edabdcb3e077002e379efad841b17158b184ace4 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | lujeremy/AlfredoChat | edabdcb3e077002e379efad841b17158b184ace4 | [
"MIT"
] | 2 | 2021-03-09T12:33:57.000Z | 2021-05-10T02:49:27.000Z | test/support/conn_case.ex | lujeremy/BasicChat | edabdcb3e077002e379efad841b17158b184ace4 | [
"MIT"
] | null | null | null | defmodule AlfredoChatWeb.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, i... | 27.435897 | 73 | 0.723364 |
ab85a2b7df5575a49a50c668cc54bb9533ba32e5 | 539 | ex | Elixir | lib/hl7/2.1/segments/obx.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.1/segments/obx.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.1/segments/obx.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_1.Segments.OBX do
@moduledoc false
require Logger
alias HL7.V2_1.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_observation_simple: nil,
value_type: nil,
observation_identifier: DataTypes.Ce,
observation_sub_id: nil,
observation_results: ni... | 22.458333 | 43 | 0.673469 |
ab85b5fc25ef9d234c7503b115a87d6aab1c9715 | 1,807 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_async_annotate_file_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_async_annotate_file_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_async_annotate_file_response.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... | 34.75 | 183 | 0.771444 |
ab85ba326c9d0697c92964468785459371704b74 | 2,880 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/log_config.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/log_config.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/log_config.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... | 53.333333 | 1,089 | 0.747569 |
ab85c8fff2f6bdfc6e3e4b477388810b2deff6c4 | 1,811 | exs | Elixir | apps/admin_app/config/dev.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/admin_app/config/dev.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/admin_app/config/dev.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.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 :admin_app, AdminAppWeb.Endpoint,
http: [port:... | 30.694915 | 94 | 0.687465 |
ab85d8e4668990d49049d4d3a0d52df947310106 | 1,594 | ex | Elixir | clients/content/lib/google_api/content/v21/model/order_line_item_product_fee.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/order_line_item_product_fee.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/order_line_item_product_fee.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... | 31.88 | 101 | 0.722083 |
ab85e330cd2accbfa17920b7ee55347eec6762ec | 572 | exs | Elixir | 16-TicketRules/mix.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | 1 | 2020-12-02T01:34:06.000Z | 2020-12-02T01:34:06.000Z | 16-TicketRules/mix.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | null | null | null | 16-TicketRules/mix.exs | dvrensk/advent-of-code-2020 | 237e80da9958f37e51c0ac84da74bec5fec1f185 | [
"Unlicense"
] | null | null | null | defmodule TicketRules.MixProject do
use Mix.Project
def project do
[
app: :aoc,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_ap... | 19.724138 | 87 | 0.576923 |
ab85faac9176a09623c1638e5de2044c5e69cf8a | 37,768 | exs | Elixir | test/fun_with_flags_test.exs | chubarovNick/fun_with_flags | d567f2251a4fce91be7a479e8ceafbdc75eeaf47 | [
"MIT"
] | null | null | null | test/fun_with_flags_test.exs | chubarovNick/fun_with_flags | d567f2251a4fce91be7a479e8ceafbdc75eeaf47 | [
"MIT"
] | 1 | 2019-01-21T00:38:49.000Z | 2019-01-31T03:49:17.000Z | test/fun_with_flags_test.exs | sendle/fun_with_flags | c9c3fb7ab0f8f43c04a571c8ff486f5b049e97a1 | [
"MIT"
] | null | null | null | defmodule FunWithFlagsTest do
use FunWithFlags.TestCase, async: false
import FunWithFlags.TestUtils
import Mock
@moduletag :integration
doctest FunWithFlags
setup_all do
on_exit(__MODULE__, fn() ->
clear_test_db()
clear_cache()
end)
:ok
end
setup do
clear_test_db()
cle... | 41.366922 | 170 | 0.696118 |
ab8604c6e685cf34a0a26adb9e009773ccad3595 | 734 | ex | Elixir | lib/sanbase/utils/ip_utils.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/utils/ip_utils.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/utils/ip_utils.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Utils.IP do
@range100mask10 CIDR.parse("100.64.0.0/10")
@range10mask8 CIDR.parse("10.0.0.0/8")
def is_san_cluster_ip?("::ffff:" <> rest), do: is_san_cluster_ip?(rest)
def is_san_cluster_ip?(remote_ip) do
with {:ok, false} <- CIDR.match(@range100mask10, remote_ip),
{:ok, false} <... | 29.36 | 73 | 0.63079 |
ab862fc92bb8beecbaf00160af70ee963ce5cdb0 | 145 | exs | Elixir | test/midi_freq_test.exs | robmckinnon/midi_freq | 61961b3bf6be2331d49f29cf8c2b415db24d69ce | [
"Apache-2.0"
] | 1 | 2022-03-13T12:06:15.000Z | 2022-03-13T12:06:15.000Z | test/midi_freq_test.exs | robmckinnon/midi_freq | 61961b3bf6be2331d49f29cf8c2b415db24d69ce | [
"Apache-2.0"
] | null | null | null | test/midi_freq_test.exs | robmckinnon/midi_freq | 61961b3bf6be2331d49f29cf8c2b415db24d69ce | [
"Apache-2.0"
] | null | null | null | defmodule MidiFreqTest do
use ExUnit.Case
doctest MidiFreq
# test "greets the world" do
# assert MidiFreq.hello() == :world
# end
end
| 16.111111 | 37 | 0.696552 |
ab86385d6ff5f374068ae2a98787c25f957476f7 | 1,456 | exs | Elixir | config/config.exs | arjit95/elixir-chat | e4db9d37713edb8398017c8629b8064541c5a110 | [
"MIT"
] | null | null | null | config/config.exs | arjit95/elixir-chat | e4db9d37713edb8398017c8629b8064541c5a110 | [
"MIT"
] | null | null | null | config/config.exs | arjit95/elixir-chat | e4db9d37713edb8398017c8629b8064541c5a110 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
import Config
config :chat,
ecto_repos: [Chat.Repo]
config :chat, Chat.Repo,
charset: "utf8mb4",
collation: "utf8mb4_unicode_ci",
migration_timestamps: [type: :utc_datetime_usec]
config :... | 32.355556 | 78 | 0.753434 |
ab864c9b858b8f3c663df8f7d150091fe43834fc | 6,223 | ex | Elixir | lib/pelemay.ex | muramasa8191/pelemay | f6b51ad8acc9b6fc66280e238a67364293b2b7d5 | [
"Apache-2.0"
] | null | null | null | lib/pelemay.ex | muramasa8191/pelemay | f6b51ad8acc9b6fc66280e238a67364293b2b7d5 | [
"Apache-2.0"
] | null | null | null | lib/pelemay.ex | muramasa8191/pelemay | f6b51ad8acc9b6fc66280e238a67364293b2b7d5 | [
"Apache-2.0"
] | null | null | null | defmodule Pelemay do
import SumMag
alias Pelemay.Generator
alias Pelemay.Db
@moduledoc """
## Pelemay: The Penta (Five) “Elemental Way”: Freedom, Insight, Beauty, Efficiency and Robustness
For example, the following code of the function `map_square` will be compiled to native code using SIMD instructions... | 20.270358 | 130 | 0.586373 |
ab86700e9fd7db9125a6c331787ffb1c3815f558 | 355 | exs | Elixir | day01/day01.01.exs | jacopofar/adventofcode18-elixir | 561815c0514923dcc87901d213efae572f1d0a41 | [
"MIT"
] | 1 | 2019-05-14T04:42:39.000Z | 2019-05-14T04:42:39.000Z | day01/day01.01.exs | jacopofar/adventofcode18-elixir | 561815c0514923dcc87901d213efae572f1d0a41 | [
"MIT"
] | null | null | null | day01/day01.01.exs | jacopofar/adventofcode18-elixir | 561815c0514923dcc87901d213efae572f1d0a41 | [
"MIT"
] | null | null | null | defmodule Day01 do
IO.puts "Copy-paste the input for day one, multiple line with a + or - and a number"
def ask(total) do
new_line = Integer.parse(IO.gets "")
case new_line do
{number, _} ->
ask(total + number)
_ ->
IO.puts total
... | 25.357143 | 88 | 0.509859 |
ab867a805cb01b430714a12d0bf66b5110d69d43 | 76 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_comparison_operation_parsing_test_case/StringLine.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/matched_comparison_operation_parsing_test_case/StringLine.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/matched_comparison_operation_parsing_test_case/StringLine.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | "One" != "Two"
"One" == "Two"
"One" =~ "Two"
"One" !== "Two"
"One" === "Two" | 15.2 | 15 | 0.394737 |
ab8684b2fb7d4572ad97054d9f775bf39a5c8c5b | 1,177 | exs | Elixir | test/lib/indiana/integrations/phoenix_test.exs | zbarnes757/indiana | 47fcb3787ffdc25f0720a030220bde20453ae564 | [
"MIT"
] | 15 | 2016-07-28T22:23:03.000Z | 2017-02-01T23:26:03.000Z | test/lib/indiana/integrations/phoenix_test.exs | zbarnes757/indiana | 47fcb3787ffdc25f0720a030220bde20453ae564 | [
"MIT"
] | null | null | null | test/lib/indiana/integrations/phoenix_test.exs | zbarnes757/indiana | 47fcb3787ffdc25f0720a030220bde20453ae564 | [
"MIT"
] | null | null | null | defmodule Indiana.Integrations.PhoenixTest do
use ExUnit.Case
use Plug.Test
import Plug.Conn
setup do
Application.put_env(:indiana, :send_to_new_relic, "false")
on_exit fn ->
Indiana.clear_stats
end
end
test "record stats after the route completes" do
conn = conn(:get, "/stuff")
... | 21.017857 | 63 | 0.651657 |
ab869bf3d06f732336d07700779bc40c04d8d409 | 1,117 | ex | Elixir | lib/flipay_web/controllers/quote_controller.ex | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | lib/flipay_web/controllers/quote_controller.ex | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | lib/flipay_web/controllers/quote_controller.ex | neofelisho/flipay | 71a03a3f4c859892536faf600b93ff35da82fb88 | [
"MIT"
] | null | null | null | defmodule FlipayWeb.QuoteController do
@moduledoc """
Handle request about asset quotes.
"""
use FlipayWeb, :controller
alias Flipay.Exchanges
alias Flipay.BestRateFinder
action_fallback FlipayWeb.FallbackController
@doc """
Calculate best rate according to input/output assets, input amount and spe... | 29.394737 | 91 | 0.621307 |
ab86ba63885e52ce85f1901221ee85d21df4b6c6 | 974 | exs | Elixir | engine/config/config.exs | pylebecq/todo-elixir | 695935b8239e776177cd454f973ae5a06541155f | [
"MIT"
] | null | null | null | engine/config/config.exs | pylebecq/todo-elixir | 695935b8239e776177cd454f973ae5a06541155f | [
"MIT"
] | 9 | 2018-06-30T09:51:19.000Z | 2018-07-03T13:14:47.000Z | engine/config/config.exs | pylebecq/todo-elixir | 695935b8239e776177cd454f973ae5a06541155f | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :engine,
ecto_repos: [Engine.Repo]
# Co... | 33.586207 | 86 | 0.75154 |
ab86cfe43c9ffe6919209255400b857239431a81 | 2,199 | ex | Elixir | lib/chat_api_web/controllers/registration_controller.ex | rlanga/papercups | 358ca46c344908585cd0214a0de96e5676120c68 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/registration_controller.ex | rlanga/papercups | 358ca46c344908585cd0214a0de96e5676120c68 | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/registration_controller.ex | rlanga/papercups | 358ca46c344908585cd0214a0de96e5676120c68 | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.RegistrationController do
use ChatApiWeb, :controller
alias Ecto.Changeset
alias Plug.Conn
alias ChatApiWeb.ErrorHelpers
@spec create(Conn.t(), map()) :: Conn.t()
def create(conn, params)
def create(conn, %{"user" => user_params}) when is_map_key(user_params, "invite_token") do
... | 29.32 | 98 | 0.651205 |
ab86e6f4f706914542b4ff2609fbacf049d0cea9 | 708 | ex | Elixir | lib/twivia_web/gettext.ex | liviaab/twivia | ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e | [
"MIT"
] | null | null | null | lib/twivia_web/gettext.ex | liviaab/twivia | ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e | [
"MIT"
] | null | null | null | lib/twivia_web/gettext.ex | liviaab/twivia | ce00db2ef8375ef5c6f1c1f996aa7c44fa994a8e | [
"MIT"
] | null | null | null | defmodule TwiviaWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import TwiviaWeb.Gettext
# Simple translation
gettext("Here is the... | 28.32 | 72 | 0.676554 |
ab86fc4dd1a6da33d931bd7d3acbcdedcd8d5973 | 654 | exs | Elixir | test/phoenix_live_view/integrations/collocated_test.exs | groxio-learning/phoenix_live_view | df25d2d016b54d59beff20bd778ee2459abb6978 | [
"MIT"
] | 1 | 2020-10-23T15:17:10.000Z | 2020-10-23T15:17:10.000Z | test/phoenix_live_view/integrations/collocated_test.exs | alvises/phoenix_live_view | 37e32ffe9c59ca4e1176dfa878dbd8f41a002508 | [
"MIT"
] | null | null | null | test/phoenix_live_view/integrations/collocated_test.exs | alvises/phoenix_live_view | 37e32ffe9c59ca4e1176dfa878dbd8f41a002508 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.CollocatedTest do
use ExUnit.Case, async: true
use Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveViewTest.{Endpoint, CollocatedLive, CollocatedComponent}
@endpoint Endpoint
test "supports collocated views" do
{:ok, view, html} = live_isolated(build_conn(), ... | 31.142857 | 76 | 0.733945 |
ab874561b2f2ec69e32536a2565ec03f798dbc30 | 279 | ex | Elixir | lib/phone/nanp/us/ky.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/ky.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/ky.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.US.KY do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(270|364|502|606|859)([2-9].{6})$/
def area_name, do: "Kentucky"
def area_type, do: "state"
def area_abbreviation, do: "KY"
matcher ["1270", "1364", "1502", "1606", "1859"]
end
| 21.461538 | 58 | 0.630824 |
ab874eb619f4bf509da8d3c5ab0058d26069154b | 2,646 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_inspect_content_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_inspect_content_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_inspect_content_request.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... | 47.25 | 370 | 0.756236 |
ab875ae3a055bc3de0ca2f5b0d03a90f723d4cf7 | 473 | ex | Elixir | concurrency/distributed_factorial/lib/distributed_factorial.ex | hbobenicio/elixir-examples | a116955b6e180f295dde5a41bd729fcd5d69857e | [
"Apache-2.0"
] | null | null | null | concurrency/distributed_factorial/lib/distributed_factorial.ex | hbobenicio/elixir-examples | a116955b6e180f295dde5a41bd729fcd5d69857e | [
"Apache-2.0"
] | null | null | null | concurrency/distributed_factorial/lib/distributed_factorial.ex | hbobenicio/elixir-examples | a116955b6e180f295dde5a41bd729fcd5d69857e | [
"Apache-2.0"
] | null | null | null | defmodule DistributedFactorial do
def partition(0) do
{{0, 0}, {0, 0}}
end
def half_partition(n) do
middle = div(n, 2)
{{0, middle}, {middle + 1, n}}
end
def fat(0), do: 1
def fat(n) do
Process.flag(:trap_exit, true)
{p1, p2} = half_partition(n)
t1 = Task.async(SequentialFactori... | 16.310345 | 58 | 0.596195 |
ab876460ed69b8bd421660ce80e35a2e46363674 | 1,095 | ex | Elixir | lib/phoenix_exfile_test_app/endpoint.ex | keichan34/phoenix_exfile_test_app | 63de22ab04a61ef7f13a53f2b34d3c752a1def7a | [
"MIT"
] | 1 | 2016-04-19T11:56:32.000Z | 2016-04-19T11:56:32.000Z | lib/phoenix_exfile_test_app/endpoint.ex | keichan34/phoenix_exfile_test_app | 63de22ab04a61ef7f13a53f2b34d3c752a1def7a | [
"MIT"
] | 1 | 2016-08-05T07:52:34.000Z | 2016-09-02T03:45:03.000Z | lib/phoenix_exfile_test_app/endpoint.ex | keichan34/phoenix_exfile_test_app | 63de22ab04a61ef7f13a53f2b34d3c752a1def7a | [
"MIT"
] | null | null | null | defmodule PhoenixExfileTestApp.Endpoint do
use Phoenix.Endpoint, otp_app: :phoenix_exfile_test_app
socket "/socket", PhoenixExfileTestApp.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static ... | 27.375 | 69 | 0.73242 |
ab877ce9d2f47f0894d43b1de47d9a2068c8b9f2 | 2,755 | exs | Elixir | test/ua_inspector/database/init_test.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 57 | 2015-04-07T03:10:45.000Z | 2019-03-11T01:01:40.000Z | test/ua_inspector/database/init_test.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 16 | 2015-03-09T19:56:17.000Z | 2019-03-16T14:24:02.000Z | test/ua_inspector/database/init_test.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 15 | 2015-02-02T23:14:00.000Z | 2019-03-16T13:15:05.000Z | defmodule UAInspector.Database.InitTest do
use ExUnit.Case, async: false
import ExUnit.CaptureLog
alias UAInspector.Database
@pathname "something_that_does_not_exist"
setup do
database_path = Application.get_env(:ua_inspector, :database_path)
startup_silent = Application.get_env(:ua_inspector, :st... | 26.490385 | 73 | 0.651906 |
ab877d67db6874961c01bd0de049ae7abf0e995d | 1,462 | exs | Elixir | test/credo/plugin_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 4,590 | 2015-09-28T06:01:43.000Z | 2022-03-29T08:48:57.000Z | test/credo/plugin_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 890 | 2015-11-16T21:07:07.000Z | 2022-03-29T08:52:07.000Z | test/credo/plugin_test.exs | hrzndhrn/credo | 71a7b24a5ca8e7a48416e0cdfb42cf8a0fef9593 | [
"MIT"
] | 479 | 2015-11-17T19:42:40.000Z | 2022-03-29T00:09:21.000Z | defmodule Credo.PluginTest do
use Credo.Test.Case, async: false
alias Credo.Test.IntegrationTest
@integration_path "test/fixtures/example_plugin_integration"
alias Credo.Execution
Code.require_file("test/fixtures/example_plugin_integration/plugin/example_plugin.ex")
test "it should use ExamplePlugin's ... | 31.782609 | 88 | 0.719562 |
ab8788e470367dcea0498169a677edc0603c79b9 | 17,505 | ex | Elixir | lib/phoenix/test/channel_test.ex | kenta-aktsk/phoenix | e3c23a364af4f2283e2498fdb47c60161f262a1f | [
"MIT"
] | 1 | 2021-03-14T17:50:24.000Z | 2021-03-14T17:50:24.000Z | lib/phoenix/test/channel_test.ex | ogamw/phoenix | e3c23a364af4f2283e2498fdb47c60161f262a1f | [
"MIT"
] | null | null | null | lib/phoenix/test/channel_test.ex | ogamw/phoenix | e3c23a364af4f2283e2498fdb47c60161f262a1f | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.000Z | defmodule Phoenix.ChannelTest do
@moduledoc """
Conveniences for testing Phoenix channels.
In channel tests, we interact with channels via process
communication, sending and receiving messages. It is also
common to subscribe to the same topic the channel subscribes
to, allowing us to assert if a given mess... | 32.356747 | 91 | 0.674093 |
ab8792f8f8cb1078975ecd8dd64d648eb29048dd | 409 | exs | Elixir | test/bullish/investments/investments_test.exs | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 1 | 2019-04-24T03:04:23.000Z | 2019-04-24T03:04:23.000Z | test/bullish/investments/investments_test.exs | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 3 | 2019-03-13T03:26:51.000Z | 2021-05-08T02:34:05.000Z | test/bullish/investments/investments_test.exs | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 1 | 2019-03-07T04:56:16.000Z | 2019-03-07T04:56:16.000Z | defmodule Bullish.InvestmentsTest do
@moduledoc false
use Bullish.DataCase
# alias Bullish.Investments
describe "portfolios" do
# alias Bullish.Investments.Portfolio
@valid_attrs %{current_value: 120.5, investment: 120.5, stocks: %{}}
@update_attrs %{current_value: 456.7, investment: 456.7, stock... | 27.266667 | 73 | 0.718826 |
ab87ae4fa5683d8faf3f4177cacc394d02a8ed5f | 1,787 | ex | Elixir | lib/docusign/model/billing_plan.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/billing_plan.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/billing_plan.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.BillingPlan do
@moduledoc """
Contains information about a billing plan.
"""
@derive [Poison.Encoder]
defstruct [
:a... | 30.288136 | 89 | 0.65249 |
ab87b18605ce3451a8cde4fd0fa3adb517517fd8 | 546 | exs | Elixir | apps/tai/test/tai/commands/settings_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/commands/settings_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/test/tai/commands/settings_test.exs | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Commands.SettingsTest do
use ExUnit.Case, async: false
import ExUnit.CaptureIO
setup do
on_exit(fn ->
Application.stop(:tai)
end)
{:ok, _} = Application.ensure_all_started(:tai)
:ok
end
test "settings displays the current values" do
assert capture_io(&Tai.CommandsHe... | 21.84 | 60 | 0.487179 |
ab87d7834cf5b6af925a7880202b84149378408e | 234 | exs | Elixir | community/betterdev/priv/repo/migrations/20170625085811_add_index_on_tags.exs | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 79 | 2017-07-03T13:04:08.000Z | 2022-02-11T13:59:37.000Z | community/betterdev/priv/repo/migrations/20170625085811_add_index_on_tags.exs | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 16 | 2017-07-09T03:16:27.000Z | 2022-01-14T14:29:57.000Z | community/betterdev/priv/repo/migrations/20170625085811_add_index_on_tags.exs | earthrid/betterdev.link | b8efe279e82810075ba36673483f7f4d6862bc19 | [
"MIT"
] | 10 | 2017-07-09T02:58:59.000Z | 2021-09-14T08:01:02.000Z | defmodule Betterdev.Repo.Migrations.AddIndexOnTags do
use Ecto.Migration
def change do
create index(:community_tags, [:title], unique: true)
create index(:community_link_tags, [:link_id, :tag_id], unique: true)
end
end
| 26 | 73 | 0.74359 |
ab881e6eb812602fbcafd377ac400674cb8c0669 | 680 | ex | Elixir | apps/artemis/lib/artemis/contexts/auth_provider/get_auth_provider.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/contexts/auth_provider/get_auth_provider.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/auth_provider/get_auth_provider.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.GetAuthProvider do
use Artemis.Context
import Ecto.Query
alias Artemis.AuthProvider
alias Artemis.Repo
@default_preload [:user]
def call!(value, _user, options \\ []) do
get_record(value, options, &Repo.get_by!/2)
end
def call(value, _user, options \\ []) do
get_record(val... | 22.666667 | 68 | 0.697059 |
ab882993daf022f24ce6142053b18d5a1ef92ae9 | 781 | exs | Elixir | test/acceptance/html/comment_test.exs | manuel-rubio/earmark | d747d73d31e8b8fa39389b01fc67cc53d946b707 | [
"Apache-1.1"
] | 734 | 2015-01-05T19:08:00.000Z | 2022-03-28T14:04:21.000Z | test/acceptance/html/comment_test.exs | manuel-rubio/earmark | d747d73d31e8b8fa39389b01fc67cc53d946b707 | [
"Apache-1.1"
] | 343 | 2015-01-01T04:56:57.000Z | 2022-02-15T11:00:57.000Z | test/acceptance/html/comment_test.exs | manuel-rubio/earmark | d747d73d31e8b8fa39389b01fc67cc53d946b707 | [
"Apache-1.1"
] | 169 | 2015-02-26T15:18:05.000Z | 2022-03-18T08:00:42.000Z | defmodule Acceptance.Html.CommentTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_html: 1]
describe "HTML Comments" do
test "one line" do
markdown = "<!-- Hello -->"
html = "<!-- Hello -->\n"
messages = []
assert as_html(markdown) == {:ok, html, messages}
... | 23.666667 | 55 | 0.551857 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.