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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f3534558d8b544b9fa91d2686a44f372b052949 | 76 | exs | Elixir | test/takso_web/views/page_view_test.exs | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | test/takso_web/views/page_view_test.exs | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | test/takso_web/views/page_view_test.exs | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | defmodule TaksoWeb.PageViewTest do
use TaksoWeb.ConnCase, async: true
end
| 19 | 36 | 0.815789 |
3f3545ef4120268daafbe106b29291d01b4e80ed | 173 | ex | Elixir | lib/hologram/template/evaluators/text_node.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/template/evaluators/text_node.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/template/evaluators/text_node.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | alias Hologram.Template.VDOM.TextNode
alias Hologram.Template.Evaluator
defimpl Evaluator, for: TextNode do
def evaluate(%{content: content}, _) do
content
end
end
| 19.222222 | 41 | 0.768786 |
3f3563be7fd9a2eb87dd949d93dded9ec36ad791 | 489 | ex | Elixir | lib/mix/tasks/materia.commerce.gen.migration.ex | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 1 | 2019-11-19T07:38:38.000Z | 2019-11-19T07:38:38.000Z | lib/mix/tasks/materia.commerce.gen.migration.ex | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 31 | 2018-12-26T02:05:55.000Z | 2021-05-14T03:33:07.000Z | lib/mix/tasks/materia.commerce.gen.migration.ex | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.MateriaCommerce.Gen.Migration do
@shortdoc "Generates MateriaCommerce's migration files."
use Mix.Task
alias Mix.Tasks.Materia.Gen.Migration
@migrations_file_path "priv/repo/migrations"
@migration_module_path "deps/materia_commerce/lib/mix/templates"
@doc false
def run(args) do
... | 28.764706 | 82 | 0.787321 |
3f356adde95d2a4d63e321adbe7ea8af2dcba538 | 142 | ex | Elixir | lib/live_sup_web/views/api/seed_view.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/views/api/seed_view.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/views/api/seed_view.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Api.SeedView do
use LiveSupWeb, :view
def render("show.json", %{result: result}) do
%{status: result}
end
end
| 17.75 | 47 | 0.690141 |
3f35b45e8777f5ac3b862c92d68f14f461b4e221 | 3,073 | ex | Elixir | lib/animina_web/router.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 1 | 2021-04-17T20:36:24.000Z | 2021-04-17T20:36:24.000Z | lib/animina_web/router.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 3 | 2021-04-15T19:45:43.000Z | 2021-04-16T06:08:24.000Z | lib/animina_web/router.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | null | null | null | defmodule AniminaWeb.Router do
use AniminaWeb, :router
import AniminaWeb.UserAuth
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {AniminaWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
... | 32.691489 | 94 | 0.729255 |
3f364b6c74a6376c144901f9b6aa32101d570e03 | 3,290 | ex | Elixir | lib/yacto/migration/migrator.ex | h1u2i3/yacto | 4070107b86a83f2a39f5441a3397b58f2d978db5 | [
"Apache-2.0"
] | null | null | null | lib/yacto/migration/migrator.ex | h1u2i3/yacto | 4070107b86a83f2a39f5441a3397b58f2d978db5 | [
"Apache-2.0"
] | null | null | null | lib/yacto/migration/migrator.ex | h1u2i3/yacto | 4070107b86a83f2a39f5441a3397b58f2d978db5 | [
"Apache-2.0"
] | null | null | null | defmodule Yacto.Migration.Migrator do
require Logger
@spec migrated_versions(Ecto.Repo.t(), atom, module) :: [integer]
def migrated_versions(repo, app, schema) do
verbose_schema_migration(repo, "retrieve migrated versions", fn ->
Yacto.Migration.SchemaMigration.ensure_schema_migrations_table!(repo)
... | 29.375 | 96 | 0.650152 |
3f365ebb4118c06d5708bcacbf59e74245a165ac | 866 | exs | Elixir | gallows/mix.exs | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | gallows/mix.exs | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | gallows/mix.exs | jeethridge/elixir-hangman | ff1202fd1f54cad887180c900670306a20fe4339 | [
"Unlicense"
] | null | null | null | defmodule Gallows.MixProject do
use Mix.Project
def project do
[
app: :gallows,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
en... | 22.205128 | 57 | 0.524249 |
3f366163a66af61943e308c6845f8d9400cc7d83 | 1,222 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/connection.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.030303 | 114 | 0.752864 |
3f3675c2a0cde1113c748cc0c0e96f10fe645cff | 1,889 | exs | Elixir | clients/memcache/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/memcache/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/memcache/mix.exs | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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... | 28.19403 | 160 | 0.660667 |
3f367ee5ab2baa7dd016ea54923d11bf119a17da | 1,093 | ex | Elixir | test/support/conn_case.ex | silppuri/daily | a31034dedbcc2eb74bd2e07e703df836c5b3607f | [
"MIT"
] | null | null | null | test/support/conn_case.ex | silppuri/daily | a31034dedbcc2eb74bd2e07e703df836c5b3607f | [
"MIT"
] | null | null | null | test/support/conn_case.ex | silppuri/daily | a31034dedbcc2eb74bd2e07e703df836c5b3607f | [
"MIT"
] | 1 | 2019-09-05T12:37:23.000Z | 2019-09-05T12:37:23.000Z | defmodule DailyWeb.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
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the da... | 24.288889 | 67 | 0.703568 |
3f36b46709d79f91d7a1746a3c8fbd9d438a816e | 2,117 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/node_group_list_warning.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/node_group_list_warning.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/node_group_list_warning.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... | 39.943396 | 240 | 0.718942 |
3f36fc0a0f1135fa3d0b7da497c80de00906e6c8 | 2,629 | ex | Elixir | elixir/lib/homework/transactions.ex | Billzabob/divvy-homework | 1be2b35d6436dbb3ff1536ed232b2bc61730081d | [
"MIT"
] | null | null | null | elixir/lib/homework/transactions.ex | Billzabob/divvy-homework | 1be2b35d6436dbb3ff1536ed232b2bc61730081d | [
"MIT"
] | null | null | null | elixir/lib/homework/transactions.ex | Billzabob/divvy-homework | 1be2b35d6436dbb3ff1536ed232b2bc61730081d | [
"MIT"
] | null | null | null | defmodule Homework.Transactions do
@moduledoc """
The Transactions context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Transactions.Transaction
@doc """
Returns the list of transactions.
## Examples
iex> list_transactions([])
[%Transaction{}, ...]
"""
d... | 21.032 | 82 | 0.650057 |
3f370f26f18b46f14c003c36bc08167593f738ca | 1,103 | exs | Elixir | test/event/event_handler_macro_test.exs | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 1,220 | 2017-10-31T10:56:40.000Z | 2022-03-31T17:40:19.000Z | test/event/event_handler_macro_test.exs | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 294 | 2017-11-03T10:33:41.000Z | 2022-03-24T08:36:42.000Z | test/event/event_handler_macro_test.exs | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 208 | 2017-11-03T10:56:47.000Z | 2022-03-14T05:49:38.000Z | defmodule Commanded.Event.EventHandlerMacroTest do
use ExUnit.Case
alias Commanded.Event.IgnoredEvent
alias Commanded.ExampleDomain.BankApp
alias Commanded.ExampleDomain.BankAccount.Events.{BankAccountOpened, MoneyDeposited}
alias Commanded.ExampleDomain.BankAccount.AccountBalanceHandler
alias Commanded.He... | 28.282051 | 86 | 0.699003 |
3f3715ac5be2fc135ee60d08c0dff648f61e8147 | 1,472 | ex | Elixir | clients/books/lib/google_api/books/v1/model/volume_recommended_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/books/lib/google_api/books/v1/model/volume_recommended_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume_recommended_info.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 ... | 31.319149 | 110 | 0.743886 |
3f37310c8b32fd7e6e6346d1ccf1f69580a77600 | 4,138 | exs | Elixir | test/acceptance/ast/links_images/titles_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/titles_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | null | null | null | test/acceptance/ast/links_images/titles_test.exs | Hexlet/earmark | 3c465e5bc2473acd952721811002dad4bb6f9109 | [
"Apache-1.1"
] | 1 | 2020-03-31T19:53:15.000Z | 2020-03-31T19:53:15.000Z | defmodule Acceptance.Ast.LinksImages.TitlesTest do
use ExUnit.Case, async: true
import Support.Helpers, only: [as_ast: 1, parse_html: 1]
@moduletag :ast
describe "Links with titles" do
test "two titled links" do
mark_tmp = "[link](/uri \"title\")"
markdown = "#{ mark_tmp } #{ mark_tmp }\n"
... | 36.298246 | 155 | 0.462059 |
3f3749676beacedb5118eb66d2f4d29b4b306204 | 1,413 | exs | Elixir | mix.exs | joydrive/upload | 81614ab11a8f90add04cbfbbd38dc476a99c9bd0 | [
"MIT"
] | null | null | null | mix.exs | joydrive/upload | 81614ab11a8f90add04cbfbbd38dc476a99c9bd0 | [
"MIT"
] | null | null | null | mix.exs | joydrive/upload | 81614ab11a8f90add04cbfbbd38dc476a99c9bd0 | [
"MIT"
] | null | null | null | defmodule Upload.Mixfile do
use Mix.Project
def project do
[
app: :upload,
package: package(),
version: "0.0.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
dialyzer: [
plt_add_apps: [:ecto, :ex... | 24.362069 | 70 | 0.537863 |
3f375ef9aa5591e8fd1a89be41d02220865b163a | 1,478 | ex | Elixir | lib/ex_config/cache/in_module.ex | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | lib/ex_config/cache/in_module.ex | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | lib/ex_config/cache/in_module.ex | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | defmodule ExConfig.Cache.InModule do
@moduledoc """
"""
@behaviour ExConfig.Cache
alias ExConfig.Mod
@impl true
@spec wrap(module, Keyword.t) :: {:ok, module}
def wrap(source, target: target), do: compile_module(source, target)
@impl true
@spec get(Keyword.t) :: module
def get(target: target), do:... | 25.050847 | 70 | 0.59134 |
3f3787d5fe644372f8ddf9971cee3b2f572bc209 | 5,530 | ex | Elixir | lib/logger_file_backend.ex | MisterToolbox/logger_file_backend | ee10e27a5aa792ed927cfcbaff603935c9d6e8bf | [
"MIT"
] | null | null | null | lib/logger_file_backend.ex | MisterToolbox/logger_file_backend | ee10e27a5aa792ed927cfcbaff603935c9d6e8bf | [
"MIT"
] | null | null | null | lib/logger_file_backend.ex | MisterToolbox/logger_file_backend | ee10e27a5aa792ed927cfcbaff603935c9d6e8bf | [
"MIT"
] | null | null | null | defmodule LoggerFileBackend do
@moduledoc"""
"""
@behaviour :gen_event
@type path :: String.t
@type file :: :file.io_device
@type inode :: File.Stat.t
@type format :: String.t
@type level :: Logger.level
@type metadata :: [atom]
@default_format "$time $metadata[$level] $me... | 28.071066 | 138 | 0.599638 |
3f37926548f5e7d890791901c160616db7e48417 | 395 | ex | Elixir | lib/discovery_api_web/controllers/organization_controller.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | lib/discovery_api_web/controllers/organization_controller.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | lib/discovery_api_web/controllers/organization_controller.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryApiWeb.OrganizationController do
use DiscoveryApiWeb, :controller
alias DiscoveryApi.Schemas.Organizations
plug(:accepts, ["json"])
def fetch_detail(conn, %{"id" => id}) do
case Organizations.get_organization(id) do
{:error, _} -> render_error(conn, 404, "Not Found")
{:ok, r... | 28.214286 | 69 | 0.701266 |
3f37cb6ebe3996631fe68541a0776643255ed3bf | 395 | ex | Elixir | lib/scentenced/perfumes/perfume.ex | cNille/scentenced | ca6cc97bec1122047be928bb62b5ab0021cb88e8 | [
"MIT"
] | null | null | null | lib/scentenced/perfumes/perfume.ex | cNille/scentenced | ca6cc97bec1122047be928bb62b5ab0021cb88e8 | [
"MIT"
] | 1 | 2020-07-17T08:20:59.000Z | 2020-07-17T08:20:59.000Z | lib/scentenced/perfumes/perfume.ex | cNille/scentenced | ca6cc97bec1122047be928bb62b5ab0021cb88e8 | [
"MIT"
] | null | null | null | defmodule Scentenced.Perfumes.Perfume do
use Ecto.Schema
import Ecto.Changeset
schema "perfumes" do
field :name, :string
field :description, :string
field :family, :string
timestamps()
end
@doc false
def changeset(fragrant, attrs) do
fragrant
|> cast(attrs, [:name, :description, :f... | 20.789474 | 56 | 0.678481 |
3f37d3f69765e6cf4af15bf108b0bfde28f6f046 | 510 | exs | Elixir | examples/apply_after.exs | wstucco/micro_timer | e666981778a1ffabf61641f9ebfc1c42db70f262 | [
"MIT"
] | 10 | 2018-11-26T09:00:49.000Z | 2022-02-24T06:08:37.000Z | examples/apply_after.exs | wstucco/micro_timer | e666981778a1ffabf61641f9ebfc1c42db70f262 | [
"MIT"
] | null | null | null | examples/apply_after.exs | wstucco/micro_timer | e666981778a1ffabf61641f9ebfc1c42db70f262 | [
"MIT"
] | null | null | null | # run from the project root with
# elixir --no-halt -r lib/* examples/apply_after.exs
defmodule FpsCounter do
@timeout Float.round(1_000_000 / 60) |> trunc
def run do
MicroTimer.apply_after(@timeout, &show_fps/1, [System.monotonic_time(:microsecond)])
end
def show_fps(start) do
fps = 1_000_000 / (Sy... | 26.842105 | 88 | 0.711765 |
3f37dda78b51b009568f31b2106c421b3acf9a7f | 1,550 | ex | Elixir | lib/poe_api/oauth/client_credentials.ex | simplecastapps/poe-api | 56e9b6ebfcd931c4023e555534a753f5ad32cf9c | [
"MIT"
] | 4 | 2016-01-14T05:33:21.000Z | 2017-02-01T14:10:57.000Z | lib/poe_api/oauth/client_credentials.ex | poegroup/poe-api | d056412c336e30747f811fb5124e14ecb1b43b98 | [
"MIT"
] | null | null | null | lib/poe_api/oauth/client_credentials.ex | poegroup/poe-api | d056412c336e30747f811fb5124e14ecb1b43b98 | [
"MIT"
] | 3 | 2017-01-09T14:34:54.000Z | 2020-12-17T07:14:33.000Z | defmodule PoeApi.OAuth.ClientCredentials do
defmacro __using__(_opts) do
quote do
use Mazurka.Resource
alias PoeApi.Token
input client_id
input client_secret
input scope
input grant_type
let conn = var!(conn)
validation client_id_valid?(var!(client_id), var!(conn... | 25 | 70 | 0.435484 |
3f3806033e856c29d7ac713cb92933f90b103854 | 2,162 | ex | Elixir | lib/routemaster/drain/event_state.ex | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | 2 | 2017-09-20T08:33:20.000Z | 2018-08-17T11:57:09.000Z | lib/routemaster/drain/event_state.ex | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | 5 | 2017-09-25T21:48:48.000Z | 2018-02-26T09:06:01.000Z | lib/routemaster/drain/event_state.ex | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | null | null | null | defmodule Routemaster.Drain.EventState do
@moduledoc """
Persisted data.
Each `EventState` is associated to the URL of a resource and
stores the timestamp of the latest Drain event received for
that URL.
They are stored in Redis, with the URL acting as key.
They are used to keep track of the most recen... | 24.022222 | 69 | 0.661887 |
3f383196b8e301ae79e229caf9cdf65fde808f41 | 1,560 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/test_iam_permissions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/test_iam_permissions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/test_iam_permissions_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 ... | 32.5 | 134 | 0.745513 |
3f3876b8a37976aebf8c3942387fff3335902411 | 145 | ex | Elixir | lib/companion_web/metrics/phoenix_instrumenter.ex | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T18:20:22.000Z | 2018-10-10T18:20:22.000Z | lib/companion_web/metrics/phoenix_instrumenter.ex | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | 23 | 2018-06-07T15:13:15.000Z | 2019-07-30T09:06:03.000Z | lib/companion_web/metrics/phoenix_instrumenter.ex | praekeltfoundation/nurseconnect-companion | 9afaabaf3ae3e0123abcbd12e0a2073b681e9052 | [
"BSD-3-Clause"
] | null | null | null | defmodule CompanionWeb.PhoenixInstrumenter do
@moduledoc """
Metrics instrumenter for phoenix
"""
use Prometheus.PhoenixInstrumenter
end
| 20.714286 | 45 | 0.793103 |
3f38918373c94d7dfb655523e9530965a37bd294 | 1,492 | exs | Elixir | mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | mix.exs | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | mix.exs | 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 writing, ... | 27.62963 | 79 | 0.649464 |
3f389bbd3d462f56633b493e8549c19788df6d65 | 806 | ex | Elixir | lib/instagram_clone_web/live/modal_component.ex | elixirprogrammer/InstagramClonePETAL | 5710f89de32a95b0416a960a46d081e7ad4833ab | [
"MIT"
] | 69 | 2021-04-11T21:57:26.000Z | 2022-03-30T01:09:40.000Z | lib/instagram_clone_web/live/modal_component.ex | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 1 | 2021-04-16T17:38:11.000Z | 2021-04-16T17:38:11.000Z | lib/instagram_clone_web/live/modal_component.ex | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 4 | 2021-04-16T10:45:18.000Z | 2021-07-23T15:08:08.000Z | defmodule InstagramCloneWeb.ModalComponent do
use InstagramCloneWeb, :live_component
@impl true
def render(assigns) do
~L"""
<div
class="fixed top-0 left-0 flex items-center justify-center w-full h-screen bg-black bg-opacity-50 z-50"
phx-capture-click="close"
phx-window-keydown="close"
... | 28.785714 | 109 | 0.629032 |
3f38a62217828ef25c524b98617f4efa1f507a8f | 245 | ex | Elixir | lib/changelog_web/meta/canonical_url.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog_web/meta/canonical_url.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog_web/meta/canonical_url.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.Meta.CanonicalUrl do
alias ChangelogWeb.PostView
def canonical_url(assigns), do: get(assigns)
defp get(%{view_module: PostView, post: %{canonical_url: url}}) when is_binary(url), do: url
defp get(_), do: nil
end
| 27.222222 | 94 | 0.742857 |
3f38bb670f92cdfd9f85605cbb31176ecce38ca1 | 1,999 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/backend_bucket_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/backend_bucket_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/backend_bucket_list_warning_data.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"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... | 39.98 | 527 | 0.741371 |
3f38bbc5213def715ea7a3d402e28a0576ff8dea | 4,073 | exs | Elixir | test/vintage_net/route/properties_test.exs | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 85 | 2019-05-09T14:54:38.000Z | 2022-02-08T16:52:04.000Z | test/vintage_net/route/properties_test.exs | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 132 | 2019-05-09T15:57:59.000Z | 2022-02-28T16:31:22.000Z | test/vintage_net/route/properties_test.exs | axelson/vintage_net | 68866ff223fa40e7ad6fd4d9fb2f7960cf51b1ca | [
"Apache-2.0"
] | 14 | 2019-07-08T19:18:23.000Z | 2022-02-08T16:52:05.000Z | defmodule VintageNet.Route.PropertiesTest do
use ExUnit.Case
alias VintageNet.Route.{Calculator, InterfaceInfo, Properties}
doctest Calculator
setup do
# Clean up the properties we test before and after
clear_all = fn ->
VintageNet.PropertyTable.clear(VintageNet, ["available_interfaces"])
... | 32.584 | 79 | 0.564449 |
3f38bde4baacb72cffc494744950bd6989b9de36 | 280 | exs | Elixir | test/template_test.exs | grekko/mastery | f80dfcb660f23187970442ea237e4128ce3ac262 | [
"MIT"
] | null | null | null | test/template_test.exs | grekko/mastery | f80dfcb660f23187970442ea237e4128ce3ac262 | [
"MIT"
] | null | null | null | test/template_test.exs | grekko/mastery | f80dfcb660f23187970442ea237e4128ce3ac262 | [
"MIT"
] | null | null | null | defmodule TemplateTest do
use ExUnit.Case
use QuizBuilders
test "building compiles the raw template" do
fields = template_fields()
template = Template.new(fields)
assert is_nil(Keyword.get(fields, :compiled))
assert not is_nil(template.compiled)
end
end
| 21.538462 | 49 | 0.735714 |
3f38cf7e994e7ac1210d505b18160529f6a156e0 | 505 | ex | Elixir | Chapter 6/pooly/lib/worker_supervisor.ex | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | Chapter 6/pooly/lib/worker_supervisor.ex | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | Chapter 6/pooly/lib/worker_supervisor.ex | sebarys/learning-elixir | 6f105205b70e5bdaffe7bbc11ef4c1c7c677d6d1 | [
"Apache-2.0"
] | null | null | null | defmodule Pooly.WorkerSupervisor do
use Supervisor
## Client API
def start_link(pool_server, {_, _, _} = mfa) do
Supervisor.start_link(__MODULE__, [pool_server, mfa])
end
## Server API
def init([pool_server, {m, f, a}]) do
Process.link(pool_server)
worker_opts = [restart: :temporary,
shutdown: 5... | 22.954545 | 56 | 0.681188 |
3f38fa521f6fecfa8ec146b3356199a6df67a69b | 459 | exs | Elixir | test/models/category_test.exs | itmaster921/crowdfunding-api | 994d75d6c28356b45531b71251eff39a309d414b | [
"MIT"
] | 1 | 2020-05-24T15:18:36.000Z | 2020-05-24T15:18:36.000Z | test/models/category_test.exs | itmaster921/crowdfunding-api | 994d75d6c28356b45531b71251eff39a309d414b | [
"MIT"
] | null | null | null | test/models/category_test.exs | itmaster921/crowdfunding-api | 994d75d6c28356b45531b71251eff39a309d414b | [
"MIT"
] | null | null | null | defmodule CrowdfundingApi.CategoryTest do
use CrowdfundingApi.ModelCase
alias CrowdfundingApi.Category
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Category.changeset(%Category{}, @valid_attrs)
assert changeset.valid?
end
test "c... | 24.157895 | 63 | 0.747277 |
3f39007926159ababcff92d3503b5b603ed24cee | 10,495 | ex | Elixir | lib/blue_jet/app/identity/user.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/identity/user.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/identity/user.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Identity.User do
use BlueJet, :data
alias BlueJet.Utils
alias BlueJet.Identity.{Account, RefreshToken, AccountMembership, PhoneVerificationCode}
schema "users" do
field :status, :string, default: "active"
field :username, :string
field :email, :string
field :phone_number, :... | 28.911846 | 103 | 0.697284 |
3f3932374ba2d1aad0b168eb772972451dcd6e77 | 2,863 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/security_settings.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/security_settings.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/security_settings.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... | 51.125 | 561 | 0.765281 |
3f393608d6806cfd7bc0308f1a05cc17c805b7e4 | 454 | exs | Elixir | ttrack-backend/config/test.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | ttrack-backend/config/test.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | ttrack-backend/config/test.exs | kacper-marzecki/ttrack | 603cbe91800feb680996827f66eafd458b9b8a90 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :ttrack, Ttrack.Repo,
username: "postgres",
password: "postgres",
database: "ttrack_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :ttrack,... | 23.894737 | 56 | 0.729075 |
3f394d22b65368327110a15d575eeddd7b28e6f1 | 2,448 | ex | Elixir | lib/rss_watcher/http/adapter/tesla.ex | matthewoden/rss_watcher | 218e6354b4771a3674e7928456b5988a0a5655e6 | [
"MIT"
] | 2 | 2019-11-22T15:44:08.000Z | 2020-01-12T18:19:35.000Z | lib/rss_watcher/http/adapter/tesla.ex | matthewoden/rss_watcher | 218e6354b4771a3674e7928456b5988a0a5655e6 | [
"MIT"
] | null | null | null | lib/rss_watcher/http/adapter/tesla.ex | matthewoden/rss_watcher | 218e6354b4771a3674e7928456b5988a0a5655e6 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(Tesla) do
defmodule RssWatcher.HTTP.Tesla do
@moduledoc """
`Tesla` adapter for HTTP fetching. Used by default if no configuration is
provided.
## Installation
To use, add the following to your dependancies.
```
{:tesla, "~> 1.2.1"}
```
You may need to ... | 29.493976 | 125 | 0.591503 |
3f394fcffb4e0578a33c3e771df44e3c2a4fa5a3 | 150 | exs | Elixir | priv/repo/migrations/20190402172423_add_index_to_pageviews.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20190402172423_add_index_to_pageviews.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20190402172423_add_index_to_pageviews.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AddIndexToPageviews do
use Ecto.Migration
def change do
create index("pageviews", [:hostname])
end
end
| 18.75 | 58 | 0.76 |
3f3953f853849f9d5e0af0ebad8ffa47d99d4d40 | 2,752 | ex | Elixir | elixir_backend/clubhouse_phx/lib/clubhouse_phx/accounts.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 1 | 2021-05-16T08:17:37.000Z | 2021-05-16T08:17:37.000Z | elixir_backend/clubhouse_phx/lib/clubhouse_phx/accounts.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | elixir_backend/clubhouse_phx/lib/clubhouse_phx/accounts.ex | yusufaine/nus-clubhouse | eae8223d26111bab5e981c95b539c964293908e8 | [
"MIT"
] | 2 | 2021-05-23T07:12:40.000Z | 2021-10-11T02:59:40.000Z | # defmodule ClubhousePhx.Accounts do
# @moduledoc """
# The Accounts context.
# """
# # import Ecto.Query, warn: false
# alias ClubhousePhx.{Accounts.User, Repo, Sessions, Sessions.Session}
# @type changeset_error :: {:error, Ecto.Changeset.t()}
# @doc """
# Returns the list of users.
# """
# @s... | 25.247706 | 88 | 0.580669 |
3f3956965137e20cbe9dff17faa97220d34c749c | 55 | ex | Elixir | lib/mtpo_web/views/page_view.ex | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | lib/mtpo_web/views/page_view.ex | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | lib/mtpo_web/views/page_view.ex | teaearlgraycold/HippoGuesser | f47fb0636c841ce9b579c07e423c980b17cb9965 | [
"MIT"
] | null | null | null | defmodule MtpoWeb.PageView do
use MtpoWeb, :view
end
| 13.75 | 29 | 0.781818 |
3f396592013d248d822eb3bc12d8dd16ca05473c | 1,230 | ex | Elixir | lib/console/application.ex | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | null | null | null | lib/console/application.ex | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | 14 | 2022-03-02T17:01:59.000Z | 2022-03-30T17:45:47.000Z | lib/console/application.ex | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | null | null | null | defmodule Console.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
# Define workers and child supervisors to be supervised
children = [
{Task.Supervisor, name: ConsoleWeb.TaskSupervisor},
{C... | 35.142857 | 137 | 0.695122 |
3f398cee0d17b301d1f120ea4a207da2f7d06abe | 2,006 | ex | Elixir | adv_2020/lib/day_17.ex | SamuelSarle/advent | 31025f7b081826cb51b37a2d8b8d263413b71086 | [
"Unlicense"
] | null | null | null | adv_2020/lib/day_17.ex | SamuelSarle/advent | 31025f7b081826cb51b37a2d8b8d263413b71086 | [
"Unlicense"
] | null | null | null | adv_2020/lib/day_17.ex | SamuelSarle/advent | 31025f7b081826cb51b37a2d8b8d263413b71086 | [
"Unlicense"
] | null | null | null | defmodule DaySeventeen do
def solve(input, opts \\ []) do
cycles = Keyword.get(opts, :cycles, 6)
input
|> format_input()
|> step(cycles)
|> count_active()
end
def format_input(input) do
input
|> String.split("", trim: true)
|> build_map()
end
def build_map(input) do
inpu... | 20.895833 | 62 | 0.50349 |
3f3993bd120a6914acfd7e68a21b4e3e427b3e1c | 554 | exs | Elixir | priv/repo/migrations/20180627231041_create_replies.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | priv/repo/migrations/20180627231041_create_replies.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | priv/repo/migrations/20180627231041_create_replies.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.Repo.Migrations.CreateReplies do
use Ecto.Migration
def change do
create table(:replies, primary_key: false) do
add :id, :binary_id, primary_key: true
add :space_id, references(:spaces, on_delete: :nothing, type: :binary_id), null: false
add :space_user_id, references(:space_... | 27.7 | 92 | 0.680505 |
3f39a63f0e9d5b84b934437a8f95a74d7ef2129b | 2,355 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/network_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/network_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/network_config.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... | 47.1 | 431 | 0.759236 |
3f39bd7efce166aa83cdf981a0d8e9d020ee1a0c | 323 | ex | Elixir | lib/bolt_sips/config_agent.ex | Badiapp/bolt_sips | ea5e1ae3295700a9f9b0324d26d953845da17050 | [
"Apache-2.0"
] | null | null | null | lib/bolt_sips/config_agent.ex | Badiapp/bolt_sips | ea5e1ae3295700a9f9b0324d26d953845da17050 | [
"Apache-2.0"
] | null | null | null | lib/bolt_sips/config_agent.ex | Badiapp/bolt_sips | ea5e1ae3295700a9f9b0324d26d953845da17050 | [
"Apache-2.0"
] | null | null | null | defmodule Bolt.Sips.ConfigAgent do
@moduledoc """
just hold the user config and offer some utility for accessing it
"""
use Agent
def start_link(opts) do
Agent.start_link(fn -> %{opts: opts} end, name: __MODULE__)
end
def get_config do
Agent.get(__MODULE__, fn state -> state[:opts] end)
end
e... | 20.1875 | 67 | 0.690402 |
3f39dd4daf86cc3829cf8fac790bd381f7550134 | 377 | ex | Elixir | lib/honeydew/please/projections/list.ex | christian-fei/honeydew | af06f5778de164fd50979ae20e59b6aeb3092485 | [
"MIT"
] | 13 | 2022-02-13T18:43:20.000Z | 2022-03-19T11:53:48.000Z | lib/honeydew/please/projections/list.ex | christian-fei/honeydew | af06f5778de164fd50979ae20e59b6aeb3092485 | [
"MIT"
] | 1 | 2022-02-23T13:57:19.000Z | 2022-02-23T13:57:19.000Z | lib/honeydew/please/projections/list.ex | christian-fei/honeydew | af06f5778de164fd50979ae20e59b6aeb3092485 | [
"MIT"
] | 3 | 2022-02-13T19:25:19.000Z | 2022-02-22T17:56:52.000Z | defmodule Honeydew.Please.Projections.List do
@moduledoc """
Projection for our List Aggregate. A projection "projects" the current
state based on all events up until now.
"""
use Ecto.Schema
@primary_key {:list_id, :string, []}
schema "please_lists" do
field :name, :string
field :notes, :strin... | 19.842105 | 72 | 0.687003 |
3f39f28ac4da09c9a201ed0349ab3550eb1a1d1c | 971 | ex | Elixir | lib/literal_helpers.ex | turnhub/expression | 51b857bc1d9f276a2bd8750892eddebd5f35f922 | [
"Apache-2.0"
] | 4 | 2020-12-13T21:11:13.000Z | 2022-01-18T19:20:30.000Z | lib/literal_helpers.ex | turnhub/expression | 51b857bc1d9f276a2bd8750892eddebd5f35f922 | [
"Apache-2.0"
] | 31 | 2021-02-08T07:12:49.000Z | 2022-03-04T10:54:40.000Z | lib/literal_helpers.ex | turnhub/expression | 51b857bc1d9f276a2bd8750892eddebd5f35f922 | [
"Apache-2.0"
] | null | null | null | defmodule Expression.LiteralHelpers do
@moduledoc false
import NimbleParsec
def int do
optional(string("-"))
|> concat(integer(min: 1))
|> reduce({Enum, :join, [""]})
|> map({String, :to_integer, []})
end
def decimal do
optional(string("-"))
|> concat(integer(min: 1))
|> concat(s... | 21.577778 | 48 | 0.54171 |
3f39f40acd5215af5b1756d77591b7ad1b347ca9 | 3,281 | ex | Elixir | lib/akd/phx/webpack.ex | annkissam/akd | d9ecd91e005dfeec70d688b98526397fc1374d99 | [
"MIT"
] | 51 | 2018-01-07T03:41:05.000Z | 2021-06-17T21:39:27.000Z | lib/akd/phx/webpack.ex | annkissam/akd | d9ecd91e005dfeec70d688b98526397fc1374d99 | [
"MIT"
] | 42 | 2017-12-24T04:36:39.000Z | 2019-05-21T01:32:00.000Z | lib/akd/phx/webpack.ex | annkissam/akd | d9ecd91e005dfeec70d688b98526397fc1374d99 | [
"MIT"
] | 2 | 2018-06-15T11:46:28.000Z | 2018-08-22T16:03:56.000Z | defmodule Akd.Build.Phoenix.Webpack do
@moduledoc """
A native Hook module that comes shipped with Akd.
This module uses `Akd.Hook`.
Provides a set of operations that build a webpack release for a given phoenix app
at a deployment's `build_at` destination.
Ensures to cleanup and empty the deps folder cre... | 33.479592 | 83 | 0.643401 |
3f3a0856875b4703a1fbdb244204855c3bc85186 | 1,217 | exs | Elixir | test/parser/list_test.exs | aforward-oss/earmark | b44d4817aa2b4047b07f91d633ae83ed27c695ed | [
"Apache-2.0"
] | null | null | null | test/parser/list_test.exs | aforward-oss/earmark | b44d4817aa2b4047b07f91d633ae83ed27c695ed | [
"Apache-2.0"
] | null | null | null | test/parser/list_test.exs | aforward-oss/earmark | b44d4817aa2b4047b07f91d633ae83ed27c695ed | [
"Apache-2.0"
] | null | null | null | defmodule Parser.ListTest do
use ExUnit.Case
alias Earmark.Parser
alias Earmark.Block
test "Implicit List continuation" do
{result, _} = Parser.parse( ["- alpha", "beta"] )
expect = [
%Block.List{attrs: nil,
blocks: [%Block.ListItem{attrs: nil,
blocks: [%Block.Para{attrs: nil... | 32.026316 | 99 | 0.575185 |
3f3a0d871d1e5915ba0a6a329da74ff8066e506c | 1,976 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_text_input.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_text_input.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_text_input.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... | 39.52 | 344 | 0.746964 |
3f3a16e512a2f09b5ba6446a83298fde773928de | 6,116 | ex | Elixir | apps/aecore/lib/aecore/chain/chain_state.ex | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | apps/aecore/lib/aecore/chain/chain_state.ex | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | apps/aecore/lib/aecore/chain/chain_state.ex | boundedvariable/elixir-blockchain | f100a067a9e27e83658d8cf5012c70382100420f | [
"0BSD"
] | null | null | null | defmodule Aecore.Chain.ChainState do
@moduledoc """
Module used for calculating the block and chain states.
The chain state is a map, telling us what amount of tokens each account has.
"""
require Logger
@doc """
Calculates the balance of each account mentioned
in the transactions a single block, retu... | 33.23913 | 126 | 0.641923 |
3f3a345d03c816038f336b10aab42d5aa506fa6c | 2,346 | exs | Elixir | apps/admin_api/test/admin_api/v1/views/transaction_consumption_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/views/transaction_consumption_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/views/transaction_consumption_view_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # 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... | 32.136986 | 91 | 0.684569 |
3f3a373e649ecc3548009a035fcf2eb2520f335a | 645 | ex | Elixir | code/nlg-with-umdhmm/lib/mix/tasks/artisan/sim.ex | mfilej/diploma-thesis | 643a7d1f439f253d32b581e2a1d9a7e05f6cea15 | [
"MIT"
] | null | null | null | code/nlg-with-umdhmm/lib/mix/tasks/artisan/sim.ex | mfilej/diploma-thesis | 643a7d1f439f253d32b581e2a1d9a7e05f6cea15 | [
"MIT"
] | null | null | null | code/nlg-with-umdhmm/lib/mix/tasks/artisan/sim.ex | mfilej/diploma-thesis | 643a7d1f439f253d32b581e2a1d9a7e05f6cea15 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Artisan.Sim do
use Mix.Task
@shortdoc "Simulates Hidden Markov Models"
@moduledoc """
#{@shortdoc}.
Use this task to simulate a given Hidden Markov Model.
Requires path to .hmm file provided as an argument.
mix artisan.sim example.hmm 100
The above example will generate a s... | 21.5 | 73 | 0.652713 |
3f3a3c4d89834056ba8040b6fd332119ad2261c3 | 790 | ex | Elixir | snapgear_linux/user/a60/test/runtest.ex | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | null | null | null | snapgear_linux/user/a60/test/runtest.ex | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | null | null | null | snapgear_linux/user/a60/test/runtest.ex | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | 3 | 2016-06-13T13:20:56.000Z | 2019-12-05T02:31:23.000Z |
echo fakul.a60
/a60 fakul.a60
echo outnum.a60
/a60 outnum.a60
echo irnum.a60
/a60 irnum.a60
echo outstr.a60
/a60 outstr.a60
echo jdev.a60
/a60 jdev.a60
echo cbname.a60
/a60 cbname.a60
echo ack.a60
/a60 ack.a60
echo queen.a60
/a60 queen.a60
echo logic1.a60
/a60 logic1.a60
echo sin.a6... | 10.821918 | 17 | 0.686076 |
3f3a47ba242a77f4efa206f8c3182d47df0eacd9 | 2,559 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_return.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_return.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_return.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... | 31.207317 | 122 | 0.661587 |
3f3a63a88f44233becc9ac6d680372d05ea68b5d | 5,456 | ex | Elixir | lib/elixir_console/sandbox.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 60 | 2019-11-23T15:54:24.000Z | 2022-03-24T15:56:32.000Z | lib/elixir_console/sandbox.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 62 | 2019-11-11T00:44:38.000Z | 2022-01-10T13:12:48.000Z | lib/elixir_console/sandbox.ex | wyeworks/elixir_console | f72147224131cb43ebea4a5929030928cdf155d0 | [
"MIT"
] | 5 | 2020-01-15T00:44:30.000Z | 2021-05-25T05:06:27.000Z | defmodule ElixirConsole.Sandbox do
@moduledoc """
Provides a sandbox where Elixir code from untrusted sources can be executed
"""
@type sandbox() :: %__MODULE__{}
alias ElixirConsole.Sandbox.CodeExecutor
@max_command_length 500
@max_memory_kb_default 256
@max_binary_memory_kb_default 50 * 1024
@tim... | 30.651685 | 92 | 0.679619 |
3f3a6c146e74daee02e49fd6b6d144bc036bf106 | 3,284 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_output_file.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_output_file.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_output_file.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... | 44.986301 | 354 | 0.735384 |
3f3a7882fa113d32dec4adad9dc7bb7ff4a0f22a | 64,384 | ex | Elixir | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.532116 | 196 | 0.61638 |
3f3a9675aa5d275bc2a505ee6acf1d424c9f6da9 | 278 | exs | Elixir | elixir/priv/repo/migrations/20210128222212_add_soundex_indices_to_user.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20210128222212_add_soundex_indices_to_user.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/priv/repo/migrations/20210128222212_add_soundex_indices_to_user.exs | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | defmodule Homework.Repo.Migrations.AddSoundexIndicesToUser do
use Ecto.Migration
def change do
create(
index(
:users,
["SOUNDEX(first_name)", "SOUNDEX(last_name)"],
name: :name_soundex_index,
using: "btree"
)
)
end
end
| 18.533333 | 61 | 0.611511 |
3f3acc3a2391e6514e64306f7f3db621a338c64b | 57 | ex | Elixir | lib/rube_web/views/layout_view.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 22 | 2021-06-23T06:25:41.000Z | 2022-02-16T19:08:33.000Z | lib/rube_web/views/layout_view.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 16 | 2021-06-21T17:02:13.000Z | 2022-03-21T15:04:14.000Z | lib/rube_web/views/layout_view.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 2 | 2021-06-23T13:40:52.000Z | 2021-09-17T07:25:34.000Z | defmodule RubeWeb.LayoutView do
use RubeWeb, :view
end
| 14.25 | 31 | 0.789474 |
3f3ad5664e3e3d6927c8793e8c83676fb64424ba | 219 | exs | Elixir | priv/repo/migrations/20180102124912_add_requester_field.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | priv/repo/migrations/20180102124912_add_requester_field.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | priv/repo/migrations/20180102124912_add_requester_field.exs | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | defmodule Evercam.Repo.Migrations.AddRequesterField do
use Ecto.Migration
def change do
alter table(:compares) do
add :requested_by, references(:users, on_delete: :nothing), null: false
end
end
end
| 21.9 | 77 | 0.730594 |
3f3af1c7dccb54bf062ce02f4e5fd72fe83ee676 | 1,861 | ex | Elixir | lib/changelog_web/plugs/vanity_domains.ex | aindrila2412/changelog.com | 7856d05054b0957f3a39f120c38b61f0403901cf | [
"MIT"
] | null | null | null | lib/changelog_web/plugs/vanity_domains.ex | aindrila2412/changelog.com | 7856d05054b0957f3a39f120c38b61f0403901cf | [
"MIT"
] | null | null | null | lib/changelog_web/plugs/vanity_domains.ex | aindrila2412/changelog.com | 7856d05054b0957f3a39f120c38b61f0403901cf | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Plug.VanityDomains do
@moduledoc """
Handles all redirects of podcast vanity domains to their appropriate place.
"""
alias ChangelogWeb.PodcastView
alias ChangelogWeb.RedirectController, as: Redirect
import ChangelogWeb.Plug.Conn
def init(opts), do: opts
# should be called after... | 30.508197 | 77 | 0.681891 |
3f3b22799478a6a6f2912e2bcec2c4e7f89ee817 | 95 | ex | Elixir | design/data_model_playground/lib/data_model_playground/repo.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | design/data_model_playground/lib/data_model_playground/repo.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | design/data_model_playground/lib/data_model_playground/repo.ex | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule DataModelPlayground.Repo do
use Ecto.Repo,
otp_app: :data_model_playground
end
| 19 | 37 | 0.8 |
3f3b38b2aa89ebc270a475c4c7bc4b717dbf142e | 40,025 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/api/services.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/api/services.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/api/services.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... | 47.64881 | 1,115 | 0.617389 |
3f3b4a7b6eac95e2f56194f1e7277dfe8055eb8d | 2,144 | ex | Elixir | wasmcloud_host/lib/wasmcloud_host_web/live/components/scale_actor_component.ex | mattwilkinsonn/wasmcloud-otp | 09b918e08cb566028c0fe9223ce9f0bdbc69b2cd | [
"Apache-2.0"
] | null | null | null | wasmcloud_host/lib/wasmcloud_host_web/live/components/scale_actor_component.ex | mattwilkinsonn/wasmcloud-otp | 09b918e08cb566028c0fe9223ce9f0bdbc69b2cd | [
"Apache-2.0"
] | null | null | null | wasmcloud_host/lib/wasmcloud_host_web/live/components/scale_actor_component.ex | mattwilkinsonn/wasmcloud-otp | 09b918e08cb566028c0fe9223ce9f0bdbc69b2cd | [
"Apache-2.0"
] | null | null | null | defmodule ScaleActorComponent do
use Phoenix.LiveComponent
def mount(socket) do
{:ok,
socket
|> assign(:error_msg, nil)}
end
def handle_event("validate", _params, socket) do
{:noreply, socket}
end
def handle_event(
"scale_actor",
%{
"desired_count" => count,
... | 32 | 109 | 0.576493 |
3f3b58b5002de5e5f9d47de70ef11f20135d9fb6 | 7,373 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/device.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/device.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/device.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... | 76.010309 | 548 | 0.738098 |
3f3b7dbb1e01bd5c6d55cb9de132afa9e0494f2f | 665 | exs | Elixir | config/test.exs | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | config/test.exs | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | config/test.exs | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :awesome, AwesomeWeb.Endpoint,
http: [port: 4001],
server: true # Wallaby
# Print only warnings and errors during test
config :logger, level: :warn
# SQL Sandbox for concurrent testing
config ... | 25.576923 | 56 | 0.745865 |
3f3b994685dc0e9d5ea1af49d6084432746f0027 | 1,698 | ex | Elixir | lib/salty/box_curve25519xsalsa20poly1305.ex | benknowles/libsalty | 38a10812865cb855bfa46cf266bb68d51a296f39 | [
"Apache-2.0"
] | 23 | 2017-07-04T19:29:43.000Z | 2021-02-16T19:44:38.000Z | lib/salty/box_curve25519xsalsa20poly1305.ex | benknowles/libsalty | 38a10812865cb855bfa46cf266bb68d51a296f39 | [
"Apache-2.0"
] | 16 | 2017-08-13T15:31:25.000Z | 2019-06-19T14:44:13.000Z | lib/salty/box_curve25519xsalsa20poly1305.ex | benknowles/libsalty | 38a10812865cb855bfa46cf266bb68d51a296f39 | [
"Apache-2.0"
] | 19 | 2017-08-10T19:01:49.000Z | 2021-06-20T01:34:59.000Z | defmodule Salty.Box.Curve25519xsalsa20poly1305 do
use Salty.Box
def seedbytes do
C.box_curve25519xsalsa20poly1305_SEEDBYTES()
end
def publickeybytes do
C.box_curve25519xsalsa20poly1305_PUBLICKEYBYTES()
end
def secretkeybytes do
C.box_curve25519xsalsa20poly1305_SECRETKEYBYTES()
end
def no... | 23.260274 | 81 | 0.760306 |
3f3bc4dabaeba5559371c5c095a649ddedd2f871 | 621 | ex | Elixir | lib/earmark/ast/renderer/html_renderer.ex | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | lib/earmark/ast/renderer/html_renderer.ex | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | lib/earmark/ast/renderer/html_renderer.ex | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | defmodule Earmark.Ast.Renderer.HtmlRenderer do
import Earmark.Context, only: [prepend: 2]
import Earmark.Helpers.HtmlParser
@moduledoc false
# Structural Renderer for html blocks
def render_html_block(lines, context) do
with [tag] <- parse_html(lines), do: prepend(context, tag)
end
def render_html... | 23.884615 | 62 | 0.700483 |
3f3c246ab77125029239ad94401d416e2a5529a4 | 2,382 | ex | Elixir | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/ingress_to.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/ingress_to.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/ingress_to.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... | 47.64 | 347 | 0.757767 |
3f3c2960b5982ea4a4ea88bcf369a8193c531050 | 4,387 | exs | Elixir | apps/engine/test/engine/integration_test/contract_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/test/engine/integration_test/contract_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/test/engine/integration_test/contract_test.exs | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule ContractTest do
use Engine.DB.DataCase, async: false
alias Engine.Configuration
alias Engine.DB.ContractsConfig
alias Engine.Geth
alias Engine.ReleaseTasks.Contract
alias Engine.ReleaseTasks.Contract.EIP55
@moduletag :integration
setup_all do
{:ok, _briefly} = Application.ensure_all_sta... | 38.147826 | 109 | 0.666059 |
3f3c2e5ebed4776fa0efd980d5d0fde78f7ef26f | 130 | exs | Elixir | elixir/cfgclient.exs | vsajip/cfgclient | 05d9527ae0bc0b6bd0ac698b187f03223e21326d | [
"BSD-3-Clause"
] | null | null | null | elixir/cfgclient.exs | vsajip/cfgclient | 05d9527ae0bc0b6bd0ac698b187f03223e21326d | [
"BSD-3-Clause"
] | null | null | null | elixir/cfgclient.exs | vsajip/cfgclient | 05d9527ae0bc0b6bd0ac698b187f03223e21326d | [
"BSD-3-Clause"
] | 1 | 2021-09-23T09:30:23.000Z | 2021-09-23T09:30:23.000Z | alias CFG.Config
src = "{key: 'Hello, world!'}"
{:ok, cfg} = Config.from_source(src)
{:ok, v} = Config.get(cfg, "key")
IO.puts(v)
| 21.666667 | 36 | 0.615385 |
3f3c5d6277c890b3319ca3ce043502003101118d | 5,505 | ex | Elixir | lib/cadet_web/admin_controllers/admin_assessments_controller.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 27 | 2018-01-20T05:56:24.000Z | 2021-05-24T03:21:55.000Z | lib/cadet_web/admin_controllers/admin_assessments_controller.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 731 | 2018-04-16T13:25:49.000Z | 2021-06-22T07:16:12.000Z | lib/cadet_web/admin_controllers/admin_assessments_controller.ex | source-academy/cadet | c447552453f78799755de73f66999e4c9d20383c | [
"Apache-2.0"
] | 43 | 2018-01-20T06:35:46.000Z | 2021-05-05T03:22:35.000Z | defmodule CadetWeb.AdminAssessmentsController do
use CadetWeb, :controller
use PhoenixSwagger
import Ecto.Query, only: [where: 2]
import Cadet.Updater.XMLParser, only: [parse_xml: 4]
alias Cadet.{Assessments, Repo}
alias Cadet.Assessments.Assessment
alias Cadet.Accounts.CourseRegistration
def index(... | 26.853659 | 97 | 0.637421 |
3f3c69b419d4021e16c7e755e8516276c156714f | 3,269 | ex | Elixir | lib/ddp.ex | hihellosm/phoenix-meteor-ddp | 1b12655f0823acf8bd71258c23168550f9076219 | [
"MIT"
] | null | null | null | lib/ddp.ex | hihellosm/phoenix-meteor-ddp | 1b12655f0823acf8bd71258c23168550f9076219 | [
"MIT"
] | null | null | null | lib/ddp.ex | hihellosm/phoenix-meteor-ddp | 1b12655f0823acf8bd71258c23168550f9076219 | [
"MIT"
] | null | null | null | require Logger
defmodule Philae.DDP do
use HTTPoison.Base
alias Philae.WebSocketClient
alias Poison, as: JSON
use GenServer
def start_link(url, handler_module, subscriber) do
GenServer.start_link(__MODULE__, [url, handler_module, subscriber])
end
def init([url, handler_module, subscriber]) do
{... | 32.04902 | 147 | 0.685531 |
3f3c744c90a160c2cd98be09698e199f6097d4b1 | 323 | exs | Elixir | .credo.exs | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | .credo.exs | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | 1 | 2021-10-18T21:44:37.000Z | 2021-10-18T21:44:37.000Z | .credo.exs | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["benchmarks/", "config/", "lib/", "priv/repo/", "test/"],
excluded: [".github/", "_build/", "assets/", "deps/", "priv/"]
},
checks: [
{Credo.Check.Readability.ParenthesesOnZeroArityDefs, false}
]
}
]... | 21.533333 | 76 | 0.47678 |
3f3c8e9cb81e8508f824d4ff694082efca15fafa | 14,739 | exs | Elixir | lib/elixir/test/elixir/code_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/code_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/elixir/test/elixir/code_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule CodeTest do
use ExUnit.Case, async: true
doctest Code
import PathHelpers
def genmodule(name) do
defmodule name do
Kernel.LexicalTracker.remote_references(__ENV__.lexical_tracker)
end
end
contents =
quote do
defmodule CodeTes... | 34.039261 | 266 | 0.577855 |
3f3cb87b053bbbbee0e4134c2b083c9fad830f42 | 164 | ex | Elixir | lib/blitz/terminal.ex | edraut/blitz | fa6b645e943f36ba40b7104ff4f8df6110aa7645 | [
"MIT"
] | null | null | null | lib/blitz/terminal.ex | edraut/blitz | fa6b645e943f36ba40b7104ff4f8df6110aa7645 | [
"MIT"
] | null | null | null | lib/blitz/terminal.ex | edraut/blitz | fa6b645e943f36ba40b7104ff4f8df6110aa7645 | [
"MIT"
] | null | null | null | defmodule Blitz.Terminal do
@moduledoc """
Terminal input behaviour
"""
@callback get_summoner_and_region() :: %{summoner_name: String, region: String}
end
| 23.428571 | 81 | 0.731707 |
3f3cc0b6c45a28a5e504e8df05c4e2a8e8a7b02f | 875 | ex | Elixir | lib/console/plural/client.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | lib/console/plural/client.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | lib/console/plural/client.ex | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Console.Plural.Client do
alias Console.Plural.Config
@headers [
{"accept", "application/json"},
{"content-type", "application/json"}
]
defmodule Response, do: defstruct [:data, :errors]
def run(query, variables, type_spec) do
token = Config.fetch()
HTTPoison.post(url(), Jason.enco... | 28.225806 | 64 | 0.612571 |
3f3cdbfdb8dfdab5b34408e12ac40ed979a8fc59 | 1,819 | ex | Elixir | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_rejoin_user_events_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_rejoin_user_events_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/recommendation_engine/lib/google_api/recommendation_engine/v1beta1/model/google_cloud_recommendationengine_v1beta1_rejoin_user_events_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.685185 | 194 | 0.768554 |
3f3cf130a414988f0e67a1b884a3530e2caed6d3 | 4,009 | ex | Elixir | lib/rig/tracing/cloud_event.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | lib/rig/tracing/cloud_event.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | lib/rig/tracing/cloud_event.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RIG.Tracing.CloudEvent do
@moduledoc """
Distributed Tracing instrumenter for cloudevents
"""
alias RigCloudEvents.CloudEvent
alias RigCloudEvents.Parser.PartialParser
@doc "Like Opencensus.Trace.with_child_span (https://hexdocs.pm/opencensus_elixir/Opencensus.Trace.html#with_child_span/3),
but... | 29.91791 | 145 | 0.641806 |
3f3d4ac78ad037821a5519dc8fe0162173d57be5 | 3,719 | ex | Elixir | lib/ex_rlp.ex | prihandi/ex_rlp | 064d0608c7fb70ba8605f36540a6dc7942d0e721 | [
"MIT"
] | 13 | 2017-08-06T17:08:08.000Z | 2018-10-08T21:59:23.000Z | lib/ex_rlp.ex | prihandi/ex_rlp | 064d0608c7fb70ba8605f36540a6dc7942d0e721 | [
"MIT"
] | 10 | 2018-11-26T19:17:27.000Z | 2022-01-04T07:47:18.000Z | lib/ex_rlp.ex | prihandi/ex_rlp | 064d0608c7fb70ba8605f36540a6dc7942d0e721 | [
"MIT"
] | 7 | 2018-11-27T14:50:44.000Z | 2021-12-23T06:53:04.000Z | defmodule ExRLP do
@moduledoc """
Elixir implementation of Ethereum's RLP (Recursive Length Prefix) encoding.
"""
alias ExRLP.{Encode, Decode}
@type t :: any()
@doc """
Given an RLP structure (i.e. anything), returns the encoding as a binary.
## Examples
iex> ExRLP.encode("dog")
<<0x83,... | 33.205357 | 336 | 0.538048 |
3f3d56f49023beb302040a7d9982359f182fbf30 | 1,556 | exs | Elixir | config/dev.exs | djmitche/bors-ng | a52d680ec0fa8cda8aa373c1f2cb015dccf99e3d | [
"Apache-2.0"
] | null | null | null | config/dev.exs | djmitche/bors-ng | a52d680ec0fa8cda8aa373c1f2cb015dccf99e3d | [
"Apache-2.0"
] | null | null | null | config/dev.exs | djmitche/bors-ng | a52d680ec0fa8cda8aa373c1f2cb015dccf99e3d | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :bors, BorsNG.Endpoint,
http: [port: {:system,... | 31.12 | 100 | 0.698586 |
3f3d64bb8be5715e7c9f86ec70be919cfef091e7 | 1,939 | exs | Elixir | massa_proxy/apps/massa_proxy/mix-bakeware.exs | wesleimp/massa | f2deebe91f953e472774b83b8ac6a2ceeaa55a3e | [
"Apache-2.0"
] | 1 | 2021-11-30T19:59:51.000Z | 2021-11-30T19:59:51.000Z | massa_proxy/apps/massa_proxy/mix-bakeware.exs | wesleimp/massa | f2deebe91f953e472774b83b8ac6a2ceeaa55a3e | [
"Apache-2.0"
] | null | null | null | massa_proxy/apps/massa_proxy/mix-bakeware.exs | wesleimp/massa | f2deebe91f953e472774b83b8ac6a2ceeaa55a3e | [
"Apache-2.0"
] | null | null | null | defmodule MassaProxy.MixProject do
use Mix.Project
def project do
[
app: :massa_proxy,
version: "0.1.0",
elixir: "~> 1.10",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
start_permanent: M... | 23.646341 | 71 | 0.499742 |
3f3d75f3da1cf1e272cc2279bf15836a5db7deaa | 766 | ex | Elixir | lib/remote_points_web/controllers/fallback_controller.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | 1 | 2020-09-18T03:32:45.000Z | 2020-09-18T03:32:45.000Z | lib/remote_points_web/controllers/fallback_controller.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | null | null | null | lib/remote_points_web/controllers/fallback_controller.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | null | null | null | defmodule RemotePointsWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use RemotePointsWeb, :controller
# This clause handles errors returned by Ecto's insert/update/delete.
de... | 30.64 | 78 | 0.71671 |
3f3db5a90ec9d282abd75e5f14ccc14c8760cbec | 1,176 | exs | Elixir | mix.exs | kianmeng/test_selector | f88fcb8bdbea873386ab9e1cd01a0794377f0de7 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/test_selector | f88fcb8bdbea873386ab9e1cd01a0794377f0de7 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/test_selector | f88fcb8bdbea873386ab9e1cd01a0794377f0de7 | [
"MIT"
] | null | null | null | defmodule TestSelector.Mixfile do
use Mix.Project
def project do
[
app: :test_selector,
version: "0.3.2",
elixir: "~> 1.4",
description: "Library to help selecting the right elements in your tests",
test_coverage: [tool: ExCoveralls],
dialyzer: [plt_add_apps: [:mix, :ex_unit... | 25.565217 | 80 | 0.55102 |
3f3dd3a16c23c1ca9cd6e2ccd482db83d2cc2bcd | 2,642 | ex | Elixir | lib/conduit_sqs/poller.ex | safwanolaimat/conduit_sqs | 8dbcacb120e4e5eba9327972ca8465e21ce2fddc | [
"MIT"
] | null | null | null | lib/conduit_sqs/poller.ex | safwanolaimat/conduit_sqs | 8dbcacb120e4e5eba9327972ca8465e21ce2fddc | [
"MIT"
] | null | null | null | lib/conduit_sqs/poller.ex | safwanolaimat/conduit_sqs | 8dbcacb120e4e5eba9327972ca8465e21ce2fddc | [
"MIT"
] | null | null | null | defmodule ConduitSQS.Poller do
@moduledoc """
Handles demand from Workers by polling an SQS queue for messages
"""
use GenStage
import Injex
inject :meta, ConduitSQS.Meta
inject :sqs, ConduitSQS.SQS
@behaviour GenStage
defmodule State do
@moduledoc false
defstruct [:broker, :queue, :subscrib... | 27.520833 | 107 | 0.679031 |
3f3de0c7e5393d0ee4c6a8c0c0a4d13e31c43833 | 747 | ex | Elixir | app/lib/rocdev_web/controllers/meetup_controller.ex | TomFrink/rocdev | 5c4a19c2d099bd8bad3377e6e08dfc9aa7e0bcf5 | [
"MIT"
] | 14 | 2017-10-10T19:11:21.000Z | 2019-04-20T20:11:01.000Z | app/lib/rocdev_web/controllers/meetup_controller.ex | TomFrink/rocdev | 5c4a19c2d099bd8bad3377e6e08dfc9aa7e0bcf5 | [
"MIT"
] | 41 | 2017-10-08T03:07:20.000Z | 2018-10-15T12:47:34.000Z | app/lib/rocdev_web/controllers/meetup_controller.ex | TomFrink/rocdev | 5c4a19c2d099bd8bad3377e6e08dfc9aa7e0bcf5 | [
"MIT"
] | 7 | 2017-10-18T10:44:04.000Z | 2019-04-15T20:44:49.000Z | defmodule RocdevWeb.MeetupController do
use RocdevWeb, :controller
require Logger
alias Rocdev.MeetupAPI
def index(conn, _params) do
render(
conn,
"index.html",
past_events: past_events(),
upcoming_events: upcoming_events()
)
end
defp past_events do
case MeetupAPI.past ... | 20.189189 | 63 | 0.587684 |
3f3e44e9df4183d33118a3a872455b06b1c40d11 | 4,259 | ex | Elixir | lib/exvcr/mock.ex | kianmeng/exvcr | d757ad434aa877deeb3868bc2efd4e7bb372cb93 | [
"MIT"
] | null | null | null | lib/exvcr/mock.ex | kianmeng/exvcr | d757ad434aa877deeb3868bc2efd4e7bb372cb93 | [
"MIT"
] | null | null | null | lib/exvcr/mock.ex | kianmeng/exvcr | d757ad434aa877deeb3868bc2efd4e7bb372cb93 | [
"MIT"
] | null | null | null | defmodule ExVCR.Mock do
@moduledoc """
Provides macro to record HTTP request/response.
"""
alias ExVCR.Recorder
defmacro __using__(opts) do
adapter = opts[:adapter] || ExVCR.Adapter.IBrowse
options = opts[:options]
quote do
import ExVCR.Mock
:application.start(unquote(adapter).modul... | 27.836601 | 102 | 0.651561 |
3f3e664ab5c826d04ad13e918e681b32e81bb03f | 1,278 | ex | Elixir | lib/google_api/you_tube/v3/model/video_recording_details.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/video_recording_details.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/video_recording_details.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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.170732 | 86 | 0.750391 |
3f3e78ab76b662e042cabe2b01b85f0521be6eba | 3,482 | exs | Elixir | test/phoenix/token_test.exs | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | test/phoenix/token_test.exs | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | test/phoenix/token_test.exs | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | defmodule Phoenix.TokenTest do
use ExUnit.Case, async: true
alias Phoenix.Token
@moduletag :capture_log
defmodule TokenEndpoint do
def config(:secret_key_base), do: "abc123"
end
test "signes and verifies token with string" do
id = 1
key = String.duplicate("abc123", 5)
token = Token.sign(k... | 31.654545 | 95 | 0.630098 |
3f3e7dadae7af5fb657320f36951eb897601d8a3 | 3,740 | ex | Elixir | clients/manufacturers/lib/google_api/manufacturers/v1/model/product.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/manufacturers/lib/google_api/manufacturers/v1/model/product.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/manufacturers/lib/google_api/manufacturers/v1/model/product.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... | 45.060241 | 168 | 0.687968 |
3f3ed6d7eb4b9788d241d00a6b572e0ffe015b27 | 2,472 | exs | Elixir | src/test/changelog_web/controllers/news/news_ad_controller_test.exs | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | test/changelog_web/controllers/news/news_ad_controller_test.exs | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | test/changelog_web/controllers/news/news_ad_controller_test.exs | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.NewsAdControllerTest do
use ChangelogWeb.ConnCase
import ChangelogWeb.NewsAdView, only: [hashid: 1, slug: 1]
alias Changelog.NewsAd
test "getting a news ad page via hashid", %{conn: conn} do
ad = insert(:news_ad, headline: "Hash ID 4 EVA!")
hashid = hashid(ad)
conn = get(co... | 39.238095 | 89 | 0.683252 |
3f3ee65a402fe28370db61634b09139685cdab33 | 12,509 | ex | Elixir | lib/scrollable/container.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | lib/scrollable/container.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | lib/scrollable/container.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | defmodule FloUI.Scrollable.Container do
@moduledoc """
## Usage in SnapFramework
Scrollable container is used for large content that you want to scroll. It renders a component child within.
this is meant to be as plug and play as possible. With minimal fiddling to get it to work.
You can use the ScrollBar co... | 30.288136 | 157 | 0.619154 |
3f3efad026aafffdd16eba49aabc56051eb09d6d | 9,431 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__video_annotation_results.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__video_annotation_results.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__video_annotation_results.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 52.104972 | 558 | 0.753473 |
3f3f25a1a4ec2ca9532a8b41bd359c251c1f77bf | 2,655 | ex | Elixir | apps/local_broadcast/lib/local_broadcast/broadcaster.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/local_broadcast/lib/local_broadcast/broadcaster.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/local_broadcast/lib/local_broadcast/broadcaster.ex | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule LocalBroadcast.Broadcaster do
@moduledoc """
Broadcasts the presence of this MCAM on the local network as
a UDP multicast every 15 seconds. Also listens for such broadcasts and
records them in the `LocalBroadcast.McamPeerRegisterEntry`.
There seems to be an occasional issue with the socket not rec... | 27.65625 | 129 | 0.681356 |
3f3f694a2b14c35ab4f66bb6305ba40e721a0396 | 1,772 | ex | Elixir | apps/definition_dictionary/lib/dictionary/type/map.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/lib/dictionary/type/map.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/definition_dictionary/lib/dictionary/type/map.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Dictionary.Type.Map do
use Definition, schema: Dictionary.Type.Map.V1
use Dictionary.JsonEncoder
@behaviour Access
@type t :: %__MODULE__{
version: integer,
name: String.t(),
description: String.t(),
dictionary: Dictionary.t()
}
defstruct version: 1,... | 24.957746 | 92 | 0.658578 |
3f3f79a1597a3286a501ba5626a5ef8af744eb44 | 6,993 | ex | Elixir | lib/identicon.ex | leoyassuda/identicon | 1c3aabada720fe921b0a008b9ef1bb003ba0d511 | [
"MIT"
] | null | null | null | lib/identicon.ex | leoyassuda/identicon | 1c3aabada720fe921b0a008b9ef1bb003ba0d511 | [
"MIT"
] | null | null | null | lib/identicon.ex | leoyassuda/identicon | 1c3aabada720fe921b0a008b9ef1bb003ba0d511 | [
"MIT"
] | null | null | null | defmodule Identicon do
@moduledoc """
Generates a squared avatar image in 250px by passing a string as argument to the program.
A example `sample.png` generated in img folder
"""
@doc """
Generate in root folder a image .png according to string used.
Check the file generated `example.png`
## Examples... | 24.536842 | 91 | 0.507651 |
3f3f9133ab455b6fca61819d80ed1b55f46bea1b | 1,017 | ex | Elixir | apps/authorizer/lib/rules/commands/inputs/authorization_code_sign_in.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authorizer/lib/rules/commands/inputs/authorization_code_sign_in.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authorizer/lib/rules/commands/inputs/authorization_code_sign_in.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authorizer.Rules.Commands.Inputs.AuthorizationCodeSignIn do
@moduledoc """
Input schema to be used in sign in authorizations.
"""
use Authorizer.Input
@typedoc "Sign in authorization input fields"
@type t :: %__MODULE__{
client_id: String.t(),
response_type: String.t(),
... | 26.763158 | 69 | 0.671583 |
3f3fa52c24949adbb2e89f6bfc088fd6c2da5401 | 6,354 | exs | Elixir | .credo.exs | nhphuc412/torch | d2145b9fdb889517c0a36a5367f0b116ee7a6844 | [
"MIT"
] | null | null | null | .credo.exs | nhphuc412/torch | d2145b9fdb889517c0a36a5367f0b116ee7a6844 | [
"MIT"
] | null | null | null | .credo.exs | nhphuc412/torch | d2145b9fdb889517c0a36a5367f0b116ee7a6844 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.222222 | 93 | 0.612213 |
3f3fc49ca70c236950262dacafed9aaccde526bd | 2,807 | ex | Elixir | lib/calecto/date_time.ex | svrdlans/calecto | 6423a6958b545dcec2974750b82f5634c0db94c7 | [
"MIT"
] | 137 | 2015-05-23T20:13:40.000Z | 2021-11-08T17:04:43.000Z | lib/calecto/date_time.ex | svrdlans/calecto | 6423a6958b545dcec2974750b82f5634c0db94c7 | [
"MIT"
] | 35 | 2015-07-14T14:46:28.000Z | 2021-01-27T20:40:49.000Z | lib/calecto/date_time.ex | svrdlans/calecto | 6423a6958b545dcec2974750b82f5634c0db94c7 | [
"MIT"
] | 25 | 2015-07-29T08:40:27.000Z | 2021-09-30T15:48:04.000Z | defmodule Calecto.DateTime do
require Calendar.DateTime
import Calecto.Utils
@moduledoc """
Calendar DateTime for Ecto for representing datetimes in any timezone.
This type is only compatible with Postgres.
"""
@behaviour Ecto.Type
@doc """
The Ecto primitive type.
"""
def type, do: :calendar_... | 33.416667 | 90 | 0.587104 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.