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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d56e5cac4cfa4b6baec24f4a1b358b0a611e995 | 467 | exs | Elixir | priv/repo/migrations/20180123215719_default_entries.exs | minidfx/dms42 | f460b631b979bad13b9fcf97ee2f4d3d1a43fbe5 | [
"MIT"
] | 1 | 2021-03-16T11:09:25.000Z | 2021-03-16T11:09:25.000Z | priv/repo/migrations/20180123215719_default_entries.exs | minidfx/dms42 | f460b631b979bad13b9fcf97ee2f4d3d1a43fbe5 | [
"MIT"
] | 1 | 2020-03-22T14:15:13.000Z | 2020-03-22T14:15:13.000Z | priv/repo/migrations/20180123215719_default_entries.exs | minidfx/dms42 | f460b631b979bad13b9fcf97ee2f4d3d1a43fbe5 | [
"MIT"
] | null | null | null | defmodule Dms42.Repo.Migrations.DefaultEntries do
use Ecto.Migration
alias Dms42.Models.DocumentType
def change do
Dms42.Repo.insert(DocumentType.changeset(%DocumentType{}, %{name: "Default", type_id: <<145, 210, 233, 14, 217, 108, 79, 81, 159, 234, 128, 47, 152, 115, 193, 187>>}))
Dms42.Repo.insert(Docu... | 46.7 | 171 | 0.67666 |
1d57374c00513d016c6d2445a8a9790e14a8209a | 157 | exs | Elixir | elixir/elixir-elm-playground/priv/repo/migrations/20180624152500_rename_lists_to_columns.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/elixir-elm-playground/priv/repo/migrations/20180624152500_rename_lists_to_columns.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/elixir-elm-playground/priv/repo/migrations/20180624152500_rename_lists_to_columns.exs | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule Playground.Repo.Migrations.RenameListsToColumns do
use Ecto.Migration
def change do
rename table("lists"), to: table("columns")
end
end
| 19.625 | 60 | 0.751592 |
1d5741aa835547b0ebd99c647532ac711284c521 | 1,817 | ex | Elixir | lib/powit_web/controllers/post_controller.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | lib/powit_web/controllers/post_controller.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | lib/powit_web/controllers/post_controller.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | defmodule PowitWeb.PostController do
use PowitWeb, :controller
alias Powit.CMS
alias Powit.CMS.Post
import Logger
def index(conn, _params) do
posts = CMS.list_posts()
Logger.info(inspect(Pow.Plug.current_user(conn)))
render(conn, "index.html", posts: posts)
end
def new(conn, _params) do
... | 27.119403 | 67 | 0.624656 |
1d57474518b766d200d50b39b5b0c996a61abd2e | 1,622 | ex | Elixir | lib/ex_kucoin/market/order_book.ex | mlewis033/ex_kucoin | 731b7148d23f10e2ab4f23130bad2e74035a8ce0 | [
"MIT"
] | 6 | 2019-05-11T06:08:19.000Z | 2022-01-08T11:55:29.000Z | lib/ex_kucoin/market/order_book.ex | mlewis033/ex_kucoin | 731b7148d23f10e2ab4f23130bad2e74035a8ce0 | [
"MIT"
] | 25 | 2019-10-20T04:19:40.000Z | 2022-03-28T17:06:48.000Z | lib/ex_kucoin/market/order_book.ex | mlewis033/ex_kucoin | 731b7148d23f10e2ab4f23130bad2e74035a8ce0 | [
"MIT"
] | 3 | 2020-07-24T04:38:07.000Z | 2022-03-12T22:35:31.000Z | defmodule ExKucoin.Market.OrderBook do
@moduledoc """
Retrieves order books [API Docs](https://docs.kucoin.com/#get-part-order-book-aggregated)
"""
import ExKucoin.Api.Public
@type pair :: String.t()
@type depth :: 20 | 100 | nil
@doc """
Retrieve Level 2 order book data
Aggregation support is only... | 27.491525 | 91 | 0.575832 |
1d57bca24880f2d26f25434166beddecd399a5f6 | 2,478 | ex | Elixir | lib/central_web/controllers/account/registration_controller.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/central_web/controllers/account/registration_controller.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central_web/controllers/account/registration_controller.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule CentralWeb.Account.RegistrationController do
use CentralWeb, :controller
alias Central.Account
alias Central.Account.User
plug AssignPlug,
sidemenu_active: "account"
def new(conn, _params) do
changeset = Account.change_user(%User{})
conn
|> assign(:changeset, changeset)
|> pu... | 28.159091 | 88 | 0.648103 |
1d57ee25ee4d7004e2fd86a6a7d6f2d3377e66d6 | 2,144 | exs | Elixir | config/prod.exs | sFractal-Podii/quadquizaminos | 1693f2d1c6ffee33065dd2ba7d899ac4aa405762 | [
"MIT"
] | null | null | null | config/prod.exs | sFractal-Podii/quadquizaminos | 1693f2d1c6ffee33065dd2ba7d899ac4aa405762 | [
"MIT"
] | null | null | null | config/prod.exs | sFractal-Podii/quadquizaminos | 1693f2d1c6ffee33065dd2ba7d899ac4aa405762 | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 36.338983 | 66 | 0.724347 |
1d5803ea58e99e5ab6dcdf0b1a302a8f89d2c853 | 1,689 | ex | Elixir | lib/ci_fetcher/jenkins.ex | kupferwerk/ci_visuals | 95b6d56b074d6dbc0aad33764fb1dae38f1e3822 | [
"MIT"
] | null | null | null | lib/ci_fetcher/jenkins.ex | kupferwerk/ci_visuals | 95b6d56b074d6dbc0aad33764fb1dae38f1e3822 | [
"MIT"
] | null | null | null | lib/ci_fetcher/jenkins.ex | kupferwerk/ci_visuals | 95b6d56b074d6dbc0aad33764fb1dae38f1e3822 | [
"MIT"
] | null | null | null | defmodule CiVisuals.CiFetcher.Jenkins do
alias CiVisuals.ColorBroadcast.Animator
import BlockTimer
def start_link do
HTTPoison.start
start_fetching_projects
Agent.start_link(fn -> "" end, name: __MODULE__)
end
def start_fetching_projects do
apply_interval 2 |> seconds do
IO.puts "fetc... | 25.984615 | 78 | 0.693902 |
1d58139a934d00481d91bac037abdac9aeaac2ad | 906 | ex | Elixir | backend/voxel_handler/lib/voxel_handler/order.ex | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 5 | 2022-03-06T15:31:54.000Z | 2022-03-27T12:10:13.000Z | backend/voxel_handler/lib/voxel_handler/order.ex | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 9 | 2022-03-01T05:17:43.000Z | 2022-03-11T01:04:24.000Z | backend/voxel_handler/lib/voxel_handler/order.ex | SAZZM/voxel-handle2 | 2e5635a232a71f95c39407da042618017464e497 | [
"MIT"
] | 5 | 2022-03-04T15:52:44.000Z | 2022-03-27T12:16:27.000Z | defmodule VoxelHandler.Order do
use Ecto.Schema
import Ecto.Changeset
alias VoxelHandler.Repo
alias VoxelHandler.Order, as: Ele
schema "order" do
field :address, :string
field :information, :string
field :signature, :string
field :unique_id, :string
field :finished, :boolean, default: fal... | 20.133333 | 79 | 0.637969 |
1d5816012ac733417dc8ddf119c4f59b2361cb18 | 16,376 | ex | Elixir | lib/desktop/window.ex | nesimtunc/desktop | 540a9345fdeb18d299b5d749c701a49f3f57a771 | [
"MIT"
] | 779 | 2021-05-21T03:15:11.000Z | 2022-03-31T10:55:27.000Z | lib/desktop/window.ex | nesimtunc/desktop | 540a9345fdeb18d299b5d749c701a49f3f57a771 | [
"MIT"
] | 17 | 2021-05-30T19:40:13.000Z | 2022-03-29T09:42:58.000Z | lib/desktop/window.ex | nesimtunc/desktop | 540a9345fdeb18d299b5d749c701a49f3f57a771 | [
"MIT"
] | 22 | 2021-05-30T13:58:45.000Z | 2022-03-27T09:59:06.000Z | defmodule Desktop.Window do
@moduledoc ~S"""
Defines a Desktop Window.
The window hosts a Phoenix Endpoint and displays its content.
It should be part of a supervision tree and is the main interface
to interact with your application.
In total the window is doing:
* Displaying the endpoint content
... | 24.405365 | 104 | 0.606314 |
1d587363fcc26f6413a5296fde94910103aa9885 | 6,785 | exs | Elixir | test/phoenix_pubsub_nats_test.exs | netronixgroup/phoenix_pubsub_nats | 6aec86fcc603f77c2fae3c0e9f1a543f6a5f375d | [
"MIT"
] | null | null | null | test/phoenix_pubsub_nats_test.exs | netronixgroup/phoenix_pubsub_nats | 6aec86fcc603f77c2fae3c0e9f1a543f6a5f375d | [
"MIT"
] | null | null | null | test/phoenix_pubsub_nats_test.exs | netronixgroup/phoenix_pubsub_nats | 6aec86fcc603f77c2fae3c0e9f1a543f6a5f375d | [
"MIT"
] | null | null | null | defmodule PhoenixPubSubNatsTest do
use ExUnit.Case, async: true
alias Phoenix.PubSub
require Logger
defmodule PubSub.BroadcastError do
defexception [:message]
end
defmodule PubSub do
alias PubSub.BroadcastError
def subscribe(server, pid, topic, opts \\ []) do
GenServer.call(server, {:su... | 37.905028 | 126 | 0.671923 |
1d587c979fc785616c880ac215dad34262a74e0d | 4,084 | ex | Elixir | lib/day4.ex | ConnorRigby/aoc2020-2 | ce528d31bda372bd4b643e28b2eaa73b3fc89ac3 | [
"Apache-2.0"
] | null | null | null | lib/day4.ex | ConnorRigby/aoc2020-2 | ce528d31bda372bd4b643e28b2eaa73b3fc89ac3 | [
"Apache-2.0"
] | null | null | null | lib/day4.ex | ConnorRigby/aoc2020-2 | ce528d31bda372bd4b643e28b2eaa73b3fc89ac3 | [
"Apache-2.0"
] | null | null | null | defmodule Day4 do
defmodule Game do
defstruct [:draws, :boards, :found]
end
defmodule Board do
defstruct [:contents, bingo: false, win: nil, won_at: -1]
end
defmodule Item do
defstruct [:value, state: :unmarked]
end
def from_input(input) do
input
|> String.trim()
|> String.split... | 23.471264 | 142 | 0.558766 |
1d5894c63f3a6d2cc87d3a7350d518796aa05e0f | 10,905 | ex | Elixir | lib/aws/generated/access_analyzer.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/access_analyzer.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/access_analyzer.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.AccessAnalyzer do
@moduledoc """
AWS IAM Access Analyzer helps identify potential resource-access risks by
enabling you to identify any policies that grant access to an external
principal.... | 31.700581 | 104 | 0.656304 |
1d589ccf9d3f7a1832424a06569a37d5d5012e21 | 10,206 | exs | Elixir | test/cldr_messages_test.exs | elixir-cldr/cldr_messages | 1eeec3234d018b5444a9495a4e93ad8bae6e691d | [
"Apache-2.0"
] | 6 | 2019-06-09T11:55:49.000Z | 2021-08-24T07:58:32.000Z | test/cldr_messages_test.exs | elixir-cldr/cldr_messages | 1eeec3234d018b5444a9495a4e93ad8bae6e691d | [
"Apache-2.0"
] | 10 | 2020-11-14T00:29:20.000Z | 2022-01-18T21:19:59.000Z | test/cldr_messages_test.exs | elixir-cldr/cldr_messages | 1eeec3234d018b5444a9495a4e93ad8bae6e691d | [
"Apache-2.0"
] | 6 | 2020-02-12T11:37:47.000Z | 2022-01-03T14:36:52.000Z | defmodule Cldr_Messages_Test do
use ExUnit.Case
doctest Cldr.Message
test "simple formatting of a number" do
assert Cldr.Message.format("You have {number} jelly beans", number: 1234) ==
{:ok, "You have 1,234 jelly beans"}
assert Cldr.Message.format("You have {number} jelly beans", number: D... | 35.072165 | 142 | 0.571527 |
1d58b849b9be1a56ce2a5ef5c12425a9d06ff03f | 1,565 | ex | Elixir | lib/mtpo_web.ex | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | lib/mtpo_web.ex | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | lib/mtpo_web.ex | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | defmodule MtpoWeb 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 MtpoWeb, :controller
use MtpoWeb, :view
The definitions below will be executed for every view,
controller, etc, so k... | 23.014706 | 69 | 0.679233 |
1d58c07f35624119dd02ff964d0fbd7b27e22d09 | 825 | ex | Elixir | lib/user/search.ex | Lechindianer/ex_pnut | 99164b73e9b60bfccb90574dd1a6f418a7bd96ed | [
"ISC"
] | 2 | 2019-07-12T04:07:34.000Z | 2019-11-26T01:08:14.000Z | lib/user/search.ex | Lechindianer/ex_pnut | 99164b73e9b60bfccb90574dd1a6f418a7bd96ed | [
"ISC"
] | null | null | null | lib/user/search.ex | Lechindianer/ex_pnut | 99164b73e9b60bfccb90574dd1a6f418a7bd96ed | [
"ISC"
] | 1 | 2019-11-26T01:18:54.000Z | 2019-11-26T01:18:54.000Z | defmodule ExPnut.User.Search do
import ExPnut.Helper.HTTP
alias ExPnut.User.UserParams
alias ExPnut.User.SearchParams
@moduledoc """
User Search
[https://pnut.io/docs/api/resources/users/search](https://pnut.io/docs/api/resources/user/search)
"""
@doc """
Retrieve a list of users filtered by the gi... | 24.264706 | 99 | 0.620606 |
1d58c9a733344ffb123f1cb89a78226df43d8fba | 939 | ex | Elixir | test/support/structs.ex | LeonardBesson/bincode | 0e2950e6d09eaf9e9cea439e33cad5397747e331 | [
"MIT"
] | null | null | null | test/support/structs.ex | LeonardBesson/bincode | 0e2950e6d09eaf9e9cea439e33cad5397747e331 | [
"MIT"
] | null | null | null | test/support/structs.ex | LeonardBesson/bincode | 0e2950e6d09eaf9e9cea439e33cad5397747e331 | [
"MIT"
] | null | null | null | defmodule Bincode.TestStructs do
@moduledoc """
Custom structs used during tests.
"""
import Bincode.Structs
declare_enum(SomeEnum,
VariantA: [],
VariantB: [tuple: {:u32, :f64, :string}],
VariantC: [a_byte: :u8, a_string: :string]
)
declare_enum(NestedEnum,
VariantA: [an_enum: Bincode.Te... | 24.710526 | 86 | 0.70181 |
1d58cf336f7ea54ab114ae931b6b623e55c7afff | 2,123 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/list_custom_bidding_algorithms_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_custom_bidding_algorithms_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/list_custom_bidding_algorithms_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.6 | 311 | 0.75365 |
1d58d184785cf52b226672ba97c7354614044756 | 858 | ex | Elixir | lib/token_authorization.ex | Sebi55/ocpp-backend | e2c4920aa3d2986934a17e904d7836d4f2a91945 | [
"MIT"
] | 11 | 2019-03-06T12:44:46.000Z | 2022-01-20T10:41:30.000Z | lib/token_authorization.ex | Sebi55/ocpp-backend | e2c4920aa3d2986934a17e904d7836d4f2a91945 | [
"MIT"
] | 3 | 2019-03-06T13:29:36.000Z | 2020-03-21T15:40:47.000Z | lib/token_authorization.ex | Sebi55/ocpp-backend | e2c4920aa3d2986934a17e904d7836d4f2a91945 | [
"MIT"
] | 4 | 2019-03-06T13:24:13.000Z | 2021-12-22T09:17:56.000Z | defmodule TokenAuthorisation do
use GenServer
import Logger
@moduledoc """
Module that provides a very simple token authorization mechanism
"""
def init(args) do
{:ok, args}
end
def start_link(_) do
{:ok, pid} = GenServer.start_link(__MODULE__, [], name: __MODULE__)
info "Started #{__MO... | 21.45 | 71 | 0.601399 |
1d58db1e28c3fe330cd336237c787861ae880588 | 3,835 | exs | Elixir | test/acceptance/ast/paragraphs/annotated_paragraphs_test.exs | akash-akya/earmark_parser | de2216ca0622a9d2491ea2295d0be1bedcaf64c6 | [
"Apache-2.0"
] | 32 | 2020-07-01T17:25:08.000Z | 2022-03-23T05:38:38.000Z | test/acceptance/ast/paragraphs/annotated_paragraphs_test.exs | akash-akya/earmark_parser | de2216ca0622a9d2491ea2295d0be1bedcaf64c6 | [
"Apache-2.0"
] | 91 | 2020-06-30T09:08:00.000Z | 2022-03-24T18:11:16.000Z | test/acceptance/ast/paragraphs/annotated_paragraphs_test.exs | akash-akya/earmark_parser | de2216ca0622a9d2491ea2295d0be1bedcaf64c6 | [
"Apache-2.0"
] | 22 | 2020-07-02T08:50:17.000Z | 2022-02-21T08:31:27.000Z | defmodule Acceptance.Ast.Paragraphs.AnnotatedParagraphsTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, as_ast: 2, parse_html: 1]
import EarmarkAstDsl
@annotation "--"
describe "Paragraphs" do
test "a para -- non-regression" do
markdown = "aaa\n\nbbb\n"
html ... | 29.728682 | 101 | 0.545241 |
1d59147fab9931ee64f2c19ba827fb19716479b5 | 1,081 | ex | Elixir | lib/rocketpay/user.ex | cassiofariasmachado/rocketpay | 7d8cf92f41b67b3861e0e2952579693efe11116b | [
"MIT"
] | null | null | null | lib/rocketpay/user.ex | cassiofariasmachado/rocketpay | 7d8cf92f41b67b3861e0e2952579693efe11116b | [
"MIT"
] | null | null | null | lib/rocketpay/user.ex | cassiofariasmachado/rocketpay | 7d8cf92f41b67b3861e0e2952579693efe11116b | [
"MIT"
] | null | null | null | defmodule Rocketpay.User do
use Ecto.Schema
alias Ecto.Changeset
alias Rocketpay.Account
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@required_params [:name, :age, :email, :password, :nickname]
schema "users" do
field :name, :string
field :age, :integer
field ... | 25.139535 | 99 | 0.689177 |
1d591cbde134d5ce44fa18716e955969779a0aff | 28,119 | exs | Elixir | lib/elixir/test/elixir/dynamic_supervisor_test.exs | matiasgarciaisaia/elixir | d0a3fdbfd774e0a6972513dcb82c2683400e67a0 | [
"Apache-2.0"
] | 1 | 2015-11-24T23:39:25.000Z | 2015-11-24T23:39:25.000Z | lib/elixir/test/elixir/dynamic_supervisor_test.exs | lau/elixir | 6cfe09c50b5f612e473725623d901080077ad6a6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/dynamic_supervisor_test.exs | lau/elixir | 6cfe09c50b5f612e473725623d901080077ad6a6 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule DynamicSupervisorTest do
use ExUnit.Case, async: true
defmodule Simple do
use DynamicSupervisor
def init(args), do: args
end
test "can be supervised directly" do
children = [{DynamicSupervisor, strategy: :one_for_one, name: :dyn_sup_spec_te... | 39.382353 | 98 | 0.652157 |
1d59378c021ec31ee73dda1958bfc0983fcbd338 | 1,922 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_statistics.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/live_broadcast_statistics.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/live_broadcast_statistics.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... | 40.893617 | 449 | 0.759625 |
1d593c366d492adb07ca4d7df3abbad0cb440bf3 | 82 | ex | Elixir | ModulesAndFunctions/4.ex | RckMrkr/Programming-Elixir | 0aa6d8e3233d4631db54e4103a206bff126cb953 | [
"MIT"
] | null | null | null | ModulesAndFunctions/4.ex | RckMrkr/Programming-Elixir | 0aa6d8e3233d4631db54e4103a206bff126cb953 | [
"MIT"
] | null | null | null | ModulesAndFunctions/4.ex | RckMrkr/Programming-Elixir | 0aa6d8e3233d4631db54e4103a206bff126cb953 | [
"MIT"
] | null | null | null | defmodule Sum do
def run(0), do: 0
def run(n) when n > 0, do: n + run(n-1)
end | 16.4 | 40 | 0.585366 |
1d593f481fe7136f4f605898e7b74273183e3bbf | 2,179 | ex | Elixir | lib/mollie/customers.ex | drumusician/mollie | 228c3a08ccb9c932ee3fc4ef0143121366f1407c | [
"MIT"
] | null | null | null | lib/mollie/customers.ex | drumusician/mollie | 228c3a08ccb9c932ee3fc4ef0143121366f1407c | [
"MIT"
] | null | null | null | lib/mollie/customers.ex | drumusician/mollie | 228c3a08ccb9c932ee3fc4ef0143121366f1407c | [
"MIT"
] | null | null | null | defmodule Mollie.Customers do
import Mollie
alias Mollie.Client
@doc """
Retrieve all customers created. Results are paginated.
## Example
Mollie.Customers.list client
More info at: https://docs.mollie.com/reference/v2/customers-api/list-customers
"""
@spec list(Client.t(), map | list) :: Moll... | 23.684783 | 103 | 0.655346 |
1d5940935fe052d494743aabe7382d69e0fcffe1 | 410 | exs | Elixir | day2/test/part2_test.exs | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | day2/test/part2_test.exs | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | day2/test/part2_test.exs | ryanbillingsley/advent_of_code | 9219a4b763966b70caed85865bb073a26bb3a705 | [
"MIT"
] | null | null | null | defmodule Part2est do
use ExUnit.Case, async: true
require Day2.Part2
test "Calculate ribbon needed for box" do
input = [2,3,4]
expect = 34
actual = Day2.Part2.calculate_ribbon(input, 0)
assert expect == actual
end
test "Santize dimensions" do
input = "12x10x3"
expect = [12,10,3]
... | 17.826087 | 50 | 0.665854 |
1d59439b46bb4dac23645d4a64f339278c278036 | 1,781 | ex | Elixir | clients/content/lib/google_api/content/v2/model/accounts_link_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_link_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_link_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.981481 | 148 | 0.728804 |
1d5949cc5e049ca01ad9209d6c949ebffc8fc216 | 19,713 | ex | Elixir | lib/phoenix/tracker/state.ex | Goose97/phoenix_pubsub | 35e7c54a6f32babea1638f6c5b74575a66a2fe6f | [
"MIT"
] | 524 | 2016-01-22T23:51:56.000Z | 2022-03-26T00:33:43.000Z | lib/phoenix/tracker/state.ex | Goose97/phoenix_pubsub | 35e7c54a6f32babea1638f6c5b74575a66a2fe6f | [
"MIT"
] | 136 | 2016-01-22T01:51:57.000Z | 2022-03-23T11:13:56.000Z | lib/phoenix/tracker/state.ex | Goose97/phoenix_pubsub | 35e7c54a6f32babea1638f6c5b74575a66a2fe6f | [
"MIT"
] | 132 | 2016-01-21T21:20:12.000Z | 2022-03-22T09:33:12.000Z | defmodule Phoenix.Tracker.State do
@moduledoc false
alias Phoenix.Tracker.{State, Clock}
@type name :: term
@type topic :: String.t
@type key :: term
@type meta :: map
@type ets_id :: :ets.tid
@type clock :: pos_integer
@type tag :: {name, clock}
@type cloud ... | 33.755137 | 114 | 0.602749 |
1d595565733e61d714640dae9c2297a1f922fc0c | 76 | exs | Elixir | first_steps/functions-5.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | first_steps/functions-5.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | first_steps/functions-5.exs | karlosmid/book_programming_elixir_12 | 53769b35728a82eddde3a21d4cbd45c1c21596a4 | [
"MIT"
] | null | null | null | IO.inspect Enum.map [1,2,3,4], &(&1 + 2)
Enum.each [1,2,3,4], &IO.inspect/1
| 25.333333 | 40 | 0.578947 |
1d5955fc962054878c48b260d722dc2255a4556a | 1,052 | exs | Elixir | config/dev.exs | rx007/phoenix | a028664bd76ffed57071b222263c1c3130b3a110 | [
"MIT"
] | null | null | null | config/dev.exs | rx007/phoenix | a028664bd76ffed57071b222263c1c3130b3a110 | [
"MIT"
] | null | null | null | config/dev.exs | rx007/phoenix | a028664bd76ffed57071b222263c1c3130b3a110 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :phoenix, Phoenix.Endpoint,
http: [port: 4000]... | 29.222222 | 63 | 0.708175 |
1d597367bd183c7d18526a49508a324ff67f1714 | 436 | exs | Elixir | .check.exs | katafrakt/modular | d8bd94b91e20a51b13b28b71d1602e3877518688 | [
"MIT"
] | 7 | 2019-11-21T19:51:50.000Z | 2021-12-23T02:42:14.000Z | .check.exs | katafrakt/modular | d8bd94b91e20a51b13b28b71d1602e3877518688 | [
"MIT"
] | 1 | 2021-03-08T00:39:55.000Z | 2021-03-08T00:39:55.000Z | .check.exs | katafrakt/modular | d8bd94b91e20a51b13b28b71d1602e3877518688 | [
"MIT"
] | 2 | 2020-09-17T17:46:26.000Z | 2021-03-05T12:28:47.000Z | [
tools: [
{:dialyzer, false},
{:sobelow, false},
{:umbrella_root,
command: "mix do clean, check",
cd: "examples/foo_umbrella"},
{:umbrella_foo,
command: "mix do clean, check",
cd: "examples/foo_umbrella/apps/foo",
run_after: [:umbrella_root]},
{:umbrella_bar,
c... | 24.222222 | 43 | 0.587156 |
1d59b3fb2aa8b6767adce3d502f36862cad8f451 | 7,418 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/api/operations.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/api/operations.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/api/operations.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... | 51.158621 | 1,195 | 0.682664 |
1d59cc39474fe391d36b248ce5c918971a63a401 | 1,811 | ex | Elixir | web/controllers/show_controller.ex | tedstrauss/sonar | 65de7a9a78eae9fd4e02f5abdf00f9fdec19b081 | [
"MIT"
] | 1 | 2020-07-17T14:02:31.000Z | 2020-07-17T14:02:31.000Z | web/controllers/show_controller.ex | tedstrauss/sonar | 65de7a9a78eae9fd4e02f5abdf00f9fdec19b081 | [
"MIT"
] | null | null | null | web/controllers/show_controller.ex | tedstrauss/sonar | 65de7a9a78eae9fd4e02f5abdf00f9fdec19b081 | [
"MIT"
] | 1 | 2019-12-02T17:51:36.000Z | 2019-12-02T17:51:36.000Z | defmodule Sonar.ShowController do
use Sonar.Web, :controller
alias Sonar.Show
plug Sonar.Plug.Authenticate
plug Sonar.Plug.Authorize
def index(conn, _params) do
shows = Repo.all(Show)
render(conn, "index.html", shows: shows)
end
def new(conn, _params) do
changeset = Show.changeset(%Show{})... | 26.246377 | 67 | 0.614025 |
1d5a178b0282c9e6199ac33f90ad72caeddb9a77 | 1,216 | ex | Elixir | lib/survey_api_web/views/error_helpers.ex | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | lib/survey_api_web/views/error_helpers.ex | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | lib/survey_api_web/views/error_helpers.ex | AkioCode/elixir-survey | 420f4e5f60b84d381707f162b473dd91eb0fe9f2 | [
"MIT"
] | null | null | null | defmodule SurveyApiWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static ar... | 35.764706 | 78 | 0.672697 |
1d5a34ba8fa58cd8602c8d7bcc289301840329cb | 95 | exs | Elixir | ChatServer/test/chat_test.exs | skellock/phoenix-react-native-mashup | 3c22b7ae060c0c2a5b18f459d6a65b7c6defbbe9 | [
"MIT"
] | 212 | 2016-02-13T16:29:29.000Z | 2021-11-14T18:32:43.000Z | ChatServer/test/chat_test.exs | skellock/phoenix-react-native-mashup | 3c22b7ae060c0c2a5b18f459d6a65b7c6defbbe9 | [
"MIT"
] | 1 | 2016-10-19T20:56:27.000Z | 2016-12-07T01:47:10.000Z | ChatServer/test/chat_test.exs | skellock/phoenix-react-native-mashup | 3c22b7ae060c0c2a5b18f459d6a65b7c6defbbe9 | [
"MIT"
] | 46 | 2016-02-15T21:57:12.000Z | 2021-07-06T21:53:37.000Z | defmodule ChatTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 11.875 | 21 | 0.642105 |
1d5a57fbbddad94ef8400540960d4a5a0ab5f273 | 5,638 | ex | Elixir | lib/prom_ex/dashboard_uploader.ex | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | null | null | null | lib/prom_ex/dashboard_uploader.ex | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | null | null | null | lib/prom_ex/dashboard_uploader.ex | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | null | null | null | defmodule PromEx.DashboardUploader do
@moduledoc """
This GenServer is responsible for uploading the configured PromEx module
dashboards to Grafana. This is a transient process and will terminate after
the dashboards have been successfully uploaded. It requires the name of the
PromEx module as an option so th... | 32.402299 | 118 | 0.699716 |
1d5a6b6825455d5ec1cc4d3a367b91919ff836df | 3,082 | exs | Elixir | test/bugsnex/notice_test.exs | smaximov/bugsnex | 33183dd853b2dd9d3bc319413850a5cefcb96bad | [
"MIT"
] | null | null | null | test/bugsnex/notice_test.exs | smaximov/bugsnex | 33183dd853b2dd9d3bc319413850a5cefcb96bad | [
"MIT"
] | null | null | null | test/bugsnex/notice_test.exs | smaximov/bugsnex | 33183dd853b2dd9d3bc319413850a5cefcb96bad | [
"MIT"
] | null | null | null | defmodule Bugsnex.NoticeTest do
use ExUnit.Case
alias Bugsnex.Notice
@exception_message "The message of the exception!"
@stacktrace [{TestModule, :some_function, 2, []}]
@exception %ArgumentError{message: @exception_message}
@metadata %{}
test "new notice contains the api key" do
notice = Notice.new... | 35.837209 | 98 | 0.691759 |
1d5a8b6ecbe1e8e1a07fee379eeff64b16cc05bd | 2,330 | ex | Elixir | clients/container/lib/google_api/container/v1/model/node_management.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/node_management.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/node_management.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... | 39.491525 | 156 | 0.730901 |
1d5a9a7d7131c4fec32736290a6b0bce3b86b140 | 2,809 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_ios_app_data_stream.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_ios_app_data_stream.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_ios_app_data_stream.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.925373 | 214 | 0.717337 |
1d5aadcc4eaff0e1781c7910e71fe76545545e9e | 30,369 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/users.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/users.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/users.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... | 43.759366 | 315 | 0.610985 |
1d5ade19225c8d449b6cd51c48e3945a524b44ed | 1,250 | ex | Elixir | lib/menu_planner/web/views/error_helpers.ex | KZeillmann/MenuPlanner | 56bd6afca8e321261720dc290f180f4944b8b483 | [
"MIT"
] | null | null | null | lib/menu_planner/web/views/error_helpers.ex | KZeillmann/MenuPlanner | 56bd6afca8e321261720dc290f180f4944b8b483 | [
"MIT"
] | null | null | null | lib/menu_planner/web/views/error_helpers.ex | KZeillmann/MenuPlanner | 56bd6afca8e321261720dc290f180f4944b8b483 | [
"MIT"
] | null | null | null | defmodule MenuPlanner.Web.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(... | 30.487805 | 81 | 0.6712 |
1d5ae4dd9598d73a806da7dbe2f53446bf930037 | 176 | exs | Elixir | .formatter.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | .formatter.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 5 | 2020-07-16T07:20:21.000Z | 2021-09-22T10:18:04.000Z | .formatter.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | [
inputs: [
"lib/**/*.{ex,exs}",
"test/**/*.{ex,exs}",
"mix.exs"
],
locals_without_parens: [
inspect: 1,
inspect: 2,
throw: 1,
raise: 1
]
]
| 12.571429 | 26 | 0.443182 |
1d5afd073284fa833ffb32c5ebf71f0f22d90751 | 3,774 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_app.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_app.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_app.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... | 58.061538 | 640 | 0.713831 |
1d5b0372b851745fee7b3d652ef12cb7a17702cf | 371 | ex | Elixir | 2021/day01/lib/day01.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2021/day01/lib/day01.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2021/day01/lib/day01.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | defmodule Day01 do
@moduledoc """
Documentation for `Day01`.
"""
def part1(numls) do
Enum.reduce(numls, {List.first(numls), 0}, fn x, {prev, count} ->
if x > prev, do: {x, count+1}, else: {x, count}
end)
|> elem(1)
end
def part2(numls) do
Stream.chunk_every(numls, 3, 1, :discard)
... | 19.526316 | 69 | 0.571429 |
1d5b35bbcad06aab9277672cdf9e57970fb7e3cb | 1,554 | ex | Elixir | clients/redis/lib/google_api/redis/v1/model/failover_instance_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/redis/lib/google_api/redis/v1/model/failover_instance_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/redis/lib/google_api/redis/v1/model/failover_instance_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.06383 | 215 | 0.749035 |
1d5b3e963e9b81d60b1667cf9d435b9c9e6cc3e7 | 298 | exs | Elixir | test/elixir_google_scraper_web/controllers/page_controller_test.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | test/elixir_google_scraper_web/controllers/page_controller_test.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | 25 | 2021-05-21T02:23:37.000Z | 2021-07-09T09:22:32.000Z | test/elixir_google_scraper_web/controllers/page_controller_test.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | defmodule ElixirGoogleScraperWeb.PageControllerTest do
use ElixirGoogleScraperWeb.ConnCase
describe "GET index/2" do
test "renders the welcome message", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Google Scraper App"
end
end
end
| 27.090909 | 72 | 0.711409 |
1d5ba9163378e4328fb6ca91518c24300c53862b | 16,014 | ex | Elixir | lib/nostrum/voice.ex | Awlexus/nostrum | bbbff7e211592660854576fef5a66506983e4fcf | [
"MIT"
] | null | null | null | lib/nostrum/voice.ex | Awlexus/nostrum | bbbff7e211592660854576fef5a66506983e4fcf | [
"MIT"
] | null | null | null | lib/nostrum/voice.ex | Awlexus/nostrum | bbbff7e211592660854576fef5a66506983e4fcf | [
"MIT"
] | null | null | null | defmodule Nostrum.Voice do
@moduledoc """
Interface for playing audio through Discord's voice channels.
# Using Discord Voice Channels
To play sound in Discord with Nostrum, you'll need `ffmpeg` to be installed.
If you don't have the executable `ffmpeg` in the path, the absolute path may
be configured thro... | 33.15528 | 154 | 0.68565 |
1d5bd6e5ac4475801ce68a3d6eb2c4adc6839336 | 6,333 | ex | Elixir | lib/elixir/lib/macro/env.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/elixir/lib/macro/env.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/macro/env.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2018-04-18T11:25:33.000Z | 2018-04-18T11:25:33.000Z | defmodule Macro.Env do
@moduledoc """
A struct that holds compile time environment information.
The current environment can be accessed at any time as
`__ENV__/0`. Inside macros, the caller environment can be
accessed as `__CALLER__/0`.
An instance of `Macro.Env` must not be modified by hand. If you need ... | 29.732394 | 82 | 0.645192 |
1d5bf6e5b8ee332bebe40b2f1d07cadf143ba46d | 708 | exs | Elixir | mix.exs | lau/cod_assist | 6a1b380b42a74386c7a3a72b80e92404278623f7 | [
"Apache-2.0"
] | 2 | 2016-09-16T06:39:30.000Z | 2018-01-02T10:59:05.000Z | mix.exs | lau/cod_assist | 6a1b380b42a74386c7a3a72b80e92404278623f7 | [
"Apache-2.0"
] | null | null | null | mix.exs | lau/cod_assist | 6a1b380b42a74386c7a3a72b80e92404278623f7 | [
"Apache-2.0"
] | null | null | null | defmodule CodAssist.Mixfile do
use Mix.Project
def project do
[app: :cod_assist,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for... | 20.228571 | 77 | 0.601695 |
1d5c0d2dd87b5007adbdc2e09d6d4c47058438a7 | 842 | ex | Elixir | lib/khafra/generate/template.ex | praxis-of-nines/khemia-search | 554df16836b8d98e993d72a2a2b17894f1e25454 | [
"MIT"
] | 7 | 2019-02-05T20:58:56.000Z | 2020-05-29T13:34:32.000Z | lib/khafra/generate/template.ex | praxis-of-nines/khafra-search | 554df16836b8d98e993d72a2a2b17894f1e25454 | [
"MIT"
] | null | null | null | lib/khafra/generate/template.ex | praxis-of-nines/khafra-search | 554df16836b8d98e993d72a2a2b17894f1e25454 | [
"MIT"
] | null | null | null | defmodule Khafra.Generate.Template do
@moduledoc """
Helper functions useful for generating template strings
"""
def non_unique_arg(map, list_key, key, arg) do
case Map.has_key?(map, list_key) do
true -> Map.replace!(map, list_key, [line_item(key, arg)|map[list_key]])
false -> Map.put(map, list... | 35.083333 | 98 | 0.691211 |
1d5c2e2c4fd2264c205f339c4780fb5da6c0896d | 5,577 | ex | Elixir | lib/xlsxir/parse_worksheet.ex | hacera/xlsxir | 769951254e6e67ac87a15ea6ac1ef4d091975d1f | [
"MIT"
] | 129 | 2017-10-24T17:32:28.000Z | 2022-03-10T15:22:53.000Z | lib/xlsxir/parse_worksheet.ex | hacera/xlsxir | 769951254e6e67ac87a15ea6ac1ef4d091975d1f | [
"MIT"
] | 34 | 2017-10-17T19:00:51.000Z | 2022-01-17T18:26:04.000Z | lib/xlsxir/parse_worksheet.ex | hacera/xlsxir | 769951254e6e67ac87a15ea6ac1ef4d091975d1f | [
"MIT"
] | 53 | 2017-10-25T05:48:49.000Z | 2022-02-16T10:25:36.000Z | defmodule Xlsxir.ParseWorksheet do
alias Xlsxir.{ConvertDate, ConvertDateTime, SaxError}
import Xlsxir.ConvertDate, only: [convert_char_number: 1]
require Logger
@moduledoc """
Holds the SAX event instructions for parsing worksheet data via `Xlsxir.SaxParser.parse/2`
"""
defstruct row: [],
c... | 28.166667 | 149 | 0.590102 |
1d5c3b844e158635e1ae9283698fdffb73f0c82f | 1,574 | exs | Elixir | lib/mix/test/mix/deps_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/mix/test/mix/deps_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/deps_test.exs | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Mix.DepsTest do
use MixTest.Case
defmodule DepsApp do
def project do
[
deps: [
{ :ok, "0.1.0", github: "elixir-lang/ok" },
{ :invalidvsn, "0.2.0", path: "deps/invalidvsn" },
{ :invalidapp, "0.1.0", pa... | 30.269231 | 96 | 0.585769 |
1d5c410f2b5ac49281ba017dd20c8e812b052f71 | 250 | exs | Elixir | test/views/admin/article_view_test.exs | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | null | null | null | test/views/admin/article_view_test.exs | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | 30 | 2016-08-21T18:33:11.000Z | 2020-04-12T23:16:18.000Z | test/views/admin/article_view_test.exs | exterm/scripture | eec53d2626f8484c03ad0545feffc73ec276fcab | [
"MIT"
] | null | null | null | defmodule Scripture.Admin.ArticleViewTest do
use Scripture.ConnCase, async: true
import Scripture.Admin.ArticleView
test "truncate" do
assert truncate("hallo", 200) == "hallo"
assert truncate("Hallo Bernd", 5) == "Hallo..."
end
end
| 22.727273 | 51 | 0.708 |
1d5c6e3a4e994a4dda722c5466193f577e70d0c5 | 77 | ex | Elixir | lib/battletracker/repo.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | lib/battletracker/repo.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | lib/battletracker/repo.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | defmodule Battletracker.Repo do
use Ecto.Repo, otp_app: :battletracker
end
| 19.25 | 40 | 0.805195 |
1d5c7df4bd5fb5b446e30cfcc5866e4d9f05bf0f | 6,159 | ex | Elixir | apps/astarte_appengine_api/lib/astarte_appengine_api_web/controllers/fallback_controller.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | null | null | null | apps/astarte_appengine_api/lib/astarte_appengine_api_web/controllers/fallback_controller.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | null | null | null | apps/astarte_appengine_api/lib/astarte_appengine_api_web/controllers/fallback_controller.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 28.123288 | 98 | 0.689885 |
1d5ccd51a4761d67717330d11f4eea174062b6f2 | 503 | ex | Elixir | lib/app/local_copy/category.ex | vsyrovat/awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 2 | 2019-12-17T11:40:54.000Z | 2019-12-22T17:15:29.000Z | lib/app/local_copy/category.ex | vsyrovat/funbox_awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 5 | 2020-10-08T20:36:07.000Z | 2020-10-08T21:27:28.000Z | lib/app/local_copy/category.ex | vsyrovat/awesome-elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | null | null | null | defmodule App.LocalCopy.Category do
use Ecto.Schema
import Ecto.Changeset
schema "categories" do
field :description, :string
field :name, :string
field :checked_at, :naive_datetime
field :repositories, {:array, :string}
timestamps()
end
@doc false
def changeset(category, attrs) do
... | 22.863636 | 69 | 0.687873 |
1d5ce5fadf255c8b17426e3e35fbebd1a8445e08 | 7,585 | exs | Elixir | apps/omg/test/omg/block_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg/test/omg/block_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg/test/omg/block_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.213992 | 120 | 0.586948 |
1d5cfea868f005a7cd2ac1c139e3a8eb14919d57 | 4,144 | exs | Elixir | priv/repo/migrations/20200415184200_stored_procedures1.exs | Neophen/kandesk | 69fe974a62efb53a734089f274be4b10640e09a1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200415184200_stored_procedures1.exs | Neophen/kandesk | 69fe974a62efb53a734089f274be4b10640e09a1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200415184200_stored_procedures1.exs | Neophen/kandesk | 69fe974a62efb53a734089f274be4b10640e09a1 | [
"MIT"
] | null | null | null | defmodule Kandesk.Repo.Migrations.StoredProcedures1 do
use Ecto.Migration
def change do
execute ~S"""
DROP FUNCTION public.sp_delete_board(bigint);
"""
execute ~S"""
CREATE OR REPLACE FUNCTION sp_delete_board(v_board_id bigint)
RETURNS integer AS $$
DECLARE
v_count integer;
BEGIN
delete from tasks
... | 19.923077 | 76 | 0.663369 |
1d5d0821e3d47fb04aa9983c208f0a76ac29ac37 | 1,199 | ex | Elixir | lib/badges_web/live/test_live/topic_live/index.ex | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | lib/badges_web/live/test_live/topic_live/index.ex | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | lib/badges_web/live/test_live/topic_live/index.ex | TomGrozev/SAD-Badges | a94331433ea21a0d719216ac8473e706166d6004 | [
"MIT"
] | null | null | null | defmodule BadgesWeb.TestLive.TopicLive.Index do
use BadgesWeb, :live_view
alias Badges.Tests
alias Badges.Tests.Topic
@impl true
def mount(%{"test_id" => test_id}, _session, socket) do
test = Tests.get_test!(test_id)
{:ok,
socket
|> assign(:test, test)
|> assign(:topics, list_topics(... | 23.057692 | 73 | 0.65221 |
1d5d4ff8ae4d19ca5c051021a6090557426a84c9 | 196 | exs | Elixir | priv/repo/migrations/20170214181251_add_authors.exs | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170214181251_add_authors.exs | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | 1 | 2018-09-24T21:48:46.000Z | 2018-09-24T21:48:46.000Z | priv/repo/migrations/20170214181251_add_authors.exs | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | defmodule Calcinator.Resources.Ecto.Repo.Repo.Migrations.AddAuthors do
use Ecto.Migration
def change do
create table(:authors) do
add(:name, :string, null: false)
end
end
end
| 19.6 | 70 | 0.714286 |
1d5d5b9f01eaf6233b980cd2585f0f66d7cf273f | 224 | ex | Elixir | lib/ex_admin/themes/admin_lte2/page.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2018-08-30T20:20:56.000Z | 2018-08-30T20:20:56.000Z | lib/ex_admin/themes/admin_lte2/page.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | null | null | null | lib/ex_admin/themes/admin_lte2/page.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | 2 | 2018-07-12T07:44:50.000Z | 2018-07-19T11:45:09.000Z | defmodule ExAdmin.Theme.AdminLte2.Page do
@moduledoc false
use Xain
def columns(cols) do
count = Kernel.div 12, Enum.count(cols)
for html <- cols do
div html, class: "col-lg-#{count}"
end
end
end
| 18.666667 | 43 | 0.651786 |
1d5dda9c9f7d1b041b3d70d512453e66c3dddeff | 599 | ex | Elixir | lib/console/net_ids/net_id.ex | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | null | null | null | lib/console/net_ids/net_id.ex | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | 14 | 2022-03-02T17:01:59.000Z | 2022-03-30T17:45:47.000Z | lib/console/net_ids/net_id.ex | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | null | null | null | defmodule Console.NetIds.NetId do
use Ecto.Schema
import Ecto.Changeset
alias Console.Organizations.Organization
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "net_ids" do
field :value, :integer
belongs_to :organization, Organization
timestamps()
end... | 24.958333 | 108 | 0.719533 |
1d5dfa13292c2354ea5e18d094cbe5a274bcac6c | 724 | ex | Elixir | lib/elixir_films_web/gettext.ex | abmBispo/elixir-films | a8464c0cf180be4e8c5835da2702b73aeb5b0cd2 | [
"MIT"
] | null | null | null | lib/elixir_films_web/gettext.ex | abmBispo/elixir-films | a8464c0cf180be4e8c5835da2702b73aeb5b0cd2 | [
"MIT"
] | null | null | null | lib/elixir_films_web/gettext.ex | abmBispo/elixir-films | a8464c0cf180be4e8c5835da2702b73aeb5b0cd2 | [
"MIT"
] | null | null | null | defmodule ElixirFilmsWeb.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 ElixirFilmsWeb.Gettext
# Simple translation
gettext("H... | 28.96 | 72 | 0.683702 |
1d5e2b312a7154b034e82d8bd7401ffd02359e71 | 3,031 | ex | Elixir | lib/serum/build/file_processor/page.ex | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | 1 | 2019-06-21T10:55:33.000Z | 2019-06-21T10:55:33.000Z | lib/serum/build/file_processor/page.ex | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | null | null | null | lib/serum/build/file_processor/page.ex | starbelly/Serum | 6bb1b8ee1dbc457e278087bf605c964dac9e5d3d | [
"MIT"
] | null | null | null | defmodule Serum.Build.FileProcessor.Page do
@moduledoc false
alias Serum.Markdown
alias Serum.Page
alias Serum.Plugin
alias Serum.Project
alias Serum.Renderer
alias Serum.Result
alias Serum.Template
alias Serum.Template.Compiler, as: TC
@doc false
@spec preprocess_pages([Serum.File.t()], Project... | 29.144231 | 90 | 0.617288 |
1d5e5406c8fe6c144d7a6116bdc46503bb5dea7d | 1,945 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/counter_structured_name_and_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/counter_structured_name_and_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/counter_structured_name_and_metadata.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... | 38.9 | 131 | 0.755784 |
1d5e6a03f0569138c68f4d8a4944b5953936e50d | 1,314 | ex | Elixir | lib/koans/20_comprehensions.ex | themichaelyang/elixir-koans-solutions | 35f6857bb62b22f3a21da21af753cdb484f884a8 | [
"MIT"
] | null | null | null | lib/koans/20_comprehensions.ex | themichaelyang/elixir-koans-solutions | 35f6857bb62b22f3a21da21af753cdb484f884a8 | [
"MIT"
] | null | null | null | lib/koans/20_comprehensions.ex | themichaelyang/elixir-koans-solutions | 35f6857bb62b22f3a21da21af753cdb484f884a8 | [
"MIT"
] | null | null | null | defmodule Comprehensions do
use Koans
@intro "A comprehension is made of three parts: generators, filters, and collectibles. We will look at how these interact with each other"
koan "The generator, `n <- [1, 2, 3, 4]`, is providing the values for our comprehension" do
assert (for n <- [1, 2, 3, 4], do: n * ... | 37.542857 | 140 | 0.598935 |
1d5e959e2e71b4438714739cbb48c5e7150502c8 | 4,385 | exs | Elixir | address_validator/apps/address_validator_api/spec/address_validator_api/address_validator_api_spec.exs | aikssen/address_hackaton | 38f608d23705052776ce26f38ba67a6c1ef52ab2 | [
"MIT"
] | null | null | null | address_validator/apps/address_validator_api/spec/address_validator_api/address_validator_api_spec.exs | aikssen/address_hackaton | 38f608d23705052776ce26f38ba67a6c1ef52ab2 | [
"MIT"
] | null | null | null | address_validator/apps/address_validator_api/spec/address_validator_api/address_validator_api_spec.exs | aikssen/address_hackaton | 38f608d23705052776ce26f38ba67a6c1ef52ab2 | [
"MIT"
] | null | null | null | defmodule AddressValidatorApiSpec do
@moduledoc """
describe: wraps a set of tests against one functionality
context: wraps a set of tests against one functionality under the same state
describe > context > it
describe "launch the rocket"
context "all ready"
it "launch the rocket"
... | 56.217949 | 1,021 | 0.516306 |
1d5ea57c0130d43a744ace8e712c1b7a195b9181 | 135 | ex | Elixir | lib/live_view_example_usage/repo.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 3 | 2021-09-13T07:07:46.000Z | 2021-11-21T09:42:39.000Z | lib/live_view_example_usage/repo.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 2 | 2021-09-18T17:16:16.000Z | 2021-11-21T23:25:23.000Z | lib/live_view_example_usage/repo.ex | braynm/phoenix-liveview-example-usage | a79782b29a507ef495a6cf59cf37d78e2c116d14 | [
"MIT"
] | 1 | 2021-09-13T07:07:50.000Z | 2021-09-13T07:07:50.000Z | defmodule LiveViewExampleUsage.Repo do
use Ecto.Repo,
otp_app: :live_view_example_usage,
adapter: Ecto.Adapters.Postgres
end
| 22.5 | 38 | 0.785185 |
1d5ec0956d71ff4d7d6d941fa47941ff22659650 | 12,895 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/api/queries.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/api/queries.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/api/queries.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.936508 | 187 | 0.625979 |
1d5ece482d844dc385a37ee907eebbae535f4446 | 1,971 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/check_data_access_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/health_care/lib/google_api/health_care/v1/model/check_data_access_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/health_care/lib/google_api/health_care/v1/model/check_data_access_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... | 38.647059 | 202 | 0.737189 |
1d5eea69db0a247552591bf398467bce6e8ddd72 | 3,165 | ex | Elixir | lib/mix/lib/mix/generator.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/lib/mix/generator.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/generator.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Mix.Generator do
@moduledoc """
Conveniences for working with paths and generating content.
All of these functions are verbose, in the sense they log
the action to be performed via `Mix.shell/0`.
"""
@doc """
Creates a file with the given contents.
If the file already exists, asks for user c... | 26.822034 | 102 | 0.64139 |
1d5f45dceb8d22b0c4c68d9cbda74ba4ee77d2e8 | 504 | exs | Elixir | programming/elixir/simple_pay/config/test.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/simple_pay/config/test.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/simple_pay/config/test.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | 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 :simple_pay, SimplePay.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :simple_pay, Simpl... | 25.2 | 56 | 0.740079 |
1d5f8e8cdef3b58d90e5f32e973910e97e35aeeb | 1,100 | ex | Elixir | lib/morphic_pro_web/channels/user_socket.ex | MorphicPro/morphic_pro | 0028726250b6c55842e4bb48ffeeddc28e63b1bd | [
"MIT"
] | null | null | null | lib/morphic_pro_web/channels/user_socket.ex | MorphicPro/morphic_pro | 0028726250b6c55842e4bb48ffeeddc28e63b1bd | [
"MIT"
] | null | null | null | lib/morphic_pro_web/channels/user_socket.ex | MorphicPro/morphic_pro | 0028726250b6c55842e4bb48ffeeddc28e63b1bd | [
"MIT"
] | null | null | null | defmodule MorphicProWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", MorphicProWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all ... | 30.555556 | 85 | 0.697273 |
1d5f9692889206bd6f77c8b9835f10c58efabea1 | 166 | exs | Elixir | config/config.exs | happycodrz/k8s_conf | 51f9a2c7e86f9ad46dac361c9ddba21613a2bfd9 | [
"MIT"
] | null | null | null | config/config.exs | happycodrz/k8s_conf | 51f9a2c7e86f9ad46dac361c9ddba21613a2bfd9 | [
"MIT"
] | null | null | null | config/config.exs | happycodrz/k8s_conf | 51f9a2c7e86f9ad46dac361c9ddba21613a2bfd9 | [
"MIT"
] | null | null | null | use Mix.Config
config :k8s_conf, providers: []
if Mix.env() == :dev do
config :mix_test_watch,
tasks: [
"test",
"format",
"credo"
]
end
| 12.769231 | 31 | 0.548193 |
1d5fa91623a047fc67938790e26e6d0fe8140d31 | 1,913 | ex | Elixir | lib/hl7/2.4/segments/pv1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/pv1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/pv1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.PV1 do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_pv1: nil,
patient_class: nil,
assigned_patient_location: DataTypes.Pl,
admission_type: nil,
preadmit_number: DataTypes.Cx,
... | 29.890625 | 46 | 0.690016 |
1d5ff533bdd507dd25a6cff4bb6be81c4b22fe8d | 487 | ex | Elixir | web/models/location.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | web/models/location.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | 9 | 2016-09-22T20:30:22.000Z | 2016-09-22T21:00:53.000Z | web/models/location.ex | beccanelson/library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | defmodule Bookish.Location do
use Bookish.Web, :model
import Ecto.Query
schema "locations" do
field :name, :string
has_many :books, Bookish.Book
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def changeset(struct, params \\ %{}) do
struct
|> c... | 17.392857 | 56 | 0.63039 |
1d60165f87601d97ce8df6e9c28415effdf7a964 | 2,650 | ex | Elixir | clients/container/lib/google_api/container/v1/model/set_addons_config_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_addons_config_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/set_addons_config_request.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... | 44.166667 | 232 | 0.738113 |
1d605a21d94edfe6b2115698b91b47ccaf244034 | 25,299 | ex | Elixir | lib/elixir/lib/kernel/parallel_compiler.ex | Apelsinka223/elixir | 7c62eb61935b474f53ee23fe5a02ff3f23b1a65e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/parallel_compiler.ex | Apelsinka223/elixir | 7c62eb61935b474f53ee23fe5a02ff3f23b1a65e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/parallel_compiler.ex | Apelsinka223/elixir | 7c62eb61935b474f53ee23fe5a02ff3f23b1a65e | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.ParallelCompiler do
@moduledoc """
A module responsible for compiling and requiring files in parallel.
"""
@doc """
Starts a task for parallel compilation.
If you have a file that needs to compile other modules in parallel,
the spawned processes need to be aware of the compiler environm... | 33.912869 | 98 | 0.640342 |
1d60625d0827e1ad73e559bd91bca8be93c77329 | 966 | ex | Elixir | lib/render.ex | inaka/credo_server | fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa | [
"Apache-2.0"
] | 12 | 2016-05-27T23:37:37.000Z | 2019-11-09T04:03:03.000Z | lib/render.ex | inaka/credo_server | fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa | [
"Apache-2.0"
] | 18 | 2016-05-27T14:57:30.000Z | 2016-09-20T17:05:22.000Z | lib/render.ex | inaka/credo_server | fabdf5429974d0dbf9e0a1eaaf1c6305fb98e2aa | [
"Apache-2.0"
] | 1 | 2019-11-09T04:03:06.000Z | 2019-11-09T04:03:06.000Z | defmodule CredoServer.Render do
@moduledoc false
import Plug.Conn
require EEx
EEx.function_from_file(:def, :repositories_index,
"web/templates/repositories/index.html.eex",
[:assigns])
EEx.function_from_file(:def, :sing_up,
"web/temp... | 27.6 | 69 | 0.57971 |
1d6074954fab509bc8de3624d09dc2b29472fbe0 | 937 | ex | Elixir | test/support/channel_case.ex | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | hugorifbjerg/fitaweb | 0d370d3f48905d936e7ee68d966d8ea287b152a8 | [
"MIT"
] | null | null | null | defmodule FitawebWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interacts wi... | 24.657895 | 69 | 0.716115 |
1d60d0f9d7c0d37598cab156690be722e3ceb8ba | 570 | ex | Elixir | lib/bookpile_web/controllers/welcome_controller.ex | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 4 | 2021-08-23T19:27:00.000Z | 2021-12-24T14:22:10.000Z | lib/bookpile_web/controllers/welcome_controller.ex | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 16 | 2021-08-23T16:48:07.000Z | 2022-02-28T17:25:37.000Z | lib/bookpile_web/controllers/welcome_controller.ex | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 2 | 2021-08-23T16:18:42.000Z | 2021-08-23T16:35:41.000Z | defmodule BookpileWeb.WelcomeController do
use BookpileWeb, :controller
alias Bookpile.Books
def index(conn, _params) do
changeset = Books.search_changeset(%{isbn: nil})
render(conn, "index.html", changeset: changeset)
end
def search(conn, %{"search" => search_params}) do
search = Books.search_... | 25.909091 | 59 | 0.687719 |
1d610ff4baaf054c18f552628a659b192fc5a87c | 276 | exs | Elixir | demo_backend/test/demo_server_web/views/layout_view_test.exs | jacopofar/godot-multiplayer-phoenix-demo | fef08cffe9ad51d27051b614ef90a8d4257cdcaa | [
"MIT"
] | 7 | 2020-11-12T14:30:30.000Z | 2021-08-03T20:49:53.000Z | demo_backend/test/demo_server_web/views/layout_view_test.exs | jacopofar/godot-multiplayer-phoenix-demo | fef08cffe9ad51d27051b614ef90a8d4257cdcaa | [
"MIT"
] | null | null | null | demo_backend/test/demo_server_web/views/layout_view_test.exs | jacopofar/godot-multiplayer-phoenix-demo | fef08cffe9ad51d27051b614ef90a8d4257cdcaa | [
"MIT"
] | 1 | 2022-01-09T07:25:14.000Z | 2022-01-09T07:25:14.000Z | defmodule DemoServerWeb.LayoutViewTest do
use DemoServerWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.666667 | 65 | 0.771739 |
1d613bc60717faaf3fd2af075c3fbcf8b1062376 | 1,618 | ex | Elixir | lib/cldr/language_tag/rfc5646/rfc5646_core.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 179 | 2019-06-16T09:16:00.000Z | 2022-03-30T04:04:55.000Z | lib/cldr/language_tag/rfc5646/rfc5646_core.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 46 | 2019-06-09T02:35:58.000Z | 2022-03-08T10:39:08.000Z | lib/cldr/language_tag/rfc5646/rfc5646_core.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | 14 | 2020-03-03T16:35:50.000Z | 2022-02-27T14:01:40.000Z | if Code.ensure_loaded?(NimbleParsec) do
defmodule Cldr.Rfc5646.Core do
@moduledoc false
import NimbleParsec
def lowercase do
ascii_string([?a..?z], 1)
end
def uppercase do
ascii_string([?A..?Z], 1)
end
def digit do
ascii_string([?0..?9], 1)
end
def digit3 do
... | 18.386364 | 60 | 0.511743 |
1d6157c307b55c738623c23dfe97e100abfecf9e | 2,029 | ex | Elixir | lib/ex_admin/sidebar.ex | c80609a/ex_admin | c89e7e573599cedea8e963424b4e78417779b84a | [
"MIT"
] | null | null | null | lib/ex_admin/sidebar.ex | c80609a/ex_admin | c89e7e573599cedea8e963424b4e78417779b84a | [
"MIT"
] | null | null | null | lib/ex_admin/sidebar.ex | c80609a/ex_admin | c89e7e573599cedea8e963424b4e78417779b84a | [
"MIT"
] | null | null | null | Code.ensure_compiled(ExAdmin.Utils)
defmodule ExAdmin.Sidebar do
@moduledoc false
require Logger
require Ecto.Query
use Xain
def sidebars_visible?(_conn, %{sidebars: []}), do: false
def sidebars_visible?(conn, %{sidebars: sidebars}) do
Enum.reduce(sidebars, false, fn {_, opts, _}, acc ->
acc ||... | 24.743902 | 90 | 0.646131 |
1d618396fe41570d24205c175f72be417d7a131c | 186 | exs | Elixir | test/controllers/page_controller_test.exs | danielberkompas/phoenix_ecto_encryption_sample | 1fd0f337eb214cb6a5b7348a70ad27e50968d851 | [
"MIT"
] | 4 | 2015-08-11T04:01:14.000Z | 2019-09-17T04:47:02.000Z | test/controllers/page_controller_test.exs | danielberkompas/phoenix_ecto_encryption_sample | 1fd0f337eb214cb6a5b7348a70ad27e50968d851 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | danielberkompas/phoenix_ecto_encryption_sample | 1fd0f337eb214cb6a5b7348a70ad27e50968d851 | [
"MIT"
] | null | null | null | defmodule Encryption.PageControllerTest do
use Encryption.ConnCase
test "GET /" do
conn = get conn(), "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 20.666667 | 60 | 0.688172 |
1d61d6e902bccc785f4028d26abfb7a7f45f7647 | 534 | ex | Elixir | lib/mix/tasks/advent_of_code/day01.ex | odarriba/advent_of_code_2021 | 658059cc83438c588d72fd6b30685f555cf8f7a2 | [
"MIT"
] | 5 | 2021-11-30T15:26:47.000Z | 2021-12-25T19:31:44.000Z | lib/mix/tasks/advent_of_code/day01.ex | odarriba/advent_of_code_2021 | 658059cc83438c588d72fd6b30685f555cf8f7a2 | [
"MIT"
] | null | null | null | lib/mix/tasks/advent_of_code/day01.ex | odarriba/advent_of_code_2021 | 658059cc83438c588d72fd6b30685f555cf8f7a2 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.AdventOfCode.Day01 do
@moduledoc """
Solution for day 1 exercise.
It expected to receive the input file as first parameter.
"""
@shortdoc "Solution for day 1 exercise."
use Mix.Task
alias AdventOfCode.Solutions.Day01
@impl Mix.Task
def run(["first", filename]) do
Day01.firs... | 20.538462 | 85 | 0.709738 |
1d61da1b0e5d950dbc0dce9aea8f2ff551c8c47c | 2,109 | ex | Elixir | lib/spreedly/path.ex | fanhero/spreedly-elixir | ee65326a2c7ffccd4683b1be754e4a7db5857ab3 | [
"MIT"
] | 8 | 2018-03-09T18:12:26.000Z | 2020-08-25T02:29:12.000Z | lib/spreedly/path.ex | fanhero/spreedly-elixir | ee65326a2c7ffccd4683b1be754e4a7db5857ab3 | [
"MIT"
] | 17 | 2017-01-05T17:14:51.000Z | 2020-02-04T14:48:02.000Z | lib/spreedly/path.ex | fanhero/spreedly-elixir | ee65326a2c7ffccd4683b1be754e4a7db5857ab3 | [
"MIT"
] | 5 | 2017-05-01T18:23:54.000Z | 2021-03-19T01:34:26.000Z | defmodule Spreedly.Path do
@moduledoc false
def add_gateway_path do
"/gateways.json"
end
def add_receiver_path do
"/receivers.json"
end
def authorization_path(gateway_token) do
"/gateways/#{gateway_token}/authorize.json"
end
def purchase_path(gateway_token) do
"/gateways/#{gateway_to... | 20.278846 | 53 | 0.724988 |
1d621b08efce82b359485c4a342948cf2285fbc3 | 183,796 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/api/edits.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/api/edits.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_publisher/lib/google_api/android_publisher/v3/api/edits.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... | 43.053643 | 351 | 0.600329 |
1d623e7bb739a28b1996b1647f9a29c54a5e4669 | 4,030 | exs | Elixir | test/json_schema_test_suite/draft7/optional/format/ipv6_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/json_schema_test_suite/draft7/optional/format/ipv6_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/json_schema_test_suite/draft7/optional/format/ipv6_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule JsonSchemaTestSuite.Draft7.Optional.Format.Ipv6Test do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe ~s|validation of IPv6 addresses| do
setup do
%{
schema:
Xema.from_json_schema(
%{"format" => "ipv6"},
draft: "draft7",
atom: :f... | 29.851852 | 101 | 0.609429 |
1d624fd94e5ea3e57657b853a04622a2130a4007 | 8,147 | ex | Elixir | lib/bt/cli.ex | fly1ngDream/bt | 81d55ca7a524321fc2af1c255805b9f6826561d8 | [
"MIT"
] | 1 | 2020-07-29T14:39:39.000Z | 2020-07-29T14:39:39.000Z | lib/bt/cli.ex | yevhenshymotiuk/bt | 81d55ca7a524321fc2af1c255805b9f6826561d8 | [
"MIT"
] | null | null | null | lib/bt/cli.ex | yevhenshymotiuk/bt | 81d55ca7a524321fc2af1c255805b9f6826561d8 | [
"MIT"
] | null | null | null | defmodule Bt.CLI do
@moduledoc """
Bluetooth command line interface
"""
use ExCLI.DSL, escript: true
alias Bt.{Bluetoothctl, CLI.Config, Wrapper, Parser}
name("bt")
description("Bluetooth CLI")
long_description("""
Handling bluetooth devices from the shell
""")
@doc """
Return status of the ... | 26.451299 | 98 | 0.555419 |
1d6250363e2808badb69a21d4dc6ca695c208060 | 633 | exs | Elixir | mix.exs | RobChooses/exentbrite | 1d7ddd43db44c9025e6472410d90d0bac078131b | [
"MIT"
] | null | null | null | mix.exs | RobChooses/exentbrite | 1d7ddd43db44c9025e6472410d90d0bac078131b | [
"MIT"
] | null | null | null | mix.exs | RobChooses/exentbrite | 1d7ddd43db44c9025e6472410d90d0bac078131b | [
"MIT"
] | null | null | null | defmodule Exentbrite.MixProject do
use Mix.Project
def project do
[
app: :exentbrite,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
ext... | 20.419355 | 88 | 0.557662 |
1d62517d32804a81d9a256ae55134262dafd886d | 772 | exs | Elixir | test/passes/translate/forms/bitstring_test.exs | beadsland/elixirscript | cb9698ad96075fcbe87b3933009d7ab2a2c939de | [
"MIT"
] | 854 | 2017-02-19T01:50:45.000Z | 2022-03-14T18:55:38.000Z | test/passes/translate/forms/bitstring_test.exs | beadsland/elixirscript | cb9698ad96075fcbe87b3933009d7ab2a2c939de | [
"MIT"
] | 210 | 2017-02-20T17:44:39.000Z | 2020-08-01T10:18:07.000Z | test/passes/translate/forms/bitstring_test.exs | beadsland/elixirscript | cb9698ad96075fcbe87b3933009d7ab2a2c939de | [
"MIT"
] | 56 | 2017-02-19T14:50:05.000Z | 2022-02-25T17:25:30.000Z | defmodule ElixirScript.Translate.Forms.Bitstring.Test do
use ExUnit.Case
alias ElixirScript.Translate.Form
alias ESTree.Tools.Builder, as: J
setup_all do
{:ok, pid} = ElixirScript.State.start_link(%{})
state = %{
pid: pid,
vars: %{}
}
[state: state]
end
test "string interpola... | 24.903226 | 65 | 0.550518 |
1d6265fb702b3a6e0e01b91f9feebf9494f6d8ee | 889 | exs | Elixir | config/prod.secret.exs | nilenso/exkubed | 84586ab75ebc417cf5a5bed5323d9032b23ea2ec | [
"MIT"
] | 1 | 2019-08-29T20:35:54.000Z | 2019-08-29T20:35:54.000Z | config/prod.secret.exs | nilenso/exkubed | 84586ab75ebc417cf5a5bed5323d9032b23ea2ec | [
"MIT"
] | null | null | null | config/prod.secret.exs | nilenso/exkubed | 84586ab75ebc417cf5a5bed5323d9032b23ea2ec | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 32.925926 | 76 | 0.737908 |
1d6266e94435db8a0dd1bf17f3548c50746213e9 | 3,655 | ex | Elixir | lib/icmp/packet.ex | davaeron/icmp_ping | 2a6fa2ee69a6c5a995c030f88a1530ad187745f8 | [
"Apache-2.0"
] | null | null | null | lib/icmp/packet.ex | davaeron/icmp_ping | 2a6fa2ee69a6c5a995c030f88a1530ad187745f8 | [
"Apache-2.0"
] | null | null | null | lib/icmp/packet.ex | davaeron/icmp_ping | 2a6fa2ee69a6c5a995c030f88a1530ad187745f8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Pertsev Dmitriy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 33.53211 | 96 | 0.663748 |
1d6299d5009d6591fa59584374d62649cf43c20c | 382 | ex | Elixir | lib/battle_city/power_up/star.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | lib/battle_city/power_up/star.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | 38 | 2020-12-17T12:40:44.000Z | 2022-03-31T02:05:59.000Z | lib/battle_city/power_up/star.ex | clszzyh/battle_city | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | defmodule BattleCity.PowerUp.Star do
@moduledoc false
use BattleCity.PowerUp
@impl true
def handle_add(%Context{} = ctx, %Tank{__module__: module} = tank) do
tank =
case module.handle_level_up(tank) do
nil ->
tank
new_module ->
%{tank | __module__: new_module, me... | 19.1 | 71 | 0.609948 |
1d62a95631d5078e7ee848cf87174f4685aaafd5 | 570 | ex | Elixir | lib/ex_clubhouse/operation.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | lib/ex_clubhouse/operation.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | lib/ex_clubhouse/operation.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Operation do
@moduledoc """
Encapsulates a request operation
"""
@type t :: %__MODULE__{
id: atom(),
method: :delete | :get | :head | :options | :patch | :post | :put,
path: binary(),
params: map() | nil,
headers: [any()] | nil,
... | 23.75 | 76 | 0.440351 |
1d62b384810b57b112ecd72b013ee5c55db243d4 | 1,695 | ex | Elixir | apps/xee2018_web/lib/xee2018_web/controllers/user_controller.ex | RyoheiHayashi/xee2018 | 3b9ff03b13817563a5c7c75db1da360879a8a8d4 | [
"MIT"
] | 1 | 2018-09-05T10:31:50.000Z | 2018-09-05T10:31:50.000Z | apps/xee2018_web/lib/xee2018_web/controllers/user_controller.ex | RyoheiHayashi/xee2018 | 3b9ff03b13817563a5c7c75db1da360879a8a8d4 | [
"MIT"
] | null | null | null | apps/xee2018_web/lib/xee2018_web/controllers/user_controller.ex | RyoheiHayashi/xee2018 | 3b9ff03b13817563a5c7c75db1da360879a8a8d4 | [
"MIT"
] | null | null | null | defmodule Xee2018Web.UserController do
use Xee2018Web, :controller
alias Xee2018.Accounts
alias Xee2018.Accounts.User
def index(conn, _params) do
users = Accounts.list_users()
render(conn, "index.html", users: users)
end
def new(conn, _params) do
changeset = Accounts.change_user(%User{})
... | 27.786885 | 67 | 0.624779 |
1d631e56e13df7836b56d354cf4944dc3d4d6ef0 | 75 | exs | Elixir | test/browser/port_pool_test.exs | heydtn/crony | 1bc9335edaf6220a724e6a1129f7aef1124ed71f | [
"MIT"
] | null | null | null | test/browser/port_pool_test.exs | heydtn/crony | 1bc9335edaf6220a724e6a1129f7aef1124ed71f | [
"MIT"
] | null | null | null | test/browser/port_pool_test.exs | heydtn/crony | 1bc9335edaf6220a724e6a1129f7aef1124ed71f | [
"MIT"
] | null | null | null | defmodule Crony.Browser.PortPoolTest do
use ExUnit.Case, async: true
end
| 18.75 | 39 | 0.8 |
1d6347bd937254370690d129d9afb6c1b800496c | 366 | ex | Elixir | ex/apps/reef/lib/reef/router.ex | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/reef/lib/reef/router.ex | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | ex/apps/reef/lib/reef/router.ex | limadelic/corals | be1730551ce7420f12b3b689c79ebd7571892d53 | [
"MIT"
] | null | null | null | defmodule Reef.Router do
use Reef, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Reef do
pipe_through :api
get "/", HomeController, :index
get "/rules", RulesController, :index
get "/rules/:name", RulesController, :show
post "/", RulesController, :resolve
post "/... | 19.263158 | 46 | 0.642077 |
1d6374858bccefa4279342c61266e48df3bbb2be | 489 | exs | Elixir | test/lib/context_test.exs | kimidesu/ElixirCore | 1d3558aaccbca5f18dbf453271d8a98826fe1ce2 | [
"MIT"
] | 1 | 2021-04-09T05:40:28.000Z | 2021-04-09T05:40:28.000Z | test/lib/context_test.exs | kimidesu/ElixirCore | 1d3558aaccbca5f18dbf453271d8a98826fe1ce2 | [
"MIT"
] | null | null | null | test/lib/context_test.exs | kimidesu/ElixirCore | 1d3558aaccbca5f18dbf453271d8a98826fe1ce2 | [
"MIT"
] | null | null | null | defmodule Noizu.ElixirCore.ContextTest do
use ExUnit.Case, async: false
require Logger
@tag :lib
@tag :context
test "initialization and logger setup" do
sut = Noizu.ElixirCore.CallingContext.system(%{})
assert sut.caller == {:ref, Noizu.ElixirCore.CallerEntity, :system}
Noizu.Elixi... | 24.45 | 83 | 0.693252 |
1d6380b6861bc5931b2d2cb15f6b50d02e106743 | 183 | ex | Elixir | server/lib/freedom_account/repo.ex | randycoulman/freedomAccount | c1c51a765052aa318ad3a504a396e8d07a770195 | [
"MIT"
] | 6 | 2019-04-03T19:16:01.000Z | 2020-08-10T09:38:24.000Z | server/lib/freedom_account/repo.ex | randycoulman/freedomAccount | c1c51a765052aa318ad3a504a396e8d07a770195 | [
"MIT"
] | 32 | 2019-03-19T02:45:45.000Z | 2021-12-05T06:58:07.000Z | server/lib/freedom_account/repo.ex | randycoulman/freedomAccount | c1c51a765052aa318ad3a504a396e8d07a770195 | [
"MIT"
] | null | null | null | defmodule FreedomAccount.Repo do
@moduledoc """
The FreedomAccount data repository.
"""
use Ecto.Repo,
otp_app: :freedom_account,
adapter: Ecto.Adapters.Postgres
end
| 18.3 | 37 | 0.721311 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.