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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28fe127222083713595c1a61bc5fa865585def1e | 8,250 | ex | Elixir | lib/gim/repo.ex | jan-sti/gim | 1b8be6c2163577f375825170cc9b01674e59b646 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-01-21T09:15:24.000Z | 2021-02-04T21:21:56.000Z | lib/gim/repo.ex | jan-sti/gim | 1b8be6c2163577f375825170cc9b01674e59b646 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-04-06T05:20:09.000Z | 2020-06-09T09:56:20.000Z | lib/gim/repo.ex | jan-sti/gim | 1b8be6c2163577f375825170cc9b01674e59b646 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-22T08:44:35.000Z | 2020-04-22T08:44:35.000Z | defmodule Gim.Repo do
@moduledoc """
Defines a repository.
A repository maps to an underlying data store hold in-memory.
When used, the repository expects the `:types` as option.
The `:types` is a list of schema types to register.
For example, the repository:
defmodule Repo do
use Gim.Repo,... | 25.700935 | 107 | 0.546061 |
28fe2eacf785bed217abb01673ebd12c7f3a7ece | 7,448 | exs | Elixir | config/.credo.exs | andzdroid/elixir-raknet-1 | c40aa2ecc2c520813482388f9f4eda4923a68902 | [
"MIT"
] | 194 | 2021-01-13T19:18:00.000Z | 2022-03-30T18:05:34.000Z | config/.credo.exs | andzdroid/elixir-raknet-1 | c40aa2ecc2c520813482388f9f4eda4923a68902 | [
"MIT"
] | 2 | 2021-03-25T19:47:04.000Z | 2021-07-05T11:29:48.000Z | config/.credo.exs | andzdroid/elixir-raknet-1 | c40aa2ecc2c520813482388f9f4eda4923a68902 | [
"MIT"
] | 4 | 2021-01-14T03:59:20.000Z | 2021-07-30T07:35:02.000Z | # 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 ... | 40.043011 | 116 | 0.59949 |
28fe302718b60c9a88ed1625d011e06b2ce819b9 | 579 | ex | Elixir | lib/pta_web/controllers/fallback_controller.ex | francocatena/pta | 57d62f4b07ccd58d5d0d15f54833f472fa8903e5 | [
"MIT"
] | null | null | null | lib/pta_web/controllers/fallback_controller.ex | francocatena/pta | 57d62f4b07ccd58d5d0d15f54833f472fa8903e5 | [
"MIT"
] | null | null | null | lib/pta_web/controllers/fallback_controller.ex | francocatena/pta | 57d62f4b07ccd58d5d0d15f54833f472fa8903e5 | [
"MIT"
] | null | null | null | defmodule PtaWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use PtaWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_status(:unpro... | 25.173913 | 72 | 0.685665 |
28fe5ff267f41c0036f7eaaa57b2d39530b35059 | 177 | exs | Elixir | test/kindlenotes2evernote_test.exs | jdambron/kindlenotes2evernote | 2f352f979aff9d64e3b95c8282fd047dda659414 | [
"MIT"
] | null | null | null | test/kindlenotes2evernote_test.exs | jdambron/kindlenotes2evernote | 2f352f979aff9d64e3b95c8282fd047dda659414 | [
"MIT"
] | null | null | null | test/kindlenotes2evernote_test.exs | jdambron/kindlenotes2evernote | 2f352f979aff9d64e3b95c8282fd047dda659414 | [
"MIT"
] | null | null | null | defmodule Kindlenotes2evernoteTest do
use ExUnit.Case
doctest Kindlenotes2evernote
test "greets the world" do
assert Kindlenotes2evernote.hello() == :world
end
end
| 19.666667 | 49 | 0.774011 |
28fe92b5ed11800191ab29b63d1284dd86ce9c18 | 12,749 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/api/perf_sample_series.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/api/perf_sample_series.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/api/perf_sample_series.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... | 41.9375 | 196 | 0.620676 |
28feca8f42cbb1e156abc6e74077386f4ab2e80d | 887 | ex | Elixir | lib/adaptable_costs_evaluator_web/views/formula_view.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | lib/adaptable_costs_evaluator_web/views/formula_view.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | 4 | 2021-12-07T12:26:50.000Z | 2021-12-30T14:17:25.000Z | lib/adaptable_costs_evaluator_web/views/formula_view.ex | patrotom/adaptable-costs-evaluator | c97e65af1e021d7c6acf6564f4671c60321346e3 | [
"MIT"
] | null | null | null | defmodule AdaptableCostsEvaluatorWeb.FormulaView do
use AdaptableCostsEvaluatorWeb, :view
alias AdaptableCostsEvaluatorWeb.{FormulaView, OutputView}
def render("index.json", %{formulas: formulas}) do
%{data: render_many(formulas, FormulaView, "formula.json")}
end
def render("show.json", %{formula: formu... | 26.878788 | 75 | 0.673055 |
28fecd1be3a1dc838af8f711c2b5b718b2baf992 | 1,294 | exs | Elixir | clients/street_view_publish/mix.exs | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/mix.exs | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/mix.exs | MechimCook/elixir-google-api | 0240ede69ec77115076724d223f9d1f849ff1d6b | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.StreetViewPublish.V1.Mixfile do
use Mix.Project
@version "0.5.1"
def project do
[app: :google_api_street_view_publish,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
packa... | 26.958333 | 207 | 0.638331 |
28ff15e7e219e1eeaedd57067166515856a199df | 108,948 | ex | Elixir | lib/ecto/changeset.ex | ccapndave/ecto | c1d27f004ca18905b69f7ca45958c50c0c5f0ce8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | ccapndave/ecto | c1d27f004ca18905b69f7ca45958c50c0c5f0ce8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/changeset.ex | ccapndave/ecto | c1d27f004ca18905b69f7ca45958c50c0c5f0ce8 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Changeset do
@moduledoc ~S"""
Changesets allow filtering, casting, validation and
definition of constraints when manipulating structs.
There is an example of working with changesets in the introductory
documentation in the `Ecto` module. The functions `cast/4` and
`change/2` are the usual en... | 38.402538 | 166 | 0.663858 |
28ff1d287eaaf4df7552c100d837262050dfb290 | 4,091 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/model/ip_allocation_policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/composer/lib/google_api/composer/v1beta1/model/ip_allocation_policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/ip_allocation_policy.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 ... | 40.50495 | 144 | 0.706184 |
28ff5c8ec08dd54e7fc23aa2648e06e1d98d1e82 | 3,232 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/messaging/ordering/strict/index_pipe.ex | Szymongib/ockam | b6d8c62ec2516c8e0dac243a02c1d1aaf9094622 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/messaging/ordering/strict/index_pipe.ex | Szymongib/ockam | b6d8c62ec2516c8e0dac243a02c1d1aaf9094622 | [
"Apache-2.0"
] | 108 | 2021-10-30T14:46:14.000Z | 2021-10-30T16:00:08.000Z | implementations/elixir/ockam/ockam/lib/ockam/messaging/ordering/strict/index_pipe.ex | frazar/ockam | 2229a22cb95fc40485304fac9b2236384b544ad4 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Messaging.Ordering.Strict.IndexPipe do
@moduledoc """
Strictly ordered pipe using indexing to enforce ordering
See `Ockam.Messaging.Ordering.IndexPipe.Sender` and
`Ockam.Messaging.Ordering.Strict.IndexPipe.Receiver`
"""
@behaviour Ockam.Messaging.Pipe
@doc "Get sender module"
def send... | 26.276423 | 104 | 0.663676 |
28ff6e9e9eb4c3d36a31c964464952d70467b1c0 | 583 | exs | Elixir | apps/admin_panel/config/config.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_panel/config/config.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_panel/config/config.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# General application configuration
config :admin_panel,
namespace: AdminPanel,
ecto_repos: [],
dist_path: {:apply, {Utils.Helpers.PathResolver, :static_dir, [:admin_panel]}},
webpack_watch: {:system, "WEBPACK_WATCH", false}
# Configures the endpoint
config :admin_panel, AdminPanel.Endpoint,
... | 32.388889 | 81 | 0.751286 |
28ff8ae5de418ea36486ca133fa8f716d4aebeb6 | 6,453 | ex | Elixir | lib/game/command/target.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/game/command/target.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | lib/game/command/target.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Game.Command.Target do
@moduledoc """
The "target" command
"""
use Game.Command
alias Data.NPC
alias Data.Room
alias Data.User
alias Game.Character
alias Game.Session.GMCP
alias Game.Utility
@must_be_alive true
commands([{"target", ["t"]}], parse: false)
@impl Game.Command
def... | 27.34322 | 125 | 0.605455 |
28ff90e67d1eb8967638af45fad23bf3b3635f6d | 2,462 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v2/model/subscription_price_change.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/subscription_price_change.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v2/model/subscription_price_change.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... | 48.27451 | 537 | 0.764013 |
28ffc0e81c5ea366faa0d0b16603c4a6487e7931 | 2,424 | ex | Elixir | lib/flowr_web.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | lib/flowr_web.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | lib/flowr_web.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule FlowrWeb 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 FlowrWeb, :controller
use FlowrWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 21.837838 | 78 | 0.679455 |
28ffce819e22775224f787603bf825bd19871ab4 | 1,295 | ex | Elixir | lib/appsignal/diagnose/report.ex | MeterSoft/appsignal-elixir | 52e3505b9dc90bce0795c4753a758d40bdf41463 | [
"MIT"
] | 234 | 2016-08-18T20:43:15.000Z | 2022-02-27T11:31:48.000Z | lib/appsignal/diagnose/report.ex | MeterSoft/appsignal-elixir | 52e3505b9dc90bce0795c4753a758d40bdf41463 | [
"MIT"
] | 563 | 2016-07-25T17:45:14.000Z | 2022-03-21T11:39:29.000Z | lib/appsignal/diagnose/report.ex | MeterSoft/appsignal-elixir | 52e3505b9dc90bce0795c4753a758d40bdf41463 | [
"MIT"
] | 86 | 2016-09-13T22:53:46.000Z | 2022-02-16T11:03:51.000Z | defmodule Appsignal.Diagnose.ReportBehaviour do
@moduledoc false
@callback send(map(), map()) :: {:ok, String.t()} | {:error, map()}
end
defmodule Appsignal.Diagnose.Report do
@moduledoc false
@behaviour Appsignal.Diagnose.ReportBehaviour
alias Appsignal.Transmitter
@spec send(map(), map()) :: {:ok, Strin... | 30.116279 | 69 | 0.600772 |
e9004f89565ea5bd2de780cdeb4c9adcc8649396 | 899 | ex | Elixir | lib/oli/analytics/datashop/elements/meta.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/analytics/datashop/elements/meta.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/analytics/datashop/elements/meta.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Analytics.Datashop.Elements.Meta do
@moduledoc """
<meta>
<user_id>t.stark+0@avengers.com</user_id>
<session_id>t.stark+0@avengers.com 2020-06-29 13:34</session_id>
<time>2020-06-29 13:34</time>
<time_zone>GMT</time_zone>
</meta>
"""
import XmlBuilder
def setup(%{date: date, e... | 29.966667 | 94 | 0.637375 |
e9006fd489b45cc89727ff46bb74acbe75bdd7f4 | 715 | ex | Elixir | lib/rihanna_ui_web/gettext.ex | nested-tech/rihanna_ui | 89ad67e443c9fd6d014f56c2300e285572a570e8 | [
"MIT"
] | null | null | null | lib/rihanna_ui_web/gettext.ex | nested-tech/rihanna_ui | 89ad67e443c9fd6d014f56c2300e285572a570e8 | [
"MIT"
] | null | null | null | lib/rihanna_ui_web/gettext.ex | nested-tech/rihanna_ui | 89ad67e443c9fd6d014f56c2300e285572a570e8 | [
"MIT"
] | null | null | null | defmodule RihannaUIWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import RihannaUIWeb.Gettext
# Simple translation
gettext "Here ... | 28.6 | 72 | 0.683916 |
e90075403de3febc42705e311f0347f11d3ec13d | 2,523 | exs | Elixir | config/config.exs | areski/fs_channels_influxdb | 4b2b3d65959ccc5838d79fcaf624e99fc31693f6 | [
"MIT"
] | 3 | 2016-08-08T07:07:35.000Z | 2019-11-08T05:20:31.000Z | config/config.exs | areski/fs_channels_influxdb | 4b2b3d65959ccc5838d79fcaf624e99fc31693f6 | [
"MIT"
] | null | null | null | config/config.exs | areski/fs_channels_influxdb | 4b2b3d65959ccc5838d79fcaf624e99fc31693f6 | [
"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... | 32.766234 | 73 | 0.723345 |
e9007900e02697dc7e486a80f9565d82214025d1 | 599 | ex | Elixir | lib/sling.ex | marcosriso/sling | d64b861aeeb982fae081d34e27974a994602bd49 | [
"MIT"
] | null | null | null | lib/sling.ex | marcosriso/sling | d64b861aeeb982fae081d34e27974a994602bd49 | [
"MIT"
] | null | null | null | lib/sling.ex | marcosriso/sling | d64b861aeeb982fae081d34e27974a994602bd49 | [
"MIT"
] | null | null | null | defmodule Sling do
use Mongo.Pool, name: __MODULE__, adapter: Mongo.Pool.Poolboy
def reader do
# Starts the pool named MongoPool
{:ok, _} = Sling.start_link(database: "test_db")
# Gets an enumerable cursor for the results
# Mongo.insert_many(Sling, "companies", [%{"name" => "Intelitica System... | 33.277778 | 151 | 0.632721 |
e900961d375dd085b596bd8469631b1877efeccb | 144 | ex | Elixir | web/controllers/tp_action_plan_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_action_plan_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/controllers/tp_action_plan_import_job_controller.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpActionPlanImportJobController do
use CgratesWebJsonapi.CsvImportJob, module: CgratesWebJsonapi.TpActionPlan
end
| 36 | 76 | 0.895833 |
e900a062df3d134937c5a48e352935b4a371c400 | 1,534 | exs | Elixir | mix.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 558 | 2015-06-21T18:20:59.000Z | 2021-12-30T16:25:47.000Z | mix.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 252 | 2015-06-19T13:00:47.000Z | 2021-04-21T08:04:16.000Z | mix.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 79 | 2015-06-21T14:18:30.000Z | 2021-12-30T16:26:09.000Z | defmodule Dogma.Mixfile do
use Mix.Project
@version "0.1.16"
def project do
[
app: :dogma,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
escript: [main_module: Mix.Tasks.Dogma],
deps: deps(),
build_embedded: Mix.env() == :prod,
... | 24.741935 | 71 | 0.551499 |
e900e5af5591f826519340a3e8aebdd968eaccc0 | 1,694 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/set_iam_policy_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... | 36.042553 | 306 | 0.744392 |
e9011fd872eed2e5500375b854b291850952942f | 1,513 | exs | Elixir | test/mix/tasks/hex.retire_test.exs | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | 1 | 2019-04-29T12:35:49.000Z | 2019-04-29T12:35:49.000Z | test/mix/tasks/hex.retire_test.exs | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | null | null | null | test/mix/tasks/hex.retire_test.exs | starbelly/hex | d84d2558812c454fbc9c26eea3b25e7648d345f1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex.RetireTest do
use HexTest.Case
@moduletag :integration
test "retire and unretire package" do
auth = Hexpm.new_user("retire_user", "retire_user@mail.com", "passpass", "key")
Hexpm.new_package("retire_package", "0.0.1", [], %{}, auth)
Hex.State.put(:home, tmp_path())
Mix.Ta... | 37.825 | 97 | 0.627231 |
e9012f86519e8a2262a5d863e3d96345e6994b3c | 1,241 | exs | Elixir | test/stone_bank/accounts_test.exs | brunoguedesit/stone_bank | ce99b3269595866faf7eb95f89b0d78f7cd62f2a | [
"MIT"
] | null | null | null | test/stone_bank/accounts_test.exs | brunoguedesit/stone_bank | ce99b3269595866faf7eb95f89b0d78f7cd62f2a | [
"MIT"
] | null | null | null | test/stone_bank/accounts_test.exs | brunoguedesit/stone_bank | ce99b3269595866faf7eb95f89b0d78f7cd62f2a | [
"MIT"
] | null | null | null | defmodule StoneBank.AccountsTest do
@moduledoc """
Accounts test module
"""
use StoneBank.DataCase
alias StoneBank.Accounts
alias StoneBank.Accounts.User
alias StoneBank.Repo
@valid_params %{
email: "test@test.com",
first_name: "test",
last_name: "user",
password: "test123",
passw... | 23.865385 | 72 | 0.636583 |
e9013a9ff0745903727460f0e53e015482d8be93 | 3,870 | ex | Elixir | lib/nostrum/struct/component/action_row.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/component/action_row.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/component/action_row.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | defmodule Nostrum.Struct.Component.ActionRow do
@moduledoc """
Action Rows.
"""
@moduledoc since: "0.5.0"
use Nostrum.Struct.Component
@defaults %{
type: 1,
components: []
}
@type t :: %Component{
type: Component.type(),
components: [Component.components()]
}
@do... | 28.043478 | 124 | 0.642636 |
e901567fc74d26a24710631d6efb8f25fcce72af | 14,462 | ex | Elixir | lib/mix/lib/mix/tasks/release.init.ex | matiasgarciaisaia/elixir | d0a3fdbfd774e0a6972513dcb82c2683400e67a0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.init.ex | matiasgarciaisaia/elixir | d0a3fdbfd774e0a6972513dcb82c2683400e67a0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.init.ex | matiasgarciaisaia/elixir | d0a3fdbfd774e0a6972513dcb82c2683400e67a0 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Release.Init do
use Mix.Task
@shortdoc "Generates sample files for releases"
@moduledoc """
Generates sample files for releases.
mix release.init
* creating rel/vm.args.eex
* creating rel/env.sh.eex
* creating rel/env.bat.eex
"""
import Mix.Generator
@swit... | 32.868182 | 289 | 0.612847 |
e901586a34fbb6fee93c769137dbe63bbe06d830 | 257 | ex | Elixir | lib/playground.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/elixir-elm-playground/lib/playground.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/elixir-elm-playground/lib/playground.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule Playground do
@moduledoc """
Playground 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
| 25.7 | 66 | 0.758755 |
e90168464862f70d9b46739df0f194ac25c23d3d | 1,129 | exs | Elixir | config/config.exs | zergera/ex_pirate | 2c90d2a458da2cfdedc53c3d513ca0b8a0f59eff | [
"MIT"
] | null | null | null | config/config.exs | zergera/ex_pirate | 2c90d2a458da2cfdedc53c3d513ca0b8a0f59eff | [
"MIT"
] | null | null | null | config/config.exs | zergera/ex_pirate | 2c90d2a458da2cfdedc53c3d513ca0b8a0f59eff | [
"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.419355 | 73 | 0.751107 |
e90168f7dd7ebcd45fed6c586d043f71ffe78e5f | 985 | exs | Elixir | config/config.exs | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:57:08.000Z | 2018-10-08T13:57:08.000Z | config/config.exs | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | null | null | null | config/config.exs | woeye/twaddler | e06a22a94520055bc33aaaacfe51989ba8ab665f | [
"Apache-2.0"
] | 1 | 2018-10-08T13:55:44.000Z | 2018-10-08T13:55:44.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :twaddler,
ecto_repos: [Twaddler.Repo]
... | 33.965517 | 86 | 0.767513 |
e90171a5a22c1c2f2a8a8b26b64bf48b7af7c002 | 348 | exs | Elixir | test/product_test.exs | gremly/cabishop | d5c1188ce6237ff671f2b98525b3ae7a0accad12 | [
"MIT"
] | null | null | null | test/product_test.exs | gremly/cabishop | d5c1188ce6237ff671f2b98525b3ae7a0accad12 | [
"MIT"
] | null | null | null | test/product_test.exs | gremly/cabishop | d5c1188ce6237ff671f2b98525b3ae7a0accad12 | [
"MIT"
] | null | null | null | defmodule CabiShop.ProductTest do
use ExUnit.Case
alias CabiShop.{Factory, Product}
describe "Product repository management API" do
test "product creation success" do
voucher = Factory.build_voucher()
assert :ok = Product.create(voucher)
assert %Product{code: "VOUCHER"} = Product.get(vouc... | 24.857143 | 66 | 0.70977 |
e90193db4ce485dca45d1c92130b99061f0cad54 | 47,697 | ex | Elixir | apps/astarte_realm_management/lib/astarte_realm_management/queries.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_realm_management/lib/astarte_realm_management/queries.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_realm_management/lib/astarte_realm_management/queries.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# 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 appl... | 34.118026 | 198 | 0.6713 |
e901a621901f479551d096193ea2ee2a114c7e28 | 1,445 | exs | Elixir | test/json_schema_draft6_test_suite_test.exs | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 2 | 2022-03-18T08:52:29.000Z | 2022-03-18T08:52:33.000Z | test/json_schema_draft6_test_suite_test.exs | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 8 | 2021-09-15T11:52:45.000Z | 2022-01-10T13:13:53.000Z | test/json_schema_draft6_test_suite_test.exs | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | null | null | null | defmodule ExComponentSchema.JsonSchemaDraft6TestSuiteTest do
use ExUnit.Case, async: true
use ExComponentSchema.Test.Support.TestSuiteTemplate,
schema_tests_path: "test/JSON-Schema-Test-Suite/tests/draft6/",
schema_url: "http://json-schema.org/draft-06/schema",
ignored_tests: [
"Location-independ... | 60.208333 | 118 | 0.730796 |
e901ea75e9d90c8a313c123b03510fad655b6858 | 2,029 | exs | Elixir | b2/config/runtime.exs | calazans10/e4p2-hangman | 96f9cfe9ae0417c606f19b10321b6351ad4e6b5d | [
"MIT"
] | null | null | null | b2/config/runtime.exs | calazans10/e4p2-hangman | 96f9cfe9ae0417c606f19b10321b6351ad4e6b5d | [
"MIT"
] | null | null | null | b2/config/runtime.exs | calazans10/e4p2-hangman | 96f9cfe9ae0417c606f19b10321b6351ad4e6b5d | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 38.283019 | 80 | 0.703795 |
e9020b78fede53374fcb20567436a43a72284260 | 964 | exs | Elixir | test/models/badge_test.exs | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | test/models/badge_test.exs | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | test/models/badge_test.exs | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.BadgeTest do
use Librecov.ModelCase
alias Librecov.Badge
setup do
svg_badge = insert(:badge, format: "svg") |> Repo.preload(:project)
png_badge = insert(:badge, format: "png") |> Repo.preload(:project)
{:ok, svg_badge: svg_badge, png_badge: png_badge}
end
test "default_format... | 30.125 | 77 | 0.677386 |
e90213013bb9458e04a605c3e55bab2ba73c084d | 5,780 | exs | Elixir | apps/discovery_api/test/unit/discovery_api/data/dataset_update_event_handler_test.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | apps/discovery_api/test/unit/discovery_api/data/dataset_update_event_handler_test.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | apps/discovery_api/test/unit/discovery_api/data/dataset_update_event_handler_test.exs | SmartColumbusOS/smartcitiesdata | c8553d34631c822b034945eebf396994bf1001ff | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.Data.DatasetUpdateEventHandlerTest do
use ExUnit.Case
use Placebo
alias DiscoveryApi.Data.SystemNameCache
alias DiscoveryApiWeb.Plugs.ResponseCache
alias DiscoveryApi.Schemas.Organizations
alias SmartCity.TestDataGenerator, as: TDG
import SmartCity.Event, only: [dataset_update: 0, ... | 38.791946 | 138 | 0.692042 |
e9023bd602b284009b1c1e0cf509f67b50522b03 | 1,922 | ex | Elixir | clients/games/lib/google_api/games/v1/model/achievement_update_multiple_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/achievement_update_multiple_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/achievement_update_multiple_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 37.686275 | 158 | 0.761186 |
e9024bf868cdf4008124e1b13203479436d67d09 | 34,303 | ex | Elixir | lib/schatten/schatten.ex | ianrumford/harnais_form | 6b20a762af3921ba4a92e58a5139c8dd190f3bb9 | [
"MIT"
] | null | null | null | lib/schatten/schatten.ex | ianrumford/harnais_form | 6b20a762af3921ba4a92e58a5139c8dd190f3bb9 | [
"MIT"
] | null | null | null | lib/schatten/schatten.ex | ianrumford/harnais_form | 6b20a762af3921ba4a92e58a5139c8dd190f3bb9 | [
"MIT"
] | null | null | null | defmodule Harnais.Form.Schatten do
@moduledoc ~S"""
A specialised harness for testing Quoted Forms.
This module does the "heavy lift" for
`Harnais.Form.harnais_form_test_forms/2` but can be used stand-alone
by calling `produce_schatten/2` directly.
See `Harnais.Form` for overview and other documentation t... | 38.327374 | 139 | 0.589744 |
e902538b643d75d9191c05bbfd51075c2ad4f33b | 33,663 | ex | Elixir | lib/elixir/lib/code.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/elixir/lib/code.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | defmodule Code do
@moduledoc """
Utilities for managing code compilation, code evaluation, and code loading.
This module complements Erlang's [`:code` module](http://www.erlang.org/doc/man/code.html)
to add behaviour which is specific to Elixir. Almost all of the functions in this module
have global side eff... | 32.777994 | 97 | 0.682649 |
e90257370589b2bb29164f80694d741b24f0b1fb | 4,310 | ex | Elixir | clients/network_connectivity/lib/google_api/network_connectivity/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_connectivity/lib/google_api/network_connectivity/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/network_connectivity/lib/google_api/network_connectivity/v1/model/binding.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... | 81.320755 | 1,970 | 0.754988 |
e90275e2b9777cf372dfd24ce5382c44ad9d333b | 549 | ex | Elixir | lib/api_elixir_films_web/views/error_view.ex | brandaoplaster/api_elixir_films | 9594761bb0d2463132b904c5adbed6d9664bb7ff | [
"MIT"
] | null | null | null | lib/api_elixir_films_web/views/error_view.ex | brandaoplaster/api_elixir_films | 9594761bb0d2463132b904c5adbed6d9664bb7ff | [
"MIT"
] | null | null | null | lib/api_elixir_films_web/views/error_view.ex | brandaoplaster/api_elixir_films | 9594761bb0d2463132b904c5adbed6d9664bb7ff | [
"MIT"
] | null | null | null | defmodule ApiElixirFilmsWeb.ErrorView do
use ApiElixirFilmsWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the statu... | 32.294118 | 83 | 0.726776 |
e9027eebf1e9b90b5607d26700d37dd8b0dcada1 | 1,979 | ex | Elixir | lib/harmony/rpc/txpool.ex | esprezzo/elixir-harmony | 0152859dc5af2762431e0399dd39f7975dbc3422 | [
"MIT"
] | null | null | null | lib/harmony/rpc/txpool.ex | esprezzo/elixir-harmony | 0152859dc5af2762431e0399dd39f7975dbc3422 | [
"MIT"
] | null | null | null | lib/harmony/rpc/txpool.ex | esprezzo/elixir-harmony | 0152859dc5af2762431e0399dd39f7975dbc3422 | [
"MIT"
] | null | null | null | defmodule Harmony.TxPool do
@moduledoc """
Web3 Namespace Functions for Harmony JSON-RPC
{:ok, %{"pending" => pending, }} = {:ok, x} = Harmony.TxPool.txpool_content()
{:ok, %{"pending" => pending, "queued" => queued}} = Harmony.TxPool.txpool_content()
{:ok, %{"pending" => pending, "queued" => _}} = Harmony.... | 23.282353 | 86 | 0.55432 |
e902a2b0791d899fd158c7f9d3e9a0483b717199 | 69 | exs | Elixir | test/test_helper.exs | caironoleto/futibas | 5e827211ed91621ce5fe1fe99829f567bc7acb20 | [
"MIT"
] | null | null | null | test/test_helper.exs | caironoleto/futibas | 5e827211ed91621ce5fe1fe99829f567bc7acb20 | [
"MIT"
] | null | null | null | test/test_helper.exs | caironoleto/futibas | 5e827211ed91621ce5fe1fe99829f567bc7acb20 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Futibas.Repo, :manual)
| 23 | 53 | 0.782609 |
e902ab4256c7aa9fa30c656307bbe75dffbaca93 | 2,295 | ex | Elixir | clients/ad_sense/lib/google_api/ad_sense/v14/connection.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/connection.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | clients/ad_sense/lib/google_api/ad_sense/v14/connection.ex | ericrwolfe/elixir-google-api | 3dc0f17edd5e2d6843580c16ddae3bf84b664ffd | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 26.686047 | 80 | 0.703704 |
e902bdb62011ac14533fb95d64ee36eb5594adab | 280 | exs | Elixir | apps/definition_profile_update/test/profile_update_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/definition_profile_update/test/profile_update_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/definition_profile_update/test/profile_update_test.exs | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Profile.UpdateTest do
use ExUnit.Case
describe "new/1" do
test "updated is automatically set" do
update =
Profile.Update.new!(
dataset_id: "ds1",
subset_id: "sb1"
)
assert update.updated != nil
end
end
end
| 17.5 | 42 | 0.585714 |
e902c0431c7905dd8d7d36938ac68bf192df02ad | 317 | ex | Elixir | chapter-17/otp-supervisors-1/stack/lib/stack.ex | carlos4ndre/elixir-exercises | 3673cf69d08a6c7de53224f8956f0db21e7c5dad | [
"MIT"
] | 55 | 2015-12-09T09:23:50.000Z | 2022-01-31T21:14:59.000Z | chapter-17/otp-supervisors-1/stack/lib/stack.ex | carlos4ndre/elixir-exercises | 3673cf69d08a6c7de53224f8956f0db21e7c5dad | [
"MIT"
] | 3 | 2016-06-15T12:53:39.000Z | 2017-08-21T18:20:42.000Z | chapter-17/otp-supervisors-1/stack/lib/stack.ex | carlos4ndre/elixir-exercises | 3673cf69d08a6c7de53224f8956f0db21e7c5dad | [
"MIT"
] | 18 | 2016-01-01T18:18:23.000Z | 2021-05-24T02:22:42.000Z | defmodule Stack do
use Application
@initial_state [1,2,3,4]
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(Stack.Server, [@initial_state])
]
opts = [strategy: :one_for_one, name: Stack.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 18.647059 | 59 | 0.675079 |
e902d55431869a3f5e1d92ca70196c0c6ddfddfc | 1,239 | ex | Elixir | lib/requestbox_web/views/error_helpers.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 18 | 2015-11-18T09:52:34.000Z | 2021-04-27T19:38:08.000Z | lib/requestbox_web/views/error_helpers.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 3 | 2017-01-11T18:55:39.000Z | 2021-06-15T05:46:34.000Z | lib/requestbox_web/views/error_helpers.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 7 | 2016-08-17T10:24:20.000Z | 2020-07-10T13:00:36.000Z | defmodule RequestboxWeb.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
if error = form.errors[field] do
content_tag(:span, translate_error(er... | 30.219512 | 76 | 0.669895 |
e902e4052650e7368c22aa26b9b8c546c6944be8 | 319 | ex | Elixir | web/models/engagement.ex | paniagua/abix | e88e4c7f233c8bdeca843e5c4508cf4d2e676788 | [
"MIT"
] | null | null | null | web/models/engagement.ex | paniagua/abix | e88e4c7f233c8bdeca843e5c4508cf4d2e676788 | [
"MIT"
] | null | null | null | web/models/engagement.ex | paniagua/abix | e88e4c7f233c8bdeca843e5c4508cf4d2e676788 | [
"MIT"
] | null | null | null | defmodule Abix.Engagement do
use Abix.Web, :model
schema "engagements" do
field :engagement_id, :string
field :engagement_request_id, :string
field :visit_id, :string
field :sub_engagement_id, :string
field :operator_id, :string
field :site_id, :string
field :ended, :boolean
end
end
| 22.785714 | 41 | 0.705329 |
e9031562edc028b95b0108554ae5ecf5cdb10215 | 497 | exs | Elixir | config/test.exs | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | 2 | 2021-04-30T08:30:26.000Z | 2021-04-30T16:20:39.000Z | config/test.exs | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | null | null | null | config/test.exs | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"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 :chat_api, ChatApiWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :chat_api, ChatApi.... | 24.85 | 56 | 0.736419 |
e9033d0edd8c2026a16783dbe3db9244e560f3e0 | 1,386 | exs | Elixir | test/asciinema_test.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | test/asciinema_test.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | test/asciinema_test.exs | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaTest do
use Asciinema.DataCase
use Bamboo.Test
alias Asciinema.Emails.Email
describe "send_login_email/1" do
import Asciinema, only: [send_login_email: 3]
defp signup_url(_), do: "http://signup"
defp login_url(_), do: "http://login"
test "existing user, by email" do
u... | 28.875 | 94 | 0.676046 |
e90378d52de234d2f70d175599a5b5ce58ad3544 | 933 | ex | Elixir | lib/absinthe/schema/rule.ex | myronmarston/absinthe | d94d1bb5d9ede3a8715f5a6ce6ce607126d4d756 | [
"MIT"
] | null | null | null | lib/absinthe/schema/rule.ex | myronmarston/absinthe | d94d1bb5d9ede3a8715f5a6ce6ce607126d4d756 | [
"MIT"
] | null | null | null | lib/absinthe/schema/rule.ex | myronmarston/absinthe | d94d1bb5d9ede3a8715f5a6ce6ce607126d4d756 | [
"MIT"
] | null | null | null | defmodule Absinthe.Schema.Rule do
@moduledoc false
alias __MODULE__
defmacro __using__(_opts) do
quote do
@behaviour unquote(__MODULE__)
def report(location, data) do
%{
rule: __MODULE__,
location: location,
data: data
}
end
end
end
@... | 22.756098 | 76 | 0.681672 |
e9038c8e8f720b31a633f43d7e1f3b4179b64d22 | 4,917 | exs | Elixir | test/cadet/accounts/accounts_test.exs | source-academy/backend | 0074e1ab846a091ba3bbfbfb76660498b3e4b4be | [
"Apache-2.0"
] | 3 | 2021-08-15T23:57:32.000Z | 2022-02-02T06:50:55.000Z | test/cadet/accounts/accounts_test.exs | source-academy/backend | 0074e1ab846a091ba3bbfbfb76660498b3e4b4be | [
"Apache-2.0"
] | 76 | 2021-07-05T07:13:52.000Z | 2022-03-28T07:23:11.000Z | test/cadet/accounts/accounts_test.exs | source-academy/backend | 0074e1ab846a091ba3bbfbfb76660498b3e4b4be | [
"Apache-2.0"
] | 1 | 2022-03-26T14:27:51.000Z | 2022-03-26T14:27:51.000Z | defmodule Cadet.AccountsTest do
@moduledoc """
Some of the test values (i.e. tokens) in this file are specified in
config/test.exs.
"""
use Cadet.DataCase
alias Cadet.{Accounts, Repo}
alias Cadet.Accounts.{Query, User}
import Mock
setup_all do
HTTPoison.start()
end
test "get existing user... | 31.318471 | 92 | 0.627822 |
e9038f29cb2f51fa92943b4adc93fa97c38a275f | 3,213 | exs | Elixir | test/monzo/webhook_test.exs | morgz/monzo_elixir | 68d671e0e99191fc5702ead7fc921dad45eb2605 | [
"MIT"
] | 8 | 2016-10-02T12:05:47.000Z | 2020-06-22T12:37:32.000Z | test/monzo/webhook_test.exs | morgz/monzo_elixir | 68d671e0e99191fc5702ead7fc921dad45eb2605 | [
"MIT"
] | 51 | 2018-03-12T05:19:14.000Z | 2021-08-03T05:15:19.000Z | test/monzo/webhook_test.exs | morgz/monzo_elixir | 68d671e0e99191fc5702ead7fc921dad45eb2605 | [
"MIT"
] | 3 | 2017-10-30T07:44:38.000Z | 2020-04-19T12:04:33.000Z | defmodule Monzo.WebhookTest do
use ExUnit.Case
import Monzo.Factory
alias Monzo.Webhook
def parse(conn, opts \\ []) do
opts = Keyword.put_new(opts, :parsers, [Plug.Parsers.URLENCODED])
Plug.Parsers.call(conn, Plug.Parsers.init(opts))
end
setup_all do
bypass = Bypass.open
Application.put_e... | 34.180851 | 89 | 0.638967 |
e9039d5568933d70cfc651cc46309dbf6531106f | 1,785 | ex | Elixir | debian/manpage.1.ex | mikeyk/couchdb-lounge | ef6e97547c1e64230d804439b6b2f99f83eef747 | [
"Apache-2.0"
] | 5 | 2015-12-11T14:10:55.000Z | 2021-01-28T00:12:28.000Z | debian/manpage.1.ex | benoitc/couchdb-lounge | 4a151ee0a6c7e86a3e98bca6282938b42e960d0f | [
"Apache-2.0"
] | null | null | null | debian/manpage.1.ex | benoitc/couchdb-lounge | 4a151ee0a6c7e86a3e98bca6282938b42e960d0f | [
"Apache-2.0"
] | null | null | null | .\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH COUCHDB-LOUNGE SECTION "October 18, 2009"
.\" Please adjust this date whenever revis... | 29.75 | 70 | 0.677311 |
e903a500171f91c0dc76e3905201826f9c538665 | 3,452 | exs | Elixir | test/parser/js/number_test.exs | desweemerl/origami_parser | 52af0913f26be51162588d94c784aa5971beaf1a | [
"MIT"
] | null | null | null | test/parser/js/number_test.exs | desweemerl/origami_parser | 52af0913f26be51162588d94c784aa5971beaf1a | [
"MIT"
] | null | null | null | test/parser/js/number_test.exs | desweemerl/origami_parser | 52af0913f26be51162588d94c784aa5971beaf1a | [
"MIT"
] | null | null | null | defmodule Origami.Parser.Js.NumberTest do
use ExUnit.Case
alias Origami.Parser
alias Origami.Parser.{Js, Token}
test "check if integer is parsed" do
number = "12345"
{:ok, token} = Parser.parse(number, Js)
child = Token.last_child(token)
expectation = {:integer, [interval: {0, 0, 0, 4}], ["1... | 27.616 | 95 | 0.642816 |
e903aac1c4298c955734f03f76e6c1579fd9b46f | 1,774 | ex | Elixir | apps/fz_http/lib/fz_http_web/live/modal_component.ex | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http_web/live/modal_component.ex | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | 1 | 2020-04-24T01:53:41.000Z | 2020-04-24T01:53:41.000Z | apps/fz_http/lib/fz_http_web/live/modal_component.ex | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | null | null | null | defmodule FzHttpWeb.ModalComponent do
@moduledoc """
Wraps a component in a modal.
"""
use FzHttpWeb, :live_component
@impl Phoenix.LiveComponent
def render(assigns) do
~H"""
<div
id={@myself}
class="modal is-active"
phx-capture-click="close"
phx-window-keydown="close"
... | 30.067797 | 100 | 0.586809 |
e903b16715f642a40216de8dd8b31ff924e8d57a | 2,344 | ex | Elixir | clients/content/lib/google_api/content/v21/model/productstatuses_custom_batch_response_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/content/lib/google_api/content/v21/model/productstatuses_custom_batch_response_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/productstatuses_custom_batch_response_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.857143 | 171 | 0.731229 |
e903b3720f0354f10f3e24b1ba78ea816c79fec5 | 1,684 | ex | Elixir | clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_last_period_amount.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_last_period_amount.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_last_period_amount.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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... | 35.829787 | 280 | 0.779097 |
e903c4e631871c855ad6a02a3bac99828faff026 | 583 | ex | Elixir | lib/ex_png.ex | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 10 | 2015-03-15T16:12:00.000Z | 2021-02-09T09:30:17.000Z | lib/ex_png.ex | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 1 | 2019-04-20T12:09:24.000Z | 2019-04-20T12:09:24.000Z | lib/ex_png.ex | xavier/ex_png | 58a23a705ace85e2351cbf0787e88df79b8f6494 | [
"Apache-2.0"
] | 5 | 2019-01-19T19:47:09.000Z | 2021-11-11T23:54:25.000Z | defmodule ExPNG do
def image(width, height) do
ExPNG.Image.new(width, height)
end
def image(width, height, background_color) do
ExPNG.Image.new(width, height, background_color)
end
def read(path) do
path
|> File.read!
|> decode
end
def write(image, path) do
{:ok, file} = File.o... | 16.657143 | 52 | 0.643225 |
e903cc4bef63a088bdd38153dadb221da5d08317 | 1,374 | ex | Elixir | lib/utils.ex | vpsinc/modbus | e1b04916dc12c104e032122738815a1e3910394b | [
"Apache-2.0"
] | null | null | null | lib/utils.ex | vpsinc/modbus | e1b04916dc12c104e032122738815a1e3910394b | [
"Apache-2.0"
] | null | null | null | lib/utils.ex | vpsinc/modbus | e1b04916dc12c104e032122738815a1e3910394b | [
"Apache-2.0"
] | null | null | null | defmodule Modbus.Utils do
@moduledoc false
use Bitwise
def byte_count(count) do
div(count - 1, 8) + 1
end
def bool_to_byte(value) do
# enforce 0 or 1 only
case value do
0 -> 0x00
1 -> 0xFF
end
end
def bin_to_bitlist(count, <<b7::1, b6::1, b5::1, b4::1, b3::1, b2::1, b1::1, b... | 21.809524 | 87 | 0.538574 |
e9040c43cc0daf42ade42897a20ac6c20dec58b7 | 805 | ex | Elixir | lib/chore_runner/dsl.ex | pepsico-ecommerce/chore_runner | c84863b7ea5feac20ab4320a5c04ffa534040c3c | [
"Apache-2.0"
] | 16 | 2021-10-31T22:14:29.000Z | 2022-03-31T14:52:36.000Z | lib/chore_runner/dsl.ex | pepsico-ecommerce/chore_runner | c84863b7ea5feac20ab4320a5c04ffa534040c3c | [
"Apache-2.0"
] | 1 | 2022-01-13T04:53:22.000Z | 2022-02-08T04:28:19.000Z | lib/chore_runner/dsl.ex | pepsico-ecommerce/chore_runner | c84863b7ea5feac20ab4320a5c04ffa534040c3c | [
"Apache-2.0"
] | 2 | 2021-12-25T18:01:36.000Z | 2022-03-12T20:55:06.000Z | defmodule ChoreRunner.DSL do
@moduledoc """
Macros which enable the chore DSL
"""
def using do
quote do
alias ChoreRunner.Chore
@behaviour Chore
import ChoreRunner.Reporter,
only: [
report_failed: 1,
log: 1,
set_counter: 2,
inc_counter: 2
... | 18.72093 | 64 | 0.501863 |
e9042fea9a55a784115841c11e17de34afef887a | 1,708 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/create_container_version_request_version_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/create_container_version_request_version_options.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/create_container_version_request_version_options.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... | 31.054545 | 104 | 0.727166 |
e90464cf87569ff0507e6093b4580f0fcc6eacf3 | 1,161 | ex | Elixir | apps/info_sys/lib/info_sys/cache.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 1 | 2020-06-01T21:25:54.000Z | 2020-06-01T21:25:54.000Z | apps/info_sys/lib/info_sys/cache.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 221 | 2019-07-20T17:20:49.000Z | 2021-08-02T06:21:10.000Z | apps/info_sys/lib/info_sys/cache.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | null | null | null | defmodule InfoSys.Cache do
use GenServer
@clear_interval :timer.seconds(3600)
def put(name \\ __MODULE__, key, value) do
true = :ets.insert(tab_name(name), {key, value})
:ok
end
def fetch(name \\ __MODULE__, key) do
{:ok, :ets.lookup_element(tab_name(name), key, 2)}
rescue
ArgumentError -... | 20.732143 | 72 | 0.625323 |
e9046de3d3a1e29ccad99d4af80221d4591840a4 | 51,771 | ex | Elixir | deps/ecto/lib/ecto/changeset.ex | Hajto/hangmanelixir | a05cc0b73e0a5d464405f63d274ae622565728ca | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/changeset.ex | Hajto/hangmanelixir | a05cc0b73e0a5d464405f63d274ae622565728ca | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/changeset.ex | Hajto/hangmanelixir | a05cc0b73e0a5d464405f63d274ae622565728ca | [
"MIT"
] | null | null | null | defmodule Ecto.Changeset do
@moduledoc ~S"""
Changesets allow filtering, casting, validation and
definition of constraints when manipulating models..
There is an example of working with changesets in the
introductory documentation in the `Ecto` module. The
functions `change/2` and `cast/4` are the usual en... | 35.753453 | 115 | 0.649688 |
e904903a4aebcddf19d1f744c0cf3bb2905fbf58 | 756 | ex | Elixir | lib/sanbase_web/graphql/schema/types/table_configuration_types.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | lib/sanbase_web/graphql/schema/types/table_configuration_types.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | lib/sanbase_web/graphql/schema/types/table_configuration_types.ex | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.TableConfigurationTypes do
use Absinthe.Schema.Notation
import Absinthe.Resolution.Helpers, only: [dataloader: 1]
alias SanbaseWeb.Graphql.SanbaseRepo
input_object :table_configuration_input_object do
field(:title, :string)
field(:description, :string)
field(:is_public... | 26.068966 | 59 | 0.712963 |
e9049ca9d2775361b3742aab83df0bc5a6f03142 | 2,530 | ex | Elixir | lib/ex_jenga/send_money/to_mobile_wallets.ex | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | 1 | 2021-09-14T09:50:22.000Z | 2021-09-14T09:50:22.000Z | lib/ex_jenga/send_money/to_mobile_wallets.ex | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | 15 | 2021-04-23T11:28:49.000Z | 2021-06-23T04:42:35.000Z | lib/ex_jenga/send_money/to_mobile_wallets.ex | beamkenya/ex_jenga | 03a936a04d99614043d120d0e3ee787f1b8a5b8d | [
"AML",
"MIT"
] | null | null | null | defmodule ExJenga.SendMoney.ToMobileWallets do
@moduledoc """
This enables your application to send money to telco :iphone: wallets across Kenya, Uganda, Tanzania & Rwanda.
"""
import ExJenga.JengaBase
alias ExJenga.Signature
@doc """
Send Money To Mobile Wallets
## Parameters
attrs: - a map conta... | 34.657534 | 413 | 0.610277 |
e904aae0bddd6d93002320e1b98e3cd23fbeb137 | 5,464 | ex | Elixir | portfolio/lib/portfolio_web/controllers/user_auth.ex | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | null | null | null | portfolio/lib/portfolio_web/controllers/user_auth.ex | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | 11 | 2020-04-29T10:28:20.000Z | 2020-04-29T11:03:13.000Z | portfolio/lib/portfolio_web/controllers/user_auth.ex | JackMaarek/portfolio | 4423e67df870b14228edbc9e4ce3f3cdf1bccc2d | [
"MIT"
] | null | null | null | defmodule PortfolioWeb.UserAuth do
import Plug.Conn
import Phoenix.Controller
alias Portfolio.Accounts
alias PortfolioWeb.Router.Helpers, as: Routes
# Make the remember me cookie valid for 60 days.
# If you want bump or reduce this value, also change
# the token expiry itself in UserToken.
@max_age 60... | 29.376344 | 98 | 0.689239 |
e904d395c0697a848d6c2831088bf98ba3a4c77a | 2,008 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_runs_list_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_runs_list_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_runs_list_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 37.185185 | 193 | 0.742032 |
e904d698327d75a3e486ae7ec3985fc2f2ac4cd1 | 2,481 | ex | Elixir | lib/wormhole/capture.ex | renderedtext/reliable-error-handler | a39619f9e1e0401359cbc51180dfebf51da2aa99 | [
"MIT"
] | 40 | 2016-11-24T21:12:30.000Z | 2022-03-29T22:18:46.000Z | lib/wormhole/capture.ex | renderedtext/reliable-error-handler | a39619f9e1e0401359cbc51180dfebf51da2aa99 | [
"MIT"
] | 7 | 2016-10-27T11:32:26.000Z | 2019-09-08T23:36:14.000Z | lib/wormhole/capture.ex | renderedtext/reliable-error-handler | a39619f9e1e0401359cbc51180dfebf51da2aa99 | [
"MIT"
] | 9 | 2017-02-03T11:29:37.000Z | 2020-07-06T15:25:27.000Z | defmodule Wormhole.Capture do
@moduledoc """
Caller ------> Terminator <=====> Callback
^ |
\ |
---------------------------------
Caller process is monitoring Callback proces.
In case of Callback cresh, DOWN message contains reason... | 31.807692 | 79 | 0.632406 |
e904f1cff511753892ef525a90c0bb51e6c57df4 | 490 | exs | Elixir | test/avrora/mapper_test.exs | ni-lti-sdm/avrora | 0e9a1ded482de4e0eb0843c692e844593d0e5341 | [
"MIT"
] | null | null | null | test/avrora/mapper_test.exs | ni-lti-sdm/avrora | 0e9a1ded482de4e0eb0843c692e844593d0e5341 | [
"MIT"
] | null | null | null | test/avrora/mapper_test.exs | ni-lti-sdm/avrora | 0e9a1ded482de4e0eb0843c692e844593d0e5341 | [
"MIT"
] | null | null | null | defmodule Avrora.MapperTest do
use ExUnit.Case, async: true
doctest Avrora.Mapper
alias Avrora.Mapper
describe "to_map/1" do
test "when a complex structure is given with many primitive types" do
transformed = Mapper.to_map(tuples())
assert %{"a" => 1, "b" => [%{"c" => "3"}, %{"d" => nil}], "x"... | 22.272727 | 98 | 0.510204 |
e904fd4ed04969dc8d4e96470b306820a376e637 | 88 | exs | Elixir | test/swiss/string_test.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 2 | 2020-11-06T21:02:47.000Z | 2020-11-06T23:27:35.000Z | test/swiss/string_test.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 4 | 2020-03-05T17:37:46.000Z | 2021-10-06T10:13:51.000Z | test/swiss/string_test.exs | myskoach/swiss | a906ec0c5afc7417a1b412116bf8b1018901d43f | [
"Apache-2.0"
] | 1 | 2021-09-22T13:43:58.000Z | 2021-09-22T13:43:58.000Z | defmodule Swiss.StringTest do
use ExUnit.Case, async: true
doctest Swiss.String
end
| 17.6 | 30 | 0.784091 |
e90509c580cb59d2f89bef6658225e2c9af1eab5 | 3,377 | ex | Elixir | lib/turbo_ecto/hooks/search.ex | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | null | null | null | lib/turbo_ecto/hooks/search.ex | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | null | null | null | lib/turbo_ecto/hooks/search.ex | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | null | null | null | defmodule Turbo.Ecto.Hooks.Search do
@moduledoc """
This module provides a operations that can add searching functionality to
a pipeline of `Ecto` queries. This module works by taking fields.
Inspire from: [ex_sieve](https://github.com/valyukov/ex_sieve/blob/master/lib/ex_sieve/node/grouping.ex)
"""
impor... | 31.268519 | 361 | 0.600829 |
e9051907e0365b2cc847462db0a1fc0c15171863 | 26,699 | ex | Elixir | lib/elixir_google_spreadsheets/spreadsheet.ex | codethulu/elixir_google_spreadsheets | 801d0db4c35325a64719e1def00970d0f6086d2c | [
"MIT"
] | null | null | null | lib/elixir_google_spreadsheets/spreadsheet.ex | codethulu/elixir_google_spreadsheets | 801d0db4c35325a64719e1def00970d0f6086d2c | [
"MIT"
] | null | null | null | lib/elixir_google_spreadsheets/spreadsheet.ex | codethulu/elixir_google_spreadsheets | 801d0db4c35325a64719e1def00970d0f6086d2c | [
"MIT"
] | null | null | null | defmodule GSS.Spreadsheet do
@moduledoc """
Model of Google Spreadsheet for external interaction.
"""
require Logger
use GenServer
alias GSS.Client
@typedoc """
State of currently active Google spreadsheet:
%{
spreadsheet_id => "16Wgt0fuoYDgEAtGtYKF4jdjAhZez0q77UhkKdeKI6B4",
... | 34.361647 | 113 | 0.652347 |
e905192b1c566e7710c000a293ceffba8951482f | 360 | exs | Elixir | src/auth_service/priv/repo/seeds.exs | wbpascal/statuswebsite | 7a81e530a9176c53abeab0582cb710113101b716 | [
"MIT"
] | 1 | 2021-04-18T20:21:03.000Z | 2021-04-18T20:21:03.000Z | src/auth_service/priv/repo/seeds.exs | wbpascal/statuswebsite | 7a81e530a9176c53abeab0582cb710113101b716 | [
"MIT"
] | null | null | null | src/auth_service/priv/repo/seeds.exs | wbpascal/statuswebsite | 7a81e530a9176c53abeab0582cb710113101b716 | [
"MIT"
] | 1 | 2021-04-18T20:21:08.000Z | 2021-04-18T20:21:08.000Z | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# AuthService.Repo.insert!(%AuthService.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as t... | 27.692308 | 61 | 0.711111 |
e9052a4b4dfd4bdf7edb5f831fe26ce54e6582c1 | 2,022 | exs | Elixir | test/test_helper.exs | alisina-platogo/xandra | e205b1f1fd0d5c6249c58c7e28fb502ee7c35b3d | [
"ISC"
] | null | null | null | test/test_helper.exs | alisina-platogo/xandra | e205b1f1fd0d5c6249c58c7e28fb502ee7c35b3d | [
"ISC"
] | null | null | null | test/test_helper.exs | alisina-platogo/xandra | e205b1f1fd0d5c6249c58c7e28fb502ee7c35b3d | [
"ISC"
] | null | null | null | defmodule XandraTest.IntegrationCase do
use ExUnit.CaseTemplate
protocol_version =
case System.get_env("CASSANDRA_NATIVE_PROTOCOL") || "v3" do
"v3" -> :v3
"v4" -> :v4
end
@default_start_options [
protocol_version: protocol_version,
show_sensitive_data_on_connection_error: true
]
... | 28.083333 | 96 | 0.675074 |
e905673f8304ab53f72a98de7cbedf19b4252420 | 2,122 | exs | Elixir | apps/service_broadcast/test/broadcast_test.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_broadcast/test/broadcast_test.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_broadcast/test/broadcast_test.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule BroadcastTest do
use BroadcastWeb.ChannelCase
import AssertAsync
import Events, only: [load_broadcast_start: 0, load_broadcast_end: 0]
@instance Broadcast.Application.instance()
setup do
Brook.Test.clear_view_state(@instance, "transformations")
load =
Load.Broadcast.new!(
i... | 29.472222 | 88 | 0.653629 |
e905755994db6b2ab6fb0779c3739801629d87fa | 1,107 | ex | Elixir | lib/codes/codes_x18.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_x18.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_x18.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_X18 do
alias IcdCode.ICDCode
def _X18XXXA do
%ICDCode{full_code: "X18XXXA",
category_code: "X18",
short_code: "XXXA",
full_name: "Contact with other hot metals, initial encounter",
short_name: "Contact with other hot metals, initial encounte... | 32.558824 | 78 | 0.641373 |
e905779bb1c43c56d47417ba3a42edf33486cba9 | 1,707 | ex | Elixir | lib/oli/activities/realizer/logic.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/activities/realizer/logic.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/activities/realizer/logic.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Activities.Realizer.Logic do
@derive Jason.Encoder
@enforce_keys [:conditions]
defstruct [:conditions]
@moduledoc """
Implements a structured representation of a user specified logic
for realizing (aka selecting) activities from the activity bank.
At an abstract level, the grammar implemen... | 23.383562 | 73 | 0.570006 |
e9057981a743c76a38472c6c4dafd31d4f1b3e8b | 1,975 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/accelerator_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/accelerator_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/accelerator_config.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 ... | 39.5 | 375 | 0.747342 |
e905bd379bda0c42224b28f94402e48eb27a1fbb | 221 | exs | Elixir | diamond/diamond.exs | nlhuykhang/elixir-exercism | 0462661cc411cb28b4bf800639b16684480a06a7 | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/diamond/diamond.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/diamond/diamond.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | defmodule Diamond do
@doc """
Given a letter, it prints a diamond starting with 'A',
with the supplied letter at the widest point.
"""
@spec build_shape(char) :: String.t
def build_shape(letter) do
end
end
| 20.090909 | 56 | 0.692308 |
e905d44894201732aad82dc255c42bc769a4c29e | 3,425 | ex | Elixir | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/device_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/device_policy.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/device_policy.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... | 55.241935 | 614 | 0.74219 |
e90603788626bd11fe5cac86f542c8bff04adbd9 | 861 | ex | Elixir | phoenix_app/benchmarker/test/support/conn_case.ex | ansrivas/phoenix-and-gin | c3ee9f2bc5db3bb41179bc7b8747455ae148b55b | [
"MIT"
] | null | null | null | phoenix_app/benchmarker/test/support/conn_case.ex | ansrivas/phoenix-and-gin | c3ee9f2bc5db3bb41179bc7b8747455ae148b55b | [
"MIT"
] | null | null | null | phoenix_app/benchmarker/test/support/conn_case.ex | ansrivas/phoenix-and-gin | c3ee9f2bc5db3bb41179bc7b8747455ae148b55b | [
"MIT"
] | null | null | null | defmodule Benchmarker.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... | 23.27027 | 56 | 0.718931 |
e906102aada3d3ff8c18b1593c0365a0741c933f | 84 | exs | Elixir | test/container_web/views/page_view_test.exs | chargio/phoenix-container-buildah | 929e4c9bf0ea53ce00c3e23262a130d47facef91 | [
"Apache-2.0"
] | null | null | null | test/container_web/views/page_view_test.exs | chargio/phoenix-container-buildah | 929e4c9bf0ea53ce00c3e23262a130d47facef91 | [
"Apache-2.0"
] | null | null | null | test/container_web/views/page_view_test.exs | chargio/phoenix-container-buildah | 929e4c9bf0ea53ce00c3e23262a130d47facef91 | [
"Apache-2.0"
] | null | null | null | defmodule ContainerWeb.PageViewTest do
use ContainerWeb.ConnCase, async: true
end
| 21 | 40 | 0.833333 |
e90613987b97fbb74fc1d8664f17fb9ea68f71f6 | 876 | exs | Elixir | test/chex/acceptance/fischer_spassky_1992_test.exs | sprql/chex | f2c82e6b8db0377ed283597bdd6b7c33d6601099 | [
"MIT"
] | 10 | 2020-01-11T19:53:11.000Z | 2021-06-07T14:41:24.000Z | test/chex/acceptance/fischer_spassky_1992_test.exs | sprql/chex | f2c82e6b8db0377ed283597bdd6b7c33d6601099 | [
"MIT"
] | 45 | 2019-10-23T01:10:32.000Z | 2022-03-23T17:34:22.000Z | test/chex/acceptance/fischer_spassky_1992_test.exs | sprql/chex | f2c82e6b8db0377ed283597bdd6b7c33d6601099 | [
"MIT"
] | 5 | 2019-10-16T23:45:16.000Z | 2022-02-06T16:00:58.000Z | defmodule Chex.Acceptance.FischerSpassky1992Test do
use Chex.FullGameCase, async: true
@moves """
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 {This opening is called the Ruy Lopez.}
4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3 O-O 9. h3 Nb8 10. d4 Nbd7
11. c4 c6 12. cxb5 axb5 13. Nc3 Bb7 14. Bg5 b4 15. Nb1 h6 16.... | 38.086957 | 83 | 0.641553 |
e90616e8c4c690e5a5ef88ace0a991bb0ae19493 | 2,493 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/instantiate_workflow_template_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/instantiate_workflow_template_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/instantiate_workflow_template_request.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.037736 | 473 | 0.745287 |
e906306bd313b2c8fa45640a9ab27fbf57e0c95e | 96 | exs | Elixir | ch6/default_params.exs | lv12312/programmingElixir | 7894c1dbfba9a70d87b2f82f841f2c6ed978148a | [
"MIT"
] | null | null | null | ch6/default_params.exs | lv12312/programmingElixir | 7894c1dbfba9a70d87b2f82f841f2c6ed978148a | [
"MIT"
] | null | null | null | ch6/default_params.exs | lv12312/programmingElixir | 7894c1dbfba9a70d87b2f82f841f2c6ed978148a | [
"MIT"
] | null | null | null | defmodule Example do
def func(p1, p2 \\ 2, p3 \\ 3) do
IO.inspect([p1, p2, p3])
end
end
| 16 | 35 | 0.583333 |
e906364e91ba45e6756d32b93245b2c8d180e2ac | 59 | ex | Elixir | lib/carbon/views/session_view.ex | elixir-carbon/carbon | 9537596c9a409e4573cb7cb75cfa0a2e31d9b153 | [
"Apache-2.0"
] | 13 | 2016-07-04T00:44:18.000Z | 2016-07-11T22:02:11.000Z | lib/carbon/views/session_view.ex | elixir-carbon/carbon | 9537596c9a409e4573cb7cb75cfa0a2e31d9b153 | [
"Apache-2.0"
] | 1 | 2016-07-12T23:09:45.000Z | 2016-07-13T01:19:11.000Z | lib/carbon/views/session_view.ex | elixirdrops/carbon | 9537596c9a409e4573cb7cb75cfa0a2e31d9b153 | [
"Apache-2.0"
] | 1 | 2016-12-10T07:27:04.000Z | 2016-12-10T07:27:04.000Z | defmodule Carbon.SessionView do
use Carbon.Web, :view
end | 19.666667 | 31 | 0.79661 |
e906829ed0f0f43821004955c51acb37e695d043 | 2,381 | exs | Elixir | test/changelog_web/views/episode_view_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2020-10-12T13:28:41.000Z | 2020-10-12T13:28:41.000Z | test/changelog_web/views/episode_view_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | test/changelog_web/views/episode_view_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule ChangelogWeb.EpisodeViewTest do
use ChangelogWeb.ConnCase, async: true
import ChangelogWeb.EpisodeView
alias Changelog.Episode
describe "audio_local_path" do
test "is a path on the local file system with relative storage dir" do
orig_env = Application.get_env(:arc, :storage_dir)
App... | 33.535211 | 75 | 0.670727 |
e9069128f4b17bfcf8105bee461b5d376d996353 | 487 | ex | Elixir | lib/op_api_web/views/error_view.ex | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | 3 | 2019-11-06T23:40:55.000Z | 2020-06-20T22:33:25.000Z | lib/op_api_web/views/error_view.ex | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | null | null | null | lib/op_api_web/views/error_view.ex | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | null | null | null | defmodule OpApiWeb.ErrorView do
use OpApiWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. Fo... | 28.647059 | 61 | 0.73306 |
e906a027bb69972fb5a69745db0b6b70f867cf4e | 792 | exs | Elixir | test/day_14_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | 1 | 2020-12-19T18:40:00.000Z | 2020-12-19T18:40:00.000Z | test/day_14_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | test/day_14_test.exs | robindaumann/aoc-2020 | 63e2dd4cd3062b15fc5be3ec8b3fe75716701f7a | [
"MIT"
] | null | null | null | defmodule Day14Test do
use ExUnit.Case, async: true
require Input
test "part1 input" do
f = Input.path()
assert Day14.part1(f) == 13_496_669_152_158
end
test "part1 example" do
f = Input.example()
assert Day14.part1(f) == 165
end
test "part2 input" do
f = Input.path()
assert Day... | 21.405405 | 81 | 0.661616 |
e906bdfedba4193f5ee3610ca3a548ddad5ea7c9 | 412 | exs | Elixir | priv/repo/migrations/20170322093838_create_loadbalancer_domain.exs | theSuess/bifroest-web | fc25d4e827546b2e1a08719962f0e161d622eded | [
"BSD-3-Clause"
] | 1 | 2017-03-29T06:48:06.000Z | 2017-03-29T06:48:06.000Z | priv/repo/migrations/20170322093838_create_loadbalancer_domain.exs | theSuess/bifroest-web | fc25d4e827546b2e1a08719962f0e161d622eded | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20170322093838_create_loadbalancer_domain.exs | theSuess/bifroest-web | fc25d4e827546b2e1a08719962f0e161d622eded | [
"BSD-3-Clause"
] | null | null | null | defmodule Bifroest.Repo.Migrations.CreateBifroest.Loadbalancer.Domain do
use Ecto.Migration
def change do
create table(:loadbalancer_domains) do
add :domain, :string
add :server_id, :string
add :server_addr, :string
add :user_id, references(:accounts_users, on_delete: :delete_all)
... | 24.235294 | 72 | 0.713592 |
e906dce22a6b21398b0569d514ba3f2bbb5fdcf3 | 4,528 | ex | Elixir | lib/q.ex | openql-org/quantex | d3907ba6cf321d3b3469c14fe1fbe34ecc37acbc | [
"Apache-2.0"
] | 1 | 2018-06-11T00:40:33.000Z | 2018-06-11T00:40:33.000Z | lib/q.ex | openql-org/quantex | d3907ba6cf321d3b3469c14fe1fbe34ecc37acbc | [
"Apache-2.0"
] | null | null | null | lib/q.ex | openql-org/quantex | d3907ba6cf321d3b3469c14fe1fbe34ecc37acbc | [
"Apache-2.0"
] | 2 | 2018-06-11T00:41:46.000Z | 2019-03-22T06:28:04.000Z | defmodule Q do
@moduledoc """
Documentation for Q ( Elixir Quantum module ).
"""
require Math
@doc """
|0> qubit ... ( 1, 0 )
## Examples
iex> Q.q0()
%Array{array: [1, 0], shape: {2, nil}}
iex> Q.q0().array
[ 1, 0 ]
"""
def q0(), do: Numexy.new( [ 1, 0 ] )
@doc """
|1> qubit ... ( 0, 1 )
## Exa... | 23.706806 | 106 | 0.490945 |
e9071422a9db61d12ac15b47c6865984eaac980c | 2,111 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__suggest_trials_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__suggest_trials_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__suggest_trials_metadata.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.606557 | 121 | 0.718617 |
e907169cff6b8aa0970916054f6f3feedd9f4228 | 2,728 | ex | Elixir | lib/printer/utils/elm_decoders.ex | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | 74 | 2017-03-05T22:26:34.000Z | 2022-03-14T13:22:47.000Z | lib/printer/utils/elm_decoders.ex | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | 43 | 2017-03-05T22:56:21.000Z | 2022-03-26T19:19:26.000Z | lib/printer/utils/elm_decoders.ex | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | 6 | 2017-06-19T01:49:32.000Z | 2018-06-22T02:04:24.000Z | defmodule JS2E.Printer.Utils.ElmDecoders do
@moduledoc ~S"""
Module containing common utility functions for outputting
Elm decoder definitions.
"""
require Logger
alias JS2E.Printer
alias JsonSchema.Types
alias Printer.{ErrorUtil, PrinterError, Utils}
alias Types.{PrimitiveType, SchemaDefinition}
a... | 26.485437 | 82 | 0.618035 |
e9071f97b588248119b02f3597a3e2d52023d711 | 2,970 | exs | Elixir | test/html_renderer/attribute_test.exs | aforward-oss/earmark | b44d4817aa2b4047b07f91d633ae83ed27c695ed | [
"Apache-2.0"
] | null | null | null | test/html_renderer/attribute_test.exs | aforward-oss/earmark | b44d4817aa2b4047b07f91d633ae83ed27c695ed | [
"Apache-2.0"
] | null | null | null | test/html_renderer/attribute_test.exs | aforward-oss/earmark | b44d4817aa2b4047b07f91d633ae83ed27c695ed | [
"Apache-2.0"
] | null | null | null | defmodule HtmlRenderer.AttributeTest do
use ExUnit.Case
import Earmark.HtmlRenderer, only: [ expand: 2, add_attrs: 2, add_attrs: 3 ]
# This is just for the internals...
def h(enum), do: Enum.into(enum, Map.new)
def newh, do: h([])
test "expand single class attr" do
assert expand(newh(), ".one ") ==... | 30.306122 | 85 | 0.567003 |
e90721944104eaa21def5d2a3861bbeb8b18eaef | 653 | exs | Elixir | test/query/highlight_original_test.exs | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | 13 | 2018-09-06T12:42:18.000Z | 2021-06-15T15:13:13.000Z | test/query/highlight_original_test.exs | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | 27 | 2019-08-22T07:02:27.000Z | 2022-02-05T05:27:30.000Z | test/query/highlight_original_test.exs | bluedevelz/hui | e5f24a30ade504db3adbffab1aeec90d490ac6a0 | [
"Apache-2.0"
] | 7 | 2019-08-22T06:29:05.000Z | 2021-10-16T15:39:21.000Z | defmodule Hui.Query.HighlighterOriginalTest do
use ExUnit.Case, async: true
alias Hui.Query
test "new()" do
x = Query.HighlighterOriginal.new()
assert x.__struct__ == Query.HighlighterOriginal
{alt_field, len, highlight} = {"description", 500, false}
x = Query.HighlighterOriginal.new(alt_field)... | 29.681818 | 64 | 0.7366 |
e90735bfc66fd2c6f62e672f5cee5422924fe484 | 1,788 | ex | Elixir | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/set_iam_policy_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/set_iam_policy_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/set_iam_policy_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.042553 | 322 | 0.759508 |
e90738ff77ee5eea297714635cf8053278b6f0b7 | 1,029 | exs | Elixir | mix.exs | eduardodflpereira/hound | d30548b0e6e673b886bb98101628e6227afa8c55 | [
"MIT"
] | null | null | null | mix.exs | eduardodflpereira/hound | d30548b0e6e673b886bb98101628e6227afa8c55 | [
"MIT"
] | null | null | null | mix.exs | eduardodflpereira/hound | d30548b0e6e673b886bb98101628e6227afa8c55 | [
"MIT"
] | null | null | null | defmodule Hound.Mixfile do
use Mix.Project
@version "1.0.4"
def project do
[ app: :hound,
version: @version,
elixir: ">= 1.0.4",
description: "Webdriver library for integration testing and browser automation",
source_url: "https://github.com/HashNuke/hound",
deps: deps(),
... | 20.58 | 86 | 0.543246 |
e90739834c936281de72d943f5a8cad9841ffa71 | 4,255 | ex | Elixir | lib/bgp/protocol.ex | rzalamena/bgp_bench | 069e0583ec62b44f20d838849eb444434cf426fc | [
"MIT"
] | 2 | 2018-02-24T15:02:11.000Z | 2021-06-19T17:25:11.000Z | lib/bgp/protocol.ex | rzalamena/bgp_bench | 069e0583ec62b44f20d838849eb444434cf426fc | [
"MIT"
] | null | null | null | lib/bgp/protocol.ex | rzalamena/bgp_bench | 069e0583ec62b44f20d838849eb444434cf426fc | [
"MIT"
] | null | null | null | defmodule Bgp.Protocol do
@moduledoc """
BGP wire protocol library.
"""
defmodule Message do
@moduledoc """
Protocol messages retrieval format. This is what is returned when
BGP messages are decoded.
"""
@enforce_keys [:type, :value]
defstruct [type: nil, value: nil]
@type message_t... | 30.177305 | 80 | 0.612456 |
e9073b1d91d53989f44ba8f24cad1f5f6233b56d | 1,094 | ex | Elixir | apps/eventbus_web/lib/eventbus_web/channels/user_socket.ex | gotitinc/eventbus | 5658cdb966d7c450ba9249ee5f66894054e3c86e | [
"Apache-2.0"
] | 4 | 2020-12-30T02:53:21.000Z | 2021-06-25T03:04:47.000Z | apps/eventbus_web/lib/eventbus_web/channels/user_socket.ex | gotitinc/eventbus | 5658cdb966d7c450ba9249ee5f66894054e3c86e | [
"Apache-2.0"
] | null | null | null | apps/eventbus_web/lib/eventbus_web/channels/user_socket.ex | gotitinc/eventbus | 5658cdb966d7c450ba9249ee5f66894054e3c86e | [
"Apache-2.0"
] | null | null | null | defmodule EventbusWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", EventbusWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all chan... | 30.388889 | 83 | 0.695612 |
e90754be4fe13ff844ff9badbf1197d0c97074e0 | 1,182 | exs | Elixir | test/credo/check/readability/redundant_blank_lines_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/readability/redundant_blank_lines_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/readability/redundant_blank_lines_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Readability.RedundantBlankLinesTest do
use Credo.TestHelper
@described_check Credo.Check.Readability.RedundantBlankLines
#
# cases NOT raising issues
#
test "it should NOT report expected code" do
"""
defmodule ModuleWithoutRedundantBlankLines do
def a do
1
end
def b do
... | 14.775 | 65 | 0.690355 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.