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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08aa5f86c5e04f9696a323ae1e3c5a03cb8b9bc7 | 3,284 | ex | Elixir | lib/mix/lib/mix/tasks/compile.elixir.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.elixir.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.elixir.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Elixir do
use Mix.Task
@recursive true
@manifest ".compile.elixir"
@moduledoc """
Compiles Elixir source files.
Elixir is smart enough to recompile only files that changed
and their dependencies. This means if `lib/a.ex` is invoking
a function defined over `lib/b.ex`, when... | 32.196078 | 90 | 0.672351 |
08aa74e10fac6aa7e3fe6bbf3bce017c8a96c5e3 | 3,469 | ex | Elixir | lib/level/web_push.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | lib/level/web_push.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | lib/level/web_push.ex | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.WebPush do
@moduledoc """
The subsystem for recording push subscriptions and send them.
"""
use Supervisor
import Ecto.Query
alias Ecto.Changeset
alias Level.Repo
alias Level.WebPush.Payload
alias Level.WebPush.Schema
alias Level.WebPush.Subscription
alias Level.WebPush.Subscrip... | 24.429577 | 83 | 0.650908 |
08aa8a9c4935442d2cc0850fe0ac9391c8318647 | 75 | ex | Elixir | web/views/page_view.ex | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | web/views/page_view.ex | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | 7 | 2015-12-30T19:43:10.000Z | 2016-01-04T14:38:38.000Z | web/views/page_view.ex | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | defmodule WishlistManager.PageView do
use WishlistManager.Web, :view
end
| 18.75 | 37 | 0.826667 |
08aacbbe44ced959e01bd8fbd4f9e92a2affcace | 656 | ex | Elixir | test/support/gen/plug/post_test_hmac_with_body.ex | dvlp123456/oasis | a1b2ec720277ced6956094ceb139124f5459b78e | [
"MIT"
] | 11 | 2021-02-24T09:21:11.000Z | 2021-12-26T03:51:25.000Z | test/support/gen/plug/post_test_hmac_with_body.ex | dvlp123456/oasis | a1b2ec720277ced6956094ceb139124f5459b78e | [
"MIT"
] | 5 | 2021-03-18T14:15:37.000Z | 2022-03-02T09:53:42.000Z | test/support/gen/plug/post_test_hmac_with_body.ex | dvlp123456/oasis | a1b2ec720277ced6956094ceb139124f5459b78e | [
"MIT"
] | 6 | 2021-02-24T09:21:01.000Z | 2021-11-16T08:45:03.000Z | defmodule Oasis.Gen.Plug.PostTestHMACWithBody do
# NOTICE: This module is generated when run `mix oas.gen.plug` task command with the OpenAPI Specification file
# in the first time, and then it WILL NOT be modified in the future generation command(s) once this file exists,
# please write your business code in thi... | 36.444444 | 114 | 0.714939 |
08aaedff69ab263909eb6d22a106be82de25ec75 | 1,503 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_export_test_cases_metadata.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_cx_v3beta1_export_test_cases_metadata.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_cx_v3beta1_export_test_cases_metadata.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... | 31.978723 | 115 | 0.779108 |
08ab02ccedf5cbf6897716458cc30bfe8a850daa | 4,347 | ex | Elixir | apps/shell/lib/server.ex | lowlandresearch/kudzu | f65da5061c436afb114a2e95bc6d115b6ec7be53 | [
"MIT"
] | null | null | null | apps/shell/lib/server.ex | lowlandresearch/kudzu | f65da5061c436afb114a2e95bc6d115b6ec7be53 | [
"MIT"
] | 4 | 2020-05-16T16:05:33.000Z | 2020-05-16T19:52:12.000Z | apps/shell/lib/server.ex | lowlandresearch/kudzu | f65da5061c436afb114a2e95bc6d115b6ec7be53 | [
"MIT"
] | null | null | null | defmodule Shell.Server do
use GenServer
require Logger
def start_link(opts) do
GenServer.start_link(__MODULE__, :ok, opts)
end
# ------------------------------------------------------------
# Client API
# ------------------------------------------------------------
def fetch(name) do
GenServe... | 22.878947 | 78 | 0.536462 |
08ab092f980e43f338f0f12be8b63d5b93ec0ea7 | 1,862 | ex | Elixir | web/web.ex | w0rd-driven/scratch_phoenix | 465e01af6e7d649bfb308edf91247e9d6c6a5876 | [
"MIT"
] | null | null | null | web/web.ex | w0rd-driven/scratch_phoenix | 465e01af6e7d649bfb308edf91247e9d6c6a5876 | [
"MIT"
] | null | null | null | web/web.ex | w0rd-driven/scratch_phoenix | 465e01af6e7d649bfb308edf91247e9d6c6a5876 | [
"MIT"
] | null | null | null | defmodule ScratchPhoenix.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use ScratchPhoenix.Web, :controller
use ScratchPhoenix.Web, :view
The definitions below will be executed for every view,
controller, ... | 21.905882 | 88 | 0.675081 |
08ab15f888cb9f967a2574429591b616c31e1f5c | 2,537 | ex | Elixir | apps/blockchain/lib/mix/tasks/sync/from_file.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/blockchain/lib/mix/tasks/sync/from_file.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/blockchain/lib/mix/tasks/sync/from_file.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule Mix.Tasks.Sync.FromFile do
@shortdoc "Allows users to sync the blockchain from a file exported by parity"
@moduledoc """
SyncFromFile allows users to sync the blockchain from a file exported by parity.
You can make an export with the following command:
`parity export blocks ./export-blocks-mainnet... | 26.427083 | 82 | 0.642491 |
08ab207d78f56fd28965e06f5d868b155acecc34 | 5,145 | ex | Elixir | lib/flix/catalogs/movie.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 3 | 2021-03-21T23:52:16.000Z | 2021-06-02T03:47:00.000Z | lib/flix/catalogs/movie.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 44 | 2021-04-09T04:04:13.000Z | 2022-03-29T06:29:37.000Z | lib/flix/catalogs/movie.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | null | null | null | defmodule Flix.Catalogs.Movie do
use Ecto.Schema
use Waffle.Ecto.Schema
import Ecto.Changeset
import Ecto.Query, only: [from: 2]
import Parameterize
alias Flix.Catalogs.{Favorite, Genre, Review, Characterization}
alias Flix.Repo
schema "movies" do
field(:description, :string)
field(:director,... | 22.565789 | 72 | 0.653256 |
08ab4d662f2d237991718c148e886cae31ccab7b | 2,737 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/api/payments.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/payments.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/api/payments.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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... | 39.666667 | 217 | 0.704421 |
08ab51878ba0139333c2610f643e0f0867c9d645 | 331 | ex | Elixir | lib/vimdoc/file.ex | liquidz/ex_vimdoc | 3b3df4b53d45045f1ef60d4db965ea4e4d2d8a40 | [
"MIT"
] | null | null | null | lib/vimdoc/file.ex | liquidz/ex_vimdoc | 3b3df4b53d45045f1ef60d4db965ea4e4d2d8a40 | [
"MIT"
] | null | null | null | lib/vimdoc/file.ex | liquidz/ex_vimdoc | 3b3df4b53d45045f1ef60d4db965ea4e4d2d8a40 | [
"MIT"
] | null | null | null | defmodule Vimdoc.File do
def find(path) do
case File.ls(path) do
{:error, _} -> []
{:ok, list} ->
list
|> Enum.flat_map(fn f ->
path = Path.join(path, f)
if File.dir?(path) do
find path
else
[path]
end
end)
end... | 18.388889 | 35 | 0.435045 |
08ab58b6e6f925bbf385c205f3c68edd5e635164 | 4,528 | exs | Elixir | test/changelog/kits/url_kit_test.exs | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | test/changelog/kits/url_kit_test.exs | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | test/changelog/kits/url_kit_test.exs | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | defmodule Changelog.UrlKitTest do
use Changelog.DataCase
alias Changelog.UrlKit
describe "is_youtube" do
test "is true for youtube URLS" do
assert UrlKit.is_youtube("https://youtu.be/7msERxu7ivg")
assert UrlKit.is_youtube("https://www.youtube.com/watch?v=7msERxu7ivg")
end
test "is false... | 33.294118 | 143 | 0.672924 |
08ab620c93cb7f920d4eb8f1fac21e32b9705123 | 881 | ex | Elixir | lib/extwitter/api/v1/places_and_geo.ex | PJUllrich/extwitter | edee88d5b9411bd0e3226c295362e328ae73255d | [
"MIT"
] | null | null | null | lib/extwitter/api/v1/places_and_geo.ex | PJUllrich/extwitter | edee88d5b9411bd0e3226c295362e328ae73255d | [
"MIT"
] | null | null | null | lib/extwitter/api/v1/places_and_geo.ex | PJUllrich/extwitter | edee88d5b9411bd0e3226c295362e328ae73255d | [
"MIT"
] | null | null | null | defmodule ExTwitter.API.V1.PlacesAndGeo do
@moduledoc """
Provides places and geo API interfaces.
"""
import ExTwitter.API.Base
def geo_search(options) when is_list(options) do
params = ExTwitter.API.AuthParser.parse_request_params(options)
request(:get, "1.1/geo/search.json", params)
|> ExTwit... | 29.366667 | 93 | 0.694665 |
08ab6407e399b16b65f216313a5b98287610e1a3 | 421 | exs | Elixir | elixir/acronym/acronym.exs | ErikSchierboom/exercism | 3da5d41ad3811c5963a0da62f862602ba01a9f55 | [
"Apache-2.0"
] | 23 | 2017-02-22T16:57:12.000Z | 2022-02-11T20:32:36.000Z | elixir/acronym/acronym.exs | ErikSchierboom/exercism | 3da5d41ad3811c5963a0da62f862602ba01a9f55 | [
"Apache-2.0"
] | 36 | 2020-07-21T09:34:05.000Z | 2020-07-21T10:29:20.000Z | elixir/acronym/acronym.exs | ErikSchierboom/exercism | 3da5d41ad3811c5963a0da62f862602ba01a9f55 | [
"Apache-2.0"
] | 14 | 2017-02-22T16:58:23.000Z | 2021-10-06T00:21:57.000Z | defmodule Acronym do
@doc """
Generate an acronym from a string.
"This is a string" => "TIAS"
"""
@spec abbreviate(String.t()) :: String.t()
def abbreviate(string) do
string |> words |> Enum.map(&acronym_letter/1) |> Enum.join("")
end
defp words(string), do: Regex.scan(~r/[A-Z]+[a-z]*|[a-z]+/, stri... | 28.066667 | 86 | 0.631829 |
08ab693ca34bc0020dbcac32c2b4fe459e178d71 | 8,082 | exs | Elixir | bench/witchcraft/foldable/map_bench.exs | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 454 | 2019-06-05T22:56:45.000Z | 2022-03-27T23:03:02.000Z | bench/witchcraft/foldable/map_bench.exs | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 26 | 2019-07-08T09:29:08.000Z | 2022-02-04T02:40:48.000Z | bench/witchcraft/foldable/map_bench.exs | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 36 | 2019-06-25T17:45:27.000Z | 2022-03-21T01:53:42.000Z | defmodule Witchcraft.Foldable.MapBench do
require Integer
use Benchfella
use Witchcraft.Foldable
#########
# Setup #
#########
# ---------- #
# Data Types #
# ---------- #
@list Enum.to_list(0..10)
@map @list |> Enum.zip(@list) |> Enum.into(%{})
############
# Foldable #
############
... | 33.53527 | 121 | 0.54776 |
08ab6d4d9754d3452db164bf46003a38667cf7e5 | 260 | ex | Elixir | apps/api/web/views/status_view.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | 39 | 2016-11-01T07:21:51.000Z | 2021-02-05T20:19:02.000Z | apps/api/web/views/status_view.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | apps/api/web/views/status_view.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | defmodule Api.StatusView do
use Api.Web, :view
def render("show.json", %{status: status}) do
%{
data: render_one(status, __MODULE__, "status.json", as: :status)
}
end
def render("status.json", %{status: status}) do
status
end
end
| 18.571429 | 70 | 0.630769 |
08ab72e6dd376debd9f88d3bdcefb6db2053d8f0 | 1,738 | exs | Elixir | mix.exs | humphreyja/http_event_server | 27da75ea9508f6c35511cc242061e55a783e1b9d | [
"MIT"
] | null | null | null | mix.exs | humphreyja/http_event_server | 27da75ea9508f6c35511cc242061e55a783e1b9d | [
"MIT"
] | null | null | null | mix.exs | humphreyja/http_event_server | 27da75ea9508f6c35511cc242061e55a783e1b9d | [
"MIT"
] | null | null | null | defmodule HTTPEventServer.Mixfile do
use Mix.Project
def project do
[app: :http_event_server,
name: "HTTP Event Server",
description: description(),
package: package(),
source_url: "https://github.com/humphreyja/http_event_server",
version: "0.2.4",
elixir: "~> 1.4",
build_em... | 25.558824 | 91 | 0.60702 |
08aba0d83c2ebb8cdec95061e3da4bd4620c7388 | 1,078 | ex | Elixir | lib/rocketpay/user.ex | Truta446/rocketpay | 7e39f284999a30399a8495b899326e9174dc6544 | [
"MIT"
] | 80 | 2021-02-26T13:26:00.000Z | 2022-01-31T15:13:18.000Z | lib/rocketpay/user.ex | Truta446/rocketpay | 7e39f284999a30399a8495b899326e9174dc6544 | [
"MIT"
] | null | null | null | lib/rocketpay/user.ex | Truta446/rocketpay | 7e39f284999a30399a8495b899326e9174dc6544 | [
"MIT"
] | 42 | 2021-02-26T13:26:19.000Z | 2021-12-11T16:32:47.000Z | defmodule Rocketpay.User do
use Ecto.Schema
import Ecto.Changeset
alias Ecto.Changeset
alias Rocketpay.Account
@primary_key {:id, :binary_id, autogenerate: true}
@required_params [:name, :age, :email, :password, :nickname]
schema "users" do
field :name, :string
field :age, :integer
field :... | 25.666667 | 97 | 0.691095 |
08abbff0fcf0b9743a6e01da33925db424766af4 | 14,332 | ex | Elixir | lib/ja_serializer/dsl.ex | tompesman/ja_serializer | 2b4aafece514add516784a6a81f7d6c724df8ac2 | [
"Apache-2.0"
] | null | null | null | lib/ja_serializer/dsl.ex | tompesman/ja_serializer | 2b4aafece514add516784a6a81f7d6c724df8ac2 | [
"Apache-2.0"
] | null | null | null | lib/ja_serializer/dsl.ex | tompesman/ja_serializer | 2b4aafece514add516784a6a81f7d6c724df8ac2 | [
"Apache-2.0"
] | null | null | null | defmodule JaSerializer.DSL do
@moduledoc """
A DSL for defining JSON-API.org spec compliant payloads.
Built on top of the `JaSerializer.Serializer` behaviour.
The following macros are available:
* `location/1` - Define the url of a single serialized object.
* `attributes/1` - Define the attributes to... | 31.991071 | 119 | 0.686436 |
08abe83e24ca45a5a886fd11e49e79386b777e83 | 519 | exs | Elixir | test/models/query_test.exs | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | test/models/query_test.exs | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | test/models/query_test.exs | mntns/artus | 958380f42612ec0bc9d059037cf7b59dfbe1cfa9 | [
"MIT"
] | null | null | null | defmodule Artus.QueryTest do
use Artus.ModelCase
alias Artus.Query
@valid_attrs %{created_at: %{day: 17, hour: 14, min: 0, month: 4, sec: 0, year: 2010}, request: "some content", uuid: "some content", views: 42}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Query.changeset(%Q... | 27.315789 | 146 | 0.699422 |
08ac04acfd47537ca7c01a5fa3a37a7cecc52751 | 9,526 | ex | Elixir | lib/elixir/lib/integer.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | 1 | 2018-08-08T12:15:48.000Z | 2018-08-08T12:15:48.000Z | lib/elixir/lib/integer.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/integer.ex | lytedev/elixir | dc25bb8e1484e2328eef819402d268dec7bb908a | [
"Apache-2.0"
] | null | null | null | defmodule Integer do
@moduledoc """
Functions for working with integers.
Some functions that work on integers are found in `Kernel`:
* `abs/2`
* `div/2`
* `max/2`
* `min/2`
* `rem/2`
"""
import Bitwise
@doc """
Determines if `integer` is odd.
Returns `true` if the given `intege... | 22.57346 | 99 | 0.628805 |
08ac21f57f8f64febc9f59d40605b3b5f8e0d66b | 233 | ex | Elixir | example-source/ex06.ex | guidiego/elixir-study-repository | 9f7e8b50f310b27b75fd65e7f8deb4bf2d35f624 | [
"MIT"
] | null | null | null | example-source/ex06.ex | guidiego/elixir-study-repository | 9f7e8b50f310b27b75fd65e7f8deb4bf2d35f624 | [
"MIT"
] | null | null | null | example-source/ex06.ex | guidiego/elixir-study-repository | 9f7e8b50f310b27b75fd65e7f8deb4bf2d35f624 | [
"MIT"
] | null | null | null | defmodule Recursive do
def repeatMessage(msg, times) when times == 1 do
IO.puts msg
end
def repeatMessage(msg, times) do
IO.puts msg
repeatMessage(msg, times - 1)
end
end
Recursive.repeatMessage("R U Mine?", 3)
| 17.923077 | 50 | 0.686695 |
08ac27b2b8805ad453b248c22d110d1020c209b0 | 57 | ex | Elixir | godin_umbrella/apps/godin_web/lib/godin_web/views/page_view.ex | ruben44bac/god-n | af78dc683b58bb3a5e4dbfec2dd53887651a8aa7 | [
"MIT"
] | null | null | null | godin_umbrella/apps/godin_web/lib/godin_web/views/page_view.ex | ruben44bac/god-n | af78dc683b58bb3a5e4dbfec2dd53887651a8aa7 | [
"MIT"
] | null | null | null | godin_umbrella/apps/godin_web/lib/godin_web/views/page_view.ex | ruben44bac/god-n | af78dc683b58bb3a5e4dbfec2dd53887651a8aa7 | [
"MIT"
] | null | null | null | defmodule GodinWeb.PageView do
use GodinWeb, :view
end
| 14.25 | 30 | 0.789474 |
08ac63b8e33b42e1dddba80fa967ee7daea3be4a | 225 | exs | Elixir | test/test_helper.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | test/test_helper.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | test/test_helper.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | # Ensure tzdata is up to date
{:ok, _} = Application.ensure_all_started(:tzdata)
Application.ensure_all_started(:stream_data)
_ = Tzdata.ReleaseUpdater.poll_for_update()
ExUnit.configure(exclude: [skip: true])
ExUnit.start()
| 32.142857 | 50 | 0.786667 |
08ac6d2d7ea973b01fe792e0524ce4c61a5ada72 | 702 | exs | Elixir | config/test.exs | ldd/hn_comments_game | 5f720621c549a3737c155f9d59fa8277491f3b16 | [
"MIT"
] | 5 | 2020-05-15T17:06:22.000Z | 2020-06-20T12:05:46.000Z | config/test.exs | ldd/hn_comments_game | 5f720621c549a3737c155f9d59fa8277491f3b16 | [
"MIT"
] | null | null | null | config/test.exs | ldd/hn_comments_game | 5f720621c549a3737c155f9d59fa8277491f3b16 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :hn_comments_game, HnCommentsGame.Repo,
username: "postgres",
password: "postgres",
database: "hn_comm... | 30.521739 | 75 | 0.763533 |
08ac9dfc3468961ca37357d5068da02f5cacaa70 | 55 | ex | Elixir | web/views/page_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 6 | 2017-05-12T04:20:09.000Z | 2020-11-07T02:00:56.000Z | web/views/page_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | null | null | null | web/views/page_view.ex | bagilevi/uptom | 50894abb8f7bd052e12c37155b5c33450abcc9bd | [
"MIT"
] | 2 | 2020-05-18T08:06:22.000Z | 2020-12-19T14:24:40.000Z | defmodule Uptom.PageView do
use Uptom.Web, :view
end
| 13.75 | 27 | 0.763636 |
08acb1bbad2e83d45acfcb4786e700ee0f272bf9 | 2,356 | ex | Elixir | clients/service_networking/lib/google_api/service_networking/v1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_networking/lib/google_api/service_networking/v1/model/status.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... | 44.45283 | 427 | 0.722835 |
08acc0336e0ec35c11116d63f4a595dee2f48f95 | 3,146 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/popup_window_properties.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/v33/model/popup_window_properties.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/popup_window_properties.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 ... | 44.309859 | 221 | 0.703751 |
08acdb3cbe49d08d8943853963fb87d9e75b64f6 | 1,296 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_run_impl.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_run_impl.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/pipeline_run_impl.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.PipelineRunImpl do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"_class",
:"_links",
:"duratio... | 23.142857 | 91 | 0.616512 |
08acdbcf9cd096f5c1a2d3f9c329b56408c4578e | 2,767 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/attachment_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/attachment_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/attachment_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 ... | 38.971831 | 134 | 0.72931 |
08acec929bd6267a3ab25ef5401d19ff3ec695ca | 1,780 | ex | Elixir | lib/powit_web.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | lib/powit_web.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | lib/powit_web.ex | tenzil-rpx/powit | 0feebbfc11c7bd2a45ef0664632deb9b0537fb5c | [
"MIT"
] | null | null | null | defmodule PowitWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use PowitWeb, :controller
use PowitWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 22.531646 | 83 | 0.673034 |
08ad1660456bb72156b778e02489340f9e2258ba | 915 | ex | Elixir | Microsoft.Azure.Management.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/model/performance_tier_properties.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.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/model/performance_tier_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.PostgreSql/lib/microsoft/azure/management/database/postgre_sql/model/performance_tier_properties.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.Database.PostgreSql.Model.PerformanceTierProperties do
@moduledoc """
Performance tier properties
"""
@derive ... | 30.5 | 153 | 0.765027 |
08ad5ce84832c733780c464e2688c147082a1177 | 1,270 | ex | Elixir | lib/discuss_web/channels/user_socket.ex | albertocsouto/udemy-phoenix-bootcamp | f2506fee672fe22c8b6ff80805bd7324a3a629a9 | [
"Apache-2.0"
] | null | null | null | lib/discuss_web/channels/user_socket.ex | albertocsouto/udemy-phoenix-bootcamp | f2506fee672fe22c8b6ff80805bd7324a3a629a9 | [
"Apache-2.0"
] | null | null | null | lib/discuss_web/channels/user_socket.ex | albertocsouto/udemy-phoenix-bootcamp | f2506fee672fe22c8b6ff80805bd7324a3a629a9 | [
"Apache-2.0"
] | null | null | null | defmodule DiscussWeb.UserSocket do
use Phoenix.Socket
## Channels
channel("comments:*", DiscussWeb.CommentsChannel)
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all... | 30.238095 | 83 | 0.673228 |
08ad5e33a3ae8656fb9128f7853c7d4e0c8941b5 | 1,503 | ex | Elixir | apps/diagnostics/lib/diagnostics/application.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 17 | 2020-06-20T11:29:43.000Z | 2022-03-21T05:53:06.000Z | apps/diagnostics/lib/diagnostics/application.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 2 | 2020-07-09T10:22:50.000Z | 2020-09-01T14:46:40.000Z | apps/diagnostics/lib/diagnostics/application.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 3 | 2020-07-17T20:04:36.000Z | 2022-01-24T14:19:46.000Z | # Copyright 2019 Volvo Cars
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 34.159091 | 70 | 0.744511 |
08ad6a0ee500ca2e6671b045b1f797b54e49e260 | 3,420 | ex | Elixir | lib/growlex/registration.ex | atomic-fads/growlex | 438e837540afaff5391f62c4490b67038ece1b6a | [
"Apache-2.0"
] | null | null | null | lib/growlex/registration.ex | atomic-fads/growlex | 438e837540afaff5391f62c4490b67038ece1b6a | [
"Apache-2.0"
] | null | null | null | lib/growlex/registration.ex | atomic-fads/growlex | 438e837540afaff5391f62c4490b67038ece1b6a | [
"Apache-2.0"
] | null | null | null | defmodule Growlex.Registration do
import Growlex.Headers
import Growlex.Options
alias Growlex.Icon
alias Growlex.Network
def register([]) do
{:undefined, :notifications}
end
def register(options) do
check_options(options, options)
|> do_register
end
def do_register({:ok, options}) do
... | 24.604317 | 76 | 0.67076 |
08ad768c33429ef493e37b89f1238e38fd8d1408 | 10,464 | exs | Elixir | lib/logger/test/logger_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | lib/logger/test/logger_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | defmodule LoggerTest do
use Logger.Case
require Logger
setup_all do
Logger.configure_backend(:console, metadata: [:application, :module])
on_exit(fn ->
Logger.configure_backend(:console, metadata: [])
end)
end
defp msg_with_meta(text) do
msg("module=LoggerTest #{text}")
end
test ... | 28.512262 | 96 | 0.602446 |
08adc22a0a3ecc545581a7ddde660e10282bc2e0 | 575 | exs | Elixir | test/web/controllers/webapp_controller_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | test/web/controllers/webapp_controller_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | test/web/controllers/webapp_controller_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule AccentTest.WebappController do
use Accent.ConnCase
test "index", %{conn: conn} do
response =
conn
|> get(web_app_path(conn, []))
assert response.status == 200
assert response.state == :sent
assert get_resp_header(response, "content-type") == ["text/html; charset=utf-8"]
end... | 23.958333 | 84 | 0.636522 |
08adc2f547200a07ea06b0ebbbce4dc31a30fcb8 | 1,349 | ex | Elixir | lib/square_up/resources/v2/cash_drawer_shifts.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 4 | 2020-10-21T18:34:50.000Z | 2022-03-16T06:25:44.000Z | lib/square_up/resources/v2/cash_drawer_shifts.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 5 | 2020-10-21T23:16:32.000Z | 2021-05-13T13:42:44.000Z | lib/square_up/resources/v2/cash_drawer_shifts.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 3 | 2020-10-21T21:20:36.000Z | 2021-03-15T18:00:30.000Z | defmodule SquareUp.V2.CashDrawerShifts do
import Norm
import SquareUp.Client, only: [call: 2]
@spec list(SquareUp.Client.t(), %{}, %{}, %{
required(:location_id) => binary(),
optional(:sort_order) => binary(),
optional(:begin_time) => binary(),
optional(:end_time) => binar... | 32.119048 | 93 | 0.619718 |
08add1d9e118db6384196fac1281e80cfb72f198 | 78 | exs | Elixir | config/prod.exs | icanmakeitbetter/decipher_api | 3e2152f8fd87f4a92489d08e0bd4f53d18e3c0d2 | [
"MIT"
] | null | null | null | config/prod.exs | icanmakeitbetter/decipher_api | 3e2152f8fd87f4a92489d08e0bd4f53d18e3c0d2 | [
"MIT"
] | null | null | null | config/prod.exs | icanmakeitbetter/decipher_api | 3e2152f8fd87f4a92489d08e0bd4f53d18e3c0d2 | [
"MIT"
] | null | null | null | use Mix.Config
config :decipher_api, service: DecipherAPI.Service.HTTPClient
| 19.5 | 61 | 0.833333 |
08ade533c1ada3d3af732ab1f00336081a594eb8 | 22,018 | ex | Elixir | lib/phoenix/presence.ex | fekle/phoenix | 3e0979b5d91bab771fa03aeca232094f4d5ab4b0 | [
"MIT"
] | null | null | null | lib/phoenix/presence.ex | fekle/phoenix | 3e0979b5d91bab771fa03aeca232094f4d5ab4b0 | [
"MIT"
] | null | null | null | lib/phoenix/presence.ex | fekle/phoenix | 3e0979b5d91bab771fa03aeca232094f4d5ab4b0 | [
"MIT"
] | null | null | null | defmodule Phoenix.Presence do
@moduledoc """
Provides Presence tracking to processes and channels.
This behaviour provides presence features such as fetching
presences for a given topic, as well as handling diffs of
join and leave events as they occur in real-time. Using this
module defines a supervisor an... | 31.956459 | 98 | 0.639386 |
08adf08ff9adf95434f099d35dd909e586c9c81d | 8,758 | exs | Elixir | lib/ex_unit/test/ex_unit/doc_test_test.exs | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/doc_test_test.exs | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/doc_test_test.exs | jquadrin/elixir | 98746e08eaa2bf58c202e8500b6cf83ed2368cc0 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
import ExUnit.TestHelpers
defmodule ExUnit.DocTestTest.GoodModule do
@doc """
iex> test_fun
1
iex> test_fun + 1
2
"""
def test_fun, do: 1
@doc ~S"""
iex> ~S(f#{o}o)
"f\#{o}o"
"""
def test_sigil, do: :ok
@doc """
iex> a = 1
iex> b = a + 2
... | 25.683284 | 130 | 0.64992 |
08adf5c8c4b8fc4e9caec96528d4e6689f7691b9 | 2,146 | ex | Elixir | kousa/lib/broth/message/manifest.ex | MeztliRA/dogehouse | 8bbc4d09efcbff757249c27373e61b9d6d3cd920 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/manifest.ex | MeztliRA/dogehouse | 8bbc4d09efcbff757249c27373e61b9d6d3cd920 | [
"MIT"
] | null | null | null | kousa/lib/broth/message/manifest.ex | MeztliRA/dogehouse | 8bbc4d09efcbff757249c27373e61b9d6d3cd920 | [
"MIT"
] | null | null | null | defmodule Broth.Message.Manifest do
alias Broth.Message.Auth
alias Broth.Message.Chat
alias Broth.Message.Room
alias Broth.Message.User
alias Broth.Message.Misc
@actions %{
"test:operator" => BrothTest.MessageTest.TestOperator,
"user:create_bot" => User.CreateBot,
"user:ban" => User.Ban,
"u... | 32.515152 | 92 | 0.658434 |
08ae091ff570621dfa8364cde3bc6bde3edf4908 | 155 | ex | Elixir | lib/timeularex/resources/time_entry.ex | r-frederick/timeularex | 9ede39350b4d0095300d291fb2ab1049461e3381 | [
"MIT"
] | 1 | 2018-06-01T19:14:57.000Z | 2018-06-01T19:14:57.000Z | lib/timeularex/resources/time_entry.ex | r-frederick/timeularex | 9ede39350b4d0095300d291fb2ab1049461e3381 | [
"MIT"
] | null | null | null | lib/timeularex/resources/time_entry.ex | r-frederick/timeularex | 9ede39350b4d0095300d291fb2ab1049461e3381 | [
"MIT"
] | null | null | null | defmodule Timeularex.Resources.TimeEntry do
defstruct activityId: nil,
startedAt: nil,
stoppedAt: nil,
note: nil
end
| 22.142857 | 43 | 0.612903 |
08ae7bfb26d996cc814d4ea02e585d9a98b93ba2 | 2,133 | exs | Elixir | test/erlef_web/controllers/working_group/report_controller_test.exs | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | test/erlef_web/controllers/working_group/report_controller_test.exs | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | test/erlef_web/controllers/working_group/report_controller_test.exs | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.WorkingGroup.ReportControllerTest do
use ErlefWeb.ConnCase
alias Erlef.Groups
@create_attrs %{content: "some content", is_private: true, meta: %{}, type: "quarterly"}
@invalid_attrs %{content: nil, is_private: nil, meta: nil, type: nil}
def fixture(:working_group_report) do
{:ok, wor... | 35.55 | 98 | 0.691514 |
08ae8ef7508ca29cd641ad7ff474f1a06c1de87a | 1,559 | ex | Elixir | lib/hauer/fs.ex | nanaki82/hauer | 7d717a913933c7f71391d0eadb724c41bdd3ed77 | [
"MIT"
] | null | null | null | lib/hauer/fs.ex | nanaki82/hauer | 7d717a913933c7f71391d0eadb724c41bdd3ed77 | [
"MIT"
] | null | null | null | lib/hauer/fs.ex | nanaki82/hauer | 7d717a913933c7f71391d0eadb724c41bdd3ed77 | [
"MIT"
] | null | null | null | defmodule Hauer.FS do
@moduledoc false
@resources_dir Application.get_env(:hauer, :resources_dir)
@conf_file Application.get_env(:hauer, :conf_file)
defp create_resources_dir() do
resources_dir = get_resources_dir()
if !File.exists?(resources_dir) do
File.mkdir!(resources_dir)
end
:ok
... | 21.356164 | 71 | 0.669019 |
08aeb1d46f4040f16d7804e40266531e59cc7b31 | 295 | exs | Elixir | backend/priv/repo/migrations/20211105185233_add_connection_info_to_devices.exs | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/priv/repo/migrations/20211105185233_add_connection_info_to_devices.exs | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/priv/repo/migrations/20211105185233_add_connection_info_to_devices.exs | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | defmodule Honeyland.Repo.Migrations.AddConnectionInfoToDevices do
use Ecto.Migration
def change do
alter table(:devices) do
add :online, :boolean, default: false, null: false
add :last_connection, :utc_datetime
add :last_disconnection, :utc_datetime
end
end
end
| 24.583333 | 65 | 0.728814 |
08aecc89e0f0a5bee8ab323213e910b9f3fa63dd | 1,112 | ex | Elixir | lib/mix/tasks/analyze.ex | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | 2 | 2020-12-03T18:09:00.000Z | 2021-01-17T22:44:50.000Z | lib/mix/tasks/analyze.ex | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | null | null | null | lib/mix/tasks/analyze.ex | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Analyze do
# Analyze the code and exit if errors have been found.
#
# It is a private mix task for CargueroTaskBunny.
#
@moduledoc false
use Mix.Task
@shortdoc "Analyze the code and exit if errors have been found."
@spec execute(String.t(), [String.t()], boolean) :: any
defp exe... | 24.711111 | 66 | 0.580935 |
08af0b61999b1df93ecde398dc9884cec5091fe9 | 2,390 | exs | Elixir | elixir/diamond/diamond_test.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/diamond/diamond_test.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/diamond/diamond_test.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("diamond.exs")
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
defmodule IndentTests do
use ExUnit.Case
test "for ?A should not add spaces" do
assert Diamond.indent(?A, ?A) == []
end
test "for ?B should return one space" d... | 20.782609 | 80 | 0.615481 |
08af2829bdd3b894131f54ac1df0c9d1233fbb3d | 4,400 | ex | Elixir | lib/bamboo/adapters/ses_adapter.ex | goodells/bamboo_ses | 3a3961d63862e8eef4c013dbf0612591b971d5a3 | [
"MIT"
] | null | null | null | lib/bamboo/adapters/ses_adapter.ex | goodells/bamboo_ses | 3a3961d63862e8eef4c013dbf0612591b971d5a3 | [
"MIT"
] | null | null | null | lib/bamboo/adapters/ses_adapter.ex | goodells/bamboo_ses | 3a3961d63862e8eef4c013dbf0612591b971d5a3 | [
"MIT"
] | null | null | null | defmodule Bamboo.SesAdapter do
@moduledoc """
Sends email using AWS SES API.
Use this adapter to send emails through AWS SES API.
"""
@behaviour Bamboo.Adapter
alias Bamboo.SesAdapter.RFC2822Renderer
alias ExAws.SES
import Bamboo.ApiError
@doc false
def supports_attachments?, do: true
@doc fa... | 27.5 | 97 | 0.660227 |
08af2e33c60d4e3399b9aef231e52c428b13ff11 | 2,604 | exs | Elixir | mix.exs | wmnnd/ex_doc | c287e821b56b7c58052ef26be891519e68b3dd11 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mix.exs | wmnnd/ex_doc | c287e821b56b7c58052ef26be891519e68b3dd11 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mix.exs | wmnnd/ex_doc | c287e821b56b7c58052ef26be891519e68b3dd11 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Mixfile do
use Mix.Project
@source_url "https://github.com/elixir-lang/ex_doc"
@version "0.27.2"
def project do
[
app: :ex_doc,
version: @version,
elixir: "~> 1.10",
deps: deps(),
aliases: aliases(),
package: package(),
escript: escript(),
el... | 24.336449 | 89 | 0.56298 |
08af34eac12565eb75f782037110e47ef6a26b6f | 1,290 | exs | Elixir | config/config.exs | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | config/config.exs | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | 13 | 2020-03-22T08:00:57.000Z | 2022-03-07T16:35:36.000Z | config/config.exs | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your umbrella
# and **all applications** and their dependencies with the
# help of Mix.Config.
#
# Note that all applications in your umbrella share the
# same configuration and dependencies, which is why they
# all use the same configuration file. If you want different
# conf... | 33.076923 | 86 | 0.769767 |
08af35930691f55cc995792824a0427ae589ff05 | 3,237 | exs | Elixir | test/level_web/controllers/postbot_controller_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | test/level_web/controllers/postbot_controller_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | test/level_web/controllers/postbot_controller_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule LevelWeb.PostbotControllerTest do
use LevelWeb.ConnCase, async: true
alias Level.Posts
describe "POST /postbot/:space_slug/:key" do
test "if space does not exist", %{conn: conn} do
conn =
conn
|> post("/postbot/dontexist/xyz", %{"body" => "Hello world"})
assert %{"succ... | 31.427184 | 95 | 0.526104 |
08af3bd9ef6e24e44dffa46fcd1922ac10a348a5 | 569 | ex | Elixir | lib/utils/bacen_id.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | 1 | 2022-03-15T18:58:21.000Z | 2022-03-15T18:58:21.000Z | lib/utils/bacen_id.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | lib/utils/bacen_id.ex | starkinfra/sdk-elixir | d434de336ad7d2331b860519f04e9d107bb9c9cd | [
"MIT"
] | null | null | null | defmodule StarkInfra.Utils.BacenId do
def create(bank_code) do
[bank_code, datetime_to_string(DateTime.utc_now), random_alphanumeric(11)]
|> Enum.join("")
end
defp datetime_to_string(datetime) do
[datetime.year, datetime.month, datetime.day, datetime.hour, datetime.minute]
|> Enum.map(&to_string/... | 31.611111 | 120 | 0.704745 |
08af48b816127fb91ab9ea044c9708fe372b636e | 842 | ex | Elixir | lib/radiator_web/graphql/admin/resolvers/storage.ex | djschilling/radiator | 382e22904d7e400a8ffba54e9ddfd2845bc2b623 | [
"MIT"
] | null | null | null | lib/radiator_web/graphql/admin/resolvers/storage.ex | djschilling/radiator | 382e22904d7e400a8ffba54e9ddfd2845bc2b623 | [
"MIT"
] | null | null | null | lib/radiator_web/graphql/admin/resolvers/storage.ex | djschilling/radiator | 382e22904d7e400a8ffba54e9ddfd2845bc2b623 | [
"MIT"
] | null | null | null | defmodule RadiatorWeb.GraphQL.Admin.Resolvers.Storage do
use Radiator.Constants
alias Radiator.Storage
alias Radiator.Media
alias Radiator.Directory.Editor
def create_upload(_parent, %{filename: filename}, _resolution) do
{:ok, upload_url} = Storage.get_upload_url(filename)
{:ok, %{upload_url: uploa... | 27.16129 | 67 | 0.654394 |
08af4c6bbbc38cda45be88d5aac3b96f8db424b4 | 2,812 | ex | Elixir | priv/templates/phx.gen.presence/presence.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 2 | 2016-11-01T15:01:48.000Z | 2016-11-01T15:07:20.000Z | priv/templates/phx.gen.presence/presence.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | priv/templates/phx.gen.presence/presence.ex | zorn/phoenix | ac88958550fbd861e2f1e1af6e3c6b787b1a202e | [
"MIT"
] | null | null | null | defmodule <%= module %> do
@moduledoc """
Provides presence tracking to channels and processes.
See the [`Phoenix.Presence`](http://hexdocs.pm/phoenix/Phoenix.Presence.html)
docs for more details.
## Usage
Presences can be tracked in your channel after joining:
defmodule <%= base %>.MyChannel do
... | 38 | 79 | 0.661095 |
08af547df0cccfc6e2abc9ccefd1554070828cd0 | 1,650 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/experimental.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/experimental.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/experimental.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.375 | 104 | 0.76303 |
08af696f1282f9d779c73999de6dda3484618f08 | 2,034 | ex | Elixir | lib/pathex/builder/composition/or.ex | devstopfix/pathex | 0a7087d31eefb9c0c2988fd5bf6dd0385e68dd80 | [
"BSD-2-Clause"
] | 51 | 2020-04-23T11:55:36.000Z | 2022-03-28T10:01:39.000Z | lib/pathex/builder/composition/or.ex | devstopfix/pathex | 0a7087d31eefb9c0c2988fd5bf6dd0385e68dd80 | [
"BSD-2-Clause"
] | 4 | 2021-03-12T14:44:27.000Z | 2021-12-29T11:00:02.000Z | lib/pathex/builder/composition/or.ex | devstopfix/pathex | 0a7087d31eefb9c0c2988fd5bf6dd0385e68dd80 | [
"BSD-2-Clause"
] | 3 | 2020-10-16T18:05:16.000Z | 2021-06-03T21:54:26.000Z | defmodule Pathex.Builder.Composition.Or do
@moduledoc """
This builder builds composition for `|||` operator
"""
@behaviour Pathex.Builder.Composition
alias Pathex.Builder.Code
def build(items) do
[
view: build_view(items),
update: build_update(items),
force_update: bu... | 26.076923 | 100 | 0.627335 |
08af90309e98e4ffd002bb3abbadf6a16a774dc6 | 1,123 | exs | Elixir | config/config.exs | bhelx/bhelky | 9d5c225de01fe10836e46a291543535c4db0b34e | [
"MIT"
] | 2 | 2018-11-19T19:04:03.000Z | 2020-04-26T17:34:00.000Z | config/config.exs | bhelx/bhelky | 9d5c225de01fe10836e46a291543535c4db0b34e | [
"MIT"
] | null | null | null | config/config.exs | bhelx/bhelky | 9d5c225de01fe10836e46a291543535c4db0b34e | [
"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.225806 | 73 | 0.749777 |
08af9b78f4f5424d2d11feeb2f8fc33ef8837df8 | 2,916 | ex | Elixir | deps/credo/lib/credo/config.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/credo/lib/credo/config.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/credo/lib/credo/config.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | defmodule Credo.Config do
@doc """
Every run of Credo is configured via a `Config` object, which is created and
manipulated via the `Credo.Config` module.
"""
defstruct args: [],
files: nil,
source_files: [],
color: true,
... | 30.375 | 100 | 0.589849 |
08af9e19cac4f6d725159fd7f938ede83cffaeff | 3,277 | ex | Elixir | lib/momento.ex | agix/momento | cd42abe9322f27e65278b65fb35d223baa317423 | [
"MIT"
] | 37 | 2016-07-01T22:35:41.000Z | 2020-10-02T23:41:45.000Z | lib/momento.ex | agix/momento | cd42abe9322f27e65278b65fb35d223baa317423 | [
"MIT"
] | 5 | 2016-07-02T14:15:57.000Z | 2016-07-24T09:46:22.000Z | lib/momento.ex | agix/momento | cd42abe9322f27e65278b65fb35d223baa317423 | [
"MIT"
] | 5 | 2016-07-02T03:46:52.000Z | 2019-04-23T14:15:54.000Z | defmodule Momento do
require Momento.Guards
@moduledoc """
Momento is an Elixir port of [Moment.js](https://github.com/moment/moment) for the purpose of parsing, validating,
manipulating, and formatting dates.
"""
@doc """
Provides a DateTime struct representing the current date and time.
## Examples... | 33.783505 | 116 | 0.641745 |
08afa04bdaea3be5ba8fe825817e932901b1ea53 | 96 | exs | Elixir | chapter7/ListAndRecursion-0.exs | matheustp/programming-elixir-1.3-exercises | f32ad2f6c53da11a24e602fc63299f65a3c48dfc | [
"MIT"
] | null | null | null | chapter7/ListAndRecursion-0.exs | matheustp/programming-elixir-1.3-exercises | f32ad2f6c53da11a24e602fc63299f65a3c48dfc | [
"MIT"
] | null | null | null | chapter7/ListAndRecursion-0.exs | matheustp/programming-elixir-1.3-exercises | f32ad2f6c53da11a24e602fc63299f65a3c48dfc | [
"MIT"
] | null | null | null | defmodule MyList do
def sum([]), do: 0
def sum([ head | tail ]), do: head + sum(tail)
end | 24 | 49 | 0.583333 |
08afd0ab11ab4fbe010ee927df597541e7ca465e | 1,960 | exs | Elixir | test/views/worker_definition_view_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/views/worker_definition_view_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | test/views/worker_definition_view_test.exs | nipierre/ex_step_flow | 4345ee57bd4e5eb79138df68d10579ba1b9ec6a1 | [
"MIT"
] | null | null | null | defmodule StepFlow.WorkerDefinitionViewTest do
use ExUnit.Case
use Plug.Test
alias Ecto.Adapters.SQL.Sandbox
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
setup do
# Explicitly get a connection before each test
Sandbox.checkout(StepFlow.Repo)
end
@worke... | 29.69697 | 77 | 0.57398 |
08aff557e20374e12ba4d65bc08ee08d5e4844b8 | 5,843 | ex | Elixir | lib/plug/conn/utils.ex | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | lib/plug/conn/utils.ex | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | lib/plug/conn/utils.ex | fishcakez/plug | 9fafa1527536b0b1895cad9fb464bc62e6e80123 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Conn.Utils do
@moduledoc """
Utilities for working with connection data
"""
@type params :: [{binary, binary}]
@upper ?A..?Z
@lower ?a..?z
@alpha ?0..?9
@other [?., ?-, ?+]
@space [?\s, ?\t]
@specials [?(, ?), ?<, ?>, ?@, ?,, ?;, ?:, ?\\, ?", ?/, ?[, ?], ??, ?., ?=]
@doc ~S"""
... | 25.853982 | 104 | 0.538422 |
08b00596ec721e3f88cdeef6bd468f30da9defb6 | 1,119 | exs | Elixir | config/config.exs | camcaine/north | d1193d3cdab219a2b91136cf2c4938f30d0a9c86 | [
"MIT"
] | null | null | null | config/config.exs | camcaine/north | d1193d3cdab219a2b91136cf2c4938f30d0a9c86 | [
"MIT"
] | null | null | null | config/config.exs | camcaine/north | d1193d3cdab219a2b91136cf2c4938f30d0a9c86 | [
"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.096774 | 73 | 0.75067 |
08b00a89aafc6530cf6e04d5a58050e5b1b68c5a | 1,734 | exs | Elixir | exercises/connect/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/connect/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/connect/example.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Connect do
@doc """
Calculates the winner (if any) of a board
using "O" as the white player
and "X" as the black player
"""
@spec result_for([String.t()]) :: :none | :black | :white
def result_for(board) do
cond do
black_wins?(board) -> :black
white_wins?(board) -> :white
t... | 23.753425 | 84 | 0.540946 |
08b010f2db4b6b809671cbc378ed35cdaa1ee7d0 | 8,042 | ex | Elixir | lib/conversations_client.ex | jmnsf/ex_microsoftbot | c1c2185f1414b1cbb03999b2195745e35936c2d9 | [
"MIT"
] | 35 | 2016-05-11T02:34:27.000Z | 2021-04-29T07:34:11.000Z | lib/conversations_client.ex | jmnsf/ex_microsoftbot | c1c2185f1414b1cbb03999b2195745e35936c2d9 | [
"MIT"
] | 27 | 2016-07-10T18:32:25.000Z | 2021-09-29T07:00:22.000Z | lib/conversations_client.ex | jmnsf/ex_microsoftbot | c1c2185f1414b1cbb03999b2195745e35936c2d9 | [
"MIT"
] | 23 | 2016-05-10T18:53:13.000Z | 2021-06-25T22:04:21.000Z | defmodule ExMicrosoftBot.Client.Conversations do
@moduledoc """
This module provides the functions for conversations
"""
import ExMicrosoftBot.Client,
only: [deserialize_response: 2, delete: 1, get: 1, post: 2, put: 2]
alias ExMicrosoftBot.Models
alias ExMicrosoftBot.Client
@doc """
Create a new ... | 41.030612 | 201 | 0.702313 |
08b0259f7f8c1f7145791411ecfa04fecfb1c9ed | 1,449 | exs | Elixir | test/bitcoin/script/number_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | 2 | 2019-08-12T04:53:57.000Z | 2019-09-03T03:47:33.000Z | test/bitcoin/script/number_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | test/bitcoin/script/number_test.exs | coinscript/bitcoinsv-elixir | 2dda03c81edc5662743ed2922abb5b1910d9c09a | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.Script.NumberTest do
use ExUnit.Case
alias Bitcoin.Script.Number
@cases [
{<<>>, 0},
# check if we do minimal encoding
# https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki#numbers
{<<0xFF>>, -127},
{<<0x82>>, -2},
{<<0x11>>, 17},
{<<0x7F>>, 127},
{<<... | 24.982759 | 76 | 0.565908 |
08b03adfa5c2a59a03d8b7023c98b5ce78b02a90 | 245 | ex | Elixir | lib/sibt.ex | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | null | null | null | lib/sibt.ex | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | 2 | 2020-07-18T02:22:22.000Z | 2021-03-09T15:46:44.000Z | lib/sibt.ex | amacgregor/shouldibuildthat | 572b0ba95f93f6ea0dc7b250baaa1bc90efd521b | [
"MIT"
] | null | null | null | defmodule Sibt do
@moduledoc """
Sibt keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.5 | 66 | 0.746939 |
08b0470fbf2174ab872f1963f8eda3e4a46d92f0 | 13 | ex | Elixir | testData/org/elixir_lang/parser_definition/no_parentheses_no_arguments_call_parsing_test_case/CharTokenDotIdentifier.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/no_parentheses_no_arguments_call_parsing_test_case/CharTokenDotIdentifier.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/no_parentheses_no_arguments_call_parsing_test_case/CharTokenDotIdentifier.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ?a.identifier | 13 | 13 | 0.846154 |
08b05d70d105af5f7edd198cae1f2d5a2a8ed38f | 11,040 | exs | Elixir | lib/elixir/test/elixir/kernel/docs_test.exs | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/docs_test.exs | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | 1 | 2021-07-01T17:58:37.000Z | 2021-07-01T19:05:37.000Z | lib/elixir/test/elixir/kernel/docs_test.exs | felipelincoln/elixir | 6724c1d1819f2926dac561980b4beab281bbd3c2 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.DocsTest do
use ExUnit.Case
import PathHelpers
defmacro wrong_doc_baz do
quote do
@doc "Wrong doc"
@doc since: "1.2"
def baz(_arg)
def baz(arg), do: arg + 1
end
end
test "attributes format" do
defmodule D... | 29.918699 | 100 | 0.558243 |
08b07c81bd527aa4508a4185372e6b5a42cf2490 | 4,571 | exs | Elixir | apps/re_web/test/graphql/dashboard/query_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re_web/test/graphql/dashboard/query_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_web/test/graphql/dashboard/query_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule ReWeb.GraphQL.Dashboard.QueryTest do
use ReWeb.ConnCase
import Re.Factory
alias ReWeb.AbsintheHelpers
setup %{conn: conn} do
conn = put_req_header(conn, "accept", "application/json")
admin_user = insert(:user, email: "admin@email.com", role: "admin")
user_user = insert(:user, email: "us... | 27.047337 | 97 | 0.537519 |
08b08afeb2056317015dc92f48d7b18187f15be3 | 7,616 | ex | Elixir | lib/ex_component_schema/validator/error/string_formatter.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 2 | 2022-03-18T08:52:29.000Z | 2022-03-18T08:52:33.000Z | lib/ex_component_schema/validator/error/string_formatter.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 8 | 2021-09-15T11:52:45.000Z | 2022-01-10T13:13:53.000Z | lib/ex_component_schema/validator/error/string_formatter.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | null | null | null | defmodule ExComponentSchema.Validator.Error.StringFormatter do
alias ExComponentSchema.Validator.Error
@spec format(ExComponentSchema.Validator.errors()) :: [{String.t(), String.t()}]
def format(errors) do
Enum.map(errors, fn %Error{error: error, path: path} ->
{to_string(error), path}
end)
end
... | 32.547009 | 142 | 0.682773 |
08b0a9839d1be02473c1b3c99d094c4101b12c38 | 1,248 | ex | Elixir | lib/util.ex | andersonmcook/flow_example | af3778c947411e96bfc93a64894ce74e916f248b | [
"MIT"
] | null | null | null | lib/util.ex | andersonmcook/flow_example | af3778c947411e96bfc93a64894ce74e916f248b | [
"MIT"
] | null | null | null | lib/util.ex | andersonmcook/flow_example | af3778c947411e96bfc93a64894ce74e916f248b | [
"MIT"
] | null | null | null | defmodule Util do
@moduledoc false
@doc """
Keep only .txt files
"""
def txt?(file) do
Path.extname(file) === ".txt"
end
@doc """
Join path with directory
"""
def join_path(file, path) do
Path.join(path, file)
end
@doc """
Clean-up words
"""
def clean(word) do
~r/[^A-zÀ-ÿ'-]... | 17.577465 | 55 | 0.581731 |
08b0c30dd5960c73ed3d699aac476aeea026233b | 2,072 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_environment_groups_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_environment_groups_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_environment_groups_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.533333 | 195 | 0.750483 |
08b0e98da84e3fe435bc61c18994b17f95caef7a | 2,267 | exs | Elixir | dnd-character/test/dnd_character_test.exs | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | dnd-character/test/dnd_character_test.exs | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | null | null | null | dnd-character/test/dnd_character_test.exs | rapidfireworks/exercism.ex | 7739c60db0510099fe8d37fd6bd76eee37623d05 | [
"MIT"
] | 1 | 2021-03-15T11:02:40.000Z | 2021-03-15T11:02:40.000Z | defmodule DndCharacterTest do
use ExUnit.Case
import DndCharacter, only: [modifier: 1, ability: 0, character: 0]
# canonical data version: 1.1.0
describe "ability modifier" do
# @tag :pending
test "for score 3 is -4" do
assert modifier(3) === -4
end
# @tag :pending
test "for score ... | 20.061947 | 76 | 0.565064 |
08b0f09554cbaa522094964a2b1cfe7e4f8b39b8 | 9,619 | ex | Elixir | lib/webdavex/client.ex | mugimaru73/webdavex | bdf9fe8bce47de50e5b93d80a3484966b5cced4b | [
"MIT"
] | 1 | 2018-09-09T11:32:48.000Z | 2018-09-09T11:32:48.000Z | lib/webdavex/client.ex | mugimaru73/webdavex | bdf9fe8bce47de50e5b93d80a3484966b5cced4b | [
"MIT"
] | null | null | null | lib/webdavex/client.ex | mugimaru73/webdavex | bdf9fe8bce47de50e5b93d80a3484966b5cced4b | [
"MIT"
] | 1 | 2018-11-02T05:53:35.000Z | 2018-11-02T05:53:35.000Z | defmodule Webdavex.Client do
@moduledoc """
[hackney](https://github.com/benoitc/hackney) based WebDAV client.
It is recommended to use `Webdavex` module to define your own client
instead of using `Webdavex.Client` directly.
With
defmodule MyClient
use Webdavex, base_url: "http://webdav.host"
... | 28.208211 | 115 | 0.598295 |
08b111358346e9b21789325901e0d5522e1e8240 | 2,123 | ex | Elixir | apps/service_profile/lib/profile/feed/flow.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_profile/lib/profile/feed/flow.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_profile/lib/profile/feed/flow.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Profile.Feed.Flow do
use Flow
use Properties, otp_app: :service_profile
require Logger
alias Profile.Feed.Flow.State
getter(:window_limit, default: 5)
getter(:window_unit, default: :minute)
@type init_opts :: [
name: GenServer.name(),
dataset_id: String.t(),
subs... | 30.328571 | 97 | 0.619878 |
08b18f61a8bc5ee7d4c8c9d9dbe3ccc00a36ee6c | 1,553 | ex | Elixir | lib/transhook_web/views/error_helpers.ex | linjunpop/transhook | 59000e5a346c6c059d95c5a1f48190f698b4e7a3 | [
"0BSD"
] | null | null | null | lib/transhook_web/views/error_helpers.ex | linjunpop/transhook | 59000e5a346c6c059d95c5a1f48190f698b4e7a3 | [
"0BSD"
] | null | null | null | lib/transhook_web/views/error_helpers.ex | linjunpop/transhook | 59000e5a346c6c059d95c5a1f48190f698b4e7a3 | [
"0BSD"
] | null | null | null | defmodule TranshookWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_ta... | 32.354167 | 78 | 0.666452 |
08b1bbcc2fc45538a9fa525d4c96e9cd4954f201 | 943 | exs | Elixir | apps/generic_plug/mix.exs | jfis/ex-gulp | 806d305ede7df3c2b42d21c2e7b574987832c8d6 | [
"MIT"
] | null | null | null | apps/generic_plug/mix.exs | jfis/ex-gulp | 806d305ede7df3c2b42d21c2e7b574987832c8d6 | [
"MIT"
] | null | null | null | apps/generic_plug/mix.exs | jfis/ex-gulp | 806d305ede7df3c2b42d21c2e7b574987832c8d6 | [
"MIT"
] | null | null | null | defmodule GenericPlug.Mixfile do
use Mix.Project
def project do
[app: :generic_plug,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
... | 22.452381 | 77 | 0.597031 |
08b1e1c8c5c0d4864e0def860fff220e69cd1cf6 | 283 | ex | Elixir | lib/genstage_importer/repo.ex | kloeckner-i/genstage_importer | a8d8242fa0bc79d83d05212dea667c93990685c7 | [
"MIT"
] | 4 | 2019-07-27T13:11:54.000Z | 2020-06-19T14:00:21.000Z | lib/genstage_importer/repo.ex | altmer/genstage_importer | a8d8242fa0bc79d83d05212dea667c93990685c7 | [
"MIT"
] | null | null | null | lib/genstage_importer/repo.ex | altmer/genstage_importer | a8d8242fa0bc79d83d05212dea667c93990685c7 | [
"MIT"
] | 2 | 2018-08-02T11:01:15.000Z | 2019-11-15T12:35:40.000Z | defmodule GenstageImporter.Repo do
use Ecto.Repo, otp_app: :genstage_importer
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 23.583333 | 66 | 0.717314 |
08b206f207c4c7a175e5cf3521c6bb80f5bfc1ce | 361 | ex | Elixir | lib/ecto_crdt_types/types/state/twopset.ex | ExpressApp/ecto_crdt_types | cf18557cf888b3d50a44640997507cff6caf2b93 | [
"MIT"
] | 8 | 2018-09-20T13:05:16.000Z | 2021-09-22T08:40:40.000Z | lib/ecto_crdt_types/types/state/twopset.ex | ExpressApp/ecto_crdt_types | cf18557cf888b3d50a44640997507cff6caf2b93 | [
"MIT"
] | null | null | null | lib/ecto_crdt_types/types/state/twopset.ex | ExpressApp/ecto_crdt_types | cf18557cf888b3d50a44640997507cff6caf2b93 | [
"MIT"
] | null | null | null | defmodule EctoCrdtTypes.Types.State.TWOPSet do
@moduledoc """
2PSet CRDT: two-phased set.
Once removed, elements cannot be added again.
Also, this is not an observed removed variant.
This means elements can be removed before being
in the set.
"""
@crdt_type :state_twopset
@crdt_value_type {:array, :st... | 27.769231 | 49 | 0.745152 |
08b23b6df35644a7db9708607b8530534129484c | 3,567 | exs | Elixir | test/oli/resources/numbering_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | test/oli/resources/numbering_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | test/oli/resources/numbering_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Resources.NumberingTest do
use Oli.DataCase
alias Oli.Resources.Numbering
alias Oli.Publishing.AuthoringResolver
alias Oli.Delivery.Sections
alias Oli.Publishing
alias Oli.Publishing.DeliveryResolver
describe "container numbering" do
setup do
Seeder.base_project_with_resource2()
... | 31.566372 | 100 | 0.543874 |
08b25a22ae7cbf11af0e207df40b015865c47661 | 3,320 | exs | Elixir | test/plug/crypto/message_encryptor_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | test/plug/crypto/message_encryptor_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | test/plug/crypto/message_encryptor_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Crypto.MessageEncryptorTest do
use ExUnit.Case, async: true
alias Plug.Crypto.MessageEncryptor, as: ME
@right String.duplicate("abcdefgh", 4)
@wrong String.duplicate("12345678", 4)
@large String.duplicate(@right, 2)
test "it encrypts/decrypts a message" do
data = <<0, "hełłoworld", 0>>... | 32.23301 | 88 | 0.671084 |
08b2785fb221a59a2c7438ee39ae724de15e6197 | 311 | exs | Elixir | test/test_server.exs | digitalnatives/haphazard | 52f0e196bd596662b8bf00dd7f09e20f0a7336b7 | [
"MIT"
] | 12 | 2017-02-13T19:35:26.000Z | 2020-02-01T15:30:53.000Z | test/test_server.exs | digitalnatives/haphazard | 52f0e196bd596662b8bf00dd7f09e20f0a7336b7 | [
"MIT"
] | null | null | null | test/test_server.exs | digitalnatives/haphazard | 52f0e196bd596662b8bf00dd7f09e20f0a7336b7 | [
"MIT"
] | null | null | null | defmodule HaphazardTest.Server do
use ExUnit.Case
use Plug.Test
doctest Haphazard.Server
alias Haphazard.Server
test "cleanup cache" do
Server.store_cache("key", "body", 10000)
Server.lookup_request("key")
Server.cleanup
assert Server.lookup_request("key") == :not_cached
end
end
| 19.4375 | 54 | 0.720257 |
08b27c444121c524708334ef5e4a8bdf6119a2d8 | 217 | exs | Elixir | config/test.exs | christopherlai/ex_aws_ssm | 62375f4283bc84cc8b8292748ddd93b9a1605d17 | [
"MIT"
] | 5 | 2019-03-29T00:18:19.000Z | 2020-01-19T05:32:08.000Z | config/test.exs | christopherlai/ex_aws_ssm | 62375f4283bc84cc8b8292748ddd93b9a1605d17 | [
"MIT"
] | 2 | 2019-08-20T17:19:13.000Z | 2020-05-25T19:50:30.000Z | config/test.exs | christopherlai/ex_aws_ssm | 62375f4283bc84cc8b8292748ddd93b9a1605d17 | [
"MIT"
] | 3 | 2019-02-13T16:56:21.000Z | 2020-06-30T16:37:31.000Z | use Mix.Config
config :ex_aws,
access_key_id: "accesskeyid",
secret_access_key: "secretaccesskey",
region: "us-east-1"
config :ex_aws,
ssm: [
host: "localhost",
scheme: "http://",
port: 4583
]
| 15.5 | 39 | 0.640553 |
08b27e677af74d68ad4d987a55471e87eb01b527 | 1,635 | ex | Elixir | web/controllers/parameter_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/controllers/parameter_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/controllers/parameter_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.ParameterController do
use Tox.Web, :controller
alias Tox.Parameter
def index(conn, _params) do
parameters = Repo.all(Parameter)
render(conn, "index.json", parameters: parameters)
end
def create(conn, %{"parameter" => parameter_params}) do
changeset = Parameter.changeset(%Paramete... | 29.196429 | 78 | 0.64159 |
08b2a1fceb0397966b822e15f023298449be9b58 | 440 | exs | Elixir | package.exs | Macu1/erlzk | 004f77a5015fac8bda5a044f29457125ab3e3fc4 | [
"Apache-2.0"
] | 80 | 2015-01-22T19:18:44.000Z | 2022-02-04T16:53:39.000Z | package.exs | Macu1/erlzk | 004f77a5015fac8bda5a044f29457125ab3e3fc4 | [
"Apache-2.0"
] | 15 | 2015-01-06T12:19:41.000Z | 2018-02-07T02:52:55.000Z | package.exs | Macu1/erlzk | 004f77a5015fac8bda5a044f29457125ab3e3fc4 | [
"Apache-2.0"
] | 37 | 2015-01-07T16:27:31.000Z | 2021-09-02T01:43:04.000Z | defmodule Erlzk.MixFile do
use Mix.Project
def project do
[app: :erlzk,
version: "0.6.6",
description: "A Pure Erlang ZooKeeper Client (no C dependency)",
package: package]
end
def package do
[files: ~w(src include rebar.config README.md LICENSE Makefile),
licenses: ["Apache 2.0"],... | 24.444444 | 69 | 0.638636 |
08b2ad6fa9bb657afc0bd4f48c49567d654021fe | 1,756 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/action_parameter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/action_parameter.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/action_parameter.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... | 33.132075 | 101 | 0.720387 |
08b2af7dd24fd648d5fa354baf33ca49e0b2b12d | 661 | ex | Elixir | wadm/lib/wadm/lattice_event_listener.ex | wasmCloud/wadm | ccf76739039f14fc40548a00dd209d7ffa5c0c4e | [
"Apache-2.0"
] | 2 | 2022-01-02T12:37:57.000Z | 2022-03-02T20:13:03.000Z | wadm/lib/wadm/lattice_event_listener.ex | wasmCloud/wadm | ccf76739039f14fc40548a00dd209d7ffa5c0c4e | [
"Apache-2.0"
] | 12 | 2021-11-28T19:22:20.000Z | 2022-01-25T18:41:48.000Z | wadm/lib/wadm/lattice_event_listener.ex | wasmCloud/wadm | ccf76739039f14fc40548a00dd209d7ffa5c0c4e | [
"Apache-2.0"
] | 1 | 2021-11-25T00:42:06.000Z | 2021-11-25T00:42:06.000Z | defmodule Wadm.LatticeEventListener do
alias Phoenix.PubSub
require Logger
use Gnat.Server
def request(%{topic: topic, body: body}) do
lattice_id =
topic
|> String.split(".")
|> List.last()
with {:ok, event} <- Jason.decode(body),
{:ok, cloud_event} <- Cloudevents.from_map(e... | 26.44 | 87 | 0.659607 |
08b2b9a6661d4d7b83d16ed6003ec5a11f17a096 | 1,298 | exs | Elixir | config/dev.exs | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | 1 | 2020-04-21T10:38:14.000Z | 2020-04-21T10:38:14.000Z | config/dev.exs | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | null | null | null | config/dev.exs | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | 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 :color_wars, ColorWarsWeb.Endpoint,
http: [por... | 34.157895 | 170 | 0.737288 |
08b2ce58e96537eda071656773611ec908214ce8 | 1,865 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/clinical_condition.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/clinical_condition.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/clinical_condition.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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... | 34.537037 | 153 | 0.738338 |
08b2f63694bc843a4f981935ef892e542c383da8 | 10,815 | ex | Elixir | lib/ecto/adapters/mysql.ex | mbuhot/ecto | e6c4c7df0af055ba4bae8737908b98ae85352d2f | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/mysql.ex | mbuhot/ecto | e6c4c7df0af055ba4bae8737908b98ae85352d2f | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/mysql.ex | mbuhot/ecto | e6c4c7df0af055ba4bae8737908b98ae85352d2f | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.MySQL do
@moduledoc """
Adapter module for MySQL.
It handles and pools the connections to the MySQL
database using `mariaex` and a connection pool,
such as `poolboy`.
## Options
MySQL options split in different categories described
below. All options should be given via the re... | 33.482972 | 111 | 0.649191 |
08b312f81c468fdf240a23a00a283fdbb6a5ac06 | 1,945 | ex | Elixir | lib/raxx/response.ex | cryic/raxx | a6e33f5dbd9b9344753b43c5d4eb4cbf838bdddf | [
"Apache-2.0"
] | null | null | null | lib/raxx/response.ex | cryic/raxx | a6e33f5dbd9b9344753b43c5d4eb4cbf838bdddf | [
"Apache-2.0"
] | null | null | null | lib/raxx/response.ex | cryic/raxx | a6e33f5dbd9b9344753b43c5d4eb4cbf838bdddf | [
"Apache-2.0"
] | null | null | null | defmodule Raxx.Response do
@moduledoc """
HTTP responses from a Raxx application are encapsulated in a `Raxx.Response` struct.
The contents are itemised below:
| **status** | The HTTP status code for the response: `1xx, 2xx, 3xx, 4xx, 5xx` |
| **headers** | The response headers as a list: `[{"content-type",... | 29.469697 | 86 | 0.632391 |
08b32209f5d4b63c3f3d4dc8d9d53246821e738e | 1,123 | exs | Elixir | twitter/config/config.exs | MrCeleryman/elixirtute | 797e3cb29a68a54728258329b49ac4ae0787cc76 | [
"MIT"
] | null | null | null | twitter/config/config.exs | MrCeleryman/elixirtute | 797e3cb29a68a54728258329b49ac4ae0787cc76 | [
"MIT"
] | null | null | null | twitter/config/config.exs | MrCeleryman/elixirtute | 797e3cb29a68a54728258329b49ac4ae0787cc76 | [
"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.225806 | 73 | 0.752449 |
08b32e031e554f4991d579533a1114e1b6f25ec0 | 19,858 | exs | Elixir | test/phoenix_live_view/html_tokenizer_test.exs | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | null | null | null | test/phoenix_live_view/html_tokenizer_test.exs | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | null | null | null | test/phoenix_live_view/html_tokenizer_test.exs | feliperenan/phoenix_live_view | af65bb51fe12ea88e7c66808d2b1118e1c491ddd | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HTMLTokenizerTest do
use ExUnit.Case, async: true
alias Phoenix.LiveView.HTMLTokenizer.ParseError
alias Phoenix.LiveView.HTMLTokenizer
defp tokenize(text) do
HTMLTokenizer.tokenize(text, "nofile", 0, [], [], :text)
|> elem(0)
|> Enum.reverse()
end
describe "text" do
... | 28.613833 | 96 | 0.485799 |
08b335a4b52c98cf9f4c07f74dd977e481e477b7 | 1,901 | ex | Elixir | clients/storage/lib/google_api/storage/v1/model/objects.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/objects.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/model/objects.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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... | 35.867925 | 193 | 0.740663 |
08b33e28595b8270f883df589722c482828c3084 | 1,924 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/sites_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/sites_list_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/sites_list_response.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... | 36.301887 | 180 | 0.725572 |
08b352259acbc5cd59c9a19dacf18ad2e6b1fb30 | 7,373 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/application_policy.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/application_policy.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/application_policy.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... | 77.610526 | 827 | 0.746508 |
08b3616864f46e9411efa1b793e8813f7987deff | 982 | exs | Elixir | config/test.exs | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | config/test.exs | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | config/test.exs | frunox/discuss | d19367eceb8c68ebef4e565981ceef256b5cb04e | [
"MIT"
] | null | null | null | import Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :discuss, Discuss.Repo,
username: "postgres",
password: "postgres",
database: "discuss_test#{System.get... | 31.677419 | 86 | 0.761711 |
08b3721a82d1243e31a3ae3e008425c9633d0f8f | 1,999 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/commitment_list_warning_data.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/commitment_list_warning_data.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/commitment_list_warning_data.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.98 | 527 | 0.738369 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.