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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28be33633c362170349a5519992fc193d17ab396 | 975 | ex | Elixir | lib/on_flow/rlp.ex | dangdennis/on_flow | cf3e59cd47bcdf77ee02131e3f269e71c7277556 | [
"MIT"
] | 3 | 2021-04-09T06:31:43.000Z | 2021-08-10T02:36:08.000Z | lib/on_flow/rlp.ex | dangdennis/on_flow | cf3e59cd47bcdf77ee02131e3f269e71c7277556 | [
"MIT"
] | 3 | 2021-04-09T07:09:32.000Z | 2022-03-13T18:38:00.000Z | lib/on_flow/rlp.ex | dangdennis/on_flow | cf3e59cd47bcdf77ee02131e3f269e71c7277556 | [
"MIT"
] | 3 | 2021-08-14T16:17:07.000Z | 2022-03-13T05:38:50.000Z | defimpl ExRLP.Encode, for: OnFlow.Entities.Transaction do
alias ExRLP.Encode
@spec encode(OnFlow.Entities.Transaction.t(), keyword()) :: binary()
def encode(%OnFlow.Entities.Transaction{} = transaction, options \\ []) do
[
transaction.script,
transaction.arguments,
transaction.reference_blo... | 27.857143 | 76 | 0.697436 |
28be53a49b4469b65cb20ab11c8b893496ea92e2 | 3,521 | exs | Elixir | farmbot_os/test/farmbot_os/sys_calls_test.exs | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_os/test/farmbot_os/sys_calls_test.exs | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | farmbot_os/test/farmbot_os/sys_calls_test.exs | Arti4ever/farmbot_os | a238c1d5ae78c08d1f5894cac41ed61035fb3266 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.SysCallsTest do
use ExUnit.Case, async: true
alias FarmbotOS.SysCalls
alias FarmbotCore.Asset
alias FarmbotCore.Asset.{
Repo,
Sequence,
BoxLed
}
use Mimic
setup :verify_on_exit!
import ExUnit.CaptureIO
test "emergency_unlock" do
expect(FarmbotFirmware, :command, ... | 23.790541 | 77 | 0.616302 |
28be63613882f6b5c3caf96d519e0650b311c507 | 1,410 | ex | Elixir | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/subscribe_auction_package_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/subscribe_auction_package_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/subscribe_auction_package_request.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... | 30 | 90 | 0.77305 |
28be6393d94721ff5d4be3983fb0b396480c901a | 1,382 | ex | Elixir | lib/hive/chaos.ex | atlas-forks/swarm_demo | 30337113eed7f307d31373ff7081c71a8a30a950 | [
"MIT"
] | 8 | 2017-05-17T23:34:23.000Z | 2020-05-03T10:21:17.000Z | lib/hive/chaos.ex | atlas-forks/swarm_demo | 30337113eed7f307d31373ff7081c71a8a30a950 | [
"MIT"
] | null | null | null | lib/hive/chaos.ex | atlas-forks/swarm_demo | 30337113eed7f307d31373ff7081c71a8a30a950 | [
"MIT"
] | 2 | 2018-01-15T15:55:59.000Z | 2019-01-21T03:16:23.000Z | defmodule Hive.Chaos do
use GenServer
require Logger
@start_delay Application.fetch_env!(:hive, :start_delay)
@kill_delay Application.fetch_env!(:hive, :kill_delay)
def start_link do
GenServer.start_link(__MODULE__, [])
end
def init(_) do
Process.send_after(self(), :random_start, @start_delay)
... | 28.204082 | 97 | 0.649059 |
28beb9de9864e519a05fa5f17644b8b9c661ae30 | 12,835 | exs | Elixir | apps/omg_watcher/test/omg_watcher/exit_processor/finalizations_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/omg_watcher/exit_processor/finalizations_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/omg_watcher/exit_processor/finalizations_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.543544 | 110 | 0.645345 |
28bec0080b2d8b43bd7db662e05afb6e1b8e8496 | 917 | ex | Elixir | lib/react_webpack.ex | joshcrews/phoenix-react-redux-heroku | cc31f9c58da29167464e9a90b9a52d1f36a882ef | [
"MIT"
] | null | null | null | lib/react_webpack.ex | joshcrews/phoenix-react-redux-heroku | cc31f9c58da29167464e9a90b9a52d1f36a882ef | [
"MIT"
] | null | null | null | lib/react_webpack.ex | joshcrews/phoenix-react-redux-heroku | cc31f9c58da29167464e9a90b9a52d1f36a882ef | [
"MIT"
] | null | null | null | defmodule ReactWebpack do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint when the application starts
supervisor(Reac... | 31.62069 | 71 | 0.728462 |
28bec01a76ac6ab7c299b9882bded9c5fa80968e | 430 | ex | Elixir | lib/myelin/cmd/tx/tx.ex | neocortexlab/myelin | 0f352c90b41de61133402fe32474a880b544d199 | [
"Apache-2.0"
] | null | null | null | lib/myelin/cmd/tx/tx.ex | neocortexlab/myelin | 0f352c90b41de61133402fe32474a880b544d199 | [
"Apache-2.0"
] | null | null | null | lib/myelin/cmd/tx/tx.ex | neocortexlab/myelin | 0f352c90b41de61133402fe32474a880b544d199 | [
"Apache-2.0"
] | null | null | null | defmodule Myelin.Cmd.Tx do
@moduledoc """
Checks transaction presence in blockchain
## Usage:
myelin tx HASH
"""
import Myelin.Utils
def process(%{hash: hash}, _flags) do
print "Checking tx #{hash}"
Myelin.init()
case Myelin.check_tx(hash) do
nil -> "Transaction not found"
... | 18.695652 | 81 | 0.623256 |
28bef2d47e5b03b953b7dc9d891ee9cf25ddc589 | 6,719 | exs | Elixir | test/mint/integration_test.exs | hazy/mint | d916e05c13c44b57c212e4f24ac57355e45b6ff1 | [
"Apache-2.0"
] | null | null | null | test/mint/integration_test.exs | hazy/mint | d916e05c13c44b57c212e4f24ac57355e45b6ff1 | [
"Apache-2.0"
] | null | null | null | test/mint/integration_test.exs | hazy/mint | d916e05c13c44b57c212e4f24ac57355e45b6ff1 | [
"Apache-2.0"
] | null | null | null | defmodule Mint.IntegrationTest do
use ExUnit.Case, async: true
import Mint.HTTP1.TestHelpers
alias Mint.{TransportError, HTTP}
describe "httpbin.org" do
@describetag :integration
@tag skip: "Seems like httpbin.org added support for HTTP/2 (issue #240)"
test "SSL - select HTTP1" do
assert {... | 34.280612 | 94 | 0.55157 |
28bf369c266028edd6e58732d064667ba9551a93 | 2,376 | ex | Elixir | lib/data_container/instrumentation_tracker.ex | brsg/telluride_pipeline | e5701ee7e750b80b114f248519c95fbb3ed5fd7b | [
"Apache-2.0"
] | null | null | null | lib/data_container/instrumentation_tracker.ex | brsg/telluride_pipeline | e5701ee7e750b80b114f248519c95fbb3ed5fd7b | [
"Apache-2.0"
] | null | null | null | lib/data_container/instrumentation_tracker.ex | brsg/telluride_pipeline | e5701ee7e750b80b114f248519c95fbb3ed5fd7b | [
"Apache-2.0"
] | null | null | null | defmodule TelluridePipeline.DataContainer.InstrumentationTracker do
@moduledoc """
InstrumentationTracker is a singleton server process acting as a data container for
Broadway metric summarization and publishing to RMQ.
"""
use GenServer
alias __MODULE__
alias TelluridePipeline.Data.NodeMetric
alias Te... | 27 | 85 | 0.703283 |
28bf395318c26b55bea0cc7bb1b9ae361c1ff6df | 525 | exs | Elixir | testclient2/mix.exs | abhisheknigam/Phoenix-Twitter-Application | 9a793037e90a7abc6ced6979b0562ce45ece624a | [
"MIT"
] | null | null | null | testclient2/mix.exs | abhisheknigam/Phoenix-Twitter-Application | 9a793037e90a7abc6ced6979b0562ce45ece624a | [
"MIT"
] | null | null | null | testclient2/mix.exs | abhisheknigam/Phoenix-Twitter-Application | 9a793037e90a7abc6ced6979b0562ce45ece624a | [
"MIT"
] | null | null | null | defmodule Testclient2.Mixfile do
use Mix.Project
def project do
[
app: :testclient2,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
escript: [main_module: Testclient2],
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.... | 18.103448 | 59 | 0.6 |
28bf3c0cd731a11144bef30d2a7afee5309ced24 | 805 | exs | Elixir | test/hacker_news_aggregator_web/channels/topstories_channel_test.exs | acastemoreno/hacker_new_aggregator | 5734205d3308eccc98f203d4d3b875fd0f966de3 | [
"MIT"
] | null | null | null | test/hacker_news_aggregator_web/channels/topstories_channel_test.exs | acastemoreno/hacker_new_aggregator | 5734205d3308eccc98f203d4d3b875fd0f966de3 | [
"MIT"
] | null | null | null | test/hacker_news_aggregator_web/channels/topstories_channel_test.exs | acastemoreno/hacker_new_aggregator | 5734205d3308eccc98f203d4d3b875fd0f966de3 | [
"MIT"
] | null | null | null | defmodule HackerNewsAggregatorWeb.TopStoriesChannelTest do
use HackerNewsAggregatorWeb.ChannelCase
setup do
{:ok, _, socket} =
HackerNewsAggregatorWeb.UserSocket
|> socket()
|> subscribe_and_join(HackerNewsAggregatorWeb.TopStoriesChannel, "topstories")
%{socket: socket}
end
test "br... | 28.75 | 84 | 0.680745 |
28bf42090daf25ff20763428bda6b39f16e702d9 | 1,349 | exs | Elixir | mix.exs | 0b01/autocompletex | 8430f1de2dde1798ff2ff3e7fd0b61656cf6304e | [
"MIT"
] | 25 | 2017-05-22T08:00:25.000Z | 2019-09-01T14:18:52.000Z | mix.exs | 0b01/autocompletex | 8430f1de2dde1798ff2ff3e7fd0b61656cf6304e | [
"MIT"
] | 2 | 2017-05-23T23:03:55.000Z | 2017-05-25T23:31:05.000Z | mix.exs | rickyhan/autocompletex | 8430f1de2dde1798ff2ff3e7fd0b61656cf6304e | [
"MIT"
] | 2 | 2017-05-25T15:42:36.000Z | 2018-04-17T05:12:36.000Z | defmodule Autocompletex.Mixfile do
use Mix.Project
def project do
[
app: :autocompletex,
version: "0.1.3",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
test_coverage: [tool... | 24.981481 | 123 | 0.561898 |
28bf496bbf4fbd365594e3c3aca842cf89bf9da2 | 2,505 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/scaling_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/scaling_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/scaling_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.732143 | 313 | 0.734531 |
28bf527b6c4c32577b0a8b205576467eabd2e8c9 | 2,512 | exs | Elixir | mix.exs | davydog187/plug | 10567b6b1a7cde880bd7708b593ed9106877d56b | [
"Apache-2.0"
] | null | null | null | mix.exs | davydog187/plug | 10567b6b1a7cde880bd7708b593ed9106877d56b | [
"Apache-2.0"
] | null | null | null | mix.exs | davydog187/plug | 10567b6b1a7cde880bd7708b593ed9106877d56b | [
"Apache-2.0"
] | null | null | null | defmodule Plug.MixProject do
use Mix.Project
@version "1.10.1"
@description "A specification and conveniences for composable modules between web applications"
@xref_exclude [Plug.Cowboy, :telemetry]
def project do
[
app: :plug,
version: @version,
elixir: "~> 1.7",
deps: deps(),
... | 22.035088 | 97 | 0.54578 |
28bf630a563099b70cd6f7a7943ba2308338a13a | 1,486 | ex | Elixir | hgw/lib/hub_gateway/web/web.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | 1 | 2019-12-10T22:25:31.000Z | 2019-12-10T22:25:31.000Z | hgw/lib/hub_gateway/web/web.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | 3 | 2020-10-25T04:40:05.000Z | 2020-10-25T04:48:10.000Z | hgw/lib/hub_gateway/web/web.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | null | null | null | defmodule HubGateway.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use HubGateway.Web, :controller
use HubGateway.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep... | 23.21875 | 88 | 0.685061 |
28bf7612a0492e9d041187bd26ff0720d6699738 | 2,148 | ex | Elixir | apps/blunt/lib/blunt/dispatch_strategy/default.ex | blunt-elixir/blunt | a88b88984022db7ba2110204248fdb541121e3a0 | [
"MIT"
] | 1 | 2022-03-07T11:54:47.000Z | 2022-03-07T11:54:47.000Z | apps/blunt/lib/blunt/dispatch_strategy/default.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | apps/blunt/lib/blunt/dispatch_strategy/default.ex | elixir-cqrs/cqrs_tools | afbf82da522a10d2413547a46f316ed3aadebba5 | [
"MIT"
] | null | null | null | defmodule Blunt.DispatchStrategy.Default do
@behaviour Blunt.DispatchStrategy
import Blunt.DispatchStrategy
alias Blunt.DispatchContext
alias Blunt.DispatchStrategy.PipelineResolver
alias Blunt.{CommandHandler, Query, QueryHandler}
@type context :: DispatchContext.t()
@spec dispatch(context()) :: {:ok... | 28.64 | 106 | 0.671322 |
28bfe54bc9be4dcb2b5289fac2772ce1c0cdc15f | 1,639 | exs | Elixir | mix.exs | pjo336/docker-phoenix-example | e2cfc2e643ba0b7c6a44f609d1bf0809419f3694 | [
"MIT"
] | null | null | null | mix.exs | pjo336/docker-phoenix-example | e2cfc2e643ba0b7c6a44f609d1bf0809419f3694 | [
"MIT"
] | null | null | null | mix.exs | pjo336/docker-phoenix-example | e2cfc2e643ba0b7c6a44f609d1bf0809419f3694 | [
"MIT"
] | null | null | null | defmodule Hello.MixProject do
use Mix.Project
def project do
[
app: :hello,
version: "0.1.0",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
build_path: "/mix/_build",... | 26.868852 | 79 | 0.535692 |
28c00d6fa80996fa91e1df7afb6685615dec9972 | 1,772 | ex | Elixir | api/knot/test/support/model_case.ex | lukasz-madon/knot | 4c56af2d9d73b088af9e66b87d1ce85df752ad8d | [
"MIT"
] | null | null | null | api/knot/test/support/model_case.ex | lukasz-madon/knot | 4c56af2d9d73b088af9e66b87d1ce85df752ad8d | [
"MIT"
] | null | null | null | api/knot/test/support/model_case.ex | lukasz-madon/knot | 4c56af2d9d73b088af9e66b87d1ce85df752ad8d | [
"MIT"
] | null | null | null | defmodule Knot.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For thi... | 26.848485 | 84 | 0.681716 |
28c0335eb7eb35be56091253a949ca457e9b9f47 | 31 | ex | Elixir | lib/kvstore/utils.ex | rustamtolipov/kvstore | 1e7aba085fd0888975ef407377489d253d81bf2a | [
"MIT"
] | null | null | null | lib/kvstore/utils.ex | rustamtolipov/kvstore | 1e7aba085fd0888975ef407377489d253d81bf2a | [
"MIT"
] | null | null | null | lib/kvstore/utils.ex | rustamtolipov/kvstore | 1e7aba085fd0888975ef407377489d253d81bf2a | [
"MIT"
] | null | null | null | defmodule KVstore.Utils do
end
| 10.333333 | 26 | 0.83871 |
28c05544d53dd56426bbba74d51ac92dc5771cde | 2,773 | exs | Elixir | lib/mix/templates/010_create_deliveries.exs | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 1 | 2019-11-19T07:38:38.000Z | 2019-11-19T07:38:38.000Z | priv/repo/migrations/201908150906090_materia_commerce_10_create_deliveries.exs | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 31 | 2018-12-26T02:05:55.000Z | 2021-05-14T03:33:07.000Z | priv/repo/migrations/201908150906090_materia_commerce_10_create_deliveries.exs | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaCommerce.Repo.Migrations.CreateDeliveries do
use Ecto.Migration
def change do
create table(:deliveries) do
add(:snd_zip_code, :string)
add(:snd_address1, :string)
add(:snd_address1_p, :string)
add(:snd_address2, :string)
add(:snd_address2_p, :string)
add(:sn... | 35.101266 | 64 | 0.652723 |
28c08848dcc16eadc38559510910ae680b432460 | 1,573 | exs | Elixir | apps/andi/config/integration.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | 1 | 2020-03-18T21:14:39.000Z | 2020-03-18T21:14:39.000Z | apps/andi/config/integration.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | apps/andi/config/integration.exs | AWHServiceAccount/smartcitiesdata | 6957afac12809288640b6ba6b576c3016e6033d7 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
host =
case System.get_env("HOST_IP") do
nil -> "localhost"
defined -> defined
end
redix_args = [host: host]
endpoint = [{host, 9092}]
config :andi,
divo: [
{DivoKafka, [create_topics: "event-stream:1:1", outside_host: host, kafka_image_version: "2.12-2.1.1"]},
{DivoRedis, []}
... | 22.471429 | 108 | 0.601399 |
28c08e76e619efe133492d240d52b98619b452b7 | 18,927 | ex | Elixir | clients/os_login/lib/google_api/os_login/v1alpha/api/users.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/os_login/lib/google_api/os_login/v1alpha/api/users.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/os_login/lib/google_api/os_login/v1alpha/api/users.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 ... | 48.160305 | 196 | 0.630792 |
28c0a6a348904d89bdfb292d8e204f5a26ade61d | 292 | ex | Elixir | lib/impl/any.ex | treble37/digger | 374e72ed1af02b9dff55b4b1a1b2c553950e9270 | [
"MIT"
] | 5 | 2017-09-18T05:44:29.000Z | 2021-10-05T03:24:34.000Z | lib/impl/any.ex | treble37/digger | 374e72ed1af02b9dff55b4b1a1b2c553950e9270 | [
"MIT"
] | 111 | 2017-09-14T06:01:48.000Z | 2022-02-28T13:26:14.000Z | lib/impl/any.ex | treble37/digger | 374e72ed1af02b9dff55b4b1a1b2c553950e9270 | [
"MIT"
] | 1 | 2021-08-10T17:01:07.000Z | 2021-08-10T17:01:07.000Z | defimpl Digger, for: Any do
def atomize(any, _opts), do: any
def camel_case(any, _), do: any
def dasherize(any, _opts), do: any
def lowercase_first(any, _opts), do: any
def snake_case(any, _opts), do: any
def stringify(any, _), do: any
def upcase_first(any, _opts), do: any
end
| 29.2 | 42 | 0.684932 |
28c0ae28a7885291c860e5271175408aef868cff | 1,136 | ex | Elixir | lib/rapport/barcode.ex | ricn/rapport | f00f9945a11ca3f68e79c8f5709fa170b8ac4682 | [
"MIT"
] | 59 | 2017-09-30T23:28:20.000Z | 2021-12-13T21:20:08.000Z | lib/rapport/barcode.ex | ricn/rapport | f00f9945a11ca3f68e79c8f5709fa170b8ac4682 | [
"MIT"
] | 5 | 2017-10-27T07:28:13.000Z | 2021-12-13T21:56:47.000Z | lib/rapport/barcode.ex | ricn/rapport | f00f9945a11ca3f68e79c8f5709fa170b8ac4682 | [
"MIT"
] | 2 | 2017-10-26T13:50:46.000Z | 2018-06-18T11:58:50.000Z | defmodule Rapport.Barcode do
@spec create(:code128 | :code39 | :code93 | :itf | :ean13, String.t(), keyword) :: String.t()
@doc """
Creates a barcode image (PNG) with the given text
It expects the barcode type to be an :atom and it must be `:code39`, `:code93`, `code128` or `:itf`,
otherwise `ArgumentError` ... | 27.707317 | 102 | 0.638204 |
28c0e099b1fbd988718cb45508bca0cb95debf71 | 767 | exs | Elixir | config/config.exs | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | null | null | null | config/config.exs | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | null | null | null | config/config.exs | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :verk_web, VerkWeb.Endpoint,
url: [host: "localhos... | 31.958333 | 68 | 0.741851 |
28c0f82c489eb95ac3aaa682b1be735b3e8acd8b | 58 | ex | Elixir | brighterx/lib/brighterx/config.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | 1 | 2019-12-10T22:25:31.000Z | 2019-12-10T22:25:31.000Z | brighterx/lib/brighterx/config.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | 3 | 2020-10-25T04:40:05.000Z | 2020-10-25T04:48:10.000Z | brighterx/lib/brighterx/config.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | null | null | null | defmodule Brighterx.Config do
def env do
end
end
| 9.666667 | 29 | 0.689655 |
28c0f833c77aa0b5b2bae88f528586e7863b58d1 | 23,174 | exs | Elixir | lib/elixir/test/elixir/calendar_test.exs | KronicDeth/elixir | 1c9be51dc3264c36af475c55140be4ad5c2bde19 | [
"Apache-2.0"
] | 1 | 2018-08-08T12:15:48.000Z | 2018-08-08T12:15:48.000Z | lib/elixir/test/elixir/calendar_test.exs | Achibiway/elixir | b37220ccfa44c0bfe1e070886a0817e76de35973 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/calendar_test.exs | Achibiway/elixir | b37220ccfa44c0bfe1e070886a0817e76de35973 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
Code.require_file("fixtures/calendar/holocene.exs", __DIR__)
defmodule FakeCalendar do
def date_to_string(_, _, _), do: "boom"
def time_to_string(_, _, _, _), do: "boom"
def naive_datetime_to_string(_, _, _, _, _, _, _), do: "boom"
def datetime_to_string(_, _, _, _... | 29.371356 | 100 | 0.535514 |
28c0f94a35ed43f20f14afe70cc68dda2118ac8b | 2,370 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_play_audio.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_play_audio.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_telephony_play_audio.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... | 44.716981 | 776 | 0.768354 |
28c103f897b1a26a324bae4df310115fe48cf9dc | 1,034 | ex | Elixir | apps/model/lib/model/facility.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/model/lib/model/facility.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/model/lib/model/facility.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule Model.Facility do
@moduledoc """
Station amenities such as elevators, escalators, parking lots and bike storage.
"""
use Recordable, [
:id,
:stop_id,
:type,
:long_name,
:short_name,
:latitude,
:longitude
]
alias Model.WGS84
@type id :: String.t()
@typedoc """
... | 26.512821 | 97 | 0.60735 |
28c137bc75ded06e38cb66346976b18fa953fdf4 | 1,178 | ex | Elixir | lib/elixir_search_extractor_web/controllers/keyword_file_controller.ex | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | lib/elixir_search_extractor_web/controllers/keyword_file_controller.ex | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | 32 | 2021-05-24T06:52:33.000Z | 2021-07-19T05:04:40.000Z | lib/elixir_search_extractor_web/controllers/keyword_file_controller.ex | rafayet-monon/elixir_search_extractor | a644e53ab364315fd7d055738d76e2ad1518d0ee | [
"MIT"
] | null | null | null | defmodule ElixirSearchExtractorWeb.KeywordFileController do
use ElixirSearchExtractorWeb, :controller
alias ElixirSearchExtractor.FileUpload.FileUploads
alias ElixirSearchExtractor.FileUpload.Schemas.KeywordFile
def index(conn, params) do
{keyword_files, pagination} =
FileUploads.paginated_user_keyw... | 32.722222 | 94 | 0.70798 |
28c16b505b3849f6ffc224288bcd0cfd5304232d | 4,394 | exs | Elixir | test/telegraph/config_test.exs | etroynov/telegraph | e355362d2edbb1aa47669de6525c621be6d03e58 | [
"MIT"
] | 1 | 2022-03-14T18:00:31.000Z | 2022-03-14T18:00:31.000Z | test/telegraph/config_test.exs | etroynov/telegraph | e355362d2edbb1aa47669de6525c621be6d03e58 | [
"MIT"
] | 2 | 2022-03-16T20:49:13.000Z | 2022-03-23T22:08:48.000Z | test/telegraph/config_test.exs | etroynov/telegraph | e355362d2edbb1aa47669de6525c621be6d03e58 | [
"MIT"
] | null | null | null | defmodule Telegraph.ConfigTest do
use ExUnit.Case
alias Telegraph.Config
defp restore_env!(key, value) do
if value do
:ok = Application.put_env(:telegraph, key, value)
else
:ok = Application.delete_env(:telegraph, key)
end
end
setup do
base_url = Application.get_env(:telegraph, :... | 31.611511 | 87 | 0.69208 |
28c16fa8baaa01146c8958ce16133de699f4293e | 3,322 | ex | Elixir | lib/protoc/fields/simple.ex | karlseguin/pbuf | 744dd119f6331b8fd74239387ba9ff97acf6b385 | [
"0BSD"
] | 4 | 2018-10-28T16:35:31.000Z | 2021-08-17T05:49:55.000Z | lib/protoc/fields/simple.ex | karlseguin/pbuf | 744dd119f6331b8fd74239387ba9ff97acf6b385 | [
"0BSD"
] | null | null | null | lib/protoc/fields/simple.ex | karlseguin/pbuf | 744dd119f6331b8fd74239387ba9ff97acf6b385 | [
"0BSD"
] | null | null | null | defmodule Pbuf.Protoc.Fields.Simple do
use Pbuf.Protoc.Field
def new(desc, context) do
typespec = typespec(desc)
repeated = is_repeated?(desc)
packed? = context.version == 3 || (desc.options != nil && desc.options.packed == true)
{tag, name, type, prefix} = extract_core(desc, packed?)
{encode... | 31.046729 | 128 | 0.605659 |
28c178e12bcd2d501a2df2670a8bee2c3bd79025 | 2,246 | exs | Elixir | test/plowman/connection_test.exs | azukiapp/plowman | 38bbab040eb691f8402e3073329bb19a1f0b7b9a | [
"MIT"
] | 11 | 2015-06-04T20:03:48.000Z | 2019-12-09T13:19:09.000Z | test/plowman/connection_test.exs | azukiapp/plowman | 38bbab040eb691f8402e3073329bb19a1f0b7b9a | [
"MIT"
] | null | null | null | test/plowman/connection_test.exs | azukiapp/plowman | 38bbab040eb691f8402e3073329bb19a1f0b7b9a | [
"MIT"
] | 1 | 2021-03-24T19:29:18.000Z | 2021-03-24T19:29:18.000Z | Code.require_file "../../test_helper.exs", __FILE__
defmodule PlowmanConnectionTest do
use Plowman.Test, async: false
@target Plowman.Connection
alias Plowman.GitCli.CliState, as: CliState
setup_all do
{:ok, [
client: CliState.new(cm: :cm, channel: :channelId),
conn: Mock.new(:ssh_connection,... | 32.085714 | 92 | 0.65138 |
28c17a932946130c2e5d64d83fb7f2dab4a2534c | 5,125 | exs | Elixir | apps/api_web/test/api_web/views/schedule_view_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/api_web/test/api_web/views/schedule_view_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/api_web/test/api_web/views/schedule_view_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | defmodule ApiWeb.ScheduleViewTest do
use ApiWeb.ConnCase
use Timex
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
alias Model.Schedule
@schedule %Schedule{
trip_id: "trip",
route_id: "route",
stop_id: "stop",
direction_id: 1,
arrival_time: 100,
... | 32.232704 | 96 | 0.61561 |
28c19d3ec4e06c080ec8e97ec8df1362da1ce805 | 4,490 | exs | Elixir | test/fly_postgres_test.exs | sorentwo/fly_postgres_elixir | b75291e16c5d2c86900bba791ded0d25d17ad985 | [
"Apache-2.0"
] | null | null | null | test/fly_postgres_test.exs | sorentwo/fly_postgres_elixir | b75291e16c5d2c86900bba791ded0d25d17ad985 | [
"Apache-2.0"
] | null | null | null | test/fly_postgres_test.exs | sorentwo/fly_postgres_elixir | b75291e16c5d2c86900bba791ded0d25d17ad985 | [
"Apache-2.0"
] | null | null | null | defmodule Fly.PostgresTest do
# uses async false because we mess with the DATABASE_ENV value
use ExUnit.Case, async: false
doctest Fly.Postgres
@url_dns "postgres://some-user:some-pass@top2.nearest.of.my-app-db.internal:5432/some_app"
@url_base "postgres://some-user:some-pass@my-app-db.internal:5432/some_ap... | 40.818182 | 98 | 0.674165 |
28c19d42c5d33cb778ce2589a655cc05928f46dd | 63 | ex | Elixir | lib/events_web/views/response_view.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/views/response_view.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/views/response_view.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | defmodule EventsWeb.ResponseView do
use EventsWeb, :view
end
| 15.75 | 35 | 0.809524 |
28c1c3726f5ce157f6a64c3ded29313c3e3cefde | 929 | ex | Elixir | lib/course_planner_web/controllers/about_controller.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | lib/course_planner_web/controllers/about_controller.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | lib/course_planner_web/controllers/about_controller.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlannerWeb.AboutController do
@moduledoc false
use CoursePlannerWeb, :controller
alias CoursePlanner.Settings
def show(conn, _param) do
mapped_visible_settings =
Settings.get_visible_systemvariables()
|> Settings.filter_program_systemvariables()
|> Settings.to_map
pr... | 34.407407 | 79 | 0.713671 |
28c1c9cc86b9b9a70f873fd8923786546182c794 | 231 | ex | Elixir | lib/dstreams_web/controllers/page_controller.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | lib/dstreams_web/controllers/page_controller.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | lib/dstreams_web/controllers/page_controller.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | defmodule DstreamsWeb.PageController do
use DstreamsWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
def bbgtickers(conn, _params) do
render(conn, "bbg.html")
end
end
| 16.5 | 40 | 0.658009 |
28c1dfcb9f1e65e8f5c1347d7948e98040bf6997 | 947 | exs | Elixir | test/ex_libsrtp/words_test.exs | membraneframework/elixir_srtp | 3e0471ed454a3f207af086a13ec684c2ecb64870 | [
"Apache-2.0"
] | null | null | null | test/ex_libsrtp/words_test.exs | membraneframework/elixir_srtp | 3e0471ed454a3f207af086a13ec684c2ecb64870 | [
"Apache-2.0"
] | 1 | 2021-03-08T10:22:28.000Z | 2021-03-24T20:07:15.000Z | test/ex_libsrtp/words_test.exs | membraneframework/elixir_srtp | 3e0471ed454a3f207af086a13ec684c2ecb64870 | [
"Apache-2.0"
] | null | null | null | defmodule ExLibSRTP.WordsTest do
use ExUnit.Case, async: true
alias Support.SamplePacket
setup do
{master_key, encrypted} = SamplePacket.load!("words_encrypted.txt")
{nil, decrypted} = SamplePacket.load!("words_decrypted.txt")
srtp = ExLibSRTP.new()
ssrc = 0xDEADBEEF
policy = %ExLibSRTP.Pol... | 25.594595 | 71 | 0.654699 |
28c1e1a5c9a3d37a2a882d2e689d5cf8c6b13460 | 627 | ex | Elixir | lib/storm/metrics/completion_bucket.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | 3 | 2015-08-24T11:44:19.000Z | 2016-10-01T21:37:05.000Z | lib/storm/metrics/completion_bucket.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | lib/storm/metrics/completion_bucket.ex | nsarno/winter | a65a6aa61d2b1af39277338277f8b3f479643939 | [
"MIT"
] | null | null | null | defmodule Storm.Metrics.CompletionBucket do
@moduledoc """
Agent maintaining the state of the workers processes
completion callbacks to handle requests metrics.
"""
@doc """
Starts a new completion agent
"""
def start_link do
Agent.start_link(fn -> HashDict.new end, name: __MODULE__)
end
@doc ... | 22.392857 | 62 | 0.666667 |
28c207056f022846492a67674183d2080c475c16 | 3,622 | ex | Elixir | priv/templates/coherence.install/controllers/coherence/unlock_controller.ex | harmon25/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 1 | 2022-03-06T16:30:21.000Z | 2022-03-06T16:30:21.000Z | priv/templates/coherence.install/controllers/coherence/unlock_controller.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | null | null | null | priv/templates/coherence.install/controllers/coherence/unlock_controller.ex | ysbaddaden/coherence | 5c4f26d3c87f6a16638adf623d041e2723ccf2b8 | [
"MIT"
] | 2 | 2017-09-22T16:54:36.000Z | 2021-11-09T20:55:58.000Z | defmodule <%= base %>.Coherence.UnlockController do
@moduledoc """
Handle unlock_with_token actions.
This controller provides the ability generate an unlock token, send
the user an email and unlocking the account with a valid token.
Basic locking and unlocking does not use this controller.
"""
use Coher... | 31.495652 | 102 | 0.644671 |
28c207e84185b5e3704588cd6f341a9623a33be7 | 1,334 | ex | Elixir | questions/string/00030000-substr.ex | morenoh149/pgexercises | ae5b46d84d5e4cdb6af49047960d7abd76e80f30 | [
"BSD-2-Clause"
] | null | null | null | questions/string/00030000-substr.ex | morenoh149/pgexercises | ae5b46d84d5e4cdb6af49047960d7abd76e80f30 | [
"BSD-2-Clause"
] | null | null | null | questions/string/00030000-substr.ex | morenoh149/pgexercises | ae5b46d84d5e4cdb6af49047960d7abd76e80f30 | [
"BSD-2-Clause"
] | 1 | 2019-10-08T04:46:40.000Z | 2019-10-08T04:46:40.000Z | |QUESTIONNAME|
Count the number of members whose surname starts with each letter of the alphabet
|QUESTION|
You'd like to produce a count of how many members you have whose surname starts with each letter of the alphabet. Sort by the letter, and don't worry about printing out a letter if the count is 0.
|QUERY|
select... | 70.210526 | 522 | 0.76087 |
28c210b0681d05ce756ac629c850f4bd60a2dad2 | 3,120 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/sdf.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/sdf.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/api/sdf.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 ... | 41.052632 | 187 | 0.673397 |
28c223cf2194faf151c357e21ead9d606c6ab265 | 3,422 | ex | Elixir | lib/esi/api/opportunities.ex | mikalv/esi | c37a685246e2f47a28abe6b369ac66329a654555 | [
"MIT"
] | 3 | 2021-02-06T23:24:52.000Z | 2021-11-11T01:49:59.000Z | lib/esi/api/opportunities.ex | mikalv/ex_esi | c37a685246e2f47a28abe6b369ac66329a654555 | [
"MIT"
] | null | null | null | lib/esi/api/opportunities.ex | mikalv/ex_esi | c37a685246e2f47a28abe6b369ac66329a654555 | [
"MIT"
] | null | null | null | defmodule ESI.API.Opportunities do
@typedoc """
Options for [`Opportunities.group/2`](#group/2).
- `:language` (DEFAULT: `:"en-us"`) -- Language to use in the response, takes precedence over Accept-Language
"""
@type group_opts :: [group_opt]
@type group_opt :: {:language, nil | :de | :"en-us" | :fr | :ja... | 24.618705 | 111 | 0.631794 |
28c2497ef34fae6d743192d6b6fd0af09aaae62a | 5,019 | ex | Elixir | lib/rajska.ex | koode/rajska | ddba68fa12f16884f3ce4cd1dd7219511b95dc9e | [
"MIT"
] | null | null | null | lib/rajska.ex | koode/rajska | ddba68fa12f16884f3ce4cd1dd7219511b95dc9e | [
"MIT"
] | null | null | null | lib/rajska.ex | koode/rajska | ddba68fa12f16884f3ce4cd1dd7219511b95dc9e | [
"MIT"
] | null | null | null | defmodule Rajska do
@moduledoc """
Rajska is an elixir authorization library for [Absinthe](https://github.com/absinthe-graphql/absinthe).
It provides the following middlewares:
- `Rajska.QueryAuthorization`
- `Rajska.QueryScopeAuthorization`
- `Rajska.ObjectAuthorization`
- `Rajska.ObjectScopeAuthorizat... | 32.803922 | 392 | 0.701733 |
28c266df4b4f16d88ab48017e257a5d36762acc0 | 7,210 | ex | Elixir | lib/ash_policy_authorizer/policy.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | null | null | null | lib/ash_policy_authorizer/policy.ex | kernel-io/ash_policy_authorizer | cf9f44398e156dad3c38eb56d5f3fd25ebaa704a | [
"MIT"
] | 1 | 2020-06-05T01:06:15.000Z | 2020-06-05T01:06:15.000Z | lib/ash_policy_authorizer/policy.ex | ash-project/ash_policy_access | a954bf12e3a65c9ea0b0eb888162064cae786cbd | [
"MIT"
] | null | null | null | defmodule AshPolicyAuthorizer.Policy do
@moduledoc false
# For now we just write to `checks` and move them to `policies`
# on build, when we support nested policies we can change that.
defstruct [
:condition,
:policies,
:bypass?,
:checks,
:description,
:access_type
]
@type t :: %__M... | 24.52381 | 110 | 0.608738 |
28c2c847bd6af70744555a4f059f5549c8148ab5 | 1,251 | ex | Elixir | lib/gift_card_demo_web/endpoint.ex | slashdotdash/gift-card-demo | d901ae0f718b8f949dd534230ffad04619759815 | [
"MIT"
] | 15 | 2019-05-25T14:15:31.000Z | 2021-11-16T04:57:32.000Z | lib/gift_card_demo_web/endpoint.ex | slashdotdash/gift-card-demo | d901ae0f718b8f949dd534230ffad04619759815 | [
"MIT"
] | 3 | 2020-07-17T02:32:35.000Z | 2021-05-08T22:06:17.000Z | lib/gift_card_demo_web/endpoint.ex | slashdotdash/gift-card-demo | d901ae0f718b8f949dd534230ffad04619759815 | [
"MIT"
] | 3 | 2020-05-02T21:44:11.000Z | 2021-06-04T17:52:30.000Z | defmodule GiftCardDemoWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :gift_card_demo
socket "/live", Phoenix.LiveView.Socket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static files in production.
plug ... | 27.8 | 69 | 0.718625 |
28c2d197cfa970f70569a9b288f2a3209737860e | 1,408 | ex | Elixir | apps/demarest_mays/test/support/data_case.ex | bravely/demarest_mays | 9786efa1c589b23e7f8aeb7182cdc140c451fe92 | [
"MIT"
] | null | null | null | apps/demarest_mays/test/support/data_case.ex | bravely/demarest_mays | 9786efa1c589b23e7f8aeb7182cdc140c451fe92 | [
"MIT"
] | null | null | null | apps/demarest_mays/test/support/data_case.ex | bravely/demarest_mays | 9786efa1c589b23e7f8aeb7182cdc140c451fe92 | [
"MIT"
] | null | null | null | defmodule DemarestMays.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every... | 26.074074 | 77 | 0.685369 |
28c2d5c69cfa1df6984485069eebf269364caaeb | 1,147 | ex | Elixir | lib/ash/query/operator/not_eq.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | lib/ash/query/operator/not_eq.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | lib/ash/query/operator/not_eq.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | defmodule Ash.Query.Operator.NotEq do
@moduledoc """
left != right
In comparison, simplifies to `not(left == right)`
"""
use Ash.Query.Operator,
operator: :!=,
name: :not_eq,
predicate?: true,
types: [:any_same_or_ref]
alias Ash.Query.Not
alias Ash.Query.Operator.Eq
def new(%Ref{} = r... | 22.490196 | 67 | 0.595466 |
28c2eaf520130917625a3d293ae5659f04385321 | 8,420 | exs | Elixir | lib/elixir/test/elixir/integer_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/test/elixir/integer_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/test/elixir/integer_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule IntegerTest do
use ExUnit.Case, async: true
doctest Integer
require Integer
def test_is_odd_in_guards(number) when Integer.is_odd(number), do: number
def test_is_odd_in_guards(_number), do: false
def test_is_even_in_guards(number) when Integer.is_... | 32.384615 | 97 | 0.612233 |
28c2f6b3d633eafaf2d8fa7094814fa20401e53e | 304 | ex | Elixir | drpm/debian/drpm.service.ex | kakwa/debian-rpm-build-tools | 7107407c31a5f6f4178a7ce7d17d0bfb069e3f02 | [
"MIT"
] | 2 | 2019-12-30T17:23:46.000Z | 2020-01-02T08:47:39.000Z | drpm/debian/drpm.service.ex | kakwa/debian-rpm-build-tools | 7107407c31a5f6f4178a7ce7d17d0bfb069e3f02 | [
"MIT"
] | null | null | null | drpm/debian/drpm.service.ex | kakwa/debian-rpm-build-tools | 7107407c31a5f6f4178a7ce7d17d0bfb069e3f02 | [
"MIT"
] | null | null | null | [Unit]
Description=drpm
After=network.target
Wants=network.service
[Service]
EnvironmentFile=/etc/default/drpm
Type=forking
PIDFile=/var/run/drpm/drpm.pid
#User=drpm
#Group=drpm
ExecStart=/usr/bin/drpm $OPTIONS -p /var/run/drpm/drpm.pid
KillMode=process
Restart=no
[Install]
WantedBy=multi-user.target
| 16.888889 | 58 | 0.796053 |
28c2fa29c0a696411741e9a34ae1d0e5510ede24 | 2,318 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product_search_results_grouped_result.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product_search_results_grouped_result.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_product_search_results_grouped_result.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.21875 | 148 | 0.762295 |
28c31a63402aa59fa5db35f8981b0fddf38ce88c | 497 | ex | Elixir | lib/hexpm/ecto/version.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/ecto/version.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/ecto/version.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Version do
@behaviour Ecto.Type
def type(), do: :string
def cast(%Version{} = version), do: {:ok, version}
def cast(string) when is_binary(string), do: Version.parse(string)
def cast(_), do: :error
def load(string), do: Version.parse(string)
def dump(%Version{} = version), do: {:ok, to... | 26.157895 | 68 | 0.678068 |
28c3216e8df60787de6909f01357518d5bc4fa81 | 1,065 | exs | Elixir | lesson_08/demo/i18n/mix.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_08/demo/i18n/mix.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_08/demo/i18n/mix.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule I18n.MixProject do
use Mix.Project
def project do
[
app: :i18n,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
#... | 23.666667 | 57 | 0.57277 |
28c37e6cb12aff81b435a1953896f7d8b4eea0fa | 6,198 | ex | Elixir | lib/markex/element.ex | wmean-spec/markex | 38712ede3d568410082166a8434937860a2b50a2 | [
"MIT"
] | null | null | null | lib/markex/element.ex | wmean-spec/markex | 38712ede3d568410082166a8434937860a2b50a2 | [
"MIT"
] | null | null | null | lib/markex/element.ex | wmean-spec/markex | 38712ede3d568410082166a8434937860a2b50a2 | [
"MIT"
] | null | null | null | defmodule Markex.Element do
@moduledoc """
Creating and working with elements for 2D markup
"""
alias __MODULE__
@typedoc """
List of strings, where all string the same length
"""
@type t :: list(String.t())
@doc """
Creates new element using regular string or list of strings
In the latter cas... | 24.401575 | 92 | 0.57809 |
28c3a17a504e5c9b3c575a1d0d2a4555fae06467 | 930 | exs | Elixir | mix.exs | CharlesOkwuagwu/dbg | 76bbe5069fa7d6b566fe4c60d31b86e4544d03d5 | [
"Apache-2.0"
] | 142 | 2015-01-11T19:27:48.000Z | 2021-10-30T03:56:12.000Z | mix.exs | CharlesOkwuagwu/dbg | 76bbe5069fa7d6b566fe4c60d31b86e4544d03d5 | [
"Apache-2.0"
] | 9 | 2015-05-09T18:41:29.000Z | 2019-03-02T19:09:20.000Z | mix.exs | CharlesOkwuagwu/dbg | 76bbe5069fa7d6b566fe4c60d31b86e4544d03d5 | [
"Apache-2.0"
] | 13 | 2015-05-09T17:08:53.000Z | 2018-01-24T12:07:52.000Z | defmodule Dbg.Mixfile do
use Mix.Project
@version "1.0.1"
def project do
[app: :dbg,
version: @version,
elixir: "~> 1.0",
name: "Dbg",
hompage_url: "https://github.com/fishcakez/dbg",
description: description(),
package: package(),
docs: [
source_ref: "v#{@version}"... | 19.375 | 63 | 0.539785 |
28c3c7b50f8f2ed8ee85e6afe2df91c42c7b0c30 | 1,755 | ex | Elixir | clients/content/lib/google_api/content/v21/model/product_product_detail.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/product_product_detail.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/product_product_detail.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.113208 | 119 | 0.71453 |
28c3dc4da37ec5c7402ca23cc6685bb0813a0ca2 | 3,075 | exs | Elixir | test/live_sup/core/widgets/weather_test/worker_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/live_sup/core/widgets/weather_test/worker_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | test/live_sup/core/widgets/weather_test/worker_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSup.Test.Core.Widgets.Weather.WorkerTest do
use LiveSup.DataCase
import Mock
alias LiveSup.Core.Widgets.Weather.{Handler, Worker}
alias LiveSup.Schemas.WidgetInstance
alias LiveSup.Core.Widgets.{WidgetData, WidgetManager, WorkerTaskSupervisor}
describe "Chuck Norris Joke widget" do
@desc... | 30.147059 | 85 | 0.570081 |
28c3edca06173e7004f2cde010b6eb2f2901b21c | 773 | ex | Elixir | test/support/factories/account_opening_request_factory.ex | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | test/support/factories/account_opening_request_factory.ex | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | test/support/factories/account_opening_request_factory.ex | andsleonardo/magnemite | 2a06c1520defeb193d718313ad3fc6a50349bc8d | [
"MIT"
] | null | null | null | defmodule Magnemite.Factories.AccountOpeningRequestFactory do
@moduledoc false
alias Magnemite.Accounts
defmacro __using__(_opts) do
quote do
def pending_account_opening_request_factory do
account_opening_request_factory(status: :pending)
end
def complete_account_opening_request_f... | 24.935484 | 64 | 0.694696 |
28c40ff6d0c50b45b13ae0c2b1996179792761f7 | 2,731 | ex | Elixir | lib/yggdrasil/publisher.ex | valiot/yggdrasil | 7395591f4eba813f508c8cb25676b0d317fefaa0 | [
"MIT"
] | null | null | null | lib/yggdrasil/publisher.ex | valiot/yggdrasil | 7395591f4eba813f508c8cb25676b0d317fefaa0 | [
"MIT"
] | null | null | null | lib/yggdrasil/publisher.ex | valiot/yggdrasil | 7395591f4eba813f508c8cb25676b0d317fefaa0 | [
"MIT"
] | null | null | null | defmodule Yggdrasil.Publisher do
@moduledoc """
Publisher pool of processes.
"""
use Supervisor
require Logger
alias Yggdrasil.Channel
alias Yggdrasil.Config
alias Yggdrasil.Publisher.Adapter
############
# Client API
@doc """
Starts a pool of publisher adapters using the information of a `ch... | 26.259615 | 86 | 0.634932 |
28c41981360ff26ca06f8588211054619b3e91d3 | 1,582 | ex | Elixir | lib/documents/session/supervisor.ex | YgorCastor/ravix | ad3d191e2682b87d533a2d41899ed10e00b4dc55 | [
"Apache-2.0"
] | 9 | 2022-01-11T10:01:54.000Z | 2022-03-31T06:50:59.000Z | lib/documents/session/supervisor.ex | YgorCastor/ravix | ad3d191e2682b87d533a2d41899ed10e00b4dc55 | [
"Apache-2.0"
] | 2 | 2022-03-21T20:13:13.000Z | 2022-03-28T21:07:47.000Z | lib/documents/session/supervisor.ex | YgorCastor/ravix | ad3d191e2682b87d533a2d41899ed10e00b4dc55 | [
"Apache-2.0"
] | null | null | null | defmodule Ravix.Documents.Session.Supervisor do
@moduledoc """
Supervisor for RavenDB Sessions
"""
use DynamicSupervisor
alias Ravix.Documents.Session
alias Ravix.Documents.Session.State, as: SessionState
def init(init_arg) do
DynamicSupervisor.init(
strategy: :one_for_one,
extra_argumen... | 29.296296 | 98 | 0.692794 |
28c41cacca7b45712c4444df1862042748aa8c72 | 2,468 | exs | Elixir | apps/valkyrie/runtime.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 18 | 2020-11-13T15:38:24.000Z | 2021-05-26T00:40:08.000Z | apps/valkyrie/runtime.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 365 | 2020-09-21T12:31:40.000Z | 2021-09-25T14:54:21.000Z | apps/valkyrie/runtime.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 3 | 2020-10-06T16:17:49.000Z | 2021-09-03T17:11:41.000Z | use Mix.Config
kafka_brokers = System.get_env("KAFKA_BROKERS")
get_redix_args = fn (host, password) ->
[host: host, password: password]
|> Enum.filter(fn
{_, nil} -> false
{_, ""} -> false
_ -> true
end)
end
redix_args = get_redix_args.(System.get_env("REDIS_HOST"), System.get_env("REDIS_PASSWORD"))
... | 26.255319 | 92 | 0.657618 |
28c4394810926f5544cbf6cbb99c42a745427701 | 3,030 | ex | Elixir | lib/pact_elixir/dsl.ex | lincolnf/pact_elixir | 21e5f473e3c30173881e577ffda8df1e1419d47d | [
"MIT"
] | 27 | 2018-02-28T22:42:14.000Z | 2022-03-20T00:30:08.000Z | lib/pact_elixir/dsl.ex | lincolnf/pact_elixir | 21e5f473e3c30173881e577ffda8df1e1419d47d | [
"MIT"
] | 180 | 2017-12-04T09:42:53.000Z | 2022-03-28T09:33:23.000Z | lib/pact_elixir/dsl.ex | lincolnf/pact_elixir | 21e5f473e3c30173881e577ffda8df1e1419d47d | [
"MIT"
] | 8 | 2018-08-01T17:14:52.000Z | 2022-01-26T12:46:46.000Z | defmodule PactElixir.Dsl do
@moduledoc """
This module can be imported to create and start a mock server with the usual Pact DSL.
"""
alias PactElixir.{ServiceProvider, Interaction, Request, Response, PactMockServer, Errors}
def service_provider(options \\ %{}) do
ServiceProvider.new(options)
end
de... | 28.584906 | 100 | 0.730693 |
28c43df01aa47642c3fa12de1ce555ee697fdfc6 | 1,442 | exs | Elixir | config/host/dev.exs | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | config/host/dev.exs | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | null | null | null | config/host/dev.exs | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | use Mix.Config
unless File.exists?("config/host/auth_secret.exs") do
Mix.raise(
"You need to configure your dev environment. See `config/host/auth_secret_template.exs` for an example.\r\n"
)
end
import_config("auth_secret.exs")
config :farmbot, data_path: "tmp/"
# Configure your our system.
# Default implem... | 27.207547 | 112 | 0.763523 |
28c447d3679c9852ee08dcbf2204acf17fcbbad9 | 2,760 | exs | Elixir | config/config.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | config/config.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | config/config.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | use Mix.Config
[
{:admin, Legendary.Admin, false},
{:app, AppWeb, true},
{:core, Legendary.AuthWeb, false},
{:content, Legendary.Content, false},
{:core, Legendary.CoreWeb, false},
]
|> Enum.map(fn {otp_app, module, start_server} ->
endpoint = Module.concat(module, "Endpoint")
error_view = Module.concat(... | 26.796117 | 88 | 0.727536 |
28c45b1379b2f42e42a016b5ac1f812e893f936a | 45 | exs | Elixir | config/dev.exs | TigerWolf/sentinel | d8b9c948bb7b9cafe3868e3b66b3fa008994e39e | [
"MIT"
] | 561 | 2019-03-18T09:10:57.000Z | 2022-03-27T17:34:59.000Z | config/dev.exs | TigerWolf/sentinel | d8b9c948bb7b9cafe3868e3b66b3fa008994e39e | [
"MIT"
] | 94 | 2019-03-20T09:34:38.000Z | 2022-02-27T20:44:04.000Z | config/dev.exs | TigerWolf/sentinel | d8b9c948bb7b9cafe3868e3b66b3fa008994e39e | [
"MIT"
] | 112 | 2019-03-25T03:27:26.000Z | 2022-03-21T12:43:59.000Z | use Mix.Config
config :logger, level: :warn
| 11.25 | 28 | 0.733333 |
28c492ad85c0ca647819d27cbfcfa2395704e76e | 2,654 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1beta2/model/node.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/model/node.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/model/node.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.830769 | 185 | 0.694424 |
28c49de2f9a39ce37611fb961dc03d8ccb46cf35 | 53 | exs | Elixir | test/test_helper.exs | fcapovilla/heartcheck-elixir | b46bc0f8ab46edcf1b14a20de59529868de1ca32 | [
"MIT"
] | 31 | 2018-01-09T14:34:22.000Z | 2022-03-30T18:14:01.000Z | test/test_helper.exs | thiamsantos/health_check_plug | 504cfddce6df966eb9fb2075b83f36550e0d8521 | [
"Apache-2.0"
] | 7 | 2018-12-24T01:18:34.000Z | 2021-10-13T03:10:06.000Z | test/test_helper.exs | thiamsantos/health_check_plug | 504cfddce6df966eb9fb2075b83f36550e0d8521 | [
"Apache-2.0"
] | 6 | 2018-12-22T19:19:38.000Z | 2021-09-30T17:04:56.000Z | Application.ensure_all_started(:plug)
ExUnit.start()
| 17.666667 | 37 | 0.830189 |
28c4adbc5a302d11ceb853af0bd692dbd73683df | 6,117 | ex | Elixir | lib/readability.ex | asianfilm/readability | 87b6097ecac1480a75651498387bc4a874cfbff8 | [
"Apache-2.0"
] | null | null | null | lib/readability.ex | asianfilm/readability | 87b6097ecac1480a75651498387bc4a874cfbff8 | [
"Apache-2.0"
] | null | null | null | lib/readability.ex | asianfilm/readability | 87b6097ecac1480a75651498387bc4a874cfbff8 | [
"Apache-2.0"
] | null | null | null | defmodule Readability do
@moduledoc """
Readability library for extracting & curating articles.
## Example
```elixir
@type html :: binary
# Just pass url
%Readability.Summary{title: title, authors: authors, article_html: article} = Readability.summarize(url)
# Extract title
Readability.title(html)... | 26.828947 | 185 | 0.655223 |
28c4ecd521f2744a30816480caf5ed1204e10f37 | 164 | ex | Elixir | lib/hologram/compiler/parser.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/parser.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/parser.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.Parser do
use Hologram.Commons.Parser
@impl Hologram.Commons.Parser
def parse(code) do
Code.string_to_quoted(code)
end
end
| 18.222222 | 37 | 0.768293 |
28c5144d69225470926a490fbda95a0b2275e13f | 1,047 | exs | Elixir | mix.exs | princemaple/elixir-imap | d6bb8983c4287391ca88a8c52cd3e8d91ed1f635 | [
"MIT"
] | null | null | null | mix.exs | princemaple/elixir-imap | d6bb8983c4287391ca88a8c52cd3e8d91ed1f635 | [
"MIT"
] | null | null | null | mix.exs | princemaple/elixir-imap | d6bb8983c4287391ca88a8c52cd3e8d91ed1f635 | [
"MIT"
] | null | null | null | defmodule Imap.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[
app: :imap,
version: @version,
elixir: "~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
description: "A simple libra... | 20.94 | 72 | 0.554919 |
28c51b383900d93a2f5f1f7a0a498f23ecde1a6d | 18,934 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/api/channel_banners.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/channel_banners.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/api/channel_banners.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... | 60.492013 | 605 | 0.696578 |
28c549483ec393d1b560811c524be407048b9249 | 2,440 | ex | Elixir | lib/prepay_and_use_web/router.ex | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | lib/prepay_and_use_web/router.ex | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | lib/prepay_and_use_web/router.ex | manojsamanta/stripe-prepay-and-use | 511b33cd93d619052fe0f6ecbf4374474f6a96e6 | [
"MIT"
] | null | null | null | defmodule PrepayAndUseWeb.Router do
use PrepayAndUseWeb, :router
import PrepayAndUseWeb.UserAuth
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :fetch_current_user
end
pipeline :api ... | 31.282051 | 86 | 0.730738 |
28c552ac0fd4ea8f7ca8c649462af027d76e9412 | 3,514 | exs | Elixir | test/extras/keyword_x_test.exs | marick/ecto_test_dsl | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | 4 | 2021-02-09T17:26:34.000Z | 2021-08-08T01:42:52.000Z | test/extras/keyword_x_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | test/extras/keyword_x_test.exs | marick/transformer_test_support | 6d460af093367098b7c78db709753deb45904d77 | [
"Unlicense"
] | null | null | null | defmodule KeywordXTest do
use EctoTestDSL.Case
test "translate_keys" do
expect = TabularA.run_and_assert(&KeywordX.translate_keys/2)
# Filters out values not mentioned in the second argument.
[[a: 5], %{ }] |> expect.([ ])
[[a: 5], %{a: :a}] |> expect.([a: 5])
# Translations work
[... | 28.569106 | 80 | 0.558054 |
28c564a1076e51501731b472516b02acc086f61f | 2,944 | ex | Elixir | lib/core/exporter.ex | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | null | null | null | lib/core/exporter.ex | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | null | null | null | lib/core/exporter.ex | maartenvanvliet/prom_ex | 8eb4f86c169af3b184a1a45cf42e298af2b05816 | [
"MIT"
] | null | null | null | defmodule PromEx.TelemetryMetricsPrometheus.Core.Exporter do
@moduledoc false
alias Telemetry.Metrics.{Counter, Distribution, LastValue, Sum}
def export(time_series, definitions) do
definitions
|> Stream.map(fn %{name: name} = metric ->
case time_series[name] do
nil -> nil
ts -> for... | 25.824561 | 104 | 0.579823 |
28c5c20f92ccb48e0bab7b584dc9c7ec13b8a10c | 447 | ex | Elixir | apps/core/test/support/prm_factories/global_parameter_factory.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/test/support/prm_factories/global_parameter_factory.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/test/support/prm_factories/global_parameter_factory.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMFactories.GlobalParameterFactory do
@moduledoc false
defmacro __using__(_opts) do
quote do
alias Ecto.UUID
def global_parameter_factory do
%Core.GlobalParameters.GlobalParameter{
parameter: Base.url_encode64(:crypto.strong_rand_bytes(10)),
value: :rand... | 23.526316 | 70 | 0.655481 |
28c5cfe2c81c03be17ea93576bef66c8ca04230e | 588 | exs | Elixir | distributor/config/prod.exs | fknop/distributor | 1b1a4910ec0887b8c10c636e55f15921d67bfa86 | [
"MIT"
] | 1 | 2019-12-27T10:21:13.000Z | 2019-12-27T10:21:13.000Z | distributor/config/prod.exs | fknop/distributor | 1b1a4910ec0887b8c10c636e55f15921d67bfa86 | [
"MIT"
] | 209 | 2019-12-25T17:16:14.000Z | 2022-03-25T23:13:05.000Z | distributor/config/prod.exs | fknop/distributor | 1b1a4910ec0887b8c10c636e55f15921d67bfa86 | [
"MIT"
] | null | null | null | import Config
config :distributor, DistributorWeb.Endpoint,
url: [compress: true, port: 4000],
server: true
config :libcluster,
topologies: [
distributor:
if System.get_env("DISTRIBUTOR_KUBERNETES") do
[
strategy: Elixir.Cluster.Strategy.Kubernetes.DNS,
config: [
... | 21.777778 | 59 | 0.605442 |
28c5dfa6c3ce42df78991ebe6050c198ff6cba74 | 4,165 | exs | Elixir | apps/ewallet/test/ewallet/permissions/bouncer/targets/transaction_request_target_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/test/ewallet/permissions/bouncer/targets/transaction_request_target_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/test/ewallet/permissions/bouncer/targets/transaction_request_target_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.1875 | 104 | 0.715726 |
28c61455ce5f342ff14d466d3d69083468df8663 | 1,541 | ex | Elixir | lib/noven_web/views/error_helpers.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 8 | 2020-09-10T09:18:17.000Z | 2022-03-25T03:43:25.000Z | lib/noven_web/views/error_helpers.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | null | null | null | lib/noven_web/views/error_helpers.ex | ConnorRigby/noven | 2c34953490585b77b6c7ae8dd772da5028f6a948 | [
"Apache-2.0"
] | 4 | 2020-12-28T06:13:51.000Z | 2021-04-27T18:00:06.000Z | defmodule NovenWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:s... | 32.104167 | 74 | 0.663855 |
28c618320dbe2dc20d49095d45a89f9f1226ef46 | 1,867 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_disable_processor_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/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_disable_processor_metadata.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1_disable_processor_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... | 33.945455 | 183 | 0.76647 |
28c61aebb2acb7a6499c3ebe094f8ca4edad3547 | 334 | ex | Elixir | lib/hap/characteristics/carbon_monoxide_level.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 40 | 2019-10-26T01:58:42.000Z | 2022-03-09T18:18:39.000Z | lib/hap/characteristics/carbon_monoxide_level.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 11 | 2021-04-02T14:55:02.000Z | 2021-11-05T13:49:55.000Z | lib/hap/characteristics/carbon_monoxide_level.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 6 | 2020-05-18T09:34:14.000Z | 2021-11-04T11:14:15.000Z | defmodule HAP.Characteristics.CarbonMonoxideLevel do
@moduledoc """
Definition of the `public.hap.characteristic.carbon-monoxide.level` characteristic
"""
@behaviour HAP.CharacteristicDefinition
def type, do: "90"
def perms, do: ["pr", "ev"]
def format, do: "float"
def min_value, do: 0
def max_value... | 23.857143 | 84 | 0.718563 |
28c64047fe4086a97ffc730f01ee561dd0f8bd59 | 1,063 | ex | Elixir | test/support/channel_case.ex | inaka/phoenix_passwordless_login | 8cdd1b6c83e28f4a36fd13381141dc382e4b92f8 | [
"Apache-2.0"
] | 29 | 2016-07-27T21:39:06.000Z | 2020-01-16T10:34:05.000Z | test/support/channel_case.ex | inaka/phoenix_passwordless_login | 8cdd1b6c83e28f4a36fd13381141dc382e4b92f8 | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | inaka/phoenix_passwordless_login | 8cdd1b6c83e28f4a36fd13381141dc382e4b92f8 | [
"Apache-2.0"
] | 6 | 2016-07-28T18:44:25.000Z | 2019-11-09T12:43:40.000Z | defmodule PasswordlessLoginApp.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
i... | 24.159091 | 82 | 0.718721 |
28c66ac30779b0abd23217ed6e3c1bb448431db6 | 1,360 | exs | Elixir | test/queue_list_test.exs | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | test/queue_list_test.exs | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | test/queue_list_test.exs | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | defmodule Verk.QueueListTest do
use ExUnit.Case
alias Verk.QueueList
@queue_list_key "verk:queues"
setup do
{:ok, redis} = Confex.get_env(:verk, :redis_url) |> Redix.start_link()
Redix.command!(redis, ~w(DEL #{@queue_list_key}))
{:ok, redis: redis}
end
describe "add/3" do
test "add queu... | 30.222222 | 80 | 0.619118 |
28c6835e0b2d45a021796f7748d2faa6cc9e29e5 | 1,611 | ex | Elixir | lib/rest/rate_limiter/default/handler/supervisor.ex | jbosse/crux_rest | d99fff0d39efc4574504084b62fb57ef27d748bc | [
"MIT"
] | 6 | 2018-05-22T07:13:48.000Z | 2021-05-04T14:10:11.000Z | lib/rest/rate_limiter/default/handler/supervisor.ex | jbosse/crux_rest | d99fff0d39efc4574504084b62fb57ef27d748bc | [
"MIT"
] | 1 | 2021-05-05T17:02:36.000Z | 2021-05-05T21:10:54.000Z | lib/rest/rate_limiter/default/handler/supervisor.ex | jbosse/crux_rest | d99fff0d39efc4574504084b62fb57ef27d748bc | [
"MIT"
] | 1 | 2021-05-04T14:10:14.000Z | 2021-05-04T14:10:14.000Z | defmodule Crux.Rest.RateLimiter.Default.Handler.Supervisor do
@moduledoc false
@moduledoc since: "0.3.0"
alias Crux.Rest.Opts
alias Crux.Rest.RateLimiter.Default.Handler
use DynamicSupervisor
###
# Client API
###
@spec start_link(Crux.Rest.Opts.t()) :: Supervisor.on_start()
def start_link(%{name... | 21.48 | 94 | 0.625698 |
28c68443c29c92988439e70e5309bfc45d75b9e8 | 752 | ex | Elixir | lib/nats_ex.ex | iamd3vil/nats_ex | 601be15b75680876cb8b29859f5bf6aeeb8dc1e9 | [
"MIT"
] | 10 | 2016-07-27T03:50:47.000Z | 2021-06-15T07:53:56.000Z | lib/nats_ex.ex | iamd3vil/nats_ex | 601be15b75680876cb8b29859f5bf6aeeb8dc1e9 | [
"MIT"
] | 4 | 2018-07-10T05:37:04.000Z | 2021-12-01T18:22:43.000Z | lib/nats_ex.ex | iamd3vil/nats_ex | 601be15b75680876cb8b29859f5bf6aeeb8dc1e9 | [
"MIT"
] | 4 | 2016-07-26T11:21:40.000Z | 2021-11-26T13:44:59.000Z | defmodule NatsEx do
@moduledoc """
NatsEx application
"""
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@impl Application
def start(_type, _args) do
# Initialize syn
# :syn.init()
# Initialize sid counter ets tab... | 25.066667 | 87 | 0.679521 |
28c6b6d01e2d90ec5e2cdb46b71db95d651d12c4 | 898 | ex | Elixir | clients/alert_center/lib/google_api/alert_center/v1beta1/metadata.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/alert_center/lib/google_api/alert_center/v1beta1/metadata.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/alert_center/lib/google_api/alert_center/v1beta1/metadata.ex | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.259259 | 74 | 0.762806 |
28c70cd4a015d99d1db6644a42b968cda09f9d28 | 931 | ex | Elixir | debian/postrm.ex | rzr/pfs | d0381a0366d0b42f58ea0e9cc54d02c73211be5f | [
"BSD-2-Clause"
] | 17 | 2016-02-19T14:47:33.000Z | 2022-02-18T01:12:59.000Z | debian/postrm.ex | rzr/pfs | d0381a0366d0b42f58ea0e9cc54d02c73211be5f | [
"BSD-2-Clause"
] | 2 | 2015-02-20T23:06:39.000Z | 2017-10-03T11:33:04.000Z | debian/postrm.ex | rzr/pfs | d0381a0366d0b42f58ea0e9cc54d02c73211be5f | [
"BSD-2-Clause"
] | 5 | 2015-10-13T20:20:39.000Z | 2019-10-24T06:12:13.000Z | #!/bin/sh
# postrm script for pcloudfs
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# ... | 24.5 | 78 | 0.628357 |
28c72bbeb34c2fc93156bbc13ed721255ee0a5f0 | 7,207 | exs | Elixir | test/Integration/sql/transaction.exs | szTheory/tds_ecto | 219b712677568febe947e3c5e31437910983aa5a | [
"Apache-2.0"
] | 64 | 2015-06-03T09:48:13.000Z | 2020-04-25T08:39:49.000Z | test/Integration/sql/transaction.exs | szTheory/tds_ecto | 219b712677568febe947e3c5e31437910983aa5a | [
"Apache-2.0"
] | 70 | 2015-02-13T14:00:13.000Z | 2021-09-15T10:40:01.000Z | test/Integration/sql/transaction.exs | szTheory/tds_ecto | 219b712677568febe947e3c5e31437910983aa5a | [
"Apache-2.0"
] | 50 | 2015-02-13T13:55:47.000Z | 2020-03-03T15:34:13.000Z | defmodule Ecto.Integration.TransactionTest do
# We can keep this test async as long as it
# is the only one access the transactions table
use Ecto.Integration.Case, async: true
import Ecto.Query
alias Ecto.Integration.PoolRepo # Used for writes
alias Ecto.Integration.TestRepo # Used for reads
@moduletag... | 26.692593 | 78 | 0.627168 |
28c7483f3209e2fb222644cd554c5d3c2c7e1eb8 | 11,563 | ex | Elixir | lib/changeset_merger.ex | aforward/changeset_merger | 0ed448cc07e5f232d221d4cdd1c212e463617d65 | [
"MIT"
] | 1 | 2017-06-22T16:22:06.000Z | 2017-06-22T16:22:06.000Z | lib/changeset_merger.ex | aforward/changeset_merger | 0ed448cc07e5f232d221d4cdd1c212e463617d65 | [
"MIT"
] | null | null | null | lib/changeset_merger.ex | aforward/changeset_merger | 0ed448cc07e5f232d221d4cdd1c212e463617d65 | [
"MIT"
] | 1 | 2017-04-06T20:56:33.000Z | 2017-04-06T20:56:33.000Z | defmodule ChangesetMerger do
@moduledoc """
A library to help you manipulate changes in your changeset
with relative ease
"""
import Ecto.Changeset, only: [put_change: 3, get_field: 3]
@doc """
Check for the `field` in the provided changeset, and if
not found then set it ot the it based on the provide... | 37.060897 | 191 | 0.618957 |
28c76a9d2bbf440fca9bd3e36497a4a2c528757d | 1,299 | exs | Elixir | config/releases.exs | idkjs/zero-to-graphql-using-phoenix | 5e7f99af40030d57a603d9457e4906324fdfa4ea | [
"MIT"
] | 9 | 2019-03-26T22:16:08.000Z | 2021-09-27T12:42:34.000Z | config/releases.exs | idkjs/zero-to-graphql-using-phoenix | 5e7f99af40030d57a603d9457e4906324fdfa4ea | [
"MIT"
] | 3 | 2020-06-08T23:03:49.000Z | 2020-06-09T03:11:12.000Z | config/releases.exs | idkjs/zero-to-graphql-using-phoenix | 5e7f99af40030d57a603d9457e4906324fdfa4ea | [
"MIT"
] | 7 | 2019-01-15T17:00:07.000Z | 2021-07-18T23:30:29.000Z | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
# Reference:
# https://hexdocs.pm/phoenix/releases.html#runtime-configuration
import ... | 30.209302 | 76 | 0.735951 |
28c778e25db177ed8d754666c771449adc73e46d | 724 | ex | Elixir | lib/nano_planner_web/gettext.ex | ysaito8015/nano_planner | 1819b4091e490a6478d6ca91adb39c6e54930e94 | [
"MIT"
] | 4 | 2019-04-21T05:46:19.000Z | 2021-09-13T01:56:33.000Z | lib/nano_planner_web/gettext.ex | ysaito8015/nano_planner | 1819b4091e490a6478d6ca91adb39c6e54930e94 | [
"MIT"
] | 1 | 2020-09-24T00:13:40.000Z | 2020-09-24T00:13:40.000Z | lib/nano_planner_web/gettext.ex | ysaito8015/nano_planner | 1819b4091e490a6478d6ca91adb39c6e54930e94 | [
"MIT"
] | 3 | 2019-10-26T01:41:53.000Z | 2020-09-21T01:13:02.000Z | defmodule NanoPlannerWeb.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 NanoPlannerWeb.Gettext
# Simple translation
gettext("H... | 28.96 | 72 | 0.683702 |
28c7dcc7f5d0992bb24b96266bcde1b4aea88dcb | 1,203 | ex | Elixir | debian/watch.ex | mingw-deb/libjpeg-turbo | 35ef423a54ff1cf3a2e722153791ca7386eeeb54 | [
"Zlib"
] | null | null | null | debian/watch.ex | mingw-deb/libjpeg-turbo | 35ef423a54ff1cf3a2e722153791ca7386eeeb54 | [
"Zlib"
] | null | null | null | debian/watch.ex | mingw-deb/libjpeg-turbo | 35ef423a54ff1cf3a2e722153791ca7386eeeb54 | [
"Zlib"
] | null | null | null | # Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 4 file
version=4
# PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig
#opts="pgpsigurlmangle=s%$%.s... | 30.846154 | 102 | 0.674979 |
28c83610b9885b300cac987a34dda1254579de20 | 19,600 | ex | Elixir | archive/lib/vessel_tiny.ex | zackehh/vessel | 401b5139d4680c6065f4024214718019068bf74e | [
"MIT"
] | 14 | 2016-12-06T03:55:52.000Z | 2017-05-23T12:07:07.000Z | archive/lib/vessel_tiny.ex | whitfin/vessel | 401b5139d4680c6065f4024214718019068bf74e | [
"MIT"
] | 3 | 2016-11-28T20:58:05.000Z | 2017-05-31T23:51:52.000Z | archive/lib/vessel_tiny.ex | zackehh/vessel | 401b5139d4680c6065f4024214718019068bf74e | [
"MIT"
] | 1 | 2020-03-03T21:07:44.000Z | 2020-03-03T21:07:44.000Z | defmodule Vessel.Tiny do
@moduledoc """
This module contains the entirely of the Tiny project. There are interface
functions for encoding and decoding JSON, and little else.
Both encoding and decoding are done per the JSON specification with direct
mapping between JSON types and Elixir types:
-----------... | 51.041667 | 87 | 0.680816 |
28c8434335d2db9dbe60bab41429de3ceda016e8 | 1,902 | exs | Elixir | MixProject/help/config/dev.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | MixProject/help/config/dev.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | MixProject/help/config/dev.exs | Dmdv/ElixirPlayground | 02d9e8a7fdd6e8742e200430debc9f0ec7fd28a1 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :help, HelpWeb.Endpoint,
http: [port: 4000],
... | 32.237288 | 170 | 0.698738 |
28c867dc7a7418384fd6e5a507fa67b713b5c6d2 | 210 | ex | Elixir | lib/phone/sm.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/sm.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/sm.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.SM do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(378)(0549)(.{6})/
def country, do: "San Marino"
def a2, do: "SM"
def a3, do: "SMR"
matcher :regex, ["3780549"]
end
| 16.153846 | 39 | 0.614286 |
28c86f15af3dbd00acff00676fd7d20eec17dd92 | 2,341 | exs | Elixir | apps/feedex_ui/mix.exs | andyl/feedex | 3310c234cb4d7c96693e2353d421a9b53ce350f4 | [
"MIT"
] | null | null | null | apps/feedex_ui/mix.exs | andyl/feedex | 3310c234cb4d7c96693e2353d421a9b53ce350f4 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_ui/mix.exs | andyl/feedex | 3310c234cb4d7c96693e2353d421a9b53ce350f4 | [
"MIT"
] | null | null | null | defmodule FeedexUi.MixProject do
use Mix.Project
def project do
[
app: :feedex_ui,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.11",
elixirc_paths: elixirc... | 30.802632 | 110 | 0.581803 |
28c871338e58b14bbaba5358050777ebc2016277 | 862 | ex | Elixir | lib/ex_stone_openbank/api/models/barcode_payment/details.ex | duzzifelipe/ex-stone-openbank | 5a0faa547c3aa3d7f3842739e50cca6b14337124 | [
"Apache-2.0"
] | null | null | null | lib/ex_stone_openbank/api/models/barcode_payment/details.ex | duzzifelipe/ex-stone-openbank | 5a0faa547c3aa3d7f3842739e50cca6b14337124 | [
"Apache-2.0"
] | null | null | null | lib/ex_stone_openbank/api/models/barcode_payment/details.ex | duzzifelipe/ex-stone-openbank | 5a0faa547c3aa3d7f3842739e50cca6b14337124 | [
"Apache-2.0"
] | null | null | null | defmodule ExStoneOpenbank.API.Model.BarcodePayment.Details do
@moduledoc """
Details about the barcode payment
"""
use ExStoneOpenbank.Model
@fields [
:barcode,
:status,
:writable_line
]
@optional [
:value,
:bank_name,
:expiration_date,
:face_value,
:favored,
:recipie... | 20.046512 | 61 | 0.662413 |
28c872ecc69dec8b36c95f7bfb40517c897c4c1f | 1,037 | exs | Elixir | priv/repo/migrations/20211105134952_add_checkout_sessions.exs | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211105134952_add_checkout_sessions.exs | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | priv/repo/migrations/20211105134952_add_checkout_sessions.exs | chriscuris/glimesh.tv | e1a78aa763ea5599d045fdfa65237b94fbb28a23 | [
"MIT"
] | null | null | null | defmodule Glimesh.Repo.Migrations.AddCheckoutSessions do
use Ecto.Migration
def change do
create table(:payables) do
add :type, :string
add :user_id, references(:users)
add :streamer_id, references(:users)
# Generic fields to allow for any payable configuration
add :external_sou... | 27.289474 | 75 | 0.672131 |
28c8eaa34af4de9aea7b11d39a53371921b19474 | 1,450 | exs | Elixir | mix.exs | joshrotenberg/lingua_ex | ed928cdcc0a12c70c9c060f9de080d62ef08f061 | [
"Apache-2.0"
] | 6 | 2021-01-23T16:12:00.000Z | 2021-04-29T20:23:43.000Z | mix.exs | joshrotenberg/lingua_ex | ed928cdcc0a12c70c9c060f9de080d62ef08f061 | [
"Apache-2.0"
] | 7 | 2021-01-23T17:00:59.000Z | 2021-06-11T04:56:52.000Z | mix.exs | joshrotenberg/lingua_ex | ed928cdcc0a12c70c9c060f9de080d62ef08f061 | [
"Apache-2.0"
] | 1 | 2021-02-18T17:34:20.000Z | 2021-02-18T17:34:20.000Z | defmodule Lingua.MixProject do
use Mix.Project
def project do
[
app: :lingua,
version: "0.1.3",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
description: description(),
test_coverage: [tool: ExCoveralls],
package: package(),
compilers: [:rustler] ++ Mi... | 21.323529 | 74 | 0.553103 |
28c9046e42d5c6e53fda1750bb1728d573be9d6d | 173 | exs | Elixir | test/tasks/dynamo/migrate_test.exs | tashirosota/dynamo_db_migrator | 5f517df225fb64c60880491856e528af021cbafe | [
"Apache-2.0"
] | 7 | 2022-02-03T15:21:42.000Z | 2022-03-28T02:50:49.000Z | test/tasks/dynamo/migrate_test.exs | tashirosota/dynamo_db_migrator | 5f517df225fb64c60880491856e528af021cbafe | [
"Apache-2.0"
] | 1 | 2022-03-16T00:38:40.000Z | 2022-03-25T13:12:22.000Z | test/tasks/dynamo/migrate_test.exs | tashirosota/dynamo_db_migrator | 5f517df225fb64c60880491856e528af021cbafe | [
"Apache-2.0"
] | 1 | 2022-03-28T02:50:52.000Z | 2022-03-28T02:50:52.000Z | defmodule Mix.Tasks.Dynamo.MigrateTest do
use ExUnit.Case
doctest Mix.Tasks.Dynamo.Migrate
test "run" do
assert Mix.Tasks.Dynamo.Migrate.run([]) == :ok
end
end
| 19.222222 | 50 | 0.716763 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.