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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
917fc5e8b88ee72d838ec9f04b49f5f67af7a929 | 2,114 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_volume.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_volume.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/containeranalysis_google_devtools_cloudbuild_v1_volume.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.436364 | 229 | 0.74929 |
917fe147e0617d0cf83ab0331c79aeddcbfa96a6 | 2,313 | exs | Elixir | lib/elixir/test/elixir/process_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/process_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/process_test.exs | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ProcessTest do
use ExUnit.Case, async: true
test "group_leader/2 and group_leader/0" do
another = spawn_link(fn -> :timer.sleep(1000) end)
assert Process.group_leader(self, another)
assert Process.group_leader == another
end
test "monitoring ... | 25.988764 | 84 | 0.644617 |
91802368e68e3bc1983fdf2ac186f1bdcfcadccd | 1,292 | exs | Elixir | apps/graphql/test/queries/oauth_queries_test.exs | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/graphql/test/queries/oauth_queries_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/graphql/test/queries/oauth_queries_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule GraphQl.OAuthQueriesTest do
use Core.SchemaCase, async: true
import GraphQl.TestHelpers
use Mimic
describe "oauthLogin" do
test "it can fetch an oauth login's details" do
provider = insert(:oidc_provider)
expect(HTTPoison, :get, fn _, _ ->
body = Jason.encode!(%{client: %{clie... | 30.761905 | 73 | 0.598297 |
918028576676a5788086ae726f4ec4342cfd4ec4 | 887 | ex | Elixir | OTPServers/stack/lib/stack/server.ex | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | 2 | 2015-11-14T21:35:01.000Z | 2017-07-12T07:09:40.000Z | OTPServers/stack/lib/stack/server.ex | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | OTPServers/stack/lib/stack/server.ex | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | defmodule Stack.Server do
use GenServer
def start_empty do
start_link([])
end
def shutdown do
System.halt(1)
end
def start_with_random_data do
start_link([1, "abc", 2, "cdf", 3])
end
def start_link(initial_values) do
GenServer.start_link(__MODULE__, initial_values, name: __MODULE__)
end
def pop d... | 18.479167 | 78 | 0.691094 |
91802eb3b7f1b010cad05614f68075f847865a03 | 147 | ex | Elixir | lib/stm_agent/exceptions.ex | stevbov/stm_agent | 364308a6d6500895f92783eead36db5cc2ed4e87 | [
"Apache-2.0"
] | null | null | null | lib/stm_agent/exceptions.ex | stevbov/stm_agent | 364308a6d6500895f92783eead36db5cc2ed4e87 | [
"Apache-2.0"
] | null | null | null | lib/stm_agent/exceptions.ex | stevbov/stm_agent | 364308a6d6500895f92783eead36db5cc2ed4e87 | [
"Apache-2.0"
] | null | null | null | defmodule StmAgent.AbortError do
@moduledoc """
Used to signal an abort in ! functions.
"""
defexception message: "Transaction abort"
end
| 18.375 | 43 | 0.721088 |
91805cf088162c815a461b60746294f1ab4f8bc7 | 12,670 | ex | Elixir | lib/structs/permissions.ex | Drahcirius/crux_structs | 53ba17c6ab0adfadbf69e236ec936fed8015420e | [
"MIT"
] | null | null | null | lib/structs/permissions.ex | Drahcirius/crux_structs | 53ba17c6ab0adfadbf69e236ec936fed8015420e | [
"MIT"
] | null | null | null | lib/structs/permissions.ex | Drahcirius/crux_structs | 53ba17c6ab0adfadbf69e236ec936fed8015420e | [
"MIT"
] | null | null | null | defmodule Crux.Structs.Permissions do
@moduledoc """
Custom non discord api struct to help with working with permissions.
For more informations see [Discord Docs](https://discordapp.com/developers/docs/topics/permissions).
"""
use Bitwise
alias Crux.Structs
alias Crux.Structs.Util
require Util
... | 25.91002 | 124 | 0.624783 |
91805fd34cf3ca440fd8ed6651fa77689a5ba217 | 357 | exs | Elixir | day_02/mix.exs | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | day_02/mix.exs | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | day_02/mix.exs | simon-wolf/advent-of-code-2019 | 571d30f156a2beeeb49a52a2f0223fff5051e7b3 | [
"MIT"
] | null | null | null | defmodule Day02.MixProject do
use Mix.Project
def project do
[
app: :day_02,
version: "1.0.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:... | 13.730769 | 42 | 0.512605 |
91806625e8e8d72c45eb7efd8772f0b6cd8b032c | 163 | ex | Elixir | lib/valve.ex | voidlock/relief | 3011558f6e8e70782166268e65c4517601746b0e | [
"Apache-2.0"
] | 2 | 2015-11-27T22:06:54.000Z | 2015-11-30T15:05:44.000Z | lib/valve.ex | voidlock/relief | 3011558f6e8e70782166268e65c4517601746b0e | [
"Apache-2.0"
] | null | null | null | lib/valve.ex | voidlock/relief | 3011558f6e8e70782166268e65c4517601746b0e | [
"Apache-2.0"
] | null | null | null | defmodule Relief.Valve do
def stream(pressure, opts \\ []) do
flow = Keyword.get(opts, :flow, 1)
Relief.Valve.Stream.__build__(pressure, flow)
end
end
| 23.285714 | 49 | 0.687117 |
9180671e8c5e862d85efce2c66630a96a0fdcfc7 | 1,257 | ex | Elixir | lib/blog_web/views/error_helpers.ex | nlundkvist/blog | 8353b0619e7d88285bb233990dcf8ec4959d6ed8 | [
"MIT"
] | null | null | null | lib/blog_web/views/error_helpers.ex | nlundkvist/blog | 8353b0619e7d88285bb233990dcf8ec4959d6ed8 | [
"MIT"
] | null | null | null | lib/blog_web/views/error_helpers.ex | nlundkvist/blog | 8353b0619e7d88285bb233990dcf8ec4959d6ed8 | [
"MIT"
] | null | null | null | defmodule BlogWeb.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_tag :... | 30.658537 | 73 | 0.668258 |
91806df14284f0696f1f4a9c1cba75206fe35e62 | 782 | ex | Elixir | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_extensions_list_result.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.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_extensions_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/virtual_machine_extensions_list_result.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.Compute.Model.VirtualMachineExtensionsListResult do
@moduledoc """
The List Extension operation response
"""
@... | 27.928571 | 110 | 0.757033 |
918072db211f86fbe89f3688856ba6367d49aae7 | 900 | ex | Elixir | lib/teslamate/locations/geo_fence.ex | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | 1 | 2020-05-17T05:05:22.000Z | 2020-05-17T05:05:22.000Z | lib/teslamate/locations/geo_fence.ex | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | lib/teslamate/locations/geo_fence.ex | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | defmodule TeslaMate.Locations.GeoFence do
use Ecto.Schema
import Ecto.Changeset
alias TeslaMate.Locations.Address
schema "geofences" do
field :name, :string
field :latitude, :float
field :longitude, :float
field :radius, :float
belongs_to :address, Address
timestamps()
end
@doc ... | 27.272727 | 72 | 0.718889 |
9180829f44041fd679f14171718514367a4c36ca | 2,017 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/audit_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/audit_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/audit_log_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.34 | 316 | 0.732771 |
91808897c1815e80742a314f3656fa246da337d2 | 694 | ex | Elixir | exercises/concept/lucas-numbers/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/concept/lucas-numbers/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/concept/lucas-numbers/.meta/exemplar.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule LucasNumbers do
@moduledoc """
Lucas numbers are an infinite sequence of numbers which build progressively
which hold a strong correlation to the golden ratio (φ or ϕ)
E.g.: 2, 1, 3, 4, 7, 11, 18, 29, ...
"""
@spec generate(integer()) :: list(integer())
def generate(count) when not is_integer(c... | 22.387097 | 77 | 0.605187 |
9180953262796607ee8564c22dc122b53100fe8c | 8,420 | ex | Elixir | lib/ark/pub_sub.ex | lud/ark | 672ee65baf06e6c323a8580f24f699f1495a886e | [
"MIT"
] | null | null | null | lib/ark/pub_sub.ex | lud/ark | 672ee65baf06e6c323a8580f24f699f1495a886e | [
"MIT"
] | null | null | null | lib/ark/pub_sub.ex | lud/ark | 672ee65baf06e6c323a8580f24f699f1495a886e | [
"MIT"
] | null | null | null | defmodule Ark.PubSub do
use GenServer
require Record
require Logger
Record.defrecordp(:rsub, :subscription, pid: nil, tag: __MODULE__)
Record.defrecordp(:rcnfo, :client_info, topic: nil, tag: __MODULE__)
@default_tag __MODULE__
@cleanup_timeout 10_000
@doc false
def __ark__(:doc) do
"""
Thi... | 27.16129 | 87 | 0.612589 |
9180b6e29103f346786015515ecb5594594f7ea1 | 2,468 | ex | Elixir | lib/vintage_net_lte/to_elixir/server.ex | LostKobrakai/vintage_net_lte | 7c280f38112bf9a5c1785d883302bab73b8000ee | [
"Apache-2.0"
] | null | null | null | lib/vintage_net_lte/to_elixir/server.ex | LostKobrakai/vintage_net_lte | 7c280f38112bf9a5c1785d883302bab73b8000ee | [
"Apache-2.0"
] | null | null | null | lib/vintage_net_lte/to_elixir/server.ex | LostKobrakai/vintage_net_lte | 7c280f38112bf9a5c1785d883302bab73b8000ee | [
"Apache-2.0"
] | null | null | null | defmodule VintageNetLTE.ToElixir.Server do
use GenServer
require Logger
alias VintageNetLTE.ToElixir.PPPDHandler
@moduledoc """
This GenServer routes messages from C and shell scripts to the appropriate
places in VintageNetLTE.
"""
@doc """
Start the GenServer.
"""
@spec start_link(Path.t()) ::... | 25.443299 | 95 | 0.65316 |
9180b9a06a8abd0a79e6b7387446d47534138502 | 718 | ex | Elixir | apps/faqcheck_web/lib/faqcheck_web/gettext.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | apps/faqcheck_web/lib/faqcheck_web/gettext.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | 20 | 2021-09-08T04:07:31.000Z | 2022-03-10T21:52:24.000Z | apps/faqcheck_web/lib/faqcheck_web/gettext.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | defmodule FaqcheckWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import FaqcheckWeb.Gettext
# Simple translation
gettext("Here is... | 28.72 | 72 | 0.681058 |
918122f288256da24850800300bf7a75d9f5a9a4 | 2,251 | ex | Elixir | lib/changelog_web/meta/description.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog_web/meta/description.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog_web/meta/description.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.Meta.Description do
alias ChangelogWeb.{
EpisodeView,
LiveView,
NewsItemView,
NewsSourceView,
PageView,
PersonView,
PodcastView,
PostView,
Helpers.SharedHelpers,
TopicView
}
def description(assigns), do: get(assigns)
defp get(%{view_module: Episod... | 37.516667 | 162 | 0.725455 |
91812aa20ebc49f7b4f7ec0909a70f5cf5f34c6e | 955 | ex | Elixir | test/support/conn_case.ex | nsarno/sailship | 1b94440d722e9a95981360ae6eae62ad8e230714 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | nsarno/sailship | 1b94440d722e9a95981360ae6eae62ad8e230714 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | nsarno/sailship | 1b94440d722e9a95981360ae6eae62ad8e230714 | [
"MIT"
] | null | null | null | defmodule Sailship.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the d... | 24.487179 | 56 | 0.706806 |
918136f844462e463fd52c2674b81ededcd604f0 | 3,283 | ex | Elixir | clients/games/lib/google_api/games/v1/model/instance.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/instance.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/instance.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.773333 | 160 | 0.695096 |
9181601e7e2f572beed2b12661c9de8394ae35e7 | 2,374 | ex | Elixir | lib/cloak/ciphers/deprecated/aes_gcm.ex | robinvdvleuten/cloak | 70cbf4bc59f15b5f60831d455b8dc7b6f457a1ff | [
"MIT"
] | null | null | null | lib/cloak/ciphers/deprecated/aes_gcm.ex | robinvdvleuten/cloak | 70cbf4bc59f15b5f60831d455b8dc7b6f457a1ff | [
"MIT"
] | null | null | null | lib/cloak/ciphers/deprecated/aes_gcm.ex | robinvdvleuten/cloak | 70cbf4bc59f15b5f60831d455b8dc7b6f457a1ff | [
"MIT"
] | 2 | 2021-04-20T13:08:04.000Z | 2021-05-18T16:38:01.000Z | defmodule Cloak.Ciphers.Deprecated.AES.GCM do
@moduledoc """
DEPRECATED version of the `Cloak.Ciphers.AES.GCM` cipher, for use in
migrating existing data to the new format used by `Cloak.Ciphers.AES.GCM`.
## Rationale
The old `Cloak.AES.GCM` cipher used the following format for ciphertext:
+---------... | 30.050633 | 99 | 0.562763 |
91818855ede9ef277a9015968527d53736ee1cd9 | 1,556 | ex | Elixir | lib/veloroute_web/endpoint.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | lib/veloroute_web/endpoint.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | lib/veloroute_web/endpoint.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule VelorouteWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :veloroute
use Sentry.Phoenix.Endpoint
# 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 [
st... | 28.290909 | 97 | 0.714653 |
91818a19a95dae8101e84dd54f6b2cd7a0bd9f9d | 98 | exs | Elixir | test/ambassador/language_test.exs | Recruitee/ambassador | 309e70f679b83609ba17fee5f43e8e69e0f66fa3 | [
"MIT"
] | 1 | 2020-10-29T11:28:32.000Z | 2020-10-29T11:28:32.000Z | test/ambassador/language_test.exs | Recruitee/ambassador | 309e70f679b83609ba17fee5f43e8e69e0f66fa3 | [
"MIT"
] | 2 | 2020-10-23T22:27:34.000Z | 2021-12-29T06:00:52.000Z | test/ambassador/language_test.exs | Recruitee/ambassador | 309e70f679b83609ba17fee5f43e8e69e0f66fa3 | [
"MIT"
] | 2 | 2020-10-15T17:48:11.000Z | 2021-08-04T12:59:38.000Z | defmodule Cadastre.LanguageTest do
use ExUnit.Case, async: true
doctest Cadastre.Language
end
| 19.6 | 34 | 0.806122 |
9181b3d894076df4a477ca3524a74153e8c81d0e | 8,081 | exs | Elixir | lib/eex/test/eex_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/eex/test/eex_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/eex/test/eex_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
require EEx
defmodule EExText.Compiled do
def before_compile do
fill_in_stacktrace
{ __ENV__.line, hd(tl(System.stacktrace)) }
end
{ :erlang, 1, 2 }.tuple_to_list
EEx.function_from_string :def, :string_sample, "<%= a + b %>", [:a, :b]
filename = Path.joi... | 21.549333 | 109 | 0.613785 |
9181bf4c2983e3c896b42e1f86ffc5af58036ebe | 12,650 | exs | Elixir | priv/repo/migrations/20210531155751_multitenant_upgrade.exs | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 27 | 2018-01-20T05:56:24.000Z | 2021-05-24T03:21:55.000Z | priv/repo/migrations/20210531155751_multitenant_upgrade.exs | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 731 | 2018-04-16T13:25:49.000Z | 2021-06-22T07:16:12.000Z | priv/repo/migrations/20210531155751_multitenant_upgrade.exs | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 43 | 2018-01-20T06:35:46.000Z | 2021-05-05T03:22:35.000Z | defmodule Cadet.Repo.Migrations.MultitenantUpgrade do
use Ecto.Migration
import Ecto.Query
def change do
# Tracks course configurations
create table(:courses) do
add(:course_name, :string, null: false)
add(:course_short_name, :string)
add(:viewable, :boolean, null: false, default: true)... | 34.375 | 219 | 0.615889 |
9181ef8688d1492d09fdefb4eb7c124270e0efd8 | 1,087 | ex | Elixir | lib/chat/channels/user/monitor.ex | arjit95/elixir-chat | e4db9d37713edb8398017c8629b8064541c5a110 | [
"MIT"
] | null | null | null | lib/chat/channels/user/monitor.ex | arjit95/elixir-chat | e4db9d37713edb8398017c8629b8064541c5a110 | [
"MIT"
] | null | null | null | lib/chat/channels/user/monitor.ex | arjit95/elixir-chat | e4db9d37713edb8398017c8629b8064541c5a110 | [
"MIT"
] | null | null | null | defmodule Chat.Channels.User.Monitor do
defmacro __using__([]) do
quote do
def websocket_info({:disconnect, username}, %{"users" => users} = state) do
if Map.get(state, "authenticated") do
users = Enum.reject(users, &(&1.user.username == username))
{:ok, %{state | "users" => user... | 27.871795 | 88 | 0.537259 |
91821995d7475baad11589746974d894f85477db | 368 | exs | Elixir | src/dates.exs | crissilvaeng/prickly-mclean | 074c655b34683d303d3d3cb3650bf29c877d08d9 | [
"MIT"
] | null | null | null | src/dates.exs | crissilvaeng/prickly-mclean | 074c655b34683d303d3d3cb3650bf29c877d08d9 | [
"MIT"
] | null | null | null | src/dates.exs | crissilvaeng/prickly-mclean | 074c655b34683d303d3d3cb3650bf29c877d08d9 | [
"MIT"
] | null | null | null | {:ok, today} = Date.new(2020, 12, 22)
IO.inspect(Date.day_of_week(today, :sunday))
# 3
{:ok, first} = Date.new(0, 1, 1)
IO.inspect(Date.day_of_week(first))
days_off = Date.range(~D[2020-12-24], ~D[2021-01-03])
IO.inspect(Enum.count(days_off))
# 11
IO.inspect(~D[2020-12-25] in days_off)
IO.inspect(~D[2021-01-01] in d... | 20.444444 | 53 | 0.67663 |
91823ce575fee63e8542c90d2077e6896e7078d0 | 2,217 | exs | Elixir | mix.exs | machineloop/ecto | 26c1cb5591a27241067435aedec48c68d102fb8d | [
"Apache-2.0"
] | 1 | 2019-05-03T08:51:16.000Z | 2019-05-03T08:51:16.000Z | mix.exs | machineloop/ecto | 26c1cb5591a27241067435aedec48c68d102fb8d | [
"Apache-2.0"
] | null | null | null | mix.exs | machineloop/ecto | 26c1cb5591a27241067435aedec48c68d102fb8d | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.MixProject do
use Mix.Project
@version "3.1.0-dev"
def project do
[
app: :ecto,
version: @version,
elixir: "~> 1.5",
deps: deps(),
consolidate_protocols: Mix.env() != :test,
# Hex
description: "A toolkit for data mapping and language integrated query... | 22.85567 | 90 | 0.532702 |
9182468b76e8181e9e8bfd1b6489691e3f03831a | 190 | ex | Elixir | test/support/mocks.ex | isabella232/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 6 | 2019-11-15T20:34:47.000Z | 2021-04-05T03:15:23.000Z | test/support/mocks.ex | FindHotel/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 1 | 2022-03-20T09:34:42.000Z | 2022-03-20T09:34:42.000Z | test/support/mocks.ex | isabella232/ido_keido | 871fd5c8b294fdc89e31e8dba173f2a5464de399 | [
"Apache-2.0"
] | 3 | 2021-06-09T05:58:09.000Z | 2022-03-20T07:05:13.000Z | # https://hexdocs.pm/mox/Mox.html#module-compile-time-requirements
Mox.defmock(IdoKeido.GeolocationMock, for: IdoKeido.GeolocationContext)
Mox.defmock(IdoKeido.RepoMock, for: IdoKeido.Repo)
| 47.5 | 71 | 0.821053 |
91825514d984e79dae7dabd45b5c934ee867f615 | 770 | ex | Elixir | lib/ash_admin/components/resource/select_table.ex | WolfDan/ash_admin | 272db146d433b52d67d35c3497442c78044adb36 | [
"MIT"
] | null | null | null | lib/ash_admin/components/resource/select_table.ex | WolfDan/ash_admin | 272db146d433b52d67d35c3497442c78044adb36 | [
"MIT"
] | null | null | null | lib/ash_admin/components/resource/select_table.ex | WolfDan/ash_admin | 272db146d433b52d67d35c3497442c78044adb36 | [
"MIT"
] | null | null | null | defmodule AshAdmin.Components.Resource.SelectTable do
@moduledoc false
use Surface.Component
alias Surface.Components.Form
alias Surface.Components.Form.{FieldContext, Label, Select}
prop(resource, :any, required: true)
prop(on_change, :event, required: true)
prop(table, :any, required: true)
prop(tab... | 27.5 | 76 | 0.6 |
9182c42c090e9144fb3ef83ec05668b0bec8f786 | 678 | ex | Elixir | web/controllers/api/v1/current_user_controller.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | web/controllers/api/v1/current_user_controller.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | web/controllers/api/v1/current_user_controller.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | defmodule ExTrello.CurrentUserController do
use ExTrello.Web, :controller
plug Guardian.Plug.EnsureAuthenticated, handler: ExTrello.SessionController
def show(conn, _) do
case decode_and_verify_token(conn) do
{ :ok, _claims } ->
user = Guardian.Plug.current_resource(conn)
conn
... | 24.214286 | 77 | 0.651917 |
9182cc84e916cd18d1e1e9e81a789bcfcbac9fa1 | 633 | ex | Elixir | lib/elapi/authentication.ex | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | lib/elapi/authentication.ex | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | lib/elapi/authentication.ex | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | defimpl ExAdmin.Authentication, for: Plug.Conn do
alias Elapi.Router.Helpers
def use_authentication?(_), do: true
def current_user(conn), do: Guardian.Plug.current_resource(conn)
def current_user_name(conn) do
case Guardian.Plug.current_resource(conn) do
nil -> nil
us... | 26.375 | 80 | 0.695103 |
9182d2f039affdfa72d36ed1107fa16592b7f5de | 1,320 | ex | Elixir | lib/wx_object.ex | elixir-desktop/bridge | 434d9d5d6fe818f2596eb282bd2a5f91cab4223c | [
"MIT"
] | 1 | 2022-03-29T13:25:03.000Z | 2022-03-29T13:25:03.000Z | lib/wx_object.ex | elixir-desktop/bridge | 434d9d5d6fe818f2596eb282bd2a5f91cab4223c | [
"MIT"
] | null | null | null | lib/wx_object.ex | elixir-desktop/bridge | 434d9d5d6fe818f2596eb282bd2a5f91cab4223c | [
"MIT"
] | null | null | null | defmodule :wx_object do
use GenServer
defstruct frame: nil, state: nil, module: nil
def start_link(name, module, args, _flags \\ []) do
name =
case name do
{:local, name} -> name
name -> name
end
{:ok, pid} = GenServer.start_link(__MODULE__, {module, args}, name: name)
{:... | 28.085106 | 82 | 0.620455 |
91831c8b8ef3c355cbdea50dc48f19ac14708517 | 176 | exs | Elixir | feed/priv/repo/migrations/20160301195953_create_post.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | feed/priv/repo/migrations/20160301195953_create_post.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | feed/priv/repo/migrations/20160301195953_create_post.exs | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule Feed.Repo.Migrations.CreatePost do
use Ecto.Migration
def change do
create table(:posts) do
add :caption, :string
timestamps
end
end
end
| 13.538462 | 44 | 0.676136 |
918325dfd73116c2d4d8803d5bd1da75659c930a | 8,053 | ex | Elixir | lib/cldr/number/rbnf.ex | elixir-cldr/cldr_numbers | ff905422eaddb66456589a34479b95c601e506f8 | [
"Apache-2.0"
] | 21 | 2019-12-21T23:25:14.000Z | 2022-03-22T00:40:34.000Z | lib/cldr/number/rbnf.ex | elixir-cldr/cldr_numbers | ff905422eaddb66456589a34479b95c601e506f8 | [
"Apache-2.0"
] | 15 | 2019-06-14T16:29:23.000Z | 2022-03-02T07:56:33.000Z | lib/cldr/number/rbnf.ex | elixir-cldr/cldr_numbers | ff905422eaddb66456589a34479b95c601e506f8 | [
"Apache-2.0"
] | 5 | 2019-06-14T16:10:26.000Z | 2022-02-28T15:32:01.000Z | defmodule Cldr.Rbnf do
@moduledoc """
Functions to implement Rules Based Number Formatting (rbnf)
During compilation RBNF rules are extracted and generated
as function bodies by `Cldr.Rbnf.Ordinal`, `Cldr.Rbnf.Cardinal`
and `Cldr.Rbnf.NumberSystem`.
The functions in this module would not normally be of co... | 29.390511 | 98 | 0.678753 |
918338ffa42e83ebea5efc4735ac46975a5d621e | 2,623 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_guaranteed_fixed_price_terms.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_guaranteed_fixed_price_terms.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_guaranteed_fixed_price_terms.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"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... | 38.573529 | 230 | 0.760961 |
9183622b2f7e60f89efaa53115436b00151c94ad | 200 | ex | Elixir | lib/rumbl_web/views/watch_view.ex | GArmane/rumbl | 6dbc0c4515601b7fdfe2bed54ef39abfcd8bcb5e | [
"MIT"
] | 1 | 2021-05-30T20:57:51.000Z | 2021-05-30T20:57:51.000Z | lib/rumbl_web/views/watch_view.ex | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | 2 | 2021-03-09T19:04:16.000Z | 2021-05-10T16:20:10.000Z | lib/rumbl_web/views/watch_view.ex | andreyuhai/elixir-rumbl | 0acb5f0694940b4d39f09376b1dce954518e5d5b | [
"MIT"
] | 1 | 2020-07-17T14:48:52.000Z | 2020-07-17T14:48:52.000Z | defmodule RumblWeb.WatchView do
use RumblWeb, :view
def player_id(video) do
~r{^.*(?:youtu\.be/|\w+/|v=)(?<id>[^#&?]*)}
|> Regex.named_captures(video.url)
|> get_in(["id"])
end
end
| 20 | 47 | 0.575 |
9183896cb39fc689f8267b2aa5d68f8d971c94a5 | 235 | ex | Elixir | ex_ws/lib/chat/hello_handler.ex | ohr486/chat-app-proto | 95484ea9252d3399d9b09412525de13dcd17497a | [
"MIT"
] | null | null | null | ex_ws/lib/chat/hello_handler.ex | ohr486/chat-app-proto | 95484ea9252d3399d9b09412525de13dcd17497a | [
"MIT"
] | null | null | null | ex_ws/lib/chat/hello_handler.ex | ohr486/chat-app-proto | 95484ea9252d3399d9b09412525de13dcd17497a | [
"MIT"
] | null | null | null | defmodule Chat.HelloHandler do
def init(req, opts) do
headers = %{"content-type" => "text/plain"}
body = "Hello, Cowboy WebSocket!"
{:ok, resp} = :cowboy_req.reply(200, headers, body, req)
{:ok, resp, opts}
end
end
| 26.111111 | 60 | 0.629787 |
9183896d5f22de9b38a658b5cdb10572a4912c55 | 8,765 | exs | Elixir | apps/forklift/test/integration/performance/compaction_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/forklift/test/integration/performance/compaction_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/forklift/test/integration/performance/compaction_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Forklift.Performance.CompactionTest do
use ExUnit.Case
use Divo, auto_start: false
use Retry
use Properties, otp_app: :forklift
require Logger
alias SmartCity.TestDataGenerator, as: TDG
alias ExAws.S3
import SmartCity.TestHelper, only: [eventually: 3]
@moduletag :compaction
getter(:s3_... | 30.224138 | 126 | 0.694238 |
9183a08ad6608bf1fcddd49375eb594cc1641c6a | 3,486 | ex | Elixir | lib/aws/generated/dynamodb_streams.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/dynamodb_streams.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/dynamodb_streams.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.DynamoDBStreams do
@moduledoc """
Amazon DynamoDB
Amazon DynamoDB Streams provides API actions for accessing streams and
processing stream records.
To learn more about application deve... | 37.085106 | 103 | 0.733505 |
9183a2ee8ee73b8a2d1da542916e192572e24b57 | 402 | ex | Elixir | lib/mpesa_elixir/public_key/record.ex | johninvictus/mpesa_elixir | 1c4715c247ae05805cd4aae2497af5e7c2eea289 | [
"Apache-2.0"
] | 11 | 2018-04-10T15:27:54.000Z | 2020-12-04T07:48:52.000Z | lib/mpesa_elixir/public_key/record.ex | johninvictus/mpesa_elixir | 1c4715c247ae05805cd4aae2497af5e7c2eea289 | [
"Apache-2.0"
] | 1 | 2020-05-22T05:13:25.000Z | 2020-05-22T05:13:39.000Z | lib/mpesa_elixir/public_key/record.ex | johninvictus/mpesa_elixir | 1c4715c247ae05805cd4aae2497af5e7c2eea289 | [
"Apache-2.0"
] | 7 | 2018-05-09T20:31:44.000Z | 2020-11-08T15:21:27.000Z | defmodule MpesaElixir.PublicKey.Record do
require Record
import Record, only: [defrecord: 2, extract: 2]
@public_key "public_key/include/public_key.hrl"
defrecord :Certificate, extract(:Certificate, from_lib: @public_key)
defrecord :TBSCertificate, extract(:TBSCertificate, from_lib: @public_key)
defrecord... | 36.545455 | 88 | 0.793532 |
9184126b1017ca7d823f1211645fa4a913e753b7 | 2,010 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateways_scoped_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateways_scoped_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/target_vpn_gateways_scoped_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.2 | 208 | 0.755721 |
918412d5b0a8caf7cb195b74fa53dc977bfef18b | 2,319 | ex | Elixir | beam.fuzz_dist/lib/fuzz_dist/jepsen/antidote.ex | define-null/fuzz_dist | cdc085036b728c00221a592e5c8425f23ec43ee9 | [
"Apache-2.0"
] | null | null | null | beam.fuzz_dist/lib/fuzz_dist/jepsen/antidote.ex | define-null/fuzz_dist | cdc085036b728c00221a592e5c8425f23ec43ee9 | [
"Apache-2.0"
] | null | null | null | beam.fuzz_dist/lib/fuzz_dist/jepsen/antidote.ex | define-null/fuzz_dist | cdc085036b728c00221a592e5c8425f23ec43ee9 | [
"Apache-2.0"
] | null | null | null | defmodule FuzzDist.Jepsen.Antidote do
@moduledoc """
An Elixir client for AntidoteDB.
Implements operations that are generated by Jepsen during the running of a test.
- uses Erlang client
- `static: true` transactions
- docs say static transactions don't need to be closed or managed
Function names and... | 29.730769 | 98 | 0.697715 |
91844097a745524a635fe850baa90ee577ff0db7 | 1,188 | exs | Elixir | mix.exs | craig-day/linked_map | f9911137a29068f89f76b2a8ecce541e4fcd62b8 | [
"MIT"
] | null | null | null | mix.exs | craig-day/linked_map | f9911137a29068f89f76b2a8ecce541e4fcd62b8 | [
"MIT"
] | null | null | null | mix.exs | craig-day/linked_map | f9911137a29068f89f76b2a8ecce541e4fcd62b8 | [
"MIT"
] | null | null | null | defmodule LinkedMap.MixProject do
use Mix.Project
def project do
[
name: "LinkedMap",
app: :linked_map,
version: "0.2.0",
elixir: "~> 1.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
... | 21.6 | 89 | 0.590067 |
91844586c6b1b025cdc1a46b0845ff907fbffeae | 182 | exs | Elixir | test/resolve_test.exs | abetkin/paths_and_deps | 30171d15d38a9c6cac7c97ff6bcdb8d9e969b35b | [
"MIT"
] | null | null | null | test/resolve_test.exs | abetkin/paths_and_deps | 30171d15d38a9c6cac7c97ff6bcdb8d9e969b35b | [
"MIT"
] | null | null | null | test/resolve_test.exs | abetkin/paths_and_deps | 30171d15d38a9c6cac7c97ff6bcdb8d9e969b35b | [
"MIT"
] | null | null | null |
defmodule PathsTest do
use ExUnit.Case
@ctx %{scope: :party}
setup do
%{a: 2}
end
test "simplest", %{a: a} do
assert a == 1
end
end | 10.705882 | 31 | 0.483516 |
9184832b8ed1cc53e0c4cde3ef90e793755a7500 | 891 | exs | Elixir | test/auto_api/telematics_permissions_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | test/auto_api/telematics_permissions_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 5 | 2018-11-29T09:48:29.000Z | 2019-11-06T12:11:35.000Z | test/auto_api/telematics_permissions_test.exs | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# Copyright (C) 2018 High-Mobility GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is ... | 38.73913 | 70 | 0.781145 |
9184985f478b428a8d20a36015e06e04ef2866fe | 344 | exs | Elixir | priv/repo/migrations/20200522022125_add_pow_email_confirmation_to_users.exs | nickyeager/nickdotcom | e1a0f32c44da2111c9d8b22800edeb831d893b5e | [
"MIT"
] | null | null | null | priv/repo/migrations/20200522022125_add_pow_email_confirmation_to_users.exs | nickyeager/nickdotcom | e1a0f32c44da2111c9d8b22800edeb831d893b5e | [
"MIT"
] | null | null | null | priv/repo/migrations/20200522022125_add_pow_email_confirmation_to_users.exs | nickyeager/nickdotcom | e1a0f32c44da2111c9d8b22800edeb831d893b5e | [
"MIT"
] | null | null | null | defmodule Nickdotcom.Repo.Migrations.AddPowEmailConfirmationToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :email_confirmation_token, :string
add :email_confirmed_at, :utc_datetime
add :unconfirmed_email, :string
end
create unique_index(:users, [:email_confirm... | 24.571429 | 70 | 0.747093 |
9184dd9d23669d3355bcbf23a5273cacda3e5ff3 | 1,736 | ex | Elixir | lib/glimesh_web/live/user_live/followers.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | lib/glimesh_web/live/user_live/followers.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | lib/glimesh_web/live/user_live/followers.ex | Megami-Studios/glimesh.tv | 57dde3a328fabdcc3305be48ae1b82df27b83c9b | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule GlimeshWeb.UserLive.Followers do
use GlimeshWeb, :live_view
alias Glimesh.Accounts
def mount(%{"username" => username}, session, socket) do
if session["locale"], do: Gettext.put_locale(session["locale"])
case Accounts.get_by_username(username) do
%Glimesh.Accounts.User{} = streamer ->
... | 31.563636 | 94 | 0.646889 |
9184e9d6dcdbcbfed6a38f8327e54c209e2daf76 | 15,412 | ex | Elixir | kousa/lib/kousa/room.ex | jobveldhuis/dogehouse | 78afa9a62f9b243bbdb3a94ae452c08c21b6df40 | [
"MIT"
] | 2 | 2021-05-15T12:46:12.000Z | 2021-05-15T14:15:16.000Z | kousa/lib/kousa/room.ex | jobveldhuis/dogehouse | 78afa9a62f9b243bbdb3a94ae452c08c21b6df40 | [
"MIT"
] | null | null | null | kousa/lib/kousa/room.ex | jobveldhuis/dogehouse | 78afa9a62f9b243bbdb3a94ae452c08c21b6df40 | [
"MIT"
] | null | null | null | defmodule Kousa.Room do
alias Kousa.Utils.VoiceServerUtils
alias Beef.Users
alias Beef.Follows
alias Beef.Rooms
# note the following 2 module aliases are on the chopping block!
alias Beef.RoomPermissions
alias Beef.RoomBlocks
alias Onion.PubSub
alias Onion.UserSession
alias Broth.SocketHandler
de... | 27.326241 | 96 | 0.572152 |
9184edbea373ea082296350d6428bea4e5668572 | 3,389 | ex | Elixir | lib/ex_algo/tree/binary_search_tree.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | 21 | 2021-11-21T08:07:38.000Z | 2022-03-13T06:19:35.000Z | lib/ex_algo/tree/binary_search_tree.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | 3 | 2021-11-26T22:54:09.000Z | 2022-03-06T21:16:12.000Z | lib/ex_algo/tree/binary_search_tree.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | null | null | null | defmodule ExAlgo.Tree.BinarySearchTree do
@moduledoc """
Implements a binary search tree.
"""
@type key_type :: any()
@type value_type :: any()
@type key_fn :: (value_type() -> key_type())
@type leaf :: nil
@type t() :: %__MODULE__{
data: value_type(),
left: t() | leaf(),
r... | 22.150327 | 82 | 0.482443 |
918506d5488535b0f8d2b741514f573f3306abf2 | 86 | exs | Elixir | .formatter.exs | membraneframework/webrtc-server | 10603a3f85e2d197ce7cf10ccb79c5c71d57f346 | [
"Apache-2.0"
] | 10 | 2020-03-27T04:58:56.000Z | 2022-03-12T21:39:49.000Z | .formatter.exs | KalvadTech/webrtc-server | a9fbf41f83a644702946541342411f19e2806447 | [
"Apache-2.0"
] | 3 | 2021-01-25T08:47:45.000Z | 2021-02-08T12:58:42.000Z | .formatter.exs | KalvadTech/webrtc-server | a9fbf41f83a644702946541342411f19e2806447 | [
"Apache-2.0"
] | 1 | 2021-01-24T17:36:57.000Z | 2021-01-24T17:36:57.000Z | [
inputs: [
"{lib,test}/**/*.{ex,exs}",
".formatter.exs",
"*.exs"
]
]
| 10.75 | 31 | 0.383721 |
918572637a4f73f7b5520b869cde0ecccb0d050d | 110 | ex | Elixir | lib/instagram_clone_web/live/user_live/settings_sidebar_component.ex | elixirprogrammer/InstagramClonePETAL | 5710f89de32a95b0416a960a46d081e7ad4833ab | [
"MIT"
] | 69 | 2021-04-11T21:57:26.000Z | 2022-03-30T01:09:40.000Z | lib/instagram_clone_web/live/user_live/settings_sidebar_component.ex | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 1 | 2021-04-16T17:38:11.000Z | 2021-04-16T17:38:11.000Z | lib/instagram_clone_web/live/user_live/settings_sidebar_component.ex | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 4 | 2021-04-16T10:45:18.000Z | 2021-07-23T15:08:08.000Z | defmodule InstagramCloneWeb.UserLive.SettingsSidebarComponent do
use InstagramCloneWeb, :live_component
end
| 27.5 | 64 | 0.881818 |
9185c1dd965c5f691e3e7802357ec2e06585912f | 1,041 | exs | Elixir | mix.exs | mechanic-power/finance_ts | 2871d716ff1f9043896a8b4fd2705c69bf62f2f2 | [
"MIT"
] | 9 | 2020-11-21T07:01:12.000Z | 2022-01-13T19:24:10.000Z | mix.exs | mechanic-power/finance_ts | 2871d716ff1f9043896a8b4fd2705c69bf62f2f2 | [
"MIT"
] | null | null | null | mix.exs | mechanic-power/finance_ts | 2871d716ff1f9043896a8b4fd2705c69bf62f2f2 | [
"MIT"
] | 1 | 2021-08-17T02:30:41.000Z | 2021-08-17T02:30:41.000Z | defmodule FinanceTS.MixProject do
use Mix.Project
def project do
[
app: :finance_ts,
version: "0.1.0",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_... | 24.209302 | 63 | 0.556196 |
9185e81f96679fc2b9c57f627f9c3d2a886e2885 | 44 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_three_operation_parsing_test_case/StringHeredoc.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_three_operation_parsing_test_case/StringHeredoc.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_three_operation_parsing_test_case/StringHeredoc.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | """
One
""" ^^^ """
Two
"""
| 7.333333 | 11 | 0.136364 |
9185ecce31dfcb706445fb8cdc2a316419100c19 | 74 | exs | Elixir | test/views/page_view_test.exs | tjefferson08/frizzle-server | 8db3f31e4dae6583603fd2006415129f623827ba | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | tjefferson08/frizzle-server | 8db3f31e4dae6583603fd2006415129f623827ba | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | tjefferson08/frizzle-server | 8db3f31e4dae6583603fd2006415129f623827ba | [
"MIT"
] | null | null | null | defmodule Frizzle.PageViewTest do
use Frizzle.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
9185f30d9f07a4d9dc2d199c979657e08c426dd7 | 114 | ex | Elixir | lib/hls_admin/ffmpeg_server/prof_setting.ex | drbawb/hls_admin | 237df356d01b0390821e6f0aacd1ec0fe9fdef4b | [
"BSD-3-Clause"
] | 1 | 2020-12-22T08:30:37.000Z | 2020-12-22T08:30:37.000Z | lib/hls_admin/ffmpeg_server/prof_setting.ex | drbawb/hls_admin | 237df356d01b0390821e6f0aacd1ec0fe9fdef4b | [
"BSD-3-Clause"
] | 8 | 2020-10-12T18:51:41.000Z | 2021-06-16T18:48:36.000Z | lib/hls_admin/ffmpeg_server/prof_setting.ex | drbawb/hls_admin | 237df356d01b0390821e6f0aacd1ec0fe9fdef4b | [
"BSD-3-Clause"
] | null | null | null | defmodule HlsAdmin.FfmpegServer.ProfSetting do
defstruct level: nil, bitrate_audio: nil, bitrate_video: nil
end
| 28.5 | 62 | 0.824561 |
9185fd0570168df85fce68598e878bbf3dd4b0d3 | 1,050 | ex | Elixir | apps/crawler/lib/crawler/provider_behaviour.ex | gregredhead/belethor | 255925396b18ba4a6950f386abf8a9e17a7e5e7c | [
"Apache-2.0"
] | 3 | 2018-07-20T22:14:36.000Z | 2018-12-21T19:54:48.000Z | apps/crawler/lib/crawler/provider_behaviour.ex | gregredhead/belethor | 255925396b18ba4a6950f386abf8a9e17a7e5e7c | [
"Apache-2.0"
] | 36 | 2018-09-15T21:46:54.000Z | 2020-03-28T16:10:18.000Z | apps/crawler/lib/crawler/provider_behaviour.ex | gregredhead/belethor | 255925396b18ba4a6950f386abf8a9e17a7e5e7c | [
"Apache-2.0"
] | 2 | 2018-07-22T08:47:07.000Z | 2021-12-11T01:39:19.000Z | defmodule Crawler.Provider do
@moduledoc """
behaviour to implemented a provider.
`use` this module to implement the callbacks the standard way.
If you `use` this module, a `Crawler.TaskManager` is expected run as `__YOUR_MODULE__.TaskManager`
and a `Crawler.Client` should be implemented at `__YOUR_MODULE__.... | 27.631579 | 100 | 0.667619 |
91860916c533c1f0b69dd7e5ecad53940528d9b0 | 1,146 | exs | Elixir | mix.exs | maartenvanvliet/x509 | 0252fddbc99d946b8a5b10328830bfebc834752b | [
"BSD-3-Clause"
] | null | null | null | mix.exs | maartenvanvliet/x509 | 0252fddbc99d946b8a5b10328830bfebc834752b | [
"BSD-3-Clause"
] | null | null | null | mix.exs | maartenvanvliet/x509 | 0252fddbc99d946b8a5b10328830bfebc834752b | [
"BSD-3-Clause"
] | null | null | null | defmodule X509.MixProject do
use Mix.Project
@version "0.6.0"
def project do
[
app: :x509,
version: @version,
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "X509",
description: description(),
package: package(),
docs: docs(),... | 20.464286 | 82 | 0.581152 |
91862c1354cdb3c8a151dec554346ca559c327e0 | 238 | ex | Elixir | debian/checkmem.default.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | debian/checkmem.default.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | debian/checkmem.default.ex | cato-/check_mem | e1ff7f6692e2dd3af2751022402033243b505f45 | [
"BSD-2-Clause"
] | null | null | null | # Defaults for checkmem initscript
# sourced by /etc/init.d/checkmem
# installed at /etc/default/checkmem by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Additional options that are passed to the Daemon.
DAEMON_OPTS=""
| 21.636364 | 62 | 0.764706 |
91864f26cec4a5760368a1f665a49ec63a0b2726 | 899 | ex | Elixir | deps/db_connection/lib/db_connection/ownership/pool.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | deps/db_connection/lib/db_connection/ownership/pool.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/db_connection/lib/db_connection/ownership/pool.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule DBConnection.Ownership.Pool do
@moduledoc false
import Supervisor.Spec
def start_link(owner, mod, opts) do
children = [watcher(owner),
DBConnection.child_spec(mod, opts, [id: :pool]),
supervisor(DBConnection.Ownership.ProxySupervisor, [],
[id: :own... | 23.051282 | 70 | 0.637375 |
91866aeb8c94fb473f2d0e46c5110b497ed39da8 | 865 | ex | Elixir | lib/live_sup_web/live/admin/project_live/header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/live/admin/project_live/header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup_web/live/admin/project_live/header_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Admin.ProjectLive.HeaderComponent do
use LiveSupWeb, :component
def render(assigns) do
~H"""
<div class="justify-between flex flex-row space-x-4 border-b dark:border-primary-darker px-4 py-2">
<div class="flex items-center basis-4/5 flex-wrap">
<%= link "Home", class: "te... | 43.25 | 156 | 0.660116 |
918672b8ec4cc097e616133c782555bdf0f26839 | 3,473 | ex | Elixir | lib/store/ledger.ex | hlongvu/elixium_core | 9d01e0bfea44d5014f44e1417ab84c81222a914d | [
"MIT"
] | 164 | 2018-06-23T01:17:51.000Z | 2021-08-19T03:16:31.000Z | lib/store/ledger.ex | alexdovzhanyn/ultradark | 85014da4b0683ab8ec86c893b7c1146161da114a | [
"MIT"
] | 37 | 2018-06-28T18:07:27.000Z | 2019-08-22T18:43:43.000Z | lib/store/ledger.ex | alexdovzhanyn/ultradark | 85014da4b0683ab8ec86c893b7c1146161da114a | [
"MIT"
] | 26 | 2018-06-22T00:58:34.000Z | 2021-08-19T03:16:40.000Z | defmodule Elixium.Store.Ledger do
alias Elixium.Block
alias Elixium.BlockEncoder
alias Elixium.Utilities
use Elixium.Store
@moduledoc """
Provides an interface for interacting with the blockchain stored within LevelDB. This
is where blocks are stored and fetched
"""
@store_dir "chaindata"
@ets... | 24.286713 | 104 | 0.632018 |
9186910e931f1c655f41fc3dcb163a1058e94ccd | 961 | ex | Elixir | lib/core/math.ex | luismasuelli/poker-elixir | 32b80d79eed3a987531043531b4bff8bf2a1bdee | [
"MIT"
] | null | null | null | lib/core/math.ex | luismasuelli/poker-elixir | 32b80d79eed3a987531043531b4bff8bf2a1bdee | [
"MIT"
] | null | null | null | lib/core/math.ex | luismasuelli/poker-elixir | 32b80d79eed3a987531043531b4bff8bf2a1bdee | [
"MIT"
] | null | null | null | defmodule Core.Math do
@moduledoc false
def factorial(n) when is_integer(n) and n >= 0, do: factorial(n, 1)
defp factorial(0, t), do: t
defp factorial(n, t), do: factorial(n - 1, n * t)
def permutations(n, n), do: factorial(n)
def permutations(n, 0) when is_integer(n) and n >= 0, do: 1
def permutations(... | 40.041667 | 85 | 0.645161 |
9186a16f8762dd55b49cb5ac153156842bdb8e3b | 727 | ex | Elixir | lib/maxwell/error.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 130 | 2016-03-24T02:48:26.000Z | 2021-04-10T19:29:06.000Z | lib/maxwell/error.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 78 | 2016-06-28T06:33:01.000Z | 2021-12-15T01:37:54.000Z | lib/maxwell/error.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 24 | 2016-04-09T16:44:19.000Z | 2020-12-01T10:57:22.000Z | defmodule Maxwell.Error do
@moduledoc """
Exception `%Maxwell.Error{:url, :reason, :message, :status, :conn}`
### Examples
raise Maxwell.Error, {__MODULE__, reason, conn}
"""
defexception [:url, :status, :method, :reason, :message, :conn]
@spec exception({module, atom | binary, Maxwell.Conn.t()}) :... | 26.925926 | 90 | 0.62586 |
9186ca5c239c36913c14bec229840f949b8cf7c0 | 18,667 | exs | Elixir | lib/ex_unit/test/ex_unit/assertions_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/assertions_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/assertions_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule ExUnit.AssertionsTest.Value do
def tuple, do: {2, 1}
def falsy, do: false
def truthy, do: true
end
alias ExUnit.AssertionsTest.Value
defmodule ExUnit.AssertionsTest do
use ExUnit.Case, async: true
defmacrop assert_ok(arg) do
quote do
asse... | 27.736999 | 132 | 0.614989 |
91870082c7c1954963fa9be3b9af076b9531546a | 979 | ex | Elixir | lib/wi2_demonstration/participant.ex | xeejp/xee_wi2_demonstration | 969bd401ea765066078d50ccca67c897468cc136 | [
"MIT"
] | null | null | null | lib/wi2_demonstration/participant.ex | xeejp/xee_wi2_demonstration | 969bd401ea765066078d50ccca67c897468cc136 | [
"MIT"
] | null | null | null | lib/wi2_demonstration/participant.ex | xeejp/xee_wi2_demonstration | 969bd401ea765066078d50ccca67c897468cc136 | [
"MIT"
] | null | null | null | defmodule Wi2Demonstration.Participant do
alias Wi2Demonstration.Actions
# Actions
def fetch_contents(data, id) do
Actions.update_participant_contents(data, id)
end
def next_question(data, id, selected) do
data = data |> put_in([:participants, id, :sequence], selected["next"])
if selected["next"... | 27.194444 | 82 | 0.66905 |
91870ac5d438ba3d4d4de9782dee72fcaaf98f9d | 1,557 | ex | Elixir | clients/iam/lib/google_api/iam/v1/model/undelete_service_account_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/iam/lib/google_api/iam/v1/model/undelete_service_account_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/iam/lib/google_api/iam/v1/model/undelete_service_account_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 ... | 33.12766 | 138 | 0.754014 |
918710922b8626700f333b7308ba0df314bc9cc5 | 565 | exs | Elixir | Chapter02/apps/elixir_drip_web/test/elixir_drip_web/views/error_view_test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 28 | 2018-08-09T05:05:29.000Z | 2022-03-14T06:59:07.000Z | Chapter02/apps/elixir_drip_web/test/elixir_drip_web/views/error_view_test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 1 | 2019-02-11T09:11:33.000Z | 2019-05-06T06:40:19.000Z | Chapter02/apps/elixir_drip_web/test/elixir_drip_web/views/error_view_test.exs | sthagen/Mastering-Elixir | 1b52ee79afe6b2ae80767a5e55c2be51df3c4c1d | [
"MIT"
] | 8 | 2018-08-09T14:53:02.000Z | 2020-12-14T19:31:21.000Z | defmodule ElixirDripWeb.ErrorViewTest do
use ElixirDripWeb.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(ElixirDripWeb.ErrorView, "404.html", []) == "Page not found"
end
test "render 500.ht... | 29.736842 | 95 | 0.732743 |
918720369725acb89dcab00f2c457142ffe970cc | 17,232 | exs | Elixir | test/scenic/scene_test.exs | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | test/scenic/scene_test.exs | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | test/scenic/scene_test.exs | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | #
# re-re-Created by Boyd Multerer May 2018.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
#
defmodule Scenic.SceneTest do
use ExUnit.Case, async: false
doctest Scenic.Scene
alias Scenic.Scene
alias Scenic.Graph
alias Scenic.Primitive.SceneRef
alias Scenic.ViewPort.Tables
import Scenic.P... | 31.16094 | 97 | 0.621112 |
9187270c5473b42f780ff798e106bb61f487959b | 143 | ex | Elixir | lib/binary_ws_web/controllers/page_controller.ex | snewcomer/binary_ws | 67ed37db41a59022021a16f23c7020c50520766a | [
"MIT"
] | 4 | 2020-03-05T07:12:10.000Z | 2021-08-14T20:36:04.000Z | lib/binary_ws_web/controllers/page_controller.ex | snewcomer/binary_ws | 67ed37db41a59022021a16f23c7020c50520766a | [
"MIT"
] | null | null | null | lib/binary_ws_web/controllers/page_controller.ex | snewcomer/binary_ws | 67ed37db41a59022021a16f23c7020c50520766a | [
"MIT"
] | 5 | 2020-02-28T08:44:48.000Z | 2021-11-17T16:03:51.000Z | defmodule BinaryWsWeb.PageController do
use BinaryWsWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.875 | 39 | 0.741259 |
91872e8002cd4e61b093aaf2fd32fe8acdfa644b | 10,076 | ex | Elixir | lib/phoenix/channel/server.ex | kenta-aktsk/phoenix | e3c23a364af4f2283e2498fdb47c60161f262a1f | [
"MIT"
] | 1 | 2021-03-14T17:50:24.000Z | 2021-03-14T17:50:24.000Z | lib/phoenix/channel/server.ex | ogamw/phoenix | e3c23a364af4f2283e2498fdb47c60161f262a1f | [
"MIT"
] | null | null | null | lib/phoenix/channel/server.ex | ogamw/phoenix | e3c23a364af4f2283e2498fdb47c60161f262a1f | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.000Z | defmodule Phoenix.Channel.Server do
use GenServer
require Logger
alias Phoenix.PubSub
alias Phoenix.Socket
alias Phoenix.Socket.Broadcast
alias Phoenix.Socket.Message
alias Phoenix.Socket.Reply
@moduledoc false
## Transport API
@doc """
Joins the channel in socket with authentication payload.
... | 27.306233 | 124 | 0.619293 |
91877121f6267ec2e72a5270af16b0425e874f1f | 13,817 | exs | Elixir | apps/omg_watcher/test/integration/in_flight_exit_test.exs | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/integration/in_flight_exit_test.exs | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/integration/in_flight_exit_test.exs | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # Copyright 2018 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 writi... | 38.487465 | 120 | 0.664182 |
91877401f8e8b4bd015a0a46efa11ac751578b4a | 2,657 | ex | Elixir | farmbot_os/platform/target/configurator/captive_portal.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_os/platform/target/configurator/captive_portal.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_os/platform/target/configurator/captive_portal.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Platform.Target.Configurator.CaptivePortal do
@moduledoc """
Handles turning Farmbot's internal network representation into
either a VintageNet.Technology.Ethernet or VintageNet.Technology.WiFi
RawConfig.
"""
@behaviour VintageNet.Technology
require FarmbotCore.Logger
@impl VintageN... | 27.677083 | 95 | 0.659014 |
918785edc9bb8d33231870762923322d87ba429f | 989 | exs | Elixir | phone-number/phone_number_test.exs | henrik/xelixir | 10ae9265b90dc8042a5fd1f2626d7e0648f4cb29 | [
"MIT"
] | null | null | null | phone-number/phone_number_test.exs | henrik/xelixir | 10ae9265b90dc8042a5fd1f2626d7e0648f4cb29 | [
"MIT"
] | null | null | null | phone-number/phone_number_test.exs | henrik/xelixir | 10ae9265b90dc8042a5fd1f2626d7e0648f4cb29 | [
"MIT"
] | null | null | null | if System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("example.exs")
else
Code.load_file("phone_number.exs")
end
ExUnit.start
defmodule PhoneTest do
use ExUnit.Case, async: true
test "cleans number" do
assert Phone.number("(123) 456-7890") == "1234567890"
end
test "cleans number with dots" d... | 22.477273 | 60 | 0.674419 |
9187b9b3ab31b89f1d7fee0cf3614a7ee8fa3388 | 2,423 | ex | Elixir | apps/admin_app/lib/admin_app_web/controllers/option_type_controller.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | 1 | 2018-12-01T18:13:55.000Z | 2018-12-01T18:13:55.000Z | apps/admin_app/lib/admin_app_web/controllers/option_type_controller.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | apps/admin_app/lib/admin_app_web/controllers/option_type_controller.ex | saurabharch/avia | 74a82a95cf8bfe8143d1fce8136a3bb7ffc9467c | [
"MIT"
] | null | null | null | defmodule AdminAppWeb.OptionTypeController do
use AdminAppWeb, :controller
alias Snitch.Data.Model.OptionType, as: OTModel
alias Snitch.Data.Schema.OptionType, as: OTSchema
def index(conn, _params) do
option_types = OTModel.get_all()
render(conn, "index.html", %{option_types: option_types})
end
de... | 31.064103 | 81 | 0.600495 |
9187bc9591b5465fc79eb721ae59eb59ba1e2574 | 382 | ex | Elixir | lib/guardian_serializer.ex | synion/tilex | ea29646830efaa89fc47fad347f6e495ff7ce48b | [
"MIT"
] | 1 | 2018-11-20T15:23:59.000Z | 2018-11-20T15:23:59.000Z | lib/guardian_serializer.ex | synion/tilex | ea29646830efaa89fc47fad347f6e495ff7ce48b | [
"MIT"
] | 14 | 2018-10-29T09:43:13.000Z | 2019-01-18T11:06:08.000Z | lib/guardian_serializer.ex | synion/tilex | ea29646830efaa89fc47fad347f6e495ff7ce48b | [
"MIT"
] | 1 | 2019-12-02T08:59:45.000Z | 2019-12-02T08:59:45.000Z | defmodule Tilex.GuardianSerializer do
@behaviour Guardian.Serializer
alias Tilex.{Developer, Repo}
def for_token(%Developer{} = developer), do: {:ok, "Developer:#{developer.id}"}
def for_token(_), do: {:error, "Unknown resource type"}
def from_token("Developer:" <> id), do: {:ok, Repo.get(Developer, id)}
... | 31.833333 | 81 | 0.696335 |
9187d4f3838906fcb567af2ef6c83311c60aad87 | 1,043 | ex | Elixir | apps/snitch_api/lib/snitch_api/application.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | 1 | 2021-04-08T22:29:19.000Z | 2021-04-08T22:29:19.000Z | apps/snitch_api/lib/snitch_api/application.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | apps/snitch_api/lib/snitch_api/application.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | defmodule SnitchApi.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the ... | 33.645161 | 87 | 0.722915 |
9187eb4a5f72a0b129d105ad290a45d13d63ae7a | 688 | ex | Elixir | test/support/common_tests.ex | simplifi/pay_day_loan | e90e8ee98a302e1ddccada2c51e9eedec3bf1868 | [
"MIT"
] | 4 | 2016-08-19T14:13:33.000Z | 2020-01-20T18:44:45.000Z | test/support/common_tests.ex | simplifi/pay_day_loan | e90e8ee98a302e1ddccada2c51e9eedec3bf1868 | [
"MIT"
] | 2 | 2017-03-17T20:01:33.000Z | 2017-04-29T06:02:57.000Z | test/support/common_tests.ex | simplifi/pay_day_loan | e90e8ee98a302e1ddccada2c51e9eedec3bf1868 | [
"MIT"
] | 1 | 2022-02-21T10:06:49.000Z | 2022-02-21T10:06:49.000Z | defmodule PayDayLoan.Support.CommonTests do
alias PayDayLoanTest.Support.LoadHistory
defmacro __using__(opts \\ []) do
cache = opts[:cache]
quote location: :keep do
import PayDayLoanTest.Support, only: [wait_for: 1]
setup do
LoadHistory.start()
wait_for(fn -> Process.whereis(... | 21.5 | 76 | 0.587209 |
91885e7b174d6582b494fe9ff2c39748767d379e | 489 | ex | Elixir | lib/display/progress_bar.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | lib/display/progress_bar.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | lib/display/progress_bar.ex | eugenioLopezRamos/elixir-koans-solutions | ac183528275c1b271e66c4cd3a644784b6965335 | [
"MIT"
] | null | null | null | defmodule Display.ProgressBar do
@progress_bar_length 30
def progress_bar(%{current: current, total: total}) do
arrow = caluculate_progress(current, total) |> build_arrow
"|" <> String.ljust(arrow, @progress_bar_length) <> "| #{current} of #{total}"
end
defp caluculate_progress(current, total) do
... | 24.45 | 82 | 0.685072 |
91885f7f6541568fd2a51b3af92710c7b1339ee1 | 2,142 | exs | Elixir | test/integration/discovery_api/organization_update_test.exs | JakeTheGingScheuer/discovery_api | b92dd614ced354913d0664e47b316723e192185d | [
"Apache-2.0"
] | null | null | null | test/integration/discovery_api/organization_update_test.exs | JakeTheGingScheuer/discovery_api | b92dd614ced354913d0664e47b316723e192185d | [
"Apache-2.0"
] | null | null | null | test/integration/discovery_api/organization_update_test.exs | JakeTheGingScheuer/discovery_api | b92dd614ced354913d0664e47b316723e192185d | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.OrganizationUpdateTest do
use ExUnit.Case
use Divo
use DiscoveryApi.DataCase
import SmartCity.TestHelper
import SmartCity.Event, only: [organization_update: 0]
alias DiscoveryApi.TestDataGenerator, as: TDG
alias DiscoveryApi.Test.Helper
setup_all do
Helper.wait_for_brook_to_b... | 39.666667 | 100 | 0.766573 |
9188641bc8fa87c74fde3e5ffe4fb03337f0a665 | 8,345 | ex | Elixir | lib/elixir/lib/set.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/set.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/set.ex | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | null | null | null | defmodule Set do
@moduledoc %S"""
This module specifies the Set API expected to be
implemented by different representations.
It also provides functions that redirect to the
underlying Set, allowing a developer to work with
different Set implementations using one API.
To create a new set, use the `new` f... | 24.258721 | 83 | 0.610425 |
9188668ac7e3d850860265fb4807537529d08c93 | 1,122 | ex | Elixir | clients/workflows/lib/google_api/workflows/v1beta/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/workflows/lib/google_api/workflows/v1beta/connection.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/workflows/lib/google_api/workflows/v1beta/connection.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... | 34 | 74 | 0.738859 |
9188ee0dc3ddaa9a45c7e8fc056334d532b6cdae | 2,583 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/model/usage_report.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/reports_v1/model/usage_report.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/reports_v1/model/usage_report.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.779661 | 333 | 0.718157 |
91890d9f72e7aa1006cd55302e6585528861e632 | 2,768 | ex | Elixir | test/support/fixtures/series_fixtures.ex | midarrlabs/midarr-server | f12c6347e41a96517bbb5ed1ad12b65d10b8d30a | [
"MIT"
] | 538 | 2022-02-02T21:46:52.000Z | 2022-03-29T20:50:34.000Z | test/support/fixtures/series_fixtures.ex | midarrlabs/midarr-server | f12c6347e41a96517bbb5ed1ad12b65d10b8d30a | [
"MIT"
] | 48 | 2022-02-03T11:46:09.000Z | 2022-03-31T04:44:53.000Z | test/support/fixtures/series_fixtures.ex | midarrlabs/midarr-server | f12c6347e41a96517bbb5ed1ad12b65d10b8d30a | [
"MIT"
] | 15 | 2022-02-03T05:55:14.000Z | 2022-02-28T11:09:03.000Z | defmodule MediaServer.SeriesFixtures do
def get_url(url) do
"#{Application.get_env(:media_server, :series_base_url)}/api/v3/#{url}?apikey=#{Application.get_env(:media_server, :series_api_key)}"
end
def add_series_root() do
HTTPoison.post(get_url("rootFolder"), '{"path":"/shows/"}')
end
def add_serie... | 65.904762 | 1,766 | 0.746749 |
918913ece95d94a86549fc90e76e74178f8fb0a0 | 2,446 | exs | Elixir | test/schemas/server/limits_test.exs | Kintull/elidactyl | 9a051ed511ed92fa7578038784baa73288f1312b | [
"MIT"
] | 6 | 2020-04-28T21:38:40.000Z | 2022-02-13T01:04:10.000Z | test/schemas/server/limits_test.exs | Kintull/elidactyl | 9a051ed511ed92fa7578038784baa73288f1312b | [
"MIT"
] | 1 | 2021-03-16T10:39:32.000Z | 2021-03-16T10:39:32.000Z | test/schemas/server/limits_test.exs | Kintull/elidactyl | 9a051ed511ed92fa7578038784baa73288f1312b | [
"MIT"
] | null | null | null | defmodule Elidactyl.Schemas.Server.LimitsTest do
use ExUnit.Case
use Elidactyl.ChangesetCase
alias Elidactyl.Schemas.Server.Limits
import Limits
@valid %{
memory: 512,
swap: 0,
disk: 200,
io: 500,
cpu: 0,
}
def build_changeset(params \\ %{}) do
changeset(%Limits{}, Map.merge(@va... | 33.972222 | 75 | 0.622649 |
918915e137594db0e71552d19085ba6c95144ed2 | 2,002 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/hmac_keys_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/storage/lib/google_api/storage/v1/model/hmac_keys_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/storage/lib/google_api/storage/v1/model/hmac_keys_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.773585 | 205 | 0.721778 |
918923dabf0b7849a685058a22b00b6dd9c55fd5 | 2,015 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/rule.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/rule.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/rule.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.018868 | 224 | 0.720596 |
918925a55f3f3661507d0e804cfa244f33afee46 | 20,718 | ex | Elixir | lib/cldr/backend/cldr.ex | szTheory/cldr | 30e67d2e5ff13a61c29586a7cfad79995b070e1a | [
"Apache-2.0"
] | null | null | null | lib/cldr/backend/cldr.ex | szTheory/cldr | 30e67d2e5ff13a61c29586a7cfad79995b070e1a | [
"Apache-2.0"
] | null | null | null | lib/cldr/backend/cldr.ex | szTheory/cldr | 30e67d2e5ff13a61c29586a7cfad79995b070e1a | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Backend do
@moduledoc false
def define_backend_functions(config) do
backend = config.backend
quote location: :keep, bind_quoted: [config: Macro.escape(config), backend: backend] do
@doc """
Returns a list of the known locale names.
Known locales are those locales which
... | 31.108108 | 109 | 0.607491 |
918945b808916b61c13ea71c92021a9fb3d57077 | 1,040 | exs | Elixir | mix.exs | alejandrodnm/nine_digits_server | 5f3bf3b25fb6af8dae60be916441f057d6aa7f8a | [
"MIT"
] | null | null | null | mix.exs | alejandrodnm/nine_digits_server | 5f3bf3b25fb6af8dae60be916441f057d6aa7f8a | [
"MIT"
] | null | null | null | mix.exs | alejandrodnm/nine_digits_server | 5f3bf3b25fb6af8dae60be916441f057d6aa7f8a | [
"MIT"
] | null | null | null | defmodule NineDigits.MixProject do
use Mix.Project
def project do
[
app: :nine_digits,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :tes... | 23.111111 | 59 | 0.536538 |
918973b57cab0ad814f7d501b4087acfd082fe15 | 670 | exs | Elixir | elixir/test/echo_server_test.exs | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | elixir/test/echo_server_test.exs | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | elixir/test/echo_server_test.exs | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | defmodule EchoServerTest do
use ExUnit.Case
test "clients closed on echo server stop" do
{:ok, pid} = EchoServer.start_link()
opts = [:binary, packet: :raw, active: false]
{ip, port} = EchoServer.endpoint(pid)
{:ok, client} = :gen_tcp.connect(ip, port, opts)
:ok = EchoServer.stop(pid)
{:err... | 35.263158 | 62 | 0.641791 |
9189a4f11df7062b4d87a05a67cd4204dc1688e5 | 169 | exs | Elixir | ex_cubic_ods_ingestion/test/test_helper.exs | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | null | null | null | ex_cubic_ods_ingestion/test/test_helper.exs | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | 2 | 2022-03-10T22:29:35.000Z | 2022-03-18T19:52:27.000Z | ex_cubic_ods_ingestion/test/test_helper.exs | paulswartz/data_platform | 0d8a7d6a75026a68d0fa49777892e9edcbdaa71f | [
"MIT"
] | null | null | null | ExUnit.start()
# checkouts default to manual, `use ExCubicOdsIngestion.DataCase` for shared checkouts
Ecto.Adapters.SQL.Sandbox.mode(ExCubicOdsIngestion.Repo, :manual)
| 33.8 | 86 | 0.816568 |
9189a94a86275c5aed48eaba3c2fc64287095264 | 1,342 | ex | Elixir | lib/mdns_lite/client.ex | amclain/mdns_lite | a09a23561cf5697f0dd80497d5508ffd4685ecb8 | [
"Apache-2.0"
] | null | null | null | lib/mdns_lite/client.ex | amclain/mdns_lite | a09a23561cf5697f0dd80497d5508ffd4685ecb8 | [
"Apache-2.0"
] | 13 | 2021-11-18T21:26:11.000Z | 2022-03-23T22:03:37.000Z | lib/mdns_lite/client.ex | amclain/mdns_lite | a09a23561cf5697f0dd80497d5508ffd4685ecb8 | [
"Apache-2.0"
] | null | null | null | defmodule MdnsLite.Client do
@moduledoc false
import MdnsLite.DNS
alias MdnsLite.DNS
@doc """
Helper for creating an A-record query
"""
@spec query_a(String.t()) :: DNS.dns_query()
def query_a(hostname) do
dns_query(class: :in, type: :a, domain: to_charlist(hostname))
end
@doc """
Helper fo... | 28.553191 | 69 | 0.654247 |
9189a9812cefd386e4fc08976039a43348a46ba7 | 69,250 | ex | Elixir | lib/graph.ex | tinfoil/libgraph | 1b8fb6c2d29239af9058c487bc5d6298d8bb07ad | [
"MIT"
] | null | null | null | lib/graph.ex | tinfoil/libgraph | 1b8fb6c2d29239af9058c487bc5d6298d8bb07ad | [
"MIT"
] | null | null | null | lib/graph.ex | tinfoil/libgraph | 1b8fb6c2d29239af9058c487bc5d6298d8bb07ad | [
"MIT"
] | null | null | null | defmodule Graph do
@moduledoc """
This module defines a graph data structure, which supports directed and undirected graphs, in both acyclic and cyclic forms.
It also defines the API for creating, manipulating, and querying that structure.
As far as memory usage is concerned, `Graph` should be fairly compact i... | 33.197507 | 128 | 0.58956 |
9189c9212c340f9530f71acd05a223f19d04555b | 996 | exs | Elixir | config/config.exs | jordyvanvorselen/chewie-backend | b382ee0726f54d8ae45f2b41f43e38469cecc326 | [
"MIT"
] | null | null | null | config/config.exs | jordyvanvorselen/chewie-backend | b382ee0726f54d8ae45f2b41f43e38469cecc326 | [
"MIT"
] | null | null | null | config/config.exs | jordyvanvorselen/chewie-backend | b382ee0726f54d8ae45f2b41f43e38469cecc326 | [
"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.
# General application configuration
use Mix.Config
config :chewie,
ecto_repos: [Chewie.Repo]
# C... | 32.129032 | 86 | 0.769076 |
9189dbf5dd84951edd578f336035a3698921e541 | 6,273 | ex | Elixir | deps/postgrex/lib/postgrex/query.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/query.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/query.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Postgrex.Query do
@moduledoc """
Query struct returned from a successfully prepared query. Its fields are:
* `name` - The name of the prepared statement;
* `statement` - The prepared statement;
* `param_info` - List of oids, type info and extension for each parameter;
* `param_formats` - ... | 35.440678 | 113 | 0.639885 |
918a07d56bb27a017973e5d883b7444565e8a38c | 671 | ex | Elixir | apps/ewallet/lib/ewallet/cli.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet/lib/ewallet/cli.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/cli.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWallet.CLI do
@moduledoc """
Helper module for working with the command line interface.
"""
import IO
import IO.ANSI
alias IO.ANSI.Docs
def info(message), do: [:normal, message] |> format |> puts
def success(message), do: [:green, message] |> format |> puts
def warn(message), do: [:yell... | 23.137931 | 69 | 0.660209 |
918a1217d6ded965f2e869f3251bdf6277557193 | 1,127 | exs | Elixir | test/http/encoder_test.exs | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | 1 | 2021-10-05T02:22:22.000Z | 2021-10-05T02:22:22.000Z | test/http/encoder_test.exs | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | null | null | null | test/http/encoder_test.exs | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | null | null | null | defmodule Flux.HTTP.EncoderTest do
use ExUnit.Case
alias Flux.HTTP.Encoder
describe "which_coding/1" do
test "picks the preferred coding" do
assert Encoder.which_coding(%{"identity" => 0.5, "gzip" => 1.0}) == {:ok, "gzip"}
assert Encoder.which_coding(%{"gzip" => 0.5, "identity" => 0.9, "*" => 1.... | 29.657895 | 98 | 0.5874 |
918a148c5cd07185992729fcd8cd212462ac0ad2 | 2,758 | exs | Elixir | test/tutorial/range_test.exs | ananthakumaran/fdb | 5fd4ffff505d38fa843b7ef2e38e25fb932db125 | [
"MIT"
] | 40 | 2018-06-12T17:38:51.000Z | 2022-03-31T05:16:14.000Z | test/tutorial/range_test.exs | ananthakumaran/fdb | 5fd4ffff505d38fa843b7ef2e38e25fb932db125 | [
"MIT"
] | 15 | 2018-06-19T00:56:37.000Z | 2022-01-30T04:33:25.000Z | test/tutorial/range_test.exs | ananthakumaran/fdb | 5fd4ffff505d38fa843b7ef2e38e25fb932db125 | [
"MIT"
] | 6 | 2018-08-23T19:30:50.000Z | 2021-11-06T14:44:32.000Z | defmodule FDB.Tutorial.RangeTest do
use ExUnit.Case, async: false
alias FDB.{Transaction, Database, KeySelector, KeySelectorRange}
alias FDB.Coder.{Integer, Tuple, ByteString, Subspace}
alias FDB.Directory
use Timex
import TestUtils
setup do
flushdb()
end
test "range" do
db = Database.create... | 22.422764 | 77 | 0.572154 |
918a40c2b44b9e7a8f27e3c825c4e9aa6b6d683c | 6,719 | ex | Elixir | lib/earmark/options.ex | feld/earmark | 149a174e8955de2c6833d4497e5d445dceea63dc | [
"Apache-1.1"
] | null | null | null | lib/earmark/options.ex | feld/earmark | 149a174e8955de2c6833d4497e5d445dceea63dc | [
"Apache-1.1"
] | null | null | null | lib/earmark/options.ex | feld/earmark | 149a174e8955de2c6833d4497e5d445dceea63dc | [
"Apache-1.1"
] | null | null | null | defmodule Earmark.Options do
@moduledoc """
This is a superset of the options that need to be passed into `EarmarkParser.as_ast/2`
The following options are proper to `Earmark` only and therefore explained in detail
- `compact_output`: boolean indicating to avoid indentation and minimize whitespace
- `eex`... | 34.45641 | 146 | 0.660366 |
918a451ce9c87ee88913abe443d905f37b477366 | 2,633 | ex | Elixir | lib/2016/20.ex | segfaultvicta/advent-ex | a300e2659858b45b545773a0f2ff24f00453d35f | [
"MIT"
] | null | null | null | lib/2016/20.ex | segfaultvicta/advent-ex | a300e2659858b45b545773a0f2ff24f00453d35f | [
"MIT"
] | null | null | null | lib/2016/20.ex | segfaultvicta/advent-ex | a300e2659858b45b545773a0f2ff24f00453d35f | [
"MIT"
] | null | null | null | defmodule Advent.Sixteen.Twenty do
alias Advent.Helpers.Utility, as: U
use Timing
@input './input/2016/20'
def a do
{elapsed, result} = time do
blacklist = File.stream!(@input)
|> Enum.reduce([], fn(line, blacklist) ->
[String.trim(line) |> String.split("-") |> Enum.map(&String.to_inte... | 38.15942 | 118 | 0.642613 |
918a48f8fd412f160f7223062629e9aa31f692c8 | 1,945 | ex | Elixir | lib/brando_news/forms/post_form.ex | twined/brando_news | 401e27e85fbcbf095bc4937b060e37e1eb2a7a8b | [
"MIT"
] | 1 | 2020-01-13T23:44:10.000Z | 2020-01-13T23:44:10.000Z | lib/brando_news/forms/post_form.ex | twined/brando_news | 401e27e85fbcbf095bc4937b060e37e1eb2a7a8b | [
"MIT"
] | 5 | 2016-05-04T08:50:53.000Z | 2018-04-23T13:51:23.000Z | lib/brando_news/forms/post_form.ex | twined/brando_news | 401e27e85fbcbf095bc4937b060e37e1eb2a7a8b | [
"MIT"
] | null | null | null | defmodule Brando.PostForm do
@moduledoc """
A form for the Post model. See the `Brando.Form` module for more
documentation
"""
use Brando.Form
alias Brando.Post
import Brando.News.Gettext
@doc false
def get_language_choices() do
Brando.config(:languages)
end
@doc false
def get_status_choi... | 28.602941 | 78 | 0.641645 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.