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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ee4775c31fc2c899239d524523b12a3e30081cc | 293 | ex | Elixir | lib/requestbox_web/resolvers/sessions.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 18 | 2015-11-18T09:52:34.000Z | 2021-04-27T19:38:08.000Z | lib/requestbox_web/resolvers/sessions.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 3 | 2017-01-11T18:55:39.000Z | 2021-06-15T05:46:34.000Z | lib/requestbox_web/resolvers/sessions.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 7 | 2016-08-17T10:24:20.000Z | 2020-07-10T13:00:36.000Z | defmodule RequestboxWeb.Resolvers.Sessions do
use Requestbox.Web, :controller
alias Requestbox.Session
def find_session(%{id: id}, _) do
case Session.find_session(id) do
nil -> {:error, "Request Session not found for #{id}"}
session -> {:ok, session}
end
end
end
| 22.538462 | 60 | 0.675768 |
9ee4b5ec8c1fdf64508102508a2be34ffeff60d4 | 346 | ex | Elixir | lib/battleships/gamelist_supervisor.ex | alexander-lazarov/battleships | e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707 | [
"MIT"
] | null | null | null | lib/battleships/gamelist_supervisor.ex | alexander-lazarov/battleships | e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707 | [
"MIT"
] | 2 | 2020-07-17T13:59:03.000Z | 2021-05-09T20:35:32.000Z | lib/battleships/gamelist_supervisor.ex | alexander-lazarov/battleships | e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707 | [
"MIT"
] | null | null | null | defmodule Battheships.GamelistSupervisor do
use Supervisor
def init(_init_arg) do
children = [
Battleships.GamelistServer,
Battleships.GamesSupervisor
]
Supervisor.init(children, strategy: :one_for_all)
end
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, na... | 20.352941 | 65 | 0.736994 |
9ee4d01d23624df487c0b24486ace5676a8496af | 1,616 | exs | Elixir | mix.exs | hotpyn/context-demo | 304c767be93f8dec75ef8ec97d13e5e90352a47d | [
"MIT"
] | null | null | null | mix.exs | hotpyn/context-demo | 304c767be93f8dec75ef8ec97d13e5e90352a47d | [
"MIT"
] | null | null | null | mix.exs | hotpyn/context-demo | 304c767be93f8dec75ef8ec97d13e5e90352a47d | [
"MIT"
] | null | null | null | defmodule Context.Mixfile do
use Mix.Project
def project do
[
app: :context,
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.064516 | 79 | 0.581064 |
9ee4ea79fa53b2021549440de720b5374af8e550 | 226 | exs | Elixir | apps/data/config/dev.exs | elixirschool/extracurricular | eb8b725fa49ca91b1c6b7e610a8522bc81a80de1 | [
"MIT"
] | 48 | 2017-08-21T02:08:16.000Z | 2022-01-05T14:02:56.000Z | apps/data/config/dev.exs | elixirschool/extracurricular | eb8b725fa49ca91b1c6b7e610a8522bc81a80de1 | [
"MIT"
] | 68 | 2017-08-21T02:17:32.000Z | 2017-11-09T15:56:27.000Z | apps/data/config/dev.exs | elixirschool/extracurricular | eb8b725fa49ca91b1c6b7e610a8522bc81a80de1 | [
"MIT"
] | 26 | 2017-08-21T04:28:22.000Z | 2018-12-09T14:20:29.000Z | use Mix.Config
# Configure your database
config :data, Data.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "extracurricular_dev",
hostname: "localhost",
pool_size: 10
| 20.545455 | 34 | 0.730088 |
9ee50a287712d1ace2f1423dca1aff6155d2de20 | 3,426 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/report_response.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/report_response.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_control/lib/google_api/service_control/v1/model/report_response.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 60.105263 | 880 | 0.754524 |
9ee50aca6ba4d0d747c29af3a2149e8150fe0262 | 733 | ex | Elixir | lib/live_sup_web/controllers/project_controller.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/controllers/project_controller.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/controllers/project_controller.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.ProjectController do
use LiveSupWeb, :controller
alias LiveSup.Core.Projects
alias LiveSup.Policies.ProjectPolicy
def index(conn, _params) do
current_user = conn.assigns.current_user
projects = current_user |> Projects.by_user()
render(conn, "index.html",
current_user: c... | 26.178571 | 80 | 0.683492 |
9ee515f9dfb4e58ac50ea57b19931c63df8616e3 | 620 | ex | Elixir | Microsoft.Azure.Management.Preview.Subscription/lib/microsoft/azure/management/preview/subscription/model/ad_principal.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.Preview.Subscription/lib/microsoft/azure/management/preview/subscription/model/ad_principal.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Subscription/lib/microsoft/azure/management/preview/subscription/model/ad_principal.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.Preview.Subscription.Model.AdPrincipal do
@moduledoc """
Active Directory Principal for subscription creation deleg... | 23.846154 | 97 | 0.740323 |
9ee537b4578618f330f250a594e25de21b53c436 | 2,238 | exs | Elixir | mix.exs | appcues/elixometer | 1f95425d8e1df02edd0b267c57c6d579d45c4c8d | [
"Apache-2.0"
] | null | null | null | mix.exs | appcues/elixometer | 1f95425d8e1df02edd0b267c57c6d579d45c4c8d | [
"Apache-2.0"
] | null | null | null | mix.exs | appcues/elixometer | 1f95425d8e1df02edd0b267c57c6d579d45c4c8d | [
"Apache-2.0"
] | null | null | null | defmodule Elixometer.Mixfile do
use Mix.Project
@description """
Elixometer is a light wrapper around exometer that defines and
subscribes metrics automatically to the configured reporter.
"""
@project_url "https://github.com/pinterest/elixometer"
def project do
[
app: :elixometer,
vers... | 24.326087 | 85 | 0.578195 |
9ee5478edb48de8d879bb46a97573d8cbb534101 | 12,553 | ex | Elixir | lib/set/parser.ex | josevalim/unicode_set | da3f4dcf6553e5c7e364461a76ad6c4de1e20c93 | [
"Apache-2.0"
] | 1 | 2022-02-27T22:57:18.000Z | 2022-02-27T22:57:18.000Z | lib/set/parser.ex | josevalim/unicode_set | da3f4dcf6553e5c7e364461a76ad6c4de1e20c93 | [
"Apache-2.0"
] | null | null | null | lib/set/parser.ex | josevalim/unicode_set | da3f4dcf6553e5c7e364461a76ad6c4de1e20c93 | [
"Apache-2.0"
] | null | null | null | defmodule Unicode.Set.Parser do
@moduledoc false
import NimbleParsec
import Unicode.Set.Property
@doc false
defguard is_hex_digit(c) when c in ?0..?9 or c in ?a..?z or c in ?A..?Z
@doc false
def unicode_set do
choice([
property(),
empty_set(),
basic_set()
])
end
@doc fals... | 26.152083 | 90 | 0.592687 |
9ee54cec6ef07b847f5483c86ce76940ef39a296 | 1,786 | ex | Elixir | clients/games/lib/google_api/games/v1/model/category.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games/lib/google_api/games/v1/model/category.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/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 ... | 33.698113 | 160 | 0.712766 |
9ee584a0552ac13a0d5b8d9a4fc3d6b1a74b7126 | 961 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/request_builder.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/request_builder.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/request_builder.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 36.961538 | 77 | 0.763788 |
9ee5856094ea3147c1283b7e39857fff2c39a7ef | 14,590 | exs | Elixir | test/validation_checks_test.exs | kor-and-m/exop | 774d14a5c680b98481b333d75d8e2918aa2a9341 | [
"MIT"
] | null | null | null | test/validation_checks_test.exs | kor-and-m/exop | 774d14a5c680b98481b333d75d8e2918aa2a9341 | [
"MIT"
] | null | null | null | test/validation_checks_test.exs | kor-and-m/exop | 774d14a5c680b98481b333d75d8e2918aa2a9341 | [
"MIT"
] | null | null | null | defmodule ValidationChecksTest do
use ExUnit.Case, async: false
doctest Exop.ValidationChecks
import Exop.ValidationChecks
defmodule TestStruct do
defstruct [:qwerty]
end
defmodule TestStruct2 do
defstruct [:qwerty]
end
test "get_check_item/2: returns value by key either from Keyword or Map... | 43.422619 | 124 | 0.586361 |
9ee59b6edabf8a93866678ceda6d48e83f3c94d9 | 379 | exs | Elixir | priv/repo/seeds.exs | normanpatrick/simple-nested-resources | ff93b20d55cc621830942ff7806dec0ded42997f | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | normanpatrick/simple-nested-resources | ff93b20d55cc621830942ff7806dec0ded42997f | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | normanpatrick/simple-nested-resources | ff93b20d55cc621830942ff7806dec0ded42997f | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# SimpleNestedResources.Repo.insert!(%SimpleNestedResources.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update... | 31.583333 | 77 | 0.728232 |
9ee61d8c091f86fee3cc2dd347e006ac19369dd8 | 2,665 | ex | Elixir | apps/eigr_functions/lib/functions/supervisor.ex | sleipnir/permastate-elixir | 43cda3a186819c9cfd3ce993907f24251c9ef42b | [
"Apache-2.0"
] | 2 | 2021-07-28T23:02:24.000Z | 2021-07-29T00:34:42.000Z | apps/eigr_functions/lib/functions/supervisor.ex | sleipnir/permastate-elixir | 43cda3a186819c9cfd3ce993907f24251c9ef42b | [
"Apache-2.0"
] | null | null | null | apps/eigr_functions/lib/functions/supervisor.ex | sleipnir/permastate-elixir | 43cda3a186819c9cfd3ce993907f24251c9ef42b | [
"Apache-2.0"
] | 1 | 2021-07-28T21:31:12.000Z | 2021-07-28T21:31:12.000Z | defmodule Functions.Supervisor do
@moduledoc """
A Eigr Functions Elixir SDK.
You can add it to your Supervisor tree as below.
defmodule Shoppingcart.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
action = %Functions.Entity{
... | 26.386139 | 95 | 0.64728 |
9ee630b7edc00efd72c0ff3fb07a14f0d783c8d5 | 1,738 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_create_test_return_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_create_test_return_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_create_test_return_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.6 | 107 | 0.746835 |
9ee63265bd7fbd3dd6b33655ae3fe9731f5da571 | 17,279 | ex | Elixir | lib/logger/lib/logger.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | defmodule Logger do
@moduledoc ~S"""
A logger for Elixir applications.
It includes many features:
* Provides debug, info, warn and error levels.
* Supports multiple backends which are automatically
supervised when plugged into Logger.
* Formats and truncates messages on the client
to a... | 31.021544 | 117 | 0.686035 |
9ee64c1984bf3dde946c7a31f9d6d05133d03c08 | 3,918 | ex | Elixir | lib/trans/query_builder.ex | goravbhootra/trans | d8976406c801639a16b4be0edd163998eb23ddd9 | [
"Apache-2.0"
] | null | null | null | lib/trans/query_builder.ex | goravbhootra/trans | d8976406c801639a16b4be0edd163998eb23ddd9 | [
"Apache-2.0"
] | null | null | null | lib/trans/query_builder.ex | goravbhootra/trans | d8976406c801639a16b4be0edd163998eb23ddd9 | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Ecto.Adapters.SQL) do
defmodule Trans.QueryBuilder do
@moduledoc """
Adds conditions to `Ecto` queries on translated fields.
"""
@doc """
Generates a SQL fragment for accessing a translated field in an `Ecto.Query`.
The generated SQL fragment can be coupled with the re... | 29.908397 | 90 | 0.616386 |
9ee69421c5b6ec0d58422aaf9bb8219d9150cc3d | 788 | ex | Elixir | Microsoft.Azure.Management.Features/lib/microsoft/azure/management/features/model/feature_operations_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.Features/lib/microsoft/azure/management/features/model/feature_operations_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Features/lib/microsoft/azure/management/features/model/feature_operations_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.Features.Model.FeatureOperationsListResult do
@moduledoc """
List of previewed features.
"""
@derive [Poison.E... | 26.266667 | 101 | 0.729695 |
9ee7476a19edc4f2011092554d6500e0ca56fb34 | 5,369 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/conversions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/conversions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/api/conversions.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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.078014 | 170 | 0.687279 |
9ee753068dd8ee372d893cc18c629874a1d61cca | 614 | ex | Elixir | web/views/bottle_view.ex | maxdec/cellar | 056202b1d90748378e16edc9fdcade8c0491f2b1 | [
"MIT"
] | null | null | null | web/views/bottle_view.ex | maxdec/cellar | 056202b1d90748378e16edc9fdcade8c0491f2b1 | [
"MIT"
] | null | null | null | web/views/bottle_view.ex | maxdec/cellar | 056202b1d90748378e16edc9fdcade8c0491f2b1 | [
"MIT"
] | null | null | null | defmodule Cellar.BottleView do
use Cellar.Web, :view
def render("index.json", %{bottles: bottles}) do
%{data: render_many(bottles, Cellar.BottleView, "bottle.json")}
end
def render("show.json", %{bottle: bottle}) do
%{data: render_one(bottle, Cellar.BottleView, "bottle.json")}
end
def render("bot... | 25.583333 | 67 | 0.649837 |
9ee76aad6a9d78ca0f85425fc6725f6f70e7b770 | 7,185 | ex | Elixir | clients/content/lib/google_api/content/v21/api/pubsubnotificationsettings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/api/pubsubnotificationsettings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/api/pubsubnotificationsettings.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... | 41.293103 | 196 | 0.627975 |
9ee78e95e5098a78ec932dde3f5f71e23f8a8cee | 717 | ex | Elixir | lib/visualizer_web/gettext.ex | ajanes/booster-ui | 63a1cd32f873d11ff2448666692c2f637dfc466b | [
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | lib/visualizer_web/gettext.ex | ajanes/booster-ui | 63a1cd32f873d11ff2448666692c2f637dfc466b | [
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | lib/visualizer_web/gettext.ex | ajanes/booster-ui | 63a1cd32f873d11ff2448666692c2f637dfc466b | [
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | defmodule VisualizerWeb.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 VisualizerWeb.Gettext
# Simple translation
gettext "Her... | 28.68 | 72 | 0.684798 |
9ee7df2913139e5b653b4a3d2dd6b1194e98549c | 7,027 | ex | Elixir | services/interop-proxy/lib/interop_proxy/sanitize.ex | RemusW/orchestra | 688c0d2a25d8f73c9c5a6e27d4fe4b2460c2c198 | [
"MIT"
] | null | null | null | services/interop-proxy/lib/interop_proxy/sanitize.ex | RemusW/orchestra | 688c0d2a25d8f73c9c5a6e27d4fe4b2460c2c198 | [
"MIT"
] | null | null | null | services/interop-proxy/lib/interop_proxy/sanitize.ex | RemusW/orchestra | 688c0d2a25d8f73c9c5a6e27d4fe4b2460c2c198 | [
"MIT"
] | null | null | null | defmodule InteropProxy.Sanitize do
@moduledoc """
Translates the interop server responses to our own and vise-versa.
"""
# Aliasing the main messages.
alias InteropProxy.Message.Interop.{
Position, AerialPosition, InteropMission, Obstacles, InteropTelem, Odlc,
OdlcList, InteropMessage
}
# Aliasi... | 29.157676 | 79 | 0.642237 |
9ee8015f866b45dd7288e4430f3688577c5c748a | 1,173 | exs | Elixir | bench/iso.exs | IanLuites/utc_datetime | 0abe1d016e2bc7823860e9f402645e16a885aa5d | [
"MIT"
] | 1 | 2020-01-12T03:40:17.000Z | 2020-01-12T03:40:17.000Z | bench/iso.exs | IanLuites/utc_datetime | 0abe1d016e2bc7823860e9f402645e16a885aa5d | [
"MIT"
] | null | null | null | bench/iso.exs | IanLuites/utc_datetime | 0abe1d016e2bc7823860e9f402645e16a885aa5d | [
"MIT"
] | null | null | null | datetime = DateTime.utc_now()
utc_datetime = UTCDateTime.from_datetime(datetime)
naive_datetime = UTCDateTime.to_naive(utc_datetime)
Benchee.run(
%{
"DateTime" => &DateTime.from_iso8601/1,
"NaiveDateTime" => &NaiveDateTime.from_iso8601/1,
"UTCDateTime" => &UTCDateTime.from_rfc3339/1
},
inputs: %{
... | 29.325 | 72 | 0.675192 |
9ee82788e6e843de58b1f1f189f3cdc07b5807a6 | 1,772 | ex | Elixir | test/support/model_case.ex | chayelheinsen/ElixirBook | 40797c0d84c101ae331100a4b8467df95fa9efd6 | [
"MIT"
] | null | null | null | test/support/model_case.ex | chayelheinsen/ElixirBook | 40797c0d84c101ae331100a4b8467df95fa9efd6 | [
"MIT"
] | null | null | null | test/support/model_case.ex | chayelheinsen/ElixirBook | 40797c0d84c101ae331100a4b8467df95fa9efd6 | [
"MIT"
] | null | null | null | defmodule Book.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For thi... | 26.848485 | 84 | 0.681716 |
9ee82f9451073a522bc7ca3eea27586698f1b5fd | 611 | ex | Elixir | web/controllers/api/v1/researcher_controller.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/controllers/api/v1/researcher_controller.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/controllers/api/v1/researcher_controller.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | defmodule EmotionsWheelBackend.ResearcherController do
use EmotionsWheelBackend.Web, :controller
alias EmotionsWheelBackend.{Repo, Researcher}
def index(conn, _params) do
researchers = Researcher |> Repo.all
render(conn, "index.json", researchers: researchers)
end
def show(conn, %{"id" => id}) do
... | 26.565217 | 77 | 0.672668 |
9ee854b9c622fa719ef204865b01e6df38281a5b | 2,969 | ex | Elixir | lib/mandrill/senders.ex | whitepaperclip/mandrill-elixir | 865388876bf856700c65a83a9a2f581c3e195842 | [
"MIT"
] | null | null | null | lib/mandrill/senders.ex | whitepaperclip/mandrill-elixir | 865388876bf856700c65a83a9a2f581c3e195842 | [
"MIT"
] | null | null | null | lib/mandrill/senders.ex | whitepaperclip/mandrill-elixir | 865388876bf856700c65a83a9a2f581c3e195842 | [
"MIT"
] | null | null | null | defmodule Mandrill.Senders do
@moduledoc """
Senders calls for Mandrill.
"""
@doc """
Return the senders that have tried to
use this account.
"""
def list do
params = [key: Mandrill.key()]
Mandrill.request("senders/list", params)
end
@doc """
Returns the sender domains that have
been... | 24.138211 | 89 | 0.669586 |
9ee8590589af2788b452ca3577486868d32b3b45 | 3,606 | exs | Elixir | test/romeo/connection_test.exs | LaudateCorpus1/romeo | 22a7280d0908107ebffefd25d7e051fdb9fab0b2 | [
"MIT"
] | 7 | 2018-08-21T15:58:40.000Z | 2020-02-29T20:39:42.000Z | test/romeo/connection_test.exs | LaudateCorpus1/romeo | 22a7280d0908107ebffefd25d7e051fdb9fab0b2 | [
"MIT"
] | null | null | null | test/romeo/connection_test.exs | LaudateCorpus1/romeo | 22a7280d0908107ebffefd25d7e051fdb9fab0b2 | [
"MIT"
] | 5 | 2020-04-18T15:43:13.000Z | 2022-03-17T18:17:38.000Z | defmodule Romeo.ConnectionTest do
use ExUnit.Case
use UserHelper
use Romeo.XML
setup do
romeo = build_user("romeo", tls: true)
juliet = build_user("juliet", resource: "juliet", tls: true)
setup_presence_subscriptions(romeo[:nickname], juliet[:nickname])
{:ok, romeo: romeo, juliet: juliet}
... | 31.911504 | 97 | 0.674709 |
9ee85b4a0fa9d9dd09c4f380b11624a26933312b | 1,009 | ex | Elixir | lib/gazol/application.ex | Conceptx/absinthe-example | 369fbeaf2e688767240e2ec961a2029359580afa | [
"MIT"
] | null | null | null | lib/gazol/application.ex | Conceptx/absinthe-example | 369fbeaf2e688767240e2ec961a2029359580afa | [
"MIT"
] | null | null | null | lib/gazol/application.ex | Conceptx/absinthe-example | 369fbeaf2e688767240e2ec961a2029359580afa | [
"MIT"
] | null | null | null | defmodule Gazol.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 Ecto repository
... | 31.53125 | 83 | 0.709613 |
9ee85ba90a2001829440c376eb2ac18d0de02f69 | 1,503 | ex | Elixir | lib/collidex/detection/rects.ex | IdahoEv/collidex | ef86928ef264723db8129a9de94acce8183d01bc | [
"MIT"
] | 4 | 2018-08-19T23:05:06.000Z | 2021-01-17T09:17:45.000Z | lib/collidex/detection/rects.ex | IdahoEv/collidex | ef86928ef264723db8129a9de94acce8183d01bc | [
"MIT"
] | 2 | 2016-09-14T19:47:17.000Z | 2016-09-14T19:49:17.000Z | lib/collidex/detection/rects.ex | IdahoEv/collidex | ef86928ef264723db8129a9de94acce8183d01bc | [
"MIT"
] | null | null | null | defmodule Collidex.Detection.Rects do
@moduledoc """
This module tests for collisions between pairs of grid-aligned
rectangles.
"""
@doc """
Test for collision between two grid-aligned
rectangles. Expects two Collidect.Detection.Rect
structs and returns { :collision, "todo_provide_vector" }
if the t... | 23.857143 | 72 | 0.602129 |
9ee87623de140dfd5e4121a7126df336bd63f774 | 442 | ex | Elixir | lib/blue_heron/att/commands/write_command.ex | kevinansfield/blue_heron | 8339e6747e135030f7d1e67801391f03f2558e0d | [
"Apache-2.0"
] | 45 | 2020-10-17T13:34:15.000Z | 2022-03-08T09:40:43.000Z | lib/blue_heron/att/commands/write_command.ex | kevinansfield/blue_heron | 8339e6747e135030f7d1e67801391f03f2558e0d | [
"Apache-2.0"
] | 20 | 2020-10-15T15:05:54.000Z | 2022-03-27T15:54:36.000Z | lib/blue_heron/att/commands/write_command.ex | kevinansfield/blue_heron | 8339e6747e135030f7d1e67801391f03f2558e0d | [
"Apache-2.0"
] | 11 | 2020-10-23T17:18:57.000Z | 2022-03-15T20:01:49.000Z | defmodule BlueHeron.ATT.WriteCommand do
defstruct [:opcode, :handle, :data]
def deserialize(<<0x52, handle::little-16, data::binary>>) do
%__MODULE__{opcode: 0x52, handle: handle, data: data}
end
def serialize(%{data: %type{} = data} = write_command) do
serialize(%{write_command | data: type.serialize... | 27.625 | 63 | 0.678733 |
9ee883be63da6dd1fbd5717ff1838ae7669e3f8e | 1,086 | ex | Elixir | apps/aecore/lib/aecore/peers/worker/supervisor.ex | SingularityMatrix/elixir-node | ad126aa97931165185cf35454718ed2eee40ceed | [
"ISC"
] | null | null | null | apps/aecore/lib/aecore/peers/worker/supervisor.ex | SingularityMatrix/elixir-node | ad126aa97931165185cf35454718ed2eee40ceed | [
"ISC"
] | 2 | 2018-10-01T16:46:26.000Z | 2018-10-01T19:45:42.000Z | apps/aecore/lib/aecore/peers/worker/supervisor.ex | gspasov/dogs-blockchain | 884c14cfc98de2c3793a204da069630d090bbc90 | [
"0BSD"
] | null | null | null | defmodule Aecore.Peers.Worker.Supervisor do
@moduledoc """
Supervises the Peers, PeerConnectionSupervisor, Sync and ranch acceptor processes with a one_for_all strategy
"""
use Supervisor
alias Aecore.Sync.Sync
alias Aecore.Peers.Worker, as: Peers
alias Aecore.Peers.PeerConnection
alias Aecore.Peers.W... | 21.72 | 111 | 0.657459 |
9ee8887a1e364c53561aafccf16546831403c9b8 | 31,029 | ex | Elixir | lib/ex_aws/s3.ex | taylorbrooks/ex_aws | ff602262eeeacfef2fc0e5b05695a826f4bf1eb4 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/s3.ex | taylorbrooks/ex_aws | ff602262eeeacfef2fc0e5b05695a826f4bf1eb4 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/s3.ex | taylorbrooks/ex_aws | ff602262eeeacfef2fc0e5b05695a826f4bf1eb4 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExAws.S3 do
@moduledoc """
Operations on AWS S3
## Basic Operations
The vast majority of operations here represent a single operation on S3.
### Examples
```
S3.list_objects |> ExAws.request! #=> {:ok, %{body: [list, of, objects]}}
S3.list_objects |> ExAws.stream! |> Enum.to_list #=> [list,... | 33.985761 | 157 | 0.669213 |
9ee88d100b31c89c35d83908a024513b24796e0d | 69 | ex | Elixir | elixir/quick-elixir-blog/blog_phoenix/web/views/layout_view.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/quick-elixir-blog/blog_phoenix/web/views/layout_view.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | elixir/quick-elixir-blog/blog_phoenix/web/views/layout_view.ex | Jufebrown/learning-projects | 9b8e0718c18ad00b7bb40a72c5c204471b28a100 | [
"MIT"
] | null | null | null | defmodule BlogPhoenix.LayoutView do
use BlogPhoenix.Web, :view
end
| 17.25 | 35 | 0.811594 |
9ee8a919e2128ee4c5a0caf7173fd945bc45d560 | 596 | ex | Elixir | lib/eggman/cfn/core.ex | ohr486/eggman | 82eb614dab64aadaa556454b9c3c89ca9ed3c9b2 | [
"MIT"
] | 1 | 2020-01-13T20:50:40.000Z | 2020-01-13T20:50:40.000Z | lib/eggman/cfn/core.ex | ohr486/eggman | 82eb614dab64aadaa556454b9c3c89ca9ed3c9b2 | [
"MIT"
] | 25 | 2019-07-02T05:57:46.000Z | 2021-07-26T05:20:55.000Z | lib/eggman/cfn/core.ex | ohr486/eggman | 82eb614dab64aadaa556454b9c3c89ca9ed3c9b2 | [
"MIT"
] | null | null | null | defmodule Eggman.Cfn.Core do
alias ExAws.Cloudformation
@doc false
def list_stacks(stack_status, ""), do: list_stacks_base(stack_status)
def list_stacks(stack_status, nil), do: list_stacks_base(stack_status)
def list_stacks(stack_status, keyword) do
list_stacks_base(stack_status)
|> Enum.filter(&Stri... | 28.380952 | 72 | 0.714765 |
9ee8e032b38356424f8825f069dedd531761f4a5 | 856 | exs | Elixir | apps/legion/test/messaging/recipient_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/test/messaging/recipient_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/test/messaging/recipient_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Messaging.Message.RecipientTest do
@moduledoc false
use Legion.DataCase
alias Legion.Messaging.Message.Recipient
@valid_attrs %{message_id: 1, recipient_id: 1}
test "changeset with valid attributes" do
changeset = Recipient.changeset(%Recipient{}, @valid_attrs)
assert changeset.va... | 24.457143 | 80 | 0.746495 |
9ee904abd2b6b1d7d905b97502dff9234dadb70a | 1,974 | ex | Elixir | web/controllers/v1/relay_group_membership_controller.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | web/controllers/v1/relay_group_membership_controller.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | web/controllers/v1/relay_group_membership_controller.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.V1.RelayGroupMembershipController do
use Cog.Web, :controller
alias Cog.Models.RelayGroup
alias Cog.Repository.RelayGroups
plug Cog.Plug.Authentication
plug Cog.Plug.Authorization, permission: "#{Cog.Util.Misc.embedded_bundle}:manage_relays"
plug :put_view, Cog.V1.RelayGroupView
def rela... | 35.890909 | 91 | 0.636272 |
9ee914dc21e1fcef6c21cf07f724d4f286fdd3f4 | 4,455 | exs | Elixir | test/elixir/test/recreate_doc_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | test/elixir/test/recreate_doc_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2018-02-08T23:08:43.000Z | 2018-02-08T23:08:43.000Z | test/elixir/test/recreate_doc_test.exs | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | defmodule RecreateDocTest do
use CouchTestCase
@moduletag :recreate_doc
@moduletag kind: :single_node
@moduledoc """
Test CouchDB document recreation
This is a port of the recreate_doc.js suite
"""
@tag :with_db
test "recreate document", context do
db_name = context[:db_name]
# First creat... | 26.676647 | 83 | 0.60404 |
9ee9202c6c82f7afe3f982ef2be280d355d6803a | 715 | ex | Elixir | server/lib/secure_notepad_server/options.ex | thooton/secure-notepad | e780c660a9ea6e425a0e06ff1f9469f527251815 | [
"MIT"
] | null | null | null | server/lib/secure_notepad_server/options.ex | thooton/secure-notepad | e780c660a9ea6e425a0e06ff1f9469f527251815 | [
"MIT"
] | null | null | null | server/lib/secure_notepad_server/options.ex | thooton/secure-notepad | e780c660a9ea6e425a0e06ff1f9469f527251815 | [
"MIT"
] | null | null | null | defmodule SecureNotepadServer.Options do
use Agent
def start_link(_) do
state = Path.join(:code.priv_dir(:secure_notepad_server), "config.json")
|> File.read!
|> Poison.decode!
Agent.start_link(fn -> state end, name: __MODULE__)
end
def get do
Agent.get(__MODULE__, & &1)
end
def remot... | 21.029412 | 76 | 0.655944 |
9ee94872e6bdddb0306cdd92d8a5d5613f72771a | 113 | exs | Elixir | config/config.exs | hlappa/BB | 0a57a326621ff0d7f73d71be85b14d13bfa3b168 | [
"MIT"
] | null | null | null | config/config.exs | hlappa/BB | 0a57a326621ff0d7f73d71be85b14d13bfa3b168 | [
"MIT"
] | null | null | null | config/config.exs | hlappa/BB | 0a57a326621ff0d7f73d71be85b14d13bfa3b168 | [
"MIT"
] | null | null | null | import Config
config :binance,
api_key: "",
secret_key: ""
config :bb,
symbol: "XRPEUR",
quantity: 100
| 11.3 | 19 | 0.646018 |
9ee9726059132eb7e2610786002bbdfcfa9de2ac | 1,334 | ex | Elixir | host_core/lib/host_core/control_interface/acl.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/control_interface/acl.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | host_core/lib/host_core/control_interface/acl.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | defmodule HostCore.ControlInterface.ACL do
@moduledoc false
def all_actors() do
HostCore.Actors.ActorSupervisor.all_actors()
|> Enum.flat_map(fn {id, pids} ->
revision = get_revision(id)
pids
|> Enum.map(fn pid ->
%{
id: id,
revision: revision,
image... | 22.233333 | 67 | 0.605697 |
9ee9780971f677cc8c7610c9c1882f1499b2296d | 535 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_run_nodeedges.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_run_nodeedges.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_run_nodeedges.ex | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.PipelineRunNodeedges do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"id",
:"_class"
]
@type ... | 19.107143 | 91 | 0.671028 |
9ee9802963d35be52aa0b0858eda68f3d250f162 | 2,309 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/identity_aware_proxy.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/identity_aware_proxy.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/identity_aware_proxy.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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.508772 | 280 | 0.750974 |
9ee9ae5269818c17890fff4ba262254d0050edcd | 122 | exs | Elixir | config/config.exs | gtronset/honeycomb | 0abe9283864aa7b7149b94fff515653da97bdf18 | [
"MIT"
] | null | null | null | config/config.exs | gtronset/honeycomb | 0abe9283864aa7b7149b94fff515653da97bdf18 | [
"MIT"
] | 1 | 2019-09-17T22:06:14.000Z | 2019-09-17T22:06:14.000Z | config/config.exs | gtronset/basalt | 0abe9283864aa7b7149b94fff515653da97bdf18 | [
"MIT"
] | null | null | null | use Mix.Config
if Mix.env() == :test do
config :junit_formatter,
report_dir: "/tmp/basalt-test-results/exunit"
end
| 17.428571 | 49 | 0.704918 |
9ee9d0a16882d9301979c8813e141ff3e8d9777b | 1,502 | ex | Elixir | lib/nerves_hub_ca/release/tasks.ex | nerves-hub/certificate_authority | 5d8c7bed3fc0b151b496592b3c1dc4422680699c | [
"Apache-2.0"
] | 10 | 2018-09-11T18:38:47.000Z | 2021-11-25T11:14:06.000Z | lib/nerves_hub_ca/release/tasks.ex | nerves-hub/certificate_authority | 5d8c7bed3fc0b151b496592b3c1dc4422680699c | [
"Apache-2.0"
] | 8 | 2018-06-12T20:56:10.000Z | 2019-08-01T16:10:49.000Z | lib/nerves_hub_ca/release/tasks.ex | nerves-hub/certificate_authority | 5d8c7bed3fc0b151b496592b3c1dc4422680699c | [
"Apache-2.0"
] | 7 | 2018-09-07T17:27:56.000Z | 2022-02-03T07:29:01.000Z | defmodule NervesHubCA.Release.Tasks do
alias Ecto.Migrator
@otp_app :nerves_hub_ca
@start_apps [:logger, :ssl, :postgrex, :ecto_sql]
def migrate_and_seed do
init(@otp_app, @start_apps)
run_migrations_for(@otp_app)
run_seed_script("#{seed_path(@otp_app)}/seeds.exs")
stop()
end
defp init(... | 24.225806 | 73 | 0.664447 |
9ee9ddd779386caca0ab8380d2d60cb90074d8bf | 1,585 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1beta2/model/weekly_cycle.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/model/weekly_cycle.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/memcache/lib/google_api/memcache/v1beta2/model/weekly_cycle.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.723404 | 164 | 0.745741 |
9ee9e382e043bb8ed1363847c769a86491f7eec8 | 2,125 | ex | Elixir | lib/ambry_web/views/api/book_view.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry_web/views/api/book_view.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry_web/views/api/book_view.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule AmbryWeb.API.BookView do
use AmbryWeb, :view
alias Ambry.Books.Book
alias Ambry.Series.SeriesBook
alias AmbryWeb.API.BookView
def render("index.json", %{books: books, has_more?: has_more?}) do
%{
data: render_many(books, BookView, "book_index.json"),
hasMore: has_more?
}
end
... | 24.147727 | 74 | 0.552471 |
9eea1d70059e00bb7e1902be8f88f8e5a233a436 | 734 | ex | Elixir | lib/console_web/views/function_view.ex | isabella232/console-2 | d4a4aca0e11c945c9698f46cb171d4645177038a | [
"Apache-2.0"
] | null | null | null | lib/console_web/views/function_view.ex | isabella232/console-2 | d4a4aca0e11c945c9698f46cb171d4645177038a | [
"Apache-2.0"
] | 1 | 2021-04-03T09:29:31.000Z | 2021-04-03T09:29:31.000Z | lib/console_web/views/function_view.ex | isabella232/console-2 | d4a4aca0e11c945c9698f46cb171d4645177038a | [
"Apache-2.0"
] | null | null | null | defmodule ConsoleWeb.FunctionView do
use ConsoleWeb, :view
alias ConsoleWeb.FunctionView
def render("index.json", %{functions: functions}) do
render_many(functions, FunctionView, "function.json")
end
def render("show.json", %{function: function}) do
render_one(function, FunctionView, "function.json"... | 25.310345 | 67 | 0.686649 |
9eea28b50acf9c9459ad8cc60b60540668c59d38 | 3,553 | ex | Elixir | lib/saxy/xmerl.ex | duffelhq/saxy | fb37f1d9ce919e6085a924c2483c515ee6cb997b | [
"MIT"
] | null | null | null | lib/saxy/xmerl.ex | duffelhq/saxy | fb37f1d9ce919e6085a924c2483c515ee6cb997b | [
"MIT"
] | null | null | null | lib/saxy/xmerl.ex | duffelhq/saxy | fb37f1d9ce919e6085a924c2483c515ee6cb997b | [
"MIT"
] | null | null | null | defmodule Saxy.Xmerl do
@moduledoc """
Provides functions to parse a XML document to
[xmerl format](https://github.com/erlang/otp/blob/master/lib/xmerl/include/xmerl.hrl)
data structure.
See "Types" section for more information.
"""
import Saxy.Xmerl.Records
@type position() :: integer()
@type nam... | 30.110169 | 136 | 0.584858 |
9eea2ea8957ae4949f0f871b614912f38e43656c | 417 | exs | Elixir | test/exshome_web/views/error_view_test.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | 2 | 2021-12-21T16:32:56.000Z | 2022-02-22T17:06:39.000Z | test/exshome_web/views/error_view_test.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | test/exshome_web/views/error_view_test.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | defmodule ExshomeWeb.ErrorViewTest do
use ExshomeWeb.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(ExshomeWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
as... | 27.8 | 92 | 0.733813 |
9eea34d1c7f0106b56b1661114e8ba3d568c4d71 | 1,064 | exs | Elixir | mix.exs | mrDarcyMurphy/elixir-phoenix-playground | 8ae7237609a52c9a7a3a31f354329acadfb092a9 | [
"MIT"
] | null | null | null | mix.exs | mrDarcyMurphy/elixir-phoenix-playground | 8ae7237609a52c9a7a3a31f354329acadfb092a9 | [
"MIT"
] | null | null | null | mix.exs | mrDarcyMurphy/elixir-phoenix-playground | 8ae7237609a52c9a7a3a31f354329acadfb092a9 | [
"MIT"
] | null | null | null | defmodule MyApp.Mixfile do
use Mix.Project
def project do
[app: :my_app,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
... | 26.6 | 63 | 0.595865 |
9eea43416657cd089c5368908df318c1628fe3ce | 1,144 | exs | Elixir | config/config.exs | y86/getaways_backend | 47f3703c19173a5d5bd53b7bad3a5e3982edb584 | [
"MIT"
] | null | null | null | config/config.exs | y86/getaways_backend | 47f3703c19173a5d5bd53b7bad3a5e3982edb584 | [
"MIT"
] | 6 | 2020-01-31T19:44:15.000Z | 2021-09-02T04:26:49.000Z | config/config.exs | y86/getaways_backend | 47f3703c19173a5d5bd53b7bad3a5e3982edb584 | [
"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 :cors_plug,
origin: ["http://localhost:... | 31.777778 | 86 | 0.749126 |
9eea5336595e539b47ae21915f66224b3228c483 | 2,688 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/region_instance_group_list.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/region_instance_group_list.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/region_instance_group_list.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 42.666667 | 381 | 0.736235 |
9eea5d7e81a23f10a3404cff0efb9f46172cf24b | 1,122 | exs | Elixir | mix.exs | jbrisbin/exslackbot | dcf51ca63685b93afe93f8e317f2808e32e95569 | [
"Apache-2.0"
] | 4 | 2016-10-17T20:30:32.000Z | 2016-10-21T16:24:28.000Z | mix.exs | jbrisbin/exslackbot | dcf51ca63685b93afe93f8e317f2808e32e95569 | [
"Apache-2.0"
] | null | null | null | mix.exs | jbrisbin/exslackbot | dcf51ca63685b93afe93f8e317f2808e32e95569 | [
"Apache-2.0"
] | null | null | null | defmodule ExSlackBot.Mixfile do
use Mix.Project
def project do
[
app: :exslackbot,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()
]
end
def description do
~S"""
ExSlackBot is a helper lib... | 22 | 97 | 0.543672 |
9eea879793881e12c21ca22e4ec98534a548299d | 4,861 | ex | Elixir | lib/release_tasks/migrate_schemas.ex | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | lib/release_tasks/migrate_schemas.ex | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | lib/release_tasks/migrate_schemas.ex | Yamilquery/kaufmann_ex | 5158ae8f524f8780647766ff35db88ebd761da29 | [
"MIT"
] | null | null | null | defmodule KaufmannEx.ReleaseTasks.MigrateSchemas do
@moduledoc """
Task for registering all schemas in `priv/schemas` with the schema registry.
Expects
- schemas to be defined in `priv/schemas`.
- an `event_metadata.avsc` schema should be defined and required by all events
Can be called in a production... | 26.134409 | 120 | 0.651923 |
9eea9e97322ede7c8e45ec85fa23216ffa84de71 | 3,103 | exs | Elixir | test/unit/changeset/ueberauth_test.exs | pauldub/sentinel | 3230e92b68fa76e9a1f6c577bc1c271900e07c72 | [
"MIT"
] | 125 | 2016-01-29T11:46:20.000Z | 2021-06-08T09:25:38.000Z | test/unit/changeset/ueberauth_test.exs | pauldub/sentinel | 3230e92b68fa76e9a1f6c577bc1c271900e07c72 | [
"MIT"
] | 54 | 2016-02-18T01:11:58.000Z | 2017-10-19T11:25:26.000Z | test/unit/changeset/ueberauth_test.exs | britton-jb/sentinel | 3230e92b68fa76e9a1f6c577bc1c271900e07c72 | [
"MIT"
] | 29 | 2016-02-20T12:59:16.000Z | 2018-04-11T14:29:41.000Z | defmodule UeberauthTest do
use Sentinel.UnitCase
#alias Sentinel.Ueberauth
test "identity changeset validates presence of password when invitable is false" do
Mix.Config.persist([sentinel: [invitable: false]])
changeset = Sentinel.Ueberauth.changeset(%Sentinel.Ueberauth{}, %{provider: :identity})
a... | 41.373333 | 116 | 0.700935 |
9eea9f1fba780bae6a7b80d27063f85b7dcff3ec | 148 | ex | Elixir | mix/no_localized_controller.ex | elixir-cldr/cldr_routes | 0082500daccbc2b0860c0bc451a1c3b33f3fc8c4 | [
"Apache-2.0"
] | null | null | null | mix/no_localized_controller.ex | elixir-cldr/cldr_routes | 0082500daccbc2b0860c0bc451a1c3b33f3fc8c4 | [
"Apache-2.0"
] | null | null | null | mix/no_localized_controller.ex | elixir-cldr/cldr_routes | 0082500daccbc2b0860c0bc451a1c3b33f3fc8c4 | [
"Apache-2.0"
] | null | null | null | defmodule NotLocalizedController do
use MyAppWeb, :controller
def show(conn, _params) do
# %{"page" => "hello"} = params
conn
end
end | 18.5 | 35 | 0.668919 |
9eeacfae105388a2bd2c3cde9ddc771ec520a7c5 | 563 | exs | Elixir | 2017/elixir/day15/mix.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day15/mix.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day15/mix.exs | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | defmodule Day15.Mixfile do
use Mix.Project
def project do
[
app: :day15,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications... | 19.413793 | 88 | 0.571936 |
9eeb06121f00aae6675e71abb999f1d8178c51b0 | 599 | exs | Elixir | backend/test/views/error_view_test.exs | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/test/views/error_view_test.exs | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | backend/test/views/error_view_test.exs | hploscar/palike | 71618593ee6e6687e0d1cdc9e923ed8f9c2cc2cb | [
"MIT"
] | null | null | null | defmodule Palike.ErrorViewTest do
use Palike.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(Palike.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
end
test "render 500.... | 27.227273 | 66 | 0.642738 |
9eeb3912e7a17cc1eece0d98a0f8abd151d5ba9f | 1,132 | ex | Elixir | lib/arc_ecto/definition.ex | amatalai/arc_ecto | 717efd790cc344ba3f12f29127361e0a90f86ae6 | [
"Apache-2.0"
] | null | null | null | lib/arc_ecto/definition.ex | amatalai/arc_ecto | 717efd790cc344ba3f12f29127361e0a90f86ae6 | [
"Apache-2.0"
] | null | null | null | lib/arc_ecto/definition.ex | amatalai/arc_ecto | 717efd790cc344ba3f12f29127361e0a90f86ae6 | [
"Apache-2.0"
] | null | null | null | defmodule Arc.Ecto.Definition do
defmacro __using__(_options) do
definition = __CALLER__.module
quote do
defmodule Module.concat(unquote(definition), "Type") do
@behaviour Ecto.Type
def type, do: Arc.Ecto.Type.type
def cast(value), do: Arc.Ecto.Type.cast(unquote(definition), val... | 31.444444 | 95 | 0.575972 |
9eeb5430e0a2149bcf1f163b47e3c87b577e9ca3 | 648 | ex | Elixir | lib/inch_ex/setup/readme_badge.ex | AndrewDryga/inch_ex | 59997ce05b60902c9b482409b09da7697b267c17 | [
"MIT"
] | null | null | null | lib/inch_ex/setup/readme_badge.ex | AndrewDryga/inch_ex | 59997ce05b60902c9b482409b09da7697b267c17 | [
"MIT"
] | null | null | null | lib/inch_ex/setup/readme_badge.ex | AndrewDryga/inch_ex | 59997ce05b60902c9b482409b09da7697b267c17 | [
"MIT"
] | 1 | 2022-03-17T18:34:45.000Z | 2022-03-17T18:34:45.000Z | defmodule InchEx.Setup.ReadmeBadge do
@readme_filename "README.md"
def run? do
File.exists?(@readme_filename)
end
def run(output) do
if run?() do
IO.puts ""
extract_url(output) |> get_badge_url |> textify |> InchEx.Setup.print
end
end
defp textify(badge_url) do
"""
## Docu... | 19.058824 | 75 | 0.623457 |
9eeb604904bebe1f042ff1d6bbdb63a15b285c74 | 228 | exs | Elixir | config/config.exs | altjohndev/my-website | 87d7259744e4d4d0575145aa9131ab7ce4b4f270 | [
"Unlicense"
] | null | null | null | config/config.exs | altjohndev/my-website | 87d7259744e4d4d0575145aa9131ab7ce4b4f270 | [
"Unlicense"
] | 2 | 2021-03-10T08:46:52.000Z | 2021-05-11T04:14:45.000Z | config/config.exs | altjohndev/my-website | 87d7259744e4d4d0575145aa9131ab7ce4b4f270 | [
"Unlicense"
] | null | null | null | import Config
wildcard_import = fn wildcard ->
for config <- wildcard |> Path.expand(__DIR__) |> Path.wildcard() do
import_config config
end
end
wildcard_import.("general/*.exs")
wildcard_import.("#{Mix.env()}/*.exs")
| 20.727273 | 70 | 0.697368 |
9eeb83ff637fed46bcff5e8bd9f89f7491d48e3a | 15,364 | ex | Elixir | lib/iex/lib/iex/autocomplete.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | 1 | 2019-05-07T12:01:44.000Z | 2019-05-07T12:01:44.000Z | lib/iex/lib/iex/autocomplete.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/autocomplete.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Autocomplete do
@moduledoc false
@doc """
The expansion logic.
Some of the expansion has to be use the current shell
environemnt, which is found via the broker.
"""
def expand(expr, server \\ IEx.Broker)
def expand('', server) do
expand_variable_or_import("", server)
end
def ex... | 26.535406 | 95 | 0.609281 |
9eebb5f8bbed9fe7efba77c9e4b2c3a1a5e2eb9e | 945 | exs | Elixir | nucleotide-count/nucleotide_count.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | nucleotide-count/nucleotide_count.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"MIT"
] | null | null | null | nucleotide-count/nucleotide_count.exs | RamanBut-Husaim/exercism.elixir | 683bb3b5700945dbbebcedf26d37208d4201ef49 | [
"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... | 19.6875 | 60 | 0.615873 |
9eebc67d93023b27fc33f6f0629284f7febd7444 | 2,190 | ex | Elixir | lib/blue_bird/conn_logger.ex | Bleachr/blue_bird | 5ea1d1f047ce379bc73b6d7892fdd44392b09569 | [
"MIT"
] | null | null | null | lib/blue_bird/conn_logger.ex | Bleachr/blue_bird | 5ea1d1f047ce379bc73b6d7892fdd44392b09569 | [
"MIT"
] | null | null | null | lib/blue_bird/conn_logger.ex | Bleachr/blue_bird | 5ea1d1f047ce379bc73b6d7892fdd44392b09569 | [
"MIT"
] | 1 | 2021-03-02T05:14:01.000Z | 2021-03-02T05:14:01.000Z | defmodule BlueBird.ConnLogger do
@moduledoc """
Logs connections in test cases.
`BlueBird.ConnLogger` is used to cache `%Plug.Conn` structs. To use it, you
have to call `start/0` in `test/test_helper.exs`:
BlueBird.start()
ExUnit.start(formatters: [ExUnit.CLIFormatter, BlueBird.Formatter])
You ... | 21.262136 | 84 | 0.605023 |
9eebc87775e2bb8cd96c7d9d121becd734a02efb | 8,239 | exs | Elixir | test/zstream_test.exs | kianmeng/zstream | f8f24c8b9903ecd759517da988e11bb1c958f243 | [
"MIT"
] | null | null | null | test/zstream_test.exs | kianmeng/zstream | f8f24c8b9903ecd759517da988e11bb1c958f243 | [
"MIT"
] | null | null | null | test/zstream_test.exs | kianmeng/zstream | f8f24c8b9903ecd759517da988e11bb1c958f243 | [
"MIT"
] | null | null | null | defmodule ZstreamTest do
require Logger
use ExUnit.Case
doctest Zstream
test "zip" do
verify([
Zstream.entry("kafan", file("kafan.txt")),
Zstream.entry("kafka_uncompressed", file("kafan.txt"), coder: Zstream.Coder.Stored)
])
verify([
Zstream.entry("कफ़न", file("kafan.txt"))
]... | 25.350769 | 92 | 0.612574 |
9eebf731830468670fd6ee229a32b3b814c0c33d | 632 | ex | Elixir | lib/aws_ex_ray/client.ex | lyokato/aws_ex_ray | f2413e9ac0d248da8960eef548418b1a2a906aff | [
"MIT"
] | 10 | 2018-06-17T03:20:59.000Z | 2022-03-01T18:34:55.000Z | lib/aws_ex_ray/client.ex | lyokato/aws_ex_ray | f2413e9ac0d248da8960eef548418b1a2a906aff | [
"MIT"
] | 9 | 2018-05-29T05:26:24.000Z | 2021-12-11T15:29:38.000Z | lib/aws_ex_ray/client.ex | lyokato/aws_ex_ray | f2413e9ac0d248da8960eef548418b1a2a906aff | [
"MIT"
] | 9 | 2018-06-11T06:15:58.000Z | 2022-01-20T10:07:36.000Z | defmodule AwsExRay.Client do
@moduledoc ~S"""
This module is a facade interface to send report-data to
xray-daemons running on your localhost.
"""
defmodule Behaviour do
@moduledoc ~S"""
Real client requires IO, so to enable mocking
on test environment, provides a interface and swithable modules... | 21.066667 | 68 | 0.69462 |
9eec2c15f5af36c25a1802e5316d949a95e98a3c | 887 | exs | Elixir | mix.exs | carmaproject/json_elixir | ef88a5a8d56ef61b5e9c7346699122cf022f842f | [
"MIT"
] | null | null | null | mix.exs | carmaproject/json_elixir | ef88a5a8d56ef61b5e9c7346699122cf022f842f | [
"MIT"
] | 1 | 2021-07-16T11:53:31.000Z | 2021-07-16T11:53:31.000Z | mix.exs | carmaproject/json_elixir | ef88a5a8d56ef61b5e9c7346699122cf022f842f | [
"MIT"
] | null | null | null | defmodule JsonElixir.MixProject do
use Mix.Project
def project do
[
app: :json_elixir,
version: "0.1.2",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: "https://github.com/carmapro... | 19.711111 | 63 | 0.583991 |
9eec300fd18053e2a648d1190e4aacc1855b0e2b | 987 | exs | Elixir | test/support/apps/example/config/config.exs | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | 528 | 2019-09-13T15:10:36.000Z | 2022-03-31T10:28:27.000Z | test/support/apps/example/config/config.exs | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | 133 | 2019-09-13T17:46:59.000Z | 2022-03-01T13:37:10.000Z | test/support/apps/example/config/config.exs | mitchellhenke/torch | 2d0ab68f4e2d7f3bc37fbf7edbd1298b29b36e71 | [
"MIT"
] | 38 | 2019-10-29T20:37:13.000Z | 2022-03-03T05:19:33.000Z | # 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 :example, ecto_repos: [Example.Repo]
# Co... | 32.9 | 86 | 0.763931 |
9eec63acb03481d7c6a622f8484bac412fef9543 | 2,187 | ex | Elixir | lib/advent_of_code_2019/day16.ex | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | lib/advent_of_code_2019/day16.ex | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | lib/advent_of_code_2019/day16.ex | scorphus/advent-of-code-2019 | 48305ff3b13b23cac60bed02349775d8feb05a3b | [
"BSD-3-Clause"
] | null | null | null | defmodule AdventOfCode2019.FlawedFrequencyTransmission do
@moduledoc """
Day 16 — https://adventofcode.com/2019/day/16
"""
@base_pattern [0, 1, 0, -1]
@spec part1(Enumerable.t()) :: binary
def part1(in_stream) do
in_stream
|> read_input_signal()
|> repeat_phases(100)
|> Stream.take(8)
... | 23.771739 | 77 | 0.609511 |
9eec6abde9d4a990b0e8e7ce55f341fdba322d25 | 1,966 | ex | Elixir | lib/router.ex | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 1 | 2020-01-26T18:08:40.000Z | 2020-01-26T18:08:40.000Z | lib/router.ex | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | 36 | 2017-12-23T20:22:07.000Z | 2018-05-10T09:16:59.000Z | lib/router.ex | lee-dohm/staff-notes | 07186e8407f1955876fa2dee2dbbfd0bbac91333 | [
"MIT"
] | null | null | null | defmodule StaffNotesWeb.Router do
@moduledoc """
Router for the `StaffNotesWeb` application.
"""
use StaffNotesWeb, :router
alias Plug.Ribbon
alias StaffNotesApi.TokenAuthentication
alias StaffNotesWeb.SlidingSessionTimeout
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
... | 28.085714 | 95 | 0.683113 |
9eec6fe929f491fbfcf97590a51e9474cae53044 | 737 | ex | Elixir | lib/etcetera/utils.ex | praekelt/etcetera | 24c8bc13267eee248b8117179f886f1e18658803 | [
"BSD-3-Clause"
] | null | null | null | lib/etcetera/utils.ex | praekelt/etcetera | 24c8bc13267eee248b8117179f886f1e18658803 | [
"BSD-3-Clause"
] | null | null | null | lib/etcetera/utils.ex | praekelt/etcetera | 24c8bc13267eee248b8117179f886f1e18658803 | [
"BSD-3-Clause"
] | null | null | null | defmodule Etcetera.Utils do
@moduledoc """
Miscellaneous utility functions.
"""
@doc """
Removes the leading and trailing slashes from the given string.
## Examples
iex> Etcetera.Utils.remove_slashes("////a/b/c/////")
"a/b/c"
iex> Etcetera.Utils.remove_slashes("a/b/c")
"a/... | 24.566667 | 65 | 0.630936 |
9eeccbfbfdcdbd7ca87eabc3968ed0c1b2dfc7a6 | 8,264 | ex | Elixir | clients/vector_tile/lib/google_api/vector_tile/v1/api/featuretiles.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vector_tile/lib/google_api/vector_tile/v1/api/featuretiles.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vector_tile/lib/google_api/vector_tile/v1/api/featuretiles.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... | 69.445378 | 525 | 0.689376 |
9eecdf34c283b16aa06fbec02d77975e9dff9999 | 1,166 | ex | Elixir | quickly/web/channels/user_socket.ex | hectorip/quickly | 99a4b2720b34591c5ba19bdcf8b517ce11b4c0ad | [
"MIT"
] | null | null | null | quickly/web/channels/user_socket.ex | hectorip/quickly | 99a4b2720b34591c5ba19bdcf8b517ce11b4c0ad | [
"MIT"
] | null | null | null | quickly/web/channels/user_socket.ex | hectorip/quickly | 99a4b2720b34591c5ba19bdcf8b517ce11b4c0ad | [
"MIT"
] | null | null | null | defmodule Quickly.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Quickly.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and authent... | 30.684211 | 83 | 0.701544 |
9eece710e34c28bed601f6216387669d0e9ca360 | 2,117 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_simple_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_simple_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2beta1_intent_message_simple_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.5 | 200 | 0.735002 |
9eed27662e36ff531109cc865bd4fd2db98a104c | 579 | exs | Elixir | elixir/priv/repo/migrations/20200826196533_create_transactions.exs | TreywRoberts/web-homework | d19b17dd384341d9e6e7e3174372673584289b83 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20200826196533_create_transactions.exs | TreywRoberts/web-homework | d19b17dd384341d9e6e7e3174372673584289b83 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20200826196533_create_transactions.exs | TreywRoberts/web-homework | d19b17dd384341d9e6e7e3174372673584289b83 | [
"MIT"
] | null | null | null | defmodule Homework.Repo.Migrations.CreateTransactions do
use Ecto.Migration
def change do
create table(:transactions, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:amount, :integer)
add(:credit, :boolean, default: false, null: false)
add(:debit, :boolean, defaul... | 32.166667 | 82 | 0.651123 |
9eed2e874ffd71c96db45f293803727d612ca77c | 9,140 | ex | Elixir | lib/livebook_web/live/home_live.ex | akash-akya/livebook | c3a0b7c01d76e8c646d4d1db0c49f1401ca80153 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live.ex | akash-akya/livebook | c3a0b7c01d76e8c646d4d1db0c49f1401ca80153 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live.ex | akash-akya/livebook | c3a0b7c01d76e8c646d4d1db0c49f1401ca80153 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.HomeLive do
use LivebookWeb, :live_view
alias Livebook.{SessionSupervisor, Session, LiveMarkdown, Notebook}
@impl true
def mount(_params, _session, socket) do
if connected?(socket) do
Phoenix.PubSub.subscribe(Livebook.PubSub, "sessions")
end
session_summaries = sort_se... | 36.56 | 149 | 0.604923 |
9eed431eb60c6f09bc24b9d74b064d52a222215e | 2,041 | exs | Elixir | test/test_helper.exs | elpikel/fun_with_flags | 1c409e8872eb7e370f827a0d471082aeff09cf33 | [
"MIT"
] | 736 | 2017-02-16T12:55:57.000Z | 2022-03-31T19:50:43.000Z | test/test_helper.exs | elpikel/fun_with_flags | 1c409e8872eb7e370f827a0d471082aeff09cf33 | [
"MIT"
] | 86 | 2017-04-02T16:42:33.000Z | 2022-03-25T01:07:13.000Z | test/test_helper.exs | elpikel/fun_with_flags | 1c409e8872eb7e370f827a0d471082aeff09cf33 | [
"MIT"
] | 63 | 2017-04-28T23:38:15.000Z | 2022-03-28T12:49:02.000Z | # If we are not using Ecto and we're not using Phoenix.PubSub, then
# we need a Redis instance for either persistence or PubSub.
does_anything_need_redis = !(
FunWithFlags.Config.persist_in_ecto? && FunWithFlags.Config.phoenix_pubsub?
)
if FunWithFlags.Config.phoenix_pubsub? do
# The Phoenix PubSub application mu... | 43.425532 | 140 | 0.675159 |
9eed4cdc92e6f1990d274d9156f58adb5b32867a | 10,189 | ex | Elixir | lib/axon/metrics.ex | kamidev/axon | 2db36f4142f6b1ee66e8b24f5c83fd2f95b49f5e | [
"Apache-2.0"
] | null | null | null | lib/axon/metrics.ex | kamidev/axon | 2db36f4142f6b1ee66e8b24f5c83fd2f95b49f5e | [
"Apache-2.0"
] | null | null | null | lib/axon/metrics.ex | kamidev/axon | 2db36f4142f6b1ee66e8b24f5c83fd2f95b49f5e | [
"Apache-2.0"
] | null | null | null | defmodule Axon.Metrics do
@moduledoc """
Metric functions.
Metrics are used to measure the performance and compare
performance of models in easy-to-understand terms. Often
times, neural networks use surrogate loss functions such
as negative log-likelihood to indirectly optimize a certain
performance metr... | 24.259524 | 106 | 0.595446 |
9eed6db1358f61daaa8a2a6cc9d767b5bf50e8c9 | 5,761 | exs | Elixir | test/core/sup_tree_core/tenant_executor_pools_manager_test.exs | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | test/core/sup_tree_core/tenant_executor_pools_manager_test.exs | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | test/core/sup_tree_core/tenant_executor_pools_manager_test.exs | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
defmodule AntikytheraCore.TenantExecutorPoolsManagerTest do
use Croma.TestCase
alias Antikythera.Test.ProcessHelper
alias AntikytheraCore.ExecutorPool
alias AntikytheraCore.ExecutorPool.Setting, as: EPoolSetting
alias AntikytheraCore.ExecutorPool... | 41.446043 | 105 | 0.733553 |
9eed8f2e269ba62ccd6f76974fd1a763a2ada21e | 9,606 | ex | Elixir | lib/firestorm_web/markdown/html_renderer.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | lib/firestorm_web/markdown/html_renderer.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | lib/firestorm_web/markdown/html_renderer.ex | palindrom615/firestorm | 0690493c9dcae5c04c63c5321532a7db923e5be7 | [
"MIT"
] | null | null | null | # This is a clone of https://raw.githubusercontent.com/pragdave/earmark/ea6382092c931ab4dd6d0dac6425430c78a61a6d/lib/earmark/html_renderer.ex
#
# Justification for forking this module:
# - Earmark explicitly provides support for this, but we can't reuse the
# existing render_* functions as they are private.
# - No ex... | 30.788462 | 141 | 0.589423 |
9eeda97aa5048492414e67c2573b6f58292b87fd | 14,218 | ex | Elixir | lib/ex_admin/helpers.ex | landonwilkins/ex_admin | bc6fa5c5e82add16b90e92f9abf388f5b04f67ec | [
"MIT"
] | null | null | null | lib/ex_admin/helpers.ex | landonwilkins/ex_admin | bc6fa5c5e82add16b90e92f9abf388f5b04f67ec | [
"MIT"
] | 1 | 2021-07-08T17:24:01.000Z | 2021-11-02T09:49:33.000Z | lib/ex_admin/helpers.ex | landonwilkins/ex_admin | bc6fa5c5e82add16b90e92f9abf388f5b04f67ec | [
"MIT"
] | 2 | 2020-01-14T21:10:46.000Z | 2021-07-07T16:36:49.000Z | Code.ensure_compiled(ExAdmin.Utils)
defmodule ExAdmin.Helpers do
@moduledoc false
require Logger
require Integer
use Xain
import Kernel, except: [to_string: 1]
import ExAdmin.Utils
import ExAdmin.Render
def build_fieldset_legend(nil), do: []
def build_fieldset_legend(""), do: []
def build_fieldse... | 27.554264 | 96 | 0.613518 |
9eee253897dc39bf77b5aa1b884a3b7611db841b | 892 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.037037 | 74 | 0.761211 |
9eee29563801a87b1b39c25add766cf2c9f4e5f1 | 3,778 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/flags.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/flags.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/flags.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... | 43.930233 | 196 | 0.656167 |
9eee406502b943899e9704ecd5ded38ba7d77607 | 1,389 | exs | Elixir | examples/apps/ecto_example/test/ecto_example_test.exs | backdoer/elixir_agent | b42f891ed667fa799d0b82244fb465ce54429127 | [
"Apache-2.0"
] | null | null | null | examples/apps/ecto_example/test/ecto_example_test.exs | backdoer/elixir_agent | b42f891ed667fa799d0b82244fb465ce54429127 | [
"Apache-2.0"
] | null | null | null | examples/apps/ecto_example/test/ecto_example_test.exs | backdoer/elixir_agent | b42f891ed667fa799d0b82244fb465ce54429127 | [
"Apache-2.0"
] | null | null | null | defmodule EctoExampleTest do
use ExUnit.Case
alias NewRelic.Harvest.Collector
setup_all do
# Simulate the agent fully starting up
Process.whereis(Collector.TaskSupervisor) ||
NewRelic.EnabledSupervisor.start_link(:ok)
:ok
end
test "basic HTTP request flow" do
TestHelper.restart_harve... | 24.803571 | 94 | 0.614111 |
9eee4af5b8a7a416920589def45c1d8d0fe8f4df | 1,388 | ex | Elixir | lib/loaded_bike/web/controllers/waypoint_controller.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 48 | 2017-04-25T16:02:08.000Z | 2021-01-23T01:57:29.000Z | lib/loaded_bike/web/controllers/waypoint_controller.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 5 | 2018-03-09T20:17:55.000Z | 2018-07-23T16:29:21.000Z | lib/loaded_bike/web/controllers/waypoint_controller.ex | GBH/pedal | a2d68c3561f186ee3017a21b4170127b1625e18d | [
"MIT"
] | 4 | 2017-05-21T14:38:38.000Z | 2017-12-29T11:09:54.000Z | defmodule LoadedBike.Web.WaypointController do
use LoadedBike.Web, :controller
use LoadedBike.Web.Controller.Helpers
alias LoadedBike.{Tour, Waypoint, Photo}
def show(conn, %{"tour_id" => tour_id, "id" => id}) do
waypoints_query = Waypoint
|> Waypoint.published
|> Waypoint.select_without_gps
... | 27.76 | 74 | 0.631124 |
9eee6663093e270d355918cd1ea1472f24512ab2 | 1,598 | exs | Elixir | test/groupher_server_web/mutation/cms/upvotes/works_upvote_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/cms/upvotes/works_upvote_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/cms/upvotes/works_upvote_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutation.Upvotes.WorksUpvote do
@moduledoc false
use GroupherServer.TestTools
alias GroupherServer.CMS
setup do
{:ok, works} = db_insert(:works)
{:ok, user} = db_insert(:user)
guest_conn = simu_conn(:guest)
user_conn = simu_conn(:user, user)
{:ok, ~m(user_co... | 24.584615 | 82 | 0.61577 |
9eee81b757766b62d316537d4ceaa1cc687bc0df | 88 | exs | Elixir | test/howhow_speak_web/views/page_view_test.exs | pastleo/howhow_speak | c298cc6624cd41da3d3f045ab92d4bcf50b84898 | [
"MIT"
] | 1 | 2020-06-19T11:23:44.000Z | 2020-06-19T11:23:44.000Z | test/howhow_speak_web/views/page_view_test.exs | pastleo/howhow_speak | c298cc6624cd41da3d3f045ab92d4bcf50b84898 | [
"MIT"
] | null | null | null | test/howhow_speak_web/views/page_view_test.exs | pastleo/howhow_speak | c298cc6624cd41da3d3f045ab92d4bcf50b84898 | [
"MIT"
] | null | null | null | defmodule HowhowSpeakWeb.PageViewTest do
use HowhowSpeakWeb.ConnCase, async: true
end
| 22 | 42 | 0.840909 |
9eee88b1c313f2a317e922962ad1e61e0266e4a2 | 1,367 | exs | Elixir | config/config.exs | bengtson/internet_qos | dae17f18aca378bf9d5e9d07500059166f0a8597 | [
"MIT"
] | null | null | null | config/config.exs | bengtson/internet_qos | dae17f18aca378bf9d5e9d07500059166f0a8597 | [
"MIT"
] | null | null | null | config/config.exs | bengtson/internet_qos | dae17f18aca378bf9d5e9d07500059166f0a8597 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.945946 | 82 | 0.755669 |
9eee9174fde37ab0e883f62cd168f918b3452b60 | 198 | exs | Elixir | test/gutenex/geometry_test.exs | tulinmola/gutenex | 09a17dada273e089685176b5a14820430624675f | [
"MIT"
] | 184 | 2015-01-16T23:05:42.000Z | 2018-10-25T18:51:52.000Z | test/gutenex/geometry_test.exs | nicolasva/gutenex | 69aba56001455e3ff6ec6257d95b2f70e3fcffad | [
"MIT"
] | 15 | 2015-05-29T00:28:08.000Z | 2018-10-11T18:55:35.000Z | test/gutenex/geometry_test.exs | nicolasva/gutenex | 69aba56001455e3ff6ec6257d95b2f70e3fcffad | [
"MIT"
] | 32 | 2015-02-14T07:39:48.000Z | 2018-09-12T21:01:02.000Z | defmodule Gutenex.GeometryTest do
use ExUnit.Case, async: true
alias Gutenex.Geometry
test "#move_to should move to a point" do
assert Geometry.move_to({20, 40}) == "20 40 m\n"
end
end
| 22 | 52 | 0.707071 |
9eee99d11ad9f8806d0f11404008324e27fd6384 | 2,653 | ex | Elixir | lib/ex_sdp/serializer.ex | membraneframework/membrane-protocol-sdp | 4cb3028d62a722e364196b58b73732567306a931 | [
"Apache-2.0"
] | null | null | null | lib/ex_sdp/serializer.ex | membraneframework/membrane-protocol-sdp | 4cb3028d62a722e364196b58b73732567306a931 | [
"Apache-2.0"
] | 1 | 2020-07-31T10:37:43.000Z | 2020-08-10T09:22:13.000Z | lib/ex_sdp/serializer.ex | membraneframework/membrane-protocol-sdp | 4cb3028d62a722e364196b58b73732567306a931 | [
"Apache-2.0"
] | null | null | null | defmodule ExSDP.Serializer do
@moduledoc """
Module providing helper functions for serialization.
"""
@doc """
Serializes both sdp lines (<type>=<value>) and sdp parameters (<parameter>=<value>)
"""
@spec maybe_serialize(type :: binary(), value :: term()) :: binary()
def maybe_serialize(_type, nil), do... | 38.449275 | 91 | 0.655484 |
9eeec34973f23d80bc8831223a07bb602ddcecce | 2,496 | ex | Elixir | lib/ash/resource/relationships/belongs_to.ex | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | lib/ash/resource/relationships/belongs_to.ex | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | lib/ash/resource/relationships/belongs_to.ex | ChristianTovar/ash | 66435322786c5d0b90a34051da969b68dcc8a045 | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Relationships.BelongsTo do
@moduledoc "Represents a belongs_to relationship on a resource"
defstruct [
:name,
:destination,
:primary_key?,
:define_field?,
:field_type,
:destination_field,
:private?,
:source_field,
:source,
:not_found_message,
:viol... | 30.072289 | 152 | 0.515224 |
9eeeca0ea2d286469ac3b9ab124bdc48eda01f1a | 531 | ex | Elixir | examples/bot/lib/example.ex | ryanwinchester/irc | acb16b470144dcd664fb2026afa0b9a1727f2900 | [
"MIT"
] | 147 | 2015-01-12T15:05:12.000Z | 2022-03-17T06:32:41.000Z | examples/bot/lib/example.ex | ryanwinchester/irc | acb16b470144dcd664fb2026afa0b9a1727f2900 | [
"MIT"
] | 74 | 2015-01-24T23:07:53.000Z | 2021-04-23T14:27:43.000Z | examples/bot/lib/example.ex | ryanwinchester/irc | acb16b470144dcd664fb2026afa0b9a1727f2900 | [
"MIT"
] | 51 | 2015-02-13T21:00:38.000Z | 2022-03-03T15:38:12.000Z | defmodule Example do
use Application
alias Example.Bot
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@impl true
def start(_type, _args) do
children =
Application.get_env(:exirc_example, :bots)
|> Enum.map(fn bot -> worker(Bot, [bot]) end)
... | 26.55 | 61 | 0.704331 |
9eeeca5c057714005737bddb1d2aea44e3a6cd12 | 88 | exs | Elixir | test/utils_test.exs | ntsai/xadmin | 82d8be63e69483ff66472481e66f9870face355b | [
"MIT"
] | 5 | 2016-08-30T01:23:50.000Z | 2021-09-22T14:39:00.000Z | test/utils_test.exs | ntsai/xadmin | 82d8be63e69483ff66472481e66f9870face355b | [
"MIT"
] | null | null | null | test/utils_test.exs | ntsai/xadmin | 82d8be63e69483ff66472481e66f9870face355b | [
"MIT"
] | 1 | 2021-12-10T11:10:55.000Z | 2021-12-10T11:10:55.000Z | defmodule XAdmin.UtilsTest do
use ExUnit.Case, async: true
doctest XAdmin.Utils
end
| 17.6 | 30 | 0.784091 |
9eeecd16adb7adbb8087eff800c5fe26f926d51f | 493 | ex | Elixir | apps/hefty/lib/hefty/repo/trade.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 49 | 2019-10-28T22:27:28.000Z | 2021-10-11T06:40:29.000Z | apps/hefty/lib/hefty/repo/trade.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 9 | 2019-08-30T13:15:36.000Z | 2019-10-10T21:25:14.000Z | apps/hefty/lib/hefty/repo/trade.ex | Cinderella-Man/crypto-streamer | b1e990d375f7143c5149930be991249f0d9c3ee3 | [
"MIT"
] | 7 | 2019-10-31T06:19:26.000Z | 2021-09-30T04:20:58.000Z | defmodule Hefty.Repo.Trade do
@moduledoc false
use Ecto.Schema
@primary_key {:id, :integer, autogenerate: false}
schema "trades" do
field(:symbol, :string)
field(:buy_price, :string)
field(:sell_price, :string)
field(:quantity, :string)
field(:state, :string)
field(:buy_time, :integer... | 21.434783 | 51 | 0.6714 |
9eef3ef19e97d8c30e821f82b3792f4c26280c83 | 2,138 | ex | Elixir | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/set_iam_policy_request.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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... | 42.76 | 321 | 0.749298 |
9eef7e82b5d7feaf65d3bd2aefeb410ec8ab7419 | 2,385 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/day_part_targeting.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/day_part_targeting.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v35/model/day_part_targeting.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45 | 515 | 0.716562 |
9eef8a0834f9772d40d351de80b4e3efc151fe4c | 4,091 | ex | Elixir | lib/legend/error_handler.ex | naramore/legend | 030cacbb761de27c8db73a321ebd2fda51152a15 | [
"MIT"
] | null | null | null | lib/legend/error_handler.ex | naramore/legend | 030cacbb761de27c8db73a321ebd2fda51152a15 | [
"MIT"
] | 16 | 2019-01-15T10:18:03.000Z | 2019-10-22T10:17:06.000Z | lib/legend/error_handler.ex | naramore/legend | 030cacbb761de27c8db73a321ebd2fda51152a15 | [
"MIT"
] | null | null | null | defmodule Legend.ErrorHandler do
@moduledoc """
"""
alias Legend.{Event, Hook, Utils}
# @stacktrace_modules_blacklist []
# @stacktrace_functions_whitelist []
@typedoc """
"""
@type accumulator :: %{
effects_so_far: Legend.effects,
reason: term,
}
@typedoc """
"""
@type error_reason :... | 32.728 | 137 | 0.651186 |
9eefae3dd946da1b969487cb1512cd06431376ef | 5,601 | ex | Elixir | lib/jhn_elixir/gen_statem.ex | JanHenryNystrom/jhn_elixir | 4feebf6f0f24829965515cdd9a160f3a3695cb7f | [
"Apache-2.0"
] | null | null | null | lib/jhn_elixir/gen_statem.ex | JanHenryNystrom/jhn_elixir | 4feebf6f0f24829965515cdd9a160f3a3695cb7f | [
"Apache-2.0"
] | null | null | null | lib/jhn_elixir/gen_statem.ex | JanHenryNystrom/jhn_elixir | 4feebf6f0f24829965515cdd9a160f3a3695cb7f | [
"Apache-2.0"
] | null | null | null | ##==============================================================================
## Copyright 2020 Jan Henry Nystrom <JanHenryNystrom@gmail.com>
##
## 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 Licen... | 27.591133 | 80 | 0.535262 |
9eefdd95b0c6c0c5355a81b6b6e63f97dd63bff5 | 114 | exs | Elixir | test/leader_test.exs | atlas-forks/swarm_demo | 30337113eed7f307d31373ff7081c71a8a30a950 | [
"MIT"
] | 8 | 2017-05-17T23:34:23.000Z | 2020-05-03T10:21:17.000Z | test/leader_test.exs | atlas-forks/swarm_demo | 30337113eed7f307d31373ff7081c71a8a30a950 | [
"MIT"
] | null | null | null | test/leader_test.exs | atlas-forks/swarm_demo | 30337113eed7f307d31373ff7081c71a8a30a950 | [
"MIT"
] | 2 | 2018-01-15T15:55:59.000Z | 2019-01-21T03:16:23.000Z | defmodule LeaderTest do
use ExUnit.Case
doctest Leader
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.666667 | 23 | 0.666667 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.