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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d6382a2e7c55c25e3a5e2cad057caf4c1caf895 | 748 | exs | Elixir | elixir/nucleotide-count/nucleotide_count.exs | drm2/exercisms | 2b45c8fdff9c04cceae1875237c65ddb1acd2107 | [
"MIT"
] | null | null | null | elixir/nucleotide-count/nucleotide_count.exs | drm2/exercisms | 2b45c8fdff9c04cceae1875237c65ddb1acd2107 | [
"MIT"
] | null | null | null | elixir/nucleotide-count/nucleotide_count.exs | drm2/exercisms | 2b45c8fdff9c04cceae1875237c65ddb1acd2107 | [
"MIT"
] | null | null | null | defmodule NucleotideCount do
@nucleotides [?A, ?C, ?G, ?T]
@doc """
Counts individual nucleotides in a NucleotideCount strand.
## Examples
iex> NucleotideCount.count('AATAA', ?A)
4
iex> NucleotideCount.count('AATAA', ?T)
1
"""
@spec count([char], char) :: non_neg_integer
def count(strand, nucl... | 21.371429 | 72 | 0.600267 |
1d6398d84289381a570a51bd91bf62210ea6dcac | 4,719 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/distribution.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/distribution.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/distribution.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.673684 | 162 | 0.709472 |
1d63b6d52a2cdefde734af5e52366117a7929fd9 | 156 | exs | Elixir | test/egdal/gdal_test.exs | turboladen/egdal | f4888978996c89b0f5658eb85d4239e3dbb25752 | [
"MIT"
] | null | null | null | test/egdal/gdal_test.exs | turboladen/egdal | f4888978996c89b0f5658eb85d4239e3dbb25752 | [
"MIT"
] | null | null | null | test/egdal/gdal_test.exs | turboladen/egdal | f4888978996c89b0f5658eb85d4239e3dbb25752 | [
"MIT"
] | null | null | null | defmodule Egdal.GDALTest do
use ExUnit.Case, async: true
test "get_version_info" do
assert {:ok, '1.11.5'} = Egdal.GDAL.get_version_info
end
end
| 19.5 | 56 | 0.711538 |
1d63f4d5c13f455b8cefa82f39932f5adb8f98fe | 1,035 | exs | Elixir | test/packet_test.exs | wisq/elixir-rcon | e7fce868c9fd607ad7122cef3f3e2ca7ce4b2468 | [
"MIT"
] | null | null | null | test/packet_test.exs | wisq/elixir-rcon | e7fce868c9fd607ad7122cef3f3e2ca7ce4b2468 | [
"MIT"
] | null | null | null | test/packet_test.exs | wisq/elixir-rcon | e7fce868c9fd607ad7122cef3f3e2ca7ce4b2468 | [
"MIT"
] | null | null | null | defmodule RCON.PacketTest do
use ExUnit.Case
@client_exec_payload <<
0x00 :: 32-signed-integer-little, # ID
0x02 :: 32-signed-integer-little, # Kind
"hello", # Body
0x00, 0x00 # Terminator
>>
@client_exec_packet << byte_size(@client_exec_payload) :: 32-signed-integer-little >> <> @client_exec_p... | 31.363636 | 111 | 0.685024 |
1d63f875894826796dc14f21781d60102755c548 | 1,230 | exs | Elixir | apps/firestorm_notifier/mix.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_notifier/mix.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_notifier/mix.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormNotifier.Mixfile do
use Mix.Project
def project do
[app: :firestorm_notifier,
version: "0.8.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
build_embedded: Mix.en... | 24.6 | 79 | 0.60813 |
1d64297b98ea2a74b484af0eee35e0a1cd44645d | 2,682 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/line_item_flight.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/line_item_flight.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/line_item_flight.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... | 50.603774 | 573 | 0.743102 |
1d64609f05b163a0d4a7577fcfd0363c1aec2ffb | 2,532 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/metro.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/metro.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/metro.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.953846 | 174 | 0.67891 |
1d649a9f6bf9e6b965b2b6ab7f028071ad98527d | 2,145 | ex | Elixir | lib/resourceful/collection/sort.ex | binarypaladin/resourceful | a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610 | [
"MIT"
] | null | null | null | lib/resourceful/collection/sort.ex | binarypaladin/resourceful | a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610 | [
"MIT"
] | 2 | 2021-03-11T21:23:54.000Z | 2021-03-12T23:34:21.000Z | lib/resourceful/collection/sort.ex | binarypaladin/resourceful | a1eedad7c94d5fdc57c6ffc8ae6d010b6b09f610 | [
"MIT"
] | null | null | null | defmodule Resourceful.Collection.Sort do
@moduledoc """
Provides a common interface for sorting collections. See `call/2` for use and
examples.
This module is intended to dispatch arguments to the appropriate `Sort` module
for the underlying data source.
"""
alias Resourceful.Collection.Delegate
alias... | 29.383562 | 86 | 0.648019 |
1d64a56a0081a703be8696340fe64c697b9830e2 | 1,504 | ex | Elixir | lib/clean_mixer/compiler_manifests/manifest_cartographer.ex | kianmeng/clean_mixer | c2ce915156472a86828b53538efb8979bebcd78d | [
"Apache-2.0"
] | 45 | 2020-07-14T11:01:45.000Z | 2022-03-10T18:40:04.000Z | lib/clean_mixer/compiler_manifests/manifest_cartographer.ex | kianmeng/clean_mixer | c2ce915156472a86828b53538efb8979bebcd78d | [
"Apache-2.0"
] | 3 | 2021-07-03T15:37:02.000Z | 2021-07-13T08:59:08.000Z | lib/clean_mixer/compiler_manifests/manifest_cartographer.ex | kianmeng/clean_mixer | c2ce915156472a86828b53538efb8979bebcd78d | [
"Apache-2.0"
] | 4 | 2020-02-01T01:20:53.000Z | 2020-06-18T11:58:55.000Z | defmodule CleanMixer.CompilerManifests.ManifestCartographer do
alias CleanMixer.CodeCartographer
@behaviour CodeCartographer
alias CleanMixer.CompilerManifests.MixProject
alias CleanMixer.CompilerManifests.App
alias CleanMixer.CompilerManifests.Manifest
alias CleanMixer.CodeMap.SourceFile
alias CleanMixe... | 25.066667 | 79 | 0.698138 |
1d64aa88e7b0a16aa3701e0851285669364dae2b | 78 | exs | Elixir | test/views/page_view_test.exs | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | jwarwick/class_list | 05ac775e7b5d42f258024db361a9de1aeed71c73 | [
"MIT"
] | null | null | null | defmodule ClassList.PageViewTest do
use ClassList.ConnCase, async: true
end
| 19.5 | 37 | 0.820513 |
1d64b4b7d4f3d35f23bbc27ea234cd1a1da3aebe | 697 | ex | Elixir | lib/core/asset/farm_event/execution.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset/farm_event/execution.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset/farm_event/execution.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Asset.FarmEvent.Execution do
alias FarmbotOS.Asset.FarmEvent
use Ecto.Schema
import Ecto.Changeset
@primary_key {:local_id, :binary_id, autogenerate: true}
@timestamps_opts inserted_at: :created_at, type: :utc_datetime_usec
schema "farm_event_executions" do
belongs_to(:farm_event, F... | 26.807692 | 69 | 0.721664 |
1d64c0f98424dc880f41e643f09f7acf766c4eb4 | 3,709 | exs | Elixir | test/fryse/pagination_test.exs | fryse/fryse | 56e25ff2dc3dad56593849af7e8786225b918934 | [
"MIT"
] | 7 | 2018-02-03T01:04:22.000Z | 2020-07-19T16:47:03.000Z | test/fryse/pagination_test.exs | fryse/fryse | 56e25ff2dc3dad56593849af7e8786225b918934 | [
"MIT"
] | 3 | 2020-07-16T09:28:38.000Z | 2020-07-22T09:40:45.000Z | test/fryse/pagination_test.exs | fryse/fryse | 56e25ff2dc3dad56593849af7e8786225b918934 | [
"MIT"
] | null | null | null | defmodule Fryse.PaginationTest do
use Fryse.TestCase, async: true
alias Fryse.Pagination
test "config/2 returns the config for a given pagination", %{fryse: fryse} do
assert {:ok, config} = Pagination.config("posts", fryse)
assert "posts" = config.name
assert {:error, :not_found} = Pagination.confi... | 43.635294 | 124 | 0.674845 |
1d64ca9567ef3b116e1ef59ee83959151b7c0be9 | 271 | ex | Elixir | lib/dispatch_web/health/controller.ex | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 21 | 2019-02-13T15:26:00.000Z | 2021-09-18T13:05:42.000Z | lib/dispatch_web/health/controller.ex | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 26 | 2019-02-13T18:42:44.000Z | 2021-09-16T15:40:05.000Z | lib/dispatch_web/health/controller.ex | mirego/dispatch | 65f81e264e45676ece8a6dc5f203cf9f283d6ec7 | [
"BSD-3-Clause"
] | 2 | 2020-05-26T09:09:19.000Z | 2021-04-21T20:43:07.000Z | defmodule DispatchWeb.Health.Controller do
use Phoenix.Controller
def index(conn, _) do
json(conn, %{
app: :ok,
github: github_client().ping()
})
end
defp github_client, do: Application.get_env(:dispatch, Dispatch)[:repositories_client]
end
| 20.846154 | 88 | 0.690037 |
1d64d1140dd930e6e37b58037b341b15310b54b8 | 1,602 | ex | Elixir | lib/cadet/auth/providers/config.ex | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | null | null | null | lib/cadet/auth/providers/config.ex | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 10 | 2022-02-24T17:57:38.000Z | 2022-03-31T07:43:05.000Z | lib/cadet/auth/providers/config.ex | chownces/cadet | 0d8b264e4fad1c9aaab7ef3f037ac4e07a4c9b22 | [
"Apache-2.0"
] | 1 | 2019-07-17T15:51:58.000Z | 2019-07-17T15:51:58.000Z | defmodule Cadet.Auth.Providers.Config do
@moduledoc """
Provides identity using configuration.
The configuration should be a list of users in the following format:
```
[%{code: "code1", token: "token1", username: "Username", name: "Name", role: :student}]
```
This is mainly meant for test and developme... | 34.826087 | 91 | 0.628589 |
1d64d7d86272adf17db6df40abf4f53d60204591 | 378 | ex | Elixir | 10-webserver/web/views/error_view.ex | Markcial/essence | fcfc62a189c2cee1f07813d583edfaec2fb0167e | [
"MIT"
] | 2 | 2017-02-14T20:33:52.000Z | 2017-03-02T15:21:44.000Z | 10-webserver/web/views/error_view.ex | Markcial/essence | fcfc62a189c2cee1f07813d583edfaec2fb0167e | [
"MIT"
] | null | null | null | 10-webserver/web/views/error_view.ex | Markcial/essence | fcfc62a189c2cee1f07813d583edfaec2fb0167e | [
"MIT"
] | 1 | 2018-06-22T02:34:15.000Z | 2018-06-22T02:34:15.000Z | defmodule Webserver.ErrorView do
use Webserver.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templ... | 21 | 47 | 0.701058 |
1d64f3139e7530d73e13ca3602b501b1384c2170 | 8,555 | ex | Elixir | lib/stripe/subscriptions/subscription.ex | starbuildr/stripity_stripe | fa515364cf54c5b3ab5b98b3f2dfe9b1317a3d4e | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription.ex | starbuildr/stripity_stripe | fa515364cf54c5b3ab5b98b3f2dfe9b1317a3d4e | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription.ex | starbuildr/stripity_stripe | fa515364cf54c5b3ab5b98b3f2dfe9b1317a3d4e | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Subscription do
@moduledoc """
Work with Stripe subscription objects.
You can:
- Create a subscription
- Retrieve a subscription
- Update a subscription
- Delete a subscription
Stripe API reference: https://stripe.com/docs/api#subscription
"""
use Stripe.Entity
import Stripe.R... | 34.083665 | 98 | 0.577674 |
1d651d023739bf4bd582323a5c5fcb18585f6adb | 2,029 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/placement_groups_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/placement_groups_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/placement_groups_list_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.283019 | 163 | 0.73928 |
1d655c1dc5cad148231b69247c4a241ef824eafe | 3,496 | exs | Elixir | apps/gitgud/test/gitgud/repo_test.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | 1 | 2019-09-08T07:48:10.000Z | 2019-09-08T07:48:10.000Z | apps/gitgud/test/gitgud/repo_test.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | apps/gitgud/test/gitgud/repo_test.exs | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | null | null | null | defmodule GitGud.RepoTest do
use GitGud.DataCase, async: true
use GitGud.DataFactory
alias GitGud.User
alias GitGud.Repo
alias GitGud.RepoStorage
setup :create_user
test "creates a new repository with valid params", %{user: user} do
assert {:ok, repo} = Repo.create(factory(:repo, user))
assert ... | 37.591398 | 122 | 0.673055 |
1d65628f25a4db64de20bb505b5935d45f225b83 | 1,844 | ex | Elixir | lib/mmo_web.ex | visheshc14/Prisonic-Fairytale | 91152fbf3662952146e29ff36a45ad20bebe4558 | [
"MIT"
] | 1 | 2022-02-13T21:09:03.000Z | 2022-02-13T21:09:03.000Z | lib/mmo_web.ex | visheshc14/Prisonic-Fairytale | 91152fbf3662952146e29ff36a45ad20bebe4558 | [
"MIT"
] | null | null | null | lib/mmo_web.ex | visheshc14/Prisonic-Fairytale | 91152fbf3662952146e29ff36a45ad20bebe4558 | [
"MIT"
] | null | null | null | defmodule MmoWeb 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 MmoWeb, :controller
use MmoWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep... | 22.487805 | 76 | 0.677332 |
1d6567a073eef1235c984daf6f9e3fa224c2af25 | 5,322 | exs | Elixir | test/format_parser/image_test.exs | antoniskalou/format_parser.ex | bce7f1cdae5ec4be198c49b6f5ef303d43135e33 | [
"Apache-2.0"
] | null | null | null | test/format_parser/image_test.exs | antoniskalou/format_parser.ex | bce7f1cdae5ec4be198c49b6f5ef303d43135e33 | [
"Apache-2.0"
] | null | null | null | test/format_parser/image_test.exs | antoniskalou/format_parser.ex | bce7f1cdae5ec4be198c49b6f5ef303d43135e33 | [
"Apache-2.0"
] | null | null | null | defmodule FormatParser.ImageTest do
use ExUnit.Case
test "parse passed error" do
{:ok, file} = File.read("priv/test.jpg")
assert FormatParser.Image.parse({:error, file}).format == :jpg
end
test "parse file" do
{:ok, file} = File.read("priv/test.jpg")
assert FormatParser.Image.parse(file)... | 32.851852 | 183 | 0.677377 |
1d657827e4bc212b4d5b3a40f6d5a6f86d61328d | 177 | exs | Elixir | lib/elixir/mix.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/mix.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/mix.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule Elixir.MixProject do
use Mix.Project
def project do
[
app: :elixir,
version: System.version(),
build_per_environment: false
]
end
end
| 14.75 | 34 | 0.638418 |
1d65786ddb15e4041fda41851fee3663658a443d | 5,963 | ex | Elixir | lib/advent2019_web/controllers/day12_controller.ex | jacopofar/advent-of-code-2019-phoenix-react | 762d7053fd8eeb096187fb394e3ce03bbe1854d7 | [
"MIT"
] | 5 | 2019-12-02T08:50:54.000Z | 2021-03-31T22:54:20.000Z | lib/advent2019_web/controllers/day12_controller.ex | jacopofar/advent-of-code-2019-phoenix-react | 762d7053fd8eeb096187fb394e3ce03bbe1854d7 | [
"MIT"
] | 1 | 2019-12-18T07:19:26.000Z | 2019-12-18T07:19:26.000Z | lib/advent2019_web/controllers/day12_controller.ex | jacopofar/advent-of-code-2019-phoenix-react | 762d7053fd8eeb096187fb394e3ce03bbe1854d7 | [
"MIT"
] | 2 | 2019-12-16T07:52:16.000Z | 2019-12-17T17:49:05.000Z | defmodule Advent2019Web.Day12Controller do
use Advent2019Web, :controller
@type input :: %{x: number, y: number, z: number, vx: number, vy: number, vz: number}
@type output :: %{x: number, y: number, z: number, ax: number, ay: number, az: number}
@doc """
Calculate the acceleration according to the instruct... | 27.606481 | 96 | 0.58427 |
1d660dd9af4a6c464cb19861b5c3c6a002545a1b | 1,332 | exs | Elixir | test/ex_image_info_test/mocks/gif_test.exs | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 62 | 2018-01-10T05:23:14.000Z | 2022-03-30T22:26:17.000Z | test/ex_image_info_test/mocks/gif_test.exs | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 2 | 2018-05-20T16:09:34.000Z | 2018-11-26T21:46:08.000Z | test/ex_image_info_test/mocks/gif_test.exs | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 3 | 2017-11-04T13:22:05.000Z | 2018-11-16T18:31:03.000Z | defmodule ExImageInfoTest.Mocks.GIFTest do
use ExUnit.Case, async: true
import ExImageInfo
setup_all do
images = %{
"gif89a" => <<0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 123::little-size(16), 456::little-size(16)>>,
"gif87a" => <<0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 134::little-size(16), 457::little-s... | 40.363636 | 101 | 0.606607 |
1d662b6a9481e47ff4d77424acd7b1f8dec5d2ad | 2,570 | ex | Elixir | lib/doex/cli/post.ex | capbash/dioex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | 5 | 2017-08-06T09:22:35.000Z | 2017-10-22T15:51:45.000Z | lib/doex/cli/post.ex | capbash/doex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | null | null | null | lib/doex/cli/post.ex | capbash/doex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | null | null | null | defmodule Doex.Cli.Post do
use FnExpr
alias Doex.Cli.Parser
alias Doex.Io.Shell
@moduledoc """
Execute a Digital Ocean API POST request
doex post <path> <attributes>
For example
doex post /droplets --name mydroplet --size s-1vcpu-1gb --image ubuntu-18-04-x64 --region nyc3 --private-networkin... | 45.087719 | 121 | 0.511673 |
1d663a5f8d4a5472a5520487280e081d1710b04a | 608 | exs | Elixir | test/price_tracker_web/views/error_view_test.exs | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | test/price_tracker_web/views/error_view_test.exs | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | test/price_tracker_web/views/error_view_test.exs | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | defmodule PriceTrackerWeb.ErrorViewTest do
use PriceTrackerWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(PriceTrackerWeb.ErrorView, "404.html", []) ==
"Page not found"
end
te... | 27.636364 | 73 | 0.697368 |
1d6682c90a2c5cff77dfe49f0c585bfdece5540c | 1,032 | ex | Elixir | 2015/day6/lib/parser.ex | SuddenGunter/adventofcode | 702dd927b1d23c4c5c4b2e67898f4b3c914abfcf | [
"MIT"
] | null | null | null | 2015/day6/lib/parser.ex | SuddenGunter/adventofcode | 702dd927b1d23c4c5c4b2e67898f4b3c914abfcf | [
"MIT"
] | null | null | null | 2015/day6/lib/parser.ex | SuddenGunter/adventofcode | 702dd927b1d23c4c5c4b2e67898f4b3c914abfcf | [
"MIT"
] | null | null | null | defmodule Parser do
@spec lines(String.t()) :: [String.t()]
def lines(contents) do
contents
|> String.split("\n", trim: true)
end
@spec data(String.t()) :: [%Command{}]
def data(contents) do
lines(contents)
|> Enum.map(fn x -> parseEachLine(x) end)
end
defp parseEachLine(line) do
[le... | 22.933333 | 84 | 0.575581 |
1d66cb0895611b306bb91de02fa464e0cc56e55b | 4,603 | ex | Elixir | lib/ex_hl7/log_reader.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | 38 | 2015-06-21T17:44:44.000Z | 2021-10-03T08:46:08.000Z | lib/ex_hl7/log_reader.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | 2 | 2019-08-27T17:27:37.000Z | 2021-02-05T14:27:28.000Z | lib/ex_hl7/log_reader.ex | workpathco/ex_hl7 | 20f2fadb158e903cf1752f69cd0ecdeae377c2c3 | [
"Apache-2.0"
] | 14 | 2016-02-04T15:11:55.000Z | 2021-11-13T20:28:19.000Z | defmodule HL7.LogReader do
require Logger
@type read_ret :: {:cont, state :: term} | {:halt, state :: term}
@type callback :: (binary, pos_integer, state :: term -> read_ret)
@spec read(Path.t(), callback, state :: any) :: {:ok, state :: term} | {:error, reason :: term}
def read(filename, callback, state) d... | 26.00565 | 97 | 0.544862 |
1d66ea3cd1eabdd95889b774e2a517e570adfefe | 1,892 | exs | Elixir | ecc/test/sanitizer_test.exs | SaladinoBelisario/c201-hadoken | 96a9fd4e10831f45d29cbb4e96043cb76d455085 | [
"BSD-2-Clause"
] | 1 | 2021-04-23T05:03:49.000Z | 2021-04-23T05:03:49.000Z | ecc/test/sanitizer_test.exs | SaladinoBelisario/c201-hadoken | 96a9fd4e10831f45d29cbb4e96043cb76d455085 | [
"BSD-2-Clause"
] | null | null | null | ecc/test/sanitizer_test.exs | SaladinoBelisario/c201-hadoken | 96a9fd4e10831f45d29cbb4e96043cb76d455085 | [
"BSD-2-Clause"
] | null | null | null | defmodule SanitizerTest do
use ExUnit.Case
# doctest Sanitizer
setup_all do
{:ok,
all_separated_new_lines: [{"int",0},{"main",1},{"(",2},{")",3},{"{",4},{"return",5},{"2",6},{";",7},{"}",8}],
all_separated_tab: [{"int",0},{"main",0},{"(",0},{")",0},{"{",0},{"return",0},{"2",0},{";",0},{"}",0}],
... | 32.067797 | 115 | 0.539641 |
1d6716fcf263a3316062e43fb0a2c5fe9f42f101 | 546 | exs | Elixir | test/25_combo_breaker_test.exs | skovmand/advent_of_code_2020 | 40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc | [
"MIT"
] | null | null | null | test/25_combo_breaker_test.exs | skovmand/advent_of_code_2020 | 40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc | [
"MIT"
] | null | null | null | test/25_combo_breaker_test.exs | skovmand/advent_of_code_2020 | 40c795a2bd4c0378fd7ecffeb32f7fba6dcfcfdc | [
"MIT"
] | null | null | null | defmodule Advent20.ComboBreakerTest do
use ExUnit.Case, async: true
alias Advent20.ComboBreaker
@input "25_combo_breaker.txt" |> Path.expand("input_files") |> File.read!()
describe "1" do
test "unit test" do
input = """
5764801
17807724
"""
assert ComboBreaker.part_1(input)... | 22.75 | 101 | 0.661172 |
1d6760ed50c8ffddc2a26966adc1f7ca69e44e4c | 2,003 | ex | Elixir | clients/assured_workloads/lib/google_api/assured_workloads/v1/model/google_cloud_assuredworkloads_v1beta1_workload_fedramp_high_settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/assured_workloads/lib/google_api/assured_workloads/v1/model/google_cloud_assuredworkloads_v1beta1_workload_fedramp_high_settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/assured_workloads/lib/google_api/assured_workloads/v1/model/google_cloud_assuredworkloads_v1beta1_workload_fedramp_high_settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.534483 | 209 | 0.770344 |
1d676210add4267b4f5dbfbb717fb6ccf232fc8d | 81 | exs | Elixir | elixir_grpc_bench/config/prod.exs | night-crawler/grpc_bench | 5850e2993d1dae5998455225e74228bcb2395c10 | [
"MIT"
] | null | null | null | elixir_grpc_bench/config/prod.exs | night-crawler/grpc_bench | 5850e2993d1dae5998455225e74228bcb2395c10 | [
"MIT"
] | null | null | null | elixir_grpc_bench/config/prod.exs | night-crawler/grpc_bench | 5850e2993d1dae5998455225e74228bcb2395c10 | [
"MIT"
] | null | null | null | import Config
config :grpc, start_server: true
config :logger,
level: :error
| 11.571429 | 32 | 0.740741 |
1d677dc7ce2d32cd1d2d89c2ec75ba5d716fb89d | 1,276 | ex | Elixir | deps/credo/lib/credo/execution/task_group.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 13 | 2018-09-19T21:03:29.000Z | 2022-01-27T04:06:32.000Z | deps/credo/lib/credo/execution/task_group.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 1 | 2020-05-26T04:16:57.000Z | 2020-05-26T04:16:57.000Z | deps/credo/lib/credo/execution/task_group.ex | BandanaPandey/nary_tree | fb1eeb69e38e43c9f9ffb54297cef52dff5c928d | [
"MIT"
] | 3 | 2020-05-21T04:32:08.000Z | 2021-07-28T05:14:01.000Z | defmodule Credo.Execution.TaskGroup do
@type t :: module
@callback call(exec :: Credo.Execution.t, opts :: Keyword.t) :: Credo.Execution.t
import Credo.Execution
defmacro __using__(_opts \\ []) do
quote do
import Credo.Execution.TaskGroup
Module.register_attribute(__MODULE__, :tasks, accumula... | 21.627119 | 83 | 0.619906 |
1d67954615d4d8188406541c91bcb87c8057c283 | 3,672 | ex | Elixir | lib/bamboo/adapters/ses_adapter.ex | steady-media/bamboo_ses | 23f86ee5ed337b03a1df529c9d196e3bdda3f47a | [
"MIT"
] | null | null | null | lib/bamboo/adapters/ses_adapter.ex | steady-media/bamboo_ses | 23f86ee5ed337b03a1df529c9d196e3bdda3f47a | [
"MIT"
] | 2 | 2020-04-20T08:13:15.000Z | 2020-05-11T12:41:50.000Z | lib/bamboo/adapters/ses_adapter.ex | steady-media/bamboo_ses | 23f86ee5ed337b03a1df529c9d196e3bdda3f47a | [
"MIT"
] | null | null | null | defmodule Bamboo.SesAdapter do
@moduledoc """
Sends email using AWS SES API.
Use this adapter to send emails through AWS SES API.
"""
@behaviour Bamboo.Adapter
alias Bamboo.SesAdapter.RFC2822WithBcc
alias ExAws.SES
import Bamboo.ApiError
@doc false
def supports_attachments?, do: true
@doc fal... | 28.246154 | 94 | 0.680011 |
1d6795bf3d70482071ffcfe0eba64d4ac70f525d | 919 | ex | Elixir | lib/credo/service/source_file_scopes.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/service/source_file_scopes.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/service/source_file_scopes.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | defmodule Credo.Service.SourceFileScopes do
use GenServer
@table_name __MODULE__
def start_link(opts \\ []) do
{:ok, _pid} = GenServer.start_link(__MODULE__, opts, name: __MODULE__)
end
def get(filename) do
GenServer.call(__MODULE__, {:get, filename})
end
def put(filename, source) do
GenSe... | 23.564103 | 74 | 0.656148 |
1d67daa59abcae986baf9caab0134927162e3d06 | 3,010 | exs | Elixir | test/group_manager/topology_db_test.exs | dbeck/groupman_ex | 69231eba468f9e45a7e13b62e717b5fc18f4ff74 | [
"MIT"
] | 1 | 2016-04-12T02:05:30.000Z | 2016-04-12T02:05:30.000Z | test/group_manager/topology_db_test.exs | dbeck/groupman_ex | 69231eba468f9e45a7e13b62e717b5fc18f4ff74 | [
"MIT"
] | null | null | null | test/group_manager/topology_db_test.exs | dbeck/groupman_ex | 69231eba468f9e45a7e13b62e717b5fc18f4ff74 | [
"MIT"
] | null | null | null | defmodule GroupManager.TopologyDBTest do
use ExUnit.Case
require GroupManager
require GroupManager.Data.Item
require GroupManager.Data.Message
require GroupManager.Data.WorldClock
require GroupManager.Data.LocalClock
require GroupManager.Data.TimedSet
require GroupManager.Data.TimedItem
require Chatt... | 34.597701 | 89 | 0.698671 |
1d68004b7d8205b93cc1a9f17b74072657250e7d | 3,268 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/notification_channel_descriptor.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/notification_channel_descriptor.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/notification_channel_descriptor.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 52.709677 | 290 | 0.729192 |
1d6801667acf9e95b89f71611dc6e9c701e6e71a | 2,012 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/list_data_sources_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/list_data_sources_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/list_data_sources_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... | 40.24 | 242 | 0.755964 |
1d6817f6d038033e009e6c4a2b4c0cf69f8d0076 | 8,177 | exs | Elixir | apps/seeker/test/seeker/flow/flow_test.exs | sarat1669/seeker | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | 1 | 2019-07-10T10:00:56.000Z | 2019-07-10T10:00:56.000Z | apps/seeker/test/seeker/flow/flow_test.exs | spawnfest/factor18 | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | null | null | null | apps/seeker/test/seeker/flow/flow_test.exs | spawnfest/factor18 | 743c6ad5a69a6e62c95cfd988b0e2f32129ab2aa | [
"Apache-2.0"
] | null | null | null | defmodule Seeker.FlowTest do
use Seeker.DataCase
alias Seeker.Flow
describe "components" do
alias Seeker.Flow.Components
@valid_attrs %{}
@update_attrs %{}
@invalid_attrs %{}
def components_fixture(attrs \\ %{}) do
{:ok, components} =
attrs
|> Enum.into(@valid_attrs)
... | 33.512295 | 93 | 0.68815 |
1d681a1fdfddb2eaa0ebe317ccaebf931e22dbe6 | 834 | ex | Elixir | lib/mix/lib/mix/tasks/deps.get.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.get.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.get.ex | patrickgombert/elixir | dc4b7c89ea30a9734d9f1cbf3bb1612fada498d4 | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:16.000Z | 2020-12-07T08:04:16.000Z | defmodule Mix.Tasks.Deps.Get do
use Mix.Task
@shortdoc "Get all out of date dependencies"
@moduledoc """
Get all out of date dependencies, i.e. dependencies
that are not available or have an invalid lock.
## Command line options
* `--quiet` - do not output verbose messages
* `--only` - only fet... | 28.758621 | 87 | 0.652278 |
1d685002a8d4d68cca585c254713954fd4258310 | 674 | exs | Elixir | exercises/binary-search-tree/example.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/binary-search-tree/example.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/binary-search-tree/example.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | defmodule BinarySearchTree do
def new(data) do
%{data: data, left: nil, right: nil}
end
def insert(nil, node_value), do: new(node_value)
def insert(%{data: data, left: left, right: right}, node_value) do
if node_value <= data do
%{data: data, left: insert(left, node_value), right: right}
els... | 22.466667 | 68 | 0.648368 |
1d68529e42bffcc88b2a66bd8e4493bfd932bd9a | 837 | ex | Elixir | lib/ash/resource/transformers/validate_action_types_supported.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | lib/ash/resource/transformers/validate_action_types_supported.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | lib/ash/resource/transformers/validate_action_types_supported.ex | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Transformers.ValidateActionTypesSupported do
@moduledoc """
Confirms that all action types declared on a resource are supported by its data layer
"""
use Ash.Dsl.Transformer
alias Ash.Dsl.Transformer
alias Ash.Error.Dsl.DslError
def transform(resource, dsl_state) do
dsl_state
... | 28.862069 | 106 | 0.648746 |
1d685d23ddb1d010b1ad1d2a6dbb1e014993545b | 3,363 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/filter_criteria.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/filter_criteria.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/filter_criteria.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... | 46.068493 | 384 | 0.711864 |
1d686ad9bd79c15fdeeae2f486d7ea789435b0fe | 5,774 | exs | Elixir | priv/templates/sfc.gen.live/live_test.exs | lastobelus/sfc_gen_live | 12557794317bf29163844a7007c010e7eac47c17 | [
"MIT"
] | 6 | 2021-04-15T18:21:03.000Z | 2022-03-28T16:00:38.000Z | priv/templates/sfc.gen.live/live_test.exs | lastobelus/sfc_gen_live | 12557794317bf29163844a7007c010e7eac47c17 | [
"MIT"
] | 2 | 2021-04-19T01:24:09.000Z | 2021-04-25T05:16:18.000Z | priv/templates/sfc.gen.live/live_test.exs | lastobelus/sfc_gen_live | 12557794317bf29163844a7007c010e7eac47c17 | [
"MIT"
] | 1 | 2022-03-28T16:12:35.000Z | 2022-03-28T16:12:35.000Z | defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>LiveTest do
use <%= inspect context.web_module %>.ConnCase
import Phoenix.LiveViewTest
import <%= inspect context.module %>Fixtures
alias <%= inspect context.module %>
@create_attrs <%= Mix.Phoenix.t... | 50.649123 | 196 | 0.613093 |
1d687099d3d8ddd87839dc1c56be514679093f89 | 18,838 | ex | Elixir | lib/elixir_mock.ex | mpalmer/elixir_mock | ee939960217f89a2387a294cdac6cd755c8a731c | [
"MIT"
] | 25 | 2017-07-17T03:21:58.000Z | 2022-02-12T06:30:33.000Z | lib/elixir_mock.ex | mpalmer/elixir_mock | ee939960217f89a2387a294cdac6cd755c8a731c | [
"MIT"
] | 7 | 2017-04-04T02:10:42.000Z | 2017-06-18T00:21:56.000Z | lib/elixir_mock.ex | wanderanimrod/mockex | ee939960217f89a2387a294cdac6cd755c8a731c | [
"MIT"
] | 2 | 2017-10-16T16:00:37.000Z | 2021-10-09T05:45:04.000Z | defmodule ElixirMock do
@moduledoc """
This module contains functions and macros for creating mocks from real modules. It also contains utilities for
verifying that calls were made to functions in the mocks.
"""
# TODO: This module has too many public functions and macros that should really be private
req... | 34.188748 | 143 | 0.695031 |
1d6890904fafb58261eb3312e5e8125c129126e6 | 1,808 | ex | Elixir | clients/language/lib/google_api/language/v1/model/classification_category.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/language/lib/google_api/language/v1/model/classification_category.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/language/lib/google_api/language/v1/model/classification_category.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.769231 | 134 | 0.733407 |
1d68951e75e97fc9d8428523a919609e61e68a12 | 140 | exs | Elixir | test/test_helper.exs | acu-online/canvas | 594e435abe8907097a3a66d25627e96cb940b07a | [
"MIT"
] | null | null | null | test/test_helper.exs | acu-online/canvas | 594e435abe8907097a3a66d25627e96cb940b07a | [
"MIT"
] | null | null | null | test/test_helper.exs | acu-online/canvas | 594e435abe8907097a3a66d25627e96cb940b07a | [
"MIT"
] | null | null | null | ExUnit.start()
defmodule TestCase do
use ExUnit.CaseTemplate
setup do
Code.require_file("test/exvcr_utils.exs")
:ok
end
end
| 12.727273 | 45 | 0.714286 |
1d689a8444a8dd24207661d087e68844f8ea8136 | 1,091 | ex | Elixir | lib/sse_demo_web/channels/user_socket.ex | vjebelev/sse_demo | 2987ca57bd18fee11a179e9e75d114aa9b28feb9 | [
"MIT"
] | null | null | null | lib/sse_demo_web/channels/user_socket.ex | vjebelev/sse_demo | 2987ca57bd18fee11a179e9e75d114aa9b28feb9 | [
"MIT"
] | null | null | null | lib/sse_demo_web/channels/user_socket.ex | vjebelev/sse_demo | 2987ca57bd18fee11a179e9e75d114aa9b28feb9 | [
"MIT"
] | null | null | null | defmodule SseDemoWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", SseDemoWeb.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 channe... | 30.305556 | 83 | 0.694775 |
1d689c75388e1a7d5a3e074bf80fa6588df4b4f7 | 2,296 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/usage_export_location.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/usage_export_location.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/usage_export_location.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.92 | 411 | 0.749564 |
1d68d067c8011af755b724e6148ce7ffc963b64d | 9,771 | exs | Elixir | test/controllers/json/user_controller_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | test/controllers/json/user_controller_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | test/controllers/json/user_controller_test.exs | lumenlunae/sentinel | 189d9b02aeeea942a41963b42ef8523ef192fd03 | [
"MIT"
] | null | null | null | defmodule Json.UserControllerTest do
use Sentinel.ConnCase
alias Mix.Config
alias Sentinel.Changeset.AccountUpdater
alias Sentinel.Changeset.Confirmator
alias Sentinel.Changeset.PasswordResetter
alias Sentinel.Changeset.Registrator
@password "secret"
setup do
on_exit(fn ->
Application.delet... | 32.57 | 100 | 0.668714 |
1d693b89b392628a6e211bf8c1d07dacc4a474c9 | 845 | ex | Elixir | lib/console/packets/packet.ex | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | null | null | null | lib/console/packets/packet.ex | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | 14 | 2022-03-02T17:01:59.000Z | 2022-03-30T17:45:47.000Z | lib/console/packets/packet.ex | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | null | null | null | defmodule Console.Packets.Packet do
use Ecto.Schema
import Ecto.Changeset
alias Console.Organizations.Organization
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "packets" do
field :dc_used, :integer
field :packet_size, :integer
field :reported_at_epoch,... | 22.837838 | 104 | 0.67574 |
1d694246a2554045d65b2edabb645fbe3a2cd3e4 | 2,707 | exs | Elixir | test/repg2_distributed_test.exs | paulobezerr/repg2 | 824734df292dadf1705cf1709550e01e13170b5a | [
"Apache-2.0"
] | 25 | 2018-02-17T16:15:36.000Z | 2021-05-28T01:36:39.000Z | test/repg2_distributed_test.exs | paulobezerr/repg2 | 824734df292dadf1705cf1709550e01e13170b5a | [
"Apache-2.0"
] | null | null | null | test/repg2_distributed_test.exs | paulobezerr/repg2 | 824734df292dadf1705cf1709550e01e13170b5a | [
"Apache-2.0"
] | 4 | 2018-09-27T08:54:07.000Z | 2020-11-09T08:54:25.000Z | defmodule RePG2DistributedTest do
use ExUnit.Case
import RePG2.NodeManager
@moduletag :capture_log
@moduletag :distributed
setup do
reset_repg2()
end
test "nodes share groups" do
:ok = RePG2.create(:test_group)
assert RePG2.join(:test_group, self) == :ok
assert_group_membership(:test... | 23.955752 | 105 | 0.693757 |
1d6973e110ff41925f73cd547c8c6e112529fa74 | 759 | exs | Elixir | apps/evm/test/block/header_test.exs | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 22 | 2017-06-22T02:50:34.000Z | 2022-01-26T20:43:21.000Z | apps/evm/test/block/header_test.exs | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 9 | 2018-10-08T22:56:56.000Z | 2018-10-18T20:41:55.000Z | apps/evm/test/block/header_test.exs | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 5 | 2018-10-06T16:30:48.000Z | 2022-01-26T20:43:26.000Z | defmodule Block.HeaderTest do
use ExUnit.Case, async: true
doctest EVM.Block.Header
alias EVM.Block.Header
test "serialize and deserialize" do
header = %Header{
parent_hash: <<1::256>>,
ommers_hash: <<2::256>>,
beneficiary: <<3::160>>,
state_root: <<4::256>>,
transactions_root... | 23 | 37 | 0.521739 |
1d697823797cd514ab6c0d7658be3ba146ccbb5a | 332 | ex | Elixir | lib/reanix_web/plugs/load_user.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | lib/reanix_web/plugs/load_user.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | lib/reanix_web/plugs/load_user.ex | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Plug) do
defmodule ReanixWeb.Plug.LoadUser do
@moduledoc """
Plug to load user into assign.
"""
import Plug.Conn
alias Reanix.Accounts
def init(opts), do: opts
def call(conn, _) do
user = Accounts.get_current_user(conn)
assign(conn, :user, user)
e... | 18.444444 | 44 | 0.641566 |
1d69b670648a6addbd694f7d511afbd6fa85b1c3 | 14,772 | ex | Elixir | lib/mix/lib/mix/utils.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/utils.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/utils.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Utils do
@moduledoc false
@doc """
Gets the Mix home.
It defaults to `~/.mix` unless the `MIX_HOME`
environment variable is set.
Developers should only store entries in the
`MIX_HOME` directory which are guaranteed to
work across multiple Elixir versions, as it is
not recommended to s... | 27.662921 | 114 | 0.62632 |
1d69bc14b6dee71377b3e83ea77432cac596e899 | 918 | exs | Elixir | config/config.exs | bagilevi/fluff-web-ui | 800967961ecee0b4f7d8b846ccd0507e1000a719 | [
"MIT"
] | 1 | 2017-10-31T17:06:35.000Z | 2017-10-31T17:06:35.000Z | config/config.exs | bagilevi/fluff-web-ui | 800967961ecee0b4f7d8b846ccd0507e1000a719 | [
"MIT"
] | null | null | null | config/config.exs | bagilevi/fluff-web-ui | 800967961ecee0b4f7d8b846ccd0507e1000a719 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :fluff,
ecto_repos: [Fluff.Repo]
# Conf... | 32.785714 | 86 | 0.759259 |
1d6a0e95a7e4a3ee83e5f46e59ccea2ef73af83b | 423 | ex | Elixir | lib/remote_retro_web/controllers/page_controller.ex | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | lib/remote_retro_web/controllers/page_controller.ex | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | lib/remote_retro_web/controllers/page_controller.ex | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | defmodule RemoteRetroWeb.PageController do
use RemoteRetroWeb, :controller
def index(conn, _params) do
current_user_id = get_session(conn, :current_user_id)
case current_user_id do
nil ->
render(conn, "index.html", %{is_landing_page: true, omit_header: true})
_user ->
redirect(... | 22.263158 | 79 | 0.666667 |
1d6a472e91cbfea3c90eb9aa688b5b727f49c4d7 | 136 | ex | Elixir | users_service/lib/query/event_handler/user_created_handler.ex | lcnascimento/pokerapp | d7928aebc867c49f01546611ed65a5befa3a6429 | [
"MIT"
] | 2 | 2020-04-20T16:31:01.000Z | 2020-04-20T16:45:03.000Z | users_service/lib/query/event_handler/user_created_handler.ex | lcnascimento/pokerapp | d7928aebc867c49f01546611ed65a5befa3a6429 | [
"MIT"
] | null | null | null | users_service/lib/query/event_handler/user_created_handler.ex | lcnascimento/pokerapp | d7928aebc867c49f01546611ed65a5befa3a6429 | [
"MIT"
] | null | null | null | defmodule UsersService.Query.UserCreatedHandler do
def handle(_event) do
IO.inspect("Processing user-created event...")
end
end
| 22.666667 | 50 | 0.764706 |
1d6a5489a403001bb7450c8c76aa2881b4822059 | 100 | exs | Elixir | test/test_helper.exs | elixir-twister/ez_calendar | 4d08f049f4e8cd162e333f1ad296b29297a57621 | [
"MIT"
] | 7 | 2016-11-12T07:53:34.000Z | 2021-05-19T01:34:27.000Z | test/test_helper.exs | elixir-twister/ez_calendar | 4d08f049f4e8cd162e333f1ad296b29297a57621 | [
"MIT"
] | 1 | 2017-04-06T15:16:22.000Z | 2017-04-06T15:16:22.000Z | test/test_helper.exs | elixir-twister/ez_calendar | 4d08f049f4e8cd162e333f1ad296b29297a57621 | [
"MIT"
] | 2 | 2017-04-19T15:03:58.000Z | 2018-07-04T19:37:10.000Z | EZCalendar.Repo.start_link()
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(EZCalendar.Repo, :manual) | 33.333333 | 56 | 0.81 |
1d6a59a28e8e22d2e64a1c69ff3b2ae439cacb6d | 1,656 | exs | Elixir | mix.exs | dnsbty/sir_alex | ab569dc7692826411877728444eaa00ec05767c2 | [
"MIT"
] | 3 | 2019-05-19T05:27:37.000Z | 2020-04-21T06:23:08.000Z | mix.exs | dnsbty/sir_alex | ab569dc7692826411877728444eaa00ec05767c2 | [
"MIT"
] | 3 | 2017-10-28T20:52:07.000Z | 2017-11-24T08:15:27.000Z | mix.exs | dnsbty/sir_alex | ab569dc7692826411877728444eaa00ec05767c2 | [
"MIT"
] | 1 | 2020-04-15T16:31:28.000Z | 2020-04-15T16:31:28.000Z | defmodule SirAlex.Mixfile do
use Mix.Project
def project do
[
app: :sir_alex,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps:... | 26.285714 | 79 | 0.578502 |
1d6a59b1ce1dc0e5f95fe209b38a84b6cc406159 | 24,445 | exs | Elixir | installer/test/phx_new_umbrella_test.exs | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | installer/test/phx_new_umbrella_test.exs | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | installer/test/phx_new_umbrella_test.exs | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | Code.require_file "mix_helper.exs", __DIR__
defmodule Mix.Tasks.Phx.New.UmbrellaTest do
use ExUnit.Case, async: false
import MixHelper
@app "phx_umb"
setup config do
# The shell asks to install deps.
# We will politely say not.
decline_prompt()
{:ok, tmp_dir: to_string(config.test)}
end
... | 42.961336 | 131 | 0.62974 |
1d6a6f35328302289602f77629a68831211796ea | 280 | exs | Elixir | config/test.exs | paulanthonywilson/correct-horse-elixir | 63853f0dff8f3255b7714d12316deccc0879c740 | [
"MIT"
] | 3 | 2020-09-11T09:41:05.000Z | 2021-01-29T00:16:39.000Z | config/test.exs | paulanthonywilson/correct-horse-elixir | 63853f0dff8f3255b7714d12316deccc0879c740 | [
"MIT"
] | 4 | 2020-07-21T09:31:22.000Z | 2021-06-07T09:27:51.000Z | config/test.exs | paulanthonywilson/correct-horse-elixir | 63853f0dff8f3255b7714d12316deccc0879c740 | [
"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 :correcthorse_web, CorrecthorseWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 25.454545 | 56 | 0.75 |
1d6a75cb14f35b12314c2b22be05ca1f02808d3b | 1,261 | ex | Elixir | lib/mappers_web/router.ex | mgrog/mappers | 79eb3f1e004253da9d7916784d031a707ec90ca6 | [
"Apache-2.0"
] | null | null | null | lib/mappers_web/router.ex | mgrog/mappers | 79eb3f1e004253da9d7916784d031a707ec90ca6 | [
"Apache-2.0"
] | null | null | null | lib/mappers_web/router.ex | mgrog/mappers | 79eb3f1e004253da9d7916784d031a707ec90ca6 | [
"Apache-2.0"
] | null | null | null | defmodule MappersWeb.Router do
use MappersWeb, :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 "/", MappersWeb do
pipe_... | 26.829787 | 71 | 0.706582 |
1d6ac0882f9db6139339e986fecdc161c6dc742e | 189 | ex | Elixir | apps/badger_web/lib/badger_web/views/user_view.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | apps/badger_web/lib/badger_web/views/user_view.ex | andyl/logstore | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | 9 | 2021-03-09T20:25:18.000Z | 2021-05-27T12:58:03.000Z | apps/badger_web/lib/badger_web/views/user_view.ex | andyl/badger | 763580ce6f75b2735adfc919b80c37ed5064a04e | [
"MIT"
] | null | null | null | defmodule BadgerWeb.UserView do
use BadgerWeb, :view
alias BadgerData.Schema.User
def first_name(%User{name: name}) do
name
|> String.split(" ")
|> Enum.at(0)
end
end
| 15.75 | 38 | 0.656085 |
1d6b3ef7f51a183b2fec790bcdfe9b527b5b9e03 | 2,485 | ex | Elixir | lib/daidoquer2/discord_api.ex | ushitora-anqou/daidoquer2 | 264d526520d304697a332850e6b436dabf141a9f | [
"MIT"
] | 3 | 2021-02-21T13:12:24.000Z | 2021-06-10T15:15:15.000Z | lib/daidoquer2/discord_api.ex | ushitora-anqou/daidoquer2 | 264d526520d304697a332850e6b436dabf141a9f | [
"MIT"
] | null | null | null | lib/daidoquer2/discord_api.ex | ushitora-anqou/daidoquer2 | 264d526520d304697a332850e6b436dabf141a9f | [
"MIT"
] | 1 | 2022-01-03T16:58:10.000Z | 2022-01-03T16:58:10.000Z | defmodule Daidoquer2.DiscordAPI do
alias Nostrum.Api
alias Nostrum.Voice
alias Nostrum.Cache.Me
alias Nostrum.Cache.ChannelCache
alias Nostrum.Cache.UserCache
alias Nostrum.Cache.GuildCache
def me do
Me.get()
end
def text_message(channel_id, message) do
Api.create_message(channel_id, message... | 22.590909 | 66 | 0.666398 |
1d6b49e3411d65b481a859c28fcd944508a9db2e | 1,568 | exs | Elixir | mix.exs | tyler-nguyen/html5ever_elixir | 634ea29cdf90c881ad4bad8f4c8f584d3031fefd | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | tyler-nguyen/html5ever_elixir | 634ea29cdf90c881ad4bad8f4c8f584d3031fefd | [
"Apache-2.0",
"MIT"
] | null | null | null | mix.exs | tyler-nguyen/html5ever_elixir | 634ea29cdf90c881ad4bad8f4c8f584d3031fefd | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule Html5ever.Mixfile do
use Mix.Project
def project do
[app: :html5ever,
version: "0.7.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: rustler_crates(),
deps: deps(),
... | 23.058824 | 79 | 0.582908 |
1d6b6001cfe8aa71baeb55447e2484a8ab8c1b02 | 1,106 | exs | Elixir | clients/webmaster/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/webmaster/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/webmaster/mix.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Webmaster.V3.Mixfile do
use Mix.Project
@version "0.5.0"
def project do
[app: :google_api_webmaster,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
... | 23.041667 | 109 | 0.599458 |
1d6b6746cfc412eec0461a1b683b79df3bf50ddf | 1,349 | exs | Elixir | test/docker_test.exs | datx05/elixir-docker | e50aa6e5a44069fbe47ce89c316f06baf6673c47 | [
"MIT"
] | null | null | null | test/docker_test.exs | datx05/elixir-docker | e50aa6e5a44069fbe47ce89c316f06baf6673c47 | [
"MIT"
] | null | null | null | test/docker_test.exs | datx05/elixir-docker | e50aa6e5a44069fbe47ce89c316f06baf6673c47 | [
"MIT"
] | null | null | null | defmodule DockerTest do
use ExUnit.Case, async: false
setup do
server = %{
baseUrl: "https://docker-06.lan.zhaowei.jimubox.com:2376",
ssl_options: [
{:certfile, 'docker.crt'},
{:keyfile, 'docker.key'},
]
}
{:ok, conn} = Docker.start_link(server)
{:ok, [conn: conn]... | 27.530612 | 95 | 0.595256 |
1d6b94cf6218d2e33aaa95dd3c430f778bafe6a3 | 463 | ex | Elixir | server/lib/prepply/onboarding/checklist_item.ex | jeepers3327/prepply | 64b6be3b832fddf429faa31f5f7c1b93b842f821 | [
"MIT"
] | 2 | 2021-03-04T15:21:14.000Z | 2021-03-21T13:43:07.000Z | server/lib/prepply/onboarding/checklist_item.ex | jeepers3327/prepply | 64b6be3b832fddf429faa31f5f7c1b93b842f821 | [
"MIT"
] | null | null | null | server/lib/prepply/onboarding/checklist_item.ex | jeepers3327/prepply | 64b6be3b832fddf429faa31f5f7c1b93b842f821 | [
"MIT"
] | null | null | null | defmodule Prepply.Onboarding.ChecklistItem do
use Ecto.Schema
import Ecto.Changeset
schema "checklist_items" do
field :is_online_submit, :boolean, default: false
field :name, :string
has_many :checklists, Prepply.Onboarding.Checklist
timestamps()
end
@doc false
def changeset(checklist_it... | 22.047619 | 54 | 0.723542 |
1d6ba7ece8e06136de09b93c92451214e70a69a4 | 822 | exs | Elixir | src/rebar_mix_protocol_consolidation.exs | tsloughter/rebar_mix | faa128afe136851685e02a7069cf57761d31eba2 | [
"Apache-2.0"
] | 25 | 2018-10-04T17:12:02.000Z | 2019-08-02T13:29:18.000Z | src/rebar_mix_protocol_consolidation.exs | paulo-ferraz-oliveira/rebar_mix | faa128afe136851685e02a7069cf57761d31eba2 | [
"Apache-2.0"
] | 19 | 2020-01-02T20:58:11.000Z | 2021-08-08T23:31:46.000Z | src/rebar_mix_protocol_consolidation.exs | paulo-ferraz-oliveira/rebar_mix | faa128afe136851685e02a7069cf57761d31eba2 | [
"Apache-2.0"
] | 9 | 2020-01-03T15:03:46.000Z | 2021-05-27T17:53:09.000Z | # rebar3 provider sets this to all deps of the project being built
paths = String.split(System.get_env("REBAR_DEPS_EBIN", ""), ":")
out_dir = System.get_env("REBAR_PROTOCOLS_OUTDIR", "")
File.mkdir_p!(out_dir)
# For protocol consolidation run the following script
# paths is a list of paths to dependency ebin directory... | 41.1 | 85 | 0.729927 |
1d6bac6c75d098db5e56cac0aff7871bf9af4196 | 6,614 | exs | Elixir | test/tortoise/pipe_test.exs | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 2 | 2021-12-23T21:51:31.000Z | 2022-02-20T22:29:24.000Z | test/tortoise/pipe_test.exs | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 11 | 2021-11-18T01:23:15.000Z | 2022-03-28T18:15:18.000Z | test/tortoise/pipe_test.exs | ngenic/tortoise311 | 18aa234c26f0e1d7b3dcac5dad562231346a20ef | [
"Apache-2.0"
] | 3 | 2021-11-19T16:23:38.000Z | 2022-03-18T11:36:54.000Z | defmodule Tortoise311.PipeTest do
use ExUnit.Case, async: true
doctest Tortoise311.Pipe
alias Tortoise311.Connection.Inflight
alias Tortoise311.{Package, Pipe}
setup context do
{:ok, %{client_id: context.test}}
end
def setup_inflight(context) do
opts = [client_id: context.client_id]
{:ok, ... | 34.447917 | 92 | 0.637889 |
1d6bc4d168f5e4cfcac6b5862e0e593215fc8a89 | 358 | ex | Elixir | lib/parley.ex | acj/parley | 56b5c7b34f39c74af6ccd4a85a23ceccfc117bdf | [
"MIT"
] | 1 | 2021-07-02T22:50:40.000Z | 2021-07-02T22:50:40.000Z | lib/parley.ex | acj/parley | 56b5c7b34f39c74af6ccd4a85a23ceccfc117bdf | [
"MIT"
] | null | null | null | lib/parley.ex | acj/parley | 56b5c7b34f39c74af6ccd4a85a23ceccfc117bdf | [
"MIT"
] | null | null | null | defmodule Parley do
require Logger
use Application
def start(_type, _args) do
Logger.debug("Starting Parley")
import Supervisor.Spec
children = [
supervisor(Registry, [:unique, Parley.Registry]),
supervisor(Parley.Supervisor, []),
]
opts = [strategy: :one_for_one]
Supervisor... | 19.888889 | 55 | 0.675978 |
1d6bc5fe54165f7bb9e1329c9c3466eac45056aa | 417 | ex | Elixir | lib/phone/nanp/ca.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/ca.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/ca.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.CA do
@moduledoc false
use Helper.Country
def country, do: "Canada"
def a2, do: "CA"
def a3, do: "CAN"
matcher :modules, [Phone.NANP.CA.AB, Phone.NANP.CA.BC, Phone.NANP.CA.MB,
Phone.NANP.CA.NB, Phone.NANP.CA.NL, Phone.NANP.CA.NSAndPE,
Phone.N... | 27.8 | 79 | 0.594724 |
1d6bd1b31a324c4667e60999794905b861ef2e0a | 5,065 | ex | Elixir | lib/builder/builder.ex | burrito-elixir/burrito | 30407ab6f216c78cc5f1c5551ca32c54577edfaa | [
"MIT"
] | 192 | 2021-10-29T22:37:08.000Z | 2022-03-31T23:07:36.000Z | lib/builder/builder.ex | burrito-elixir/burrito | 30407ab6f216c78cc5f1c5551ca32c54577edfaa | [
"MIT"
] | 25 | 2021-11-02T13:12:43.000Z | 2022-03-31T17:18:38.000Z | lib/builder/builder.ex | burrito-elixir/burrito | 30407ab6f216c78cc5f1c5551ca32c54577edfaa | [
"MIT"
] | 9 | 2021-10-31T13:43:54.000Z | 2022-03-15T02:49:15.000Z | defmodule Burrito.Builder do
alias Burrito.Builder.Context
alias Burrito.Builder.Log
alias Burrito.Builder.Target
alias Burrito.Steps.Build
alias Burrito.Steps.Fetch
alias Burrito.Steps.Patch
@moduledoc """
Burrito builds in "phases". Each phase contains any number of "steps" which are executed one af... | 30.512048 | 190 | 0.634748 |
1d6be559de417d96a44346902d2b36f170d38834 | 3,166 | ex | Elixir | lib/helper.ex | tyrchen/nimble_parsers | 726c895294a966cbaf1a752a9da21a7e51a3505e | [
"MIT"
] | 2 | 2019-07-14T08:06:24.000Z | 2019-07-14T08:08:54.000Z | lib/helper.ex | tyrchen/common_parser | 726c895294a966cbaf1a752a9da21a7e51a3505e | [
"MIT"
] | 16 | 2019-02-10T06:25:44.000Z | 2019-10-27T09:35:00.000Z | lib/helper.ex | tyrchen/common_parser | 726c895294a966cbaf1a752a9da21a7e51a3505e | [
"MIT"
] | null | null | null | defmodule CommonParser.Helper do
@moduledoc """
Helper functions for making parser work easy
"""
import NimbleParsec
@doc """
Ignore white space and tab, and make it optional
"""
@spec ignore_space() :: NimbleParsec.t()
def ignore_space do
parse_ws()
|> ignore()
end
@doc """
Ignore sep... | 25.739837 | 102 | 0.622236 |
1d6c285f8e44582f01cd4388b22313c7bc31d3c1 | 9,219 | exs | Elixir | lib/ex_unit/test/ex_unit_test.exs | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit_test.exs | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit_test.exs | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ExUnitTest do
use ExUnit.Case
import ExUnit.CaptureIO
test "it supports many runs" do
defmodule SampleTest do
use ExUnit.Case
test "true" do
assert false
end
test "false" do
assert false
end
end
... | 24.324538 | 97 | 0.606899 |
1d6c3dc7bbf5bb96cf1b5e9034f3e2e84a1b8009 | 9,046 | exs | Elixir | lib/elixir/test/elixir/module/types/pattern_test.exs | joshnuss/elixir | 10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/types/pattern_test.exs | joshnuss/elixir | 10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/types/pattern_test.exs | joshnuss/elixir | 10ef56fdfa6f1634c0b167a6ddfda44b91bd9bd4 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Module.Types.PatternTest do
use ExUnit.Case, async: true
import Module.Types.Infer, only: [new_var: 2]
import Module.Types.Pattern
alias Module.Types
defmacrop quoted_pattern(patterns) do
quote do
{patterns, true} = unquote(Macro.escape... | 38.168776 | 94 | 0.534822 |
1d6c3f35a61364a57e1569001e0d2a8930562d70 | 77 | ex | Elixir | lib/slack_bot/send_message.ex | mtgto/Elixir-SlackBot | 1598bcfffa062eb691e5b809fadbe58a4678a005 | [
"MIT"
] | 2 | 2015-12-11T18:51:49.000Z | 2016-01-08T20:42:05.000Z | lib/slack_bot/send_message.ex | mtgto/Elixir-SlackBot | 1598bcfffa062eb691e5b809fadbe58a4678a005 | [
"MIT"
] | null | null | null | lib/slack_bot/send_message.ex | mtgto/Elixir-SlackBot | 1598bcfffa062eb691e5b809fadbe58a4678a005 | [
"MIT"
] | null | null | null | defmodule SlackBot.SendMessage do
defstruct channel: nil, message: nil
end
| 19.25 | 38 | 0.805195 |
1d6c4435db614be912b2904f324bbd9c1d32058a | 421 | exs | Elixir | apps/welcome2_web/test/welcome2_web/views/error_view_test.exs | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | apps/welcome2_web/test/welcome2_web/views/error_view_test.exs | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | 13 | 2020-03-22T08:00:57.000Z | 2022-03-07T16:35:36.000Z | apps/welcome2_web/test/welcome2_web/views/error_view_test.exs | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | defmodule Welcome2Web.ErrorViewTest do
use Welcome2Web.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(Welcome2Web.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
... | 28.066667 | 93 | 0.736342 |
1d6c5e5ed480971a05a4b9e79db864574aee3d6e | 1,366 | ex | Elixir | lib/credo/check/refactor/append_single_item.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | lib/credo/check/refactor/append_single_item.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/check/refactor/append_single_item.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Refactor.AppendSingleItem do
@moduledoc """
When building up large lists, it is faster to prepend than
append. Therefore: It is sometimes best to prepend to the list
during iteration and call Enum.reverse/1 at the end, as it is quite
fast.
Example:
list = list_so_far ++ [new_it... | 25.296296 | 83 | 0.644949 |
1d6c6ba53adb80016c7584dcee60cd235eceda59 | 79 | ex | Elixir | lib/bgsite_official_web/views/feedback_view.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 1 | 2021-08-05T12:44:37.000Z | 2021-08-05T12:44:37.000Z | lib/bgsite_official_web/views/feedback_view.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 16 | 2021-02-20T19:22:45.000Z | 2021-06-14T13:59:01.000Z | lib/bgsite_official_web/views/feedback_view.ex | N-Patarov/bgsite_official | 9ed082dd8c6c5dbc83e0bc50ec63095a72ee2854 | [
"Apache-2.0"
] | 3 | 2021-05-17T17:54:43.000Z | 2021-11-03T15:30:30.000Z | defmodule BgsiteOfficialWeb.FeedbackView do
use BgsiteOfficialWeb, :view
end
| 19.75 | 43 | 0.848101 |
1d6ce59a48a71f6a8a9bd482b879a75de5c8addd | 476 | ex | Elixir | lib/message.ex | eqmvii/gen_rmq | 074b0cf45fbc0ab2c3ab29b1ff79df51fa64c2bf | [
"MIT"
] | null | null | null | lib/message.ex | eqmvii/gen_rmq | 074b0cf45fbc0ab2c3ab29b1ff79df51fa64c2bf | [
"MIT"
] | 64 | 2018-05-15T11:34:13.000Z | 2021-08-03T07:15:39.000Z | lib/message.ex | eqmvii/gen_rmq | 074b0cf45fbc0ab2c3ab29b1ff79df51fa64c2bf | [
"MIT"
] | null | null | null | defmodule GenRMQ.Message do
@moduledoc """
Struct wrapping details of the consumed message
Defines:
* `:attributes` - message attributes
* `:payload` - message raw payload
* `:state` - consumer state
"""
@enforce_keys [:attributes, :payload, :state]
defstruct [:attributes, :payload, :state]
@doc ... | 20.695652 | 49 | 0.663866 |
1d6cf091276f206a72e1af28c4275ebfac2d0cac | 960 | ex | Elixir | apps/andi/lib/andi/input_schemas/datasets/extract_steps/extract_query_param.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/lib/andi/input_schemas/datasets/extract_steps/extract_query_param.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/lib/andi/input_schemas/datasets/extract_steps/extract_query_param.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Andi.InputSchemas.Datasets.ExtractQueryParam do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
alias Andi.InputSchemas.StructTools
@primary_key {:id, Ecto.UUID, autogenerate: true}
embedded_schema do
field(:key, :string)
field(:value, :string)
end
use Accessible
@cast_fie... | 25.263158 | 70 | 0.752083 |
1d6cf663ba15dd624d1e4b894e6e43d5bb990117 | 424 | ex | Elixir | lib/log/timestamp.ex | Carburetor/log | 120d535a090a41f52c141c5e08be294bb78e3a6c | [
"MIT"
] | null | null | null | lib/log/timestamp.ex | Carburetor/log | 120d535a090a41f52c141c5e08be294bb78e3a6c | [
"MIT"
] | null | null | null | lib/log/timestamp.ex | Carburetor/log | 120d535a090a41f52c141c5e08be294bb78e3a6c | [
"MIT"
] | null | null | null | defmodule Log.Timestamp do
@moduledoc """
Provides functions to convert from a Logger timestamp to a
`NaiveDateTime.t()`
"""
def parse({date, {hour, minute, second, micro}}) do
timestamp = {date, {hour, minute, second}}
micro_with_precision = {micro * 1000, 3}
case NaiveDateTime.from_erl(timesta... | 24.941176 | 67 | 0.650943 |
1d6d1aa7bfc3780eb00d056b3fbea30ea0ca664f | 613 | ex | Elixir | lib/cafex/protocol/heartbeat.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | lib/cafex/protocol/heartbeat.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | lib/cafex/protocol/heartbeat.ex | MishaConway/cafex | 32965b7e099bc45de24c229cc76f7b83b35ff7b4 | [
"Apache-2.0"
] | null | null | null | defmodule Cafex.Protocol.Heartbeat do
use Cafex.Protocol, api: :heartbeat
defrequest do
field :group_id, binary
field :generation_id, binary
field :member_id, binary
end
defresponse do
field :error, Cafex.Protocol.error
end
def encode(%{group_id: group_id,
generation_id: ge... | 22.703704 | 46 | 0.66721 |
1d6d256d73eb8ec1862b4e6e0d27fbf7eabfb077 | 2,064 | ex | Elixir | clients/people/lib/google_api/people/v1/model/contact_group_membership.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/contact_group_membership.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/contact_group_membership.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... | 37.527273 | 147 | 0.739826 |
1d6d2659b148841f6df90527ba2f4ca54a9fc54f | 730 | ex | Elixir | lib/solid/object.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | null | null | null | lib/solid/object.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | null | null | null | lib/solid/object.ex | christopherlai/solid | c7f0553f4ce3c12b68484baff42084bee1aa640b | [
"MIT"
] | null | null | null | defmodule Solid.Object do
@moduledoc """
Liquid objects are arguments with filter(s) applied to them
"""
alias Solid.{Argument, Context}
@spec render(Keyword.t(), Context.t(), Keyword.t()) :: String.t()
def render([], _context, _options), do: []
def render(object, context, options) when is_list(object) ... | 25.172414 | 83 | 0.668493 |
1d6d283a15e7c9b367131dc609a17cfd5553617e | 77 | ex | Elixir | lib/pointing_party_web/views/location_view.ex | drews256/planning_party_ex | 8fb8116b0fa321d86fd5908db9c6218a56d79b0e | [
"Apache-2.0"
] | null | null | null | lib/pointing_party_web/views/location_view.ex | drews256/planning_party_ex | 8fb8116b0fa321d86fd5908db9c6218a56d79b0e | [
"Apache-2.0"
] | 3 | 2020-04-30T11:45:19.000Z | 2021-05-10T10:22:58.000Z | lib/pointing_party_web/views/location_view.ex | drews256/planning_party_ex | 8fb8116b0fa321d86fd5908db9c6218a56d79b0e | [
"Apache-2.0"
] | null | null | null | defmodule PointingPartyWeb.LocationView do
use PointingPartyWeb, :view
end
| 19.25 | 42 | 0.844156 |
1d6d28ec74ce01fdb1ff75bbc16e8a6223980abf | 1,239 | exs | Elixir | config/config.exs | gabrielkim13/nlw4-rocketpay | 7d43ba56beb99bdf271be2af73d4b16df7b81317 | [
"RSA-MD"
] | 1 | 2021-12-15T17:32:15.000Z | 2021-12-15T17:32:15.000Z | config/config.exs | gabrielkim13/nlw4-rocketpay | 7d43ba56beb99bdf271be2af73d4b16df7b81317 | [
"RSA-MD"
] | null | null | null | config/config.exs | gabrielkim13/nlw4-rocketpay | 7d43ba56beb99bdf271be2af73d4b16df7b81317 | [
"RSA-MD"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :rocketpay,
ecto_repos: [Rocketpay.Repo... | 30.975 | 86 | 0.765133 |
1d6d5a9bc6d04a1b3c6114af386b533f8befafdb | 474 | exs | Elixir | priv/repo/migrations/20151022125349_create_project.exs | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | priv/repo/migrations/20151022125349_create_project.exs | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | priv/repo/migrations/20151022125349_create_project.exs | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Repo.Migrations.CreateProject do
use Ecto.Migration
def change do
create table(:projects) do
add(:name, :string)
add(:token, :string)
add(:user_id, :integer)
add(:current_coverage, :float)
add(:base_url, :string)
add(:repo_id, :string)
timestamps()
... | 22.571429 | 51 | 0.64135 |
1d6d5acf56224a6335db4dbde01a4b68c0132d2a | 5,879 | ex | Elixir | lib/ex_pix_brcode/jws/jwks_storage.ex | joaogularte/ex-pix-brcode | 2cd0d67db06cb5a250fa42cf5b4921ed84559b3e | [
"Apache-2.0"
] | 17 | 2020-11-27T14:58:17.000Z | 2021-12-17T12:52:19.000Z | lib/ex_pix_brcode/jws/jwks_storage.ex | joaogularte/ex-pix-brcode | 2cd0d67db06cb5a250fa42cf5b4921ed84559b3e | [
"Apache-2.0"
] | 2 | 2020-11-28T18:33:03.000Z | 2022-01-06T17:10:00.000Z | lib/ex_pix_brcode/jws/jwks_storage.ex | joaogularte/ex-pix-brcode | 2cd0d67db06cb5a250fa42cf5b4921ed84559b3e | [
"Apache-2.0"
] | 6 | 2020-11-28T07:10:51.000Z | 2021-12-16T16:39:28.000Z | defmodule ExPixBRCode.JWS.JWKSStorage do
@moduledoc """
A JWKS storage of validated keys and certificates.
"""
alias ExPixBRCode.JWS.Models.JWKS.Key
alias ExPixBRCode.JWS.Models.JWSHeaders
defstruct [:jwk, :certificate, :key]
@typedoc """
Storage item.
It has a parsed JWK, the certificate of the k... | 33.982659 | 98 | 0.632931 |
1d6d8209686f960c1e9b566dec65513fed40ae5c | 1,544 | ex | Elixir | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/lib/$PROJECT_NAME$_web/controllers/fallback_controller.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 54 | 2018-01-24T00:22:57.000Z | 2019-01-15T20:03:52.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/lib/$PROJECT_NAME$_web/controllers/fallback_controller.ex | infinitered/mithril | 0bbad29f86c63d9a827dcaaf6fed78a176ab90d7 | [
"MIT"
] | 3 | 2018-02-05T18:00:39.000Z | 2018-05-04T00:05:20.000Z | template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/lib/$PROJECT_NAME$_web/controllers/fallback_controller.ex | fadeojo/mithril | d84ff2d42f895c27c46c0feb09b70ccbac5827ac | [
"MIT"
] | 3 | 2019-07-12T11:16:42.000Z | 2020-06-08T15:03:36.000Z | defmodule <%= @project_name_camel_case %>Web.FallbackController do
@moduledoc """
Provides default error handling for `Phoenix` controllers. Use with
`Phoenix.Controller.action_fallback/1`.
"""
use <%= @project_name_camel_case %>Web, :controller
<%= if assigns[:accounts] do %>
alias <%= @project_name_ca... | 27.571429 | 86 | 0.654145 |
1d6daf4778b1b8af2c188b71bed073e667a6a0aa | 28 | ex | Elixir | lib/metasploit.ex | fossabot/metasploit_ex | b2cc5ea0fdbc6d60ccd5bdd9ad823e684e52d36c | [
"MIT"
] | 2 | 2019-05-26T04:17:56.000Z | 2020-08-13T01:01:29.000Z | lib/metasploit.ex | fossabot/metasploit_ex | b2cc5ea0fdbc6d60ccd5bdd9ad823e684e52d36c | [
"MIT"
] | 1 | 2019-08-07T08:01:23.000Z | 2019-08-07T08:01:23.000Z | lib/metasploit.ex | fossabot/metasploit_ex | b2cc5ea0fdbc6d60ccd5bdd9ad823e684e52d36c | [
"MIT"
] | 1 | 2019-08-07T07:58:30.000Z | 2019-08-07T07:58:30.000Z | defmodule Metasploit do
end
| 9.333333 | 23 | 0.857143 |
1d6db1c815e2090076bee6f43a36301edf01aaca | 858 | ex | Elixir | languages/elixir/exercises/concept/wine-cellar/lib/wine_cellar.ex | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 200 | 2019-12-12T13:50:59.000Z | 2022-02-20T22:38:42.000Z | languages/elixir/exercises/concept/wine-cellar/lib/wine_cellar.ex | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 1,938 | 2019-12-12T08:07:10.000Z | 2021-01-29T12:56:13.000Z | languages/elixir/exercises/concept/wine-cellar/lib/wine_cellar.ex | AlexLeSang/v3 | 3d35961a961b5a2129b1d42f1d118972d9665357 | [
"MIT"
] | 239 | 2019-12-12T14:09:08.000Z | 2022-03-18T00:04:07.000Z | defmodule WineCellar do
def explain_colors do
raise "Please implement the explain_colors/0 function"
end
def filter(cellar, color, opts \\ []) do
raise "Please implement the filter/3 function"
end
# The functions below do not need to be modified.
defp filter_by_year(wines, year)
defp filter_by_... | 25.235294 | 69 | 0.682984 |
1d6dbb85b64dbcec7741003ee70fa1179e3764b4 | 1,448 | ex | Elixir | test/support/model_case.ex | wsmoak/my_app_7191136 | f8812eec5214c77dee07a1ea78b07cf3ad9e80bd | [
"MIT"
] | 2 | 2015-08-04T02:04:56.000Z | 2016-06-18T00:43:10.000Z | test/support/model_case.ex | wsmoak/my_app_7191136 | f8812eec5214c77dee07a1ea78b07cf3ad9e80bd | [
"MIT"
] | null | null | null | test/support/model_case.ex | wsmoak/my_app_7191136 | f8812eec5214c77dee07a1ea78b07cf3ad9e80bd | [
"MIT"
] | null | null | null | defmodule MyApp_7191136.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async... | 26.814815 | 81 | 0.696133 |
1d6dc612debf21e6199e425d85c78adbb30d783e | 83 | exs | Elixir | test/multihash_test.exs | cnxtech/ex_multihash | 12b91b559977cf866dfbadb8da06ac332bfc2638 | [
"MIT"
] | 18 | 2016-08-10T16:52:24.000Z | 2021-03-25T01:23:58.000Z | test/multihash_test.exs | DalavanCloud/ex_multihash | 00f63c90b52aaf55631d7622dc882194a510c425 | [
"MIT"
] | 9 | 2016-08-07T23:28:31.000Z | 2019-12-17T08:39:25.000Z | test/multihash_test.exs | dwyl/ex_multihash | dd3ce7e39d053049dbd7219c2aba2dbde9940bb2 | [
"MIT"
] | 12 | 2016-09-30T18:53:57.000Z | 2021-05-19T11:18:15.000Z | defmodule MultihashTest do
use ExUnit.Case, async: true
doctest Multihash
end
| 13.833333 | 30 | 0.783133 |
1d6dd3ebec03347ceca56e2239c2f1f11203c156 | 5,290 | ex | Elixir | lib/raft/configuration.ex | craiglyons/raft | 8a10978292fcc4fe549446afdca9674318b81c46 | [
"Apache-2.0"
] | null | null | null | lib/raft/configuration.ex | craiglyons/raft | 8a10978292fcc4fe549446afdca9674318b81c46 | [
"Apache-2.0"
] | null | null | null | lib/raft/configuration.ex | craiglyons/raft | 8a10978292fcc4fe549446afdca9674318b81c46 | [
"Apache-2.0"
] | null | null | null | defmodule Raft.Configuration do
@moduledoc """
Defines a struct and common operations for managing cluster membership
"""
defstruct [state: :none, old_servers: [], new_servers: [], index: 0]
alias __MODULE__
@type peer :: atom() | {atom(), atom()}
@type config_state :: :none
| :s... | 25.804878 | 86 | 0.642533 |
1d6dd550c2f236b10c24a469188b5e0d0503690e | 1,548 | ex | Elixir | implementations/elixir/lib/services/influx.ex | nondejus/ockam | 4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad | [
"Apache-2.0"
] | null | null | null | implementations/elixir/lib/services/influx.ex | nondejus/ockam | 4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad | [
"Apache-2.0"
] | null | null | null | implementations/elixir/lib/services/influx.ex | nondejus/ockam | 4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Services.Influx do
use Supervisor
alias __MODULE__.Connection
def start_link([meta, opts]) when is_list(meta) and is_list(opts) do
name = Keyword.get(meta, :name, __MODULE__)
Supervisor.start_link(__MODULE__, [name, opts])
end
@impl true
def init([name, opts]) do
children = [... | 30.352941 | 79 | 0.709948 |
1d6de11f254bf7887b40c60cf8b6b607f758bad2 | 231 | exs | Elixir | priv/repo/migrations/20210625134335_add_works_to_cited_artiments.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210625134335_add_works_to_cited_artiments.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210625134335_add_works_to_cited_artiments.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.AddWorksToCitedArtiments do
use Ecto.Migration
def change do
alter table(:cited_artiments) do
add(:works_id, references(:cms_works, on_delete: :delete_all))
end
end
end
| 23.1 | 68 | 0.757576 |
1d6e2b10f7603c55941cafe460cb5d8734e9e10e | 2,207 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_recommendation.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_recommendation.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/activity_content_details_recommendation.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... | 40.127273 | 151 | 0.759402 |
1d6e3ca2d93048877c08a352babdd536358abc31 | 230 | ex | Elixir | apps/legion_http/lib/http/utils/date_conversion.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion_http/lib/http/utils/date_conversion.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion_http/lib/http/utils/date_conversion.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.HTTP.Utils.DateConversion do
@moduledoc """
Converts native timestamp units to endpoint-to-endpoint compatible format.
"""
def put_date(date = %NaiveDateTime{}),
do: NaiveDateTime.to_iso8601(date)
end
| 28.75 | 76 | 0.752174 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.