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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff2bf3950bb88c32f97fbf9d0eb6eda161000658 | 5,054 | exs | Elixir | apps/gitgud/test/gitgud/issue_test.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud/test/gitgud/issue_test.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud/test/gitgud/issue_test.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.IssueTest do
use GitGud.DataCase, async: true
use GitGud.DataFactory
alias GitGud.User
alias GitGud.Repo
alias GitGud.RepoStorage
alias GitGud.Issue
setup :create_user
setup :create_repo
test "creates a new issue with valid params", %{user: user, repo: repo} do
params = factory... | 34.616438 | 89 | 0.630787 |
ff2c41452d4ed7dc4cf3dafab57b2bc414e8d27e | 1,494 | ex | Elixir | lib/speakr_web/endpoint.ex | BlackBoxSQL/eventr | 4d84c747fba12a53ae16fb674b8293b5ad083ac0 | [
"MIT"
] | 14 | 2019-09-20T04:51:00.000Z | 2019-10-09T07:36:34.000Z | lib/speakr_web/endpoint.ex | BlackBoxSQL/eventr | 4d84c747fba12a53ae16fb674b8293b5ad083ac0 | [
"MIT"
] | 1 | 2021-03-10T05:27:43.000Z | 2021-03-10T05:27:43.000Z | lib/speakr_web/endpoint.ex | BlackBoxSQL/eventr | 4d84c747fba12a53ae16fb674b8293b5ad083ac0 | [
"MIT"
] | 4 | 2019-09-20T06:59:07.000Z | 2019-11-18T14:59:01.000Z | defmodule SpeakrWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :speakr
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_speakr_key"... | 27.163636 | 69 | 0.706827 |
ff2c550a4ca31938f7e3407e93dff11970bb584b | 513 | ex | Elixir | lib/gatekeeper/test_server.ex | samfrench/gatekeeper | 6286ed16360e0d538e7f4c802a866b2cd83d5514 | [
"MIT"
] | null | null | null | lib/gatekeeper/test_server.ex | samfrench/gatekeeper | 6286ed16360e0d538e7f4c802a866b2cd83d5514 | [
"MIT"
] | null | null | null | lib/gatekeeper/test_server.ex | samfrench/gatekeeper | 6286ed16360e0d538e7f4c802a866b2cd83d5514 | [
"MIT"
] | null | null | null | defmodule Gatekeeper.TestServer do
use Plug.Router
plug(:match)
plug(:dispatch)
get "/level/essential" do
send_resp(conn, 200, "Personalised content essential!")
end
get "/level/expected" do
send_resp(conn, 200, "Personalised content expected!")
end
get "/level/ideal" do
send_resp(conn, ... | 20.52 | 61 | 0.684211 |
ff2c585c5b1eef72b262ad9b3ca099b81e10cba7 | 4,371 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/ssl_certificate.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/ssl_certificate.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/ssl_certificate.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... | 51.423529 | 490 | 0.715397 |
ff2c94c88351d7bdf93583a490831c7bafd6ff94 | 606 | exs | Elixir | examples/helloworld/mix.exs | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 561 | 2019-03-18T09:10:57.000Z | 2022-03-27T17:34:59.000Z | examples/helloworld/mix.exs | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 94 | 2019-03-20T09:34:38.000Z | 2022-02-27T20:44:04.000Z | examples/helloworld/mix.exs | braverhealth/grpc | eff8a8828d27ddd7f63a3c1dd5aae86246df215e | [
"Apache-2.0"
] | 112 | 2019-03-25T03:27:26.000Z | 2022-03-21T12:43:59.000Z | defmodule Helloworld.Mixfile do
use Mix.Project
def project do
[app: :helloworld,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[mod: {HelloworldApp, []},
applications: [:logge... | 22.444444 | 69 | 0.561056 |
ff2ca0209a61875cdd25ccc10b3aad91a11ee545 | 872 | ex | Elixir | elixirpay/lib/elixirpay_web/controllers/accounts_controller.ex | fcsouza/elixir-project | e6212c4def050400eb4fcc50c6a8274409b1f0c7 | [
"MIT"
] | null | null | null | elixirpay/lib/elixirpay_web/controllers/accounts_controller.ex | fcsouza/elixir-project | e6212c4def050400eb4fcc50c6a8274409b1f0c7 | [
"MIT"
] | null | null | null | elixirpay/lib/elixirpay_web/controllers/accounts_controller.ex | fcsouza/elixir-project | e6212c4def050400eb4fcc50c6a8274409b1f0c7 | [
"MIT"
] | null | null | null | defmodule ElixirpayWeb.AccountsController do
use ElixirpayWeb, :controller
alias Elixirpay.Account
alias Elixirpay.Accounts.Transactions.Response, as: TransactionResponse
action_fallback ElixirpayWeb.FallbackController
def deposit(conn, params) do
with {:ok, %Account{} = account} <- Elixirpay.deposit(p... | 26.424242 | 88 | 0.677752 |
ff2cb0c00c813206868f1e7b3b4fdbfc5c508633 | 62,774 | ex | Elixir | lib/aws/generated/sesv2.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sesv2.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sesv2.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"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.SESv2 do
@moduledoc """
Amazon SES API v2
Welcome to the Amazon SES API v2 Reference.
This guide provides information about the Amazon SES API v2, including supported
operations, data ... | 24.841314 | 159 | 0.635916 |
ff2cb8b90af312933708ea7b9cd27d39c3d7a274 | 1,086 | ex | Elixir | lib/betex_web/channels/user_socket.ex | esl/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 1 | 2021-06-15T08:18:50.000Z | 2021-06-15T08:18:50.000Z | lib/betex_web/channels/user_socket.ex | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | null | null | null | lib/betex_web/channels/user_socket.ex | AdiletAbylov/betex | b887d95c9c6edac4bcadb8da188fae215d04fe6c | [
"Apache-2.0"
] | 2 | 2021-06-23T16:35:04.000Z | 2021-06-23T16:35:44.000Z | defmodule BetexWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "sport:*", BetexWeb.SportChannel
# 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 channels,... | 30.166667 | 83 | 0.694291 |
ff2cb90b177c1ae9a21396b3f92deb0978a47c75 | 30,316 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/api/projects.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/api/projects.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/api/projects.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 45.58797 | 1,193 | 0.66836 |
ff2cd065ae4158f9103159eea4b73deae7f7f1a2 | 2,811 | exs | Elixir | config/prod.exs | tacohole/banchan | 04c9f2fd5464e697d9b69e4bc524ace5f6487487 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | config/prod.exs | tacohole/banchan | 04c9f2fd5464e697d9b69e4bc524ace5f6487487 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | config/prod.exs | tacohole/banchan | 04c9f2fd5464e697d9b69e4bc524ace5f6487487 | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 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... | 34.703704 | 131 | 0.716115 |
ff2d07376781b3f77ec701c3ae07467396fb197e | 651 | ex | Elixir | lib/benchee/benchmark/scenario_context.ex | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 504 | 2019-03-19T16:50:04.000Z | 2022-03-30T03:33:11.000Z | lib/benchee/benchmark/scenario_context.ex | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 46 | 2019-03-19T16:52:27.000Z | 2022-03-10T08:34:45.000Z | lib/benchee/benchmark/scenario_context.ex | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 20 | 2019-03-21T06:36:33.000Z | 2022-03-10T06:13:40.000Z | defmodule Benchee.Benchmark.ScenarioContext do
@moduledoc false
# This struct holds the context in which any scenario is run.
defstruct [
:config,
:printer,
:current_time,
:end_time,
# before_scenario can alter the original input
:scenario_input,
num_iterations: 1,
function_call_... | 24.111111 | 63 | 0.648233 |
ff2d44a77d9d99cf4e7ad6cb88e7e180575f223f | 5,351 | ex | Elixir | lib/nerves/release.ex | TheEndIsNear/nerves | 04eebbc725d74fa291d6b4844fc98850b0486ac9 | [
"Apache-2.0"
] | null | null | null | lib/nerves/release.ex | TheEndIsNear/nerves | 04eebbc725d74fa291d6b4844fc98850b0486ac9 | [
"Apache-2.0"
] | null | null | null | lib/nerves/release.ex | TheEndIsNear/nerves | 04eebbc725d74fa291d6b4844fc98850b0486ac9 | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Release do
# No leading '/' here since this is passed to mksquashfs and it
# doesn't like the leading slash.
@target_release_path "srv/erlang"
def init(%{options: options} = release) do
opts = Keyword.merge(options, release_opts())
release = %{
release
| options: opts,
... | 26.755 | 98 | 0.578023 |
ff2d625c2ff8b9fc87497835c7e4dd03ee34d1a1 | 2,090 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/row_access_policy_reference.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/row_access_policy_reference.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/row_access_policy_reference.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... | 37.321429 | 219 | 0.703828 |
ff2d7241f68fbff5f5b972e914fca31e9f37e52b | 989 | ex | Elixir | lib/blog_web/views/error_helpers.ex | Miradorn/absinthe_tutorial | fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072 | [
"MIT"
] | 69 | 2017-11-15T17:26:57.000Z | 2022-01-25T16:37:40.000Z | lib/blog_web/views/error_helpers.ex | Miradorn/absinthe_tutorial | fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072 | [
"MIT"
] | 24 | 2020-01-27T20:44:40.000Z | 2020-10-29T05:48:31.000Z | lib/blog_web/views/error_helpers.ex | Miradorn/absinthe_tutorial | fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072 | [
"MIT"
] | 35 | 2017-11-12T22:04:10.000Z | 2021-07-22T18:00:39.000Z | defmodule BlogWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# Because error messages were defined within Ecto, we must
# call the Gettext module passing o... | 32.966667 | 73 | 0.669363 |
ff2dcd36f688d74689f9c640df6023c5ffe6237b | 104 | exs | Elixir | .formatter.exs | silathdiir/rat_error | eff3b46db28071814b91c623729bbd951bbf6cfa | [
"MIT"
] | 3 | 2017-10-10T10:38:38.000Z | 2018-03-15T01:57:34.000Z | .formatter.exs | silathdiir/rat_error | eff3b46db28071814b91c623729bbd951bbf6cfa | [
"MIT"
] | null | null | null | .formatter.exs | silathdiir/rat_error | eff3b46db28071814b91c623729bbd951bbf6cfa | [
"MIT"
] | 1 | 2017-10-10T10:39:17.000Z | 2017-10-10T10:39:17.000Z | # Used by "mix format"
[
inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
line_length: 80,
]
| 17.333333 | 57 | 0.557692 |
ff2e0905b57f5acc717def9d963965ef685cd969 | 143 | ex | Elixir | lib/bundlex/platform/linux.ex | kianmeng/bundlex | c3477977ab1c46bc87c62fbade9b0a7c13c791be | [
"Apache-2.0"
] | 40 | 2018-06-10T20:55:32.000Z | 2021-12-12T22:08:25.000Z | lib/bundlex/platform/linux.ex | kianmeng/bundlex | c3477977ab1c46bc87c62fbade9b0a7c13c791be | [
"Apache-2.0"
] | 40 | 2018-07-18T16:14:52.000Z | 2022-03-27T16:33:09.000Z | lib/bundlex/platform/linux.ex | kianmeng/bundlex | c3477977ab1c46bc87c62fbade9b0a7c13c791be | [
"Apache-2.0"
] | 10 | 2018-08-02T06:07:42.000Z | 2022-03-25T15:41:14.000Z | defmodule Bundlex.Platform.Linux do
@moduledoc false
use Bundlex.Platform
def toolchain_module() do
Bundlex.Toolchain.GCC
end
end
| 15.888889 | 35 | 0.762238 |
ff2e4da474cb66ddab44df318c1619b41b5d368b | 23,990 | ex | Elixir | lib/cldr/plural_rules/plural_rule.ex | nickel/cldr | 4c463326bd699a167d58b00aeb226489306dd7f8 | [
"Apache-2.0"
] | null | null | null | lib/cldr/plural_rules/plural_rule.ex | nickel/cldr | 4c463326bd699a167d58b00aeb226489306dd7f8 | [
"Apache-2.0"
] | null | null | null | lib/cldr/plural_rules/plural_rule.ex | nickel/cldr | 4c463326bd699a167d58b00aeb226489306dd7f8 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Number.PluralRule do
@moduledoc """
Defines the plural rule implementation
modules. The functions in this module
generate code to implement the plural
rules of CLDR.
"""
@type operand :: any()
@type plural_type() :: :zero | :one | :two | :few | :many | :other
@doc """
Returns a lis... | 32.595109 | 104 | 0.583993 |
ff2e5fdb860224812666e59300e8cf09b259543b | 459 | exs | Elixir | config/test.exs | MattIII/CastBug | aad9eabce5af4a80dd0f4383683746a1f518e377 | [
"MIT"
] | 1 | 2019-03-14T03:48:29.000Z | 2019-03-14T03:48:29.000Z | config/test.exs | MattIII/CastBug | aad9eabce5af4a80dd0f4383683746a1f518e377 | [
"MIT"
] | null | null | null | config/test.exs | MattIII/CastBug | aad9eabce5af4a80dd0f4383683746a1f518e377 | [
"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 :castbug, CastBugWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :castbug, CastBug.Re... | 24.157895 | 56 | 0.732026 |
ff2e68f3f6e003cdd7dd930bdfeef4ccb64e8bd6 | 1,254 | ex | Elixir | lib/yakusu_web/controllers/books/translation_controller.ex | jiegillet/yakusu | 3d9cbc19b0a6112604b362186211400a2e4923b2 | [
"MIT"
] | 1 | 2021-08-17T06:54:02.000Z | 2021-08-17T06:54:02.000Z | lib/yakusu_web/controllers/books/translation_controller.ex | jiegillet/yakusu | 3d9cbc19b0a6112604b362186211400a2e4923b2 | [
"MIT"
] | null | null | null | lib/yakusu_web/controllers/books/translation_controller.ex | jiegillet/yakusu | 3d9cbc19b0a6112604b362186211400a2e4923b2 | [
"MIT"
] | null | null | null | defmodule YakusuWeb.Books.TranslationController do
use YakusuWeb, :controller
alias Yakusu.Books
alias Yakusu.Books.Translation
action_fallback YakusuWeb.FallbackController
def index(conn, _params) do
translations = Books.list_translations()
render(conn, "index.json", translations: translations)
... | 29.162791 | 108 | 0.694577 |
ff2ed8b9348938e73466d8ea06d3603063a72d1e | 2,813 | exs | Elixir | exercises/concept/language-list/test/language_list_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/language-list/test/language_list_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/language-list/test/language_list_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule LanguageListTest do
use ExUnit.Case
describe "new/0" do
@tag task_id: 1
test "new list" do
assert LanguageList.new() == []
end
end
describe "add/2" do
@tag task_id: 2
test "add a language to a list" do
language = "Elixir"
list = [language]
assert Language... | 24.042735 | 97 | 0.579453 |
ff2ed909d7fc8a5e78b48c4240449bf7a4dee00a | 3,674 | ex | Elixir | lib/day10/asteroid_scanner.ex | anamba/adventofcode2019 | a5de43ddce8b40f67c3017f349d8563c73c94e20 | [
"MIT"
] | null | null | null | lib/day10/asteroid_scanner.ex | anamba/adventofcode2019 | a5de43ddce8b40f67c3017f349d8563c73c94e20 | [
"MIT"
] | null | null | null | lib/day10/asteroid_scanner.ex | anamba/adventofcode2019 | a5de43ddce8b40f67c3017f349d8563c73c94e20 | [
"MIT"
] | null | null | null | defmodule Day10.AsteroidScanner do
@doc """
iex> Day10.AsteroidScanner.part1("day10-sample0.txt")
"Best is 3,4 with 8 other asteroids detected"
iex> Day10.AsteroidScanner.part1("day10-sample1.txt")
"Best is 5,8 with 33 other asteroids detected"
iex> Day10.AsteroidScanner.part1("day10-sam... | 34.018519 | 315 | 0.567229 |
ff2eeb91eeb16e482a3090efe748d3673f654013 | 413 | ex | Elixir | test/support/assertion_helpers.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 39 | 2016-04-09T21:50:34.000Z | 2022-03-04T09:16:25.000Z | test/support/assertion_helpers.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 24 | 2016-05-29T15:49:07.000Z | 2022-01-17T11:57:05.000Z | test/support/assertion_helpers.ex | rkorzeniec/strava | aa99040355f72ff2766c080d5a919c66a53ac44b | [
"MIT"
] | 21 | 2016-02-02T01:19:23.000Z | 2022-02-06T23:29:32.000Z | defmodule Strava.AssertionHelpers do
import ExUnit.Assertions
def assert_present(string) when is_binary(string), do: refute(string == "")
def assert_present(nil), do: flunk("Expected a string but got `nil`")
def assert_lat_long([lat, long]) do
assert is_number(lat)
assert is_number(long)
end
def ... | 29.5 | 94 | 0.726392 |
ff2f0ebc01d423234e7968400886e6decf4934e7 | 2,723 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/variable_format_value.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/variable_format_value.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/variable_format_value.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 ... | 46.152542 | 160 | 0.741829 |
ff2f282fee5e14a75002585a873491297300ca2d | 2,575 | ex | Elixir | rumbrella/apps/rumbl/web/controllers/video_controller.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | rumbrella/apps/rumbl/web/controllers/video_controller.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | rumbrella/apps/rumbl/web/controllers/video_controller.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | defmodule Rumbl.VideoController do
use Rumbl.Web, :controller
alias Rumbl.Video
alias Rumbl.Category
plug :load_categories when action in [:new, :create, :edit, :update]
def action(conn, _) do
# change controller function signature: add 'user' as third arg and populate with session's currently logged-in... | 27.98913 | 120 | 0.633398 |
ff2f3c47e9e78c28a4174b14f763651080fa219b | 1,434 | ex | Elixir | lib/unifex/code_generator/base_types/atom.ex | vanillahsu/unifex | a501479b611a94c8a1477d969e170a7280673b7c | [
"Apache-2.0"
] | 42 | 2018-09-11T02:27:00.000Z | 2022-03-23T18:30:56.000Z | lib/unifex/code_generator/base_types/atom.ex | vanillahsu/unifex | a501479b611a94c8a1477d969e170a7280673b7c | [
"Apache-2.0"
] | 30 | 2018-10-18T10:56:22.000Z | 2022-03-09T13:04:51.000Z | lib/unifex/code_generator/base_types/atom.ex | vanillahsu/unifex | a501479b611a94c8a1477d969e170a7280673b7c | [
"Apache-2.0"
] | 7 | 2018-10-24T09:21:40.000Z | 2022-03-29T12:39:08.000Z | defmodule Unifex.CodeGenerator.BaseTypes.Atom do
@moduledoc """
Module implementing `Unifex.CodeGenerator.BaseType` behaviour for atoms.
Atoms in native code are represented by C-strings (`char *`)
Implemented both for NIF and CNode as function parameter as well as return type.
"""
use Unifex.CodeGenerato... | 24.724138 | 82 | 0.679916 |
ff2f7b4b7546fe4cabc9f879f3d37f12d14410aa | 1,751 | ex | Elixir | debian/manpage.1.ex | agdsn/xerxes | be31e2486e8686680fb22a972af34537572e116b | [
"BSD-3-Clause"
] | null | null | null | debian/manpage.1.ex | agdsn/xerxes | be31e2486e8686680fb22a972af34537572e116b | [
"BSD-3-Clause"
] | null | null | null | debian/manpage.1.ex | agdsn/xerxes | be31e2486e8686680fb22a972af34537572e116b | [
"BSD-3-Clause"
] | null | null | null | .\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH XERXES SECTION "August 27, 2008"
.\" Please adjust this date whenever revising the m... | 29.183333 | 74 | 0.672187 |
ff2fb0f15f21cd2eb4eb6fa9ec70e8416fe28c61 | 1,703 | ex | Elixir | host_core/lib/host_core/nats.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/nats.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/nats.ex | sleipnir/wasmcloud-otp | aef10f2f07257e65c527be6030006aaed2b85ff9 | [
"Apache-2.0"
] | null | null | null | defmodule HostCore.Nats do
require Logger
def rpc_connection_settings(opts) do
%{
# (required) the registered named you want to give the Gnat connection
name: :lattice_nats,
# number of milliseconds to wait between consecutive reconnect attempts (default: 2_000)
backoff_period: 4_000,
... | 30.963636 | 94 | 0.651791 |
ff2fc71ee8bb77724f6e689b9e6b75b8d4f10918 | 2,957 | ex | Elixir | lib/regex_help/prom_ex.ex | maciejgryka/regex_help | 93fe33cadcf63597dadb5e3dac9a0ee8f05dac15 | [
"MIT"
] | 6 | 2021-05-24T08:21:34.000Z | 2021-11-19T14:29:55.000Z | lib/regex_help/prom_ex.ex | maciejgryka/regex_help | 93fe33cadcf63597dadb5e3dac9a0ee8f05dac15 | [
"MIT"
] | null | null | null | lib/regex_help/prom_ex.ex | maciejgryka/regex_help | 93fe33cadcf63597dadb5e3dac9a0ee8f05dac15 | [
"MIT"
] | 3 | 2021-11-19T14:32:00.000Z | 2022-01-17T00:13:18.000Z | defmodule RegexHelp.PromEx do
@moduledoc """
Be sure to add the following to finish setting up PromEx:
1. Update your configuration (config.exs, dev.exs, prod.exs, releases.exs, etc) to
configure the necessary bit of PromEx. Be sure to check out `PromEx.Config` for
more details regarding configuring Pr... | 29.277228 | 91 | 0.658438 |
ff2fcef49d4c6383a635b89d83d1f5c64876fc05 | 2,727 | ex | Elixir | lib/aws/mca.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 223 | 2015-05-29T17:45:35.000Z | 2021-06-29T08:37:14.000Z | lib/aws/mca.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 33 | 2015-11-20T20:56:43.000Z | 2021-07-09T20:13:34.000Z | lib/aws/mca.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 62 | 2015-06-14T20:53:24.000Z | 2021-12-13T07:20:15.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.MCA do
@moduledoc """
Provides AWS Marketplace business intelligence data on-demand.
"""
@doc """
Given a data set type and data set publication date, asynchronously
publishes the reque... | 40.102941 | 82 | 0.676568 |
ff2fd0a961caec2749e49e69b99cc3a9b56d8451 | 584 | ex | Elixir | cryin/lib/cryin_web/router.ex | Graveyardillon/cryin | 975ef2f2c170351d60b0b9846b0616dc7d32a747 | [
"MIT"
] | null | null | null | cryin/lib/cryin_web/router.ex | Graveyardillon/cryin | 975ef2f2c170351d60b0b9846b0616dc7d32a747 | [
"MIT"
] | 1 | 2020-05-18T13:34:20.000Z | 2020-05-18T13:34:20.000Z | cryin/lib/cryin_web/router.ex | Papillon6814/cryin | 975ef2f2c170351d60b0b9846b0616dc7d32a747 | [
"MIT"
] | null | null | null | defmodule CryinWeb.Router do
use CryinWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", CryinWeb do
pipe_throug... | 19.466667 | 57 | 0.683219 |
ff303f0ebae7ad32a2ada530c61f82007ce7f0a2 | 160 | ex | Elixir | installer/templates/phx_web/controllers/page_controller.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 1 | 2018-07-26T10:42:26.000Z | 2018-07-26T10:42:26.000Z | installer/templates/phx_web/controllers/page_controller.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | installer/templates/phx_web/controllers/page_controller.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | defmodule <%= web_namespace %>.PageController do
use <%= web_namespace %>, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 20 | 48 | 0.6875 |
ff305ca8de3072b2c7aa4ae970762fd2daaa54a8 | 2,019 | ex | Elixir | lib/absinthe/introspection/field.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | lib/absinthe/introspection/field.ex | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2020-07-21T05:23:37.000Z | 2020-08-26T04:56:12.000Z | lib/absinthe/introspection/field.ex | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | defmodule Absinthe.Introspection.Field do
@moduledoc false
use Absinthe.Schema.Notation
alias Absinthe.Schema
alias Absinthe.Type
def meta("typename") do
%Type.Field{
name: "__typename",
type: :string,
description: "The name of the object type currently being queried.",
middlewa... | 26.220779 | 95 | 0.531451 |
ff306e618a50525070e3b200bcdeca7a3130f817 | 4,883 | ex | Elixir | apps/neoscan_sync/lib/neoscan_sync/converter.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan_sync/lib/neoscan_sync/converter.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan_sync/lib/neoscan_sync/converter.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | defmodule NeoscanSync.Converter do
alias Neoscan.Block
alias Neoscan.BlockGasGeneration
alias Neoscan.Vout
alias Neoscan.Vin
alias Neoscan.Claim
alias Neoscan.Transfer
alias Neoscan.Transaction
alias Neoscan.Asset
def convert_claim(claim_raw, transaction_raw, block_raw) do
%Claim{
transacti... | 35.129496 | 119 | 0.715544 |
ff309e773c83eaae530235511b48b136c6dc608a | 85 | exs | Elixir | config/config.exs | epinault/wavexfront | 29dcc3e82cedbbf18d5894a3b4b465efed4c3069 | [
"MIT"
] | 1 | 2020-01-12T03:47:59.000Z | 2020-01-12T03:47:59.000Z | config/config.exs | epinault/wavexfront | 29dcc3e82cedbbf18d5894a3b4b465efed4c3069 | [
"MIT"
] | null | null | null | config/config.exs | epinault/wavexfront | 29dcc3e82cedbbf18d5894a3b4b465efed4c3069 | [
"MIT"
] | null | null | null | use Mix.Config
config :wavexfront, enabled: false
import_config "#{Mix.env()}.exs"
| 14.166667 | 34 | 0.729412 |
ff30a939d9fc2b3e0a839f457c9d256fd7fb937e | 6,569 | ex | Elixir | clients/container/lib/google_api/container/v1/model/ip_allocation_policy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/ip_allocation_policy.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/ip_allocation_policy.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... | 43.503311 | 146 | 0.685036 |
ff30d46da34002b45811354c50cd71205f1dc6be | 1,196 | ex | Elixir | examples/server/lib/server_web/endpoint.ex | charaku/phoenix_wings | b2881ecaea0841d6c27e903ca8965c3ccb6a39c9 | [
"MIT"
] | 132 | 2017-12-30T06:12:34.000Z | 2022-03-13T16:16:24.000Z | examples/server/lib/server_web/endpoint.ex | charaku/phoenix_wings | b2881ecaea0841d6c27e903ca8965c3ccb6a39c9 | [
"MIT"
] | 25 | 2018-04-04T14:40:30.000Z | 2022-03-23T21:25:17.000Z | examples/server/lib/server_web/endpoint.ex | charaku/phoenix_wings | b2881ecaea0841d6c27e903ca8965c3ccb6a39c9 | [
"MIT"
] | 46 | 2018-03-18T17:35:21.000Z | 2022-03-23T20:37:01.000Z | defmodule ServerWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :server
socket "/socket", ServerWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static f... | 26.577778 | 63 | 0.703177 |
ff30e6c9db6d4676454ff1e5e5929e5a58d06a76 | 2,930 | ex | Elixir | lib/tracking/tracking.ex | amoein/ex_audit | 50e47a75624f1d266e414fabf4201696030cc721 | [
"MIT"
] | null | null | null | lib/tracking/tracking.ex | amoein/ex_audit | 50e47a75624f1d266e414fabf4201696030cc721 | [
"MIT"
] | null | null | null | lib/tracking/tracking.ex | amoein/ex_audit | 50e47a75624f1d266e414fabf4201696030cc721 | [
"MIT"
] | null | null | null | defmodule ExAudit.Tracking do
def find_changes(action, struct_or_changeset, resulting_struct) do
old = case {action, struct_or_changeset} do
{:created, _} -> %{}
{_, %Ecto.Changeset{data: struct}} -> struct
{_, %{} = struct} -> struct
{_, nil} -> %{}
end
new = case action do
... | 25.701754 | 82 | 0.616041 |
ff310309a9fcf65fa1e217a475d84474f76d5bac | 3,951 | exs | Elixir | test/controllers/badge_controller_test.exs | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 4 | 2016-11-07T09:47:09.000Z | 2020-10-19T20:39:03.000Z | test/controllers/badge_controller_test.exs | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 7 | 2016-11-07T13:02:36.000Z | 2016-11-23T17:37:07.000Z | test/controllers/badge_controller_test.exs | DNNX/badging | 861c0d0e376c212bf27e59710fb21d00f734c715 | [
"MIT"
] | 3 | 2016-11-07T09:51:36.000Z | 2019-06-18T12:26:38.000Z | defmodule Badging.BadgeControllerTest do
use Badging.ConnCase
alias Badging.Badge
@valid_attrs %{
identifier: "conversion",
color: "yellow",
status: "83%",
subject: "Conversion Progress"
}
@invalid_attrs %{color: ""}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "a... | 25.165605 | 98 | 0.619843 |
ff31063181003e99b3b87b56c7153ca4171aa4a1 | 970 | exs | Elixir | test/word_smith/squish_test.exs | benfalk/word_smith | f5f09d0fbbaa2513b59947ef37ffaeec0cbc456a | [
"MIT"
] | 19 | 2016-04-29T20:31:50.000Z | 2021-12-07T13:04:55.000Z | test/word_smith/squish_test.exs | hiro-riveros/word_smith | f5f09d0fbbaa2513b59947ef37ffaeec0cbc456a | [
"MIT"
] | 2 | 2017-07-13T14:21:03.000Z | 2019-07-14T14:30:22.000Z | test/word_smith/squish_test.exs | hiro-riveros/word_smith | f5f09d0fbbaa2513b59947ef37ffaeec0cbc456a | [
"MIT"
] | 2 | 2019-07-10T09:48:28.000Z | 2019-10-13T09:10:40.000Z | defmodule WordSmith.SquishTest do
use ExUnit.Case, async: true
import WordSmith.Squish
import String, only: [duplicate: 2]
test "pre-squished strings come out the same" do
assert squish("hello world") == "hello world"
end
test "will squish this down" do
assert squish("hello world") == "hello worl... | 26.944444 | 72 | 0.627835 |
ff317bfbe4f869c27dd170c7294c077940de8ee4 | 142 | exs | Elixir | config/dev.exs | headwayio/firebase-admin-ex | a57d0ee4cf197176aeef4a341a16993da52fa229 | [
"MIT"
] | 2 | 2021-05-03T03:16:32.000Z | 2021-07-12T11:16:13.000Z | config/dev.exs | headwayio/firebase-admin-ex | a57d0ee4cf197176aeef4a341a16993da52fa229 | [
"MIT"
] | null | null | null | config/dev.exs | headwayio/firebase-admin-ex | a57d0ee4cf197176aeef4a341a16993da52fa229 | [
"MIT"
] | 1 | 2021-05-03T03:16:46.000Z | 2021-05-03T03:16:46.000Z | use Mix.Config
config :goth, json: "/Users/pendragondev/Development/Projects/headway/theobotic/ditto-292414-c5e53185a7b1.json" |> File.read!
| 35.5 | 125 | 0.795775 |
ff31a1627153b4d63f4f4de6dbf2c2900e45f4df | 65 | ex | Elixir | lib/bifroest/web/views/page_view.ex | theSuess/bifroest-web | fc25d4e827546b2e1a08719962f0e161d622eded | [
"BSD-3-Clause"
] | 1 | 2017-03-29T06:48:06.000Z | 2017-03-29T06:48:06.000Z | lib/bifroest/web/views/page_view.ex | theSuess/bifroest-web | fc25d4e827546b2e1a08719962f0e161d622eded | [
"BSD-3-Clause"
] | null | null | null | lib/bifroest/web/views/page_view.ex | theSuess/bifroest-web | fc25d4e827546b2e1a08719962f0e161d622eded | [
"BSD-3-Clause"
] | null | null | null | defmodule Bifroest.Web.PageView do
use Bifroest.Web, :view
end
| 16.25 | 34 | 0.784615 |
ff31ea61de22524311aa840ace5225a699ab047a | 4,685 | ex | Elixir | deps/phoenix/lib/mix/phoenix.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | deps/phoenix/lib/mix/phoenix.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | deps/phoenix/lib/mix/phoenix.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | defmodule Mix.Phoenix do
# Conveniences for Phoenix tasks.
@moduledoc false
@doc """
Copies files from source dir to target dir
according to the given map.
Files are evaluated against EEx according to
the given binding.
"""
def copy_from(apps, source_dir, target_dir, binding, mapping) when is_list(m... | 28.393939 | 98 | 0.572038 |
ff31f8fac793d408e3d5d93d533ff2b3704ebe46 | 1,574 | exs | Elixir | mix.exs | gleidsonduarte/phoenix-elixir-hello-world | b89f7682ac63df8fb8235b2f426b8a82e4cec826 | [
"MIT"
] | null | null | null | mix.exs | gleidsonduarte/phoenix-elixir-hello-world | b89f7682ac63df8fb8235b2f426b8a82e4cec826 | [
"MIT"
] | null | null | null | mix.exs | gleidsonduarte/phoenix-elixir-hello-world | b89f7682ac63df8fb8235b2f426b8a82e4cec826 | [
"MIT"
] | null | null | null | defmodule PhoenixElixirHelloWorld.MixProject do
use Mix.Project
def project do
[
app: :phoenix_elixir_hello_world,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :... | 26.233333 | 84 | 0.605464 |
ff320c6316c797e8ab5a690baf843adbefc16cac | 419 | exs | Elixir | mix.exs | satom99/clust | 53c6a0c022b76bf68544bb73ed503904e68c3761 | [
"Apache-2.0"
] | null | null | null | mix.exs | satom99/clust | 53c6a0c022b76bf68544bb73ed503904e68c3761 | [
"Apache-2.0"
] | null | null | null | mix.exs | satom99/clust | 53c6a0c022b76bf68544bb73ed503904e68c3761 | [
"Apache-2.0"
] | null | null | null | defmodule Clust.MixProject do
use Mix.Project
def project do
[
app: :clust,
version: "0.1.0",
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
mod: {Clust, []}
]
end
... | 14.964286 | 42 | 0.491647 |
ff3211323efb666ad1b7337dcb381c7511164c89 | 3,044 | ex | Elixir | lib/new_relic/harvest/collector/harvest_cycle.ex | ll1498/elixir_agent | a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a | [
"Apache-2.0"
] | 1 | 2020-08-13T05:08:20.000Z | 2020-08-13T05:08:20.000Z | lib/new_relic/harvest/collector/harvest_cycle.ex | ll1498/elixir_agent | a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a | [
"Apache-2.0"
] | null | null | null | lib/new_relic/harvest/collector/harvest_cycle.ex | ll1498/elixir_agent | a7b3bf1b49639c61d9eba3d4b91b30e0e856b54a | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.Harvest.Collector.HarvestCycle do
use GenServer
# Manages the harvest cycle for a given harvester.
@moduledoc false
alias NewRelic.Harvest.Collector
def start_link(config) do
GenServer.start_link(__MODULE__, config, name: config[:name])
end
def init(
name: name,
... | 27.178571 | 89 | 0.68594 |
ff321911760431b21b98df3d1b24c7157aa347cd | 66 | ex | Elixir | lib/screens_web/views/v2/layout_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 3 | 2021-07-27T14:11:00.000Z | 2022-01-03T14:16:43.000Z | lib/screens_web/views/v2/layout_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | 444 | 2021-03-10T20:57:17.000Z | 2022-03-31T16:00:35.000Z | lib/screens_web/views/v2/layout_view.ex | mbta/screens | 4b586970f8844b19543bb2ffd4b032a89f6fa40a | [
"MIT"
] | null | null | null | defmodule ScreensWeb.V2.LayoutView do
use ScreensWeb, :view
end
| 16.5 | 37 | 0.80303 |
ff3259f7584902d14e53f999775dfb6d921db24f | 367 | ex | Elixir | lib/tod/slack.ex | webutil/tod | 0abde2ae2295aee88a40933b66adf9b0c6e5992f | [
"MIT"
] | null | null | null | lib/tod/slack.ex | webutil/tod | 0abde2ae2295aee88a40933b66adf9b0c6e5992f | [
"MIT"
] | null | null | null | lib/tod/slack.ex | webutil/tod | 0abde2ae2295aee88a40933b66adf9b0c6e5992f | [
"MIT"
] | null | null | null | defmodule TOD.Slack do
def send_message(text, webhook_url) do
case HTTPoison.post(
webhook_url,
Jason.encode!(%{
text: text
}),
[{"content-type", "application/json"}]
) do
{:ok, %HTTPoison.Response{status_code: 200, body: body}} -> {:ok, body... | 24.466667 | 77 | 0.525886 |
ff3288292f228b86965ab99442f0e2f500c3e1e6 | 3,883 | exs | Elixir | test/marathon_client/sse_client_test.exs | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 5 | 2018-10-12T13:13:19.000Z | 2020-10-03T17:51:37.000Z | test/marathon_client/sse_client_test.exs | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 207 | 2018-02-09T14:24:14.000Z | 2020-07-25T11:09:19.000Z | test/marathon_client/sse_client_test.exs | aclemmensen/relay | 4bce71ed7d8bd4936f96d62ed08d007729c4253d | [
"BSD-3-Clause"
] | 1 | 2019-08-08T11:30:59.000Z | 2019-08-08T11:30:59.000Z | Code.require_file(Path.join([__DIR__, "marathon_client_helper.exs"]))
defmodule MarathonClient.SSEClientTest do
use ExUnit.Case
alias MarathonClient.SSEClient
import MarathonTestHelpers, only: [marathon_event: 2]
setup_all do
TestHelpers.override_log_level(:info)
TestHelpers.setup_apps([:cowboy, :hac... | 37.336538 | 84 | 0.690961 |
ff3297d5da52611f73d9d4ce30030e8b20640284 | 494 | ex | Elixir | lib/kaffy/tasks.ex | clszzyh/kaffy | 411766de3bf1b5b88ca0cb5078b7421154c70db5 | [
"MIT"
] | 840 | 2020-05-08T20:24:01.000Z | 2022-03-18T07:03:49.000Z | lib/kaffy/tasks.ex | clszzyh/kaffy | 411766de3bf1b5b88ca0cb5078b7421154c70db5 | [
"MIT"
] | 189 | 2020-05-07T04:58:35.000Z | 2022-02-09T16:33:36.000Z | lib/kaffy/tasks.ex | clszzyh/kaffy | 411766de3bf1b5b88ca0cb5078b7421154c70db5 | [
"MIT"
] | 103 | 2020-05-09T12:42:22.000Z | 2022-03-30T04:10:22.000Z | defmodule Kaffy.Tasks do
def collect_tasks() do
Kaffy.Utils.get_task_modules()
|> Enum.map(fn m ->
m.__info__(:functions)
|> Enum.filter(fn {f, _} -> String.starts_with?(to_string(f), "task_") end)
|> Enum.map(fn {f, _} -> apply(m, f, []) end)
end)
|> List.flatten()
end
def task... | 24.7 | 81 | 0.609312 |
ff32aa1dada5b54de9cc5280fde76a7a28a5aeb4 | 3,027 | exs | Elixir | apps/omg_watcher_rpc/test/omg_watcher_rpc/tracer_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher_rpc/test/omg_watcher_rpc/tracer_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher_rpc/test/omg_watcher_rpc/tracer_test.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 28.027778 | 106 | 0.617443 |
ff32adfa642385edefed55c2bd8ea34df841ae24 | 719 | ex | Elixir | lib/database/project_permission.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | null | null | null | lib/database/project_permission.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | 1 | 2020-03-07T08:28:14.000Z | 2020-03-07T08:28:14.000Z | lib/database/project_permission.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | 3 | 2020-11-15T16:17:58.000Z | 2021-06-04T11:26:42.000Z | defmodule BorsNG.Database.ProjectPermission do
@behaviour Ecto.Type
@moduledoc """
A type to represent the permissions of a project member.
"""
def type, do: :string
def select_list, do: [
{"None", nil},
{"Admin", :admin},
{"Push", :push},
{"Pull", :pull},
]
def cast("") do
{:ok, ... | 18.435897 | 65 | 0.586926 |
ff32d412280eb6fe1edeecfb81f849a3d395a0e7 | 706 | ex | Elixir | lib/mix/tasks/kudos.generate.ex | ni-kismet/kudos | 3a4cf6ad375492d7434799aca2859ab17274a77b | [
"MIT"
] | null | null | null | lib/mix/tasks/kudos.generate.ex | ni-kismet/kudos | 3a4cf6ad375492d7434799aca2859ab17274a77b | [
"MIT"
] | 6 | 2020-06-15T20:23:52.000Z | 2021-05-26T20:07:00.000Z | lib/mix/tasks/kudos.generate.ex | ni-kismet/kudos | 3a4cf6ad375492d7434799aca2859ab17274a77b | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Kudos.Generate do
use Mix.Task
@shortdoc "Generates a licenses file"
@recursive false
def run(args \\ []) do
IO.puts("Generating Licenses file...")
resp =
include_dev_deps?(args)
|> Kudos.generate()
|> handle_licenses(dry_run?(args))
case resp do
:ok -... | 18.578947 | 44 | 0.626062 |
ff32da832f62c7b4c04f6c9f17b69d5ee63a588a | 3,285 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_http_proxy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_http_proxy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/target_http_proxy.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 ... | 49.029851 | 490 | 0.709589 |
ff32ece7cfa7b7ecb18869c1b0e24d358c8ec445 | 109 | exs | Elixir | test/premailex/html_parser/meeseeks_test.exs | dmarkow/premailex | 13dfbc5330541f8a30cdf00d3ee21816a3f9820b | [
"MIT"
] | 131 | 2017-10-01T04:02:35.000Z | 2022-03-25T03:28:07.000Z | test/premailex/html_parser/meeseeks_test.exs | dmarkow/premailex | 13dfbc5330541f8a30cdf00d3ee21816a3f9820b | [
"MIT"
] | 37 | 2018-01-16T16:04:46.000Z | 2022-03-24T14:38:57.000Z | test/premailex/html_parser/meeseeks_test.exs | dmarkow/premailex | 13dfbc5330541f8a30cdf00d3ee21816a3f9820b | [
"MIT"
] | 17 | 2017-12-24T20:13:30.000Z | 2021-12-29T19:37:31.000Z | defmodule Premailex.HTMLParser.MeeseeksTest do
use ExUnit.Case
doctest Premailex.HTMLParser.Meeseeks
end
| 21.8 | 46 | 0.844037 |
ff33258ed44443ee40316b094f52b8ef423b6b25 | 1,809 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/app_state.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/app_state.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/app_state.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.18 | 173 | 0.735766 |
ff3336f3116daf8a410cfcb4d99569d95229ea56 | 1,559 | ex | Elixir | goal_light_ui/lib/goal_light_ui_web/views/error_helpers.ex | TheEndIsNear/goal_light | 8456189832130a5bbfb641b275146de413ee6fa8 | [
"MIT"
] | null | null | null | goal_light_ui/lib/goal_light_ui_web/views/error_helpers.ex | TheEndIsNear/goal_light | 8456189832130a5bbfb641b275146de413ee6fa8 | [
"MIT"
] | null | null | null | goal_light_ui/lib/goal_light_ui_web/views/error_helpers.ex | TheEndIsNear/goal_light | 8456189832130a5bbfb641b275146de413ee6fa8 | [
"MIT"
] | null | null | null | defmodule GoalLightUiWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_... | 32.479167 | 80 | 0.667736 |
ff3359f1c739624967b27f30ca369425eefe8fee | 8,670 | ex | Elixir | apps/ewallet_db/lib/ewallet_db/role.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/role.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/lib/ewallet_db/role.ex | Macavirus/ewallet | ce62177b8bd3f7e72156930d384a1c4c047a3b5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 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 ... | 27.788462 | 98 | 0.598155 |
ff3398e67bc852e637eba53be451b1e41b0ed5c2 | 784 | ex | Elixir | lib/one_word/client.ex | Bentheburrito/onewordstorybot | 2d75f3a59a952d141cfa4306fb14c902815cbff5 | [
"MIT"
] | null | null | null | lib/one_word/client.ex | Bentheburrito/onewordstorybot | 2d75f3a59a952d141cfa4306fb14c902815cbff5 | [
"MIT"
] | null | null | null | lib/one_word/client.ex | Bentheburrito/onewordstorybot | 2d75f3a59a952d141cfa4306fb14c902815cbff5 | [
"MIT"
] | null | null | null | defmodule OneWord.Client do
use Nostrum.Consumer
alias Nostrum.Api
def start_link do
Consumer.start_link(__MODULE__)
end
def handle_event({:MESSAGE_CREATE, message, _ws_state}) do
if (!message.author.bot) do
with :notacommand <- OneWord.Command.handle_message(message),
{:ok, game} <- OneWord.GameHa... | 29.037037 | 143 | 0.718112 |
ff33a3e2e38acaed6fb3d6bb28f903c1125bd87d | 138 | exs | Elixir | apps/general/test/general_test.exs | bornmeyer/janus_signaling | cbab905aaa844a2762d4647f9363370cecd3db22 | [
"Apache-2.0"
] | null | null | null | apps/general/test/general_test.exs | bornmeyer/janus_signaling | cbab905aaa844a2762d4647f9363370cecd3db22 | [
"Apache-2.0"
] | null | null | null | apps/general/test/general_test.exs | bornmeyer/janus_signaling | cbab905aaa844a2762d4647f9363370cecd3db22 | [
"Apache-2.0"
] | null | null | null | defmodule GeneralTest do
use ExUnit.Case
doctest General
test "greets the world" do
assert General.hello() == :world
end
end
| 15.333333 | 36 | 0.710145 |
ff34133c250f03e03a11cf29692955ac72163d13 | 142 | ex | Elixir | wadm/lib/application.ex | wasmCloud/lattice-controller | f965ee6ed367904d5efe3bd7475a4e24ea578254 | [
"Apache-2.0"
] | 2 | 2021-08-31T12:55:58.000Z | 2021-09-04T13:20:22.000Z | wadm/lib/application.ex | wasmCloud/wadm | ccf76739039f14fc40548a00dd209d7ffa5c0c4e | [
"Apache-2.0"
] | 12 | 2021-11-28T19:22:20.000Z | 2022-01-25T18:41:48.000Z | wadm/lib/application.ex | wasmCloud/wadm | ccf76739039f14fc40548a00dd209d7ffa5c0c4e | [
"Apache-2.0"
] | 1 | 2021-11-25T00:42:06.000Z | 2021-11-25T00:42:06.000Z | defmodule Wadm.Application do
use Application
def start(_type, _args) do
Wadm.Supervisor.start_link(name: Wadm.Supervisor)
end
end
| 17.75 | 53 | 0.760563 |
ff341ac908af905c39d65dc64a9804412254a3f3 | 70 | ex | Elixir | lib/leeloo/metrics_exporter.ex | azohra/leeloo | d5b26dda0e54c4cdc2f47208be433e6b79223284 | [
"MIT"
] | null | null | null | lib/leeloo/metrics_exporter.ex | azohra/leeloo | d5b26dda0e54c4cdc2f47208be433e6b79223284 | [
"MIT"
] | null | null | null | lib/leeloo/metrics_exporter.ex | azohra/leeloo | d5b26dda0e54c4cdc2f47208be433e6b79223284 | [
"MIT"
] | null | null | null | defmodule Leeloo.MetricsExporter do
use Prometheus.PlugExporter
end
| 17.5 | 35 | 0.857143 |
ff34279cade3f34c467b75b8102ef1ae739476b2 | 2,588 | ex | Elixir | lib/sippet/message/request_line.ex | BrendanBall/elixir-sippet | 877edcbbc8d8ba5b6b41684c20041510c410aad3 | [
"BSD-3-Clause"
] | 54 | 2017-04-26T03:15:56.000Z | 2022-02-08T00:22:11.000Z | lib/sippet/message/request_line.ex | BrendanBall/elixir-sippet | 877edcbbc8d8ba5b6b41684c20041510c410aad3 | [
"BSD-3-Clause"
] | 21 | 2017-06-19T08:00:33.000Z | 2022-01-19T10:38:11.000Z | lib/sippet/message/request_line.ex | BrendanBall/elixir-sippet | 877edcbbc8d8ba5b6b41684c20041510c410aad3 | [
"BSD-3-Clause"
] | 22 | 2017-06-19T08:15:34.000Z | 2022-03-22T13:56:20.000Z | defmodule Sippet.Message.RequestLine do
@moduledoc """
A SIP Request-Line struct, composed by the Method, Request-URI and
SIP-Version.
The `start_line` of requests are represented by this struct. The RFC 3261
represents the Request-Line as:
Request-Line = Method SP Request-URI SP SIP-Version CRLF
... | 27.242105 | 82 | 0.686631 |
ff344778e460c174c25fe065aa0455322db3cc07 | 1,748 | ex | Elixir | lib/seven/otters/policy.ex | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 7 | 2019-08-23T16:28:34.000Z | 2020-12-18T04:57:51.000Z | lib/seven/otters/policy.ex | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 9 | 2021-07-29T16:18:30.000Z | 2021-07-29T16:36:59.000Z | lib/seven/otters/policy.ex | the-AjK/sevenotters | b56c4c129f441f832561b6a9aff66281aa8627de | [
"MIT"
] | 6 | 2020-04-07T15:41:50.000Z | 2021-10-01T19:03:08.000Z | defmodule Seven.Otters.Policy do
@moduledoc false
defmacro __using__(listener_of_events: listener_of_events) do
quote location: :keep do
use GenServer
use Seven.Utils.Tagger
@tag :policy
# API
def start_link(opts \\ []) do
{:ok, pid} = GenServer.start_link(__MODULE__, {:... | 27.746032 | 110 | 0.621281 |
ff345bed200b240b9fbb4c1f027586eb7fef7d34 | 1,065 | ex | Elixir | lib/open_cagex/response.ex | dreallday/open-cagex | 84caf2c421b7272b25d21b469c3441be2cf7ba61 | [
"MIT"
] | 13 | 2017-06-20T07:25:20.000Z | 2022-01-19T17:44:12.000Z | lib/open_cagex/response.ex | winescout/open-cagex | 3d1fe2197341b32022d0f9cbab33a4243307b261 | [
"MIT"
] | 2 | 2019-11-10T12:19:29.000Z | 2020-12-05T02:42:58.000Z | lib/open_cagex/response.ex | winescout/open-cagex | 3d1fe2197341b32022d0f9cbab33a4243307b261 | [
"MIT"
] | 6 | 2017-12-12T20:30:34.000Z | 2020-12-02T21:23:56.000Z | defmodule OpenCagex.Response do
@moduledoc """
Allows to handle responses from OpenCagex.Api
"""
@errors %{
400 => "Invalid request (bad request; a required parameter is missing; invalid coordinates)",
402 => "Valid request but quota exceeded (payment required)",
403 => "Invalid or missing API key"... | 25.97561 | 97 | 0.651643 |
ff346100b5c06da94b40db763015318d090539c0 | 16,859 | ex | Elixir | lib/cldr/calendar/behaviour.ex | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 6 | 2019-08-29T12:31:03.000Z | 2021-08-28T23:15:39.000Z | lib/cldr/calendar/behaviour.ex | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 8 | 2019-11-08T09:13:00.000Z | 2021-12-26T05:34:28.000Z | lib/cldr/calendar/behaviour.ex | kianmeng/cldr_calendars | af1ffe1b40100792e8e643ce09cc7db7224060b6 | [
"Apache-2.0"
] | 2 | 2020-05-08T12:19:01.000Z | 2022-03-03T14:53:06.000Z | defmodule Cldr.Calendar.Behaviour do
defmacro __using__(opts \\ []) do
epoch = Keyword.fetch!(opts, :epoch)
{date, []} = Code.eval_quoted(epoch)
epoch = Cldr.Calendar.date_to_iso_days(date)
epoch_day_of_week = Date.day_of_week(date)
days_in_week = Keyword.get(opts, :days_in_week, 7)
first_d... | 26.888357 | 102 | 0.603654 |
ff346b445b68fa7c47b0fcb41b18277122729b74 | 1,446 | exs | Elixir | test/acceptances/scroll_test.exs | falood/tirexs | 9c63532cf2f50f77fb437f617d433741771d3619 | [
"Apache-2.0"
] | null | null | null | test/acceptances/scroll_test.exs | falood/tirexs | 9c63532cf2f50f77fb437f617d433741771d3619 | [
"Apache-2.0"
] | null | null | null | test/acceptances/scroll_test.exs | falood/tirexs | 9c63532cf2f50f77fb437f617d433741771d3619 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test_helper.exs", __ENV__.file
defmodule Acceptances.ScrollTest do
use ExUnit.Case
import Tirexs.Search
import Tirexs.Bulk
require Tirexs.ElasticSearch
require Tirexs.Query
test :scroll do
settings = Tirexs.ElasticSearch.config()
Tirexs.ElasticSearch.delete("bear_test", s... | 32.863636 | 71 | 0.651452 |
ff34b2e572119042d7d92c9c777d469ed2c59442 | 831 | ex | Elixir | lib/encrypted_field.ex | jclem/encrypted_field | 29da394f9dfcfa4c3d8efde21d8bddcc4d904d9a | [
"MIT"
] | 6 | 2019-01-26T20:10:11.000Z | 2020-01-19T01:51:59.000Z | lib/encrypted_field.ex | jclem/encrypted_field | 29da394f9dfcfa4c3d8efde21d8bddcc4d904d9a | [
"MIT"
] | null | null | null | lib/encrypted_field.ex | jclem/encrypted_field | 29da394f9dfcfa4c3d8efde21d8bddcc4d904d9a | [
"MIT"
] | 4 | 2019-01-26T19:18:30.000Z | 2019-05-14T03:53:51.000Z | defmodule EncryptedField do
@moduledoc """
An encrypted field for use in an Ecto Schema
defmodule MyApp.User do
use Ecto.Schema
schema "users" do
field :token, EncryptedField
end
end
"""
import EncryptedField.Encryption
@behaviour Ecto.Type
@impl Ecto.Type
... | 22.459459 | 57 | 0.593261 |
ff34d19b61a95de44139e20913b8fa0f7aab204c | 557 | exs | Elixir | test/concentrate/supervisor_test.exs | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 19 | 2018-01-22T18:39:20.000Z | 2022-02-22T16:15:30.000Z | test/concentrate/supervisor_test.exs | mbta/concentrate | bae6e05713ed079b7da53867a01dd007861fb656 | [
"MIT"
] | 216 | 2018-01-22T14:22:39.000Z | 2022-03-31T10:30:31.000Z | test/concentrate/supervisor_test.exs | paulswartz/concentrate | a69aa51c16071f2669932005be810da198f622c8 | [
"MIT"
] | 5 | 2018-01-22T14:18:15.000Z | 2021-04-26T18:34:19.000Z | defmodule Concentrate.SupervisorTest do
@moduledoc false
use ExUnit.Case
import Concentrate.Supervisor
describe "start_link/0" do
test "can start the application" do
Application.ensure_all_started(:concentrate)
on_exit(fn ->
Application.stop(:concentrate)
end)
end
end
de... | 22.28 | 83 | 0.678636 |
ff34db4ffc5381b1694edf62a291baf6fdd4cc2d | 8,545 | ex | Elixir | lib/buf_edit.ex | moxley/ex_buffer | 5efcb1ca6568175cda908fb2833207a084ff94a2 | [
"Apache-2.0"
] | 1 | 2018-10-17T12:16:15.000Z | 2018-10-17T12:16:15.000Z | lib/buf_edit.ex | moxley/buf_edit | 5efcb1ca6568175cda908fb2833207a084ff94a2 | [
"Apache-2.0"
] | null | null | null | lib/buf_edit.ex | moxley/buf_edit | 5efcb1ca6568175cda908fb2833207a084ff94a2 | [
"Apache-2.0"
] | null | null | null | defmodule BufEdit do
@moduledoc """
Programmable buffer editor, similar in concept to [ed](https://en.wikipedia.org/wiki/Ed_(text_editor)).
`BufEdit` reads a file into memory and provides a flexible API for editing it and writing
it back to a file.
Consider the following mix.exs file:
```elixir
defmodu... | 24.840116 | 105 | 0.590053 |
ff3500499039f8d727dfe907587223643224bc85 | 250 | exs | Elixir | ttrack-backend/priv/repo/migrations/20200120163227_create_users.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | ttrack-backend/priv/repo/migrations/20200120163227_create_users.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | ttrack-backend/priv/repo/migrations/20200120163227_create_users.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | defmodule Ttrack.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string
add :hashed_password, :string
add :session_secret, :string
timestamps()
end
end
end
| 16.666667 | 47 | 0.668 |
ff3503361ae28bc7444ef5a293db28a04009367f | 3,765 | ex | Elixir | crawler_challenge/lib/crawler_challenge/processes/processes.ex | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | crawler_challenge/lib/crawler_challenge/processes/processes.ex | tuliostarling/crawler-challenge | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | 3 | 2021-05-08T08:50:39.000Z | 2022-02-10T19:40:38.000Z | crawler_challenge/lib/crawler_challenge/processes/processes.ex | tuliostarling/elixir-crawler | 1b948769db200d09ac0481b9fd71a175d876d20f | [
"Apache-2.0"
] | null | null | null | defmodule CrawlerChallenge.Processes do
@moduledoc """
The Processes context.
"""
use Timex
import Ecto.Query, warn: false
alias CrawlerChallenge.{Courts, Details, Movements, NebulexCache, Parties}
alias CrawlerChallenge.Repo
alias CrawlerChallenge.Processes.Process
alias Ecto.Multi
@regex_numb... | 22.54491 | 86 | 0.634263 |
ff35034432804d0a53f0605dc06b42aad3dbf5cc | 240 | exs | Elixir | priv/repo/migrations/20210418041849_add_meta_to_article_content.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210418041849_add_meta_to_article_content.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210418041849_add_meta_to_article_content.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.AddMetaToArticleContent do
use Ecto.Migration
def change do
alter table(:cms_jobs) do
add(:meta, :map)
end
alter table(:cms_repos) do
add(:meta, :map)
end
end
end
| 17.142857 | 67 | 0.675 |
ff3529e9743d5bd7cdd917ab2d9a7e3eef6999c2 | 1,535 | exs | Elixir | test/shim_test.exs | bitwalker/uniq_compat | 0cc564fbde21f872e4621d825af41953d66fc8ca | [
"Apache-2.0"
] | 3 | 2021-06-09T16:40:10.000Z | 2021-06-16T11:45:11.000Z | test/shim_test.exs | bitwalker/uniq_compat | 0cc564fbde21f872e4621d825af41953d66fc8ca | [
"Apache-2.0"
] | null | null | null | test/shim_test.exs | bitwalker/uniq_compat | 0cc564fbde21f872e4621d825af41953d66fc8ca | [
"Apache-2.0"
] | null | null | null | defmodule Uniq.Compat.ShimTests do
@moduledoc "These tests were lifted straight from elixir_uuid so we can ensure compatibility"
use ExUnit.Case, async: true
@info_tests_path Path.join([__DIR__, "fixtures", "elixir_uuid_info_tests.txt"])
test "UUID.info/1 invalid argument type" do
assert UUID.info(:not_a_... | 28.425926 | 95 | 0.64886 |
ff352dd63bb2bcac8e05a459d33ecac5ed575928 | 3,828 | ex | Elixir | lib/cartel/pusher/wns.ex | lucacorti/cartel | da86c1428b2c5ce1d8859c40e74e3499bf09dfb4 | [
"MIT"
] | 17 | 2016-03-09T19:44:55.000Z | 2022-01-31T20:23:28.000Z | lib/cartel/pusher/wns.ex | lucacorti/cartel | da86c1428b2c5ce1d8859c40e74e3499bf09dfb4 | [
"MIT"
] | 18 | 2016-03-09T21:10:52.000Z | 2020-11-17T09:05:17.000Z | lib/cartel/pusher/wns.ex | lucacorti/cartel | da86c1428b2c5ce1d8859c40e74e3499bf09dfb4 | [
"MIT"
] | 3 | 2016-03-11T22:08:11.000Z | 2016-05-19T05:32:17.000Z | defmodule Cartel.Pusher.Wns do
@moduledoc """
Microsoft WNS interface worker
"""
use GenServer
use Cartel.Pusher, message_module: Cartel.Message.Wns
alias Cartel.HTTP
alias Cartel.Message.Wns
alias HTTP.{Request, Response}
@wns_login_url "https://login.live.com/accesstoken.srf"
@doc """
Starts... | 29 | 99 | 0.654127 |
ff352fe33cf3319771e1affa838e5749c50727bb | 619 | ex | Elixir | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/check_name_availability_parameter.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/check_name_availability_parameter.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/check_name_availability_parameter.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.EventHub.Model.CheckNameAvailabilityParameter do
@moduledoc """
Parameter supplied to check Namespace name availabi... | 23.807692 | 104 | 0.741519 |
ff3531b3dba9299bc9d5a4f885731226278415e2 | 34,159 | exs | Elixir | test/hexpm/web/controllers/api/release_controller_test.exs | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/controllers/api/release_controller_test.exs | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | test/hexpm/web/controllers/api/release_controller_test.exs | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.API.ReleaseControllerTest do
use Hexpm.ConnCase, async: true
alias Hexpm.Accounts.AuditLog
alias Hexpm.Repository.{Package, RegistryBuilder, Release, Repository}
setup do
user = insert(:user)
repository = insert(:repository)
package = insert(:package, package_owners: [build(:pa... | 35.471443 | 101 | 0.612313 |
ff3536b805cb9aba4b5df1955f27a3056550b660 | 13,855 | exs | Elixir | lib/elixir/test/elixir/kernel/guard_test.exs | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/guard_test.exs | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/guard_test.exs | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.GuardTest do
use ExUnit.Case, async: true
describe "Kernel.defguard(p) usage" do
defmodule GuardsInMacros do
defguard is_foo(atom) when atom == :foo
defmacro is_compile_time_foo(atom) when is_foo(atom) do
quote do: unquote(... | 30.317287 | 101 | 0.620498 |
ff355885e94fae91eada4cde94720b277dfecf07 | 7,838 | ex | Elixir | lib/elixir_sense/plugins/ecto/query.ex | maciej-szlosarczyk/elixir_sense | aeadfd74c0cacb4370b7f3fae1d891ae75421b87 | [
"Unlicense",
"MIT"
] | null | null | null | lib/elixir_sense/plugins/ecto/query.ex | maciej-szlosarczyk/elixir_sense | aeadfd74c0cacb4370b7f3fae1d891ae75421b87 | [
"Unlicense",
"MIT"
] | null | null | null | lib/elixir_sense/plugins/ecto/query.ex | maciej-szlosarczyk/elixir_sense | aeadfd74c0cacb4370b7f3fae1d891ae75421b87 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ElixirSense.Plugins.Ecto.Query do
@moduledoc false
alias ElixirSense.Core.Introspection
alias ElixirSense.Core.Metadata
alias ElixirSense.Core.Source
alias ElixirSense.Core.State
alias ElixirSense.Providers.Suggestion.Complete
# We'll keep these values hard-coded until Ecto provides the same i... | 28.605839 | 96 | 0.615208 |
ff35599a764a8fe6dce4fda699d197be3f6f3e24 | 3,696 | ex | Elixir | apps/fz_http/lib/fz_http_web/live/mfa_live/register_steps_component.ex | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http_web/live/mfa_live/register_steps_component.ex | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | 1 | 2020-04-24T01:53:41.000Z | 2020-04-24T01:53:41.000Z | apps/fz_http/lib/fz_http_web/live/mfa_live/register_steps_component.ex | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | null | null | null | defmodule FzHttpWeb.MFA.RegisterStepsComponent do
@moduledoc """
MFA registration steps
"""
use Phoenix.Component
import FzHttpWeb.ErrorHelpers
def render_step(assigns) do
apply(__MODULE__, assigns[:step], [assigns])
end
def pick_type(assigns) do
~H"""
<form id="mfa-method-form" phx-targe... | 25.846154 | 112 | 0.52895 |
ff356144884803b573e6ced3c5289dec43a452ec | 6,445 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1/model/policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_fusion/lib/google_api/data_fusion/v1/model/policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_fusion/lib/google_api/data_fusion/v1/model/policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 115.089286 | 2,012 | 0.75128 |
ff356d1c47c84d1559f73b5ee55fa52aee39c52d | 3,026 | ex | Elixir | lib/boom_notifier.ex | rafaeliga/boom | 809d5575a3ca74239e4bdb906cc2de5fd6cd3e4e | [
"MIT"
] | null | null | null | lib/boom_notifier.ex | rafaeliga/boom | 809d5575a3ca74239e4bdb906cc2de5fd6cd3e4e | [
"MIT"
] | null | null | null | lib/boom_notifier.ex | rafaeliga/boom | 809d5575a3ca74239e4bdb906cc2de5fd6cd3e4e | [
"MIT"
] | null | null | null | defmodule BoomNotifier do
@moduledoc false
# Responsible for sending a notification to each notifier every time an
# exception is raised.
alias BoomNotifier.ErrorStorage
alias BoomNotifier.NotifierSenderServer
require Logger
def run_callback(settings, callback) do
missing_keys = Enum.reject([:notif... | 29.096154 | 111 | 0.657634 |
ff358ac39dab5b9be60305c128086399c4c173b9 | 1,507 | ex | Elixir | lib/basic.ex | georgelima/skooma | c33fbbe38a02ccabb95a131325ee38b3fdc4c117 | [
"MIT"
] | 1 | 2020-11-08T01:39:16.000Z | 2020-11-08T01:39:16.000Z | lib/basic.ex | georgelima/skooma | c33fbbe38a02ccabb95a131325ee38b3fdc4c117 | [
"MIT"
] | null | null | null | lib/basic.ex | georgelima/skooma | c33fbbe38a02ccabb95a131325ee38b3fdc4c117 | [
"MIT"
] | null | null | null | defmodule Skooma.Basic do
alias Skooma.Utils
def validator(validator_, type, data, schema, path \\ []) do
data
|> validator_.()
|> error(data, type, path)
|> custom_validator(data, schema, path)
end
defp error(bool, data, expected_type, path) do
data_type = Utils.typeof(data)
if bool ... | 23.920635 | 98 | 0.560717 |
ff358fde76aef48060ff4c3716351d82890231aa | 7,509 | exs | Elixir | test/client_tests/terraform_test.exs | valiot/opex62541 | 8e50ef9508c25b0693123840d20dcae708e98bfe | [
"MIT"
] | 11 | 2020-04-24T20:54:23.000Z | 2022-01-11T03:13:13.000Z | test/client_tests/terraform_test.exs | valiot/opex62541 | 8e50ef9508c25b0693123840d20dcae708e98bfe | [
"MIT"
] | 3 | 2021-02-25T10:03:49.000Z | 2021-09-15T03:37:12.000Z | test/client_tests/terraform_test.exs | valiot/opex62541 | 8e50ef9508c25b0693123840d20dcae708e98bfe | [
"MIT"
] | 4 | 2020-09-28T16:18:43.000Z | 2021-09-09T16:29:14.000Z | defmodule ClientTerraformTest do
use ExUnit.Case
alias OpcUA.{Client, NodeId, Server, QualifiedName}
@configuration_server [
config: [
port: 4006,
users: [{"alde103", "secret"}]
]
]
@address_space [
namespace: "Sensor",
object_type_node: OpcUA.ObjectTypeNode.new(
[
... | 34.603687 | 116 | 0.676388 |
ff35f31e1654d2f67a40dc54a53a3805ae42078d | 1,133 | ex | Elixir | lib/markdown_elixir/paser/indented_code_blocks.ex | mazz-seven/markdown_elixir | 0b78ffa6c69ca67d54befedd4927bb4ba947235e | [
"MIT"
] | 1 | 2020-04-13T09:39:55.000Z | 2020-04-13T09:39:55.000Z | lib/markdown_elixir/paser/indented_code_blocks.ex | mazz-seven/markdown_elixir | 0b78ffa6c69ca67d54befedd4927bb4ba947235e | [
"MIT"
] | null | null | null | lib/markdown_elixir/paser/indented_code_blocks.ex | mazz-seven/markdown_elixir | 0b78ffa6c69ca67d54befedd4927bb4ba947235e | [
"MIT"
] | null | null | null | defmodule MarkdownElixir.Parser.IndentedCodeBlocks do
import NimbleParsec
@doc """
Parses Indented Code Blocks
"""
def parse(content) do
case indented_code_blocks(content, context: [macro: nil]) do
{:ok, tree, "", %{macro: nil}, _, _} ->
{:ok, tree}
{:ok, message, _rest, _context, {l... | 22.66 | 85 | 0.598411 |
ff361a75033b9a5679fc2389fc06a7fb3afddd83 | 6,943 | ex | Elixir | lib/livebook/application.ex | nicksen/livebook | f5afac94970d9c3bd3ad93f6c633e305e9bce30a | [
"Apache-2.0"
] | null | null | null | lib/livebook/application.ex | nicksen/livebook | f5afac94970d9c3bd3ad93f6c633e305e9bce30a | [
"Apache-2.0"
] | null | null | null | lib/livebook/application.ex | nicksen/livebook | f5afac94970d9c3bd3ad93f6c633e305e9bce30a | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Application do
@moduledoc false
use Application
def start(_type, _args) do
ensure_directories!()
set_local_filesystem!()
ensure_distribution!()
validate_hostname_resolution!()
set_cookie()
children =
[
# Start the Telemetry supervisor
LivebookWeb... | 28.809129 | 143 | 0.635172 |
ff361a9f03e6714945491974de340152b17ea894 | 77 | exs | Elixir | test/test_helper.exs | documents-org/documents.design-el | 6976254e175232afe5e913c29b04c13a86d2e9a2 | [
"MIT"
] | null | null | null | test/test_helper.exs | documents-org/documents.design-el | 6976254e175232afe5e913c29b04c13a86d2e9a2 | [
"MIT"
] | null | null | null | test/test_helper.exs | documents-org/documents.design-el | 6976254e175232afe5e913c29b04c13a86d2e9a2 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(DocumentsDesign.Repo, :manual)
| 25.666667 | 61 | 0.805195 |
ff36544b93a304ba999fb16616c4e59401d88ea9 | 258 | ex | Elixir | lib/agent/cache/cache.ex | IanLuites/kvasir_agent | 37a70c1eaa8cee1a61de8c0fe6b9ff7dcd290a83 | [
"MIT"
] | 1 | 2020-09-03T08:31:02.000Z | 2020-09-03T08:31:02.000Z | lib/agent/cache/cache.ex | IanLuites/kvasir_agent | 37a70c1eaa8cee1a61de8c0fe6b9ff7dcd290a83 | [
"MIT"
] | null | null | null | lib/agent/cache/cache.ex | IanLuites/kvasir_agent | 37a70c1eaa8cee1a61de8c0fe6b9ff7dcd290a83 | [
"MIT"
] | null | null | null | defmodule Kvasir.Agent.Cache do
@callback load(agent :: module, id :: term) :: {:ok, Kvasir.Offset.t(), map} | {:error, atom}
@callback save(agent :: module, id :: term, data :: map, offset :: Kvasir.Offset.t()) ::
:ok | {:error, atom}
end
| 43 | 95 | 0.589147 |
ff367adc1d0682bd59f37a815a00dff8aff30119 | 1,115 | ex | Elixir | lib/ex_saferpay/request_normalizer.ex | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | 1 | 2017-12-12T17:09:02.000Z | 2017-12-12T17:09:02.000Z | lib/ex_saferpay/request_normalizer.ex | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | 4 | 2017-12-12T17:08:28.000Z | 2018-03-01T08:04:56.000Z | lib/ex_saferpay/request_normalizer.ex | jshmrtn/ex-saferpay | 263fc6dacf5b2741eb3fff33cf8ed405637d170a | [
"MIT"
] | null | null | null | defmodule ExSaferpay.RequestNormalizer do
@moduledoc false
defp camelize_map(map) do
Enum.map(map, fn
{key, value} when is_binary(key) ->
{Macro.camelize(key), value}
{key, value} when is_atom(key) ->
{Macro.camelize(Atom.to_string(key)), value}
end)
end
defp normalize_val... | 21.037736 | 92 | 0.573094 |
ff367c74335957d5fea543201d46f5064d5d73ae | 1,090 | ex | Elixir | lib/phoenix_app_web/router.ex | yosefbennywidyo/phoenix_app | 04c49fc324e137589006ada3a6cb414c466be86d | [
"MIT"
] | null | null | null | lib/phoenix_app_web/router.ex | yosefbennywidyo/phoenix_app | 04c49fc324e137589006ada3a6cb414c466be86d | [
"MIT"
] | null | null | null | lib/phoenix_app_web/router.ex | yosefbennywidyo/phoenix_app | 04c49fc324e137589006ada3a6cb414c466be86d | [
"MIT"
] | null | null | null | defmodule PhoenixAppWeb.Router do
use PhoenixAppWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", PhoenixAppWeb do
... | 25.348837 | 70 | 0.702752 |
ff3682c063b2385e0ce67709d659ee79843982a6 | 1,698 | exs | Elixir | test/upload/adapters/s3_test.exs | artemeff/upload | ab495e79caed499c0c80d273e581887b7df51b9d | [
"MIT"
] | 30 | 2017-12-23T15:00:30.000Z | 2021-09-29T19:33:09.000Z | test/upload/adapters/s3_test.exs | artemeff/upload | ab495e79caed499c0c80d273e581887b7df51b9d | [
"MIT"
] | 6 | 2018-05-03T18:44:36.000Z | 2021-04-21T17:15:25.000Z | test/upload/adapters/s3_test.exs | artemeff/upload | ab495e79caed499c0c80d273e581887b7df51b9d | [
"MIT"
] | 5 | 2019-09-27T16:37:58.000Z | 2021-10-04T21:04:35.000Z | defmodule Upload.Adapters.S3Test do
use ExUnit.Case, async: true
doctest Upload.Adapters.S3
alias Upload.Adapters.S3, as: Adapter
@fixture Path.expand("../../fixtures/text.txt", __DIR__)
@upload %Upload{path: @fixture, filename: "text.txt", key: "foo/text.txt"}
defp ensure_bucket_exists! do
with {:e... | 31.444444 | 98 | 0.658422 |
ff36904b834dce96806979f5755a3f6e4228a52b | 1,737 | ex | Elixir | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/claim_device_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/claim_device_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_device_provisioning/lib/google_api/android_device_provisioning/v1/model/claim_device_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 ... | 34.058824 | 105 | 0.735751 |
ff369574d34d44e92bd473a46a91b2a805bc3402 | 3,075 | ex | Elixir | lib/ex_unit/lib/ex_unit/capture_server.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/capture_server.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/capture_server.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.CaptureServer do
@moduledoc false
@timeout 30_000
use GenServer
def start_link() do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def device_capture_on(device, pid) do
GenServer.call(__MODULE__, {:device_capture_on, device, pid}, @timeout)
end
def device_captur... | 25.625 | 75 | 0.627967 |
ff36a0504a869de619b15033dda1d7ee91730077 | 1,470 | ex | Elixir | lib/mail_slurp_api/model/page_group_projection.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-06-17T18:07:49.000Z | 2021-06-17T18:07:49.000Z | lib/mail_slurp_api/model/page_group_projection.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/page_group_projection.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-03-16T18:55:56.000Z | 2021-03-16T18:55:56.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.PageGroupProjection do
@moduledoc """
Paginated missed email results. Page index starts at zero. Projection results may omit la... | 29.4 | 189 | 0.646259 |
ff36a94884f8b5411062e17e0c64c221cd69180a | 4,914 | exs | Elixir | apps/ewallet_db/test/ewallet_db/api_key_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/test/ewallet_db/api_key_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/test/ewallet_db/api_key_test.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletDB.APIKeyTest do
use EWalletDB.SchemaCase
alias EWalletDB.APIKey
alias Ecto.UUID
@owner_app :some_app
describe "APIKey factory" do
test_has_valid_factory(APIKey)
end
describe "get/1" do
test "accepts a uuid" do
api_key = insert(:api_key)
result = APIKey.get(api_key.... | 27.920455 | 98 | 0.656288 |
ff36c3241a4a249d24cbcdb576e0cd4aed0f43d8 | 298 | exs | Elixir | config/config.exs | aleDsz/ecto-xsd | da9eec98cd8e3350184f278272ff5d9a828ce92c | [
"MIT"
] | 6 | 2021-03-11T17:23:14.000Z | 2021-11-15T11:13:53.000Z | config/config.exs | aleDsz/ecto-xsd | da9eec98cd8e3350184f278272ff5d9a828ce92c | [
"MIT"
] | 9 | 2021-04-13T08:36:29.000Z | 2021-07-23T08:42:25.000Z | config/config.exs | aleDsz/ecto-xsd | da9eec98cd8e3350184f278272ff5d9a828ce92c | [
"MIT"
] | null | null | null | use Mix.Config
config :git_hooks,
auto_install: true,
verbose: true,
hooks: [
pre_commit: [
tasks: [
{:cmd, "mix format"},
{:cmd, "mix credo --strict"}
]
],
pre_push: [
verbose: false,
tasks: [
{:cmd, "mix test"}
]
]
]
| 14.9 | 36 | 0.463087 |
ff36cdfb4c9580e56d69afdb78d74518b57c7352 | 428 | ex | Elixir | code-sample-elixir/kv/lib/tasklist.ex | aquatir/learntocode | 9b860a528ded64fab2686a93c49dfd4b3947d6c9 | [
"MIT"
] | null | null | null | code-sample-elixir/kv/lib/tasklist.ex | aquatir/learntocode | 9b860a528ded64fab2686a93c49dfd4b3947d6c9 | [
"MIT"
] | 1 | 2017-10-03T11:25:54.000Z | 2017-10-03T11:25:54.000Z | code-sample-elixir/kv/lib/tasklist.ex | aquatir/remember_java_api | 6acc72e23a954152d922e380d06f337f55921950 | [
"MIT"
] | null | null | null | defmodule TaskList do
## Import two functions from File so we could write just "write(..)" and not "File.write()"
import File, only: [write: 3, read: 1]
## Module attribute.
@file_name "task_list.md"
def add(task_name) do
task = "[ ] " <> task_name <> "\n"
write(@file_name, task, [:append])
end
... | 19.454545 | 93 | 0.621495 |
ff36cf06f7c4bdc1cbe3c39874d9ef8fcbd30c49 | 1,528 | exs | Elixir | exercises/saddle-points/example.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/saddle-points/example.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/saddle-points/example.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | defmodule Matrix do
@doc """
Parses a string representation of a matrix
to a list of rows
"""
@spec rows(String.t()) :: [[integer]]
def rows(str) do
str
|> String.split("\n")
|> Enum.map(&parse_row/1)
end
defp parse_row(str) do
str
|> String.split(" ")
|> Enum.map(&String.to_int... | 21.828571 | 64 | 0.626963 |
ff36d02d83c5d8327993cccfb2620c1548abc648 | 86 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/MatchedTwoOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/MatchedTwoOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/MatchedTwoOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | one ++ two && three -- four
one <> two &&& three .. four
one .. two and three <> four
| 21.5 | 28 | 0.55814 |
ff36e8b42f8cec87da1014b615a0c2222596d686 | 1,704 | ex | Elixir | lib/indexing_reporter_web/controllers/user_reset_password_controller.ex | ashton314/indexing-reporter | 7bb9d1bb436b18a359ad4855b084b92c076b979d | [
"MIT"
] | null | null | null | lib/indexing_reporter_web/controllers/user_reset_password_controller.ex | ashton314/indexing-reporter | 7bb9d1bb436b18a359ad4855b084b92c076b979d | [
"MIT"
] | null | null | null | lib/indexing_reporter_web/controllers/user_reset_password_controller.ex | ashton314/indexing-reporter | 7bb9d1bb436b18a359ad4855b084b92c076b979d | [
"MIT"
] | null | null | null | defmodule IndexingReporterWeb.UserResetPasswordController do
use IndexingReporterWeb, :controller
alias IndexingReporter.Accounts
plug :get_user_by_reset_password_token when action in [:edit, :update]
def new(conn, _params) do
render(conn, "new.html")
end
def create(conn, %{"user" => %{"email" => em... | 28.881356 | 101 | 0.661972 |
ff36e8c4b160acdda76d6dffab76b4834af6ade4 | 2,741 | ex | Elixir | lib/jenny_lite/expander.ex | rob-brown/Jenny-Lite | d3bc461168e1f77c7bfbdf9779f3be0357992dd2 | [
"MIT"
] | 1 | 2016-11-10T20:11:37.000Z | 2016-11-10T20:11:37.000Z | lib/jenny_lite/expander.ex | rob-brown/Jenny-Lite | d3bc461168e1f77c7bfbdf9779f3be0357992dd2 | [
"MIT"
] | null | null | null | lib/jenny_lite/expander.ex | rob-brown/Jenny-Lite | d3bc461168e1f77c7bfbdf9779f3be0357992dd2 | [
"MIT"
] | null | null | null | defmodule JennyLite.Expander do
alias JennyLite.{Template}
def expand_file(file) when is_binary(file) do
file
|> Path.expand
|> File.stream!
|> expand_lines(Path.dirname file)
|> (& File.write! file, &1).()
end
def expand_string(string, relative_to, include_spec? \\ true) when is_binary(st... | 31.872093 | 146 | 0.606348 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.