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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5aa978f1da95df3d47579451bd69ec615f469b29 | 147 | ex | Elixir | lib/cgrates_web_jsonapi_web/controllers/tp_stat_import_job_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi_web/controllers/tp_stat_import_job_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi_web/controllers/tp_stat_import_job_controller.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapiWeb.TpStatImportJobController do
use CgratesWebJsonapi.CsvImportJob, module: CgratesWebJsonapi.TariffPlans.TpStat
end
| 36.75 | 82 | 0.891156 |
5aa99d3e8197f63445248dfb766737e3af0ab233 | 1,417 | ex | Elixir | lib/tune_web/views/album_view.ex | mateuszkwiatkowski/tune | 9a929e30fa20581349385ac8be0db5eb88036a36 | [
"MIT"
] | 206 | 2020-08-23T17:50:03.000Z | 2022-03-28T04:39:01.000Z | lib/tune_web/views/album_view.ex | fully-forged/tune | 5df9299197a48d5426003ca9e95914e4c2916c79 | [
"MIT"
] | 112 | 2020-08-21T08:26:38.000Z | 2022-03-31T06:11:06.000Z | lib/tune_web/views/album_view.ex | mateuszkwiatkowski/tune | 9a929e30fa20581349385ac8be0db5eb88036a36 | [
"MIT"
] | 15 | 2020-08-25T02:30:23.000Z | 2021-12-16T14:19:35.000Z | defmodule TuneWeb.AlbumView do
@moduledoc false
use TuneWeb, :view
alias Tune.{Link, Spotify.Schema.Album, Spotify.Schema.Copyright}
alias TuneWeb.TrackView
@default_artwork "https://via.placeholder.com/300"
defp authors(%Album{artists: artists}, socket) do
artists
|> Enum.map(fn artist ->
... | 27.25 | 91 | 0.659845 |
5aa9aa5c0001a807de55d362fa01c582ab40aa61 | 3,153 | ex | Elixir | lib/changelog_web/controllers/admin/news_sponsorship_controller.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog_web/controllers/admin/news_sponsorship_controller.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog_web/controllers/admin/news_sponsorship_controller.ex | sdrees/changelog.com | 955cdcf93d74991062f19a03e34c9f083ade1705 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.Admin.NewsSponsorshipController do
use ChangelogWeb, :controller
alias Changelog.{NewsSponsorship}
alias ChangelogWeb.TimeView
plug :assign_sponsorship when action in [:show, :edit, :update, :delete]
plug Authorize, [Policies.Admin.NewsSponsorship, :sponsorship]
plug :scrub_params, ... | 30.317308 | 94 | 0.659689 |
5aa9b0d4c34fa03e36a7e9bef144f4db870e71a0 | 4,540 | exs | Elixir | test/appsignal/transaction/registry_test.exs | lukerandall/appsignal-elixir | eac4a7e44354bfa2de69ea8a9b0e27157db2e4c8 | [
"MIT"
] | null | null | null | test/appsignal/transaction/registry_test.exs | lukerandall/appsignal-elixir | eac4a7e44354bfa2de69ea8a9b0e27157db2e4c8 | [
"MIT"
] | null | null | null | test/appsignal/transaction/registry_test.exs | lukerandall/appsignal-elixir | eac4a7e44354bfa2de69ea8a9b0e27157db2e4c8 | [
"MIT"
] | null | null | null | defmodule Appsignal.Transaction.RegistryTest do
use ExUnit.Case, async: false
alias Appsignal.{Transaction, TransactionRegistry}
test "lookup/1 returns nil after process has ended" do
transaction = %Transaction{id: Transaction.generate_id()}
pid =
spawn(fn ->
TransactionRegistry.register(... | 30.266667 | 90 | 0.71652 |
5aa9b7be79d55e146dc41c714e02ba9e6b955e8c | 188 | ex | Elixir | web/controllers/page_controller.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | web/controllers/page_controller.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | web/controllers/page_controller.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | defmodule Web.PageController do
use Web.Web, :controller
def index(conn, _params) do
regattas = Repo.all(Web.Regatta)
render conn, "index.html", regattas: regattas
end
end
| 18.8 | 49 | 0.712766 |
5aa9f129946d0292151ecdc8c7ba19b2fd4cb5a5 | 1,395 | ex | Elixir | lib/mix/tasks/honeydew_ecto_notify_queue_db_gen_migration.ex | fsanggang/honeydew-ecto-notify-queue | fc58be742c3362bd635f4e704424af260725a4ef | [
"MIT"
] | 1 | 2018-07-02T23:52:41.000Z | 2018-07-02T23:52:41.000Z | lib/mix/tasks/honeydew_ecto_notify_queue_db_gen_migration.ex | fsanggang/honeydew-ecto-notify-queue | fc58be742c3362bd635f4e704424af260725a4ef | [
"MIT"
] | 1 | 2019-06-11T22:28:32.000Z | 2019-06-11T22:28:32.000Z | lib/mix/tasks/honeydew_ecto_notify_queue_db_gen_migration.ex | fsanggang/honeydew-ecto-notify-queue | fc58be742c3362bd635f4e704424af260725a4ef | [
"MIT"
] | 3 | 2019-06-11T05:21:54.000Z | 2021-12-05T20:30:45.000Z | defmodule Mix.Tasks.HoneydewEctoNotifyQueue.Db.Gen.Migration do
@moduledoc """
Generates a migration for HoneydewEctoNotifyQueue's jobs and configuration tables.
"""
@shortdoc @moduledoc
# Based off Guardian's mix task for generating a migration found at
# https://github.com/ueberauth/guardian_db/blob/mas... | 25.363636 | 99 | 0.666667 |
5aaa2b48ee72305e93edaa7898f0e01954501a52 | 171 | exs | Elixir | config/test.exs | DevL/laos | dd766bef4c1056c17f913fea4fbeb9f56acd0530 | [
"MIT"
] | null | null | null | config/test.exs | DevL/laos | dd766bef4c1056c17f913fea4fbeb9f56acd0530 | [
"MIT"
] | null | null | null | config/test.exs | DevL/laos | dd766bef4c1056c17f913fea4fbeb9f56acd0530 | [
"MIT"
] | null | null | null | use Mix.Config
config :yearly, Yearly.Endpoint,
http: [port: System.get_env("PORT") || 4001]
# Print only warnings and errors during test
config :logger, level: :warn
| 21.375 | 46 | 0.725146 |
5aaa302d9e65761b077f1de6c81a92d48e268106 | 1,805 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/postal_codes_list_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/dfa_reporting/lib/google_api/dfa_reporting/v35/model/postal_codes_list_response.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/postal_codes_list_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... | 36.1 | 159 | 0.740166 |
5aaa952726cb332048115624f7cf9ad3217566be | 433 | ex | Elixir | lib/ex_rss_web/controllers/feed_controller.ex | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | 4 | 2020-02-16T07:18:35.000Z | 2021-12-09T14:43:10.000Z | lib/ex_rss_web/controllers/feed_controller.ex | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | 27 | 2019-10-16T18:35:19.000Z | 2022-03-13T16:39:57.000Z | lib/ex_rss_web/controllers/feed_controller.ex | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | null | null | null | defmodule ExRssWeb.FeedController do
use ExRssWeb, :controller
alias ExRss.FeedAdder
def index(conn, _params) do
conn
|> render("index.html")
end
def new(conn, %{"url" => url}) do
candidate =
case FeedAdder.discover_feed(url) do
{:ok, candidate} -> candidate
_ -> nil
... | 18.041667 | 42 | 0.600462 |
5aaabfbdcf01a8f28804a6956cea2a5f7ebb5468 | 12,213 | ex | Elixir | lib/livebook/file_system/s3.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | 1 | 2022-02-16T09:13:27.000Z | 2022-02-16T09:13:27.000Z | lib/livebook/file_system/s3.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | lib/livebook/file_system/s3.ex | doyobi/livebook | 136d5039c42b406dd0b31aea188deb4fce3b1328 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.FileSystem.S3 do
@moduledoc false
# File system backed by an S3 bucket.
defstruct [:bucket_url, :access_key_id, :secret_access_key]
@type t :: %__MODULE__{
bucket_url: String.t(),
access_key_id: String.t(),
secret_access_key: String.t()
}
@doc """
... | 29.28777 | 147 | 0.624171 |
5aaac61265fa65ecea203ece6cf1ac09d5d7cd89 | 101 | ex | Elixir | text_client/lib/text_client.ex | imattman/elixir-for-programmers | ff757b05fec5d00f32a067fc5e6d0364ce56358b | [
"MIT"
] | null | null | null | text_client/lib/text_client.ex | imattman/elixir-for-programmers | ff757b05fec5d00f32a067fc5e6d0364ce56358b | [
"MIT"
] | null | null | null | text_client/lib/text_client.ex | imattman/elixir-for-programmers | ff757b05fec5d00f32a067fc5e6d0364ce56358b | [
"MIT"
] | null | null | null | defmodule TextClient do
@spec start() :: :ok
defdelegate start(), to: TextClient.Impl.Player
end
| 20.2 | 49 | 0.722772 |
5aaadc96180c0fc883dd2028b83b8c0ae51c2c96 | 1,374 | exs | Elixir | mix.exs | savonarola/smppex_telemetry | d7919012a5e05c93542e0c34477d7a7d7e2abb99 | [
"MIT"
] | 1 | 2021-04-29T05:08:03.000Z | 2021-04-29T05:08:03.000Z | mix.exs | savonarola/smppex_telemetry | d7919012a5e05c93542e0c34477d7a7d7e2abb99 | [
"MIT"
] | null | null | null | mix.exs | savonarola/smppex_telemetry | d7919012a5e05c93542e0c34477d7a7d7e2abb99 | [
"MIT"
] | 1 | 2022-01-27T22:57:25.000Z | 2022-01-27T22:57:25.000Z | defmodule SMPPEXTelemetry.MixProject do
use Mix.Project
def project do
[
app: :smppex_telemetry,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/savonarola/smppex_telemetry",
deps: deps(),
description: descripti... | 21.138462 | 67 | 0.558952 |
5aaae77fe9d34d775f603a3934338484389d3fc3 | 246 | exs | Elixir | rumbl/priv/repo/migrations/20210102135732_create_categories.exs | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | 1 | 2021-05-30T20:57:51.000Z | 2021-05-30T20:57:51.000Z | rumbl/priv/repo/migrations/20210102135732_create_categories.exs | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | rumbl/priv/repo/migrations/20210102135732_create_categories.exs | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | defmodule Rumbl.Repo.Migrations.CreateCategories do
use Ecto.Migration
def change do
create table(:categories) do
add :name, :string, null: false
timestamps()
end
create unique_index(:categories, [:name])
end
end
| 17.571429 | 51 | 0.686992 |
5aab16680b744759f379f6e0fb2c3c29cee3a93b | 1,660 | ex | Elixir | server/lib/server_web/endpoint.ex | wasd171/primitive-scanner | c0b911204b680f936d1c98e7bf72ebeb77ae87b1 | [
"MIT"
] | null | null | null | server/lib/server_web/endpoint.ex | wasd171/primitive-scanner | c0b911204b680f936d1c98e7bf72ebeb77ae87b1 | [
"MIT"
] | null | null | null | server/lib/server_web/endpoint.ex | wasd171/primitive-scanner | c0b911204b680f936d1c98e7bf72ebeb77ae87b1 | [
"MIT"
] | null | null | null | defmodule ServerWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :server
socket "/socket", ServerWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static... | 28.62069 | 95 | 0.706024 |
5aab30fd9504181216e1497c691884b9de7c46d9 | 3,377 | exs | Elixir | test/scenic/primitive/triangle_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/triangle_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/triangle_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-05-08.
# Re-written on 11/02/17
# Copyright © 2017 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Primitive.TriangleTest do
use ExUnit.Case, async: true
doctest Scenic.Primitive.Triangle
alias Scenic.Primitive
alias Scenic.Primitive.Triangle
@data {{20, 300},... | 30.7 | 86 | 0.518508 |
5aab49f5938320b2845c7f89cc29b3b2903fd62b | 8,026 | exs | Elixir | test/plug/csrf_protection_test.exs | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | test/plug/csrf_protection_test.exs | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | test/plug/csrf_protection_test.exs | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | defmodule Plug.CSRFProtectionTest do
use ExUnit.Case, async: true
use Plug.Test
alias Plug.CSRFProtection
alias Plug.CSRFProtection.InvalidCSRFTokenError
alias Plug.CSRFProtection.InvalidCrossOriginRequestError
@default_opts Plug.Session.init(
store: :cookie,
key: "foobar",
encryption_salt: "c... | 29.185455 | 95 | 0.652006 |
5aab587a919e5fbd755e4303af86e5f6e4fbe110 | 1,383 | ex | Elixir | apps/xee2018/test/support/data_case.ex | RyoheiHayashi/xee2018 | 3b9ff03b13817563a5c7c75db1da360879a8a8d4 | [
"MIT"
] | 1 | 2018-09-05T10:31:50.000Z | 2018-09-05T10:31:50.000Z | apps/xee2018/test/support/data_case.ex | RyoheiHayashi/xee2018 | 3b9ff03b13817563a5c7c75db1da360879a8a8d4 | [
"MIT"
] | null | null | null | apps/xee2018/test/support/data_case.ex | RyoheiHayashi/xee2018 | 3b9ff03b13817563a5c7c75db1da360879a8a8d4 | [
"MIT"
] | null | null | null | defmodule Xee2018.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... | 25.611111 | 77 | 0.679682 |
5aab6009460bc58d167d277ca08fd4e5e0512005 | 2,607 | ex | Elixir | lib/tune/tune/demands.ex | Future-Made/demand-upon-tune-web | 87c37721fb478fcd9bb655d5e4a76ca5506883d1 | [
"MIT"
] | 1 | 2021-07-09T11:57:41.000Z | 2021-07-09T11:57:41.000Z | lib/tune/tune/demands.ex | Future-Made/demand-upon-tune-web | 87c37721fb478fcd9bb655d5e4a76ca5506883d1 | [
"MIT"
] | null | null | null | lib/tune/tune/demands.ex | Future-Made/demand-upon-tune-web | 87c37721fb478fcd9bb655d5e4a76ca5506883d1 | [
"MIT"
] | 2 | 2021-07-09T11:57:45.000Z | 2022-01-06T23:37:19.000Z | defmodule Tune.Demands do
@moduledoc """
The Tune.Demands context.
"""
import Ecto.Query, warn: false
alias Tune.Repo
alias Tune.Demands.OnlineConcertDemand
@doc """
Returns the list of online_concert_demands.
## Examples
iex> list_online_concert_demands()
[%OnlineConcertDemand{}, ...... | 24.59434 | 99 | 0.708477 |
5aab765c44daeb4df35ddcaeb6627d88575cb6fe | 669 | exs | Elixir | test/salsa20_test.exs | mwmiller/salsa20_ex | 68192503549cb1c7c360c6fa314b8f7ebde4c7cb | [
"MIT"
] | 3 | 2016-02-25T16:08:32.000Z | 2021-12-27T17:43:56.000Z | test/salsa20_test.exs | mwmiller/salsa20_ex | 68192503549cb1c7c360c6fa314b8f7ebde4c7cb | [
"MIT"
] | null | null | null | test/salsa20_test.exs | mwmiller/salsa20_ex | 68192503549cb1c7c360c6fa314b8f7ebde4c7cb | [
"MIT"
] | 1 | 2021-05-21T03:57:00.000Z | 2021-05-21T03:57:00.000Z | defmodule Salsa20Test do
use ExUnit.Case
doctest Salsa20
import Salsa20
test "single crypt" do
k = "this is 32 bytes long as our key"
v = "8B nonce"
encrypted = crypt("secret message", k, v)
assert encrypted == <<91, 209, 80, 89, 195, 39, 221, 94, 63, 143, 193, 245, 205, 14>>
assert encry... | 25.730769 | 92 | 0.590433 |
5aac19dbb2795861527cabd1459ab2a1a28d9009 | 679 | ex | Elixir | lib/events_tools/accounts/guardian_token.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | lib/events_tools/accounts/guardian_token.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-05T20:16:34.000Z | 2017-10-05T20:36:11.000Z | lib/events_tools/accounts/guardian_token.ex | apps-team/events-tools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | defmodule EventsTools.Accounts.GuardianToken do
use Ecto.Schema
#import Ecto.Changeset
import Ecto.Query
alias EventsTools.Repo
alias EventsTools.Accounts.GuardianSerializer
@primary_key {:jti, :string, []}
@derive {Phoenix.Param, key: :jti}
schema "guardian_tokens" do
field :aud, :string
field... | 22.633333 | 76 | 0.653903 |
5aac278649b496edec3290a2e01e7d44c6e93463 | 1,373 | ex | Elixir | lib/myapp_web/schema.ex | joshddunn/graphql-phoenix | 40a8ee9fa5ad74cbd85a64721309934d3091833b | [
"MIT"
] | null | null | null | lib/myapp_web/schema.ex | joshddunn/graphql-phoenix | 40a8ee9fa5ad74cbd85a64721309934d3091833b | [
"MIT"
] | null | null | null | lib/myapp_web/schema.ex | joshddunn/graphql-phoenix | 40a8ee9fa5ad74cbd85a64721309934d3091833b | [
"MIT"
] | null | null | null | defmodule MyAppWeb.Schema do
use Absinthe.Schema
import_types MyAppWeb.Schema.Types
query do
field :posts, list_of(:post) do
resolve &MyApp.PostResolver.all/2
end
field :users, list_of(:user) do
resolve &MyApp.UserResolver.all/2
end
field :user, type: :user do
arg :id, non... | 20.492537 | 45 | 0.627822 |
5aac83cb88747e1b89453068f77289f6960b5841 | 2,208 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/document_change.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/document_change.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firestore/lib/google_api/firestore/v1/model/document_change.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... | 41.660377 | 252 | 0.730525 |
5aac9dbf43a80743d55bdc0fc490f2b2d6ff3ebe | 3,107 | ex | Elixir | clients/cloud_private_catalog_producer/lib/google_api/cloud_private_catalog_producer/v1beta1/model/google_cloud_privatecatalogproducer_v1beta1_catalog.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_private_catalog_producer/lib/google_api/cloud_private_catalog_producer/v1beta1/model/google_cloud_privatecatalogproducer_v1beta1_catalog.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_private_catalog_producer/lib/google_api/cloud_private_catalog_producer/v1beta1/model/google_cloud_privatecatalogproducer_v1beta1_catalog.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... | 39.329114 | 134 | 0.712906 |
5aacd328f02f8568811083b4d418f0e4b135e972 | 11,388 | ex | Elixir | lib/events.pb.ex | eigr/eigr-functions-controller | e14a3b68c9c5e9daf46dd3f1c9cc4583bea955fb | [
"Apache-2.0"
] | 2 | 2021-04-13T20:30:04.000Z | 2021-04-21T22:26:07.000Z | lib/events.pb.ex | sleipnir/permastate-operator | 3937ac749bb5d65a30c690dffec88d6f55371946 | [
"Apache-2.0"
] | 6 | 2021-06-02T03:25:37.000Z | 2021-07-20T14:00:09.000Z | lib/events.pb.ex | sleipnir/permastate-operator | 3937ac749bb5d65a30c690dffec88d6f55371946 | [
"Apache-2.0"
] | 2 | 2021-06-02T03:36:05.000Z | 2021-07-19T21:05:43.000Z | defmodule Io.Eigr.Permastate.Operator.Resource.Kind do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :STATEFUL_SERVICE | :STATEFUL_STORE | :CONFIG_MAP | :SECRETS | :SERVICE
def descriptor do
# credo:disable-for-next-line
Elixir.Google.Protobuf.EnumDescriptorProto.decod... | 39.957895 | 98 | 0.579294 |
5aacea1234fef5f0256e09dce93ead91f26acc3a | 568 | exs | Elixir | test/exdns/handler_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 16 | 2016-05-26T10:11:57.000Z | 2021-01-08T15:09:19.000Z | test/exdns/handler_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 9 | 2016-08-11T00:48:27.000Z | 2020-09-16T22:10:07.000Z | test/exdns/handler_test.exs | jeanparpaillon/exdns | 53b7fc780399eda96d42052e11e03d5eb0dcd789 | [
"MIT"
] | 11 | 2016-08-10T08:13:36.000Z | 2021-04-03T10:20:11.000Z | defmodule Exdns.HandlerTest do
use ExUnit.Case, async: true
require Exdns.Records
test "handle trailing garbage" do
message = Exdns.Records.dns_message
context = {:unknown, :host}
Exdns.Handler.handle({:trailing_garbage, message, :unknown}, context)
end
test "handle DNS message" do
message =... | 24.695652 | 73 | 0.700704 |
5aacf049f34ea02087be2de600f2dba024332ff3 | 1,595 | ex | Elixir | backend/test/support/model_case.ex | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | backend/test/support/model_case.ex | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | backend/test/support/model_case.ex | jchamet/PEEP-clean | a87245a77776e2b03b6893539ed2431f95426ab0 | [
"MIT"
] | null | null | null | defmodule Backend.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For ... | 25.725806 | 84 | 0.684639 |
5aacfc4b22cb3365d472df039b126580949d73ce | 461 | ex | Elixir | lib/httparrot/get_handler.ex | idabmat/httparrot | 1bc15bf4c7330341b36f7dc7d933285cda7bbf67 | [
"MIT"
] | null | null | null | lib/httparrot/get_handler.ex | idabmat/httparrot | 1bc15bf4c7330341b36f7dc7d933285cda7bbf67 | [
"MIT"
] | null | null | null | lib/httparrot/get_handler.ex | idabmat/httparrot | 1bc15bf4c7330341b36f7dc7d933285cda7bbf67 | [
"MIT"
] | null | null | null | defmodule HTTParrot.GetHandler do
@moduledoc """
Returns GET data.
"""
alias HTTParrot.GeneralRequestInfo
use HTTParrot.Cowboy, methods: ~w(GET HEAD OPTIONS)
def content_types_provided(req, state) do
{[{{"application", "json", []}, :get_json}], req, state}
end
def get_json(req, state) do
{info... | 21.952381 | 60 | 0.67462 |
5aad0d32b12d3eaabba3603ee6d5ae54f6607288 | 13,441 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/training_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/training_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/training_options.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... | 64.311005 | 618 | 0.675024 |
5aad1dca1e23b5127f20713e8e95a6afa4ba3e2c | 194 | exs | Elixir | lesson_08/demo/i18n/test/i18n_web/controllers/page_controller_test.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_08/demo/i18n/test/i18n_web/controllers/page_controller_test.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_08/demo/i18n/test/i18n_web/controllers/page_controller_test.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule I18nWeb.PageControllerTest do
use I18nWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.555556 | 60 | 0.670103 |
5aad2b7090bc9647b85eeadb25121aa99b815bac | 1,343 | ex | Elixir | lib/codes/codes_d60.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d60.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d60.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_D60 do
alias IcdCode.ICDCode
def _D600 do
%ICDCode{full_code: "D600",
category_code: "D60",
short_code: "0",
full_name: "Chronic acquired pure red cell aplasia",
short_name: "Chronic acquired pure red cell aplasia",
category_name: ... | 31.232558 | 70 | 0.621742 |
5aad2fdf344da162d18e8ff4f6ba57235bcf41a6 | 70 | exs | Elixir | config/test.exs | andykingking/spell | fc7f3c5235bc45017e7a8a51b6fb3159b2d750e2 | [
"Apache-2.0"
] | 76 | 2015-05-14T20:44:55.000Z | 2022-03-25T02:24:27.000Z | config/test.exs | andykingking/spell | fc7f3c5235bc45017e7a8a51b6fb3159b2d750e2 | [
"Apache-2.0"
] | 46 | 2015-05-09T19:46:49.000Z | 2019-08-02T04:01:46.000Z | config/test.exs | andykingking/spell | fc7f3c5235bc45017e7a8a51b6fb3159b2d750e2 | [
"Apache-2.0"
] | 27 | 2015-06-23T11:32:34.000Z | 2020-09-21T15:36:42.000Z | use Mix.Config
config :logger,
log_level: :warning,
backends: []
| 11.666667 | 22 | 0.685714 |
5aad5d82fc8f85755eb59422ce16cb9ea5996839 | 1,926 | exs | Elixir | mix.exs | aaronrenner/opentelemetry_liveview | 3f14bcbc39f321170fca2b51477c51adb15aa1ee | [
"Apache-2.0"
] | null | null | null | mix.exs | aaronrenner/opentelemetry_liveview | 3f14bcbc39f321170fca2b51477c51adb15aa1ee | [
"Apache-2.0"
] | null | null | null | mix.exs | aaronrenner/opentelemetry_liveview | 3f14bcbc39f321170fca2b51477c51adb15aa1ee | [
"Apache-2.0"
] | null | null | null | defmodule OpentelemetryLiveView.MixProject do
use Mix.Project
def project do
[
app: :opentelemetry_liveview,
description: description(),
version: "1.0.0-rc.2",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
dialyzer: [plt_core_path: if(System.get_env("CI") == "true"... | 30.09375 | 97 | 0.606957 |
5aad84121423fdf3bb632bb88196b0eef10ed68f | 53,721 | ex | Elixir | lib/phoenix_live_view.ex | workwithmax/phoenix_live_view | b924092cc440fff9377a63157de73ca15cd69d2b | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | workwithmax/phoenix_live_view | b924092cc440fff9377a63157de73ca15cd69d2b | [
"MIT"
] | null | null | null | lib/phoenix_live_view.ex | workwithmax/phoenix_live_view | b924092cc440fff9377a63157de73ca15cd69d2b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView do
@moduledoc ~S'''
LiveView provides rich, real-time user experiences with
server-rendered HTML.
The LiveView programming model is declarative: instead of
saying "once event X happens, change Y on the page",
events in LiveView are regular messages which may cause
changes to it... | 35.273145 | 148 | 0.679176 |
5aad97c47d996d0ccd81e9d1dc731f8a943eb4da | 1,144 | exs | Elixir | test/config/config_test.exs | nkyian/auctoritas | 24480b8d38fccdbadf588b110cdee061b6286f0c | [
"MIT"
] | 1 | 2019-01-18T10:37:40.000Z | 2019-01-18T10:37:40.000Z | test/config/config_test.exs | nkyian/auctoritas | 24480b8d38fccdbadf588b110cdee061b6286f0c | [
"MIT"
] | 6 | 2019-04-20T18:32:37.000Z | 2019-04-20T19:41:29.000Z | test/config/config_test.exs | nkyian/auctoritas | 24480b8d38fccdbadf588b110cdee061b6286f0c | [
"MIT"
] | null | null | null | defmodule AuctoritasTest.ConfigTest do
use ExUnit.Case, async: true
doctest Auctoritas.Config
alias Auctoritas.Config
test "generate default config" do
assert Config.new() == %Config{
name: "auctoritas_default",
data_storage: Auctoritas.AuthenticationManager.CachexDataStorage,
... | 32.685714 | 81 | 0.618881 |
5aadadb50131d9bed99efb37c46499a62e5f424a | 972 | exs | Elixir | test/recase_test/path_case_test.exs | am-kantox/recase | aea2153c991c3f27fedfbc48107fda35e835d959 | [
"MIT"
] | null | null | null | test/recase_test/path_case_test.exs | am-kantox/recase | aea2153c991c3f27fedfbc48107fda35e835d959 | [
"MIT"
] | null | null | null | test/recase_test/path_case_test.exs | am-kantox/recase | aea2153c991c3f27fedfbc48107fda35e835d959 | [
"MIT"
] | null | null | null | defmodule Recase.PathCaseTest do
use ExUnit.Case
import Recase.PathCase
doctest Recase.PathCase
test "should path case usual text" do
assert convert("path case") == "path/case"
assert convert("pathCase") == "path/Case"
assert convert("path_Case") == "path/Case"
assert convert("PathCase") == "... | 25.578947 | 62 | 0.616255 |
5aaddb392622666bdc0b420deb3e2643b2a09047 | 11,888 | ex | Elixir | lib/qlc.ex | k1complete/qlc | 3d6447405aa1229a27d0eb8ef7b66ffc8235051f | [
"MIT"
] | 20 | 2015-04-19T03:11:57.000Z | 2022-03-01T20:14:03.000Z | lib/qlc.ex | k1complete/qlc | 3d6447405aa1229a27d0eb8ef7b66ffc8235051f | [
"MIT"
] | 10 | 2016-02-15T18:36:06.000Z | 2022-03-30T12:39:48.000Z | lib/qlc.ex | k1complete/qlc | 3d6447405aa1229a27d0eb8ef7b66ffc8235051f | [
"MIT"
] | 2 | 2016-02-15T21:51:53.000Z | 2022-03-29T17:49:38.000Z | defmodule Qlc do
@type binding_struct :: :erl_eval.binding_struct()
@type bindings :: Keyword.t
@type query_cursor :: Qlc.Cursor.t
@type abstract_expr :: :erl_parse.abstract_expr()
@type error_info :: :erl_parse.error_info()
#@dialyzer [{:nowarn_function, :expr_to_handle, 3}]
@type expr :: :erl_parse.abst... | 31.284211 | 159 | 0.555855 |
5aae0d2d077d48ad54505cac931ee8fbd979b2b2 | 1,175 | ex | Elixir | web/channels/user_socket.ex | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | defmodule BartScrape.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", BartScrape.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and a... | 30.921053 | 83 | 0.70383 |
5aae47fcb013148e14fc8559b633092a20f118f7 | 2,506 | exs | Elixir | apps/artemis/test/artemis/contexts/recognition/create_recognition_test.exs | artemis-platform/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2020-04-23T02:29:18.000Z | 2020-07-07T13:13:17.000Z | apps/artemis/test/artemis/contexts/recognition/create_recognition_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 4 | 2020-04-26T20:35:36.000Z | 2020-11-10T22:13:19.000Z | apps/artemis/test/artemis/contexts/recognition/create_recognition_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | null | null | null | defmodule Artemis.CreateRecognitionTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.CreateRecognition
describe "call!" do
test "returns error when params are empty" do
assert_raise Artemis.Context.Error, fn ->
CreateRecognition.call!(%{}, Mock.system_user())
end
... | 26.946237 | 83 | 0.669593 |
5aae4b5a137bb4c6dc88d8f89130a30ded56b9cd | 473 | ex | Elixir | genocide/web/views/user_view.ex | artjimlop/genocide | b5825976b18e7c25f6a7424604fc8d345191a997 | [
"Apache-2.0"
] | null | null | null | genocide/web/views/user_view.ex | artjimlop/genocide | b5825976b18e7c25f6a7424604fc8d345191a997 | [
"Apache-2.0"
] | null | null | null | genocide/web/views/user_view.ex | artjimlop/genocide | b5825976b18e7c25f6a7424604fc8d345191a997 | [
"Apache-2.0"
] | null | null | null | defmodule Genocide.UserView do
use Genocide.Web, :view
def render("index.json", %{users: users}) do
render_many(users, Genocide.UserView, "user.json")
end
def render("show.json", %{user: user}) do
render_one(user, Genocide.UserView, "user.json")
end
def render("user.json", %{user: user}) do
%... | 21.5 | 54 | 0.632135 |
5aae58b1bc982bcc7ffd4064860f8404c4fc36a8 | 1,900 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/action_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chat/lib/google_api/chat/v1/model/action_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/chat/lib/google_api/chat/v1/model/action_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.849057 | 181 | 0.714211 |
5aae5c25e76500e54e5fae1b7608ae02a81a04cc | 408 | exs | Elixir | test/exwordnet/config_test.exs | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | 3 | 2020-03-31T11:48:26.000Z | 2020-12-08T14:47:24.000Z | test/exwordnet/config_test.exs | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | 23 | 2019-04-23T04:56:30.000Z | 2021-08-11T08:20:30.000Z | test/exwordnet/config_test.exs | indocomsoft/exwordnet | bb9213ff85db43133a50f45fc103d90cd85906a0 | [
"MIT"
] | null | null | null | defmodule ExWordNet.ConfigTest do
use ExUnit.Case
alias ExWordNet.Config
setup do
priv = :code.priv_dir(:exwordnet)
db = Path.join(priv, "WordNet-3.0")
File.rm_rf!(db)
{:ok, db: db}
end
describe "db/0" do
test "extracts dataset and returns correct db", %{db: db} do
refute File.exi... | 19.428571 | 64 | 0.627451 |
5aae5f73405f6b75745b497994aceae7c2a1fafe | 1,860 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_face_annotation_landmark.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_face_annotation_landmark.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p2beta1_face_annotation_landmark.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.818182 | 135 | 0.743548 |
5aae66ee0a4fcf8c2b576abf1b850b30bbb7626e | 516 | ex | Elixir | lib/xtb_client/messages/trades.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/messages/trades.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/messages/trades.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | defmodule XtbClient.Messages.Trades do
defmodule Query do
@moduledoc """
Info about the query for trades.
## Parameters
- `openedOnly` if true then only opened trades will be returned.
"""
@type t :: %__MODULE__{
openedOnly: boolean()
}
@enforce_keys [:openedOn... | 19.846154 | 68 | 0.625969 |
5aae786605a15e2b920c8beb74ed91fdd0f9812e | 4,621 | exs | Elixir | kousa/test/broth/room/get_scheduled_test.exs | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/test/broth/room/get_scheduled_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/test/broth/room/get_scheduled_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule BrothTest.Room.GetScheduledTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias BrothTest.WsClient
alias BrothTest.WsClientFactory
alias KousaTest.Support.Factory
require WsClient
setup do
user = Factory.create(User)
client_ws = WsClie... | 22.763547 | 72 | 0.518719 |
5aaea25471e748e213bb01d8132b6d3e2629d8f2 | 841 | ex | Elixir | lib/shopify/rest/client/hackney.ex | malomohq/shopify-rest-elixir | 9817b4227808614d15993043db019542b0de7c0b | [
"MIT"
] | null | null | null | lib/shopify/rest/client/hackney.ex | malomohq/shopify-rest-elixir | 9817b4227808614d15993043db019542b0de7c0b | [
"MIT"
] | 4 | 2020-04-24T20:15:25.000Z | 2022-02-24T17:17:51.000Z | lib/shopify/rest/client/hackney.ex | malomohq/shopify-rest-elixir | 9817b4227808614d15993043db019542b0de7c0b | [
"MIT"
] | 1 | 2020-04-15T20:03:47.000Z | 2020-04-15T20:03:47.000Z | defmodule Shopify.REST.Client.Hackney do
alias Shopify.REST.{ Client }
@behaviour Shopify.REST.Client
@spec request(
Shopify.REST.http_method_t(),
String.t(),
Shopify.REST.http_headers_t(),
String.t(),
any
) :: { :ok, Client.response_t() } | { :error, an... | 24.028571 | 76 | 0.54459 |
5aaed6e59500bb5f5e9e022e034a5d1cc1027ec8 | 887 | exs | Elixir | test/plp_test.exs | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | test/plp_test.exs | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | test/plp_test.exs | pressrelations/tds | a05120c6064b9561860695242ebff37037f01165 | [
"Apache-2.0"
] | null | null | null | defmodule PLPTest do
import Tds.TestHelper
require Logger
use ExUnit.Case, async: true
@tag timeout: 50000
setup do
opts = Application.fetch_env!(:tds, :opts)
{:ok, pid} = Tds.start_link(opts)
{:ok, [pid: pid]}
end
test "Max and Large PLP returns", context do
# :dbg.tracer()
# :dbg... | 20.159091 | 69 | 0.546787 |
5aaef0f010a9b90a3fb0018fe377b1ff713b2b4a | 2,430 | exs | Elixir | test/vintage_net_mobile_test.exs | nerves-networking/vintage_net_lte | 9a3be8828e4ecdbc993706782ed2039abf5fbbcb | [
"Apache-2.0"
] | 2 | 2020-02-11T15:15:25.000Z | 2020-02-11T15:15:27.000Z | test/vintage_net_mobile_test.exs | nerves-networking/vintage_net_lte | 9a3be8828e4ecdbc993706782ed2039abf5fbbcb | [
"Apache-2.0"
] | 8 | 2020-01-28T21:02:56.000Z | 2020-02-24T16:13:38.000Z | test/vintage_net_mobile_test.exs | nerves-networking/vintage_net_lte | 9a3be8828e4ecdbc993706782ed2039abf5fbbcb | [
"Apache-2.0"
] | 1 | 2020-02-08T20:46:27.000Z | 2020-02-08T20:46:27.000Z | defmodule VintageNetMobileTest do
use ExUnit.Case
alias VintageNet.Interface.RawConfig
alias VintageNetMobileTest.Utils
test "normalizes configurations" do
input = %{
type: VintageNetMobile,
vintage_net_mobile: %{
modem: VintageNetMobileTest.CustomModem,
service_providers: [%{a... | 25.851064 | 93 | 0.638272 |
5aaf13ad542432b4d5553241df8dfa5ddb0feb7e | 281 | exs | Elixir | config/test.exs | gVirtu/phoenix-postman | 526cbb44ae2779b2ab06ee8437258a24bdf9e43b | [
"MIT"
] | null | null | null | config/test.exs | gVirtu/phoenix-postman | 526cbb44ae2779b2ab06ee8437258a24bdf9e43b | [
"MIT"
] | null | null | null | config/test.exs | gVirtu/phoenix-postman | 526cbb44ae2779b2ab06ee8437258a24bdf9e43b | [
"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 :phoenix_postman, PhoenixPostmanWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 25.545455 | 56 | 0.75089 |
5aaf235671f1f81ab0a3492b1fc8257004ef05ae | 557 | ex | Elixir | apps/firestorm_web/lib/firestorm_web/web/channels/categories_channel.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_web/lib/firestorm_web/web/channels/categories_channel.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_web/lib/firestorm_web/web/channels/categories_channel.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormWeb.Web.CategoriesChannel do
use FirestormWeb.Web, :channel
alias FirestormWeb.Web.Api.V1.{
FetchView
}
import Ecto.Query
intercept ["update"]
def join("categories:" <> id, payload, socket) do
if authorized?(payload) do
{:ok, socket}
else
{:error, %{reason: "unau... | 20.62963 | 62 | 0.669659 |
5aaf2fdb179ca1157c2d1e9143dd5d3e3b0937d1 | 8,086 | ex | Elixir | clients/digital_asset_links/lib/google_api/digital_asset_links/v1/api/statements.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/digital_asset_links/lib/google_api/digital_asset_links/v1/api/statements.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/digital_asset_links/lib/google_api/digital_asset_links/v1/api/statements.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 ... | 47.28655 | 196 | 0.648776 |
5aaf3b22dac5d98090f20481a8a12cd8a75e6896 | 278 | exs | Elixir | priv/repo/migrations/20180816024011_add_deleted_to_objectives_and_key_results.exs | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 12 | 2019-05-10T21:48:06.000Z | 2021-11-07T14:04:30.000Z | priv/repo/migrations/20180816024011_add_deleted_to_objectives_and_key_results.exs | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 2 | 2019-05-14T19:07:10.000Z | 2019-05-20T21:06:27.000Z | priv/repo/migrations/20180816024011_add_deleted_to_objectives_and_key_results.exs | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 3 | 2019-05-19T18:24:20.000Z | 2019-10-31T20:29:12.000Z | defmodule OkrApp.Repo.Migrations.AddDeletedToObjectivesAndKeyResults do
use Ecto.Migration
def change do
alter table(:objectives) do
add(:deleted_at, :utc_datetime)
end
alter table(:key_results) do
add(:deleted_at, :utc_datetime)
end
end
end
| 19.857143 | 71 | 0.719424 |
5aaf7557c1bcef4c1da63a6039627fde42b65ff9 | 5,310 | exs | Elixir | test/server_test.exs | msaraiva/elixir_sense | 15bf8a5d4ea55ced2d76e5f41620c769cf125c82 | [
"Unlicense",
"MIT"
] | 212 | 2017-03-29T09:08:08.000Z | 2022-01-26T13:35:40.000Z | test/server_test.exs | msaraiva/elixir_sense | 15bf8a5d4ea55ced2d76e5f41620c769cf125c82 | [
"Unlicense",
"MIT"
] | 37 | 2017-04-11T04:13:18.000Z | 2020-02-12T20:02:55.000Z | test/server_test.exs | msaraiva/elixir_sense | 15bf8a5d4ea55ced2d76e5f41620c769cf125c82 | [
"Unlicense",
"MIT"
] | 17 | 2017-04-11T17:46:15.000Z | 2021-05-31T09:10:18.000Z | defmodule TCPHelper do
def send_request(socket, request) do
data = :erlang.term_to_binary(request)
send_and_recv(socket, data)
|> :erlang.binary_to_term
|> Map.get(:payload)
end
def send_and_recv(socket, data) do
:ok = :gen_tcp.send(socket, data)
{:ok, response} = :gen_tcp.recv(socket, 0... | 25.528846 | 96 | 0.555744 |
5aaf813c73edb366e7a744f2f8d57a9740e044cd | 587 | exs | Elixir | test/apps/migration_router/mix.exs | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | null | null | null | test/apps/migration_router/mix.exs | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | 1 | 2019-03-06T20:05:53.000Z | 2019-03-06T20:05:54.000Z | test/apps/migration_router/mix.exs | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | 1 | 2019-03-06T20:03:49.000Z | 2019-03-06T20:03:49.000Z | defmodule MigrationRouter.Mixfile do
use Mix.Project
def project do
[
app: :migration_router,
version: "0.1.0",
build_path: "../.build",
config_path: "config/config.exs",
deps_path: "../.deps",
lockfile: "../mix.lock",
elixir: "~> 1.5",
build_embedded: Mix.env() ... | 19.566667 | 46 | 0.536627 |
5aaf8f1846cc137851f4bb5fd0a2cdce2442b010 | 747 | ex | Elixir | lib/swedbankpay_checkout/client/psp/payment_orders/post_request/urls.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/post_request/urls.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | lib/swedbankpay_checkout/client/psp/payment_orders/post_request/urls.ex | hooplab/swedbank-pay-checkout-elixir | 91c9034d898907d15c513623519382a0648212c3 | [
"MIT"
] | null | null | null | defmodule SwedbankpayCheckout.Client.Psp.PaymentOrders.PostRequest.Urls do
@moduledoc """
"""
@typedoc """
.payment_order.urls
"""
@type t :: %__MODULE__{
:host_urls => [String.t()],
:complete_url => String.t(),
:cancel_url => String.t() | nil,
:payment_url => String... | 21.970588 | 74 | 0.579652 |
5aafbd91a9effc19b4ced7cc4b3dd33a1c353c88 | 1,692 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/access_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/access_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/access_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.84 | 154 | 0.723404 |
5aafeb37ce31c6f6a4b898857ee128af564acc76 | 13,915 | ex | Elixir | lib/gringotts/gateways/wire_card.ex | aashishsingh2803/gringotts | cf39d54d27e9a13cce97f9787f7bec606b82b83d | [
"MIT"
] | 4 | 2018-03-23T13:02:37.000Z | 2018-08-14T15:55:24.000Z | lib/gringotts/gateways/wire_card.ex | Siriusdark/gringotts | cf39d54d27e9a13cce97f9787f7bec606b82b83d | [
"MIT"
] | null | null | null | lib/gringotts/gateways/wire_card.ex | Siriusdark/gringotts | cf39d54d27e9a13cce97f9787f7bec606b82b83d | [
"MIT"
] | null | null | null | # call => Gringotts.Gateways.WireCard.authorize(100, creditcard, options)
import XmlBuilder
defmodule Gringotts.Gateways.WireCard do
@moduledoc """
WireCard System Plugins
"""
@test_url "https://c3-test.wirecard.com/secure/ssl-gateway"
@live_url "https://c3.wirecard.com/secure/ssl-gateway"
@homepage_url "... | 36.52231 | 151 | 0.659217 |
5aaffaa39917c2c4280224cc1f9450aedc46bf03 | 1,525 | ex | Elixir | apps/command/lib/command/notify.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 6 | 2017-08-10T13:57:06.000Z | 2019-01-17T08:48:40.000Z | apps/command/lib/command/notify.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 14 | 2017-08-08T13:07:00.000Z | 2019-02-28T15:10:18.000Z | apps/command/lib/command/notify.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | null | null | null | defmodule Command.Notify do
import Nostrum.Struct.Embed
alias Nostrum.Api
def work_starts_batch(opts \\ []) do
with {:ok, works} <- Spla2API.coop(),
work = %Spla2API.Struct.Coop{} <-
works
|> Enum.take(1)
|> Enum.filter(&(&1.end_utc > NaiveDateTime.utc_now()))
... | 29.326923 | 99 | 0.570492 |
5ab012e5404b2425fbfef9846bbeb3a3c4e280be | 269 | exs | Elixir | priv/repo/migrations/20150115102150_inital_node_create.exs.exs | walterbm/hyperledger-beta | 493cd02597775be917427d2d75ff293f53d3bc9d | [
"Apache-2.0"
] | 1 | 2017-06-14T07:04:47.000Z | 2017-06-14T07:04:47.000Z | priv/repo/migrations/20150115102150_inital_node_create.exs.exs | walterbm/hyperledger-beta | 493cd02597775be917427d2d75ff293f53d3bc9d | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20150115102150_inital_node_create.exs.exs | walterbm/hyperledger-beta | 493cd02597775be917427d2d75ff293f53d3bc9d | [
"Apache-2.0"
] | null | null | null | defmodule :"Elixir.Hyperledger.Repo.Migrations.InitalNodeCreate.exs" do
use Ecto.Migration
def up do
create table(:nodes) do
add :url, :string
add :public_key, :string
timestamps
end
end
def down do
drop table(:nodes)
end
end
| 15.823529 | 71 | 0.66171 |
5ab03b38cb6986e790e99758ff7ba2aaae15bf9b | 2,422 | ex | Elixir | lib/koans.ex | thaberl13/elixir-koans-1 | e86e060621124dc331abb38d761d9653441673d7 | [
"MIT"
] | 1,944 | 2016-04-24T02:46:10.000Z | 2022-03-29T00:19:17.000Z | lib/koans.ex | thaberl13/elixir-koans-1 | e86e060621124dc331abb38d761d9653441673d7 | [
"MIT"
] | 157 | 2016-04-23T18:40:24.000Z | 2022-02-10T14:00:45.000Z | lib/koans.ex | thaberl13/elixir-koans-1 | e86e060621124dc331abb38d761d9653441673d7 | [
"MIT"
] | 636 | 2016-04-23T17:18:00.000Z | 2022-03-23T10:04:06.000Z | defmodule Koans do
defp valid_name(name) do
Regex.match?(~r/([A-Z]|\.\.\.).+/, name)
end
defmacro koan(name, do: body) do
if not valid_name(name) do
raise "Name does not start with a capital letter: #{name}"
end
compiled_name = String.to_atom(name)
number_of_args = Blanks.count(body)
... | 22.635514 | 91 | 0.630471 |
5ab0655564d6a23bf6c1f287529b5e195f5b5ae8 | 1,299 | ex | Elixir | test/support/capturing_pppd_handler.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 18 | 2020-03-08T21:06:10.000Z | 2022-02-05T00:44:55.000Z | test/support/capturing_pppd_handler.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 27 | 2020-02-28T16:07:07.000Z | 2022-01-19T03:51:02.000Z | test/support/capturing_pppd_handler.ex | dognotdog/vintage_net_mobile | a709d8f8ce3af71c444d11ff07483b4be180c4c5 | [
"Apache-2.0"
] | 7 | 2020-03-25T20:08:22.000Z | 2021-10-22T03:20:17.000Z | defmodule VintageNetMobile.CapturingPPPDHandler do
@behaviour VintageNetMobile.ToElixir.PPPDHandler
@moduledoc false
@impl true
def ip_up(ifname, env) do
record(ifname, :ip_up, env)
end
@impl true
def ip_down(ifname, env) do
record(ifname, :ip_down, env)
end
@impl true
def ip_pre_up(ifnam... | 18.295775 | 80 | 0.633564 |
5ab074f4aac3e019d5e03a2531af75cf7bfa90c6 | 1,251 | ex | Elixir | lib/microcrawler_webapp.ex | AstridMN/elixir1 | f62347179628937cdb63fc14db0b0a32c689e0ae | [
"MIT"
] | 3 | 2017-04-18T06:23:18.000Z | 2018-01-05T04:14:57.000Z | lib/microcrawler_webapp.ex | AstridMN/elixir1 | f62347179628937cdb63fc14db0b0a32c689e0ae | [
"MIT"
] | 27 | 2016-11-04T19:56:11.000Z | 2017-03-26T22:34:55.000Z | lib/microcrawler_webapp.ex | AstridMN/elixir1 | f62347179628937cdb63fc14db0b0a32c689e0ae | [
"MIT"
] | 3 | 2016-10-05T11:56:42.000Z | 2017-03-05T14:37:10.000Z | defmodule MicrocrawlerWebapp do
@moduledoc """
TODO
"""
use Application
alias MicrocrawlerWebapp.Endpoint
# 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 s... | 31.275 | 72 | 0.717826 |
5ab0a527c6ae229faf8830539f98ab4e09327203 | 586 | ex | Elixir | apps/tai/lib/tai/orders/transitions/venue_cancel_error.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/orders/transitions/venue_cancel_error.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/orders/transitions/venue_cancel_error.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.Orders.Transitions.VenueCancelError do
@moduledoc """
There was an error canceling the order on the venue
"""
use Ecto.Schema
import Ecto.Changeset
@behaviour Tai.Orders.Transition
@type t :: %__MODULE__{}
@primary_key false
embedded_schema do
field(:reason, EctoTerm.Embed)
en... | 17.235294 | 53 | 0.68942 |
5ab0da9fd732f6ee533269d24eb7faf43373564a | 489 | exs | Elixir | test/functional/parser/whitespace_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | 2 | 2018-02-11T01:18:24.000Z | 2020-01-12T17:19:22.000Z | test/functional/parser/whitespace_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | test/functional/parser/whitespace_test.exs | brianbroderick/monocle | eeabecea658468479c04a02352271f6304447736 | [
"Apache-2.0"
] | null | null | null | defmodule Parser.WhitespaceTest do
use ExUnit.Case
alias Monocle.Parser
alias Monocle.Block
test "Whitespace before and after code is ignored" do
{result, _, _} = Parser.parse(["",
" line 1",
" line 2",
"",
"",
"para"])
expected = [
%Block.Code{lnb: 2, attrs:... | 19.56 | 55 | 0.543967 |
5ab0f25670ff18f63eceb8fc6c119a1d8f6b8b95 | 6,958 | ex | Elixir | clients/redis/lib/google_api/redis/v1beta1/model/instance.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/redis/lib/google_api/redis/v1beta1/model/instance.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/redis/lib/google_api/redis/v1beta1/model/instance.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 ... | 47.333333 | 144 | 0.679362 |
5ab0f27e90b37fc65268f8133687cb5fe7c7e229 | 1,688 | ex | Elixir | web/controllers/territory_controller.ex | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | 1 | 2017-06-19T18:18:11.000Z | 2017-06-19T18:18:11.000Z | web/controllers/territory_controller.ex | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | null | null | null | web/controllers/territory_controller.ex | melbystyle/jw_ministry_api | 2065d628a84e829b805c71b7e73fb0bee3d0dd44 | [
"Apache-2.0"
] | null | null | null | defmodule JwMinistryApi.TerritoryController do
use JwMinistryApi.Web, :controller
alias JwMinistryApi.Territory
def index(conn, _params) do
territories = Repo.all(Territory)
render(conn, "index.json", territories: territories)
end
def create(conn, %{"territory" => territory_params}) do
changese... | 30.142857 | 82 | 0.652844 |
5ab128d8773a7dbb17807651b763c9e9376944a8 | 4,390 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_line_item_product.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_line_item_product.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/order_line_item_product.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... | 45.257732 | 313 | 0.661503 |
5ab1354846a14dd8c59aebb27b4a53eecb5dbabc | 474 | exs | Elixir | priv/repo/migrations/20191013161920_create_eliminations.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191013161920_create_eliminations.exs | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | priv/repo/migrations/20191013161920_create_eliminations.exs | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApi.Repo.Migrations.CreateEliminations do
use Ecto.Migration
def change do
create table(:eliminations, primary_key: false) do
add :id, :uuid, primary_key: true
add :title, :string
add :team_stats, {:array, :map}
add :phase_id, references(:phases, on_delete: :nothing, ... | 24.947368 | 74 | 0.679325 |
5ab15bcc297c5ca9f1185996155880df49630617 | 11,871 | exs | Elixir | test/integration/kayrock/record_batch_test.exs | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | 536 | 2015-08-10T03:14:39.000Z | 2022-03-24T15:07:33.000Z | test/integration/kayrock/record_batch_test.exs | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | 349 | 2015-09-16T21:27:42.000Z | 2022-03-28T08:51:56.000Z | test/integration/kayrock/record_batch_test.exs | tigertext/kafka_ex_tc | 1f03132d3635281483b323751a60efa3b87586ef | [
"MIT"
] | 180 | 2015-09-01T22:58:26.000Z | 2022-03-25T16:47:49.000Z | defmodule KafkaEx.KayrockRecordBatchTest do
@moduledoc """
Tests for producing/fetching messages using the newer RecordBatch format
"""
use ExUnit.Case
@moduletag :new_client
setup do
{:ok, pid} =
KafkaEx.start_link_worker(:no_name, server_impl: KafkaEx.New.Client)
{:ok, %{client: pid}}
... | 23.789579 | 76 | 0.602898 |
5ab15cb4e7916975d623dd17e947142fb837e897 | 2,294 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/ingestion_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/ingestion_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/ingestion_info.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... | 40.245614 | 262 | 0.73714 |
5ab16b93ea478d446792a2910371043e43430b6f | 4,265 | ex | Elixir | lib/kantele/character/controllers/login_controller.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/kantele/character/controllers/login_controller.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/kantele/character/controllers/login_controller.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Kantele.Character.LoginController do
use Kalevala.Character.Controller
require Logger
alias ExVenture.Characters
alias Kalevala.Character
alias Kantele.Character.ChannelEvent
alias Kantele.Character.CharacterView
alias Kantele.Character.CommandController
alias Kantele.Character.LoginView
a... | 26.32716 | 89 | 0.62837 |
5ab17ff5d62f7fc9a65d4ddd22c9639991584eb8 | 11,574 | ex | Elixir | lib/hexpm/repository/package.ex | christopherlai/hexpm | 054dd5b30f0c8010681fa5cf8e84dc17b9a23a7c | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/package.ex | christopherlai/hexpm | 054dd5b30f0c8010681fa5cf8e84dc17b9a23a7c | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/package.ex | christopherlai/hexpm | 054dd5b30f0c8010681fa5cf8e84dc17b9a23a7c | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Package do
use Hexpm.Schema
import Ecto.Query, only: [from: 2]
@derive {HexpmWeb.Stale, assocs: [:releases, :owners, :downloads]}
@derive {Phoenix.Param, key: :name}
schema "packages" do
field :name, :string
field :docs_updated_at, :utc_datetime_usec
field :latest_vers... | 26.729792 | 114 | 0.620788 |
5ab18697655a9518ca8c0105dafe375b10d94133 | 663 | exs | Elixir | test/farmbot_os/lua/ext/wait_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | test/farmbot_os/lua/ext/wait_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | test/farmbot_os/lua/ext/wait_test.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotOS.Lua.WaitTest do
alias FarmbotOS.Lua.Wait
alias FarmbotCore.Celery.SysCallGlue
use ExUnit.Case
use Mimic
setup :verify_on_exit!
test "wait/2 - illegal value" do
err_msg = "Do not use sleep for longer than three minutes."
expect(SysCallGlue, :emergency_lock, 1, fn -> :ok end)
... | 23.678571 | 64 | 0.642534 |
5ab1aa10fa49eec83c16b494b65094ee49877b60 | 2,230 | exs | Elixir | benchmarks/generate_payloads.exs | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 176 | 2017-02-01T13:09:25.000Z | 2022-03-18T02:36:17.000Z | benchmarks/generate_payloads.exs | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 94 | 2020-07-20T05:54:51.000Z | 2022-03-09T04:13:03.000Z | benchmarks/generate_payloads.exs | moogle19/protox | b0efbce60efd7c38725b74575f7ff0074efd6c65 | [
"MIT"
] | 19 | 2017-02-13T09:17:14.000Z | 2022-02-22T09:29:18.000Z | defmodule Protox.Benchmarks do
use Protox, files: ["./benchmarks/benchmarks.proto"], namespace: Protox.Benchmarks
end
Code.compile_file("./test/support/random_init.exs")
Code.compile_file("./benchmarks/handmade_payloads.exs")
defmodule Protox.GeneratePayloads do
use PropCheck
def generate(mod, size, min_sz, ma... | 38.448276 | 93 | 0.711659 |
5ab1da9a6b9c39339cb384fe2910857f1bf21b8c | 16,044 | ex | Elixir | test/event_store/support/subscription_test_case.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:23.000Z | 2018-12-28T20:48:23.000Z | test/event_store/support/subscription_test_case.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | null | null | null | test/event_store/support/subscription_test_case.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:24.000Z | 2018-12-28T20:48:24.000Z | defmodule Commanded.EventStore.SubscriptionTestCase do
import Commanded.SharedTestCase
define_tests do
alias Commanded.EventStore
alias Commanded.EventStore.{EventData, Subscriber}
alias Commanded.Helpers.ProcessHelper
defmodule BankAccountOpened do
@derive Jason.Encoder
defstruct [:ac... | 35.8125 | 96 | 0.664797 |
5ab1f63db9a53a2794d570552a3dc43aed278962 | 2,993 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_intent_training_phrase.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_intent_training_phrase.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_intent_training_phrase.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... | 45.348485 | 936 | 0.742399 |
5ab1ff98c925b149e261a29e7831b8f8bd29e79c | 9,062 | ex | Elixir | lib/kinesis_client/stream/shard/producer.ex | saleswhale/kcl_ex | 6ed470ee8617f31b0b22f056da96b3ad88785d4b | [
"Apache-2.0"
] | 4 | 2017-12-19T15:27:54.000Z | 2021-06-04T13:04:49.000Z | lib/kinesis_client/stream/shard/producer.ex | saleswhale/kcl_ex | 6ed470ee8617f31b0b22f056da96b3ad88785d4b | [
"Apache-2.0"
] | 2 | 2021-03-05T12:01:24.000Z | 2021-12-03T22:34:24.000Z | lib/kinesis_client/stream/shard/producer.ex | saleswhale/kcl_ex | 6ed470ee8617f31b0b22f056da96b3ad88785d4b | [
"Apache-2.0"
] | 3 | 2021-02-17T16:14:11.000Z | 2021-12-10T05:26:25.000Z | defmodule KinesisClient.Stream.Shard.Producer do
@moduledoc """
Producer GenStage used in `KinesisClient.Stream.ShardConsumer` Broadway pipeline.
"""
use GenStage
require Logger
alias KinesisClient.Kinesis
alias KinesisClient.Stream.AppState
alias KinesisClient.Stream.Coordinator
@behaviour Broadway.P... | 27.295181 | 105 | 0.649194 |
5ab2038aaeeb2a734e8d9755abe41d476a86554e | 5,805 | exs | Elixir | apps/graphql/test/queries/account_queries_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | null | null | null | apps/graphql/test/queries/account_queries_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 2 | 2019-12-13T23:55:50.000Z | 2019-12-17T05:49:58.000Z | apps/graphql/test/queries/account_queries_test.exs | michaeljguarino/chartmart | a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc | [
"Apache-2.0"
] | null | null | null | defmodule GraphQl.AccountQueriesTest do
use Core.SchemaCase, async: true
import GraphQl.TestHelpers
describe "groups" do
setup [:setup_root_user]
test "it can list groups for a account", %{user: user, account: account} do
groups = insert_list(3, :group, account: account)
{:ok, %{data: %{"gro... | 28.455882 | 85 | 0.543669 |
5ab22289b495ce13e26764c2b519eb556fa44ac8 | 1,374 | ex | Elixir | lib/couch_normalizer/registry.ex | Zatvobor/couch_normalizer | 1bbde7b7235220c7e2aed9924e3781f423175afd | [
"Apache-2.0"
] | 1 | 2015-02-23T14:25:10.000Z | 2015-02-23T14:25:10.000Z | lib/couch_normalizer/registry.ex | Zatvobor/couch_normalizer | 1bbde7b7235220c7e2aed9924e3781f423175afd | [
"Apache-2.0"
] | 2 | 2015-03-05T17:02:38.000Z | 2015-03-30T10:33:29.000Z | lib/couch_normalizer/registry.ex | Zatvobor/couch_normalizer | 1bbde7b7235220c7e2aed9924e3781f423175afd | [
"Apache-2.0"
] | null | null | null | defmodule CouchNormalizer.Registry do
@doc false
def init() do
registry = :ets.new(__MODULE__, [:ordered_set, {:keypos, 1}])
:application.set_env(:couch_normalizer_manager, :registry, registry)
end
@doc false
def release() do
:ets.delete to_ets()
:application.set_env(:couch_normalizer_manage... | 27.48 | 165 | 0.673945 |
5ab29f91ed1cdcf8b49069c38d7c5dc3a3bb1ab0 | 244 | exs | Elixir | package.exs | imdeps/fun_chain | e6eede57b74e7588f7aadcf21602023a21c18910 | [
"MIT"
] | 17 | 2015-04-23T09:24:28.000Z | 2021-03-04T02:08:57.000Z | package.exs | imdeps/fun_chain | e6eede57b74e7588f7aadcf21602023a21c18910 | [
"MIT"
] | null | null | null | package.exs | imdeps/fun_chain | e6eede57b74e7588f7aadcf21602023a21c18910 | [
"MIT"
] | 3 | 2015-08-05T03:09:05.000Z | 2016-11-28T12:10:44.000Z | Expm.Package.new(
name: "fun_chain", description: "Function chaining in Erlang",
version: "0.1", keywords: ["erlang"],
maintainers: [[name: "Sasa Juric", email: "sasa.juric@gmail.com"]],
repositories: [[github: "sasa1977/fun_chain"]]
) | 40.666667 | 69 | 0.680328 |
5ab3058e548f501a3f93843fb9126ca004188b9b | 2,254 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/audit_log_config.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/audit_log_config.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/audit_log_config.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... | 43.346154 | 517 | 0.695209 |
5ab3074b88f9c9670c702ddb890b69cb5f825c71 | 1,228 | ex | Elixir | lib/graphql/resolvers/user_resolver.ex | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 15 | 2015-09-23T16:03:28.000Z | 2018-12-04T21:48:04.000Z | lib/graphql/resolvers/user_resolver.ex | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 27 | 2016-01-12T16:44:31.000Z | 2017-10-13T16:09:36.000Z | lib/graphql/resolvers/user_resolver.ex | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 4 | 2016-09-01T12:08:24.000Z | 2017-09-21T15:07:57.000Z | defmodule SlackCoder.GraphQL.Resolvers.UserResolver do
@moduledoc """
"""
alias SlackCoder.Services.UserService
alias SlackCoder.Models.User
alias SlackCoder.Repo
import Ecto.Query
import Absinthe.Resolution.Helpers, only: [batch: 3]
def list(_, %{search: q} = params, _) do
query = User.search(q) |... | 27.288889 | 68 | 0.645765 |
5ab3093e139c191e495e4a452e40e80a99d0bd9e | 1,963 | exs | Elixir | test/blog/posts_test.exs | rai200890/blog_api | e42cdc609b351baccb7b9214a0dff5365579d04d | [
"MIT"
] | null | null | null | test/blog/posts_test.exs | rai200890/blog_api | e42cdc609b351baccb7b9214a0dff5365579d04d | [
"MIT"
] | null | null | null | test/blog/posts_test.exs | rai200890/blog_api | e42cdc609b351baccb7b9214a0dff5365579d04d | [
"MIT"
] | null | null | null | defmodule Blog.PostsTest do
use Blog.DataCase
alias Blog.Posts
describe "posts" do
alias Blog.Posts.Post
@valid_attrs %{body: "some body", title: "some title"}
@update_attrs %{body: "some updated body", title: "some updated title"}
@invalid_attrs %{body: nil, title: nil}
def post_fixture(a... | 29.298507 | 82 | 0.640856 |
5ab3347647633a58bd7c6422bcac1a78427d3605 | 1,094 | ex | Elixir | lib/exshome/file_utils.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | 2 | 2021-12-21T16:32:56.000Z | 2022-02-22T17:06:39.000Z | lib/exshome/file_utils.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | lib/exshome/file_utils.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | defmodule Exshome.FileUtils do
@moduledoc """
Module responsible for working with file utilities.
"""
@doc """
Root data folder.
It stores all user data.
"""
@spec root_folder() :: String.t()
def root_folder do
Application.get_env(:exshome, :root_folder)
end
@doc """
Returns the folder for... | 24.863636 | 73 | 0.698355 |
5ab3485ec912bc9bec3ccc66a18ee6b923db8e64 | 79,816 | exs | Elixir | apps/ehealth/test/web/controllers/employee_request_controller_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/ehealth/test/web/controllers/employee_request_controller_test.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/ehealth/test/web/controllers/employee_request_controller_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule EHealth.Web.EmployeeRequestControllerTest do
@moduledoc false
use EHealth.Web.ConnCase, async: false
import Core.Expectations.Man
import Mox
alias Core.Contracts.CapitationContract
alias Core.EmployeeRequests.EmployeeRequest, as: Request
alias Core.Employees.Employee
alias Core.LegalEntitie... | 34.418284 | 120 | 0.615854 |
5ab35268879a8a678939ff6594fce27355e6f212 | 2,094 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/list_monitored_resource_descriptors_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/logging/lib/google_api/logging/v2/model/list_monitored_resource_descriptors_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/list_monitored_resource_descriptors_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 ... | 38.072727 | 266 | 0.75788 |
5ab3853a5667d55ea51ce82c55a7c1a8329f12c5 | 1,839 | exs | Elixir | test/umbra/registry_extension_test.exs | scorsi/Umbra | 16036742db98e39fdc5bf50bc63f6db7cb0e7e92 | [
"MIT"
] | null | null | null | test/umbra/registry_extension_test.exs | scorsi/Umbra | 16036742db98e39fdc5bf50bc63f6db7cb0e7e92 | [
"MIT"
] | 7 | 2020-06-07T08:26:09.000Z | 2020-06-07T08:38:36.000Z | test/umbra/registry_extension_test.exs | scorsi/Umbra | 16036742db98e39fdc5bf50bc63f6db7cb0e7e92 | [
"MIT"
] | null | null | null | defmodule Umbra.RegistryExtensionTest do
use ExUnit.Case, async: true
test "should recover pid from state" do
defmodule ASimpleRegistryGenServer do
defstruct [:id, :name]
use Umbra.GenServer, behaviour: Umbra.Behaviour.Tolerant
use Umbra.Extension.NameSetter
use Umbra.Extension.Regist... | 30.65 | 92 | 0.603045 |
5ab3a2c794dbde930feafbbb1c42d634ebffb97b | 2,804 | ex | Elixir | lib/simplates/loader.ex | clone1018/experimental-elixir-aspen | 1dd36700fe534994e5ca7e6964ce94e1f6c7369f | [
"MIT"
] | 2 | 2017-02-13T05:39:43.000Z | 2017-11-01T23:34:39.000Z | lib/simplates/loader.ex | clone1018/experimental-elixir-aspen | 1dd36700fe534994e5ca7e6964ce94e1f6c7369f | [
"MIT"
] | 10 | 2016-11-25T20:48:36.000Z | 2016-11-28T04:12:53.000Z | lib/simplates/loader.ex | LawfulGood/infuse | 1dd36700fe534994e5ca7e6964ce94e1f6c7369f | [
"MIT"
] | null | null | null | defmodule Infuse.Simplates.Loader do
@moduledoc """
Exact match routes, eg: index.html => index.html
Bound Simplate routes, eg: index.html.spt => index.html
Unbound Simplate routes, eg: index.spt => [index.json, index.xml]
"""
require Logger
alias Simplates.Simplate, as: Simplate
def start_l... | 25.724771 | 120 | 0.651569 |
5ab3ace27e2fed2f2005739712be1f2d5d3d59e8 | 1,163 | exs | Elixir | apps/util/test/distance_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/util/test/distance_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/util/test/distance_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Util.DistanceTest do
use ExUnit.Case, async: true
@position {42.57, -71.22}
@stops [
{42.593248, -71.280995},
{42.546624, -71.174334},
{42.518926, -71.252597},
{42.518651, -71.247852}
]
import Util.Distance
describe "closest/3" do
test "given a list of positions, returns a l... | 25.844444 | 86 | 0.587274 |
5ab3ae6b0e6c5fad3ef1916cbe204f1ef49b3a53 | 4,242 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1/model/binding.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/binding.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/binding.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... | 80.037736 | 1,972 | 0.751061 |
5ab44aa6f1b8955a1d7a97bfbffea21ab849a542 | 620 | ex | Elixir | lib/ex_png/chunks/ancillary.ex | mad42/ex_png | bde6fbb237c632342dc009c315125d4c3e2a8b99 | [
"Unlicense"
] | 14 | 2021-01-31T16:06:43.000Z | 2021-11-04T18:10:25.000Z | lib/ex_png/chunks/ancillary.ex | mad42/ex_png | bde6fbb237c632342dc009c315125d4c3e2a8b99 | [
"Unlicense"
] | 6 | 2021-01-31T14:52:17.000Z | 2022-02-01T08:41:03.000Z | lib/ex_png/chunks/ancillary.ex | mad42/ex_png | bde6fbb237c632342dc009c315125d4c3e2a8b99 | [
"Unlicense"
] | 2 | 2021-04-26T18:51:35.000Z | 2022-01-17T03:39:25.000Z | defmodule ExPng.Chunks.Ancillary do
@moduledoc """
Struct storage format for any ancillary chunks present in a parsed PNG image
file. Currently `ExPng` does not make use of these, but saves them in order to
retain the full original state of an image's raw data.
"""
@type t :: %__MODULE__{
type: a... | 28.181818 | 83 | 0.656452 |
5ab45891b39a3f0e8c74aea882b47c8e7e053602 | 690 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/50.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/50.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/50.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
noun cm adjective verb quantifier;
noun cm noun verb quantifier;
noun cm adjective verb quantifier;
verb pn adjective verb quantifier;
noun cm adjective verb quantifier;
noun cm noun verb quantifier;
cm cm adjective verb quantifier;
verb_aux pn adjective verb quantifier;
cm cm noun verb quant... | 31.363636 | 43 | 0.797101 |
5ab45b1d90e433054e8ba1179b3fe6e5810bb7fd | 1,882 | exs | Elixir | test/payout_test.exs | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 5 | 2017-06-23T16:09:20.000Z | 2020-03-08T15:25:41.000Z | test/payout_test.exs | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 9 | 2017-06-26T10:29:34.000Z | 2018-10-18T11:05:57.000Z | test/payout_test.exs | Capchase/gocardless | 5a3015c4614b8196aac627225691d4dc43dd661e | [
"MIT"
] | 2 | 2017-06-23T19:09:07.000Z | 2021-07-14T20:48:59.000Z | defmodule PayoutTest do
use ExUnit.Case
test "list_payouts/1 returns response formated as required" do
prepare_test()
{:ok, %{"payouts" => payouts}} = Gocardless.Client.list_payouts
assert is_list(payouts)
end
test "get_payout/1 returns a payout" do
prepare_test()
{:ok, %{"payouts" => pay... | 26.138889 | 124 | 0.60627 |
5ab45d7653d00adcc90c3f1c1c7cf15cc2548eab | 2,282 | ex | Elixir | lib/prop_web.ex | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 22 | 2021-06-29T09:25:52.000Z | 2022-03-16T09:17:24.000Z | lib/prop_web.ex | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 54 | 2021-06-28T19:54:17.000Z | 2022-03-27T06:49:30.000Z | lib/prop_web.ex | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 2 | 2022-01-08T10:16:30.000Z | 2022-02-20T09:45:50.000Z | defmodule PropWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use PropWeb, :controller
use PropWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 22.15534 | 78 | 0.676599 |
5ab46359fa1b9c5bc621bae01ed6b0d064e7004f | 281 | ex | Elixir | lib/web/controllers/user_controller.ex | oestrich/grapevine-legacy | 9d84f8e2d65dda5982686381ffa94a940142e1da | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | lib/web/controllers/user_controller.ex | oestrich/grapevine-legacy | 9d84f8e2d65dda5982686381ffa94a940142e1da | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | lib/web/controllers/user_controller.ex | oestrich/grapevine-legacy | 9d84f8e2d65dda5982686381ffa94a940142e1da | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.UserController do
use Web, :controller
plug(Web.Plugs.VerifyScopes, scope: "profile")
def show(conn, _params) do
conn
|> assign(:user, conn.assigns.current_user)
|> assign(:scopes, conn.assigns.current_scopes)
|> render("show.json")
end
end
| 21.615385 | 51 | 0.690391 |
5ab4aace48dadbf093c3d555be788cb482d8c7ce | 1,185 | ex | Elixir | lib/telcofinder_web/channels/user_socket.ex | finderbar/telcofinder | 9995a14563218bb978bdde86eb8c19ab0dbbbf0c | [
"MIT"
] | null | null | null | lib/telcofinder_web/channels/user_socket.ex | finderbar/telcofinder | 9995a14563218bb978bdde86eb8c19ab0dbbbf0c | [
"MIT"
] | null | null | null | lib/telcofinder_web/channels/user_socket.ex | finderbar/telcofinder | 9995a14563218bb978bdde86eb8c19ab0dbbbf0c | [
"MIT"
] | null | null | null | defmodule TelcofinderWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", TelcofinderWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to veri... | 31.184211 | 86 | 0.706329 |
5ab4f0f2acefd64decf7d73d851a3fbb929dee10 | 297 | ex | Elixir | lib/poison_encoder.ex | kjhnns/microblog | fc82208f46d51a40e01c618b8b4c5aa961b3b3c8 | [
"MIT"
] | 1 | 2019-03-17T15:04:36.000Z | 2019-03-17T15:04:36.000Z | lib/poison_encoder.ex | pwgn/elixbwe | ce8baedfb923d36991ff944de368ce7008e72805 | [
"MIT"
] | null | null | null | lib/poison_encoder.ex | pwgn/elixbwe | ce8baedfb923d36991ff944de368ce7008e72805 | [
"MIT"
] | null | null | null | defimpl Poison.Encoder, for: Any do
def encode(%{__struct__: _} = struct, options) do
map = struct
|> Map.from_struct
|> sanitize_map
|> Poison.Encoder.Map.encode(options)
end
defp sanitize_map(map) do
Map.drop(map, [:__meta__, :__struct__])
end
end
| 22.846154 | 51 | 0.622896 |
5ab4f101058b984e6466f952c5bbabb840b48244 | 87 | ex | Elixir | phoenix/lib/mehr_schulferien_web/views/admin/category_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/admin/category_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/admin/category_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.Admin.CategoryView do
use MehrSchulferienWeb, :view
end
| 21.75 | 50 | 0.850575 |
5ab5126dde5399f1498da1eaa0a39db2256364b1 | 1,782 | exs | Elixir | clients/recommender/mix.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/recommender/mix.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/recommender/mix.exs | 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... | 26.597015 | 102 | 0.650393 |
5ab529ad8be936af8728be7488871ed1424a16fc | 104 | exs | Elixir | test/decimal_env/operators_test.exs | gmtprime/decimal_env | 684deea2c770f4d3c197cb9e9622988f878ad23a | [
"MIT"
] | 9 | 2016-10-20T11:50:08.000Z | 2022-03-11T03:25:03.000Z | test/decimal_env/operators_test.exs | gmtprime/decimal_env | 684deea2c770f4d3c197cb9e9622988f878ad23a | [
"MIT"
] | null | null | null | test/decimal_env/operators_test.exs | gmtprime/decimal_env | 684deea2c770f4d3c197cb9e9622988f878ad23a | [
"MIT"
] | null | null | null | defmodule DecimalEnv.OperatorsTest do
use ExUnit.Case, async: true
doctest DecimalEnv.Operators
end
| 20.8 | 37 | 0.817308 |
5ab55293d85bd524873b0095266c44daf0ac574f | 1,864 | ex | Elixir | elixir/lib/homework/users.ex | eititan/web-homework | d7f6fc170009ef07e709057b9f701bdf44c4ca5b | [
"MIT"
] | null | null | null | elixir/lib/homework/users.ex | eititan/web-homework | d7f6fc170009ef07e709057b9f701bdf44c4ca5b | [
"MIT"
] | null | null | null | elixir/lib/homework/users.ex | eititan/web-homework | d7f6fc170009ef07e709057b9f701bdf44c4ca5b | [
"MIT"
] | null | null | null | defmodule Homework.Users do
@moduledoc """
The Users context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Users.User
alias Homework.Paginator
@doc """
Returns the list of users.
## Examples
iex> list_users([])
[%User{}, ...]
"""
def list_users(args) do... | 15.533333 | 59 | 0.564914 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.