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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74162050daecaf923cdb014c104616fe41dc7840 | 169 | exs | Elixir | config/config.exs | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 1 | 2021-03-14T17:50:24.000Z | 2021-03-14T17:50:24.000Z | config/config.exs | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | config/config.exs | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.000Z | use Mix.Config
# Disable colors during tests.
config :logger, :console, colors: [enabled: false]
# Use higher stacktrace depth.
config :phoenix, :stacktrace_depth, 20
| 21.125 | 50 | 0.757396 |
74162746909aa69e83e6385286f0808bb42b19f7 | 2,231 | exs | Elixir | config/prod.exs | codingmelee/punting_server | 81c5423b556951beb7412bea5b3610b9e37ba9aa | [
"Apache-2.0"
] | null | null | null | config/prod.exs | codingmelee/punting_server | 81c5423b556951beb7412bea5b3610b9e37ba9aa | [
"Apache-2.0"
] | null | null | null | config/prod.exs | codingmelee/punting_server | 81c5423b556951beb7412bea5b3610b9e37ba9aa | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# PuntingServerWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
... | 34.323077 | 69 | 0.728821 |
741638227eba722e693dc36ac9e27e3e1e8cede7 | 1,061 | exs | Elixir | mix.exs | sevgit/boom | 80be1830f69c71cab0f0b12e8dd3faad8a64d859 | [
"MIT"
] | null | null | null | mix.exs | sevgit/boom | 80be1830f69c71cab0f0b12e8dd3faad8a64d859 | [
"MIT"
] | null | null | null | mix.exs | sevgit/boom | 80be1830f69c71cab0f0b12e8dd3faad8a64d859 | [
"MIT"
] | null | null | null | defmodule Boom.MixProject do
use Mix.Project
def project do
[
app: :boom,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_add_apps: [:eex]],
aliases: [
quality:... | 24.113636 | 59 | 0.523091 |
741643c501ea93772157878b64ef0bc8a5df03cf | 505 | ex | Elixir | golf_phoenix/lib/golf_phoenix_web/router.ex | RobertDober/golftour | 1a1187ef46be99532b41a08801c10541a9a84ab1 | [
"Apache-2.0"
] | null | null | null | golf_phoenix/lib/golf_phoenix_web/router.ex | RobertDober/golftour | 1a1187ef46be99532b41a08801c10541a9a84ab1 | [
"Apache-2.0"
] | null | null | null | golf_phoenix/lib/golf_phoenix_web/router.ex | RobertDober/golftour | 1a1187ef46be99532b41a08801c10541a9a84ab1 | [
"Apache-2.0"
] | null | null | null | defmodule GolfPhoenixWeb.Router do
use GolfPhoenixWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", GolfPhoenixWeb ... | 18.703704 | 39 | 0.683168 |
741656f6bac41e6431ad3e1573441414ec4b0b46 | 135 | ex | Elixir | lib/farmbot/farmware/installer/repository/entry.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/farmware/installer/repository/entry.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/farmware/installer/repository/entry.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.Farmware.Installer.Repository.Entry do
@moduledoc "An entry in the Repository."
defstruct [:name, :manifest]
end
| 27 | 56 | 0.777778 |
741678e6d1c2b67835369f3b53c3d5c5112b552d | 983 | ex | Elixir | lib/csv_uploader/data_uploader/outbound_item_request.ex | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | lib/csv_uploader/data_uploader/outbound_item_request.ex | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | lib/csv_uploader/data_uploader/outbound_item_request.ex | jolyus/csv-uploader | ca29234a4b1bf1ab3f0760099b1bcd4f9aa8c354 | [
"MIT"
] | null | null | null | defmodule CsvUploader.DataUploader.OutboundItemRequest do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:item_key, :string, autogenerate: false}
schema "outbound_item_requests" do
field :batch_request_code, :string
field :created_by, :string
field :created_date, :utc_datetime
field :item... | 30.71875 | 207 | 0.720244 |
7416a87a4d1909aff693af118cc34c10aaf5cbd2 | 146 | ex | Elixir | mindcrunch/phoenix/lib/mindcrunch_web/controllers/page_controller.ex | dtangster/mindcrunch | 58596d2cd7bdb69c52b12f34fddaedba77f395d9 | [
"Apache-2.0"
] | null | null | null | mindcrunch/phoenix/lib/mindcrunch_web/controllers/page_controller.ex | dtangster/mindcrunch | 58596d2cd7bdb69c52b12f34fddaedba77f395d9 | [
"Apache-2.0"
] | null | null | null | mindcrunch/phoenix/lib/mindcrunch_web/controllers/page_controller.ex | dtangster/mindcrunch | 58596d2cd7bdb69c52b12f34fddaedba77f395d9 | [
"Apache-2.0"
] | null | null | null | defmodule MindcrunchWeb.PageController do
use MindcrunchWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.25 | 41 | 0.753425 |
7416b42106aed31298035d481eb8d0ddb82c829c | 2,819 | ex | Elixir | lib/exq/middleware/pipeline.ex | buob/exq | 921fe26c7f3db7d77ff67e3a03ea9b83612f5598 | [
"Apache-2.0"
] | null | null | null | lib/exq/middleware/pipeline.ex | buob/exq | 921fe26c7f3db7d77ff67e3a03ea9b83612f5598 | [
"Apache-2.0"
] | null | null | null | lib/exq/middleware/pipeline.ex | buob/exq | 921fe26c7f3db7d77ff67e3a03ea9b83612f5598 | [
"Apache-2.0"
] | 3 | 2021-04-07T14:50:17.000Z | 2021-04-07T14:50:30.000Z | defmodule Exq.Middleware.Pipeline do
@moduledoc """
Pipeline is a structure that is used as an argument in functions of module with
`Exq.Middleware.Behaviour` behaviour. This structure must be returned by particular function
to be used in the next middleware based on defined middleware chain.
Pipeline contai... | 34.378049 | 108 | 0.681802 |
7416f9602fb42c0a8e385368b49b74e0692755bf | 30,933 | exs | Elixir | test/paper_trail/bang_functions_simple_mode_test.exs | harmon25/paper_trail | a023f7771591b44132335a96409edd7da0df4e60 | [
"MIT"
] | null | null | null | test/paper_trail/bang_functions_simple_mode_test.exs | harmon25/paper_trail | a023f7771591b44132335a96409edd7da0df4e60 | [
"MIT"
] | null | null | null | test/paper_trail/bang_functions_simple_mode_test.exs | harmon25/paper_trail | a023f7771591b44132335a96409edd7da0df4e60 | [
"MIT"
] | 3 | 2021-04-07T14:54:04.000Z | 2021-04-07T14:54:16.000Z | defmodule PaperTrailTest.SimpleModeBangFunctions do
use ExUnit.Case
import Ecto.Query
alias PaperTrail.Version
alias SimpleCompany, as: Company
alias SimplePerson, as: Person
alias PaperTrailTest.MultiTenantHelper, as: MultiTenant
@repo PaperTrail.RepoClient.repo()
@create_company_params %{name: "Acm... | 30.6875 | 107 | 0.591634 |
741707af39c41b32b94b5115ff576ccf24cb2aa2 | 21,295 | ex | Elixir | lib/aws/generated/wisdom.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/wisdom.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/wisdom.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Wisdom do
@moduledoc """
Amazon Connect Wisdom delivers agents the information they need to solve
customer issues as they're actively speaking with customers.
Agents can search across con... | 23.349781 | 207 | 0.622306 |
7417296a0016163bc0fdd6117ac1a4ea34221a35 | 24,220 | ex | Elixir | lib/elixir/lib/kernel/typespec.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/typespec.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/typespec.ex | knewter/elixir | 8310d62499e292d78d5c9d79d5d15a64e32fb738 | [
"Apache-2.0"
] | null | null | null | defmodule Kernel.Typespec do
@moduledoc """
Provides macros and functions for working with typespecs.
The attributes `@type`, `@opaque`, `@typep`, `@spec` and
`@callback` available in modules are handled by the equivalent
macros defined by this module.
## Defining a type
@type type_name :: type
... | 30.892857 | 132 | 0.627002 |
74173124569f5f9610b840c2e3d8629cc9fc4f6c | 592 | ex | Elixir | lib/arkenston_web/router.ex | dolfinus/omicron-backend | dd3544a421ce8b05447fe72640f73f180549270f | [
"MIT"
] | 1 | 2019-04-29T18:07:08.000Z | 2019-04-29T18:07:08.000Z | lib/arkenston_web/router.ex | dolfinus/omicron-backend | dd3544a421ce8b05447fe72640f73f180549270f | [
"MIT"
] | 126 | 2020-12-03T15:39:31.000Z | 2022-03-30T22:02:23.000Z | lib/arkenston_web/router.ex | dolfinus/arkenston-backend | 258880936dce673eb15db0c4b52e68d3d40c58ff | [
"MIT"
] | null | null | null | defmodule ArkenstonWeb.Router do
use ArkenstonWeb, :router
pipeline :graphql do
plug Arkenston.Context
end
scope "/api" do
pipe_through :graphql
forward "/graphql", Absinthe.Plug,
schema: ArkenstonWeb.Schema,
analyze_complexity: true,
max_complexity:
Application.compile_... | 25.73913 | 89 | 0.716216 |
7417536d11974be239291ae0bcbb3a21f8f6a10b | 1,168 | exs | Elixir | test/sequence_test.exs | kianmeng/ex_aliyun_ots | 554da4a80b7d59640f1b8aed75c2ff81678f0c4d | [
"MIT"
] | null | null | null | test/sequence_test.exs | kianmeng/ex_aliyun_ots | 554da4a80b7d59640f1b8aed75c2ff81678f0c4d | [
"MIT"
] | null | null | null | test/sequence_test.exs | kianmeng/ex_aliyun_ots | 554da4a80b7d59640f1b8aed75c2ff81678f0c4d | [
"MIT"
] | null | null | null | defmodule ExAliyunOtsTest.Sequence do
use ExUnit.Case
require Logger
@instance_key EDCEXTestInstance
alias ExAliyunOts.Var
alias ExAliyunOts.Sequence
@sequence_name "test_sequence"
setup_all do
var_new = %Var.NewSequence{
name: @sequence_name
}
result = Sequence.create(@instance_key... | 23.36 | 82 | 0.648973 |
741784786b7670dd2470b8df11b92084d54b90bc | 69 | exs | Elixir | test/test_helper.exs | Bwuak/webchat | b6668be508481a1ff480303affaebdaf28604f41 | [
"MIT"
] | null | null | null | test/test_helper.exs | Bwuak/webchat | b6668be508481a1ff480303affaebdaf28604f41 | [
"MIT"
] | 1 | 2020-08-04T19:50:09.000Z | 2020-08-04T19:50:09.000Z | test/test_helper.exs | Bwuak/webchat | b6668be508481a1ff480303affaebdaf28604f41 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Webchat.Repo, :manual)
| 23 | 53 | 0.782609 |
7417ae99ea6deb3235b7c91daf7e5c301d971def | 1,053 | ex | Elixir | elixir/elixir-elm-playground/test/support/conn_case.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/elixir-elm-playground/test/support/conn_case.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/elixir-elm-playground/test/support/conn_case.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule PlaygroundWeb.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 common datastructures and query the data layer.
Finally, if ... | 27 | 72 | 0.723647 |
7417b633fc02e3fc6dd24162a37b4dccad3bb66e | 1,382 | ex | Elixir | lib/eviction_operator/controllers/v1/eviction_policy.ex | bonny-k8s/eviction_operator | 8f7050db6c0e3211cacf6affecca5fae67f18719 | [
"MIT"
] | 2 | 2019-09-30T08:50:53.000Z | 2019-10-07T14:27:00.000Z | lib/eviction_operator/controllers/v1/eviction_policy.ex | bonny-k8s/eviction_operator | 8f7050db6c0e3211cacf6affecca5fae67f18719 | [
"MIT"
] | 1 | 2019-10-07T00:39:28.000Z | 2019-10-07T00:39:28.000Z | lib/eviction_operator/controllers/v1/eviction_policy.ex | bonny-k8s/eviction_operator | 8f7050db6c0e3211cacf6affecca5fae67f18719 | [
"MIT"
] | null | null | null | defmodule EvictionOperator.Controller.V1.EvictionPolicy do
@moduledoc "EvictionOperator: EvictionPolicy CRD."
use Bonny.Controller
@group "eviction-operator.bonny.run"
@version "v1"
@scope :cluster
@names %{
plural: "evictionpolicies",
singular: "evictionpolicy",
kind: "EvictionPolicy",
sho... | 26.576923 | 83 | 0.657742 |
7417c59c4be03710251b85cc5dfbaa42f9bfd2dc | 2,914 | exs | Elixir | implementations/elixir/test/ockam/worker_test.exs | hollyfeld/ockam | 10a618b60b5b913821bfa8df3ad9693a70913ace | [
"Apache-2.0"
] | 1 | 2021-01-02T11:42:16.000Z | 2021-01-02T11:42:16.000Z | implementations/elixir/test/ockam/worker_test.exs | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | implementations/elixir/test/ockam/worker_test.exs | ercanersoy/ockam | b537a4951770d223f5493bcff5358d0677865a0f | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Worker.Tests do
use ExUnit.Case, async: true
doctest Ockam.Worker
defmodule CapturedFuncion do
def send(message), do: Kernel.send(:ockam_worker_handler_captured_function_test, message)
end
describe "Ockam.Worker.create/1" do
test "handler can be an anonumous function" do
caller... | 28.019231 | 94 | 0.636925 |
7417dab1eab2734539e638b9d3901e15be442b69 | 7,816 | exs | Elixir | test/schema_test.exs | curiosum-dev/waffle_ecto | 4c7c135fbf27060f340a28a8cd28b5b49fe049ff | [
"Apache-2.0"
] | null | null | null | test/schema_test.exs | curiosum-dev/waffle_ecto | 4c7c135fbf27060f340a28a8cd28b5b49fe049ff | [
"Apache-2.0"
] | null | null | null | test/schema_test.exs | curiosum-dev/waffle_ecto | 4c7c135fbf27060f340a28a8cd28b5b49fe049ff | [
"Apache-2.0"
] | null | null | null | defmodule WaffleTest.Ecto.Schema do
use ExUnit.Case, async: false
import Mock
import ExUnit.CaptureLog
defmodule TestUser do
use Ecto.Schema
import Ecto.Changeset
use Waffle.Ecto.Schema
schema "users" do
field(:first_name, :string)
field(:avatar, DummyDefinition.Type)
end
... | 34.431718 | 96 | 0.609647 |
7417eb086c389cd71a2a1c0afd25b9e7c6eea6d4 | 10 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/CharToken.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/CharToken.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_when_operation_parsing_test_case/CharToken.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | ?1 when ?2 | 10 | 10 | 0.6 |
74180abec0ef58a4ed4baab7ae851cf09128af7e | 347 | ex | Elixir | lib/mail/templates.ex | zhangsoledad/Doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | 6 | 2016-03-17T08:45:34.000Z | 2016-10-10T01:20:37.000Z | lib/mail/templates.ex | zhangsoledad/doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | null | null | null | lib/mail/templates.ex | zhangsoledad/doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | 2 | 2016-04-01T06:28:56.000Z | 2016-04-28T09:35:07.000Z | defmodule Doom.Mailer.Templates do
require EEx
EEx.function_from_file :def, :alert_html, "web/templates/mail/alert.html.eex", [:alert, :task]
EEx.function_from_file :def, :confirm_html, "web/templates/mail/confirm.html.eex", [:confirm_link]
EEx.function_from_file :def, :reset_html, "web/templates/mail/reset.ht... | 43.375 | 100 | 0.760807 |
741832408d2572ab0e06746004a339c6ee80abc8 | 699 | ex | Elixir | web/gettext.ex | awseward/rundot | 2182215f8aa22aab6c1ea21ed0705524c1ebdc44 | [
"MIT"
] | null | null | null | web/gettext.ex | awseward/rundot | 2182215f8aa22aab6c1ea21ed0705524c1ebdc44 | [
"MIT"
] | null | null | null | web/gettext.ex | awseward/rundot | 2182215f8aa22aab6c1ea21ed0705524c1ebdc44 | [
"MIT"
] | null | null | null | defmodule Rundot.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 Rundot.Gettext
# Simple translation
gettext "Here is the strin... | 27.96 | 72 | 0.676681 |
7418369ef4e46c2d1a0d56789a1218bed2e313c0 | 6,157 | ex | Elixir | lib/game/format/items.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | 1 | 2019-02-10T10:22:39.000Z | 2019-02-10T10:22:39.000Z | lib/game/format/items.ex | lorecrafting/ex_venture | 5de6a2eac19d8c6069868d34318f07ee714f9c98 | [
"MIT"
] | null | null | null | lib/game/format/items.ex | lorecrafting/ex_venture | 5de6a2eac19d8c6069868d34318f07ee714f9c98 | [
"MIT"
] | null | null | null | defmodule Game.Format.Items do
@moduledoc """
Format functions for items
"""
use Game.Currency
import Game.Format.Context
alias Data.Item
alias Game.Format
@doc """
Format an items name, cyan
iex> Items.item_name(%{name: "Potion"})
"{item}Potion{/item}"
"""
@spec item_name(Item.t()) :... | 26.538793 | 185 | 0.594933 |
741841066a068c91f11a38e52c0938eae5a46e33 | 696 | ex | Elixir | lib/verk/queue_list.ex | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | lib/verk/queue_list.ex | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | lib/verk/queue_list.ex | Psli/verk | a538ceed1217d7aee89e92cf7740a96543ecc94c | [
"MIT"
] | null | null | null | defmodule Verk.QueueList do
@moduledoc """
QueueList maintains a list of running queues
"""
@queue_list_key "verk:queues"
@spec all(binary, GenServer.server()) :: {:ok, [binary]} | {:error, term}
def all(prefix \\ "", redis \\ Verk.Redis) do
case Redix.command(redis, ["SMEMBERS", @queue_list_key]) do
... | 27.84 | 82 | 0.617816 |
74184d000503f031d85fb2b888311feef32f449b | 960 | ex | Elixir | roles/kerberos-server/templates/krb5.conf.ex | hxwabc/ansible-middleware | edf64ea59b1494b87537bc28ab63c872bb201635 | [
"MIT"
] | 17 | 2020-03-08T13:26:55.000Z | 2022-01-15T01:30:57.000Z | roles/kerberos-server/templates/krb5.conf.ex | hxwabc/ansible-middleware | edf64ea59b1494b87537bc28ab63c872bb201635 | [
"MIT"
] | null | null | null | roles/kerberos-server/templates/krb5.conf.ex | hxwabc/ansible-middleware | edf64ea59b1494b87537bc28ab63c872bb201635 | [
"MIT"
] | null | null | null | [logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
renewable = true
rdns = false
pkinit_anchors = /etc/pki/tls/certs... | 24 | 50 | 0.745833 |
7418570440367439eb399d899680b7fa71b8dfef | 1,617 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/begin_transaction_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firestore/lib/google_api/firestore/v1/model/begin_transaction_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firestore/lib/google_api/firestore/v1/model/begin_transaction_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... | 34.404255 | 168 | 0.75572 |
74186b2fcc0f472849e2e1fa71cd0a8f37dbf299 | 1,157 | exs | Elixir | priv/repo/migrations/20210728172051_create_users_auth_tables.exs | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20210728172051_create_users_auth_tables.exs | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | priv/repo/migrations/20210728172051_create_users_auth_tables.exs | prefeitura-municipal-campos/kirby | 290835751a28cd7e39be2e721de243e495273be7 | [
"BSD-3-Clause"
] | null | null | null | defmodule Kirby.Repo.Migrations.CreateUsersAuthTables do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS citext", ""
create table(:user) do
add :cpf, :citext, null: false
add :nome_completo, :string, null: false
add :perfil, :string, default: "avulso", null: fals... | 30.447368 | 77 | 0.6707 |
7418d20b706113cb9967960c20267be4cc52f621 | 70 | exs | Elixir | engine/test/test_helper.exs | pylebecq/todo-elixir | 695935b8239e776177cd454f973ae5a06541155f | [
"MIT"
] | null | null | null | engine/test/test_helper.exs | pylebecq/todo-elixir | 695935b8239e776177cd454f973ae5a06541155f | [
"MIT"
] | 9 | 2018-06-30T09:51:19.000Z | 2018-07-03T13:14:47.000Z | engine/test/test_helper.exs | pylebecq/todo-elixir | 695935b8239e776177cd454f973ae5a06541155f | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Engine.Repo, :manual)
| 14 | 52 | 0.757143 |
7418d5967338402b96263b3cded7e3fa9da61cf0 | 3,408 | ex | Elixir | lib/exsync/config.ex | pgeraghty/exsync | 1f4c9c561fd61ea0be1b08b1d92d0dc2fd8371af | [
"BSD-3-Clause"
] | 114 | 2015-05-14T08:02:53.000Z | 2022-02-16T21:10:42.000Z | lib/exsync/config.ex | pgeraghty/exsync | 1f4c9c561fd61ea0be1b08b1d92d0dc2fd8371af | [
"BSD-3-Clause"
] | 30 | 2015-05-09T23:46:19.000Z | 2022-02-05T16:16:31.000Z | lib/exsync/config.ex | pgeraghty/exsync | 1f4c9c561fd61ea0be1b08b1d92d0dc2fd8371af | [
"BSD-3-Clause"
] | 23 | 2015-05-03T12:29:51.000Z | 2021-05-02T20:30:21.000Z | require Logger
defmodule ExSync.Config do
def reload_timeout do
Application.get_env(application(), :reload_timeout, 150)
end
def logging_enabled do
Application.get_env(application(), :logging_enabled, true)
end
def reload_callback do
Application.get_env(application(), :reload_callback)
end
... | 25.244444 | 92 | 0.587441 |
7418ee78a8669801b45983b54a44f1210594a80d | 220 | exs | Elixir | apps/potterhat_rpc/config/config.exs | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 6 | 2019-03-28T14:47:41.000Z | 2019-06-25T02:38:06.000Z | apps/potterhat_rpc/config/config.exs | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 30 | 2019-05-22T10:08:09.000Z | 2019-08-02T06:37:56.000Z | apps/potterhat_rpc/config/config.exs | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :potterhat_rpc,
rpc_port: {:system, "RPC_PORT", 8545, {String, :to_integer}},
telemetry_subscribers: %{
"rpc-event-logger" => PotterhatRPC.EventLogger
}
import_config "#{Mix.env()}.exs"
| 22 | 63 | 0.695455 |
741926e916f6fa626ac19004996dedac723a5199 | 2,497 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/update_table_row_style_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/update_table_row_style_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/update_table_row_style_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... | 44.589286 | 341 | 0.726472 |
741934e14f869fbf954913488440357d74b75183 | 221 | exs | Elixir | apps/calgy/priv/repo/migrations/20170102123901_add_admin_id_to_calendars.exs | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | 1 | 2017-09-18T08:54:46.000Z | 2017-09-18T08:54:46.000Z | apps/calgy/priv/repo/migrations/20170102123901_add_admin_id_to_calendars.exs | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | null | null | null | apps/calgy/priv/repo/migrations/20170102123901_add_admin_id_to_calendars.exs | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | null | null | null | defmodule Calgy.Repo.Migrations.AddAdminIdToCalendars do
use Ecto.Migration
def change do
alter table(:calendars) do
add :admin_id, :uuid
end
create unique_index(:calendars, [:admin_id])
end
end
| 18.416667 | 56 | 0.714932 |
74196a53426e10d4a3afaa3488f73cf1e49019c1 | 3,353 | exs | Elixir | mix.exs | guildatech/GuildaEx | 4df60d5b85b578c019c71bcb17b907b6cd811037 | [
"MIT"
] | 10 | 2020-09-05T20:25:05.000Z | 2022-01-28T14:02:36.000Z | mix.exs | guildatech/GuildaEx | 4df60d5b85b578c019c71bcb17b907b6cd811037 | [
"MIT"
] | 11 | 2020-09-07T01:09:55.000Z | 2022-02-06T00:58:48.000Z | mix.exs | guildatech/GuildaEx | 4df60d5b85b578c019c71bcb17b907b6cd811037 | [
"MIT"
] | 3 | 2020-10-03T01:53:08.000Z | 2022-01-28T14:03:09.000Z | defmodule Guilda.MixProject do
use Mix.Project
def project do
[
app: :guilda,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 31.046296 | 89 | 0.539219 |
741975732d8d617dd07e2395cbc530f7cb03190b | 2,967 | ex | Elixir | test/support/fake_relay.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/support/fake_relay.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/support/fake_relay.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.FakeRelay do
alias Carrier.Messaging
alias Cog.Models.Relay
defstruct [conn: "", relay: %{}, bundles: []]
@relays_discovery_topic "bot/relays/discover"
@relay_info_topic "bot/relays/info"
@timeout 5000
@moduledoc """
For testing purposes. This module provides functions for faking a run... | 31.231579 | 85 | 0.618807 |
74198ef91842a4a07449f5da7e6b4b24ba98e28c | 642 | ex | Elixir | farmbot_core/lib/farmbot_core/asset/regimen/item.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/lib/farmbot_core/asset/regimen/item.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset/regimen/item.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null |
defmodule FarmbotCore.Asset.Regimen.Item do
use Ecto.Schema
import Ecto.Changeset
import FarmbotCore.Asset.View, only: [view: 2]
@primary_key false
@behaviour FarmbotCore.Asset.View
view regimen_item do
%{
time_offset: regimen_item.time_offset,
sequence_id: regimen_i... | 20.709677 | 51 | 0.635514 |
7419b2cc4d9fbb1d828ec1e94328cdfbf8b3a7f1 | 222 | ex | Elixir | apps/web/lib/web/views/tag_view.ex | friendshipismagic/Hekateros | 0d340b6818583e2e65b0395227c9bb91796e5f89 | [
"MIT"
] | 2 | 2019-03-22T12:29:37.000Z | 2021-01-08T17:25:32.000Z | apps/web/lib/web/views/tag_view.ex | friendshipismagic/Hecateros | 0d340b6818583e2e65b0395227c9bb91796e5f89 | [
"MIT"
] | 8 | 2017-12-04T16:53:35.000Z | 2018-04-08T11:01:46.000Z | apps/web/lib/web/views/tag_view.ex | friendshipismagic/Hekateros | 0d340b6818583e2e65b0395227c9bb91796e5f89 | [
"MIT"
] | null | null | null | defmodule Web.TagView do
use Web, :view
def format_date(inserted) do
case Timex.format(inserted, "{YYYY}-{0M}-{0D} at {h24}:{m}") do
{:ok, new_date} -> new_date
_ -> ""
end
end
end
| 20.181818 | 67 | 0.54955 |
7419c6072a93a141bcbfdf010780bd33e1625529 | 1,561 | ex | Elixir | lib/flamelex/gui/components/layer.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | 1 | 2020-02-09T23:04:33.000Z | 2020-02-09T23:04:33.000Z | lib/flamelex/gui/components/layer.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | null | null | null | lib/flamelex/gui/components/layer.ex | JediLuke/franklin | 8eb77a342547de3eb43d28dcf9f835ff443ad489 | [
"Apache-2.0"
] | null | null | null | defmodule Flamelex.GUI.Component.Layer do
use Scenic.Component
require Logger
def validate(%{id: x, graph: _g} = data) do
{:ok, data}
end
def init(scene, args, opts) do
init_scene = scene
#TODO wrap in a group
|> assign(id: args.id)
|> assign(graph: arg... | 30.607843 | 108 | 0.632287 |
7419f4c0384d50fbdad9406b5eab6a800dd934fe | 1,694 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/list_item_names_for_unmapped_identity_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/list_item_names_for_unmapped_identity_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/list_item_names_for_unmapped_identity_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.576923 | 157 | 0.736718 |
7419f7530e2f8f030743a3121c332f6310ee8097 | 3,566 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/operations.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/operations.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/api/operations.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 43.487805 | 178 | 0.697981 |
7419fadf116789a0e813cb50db8f1ab1d14c1ea1 | 3,349 | ex | Elixir | lib/auctoritas/data_storage/refresh_token_data.ex | nkyian/auctoritas | 24480b8d38fccdbadf588b110cdee061b6286f0c | [
"MIT"
] | 1 | 2019-01-18T10:37:40.000Z | 2019-01-18T10:37:40.000Z | lib/auctoritas/data_storage/refresh_token_data.ex | nkyian/auctoritas | 24480b8d38fccdbadf588b110cdee061b6286f0c | [
"MIT"
] | 6 | 2019-04-20T18:32:37.000Z | 2019-04-20T19:41:29.000Z | lib/auctoritas/data_storage/refresh_token_data.ex | nkyian/auctoritas | 24480b8d38fccdbadf588b110cdee061b6286f0c | [
"MIT"
] | null | null | null | defmodule Auctoritas.DataStorage.RefreshTokenData do
alias Auctoritas.DataStorage.RefreshTokenData
@typedoc "Token expiration in seconds"
@type expiration() :: non_neg_integer()
@typedoc "When was token inserted (UNIX Epoch time)"
@type inserted_at() :: non_neg_integer()
@typedoc "When was token updated ... | 31.299065 | 94 | 0.681397 |
741a08c871539c374dd757b6bbadca157f2df2ff | 3,379 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_product.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_product.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_product.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... | 52.796875 | 704 | 0.739864 |
741a0f8d552b444ea428af317b18e89efaa17fdc | 906 | ex | Elixir | lib/xtb_client/messages/server_time.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/messages/server_time.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/messages/server_time.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | defmodule XtbClient.Messages.ServerTime do
@moduledoc """
Info about current time on trading server.
## Parameters
- `time` actual time on server,
- `time_string` string version of `time` value.
## Handled Api methods
- `getServerTime`
"""
@type t :: %__MODULE__{
time: DateTime.t(),
... | 21.069767 | 62 | 0.62362 |
741a119a6be06cb6c3bb476aadfe39f320fface0 | 1,196 | exs | Elixir | mix.exs | maxvw/comparemoji.com | a078b5854e8bedbc112fb2e5ddcf4c64ca4ad572 | [
"MIT"
] | 5 | 2020-07-12T18:09:15.000Z | 2021-12-23T19:51:22.000Z | mix.exs | maxvw/comparemoji.com | a078b5854e8bedbc112fb2e5ddcf4c64ca4ad572 | [
"MIT"
] | 1 | 2021-04-06T20:35:02.000Z | 2021-04-06T20:35:02.000Z | mix.exs | maxvw/comparemoji.com | a078b5854e8bedbc112fb2e5ddcf4c64ca4ad572 | [
"MIT"
] | null | null | null | defmodule Comparemoji.MixProject do
use Mix.Project
def project do
[
app: :comparemoji,
version: "0.1.3",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
releases: [
compa... | 22.148148 | 64 | 0.500836 |
741a1232e2a8e8435a8bc8407d89c8a3e4ad1c2c | 1,119 | exs | Elixir | config/config.exs | abetkin/paths_and_deps | 30171d15d38a9c6cac7c97ff6bcdb8d9e969b35b | [
"MIT"
] | null | null | null | config/config.exs | abetkin/paths_and_deps | 30171d15d38a9c6cac7c97ff6bcdb8d9e969b35b | [
"MIT"
] | null | null | null | config/config.exs | abetkin/paths_and_deps | 30171d15d38a9c6cac7c97ff6bcdb8d9e969b35b | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.096774 | 73 | 0.75067 |
741a4472469a306f8468fceb281749edafb358ba | 433 | ex | Elixir | 2017/elixir/day13/lib/day13b.ex | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day13/lib/day13b.ex | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | 2017/elixir/day13/lib/day13b.ex | zakora/elixir-aoc2017 | 216e92cef370081cc0792102e0b40dd3a518d8bf | [
"Unlicense"
] | null | null | null | defmodule Day13B do
def solve(filename) do
{_positions, ranges, _max_depth} = Day13.get_init_state(filename)
Stream.iterate(0, &(1 + &1))
|> Enum.find(fn d -> not bad_delay(d, ranges) end)
end
def bad_delay(delay, ranges) do
# Return true if the given delay leads to getting caught by a scanner
... | 25.470588 | 73 | 0.635104 |
741a5f1e1e3c44534900c3345b502d55e0580de9 | 125 | exs | Elixir | part1/.workshop/exercises/deck_of_cards/files/deck.exs | Tuxified/weert-workshop | abe48af48631acac89a374277b98b981702deed7 | [
"Apache-2.0"
] | null | null | null | part1/.workshop/exercises/deck_of_cards/files/deck.exs | Tuxified/weert-workshop | abe48af48631acac89a374277b98b981702deed7 | [
"Apache-2.0"
] | null | null | null | part1/.workshop/exercises/deck_of_cards/files/deck.exs | Tuxified/weert-workshop | abe48af48631acac89a374277b98b981702deed7 | [
"Apache-2.0"
] | null | null | null | defmodule Deck do
@doc """
Creates new deck of shuffled cards
"""
@spec new() :: list
def new do
[]
end
end
| 11.363636 | 36 | 0.576 |
741acb04e1a3efadaa566ece34230269d749b418 | 703 | ex | Elixir | web/views/error_view.ex | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 15 | 2015-09-23T16:03:28.000Z | 2018-12-04T21:48:04.000Z | web/views/error_view.ex | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 27 | 2016-01-12T16:44:31.000Z | 2017-10-13T16:09:36.000Z | web/views/error_view.ex | mgwidmann/slack_coder | 3ff4375777c1bdbc94ba1491fdf4e1c0fa465edf | [
"MIT"
] | 4 | 2016-09-01T12:08:24.000Z | 2017-09-21T15:07:57.000Z | defmodule SlackCoder.ErrorView do
use SlackCoder.Web, :view
require Logger
def render("400.html", _assigns) do
render "500.html"
end
def render("401.json", _assigns) do
%{status: 401, message: "That resource is not authorized"}
end
def render("404.json", _assigns) do
%{status: 404, message:... | 25.107143 | 86 | 0.6899 |
741acb0ef5b59e21c504cc207a0165c3bf71bcaa | 5,724 | exs | Elixir | test/calliope/parser_test.exs | darthdeus/slimxir | dc585852934d1a5d42677cbdd04ca31673cbe9c0 | [
"Apache-2.0"
] | null | null | null | test/calliope/parser_test.exs | darthdeus/slimxir | dc585852934d1a5d42677cbdd04ca31673cbe9c0 | [
"Apache-2.0"
] | null | null | null | test/calliope/parser_test.exs | darthdeus/slimxir | dc585852934d1a5d42677cbdd04ca31673cbe9c0 | [
"Apache-2.0"
] | null | null | null | defmodule CalliopeParserTest do
use ExUnit.Case
import Calliope.Parser
@tokens [
[1, "!!! 5"],
[2, "%section", ".container", ".blue"],
[3, "\t", "%h1", "Calliope"],
[4, "\t", "/", "%h1", "An important inline comment"],
[5, "\t", "/[if IE]"],
[6, "\t\t", "%h2", "An Elixir Haml... | 39.75 | 134 | 0.549092 |
741affb18c43aa44ff068aa5599d16fcee8fd038 | 764 | ex | Elixir | lib/membrane_element_mpegts/program_association_table.ex | membraneframework/membrane_mpegts_plugin | 50c140d5132b4452e162326b7d455e72b43caf24 | [
"Apache-2.0"
] | null | null | null | lib/membrane_element_mpegts/program_association_table.ex | membraneframework/membrane_mpegts_plugin | 50c140d5132b4452e162326b7d455e72b43caf24 | [
"Apache-2.0"
] | 1 | 2020-07-31T09:25:02.000Z | 2020-08-10T08:55:59.000Z | lib/membrane_element_mpegts/program_association_table.ex | membraneframework/membrane_mpegts_plugin | 50c140d5132b4452e162326b7d455e72b43caf24 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.MPEG.TS.ProgramAssociationTable do
@moduledoc false
@type program_id_t :: 0..65_535
@type entry :: %{
program_number: program_id_t,
program_map_pid: 0..8191
}
@entry_length 4
# Parses Program Association Table data.
# Each entry should be 4 bytes long. If pr... | 25.466667 | 79 | 0.640052 |
741b0129b11228e052908c04b9c348080c1ed587 | 790 | exs | Elixir | .iex.exs | RooSoft/lnd_client | a70d5036e5f871b3265874f642c060ff79ea35b1 | [
"MIT"
] | 1 | 2021-07-19T18:33:04.000Z | 2021-07-19T18:33:04.000Z | .iex.exs | RooSoft/lnd_client | a70d5036e5f871b3265874f642c060ff79ea35b1 | [
"MIT"
] | 1 | 2021-06-29T23:03:36.000Z | 2021-06-29T23:03:36.000Z | .iex.exs | RooSoft/lnd_client | a70d5036e5f871b3265874f642c060ff79ea35b1 | [
"MIT"
] | 1 | 2021-06-22T20:15:50.000Z | 2021-06-22T20:15:50.000Z | LndClient.start_link(nil)
node_uri = System.get_env("NODE") || "localhost:10009"
cert_path = System.get_env("CERT") || "~/.lnd/lnd.cert"
macaroon_path = System.get_env("MACAROON") || "~/.lnd/readonly.macaroon"
case LndClient.connect(node_uri, cert_path, macaroon_path) do
{ :ok, _connection } ->
IO.puts "SUCCESS... | 25.483871 | 72 | 0.721519 |
741b0a72042fcc81bf5f04b871ad8bf014e9c4b3 | 259 | ex | Elixir | lib/battleships.ex | alexander-lazarov/battleships | e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707 | [
"MIT"
] | null | null | null | lib/battleships.ex | alexander-lazarov/battleships | e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707 | [
"MIT"
] | 2 | 2020-07-17T13:59:03.000Z | 2021-05-09T20:35:32.000Z | lib/battleships.ex | alexander-lazarov/battleships | e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707 | [
"MIT"
] | null | null | null | defmodule Battleships do
@moduledoc """
Battleships 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.9 | 66 | 0.760618 |
741b4daeea972a146410c448f706c73955ecd33c | 198 | exs | Elixir | priv/repo/migrations/20181012222023_add_display_to_games.exs | oestrich/gossip-backbone | 0bd926a6ad759486d4b14216d60c2653240be7da | [
"MIT"
] | 1 | 2018-10-23T04:13:39.000Z | 2018-10-23T04:13:39.000Z | priv/repo/migrations/20181012222023_add_display_to_games.exs | oestrich/gossip-backbone | 0bd926a6ad759486d4b14216d60c2653240be7da | [
"MIT"
] | null | null | null | priv/repo/migrations/20181012222023_add_display_to_games.exs | oestrich/gossip-backbone | 0bd926a6ad759486d4b14216d60c2653240be7da | [
"MIT"
] | null | null | null | defmodule Backbone.Repo.Migrations.AddDisplayToGames do
use Ecto.Migration
def change do
alter table(:games) do
add(:display, :boolean, default: false, null: false)
end
end
end
| 19.8 | 58 | 0.712121 |
741b50b0dde3e7b8d1b3c0f1b5c28ab74091efac | 4,890 | ex | Elixir | lib/phoenix/controller/pipeline.ex | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | lib/phoenix/controller/pipeline.ex | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | lib/phoenix/controller/pipeline.ex | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller.Pipeline do
@moduledoc false
@doc false
defmacro __using__(opts) do
quote bind_quoted: [opts: opts] do
@behaviour Plug
require Phoenix.Endpoint
import Phoenix.Controller.Pipeline
Module.register_attribute(__MODULE__, :plugs, accumulate: true)
@befo... | 28.265896 | 108 | 0.622495 |
741b51c2846ed5e16cf097cb7bcf6ddbc139f3ba | 67 | ex | Elixir | apps/ex_figment_web/lib/ex_figment_web/views/layout_view.ex | rishenko/ex_figment | 7cb578a0da26dd50a947f6c155adc0c69a37ad4b | [
"Apache-2.0"
] | 1 | 2018-05-05T18:34:53.000Z | 2018-05-05T18:34:53.000Z | apps/ex_figment_web/lib/ex_figment_web/views/layout_view.ex | rishenko/ex_figment | 7cb578a0da26dd50a947f6c155adc0c69a37ad4b | [
"Apache-2.0"
] | null | null | null | apps/ex_figment_web/lib/ex_figment_web/views/layout_view.ex | rishenko/ex_figment | 7cb578a0da26dd50a947f6c155adc0c69a37ad4b | [
"Apache-2.0"
] | null | null | null | defmodule ExFigmentWeb.LayoutView do
use ExFigmentWeb, :view
end
| 16.75 | 36 | 0.820896 |
741b536b95c2add2fd1311d81bdec02a8c452bcf | 632 | exs | Elixir | mix.exs | zekroTJA/lolpoints | 3956c048d8b3fdfae6b2fd9e709d030a6a5cb8bc | [
"MIT"
] | null | null | null | mix.exs | zekroTJA/lolpoints | 3956c048d8b3fdfae6b2fd9e709d030a6a5cb8bc | [
"MIT"
] | null | null | null | mix.exs | zekroTJA/lolpoints | 3956c048d8b3fdfae6b2fd9e709d030a6a5cb8bc | [
"MIT"
] | null | null | null | defmodule LoLPoints.MixProject do
use Mix.Project
def project do
[
app: :lolpoints,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
escript: escript_conf(),
deps: deps()
]
end
def application do
[
extra_applications: [:logger],
... | 16.631579 | 42 | 0.526899 |
741bba9bb0b49d2ecd54cc58018de73df4e28a6c | 154 | ex | Elixir | test/support/phi_logger_stub.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/support/phi_logger_stub.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/support/phi_logger_stub.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Test.PhiLoggerStub do
@behaviour Epicenter.AuditLog.PhiLogger
def info(_message, _metadata, _unlogged_metadata),
do: :ok
end
| 22 | 52 | 0.785714 |
741bf9dab3fab8c0f97bbcff7641b2ff717df657 | 1,203 | ex | Elixir | test/helpers/test_data.ex | BoringButGreat/public_key_utils | 1fb28c1c58c3edf69e5e434af9140a50cb123f4f | [
"BSD-3-Clause"
] | 3 | 2017-04-18T19:30:56.000Z | 2020-07-23T09:49:49.000Z | test/helpers/test_data.ex | BoringButGreat/public_key_utils | 1fb28c1c58c3edf69e5e434af9140a50cb123f4f | [
"BSD-3-Clause"
] | null | null | null | test/helpers/test_data.ex | BoringButGreat/public_key_utils | 1fb28c1c58c3edf69e5e434af9140a50cb123f4f | [
"BSD-3-Clause"
] | 1 | 2021-11-09T20:36:06.000Z | 2021-11-09T20:36:06.000Z | defmodule TestData do
data =
File.ls!("test/data")
|> Enum.filter(&(File.dir?("test/data/#{&1}")))
|> Enum.flat_map(fn(source) ->
File.ls!("test/data/#{source}")
|> Enum.filter(&(File.dir?("test/data/#{source}/#{&1}")))
|> Enum.flat_map(fn(alg) ->
File.ls!("test/da... | 40.1 | 88 | 0.448047 |
741c11b3131391f76d3c949f913c1442a4f6db53 | 531 | ex | Elixir | backend/lib/kjer_si_web/controllers/admin/admin_user_controller.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 2 | 2019-11-02T21:28:34.000Z | 2019-11-28T18:01:08.000Z | backend/lib/kjer_si_web/controllers/admin/admin_user_controller.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 17 | 2019-11-29T16:23:38.000Z | 2022-02-14T05:11:41.000Z | backend/lib/kjer_si_web/controllers/admin/admin_user_controller.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | null | null | null | defmodule KjerSiWeb.Admin.AdminUserController do
use KjerSiWeb, :controller
alias KjerSi.Accounts
alias KjerSi.Accounts.User
action_fallback KjerSiWeb.FallbackController
def index(conn, _params) do
users = Accounts.list_users()
render(conn, "index.json", users: users)
end
def update(conn, %{"i... | 24.136364 | 76 | 0.691149 |
741c45ca5eec448c92c4e08ec2d9f88b2ca8885f | 960 | exs | Elixir | mix.exs | FloatingGhost/virus_total_ex | e24a1910c88e4e8f805e97c033dc13c4ef12c3be | [
"MIT"
] | null | null | null | mix.exs | FloatingGhost/virus_total_ex | e24a1910c88e4e8f805e97c033dc13c4ef12c3be | [
"MIT"
] | null | null | null | mix.exs | FloatingGhost/virus_total_ex | e24a1910c88e4e8f805e97c033dc13c4ef12c3be | [
"MIT"
] | null | null | null | defmodule VirusTotal.MixProject do
use Mix.Project
def project do
[
app: :virus_total_ex,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "A set of bindings to VirusTotal's private API",
package: package()
]
end... | 21.818182 | 89 | 0.560417 |
741c5408452f22ceb7d2a3a08380f2cf5eb0941f | 676 | ex | Elixir | lib/doctor_schedule/shared/cache/ets/cache_ets.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 2 | 2022-03-11T12:15:01.000Z | 2022-03-11T13:53:21.000Z | lib/doctor_schedule/shared/cache/ets/cache_ets.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 3 | 2020-12-12T22:10:17.000Z | 2021-04-05T12:53:12.000Z | lib/doctor_schedule/shared/cache/ets/cache_ets.ex | theguuholi/doctor_schedule | a92dfa92d1398c59718be2428d36bb326d6bc361 | [
"MIT"
] | 1 | 2021-02-26T04:24:34.000Z | 2021-02-26T04:24:34.000Z | defmodule DoctorSchedule.Shared.Cache.Ets.CacheEts do
use GenServer
def start_link(name), do: GenServer.start_link(__MODULE__, name, name: name)
def init(name) do
:ets.new(name, [:set, :public, :named_table])
{:ok, name}
end
def handle_cast({:put, key, value}, name) do
:ets.insert(name, {key, v... | 21.125 | 78 | 0.594675 |
741c57ccb820eb6c2369b3012ba68f409738a213 | 143 | ex | Elixir | testData/org/elixir_lang/parser_definition/map_operation_parsing_test_case/EmptyStruct.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/map_operation_parsing_test_case/EmptyStruct.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/map_operation_parsing_test_case/EmptyStruct.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | %:struct{}
%One.Two{}
%One.one(){}
%One.one{}
%one(){}
%one{}
%One{}
%@:one{}
%@One.Two{}
%@One.one(){}
%@One.one{}
%@one(){}
%@one{}
%@One{}
| 8.9375 | 13 | 0.440559 |
741c7c7af713778801b7a360d87a73e66f1409b5 | 1,971 | ex | Elixir | lib/coney/consumer_executor.ex | segaz2002/coney | 7b98a1b4f0da4d316fd2118ba6394779212563ed | [
"MIT"
] | 1 | 2020-04-28T11:28:26.000Z | 2020-04-28T11:28:26.000Z | lib/coney/consumer_executor.ex | DanilParshukov/coney | 12b089dece6f28d4d9ee1181f3e52f8ec8ffbdcd | [
"MIT"
] | null | null | null | lib/coney/consumer_executor.ex | DanilParshukov/coney | 12b089dece6f28d4d9ee1181f3e52f8ec8ffbdcd | [
"MIT"
] | null | null | null | defmodule Coney.ConsumerExecutor do
alias Coney.{ConnectionServer, ExecutionTask, ConsumerConnection}
def consume(%ExecutionTask{consumer: consumer, payload: payload, meta: meta} = task) do
payload
|> consumer.parse(meta)
|> consumer.process(meta)
|> handle_result(task)
rescue
exception ->
... | 28.565217 | 96 | 0.679351 |
741c85f57720f38c586a14a936f27280603bc4cd | 413 | exs | Elixir | alerts/test/alerts_web/views/error_view_test.exs | juanseph/elixir_alerts | c9e777417ff33e8ca6d766f770ae63d68d111a8a | [
"MIT"
] | 1 | 2020-04-27T17:54:12.000Z | 2020-04-27T17:54:12.000Z | alerts/test/alerts_web/views/error_view_test.exs | juanseph/elixir_alerts | c9e777417ff33e8ca6d766f770ae63d68d111a8a | [
"MIT"
] | null | null | null | alerts/test/alerts_web/views/error_view_test.exs | juanseph/elixir_alerts | c9e777417ff33e8ca6d766f770ae63d68d111a8a | [
"MIT"
] | null | null | null | defmodule AlertsWeb.ErrorViewTest do
use AlertsWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(AlertsWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
asser... | 27.533333 | 91 | 0.731235 |
741c8a1a1bb94dda18d695d713f6c34c132c8be1 | 2,617 | ex | Elixir | lib/weaver/absinthe/schema.ex | weaver-engine/weaver | b60a59673d7adb0ebfbb5f392d03fe09399054bc | [
"MIT"
] | null | null | null | lib/weaver/absinthe/schema.ex | weaver-engine/weaver | b60a59673d7adb0ebfbb5f392d03fe09399054bc | [
"MIT"
] | null | null | null | lib/weaver/absinthe/schema.ex | weaver-engine/weaver | b60a59673d7adb0ebfbb5f392d03fe09399054bc | [
"MIT"
] | null | null | null | defmodule Weaver.Absinthe.Schema do
@moduledoc """
GraphQL schema for testing fetching data from Twitter.
"""
use Absinthe.Schema
alias ExTwitter.Model.{Tweet, User}
alias Weaver.Resolvers
interface :node do
field(:id, non_null(:id))
end
object :twitter_user do
interface(:node)
is_type... | 28.139785 | 97 | 0.668705 |
741ca84d0d2f2ef89ca89a9173d2f369068e9add | 479 | exs | Elixir | exercises/pangram/example.exs | rawkode/exercism-elixir | f073ca5974846c5da00189cefbe32a42182b4a67 | [
"MIT"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/pangram/example.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | exercises/pangram/example.exs | Triangle-Elixir/xelixir | 08d23bf47f57799f286567cb26f635291de2fde5 | [
"MIT"
] | null | null | null | defmodule Pangram do
@doc """
Determines if a word or sentence is a pangram.
A pangram is a sentence using every letter of the alphabet at least once.
Returns a boolean.
## Examples
iex> Pangram.pangram?("the quick brown fox jumps over the lazy dog")
true
"""
@spec pangram?(String.t) ::... | 19.16 | 75 | 0.632568 |
741cb3aee21387c04aef2c2b6799722bd4d0c7de | 1,465 | ex | Elixir | lib/mix/lib/mix/tasks/escript.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/lib/mix/tasks/escript.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/escript.ex | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Mix.Tasks.Escript do
use Mix.Task
@shortdoc "Lists installed escripts"
@moduledoc ~S"""
Lists all installed escripts.
Escripts are installed at `~/.mix/escripts`. Add that path to your `PATH` environment variable
to be able to run installed escripts from any directory.
"""
use Bitwise
@... | 25.701754 | 96 | 0.638225 |
741ccab223821cca7fd52ca8c16477f977f9d69c | 1,011 | exs | Elixir | config/config.exs | jonathanleang/phoenix_sample | 2dbc65d74087fedc9eccb87436870f0927c74522 | [
"Apache-2.0"
] | null | null | null | config/config.exs | jonathanleang/phoenix_sample | 2dbc65d74087fedc9eccb87436870f0927c74522 | [
"Apache-2.0"
] | null | null | null | config/config.exs | jonathanleang/phoenix_sample | 2dbc65d74087fedc9eccb87436870f0927c74522 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :phoenix_sample... | 34.862069 | 91 | 0.778437 |
741cf8b822cc910beec3674cce2b42d4f66f5f28 | 2,400 | ex | Elixir | lib/asls/editors/vscode.ex | Shopify/asls | 2c0f3c68e380cfeaa75f710b367a2f67ae09957a | [
"MIT"
] | 23 | 2021-02-05T01:50:07.000Z | 2021-12-10T13:24:41.000Z | lib/asls/editors/vscode.ex | Shopify/asls | 2c0f3c68e380cfeaa75f710b367a2f67ae09957a | [
"MIT"
] | 5 | 2021-03-30T06:27:39.000Z | 2021-06-08T01:10:35.000Z | lib/asls/editors/vscode.ex | saulecabrera/asls | 2c0f3c68e380cfeaa75f710b367a2f67ae09957a | [
"MIT"
] | 1 | 2020-10-24T09:02:22.000Z | 2020-10-24T09:02:22.000Z | defmodule AssemblyScriptLS.Editors.VSCode do
require OK
use OK.Pipe
@typescript_validate_key "typescript.validate.enable"
defmodule Config do
defstruct [:package_json, :settings]
def new do
case File.cwd() do
{:ok, dir} ->
%__MODULE__{
package_json: Path.join(dir, ... | 26.086957 | 89 | 0.612917 |
741d18c0f16ef72b26ade9f0021f5b1f1ecca0da | 1,500 | ex | Elixir | lib/pixie/protocol/handshake.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | lib/pixie/protocol/handshake.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | lib/pixie/protocol/handshake.ex | rdalin82/pixie | add50e2bd7fbd807c7b82cd10a2123828be4c58f | [
"MIT"
] | null | null | null | defmodule Pixie.Handshake do
alias Pixie.Event
alias Pixie.Protocol.Error
alias Pixie.Backend
import Pixie.Utils.Map
# FIXME: I need a way to check this against Pixie.bayeux_version instead of
# hard coding it here.
def handle(%Event{message: %{supported_connection_types: %{__struct__: HashSet}=cl... | 34.090909 | 175 | 0.712667 |
741d251952af3c9b3bed4b48028fc969d0050822 | 2,633 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/usage.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_user/lib/google_api/service_user/v1/model/usage.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_user/lib/google_api/service_user/v1/model/usage.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.140625 | 154 | 0.726548 |
741d2b0d30218913a1ec5ab38ee013bf4d39c151 | 491 | ex | Elixir | lib/doctor_schedule_web/controllers/api/password_forgot_controller.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | null | null | null | lib/doctor_schedule_web/controllers/api/password_forgot_controller.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | 2 | 2021-08-21T13:02:30.000Z | 2021-08-24T12:13:21.000Z | lib/doctor_schedule_web/controllers/api/password_forgot_controller.ex | romenigld/doctor_schedule | 40fb31b58d5d1f9f2b1809b869396d9f57244cc5 | [
"MIT"
] | null | null | null | defmodule DoctorScheduleWeb.Api.PasswordForgotController do
use DoctorScheduleWeb, :controller
alias DoctorSchedule.Accounts.Services.SendForgotPasswordToEmail
action_fallback DoctorScheduleWeb.FallbackController
def create(conn, %{"email" => email}) do
with {:ok, _user, _token, _email} <- SendForgotPass... | 28.882353 | 84 | 0.733198 |
741d32ceab4b5e7d520a7d1fcb563165032e7acc | 4 | ex | Elixir | testData/org/elixir_lang/parser_definition/decimal_whole_number_parsing_test_case/ZeroPrefix.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/decimal_whole_number_parsing_test_case/ZeroPrefix.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/decimal_whole_number_parsing_test_case/ZeroPrefix.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 0001 | 4 | 4 | 1 |
741d4f23ebac30cdfb6e132f4fdc70ab6ff1d2e2 | 871 | ex | Elixir | apps/service_define/lib/define/data_definition.ex | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | apps/service_define/lib/define/data_definition.ex | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | apps/service_define/lib/define/data_definition.ex | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | defmodule Define.DataDefinition do
use Ecto.Schema
import Ecto.Changeset
schema "data_definition" do
field(:dataset_id, :string)
field(:subset_id, :string, default: "default")
# {:map, inner_type}
field(:dictionary, :map)
field(:extract_destination, :string)
field(:extract_steps, {:array,... | 20.738095 | 50 | 0.650976 |
741d6f03339be9c112a7983c7eb7766221aca375 | 1,663 | exs | Elixir | test/exquickbooks/endpoint_test.exs | Boulevard/ExQuickBooks | 72560070ec647a3f6c81b6a6afd15da3d563370c | [
"0BSD"
] | 8 | 2017-03-06T21:48:56.000Z | 2021-06-24T16:36:43.000Z | test/exquickbooks/endpoint_test.exs | Boulevard/ExQuickBooks | 72560070ec647a3f6c81b6a6afd15da3d563370c | [
"0BSD"
] | 2 | 2017-03-14T20:28:06.000Z | 2017-09-21T09:02:19.000Z | test/exquickbooks/endpoint_test.exs | Boulevard/ExQuickBooks | 72560070ec647a3f6c81b6a6afd15da3d563370c | [
"0BSD"
] | 2 | 2019-04-18T21:05:14.000Z | 2021-06-24T16:38:33.000Z | defmodule ExQuickBooks.EndpointTest do
use ExUnit.Case, async: false
use ExQuickBooks.APICase
use ExQuickBooks.Endpoint, base_url: "http://localhost/"
alias ExQuickBooks.OAuth.AccessToken
alias ExQuickBooks.Request
doctest ExQuickBooks.Endpoint
test "request/5 creates a request with a base URL" do
... | 29.175439 | 78 | 0.69092 |
741d916db458385bce758a8deace86f2c196fd0e | 3,063 | exs | Elixir | test/tesla/middleware/compression_test.exs | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | test/tesla/middleware/compression_test.exs | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | test/tesla/middleware/compression_test.exs | DNNX/tesla | a1a60ad74de1b88782ab50a7f52719d7cecef94a | [
"MIT"
] | null | null | null | defmodule Tesla.Middleware.CompressionTest do
use ExUnit.Case
defmodule CompressionGzipRequestClient do
use Tesla
plug Tesla.Middleware.Compression
adapter fn env ->
{status, headers, body} =
case env.url do
"/" ->
{200, %{'Content-Type' => 'text/plain'}, :zlib.gun... | 27.106195 | 96 | 0.601371 |
741d933fea76c1c7618308af73554b9f4e953672 | 775 | ex | Elixir | lib/excerpt/irc/commands/server_operations.ex | clone1018/excerpt | eef37f7c144bd4c477444b809da73c821b754c2b | [
"MIT"
] | 1 | 2021-08-12T20:37:44.000Z | 2021-08-12T20:37:44.000Z | lib/excerpt/irc/commands/server_operations.ex | clone1018/excerpt | eef37f7c144bd4c477444b809da73c821b754c2b | [
"MIT"
] | null | null | null | lib/excerpt/irc/commands/server_operations.ex | clone1018/excerpt | eef37f7c144bd4c477444b809da73c821b754c2b | [
"MIT"
] | null | null | null | defmodule Excerpt.IRC.Commands.ServerOperations do
@moduledoc """
The server query group of commands has been designed to return
information about any server which is connected to the network. All
servers connected must respond to these queries and respond
correctly. Any invalid response (or lack thereo... | 38.75 | 72 | 0.747097 |
741dd7e0ea2b73a4673cc0275b58e9d527d1bb16 | 1,502 | ex | Elixir | lib/mix/tasks/ellie/binstall.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 377 | 2018-04-05T03:36:00.000Z | 2022-03-30T19:12:44.000Z | lib/mix/tasks/ellie/binstall.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 91 | 2018-05-24T21:56:06.000Z | 2022-02-26T03:54:04.000Z | lib/mix/tasks/ellie/binstall.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 34 | 2018-05-29T03:54:35.000Z | 2022-01-13T07:12:46.000Z | defmodule Mix.Tasks.Ellie.Binstall do
use Mix.Task
def run(_) do
download_and_unpack(
"https://github.com/alco/goon/releases/download/v1.1.1/goon_darwin_amd64.tar.gz",
"goon.tar.gz"
)
download_and_unpack(
"https://github.com/elm-lang/elm-platform/releases/download/0.18.0-exp/elm-plat... | 28.339623 | 109 | 0.605193 |
741de48932f808933eed901f69d8ed461bb1f7fc | 2,158 | ex | Elixir | lib/search.ex | feda12/braintree-elixir | 03074d763bcd514d87213646d4cad6dac97c54af | [
"MIT"
] | 1 | 2021-05-23T05:04:46.000Z | 2021-05-23T05:04:46.000Z | lib/search.ex | gengogaku/braintree-elixir | aa1308d054ada93adee0bd661919625f988b58d3 | [
"MIT"
] | 1 | 2016-08-23T02:05:46.000Z | 2016-08-23T02:05:46.000Z | lib/search.ex | gengogaku/braintree-elixir | aa1308d054ada93adee0bd661919625f988b58d3 | [
"MIT"
] | 3 | 2017-06-26T14:40:25.000Z | 2019-09-23T15:19:07.000Z | defmodule Braintree.Search do
@moduledoc """
This module performs advanced search on a resource.
For additional reference see:
https://developers.braintreepayments.com/reference/general/searching/search-fields/ruby
"""
alias Braintree.ErrorResponse, as: Error
alias Braintree.HTTP
@doc """
Perform a... | 31.735294 | 102 | 0.65987 |
741e2f38cd8159de1f3a03a29328538a0fb4c8dd | 1,156 | ex | Elixir | lib/stepex.ex | mike-foucault/stepex | 9ac469b8d98e831f0c7e03a84e6212fbc7e9dae9 | [
"Apache-2.0"
] | null | null | null | lib/stepex.ex | mike-foucault/stepex | 9ac469b8d98e831f0c7e03a84e6212fbc7e9dae9 | [
"Apache-2.0"
] | null | null | null | lib/stepex.ex | mike-foucault/stepex | 9ac469b8d98e831f0c7e03a84e6212fbc7e9dae9 | [
"Apache-2.0"
] | null | null | null | defmodule Stepex do
alias __MODULE__
defstruct status: :ok,
data: nil,
callback: &__MODULE__.default_callback/2,
metadata: %{},
context: %{}
def default_callback(_data, _context), do: fn -> nil end
def init(data \\ %{}), do: %Stepex{data: data}
def update_da... | 29.641026 | 90 | 0.66782 |
741e48dbeb7bb39de54c86e6986a0e9752db59b1 | 2,261 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/artifact_objects.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/artifact_objects.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/artifact_objects.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.322034 | 160 | 0.722247 |
741e8c34848f29420d7ab52c7845fa123dbe8d58 | 2,785 | ex | Elixir | apps/mishka_user/lib/token/token.ex | mojtaba-naseri/mishka-cms | 1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935 | [
"Apache-2.0"
] | 3 | 2021-06-27T10:26:51.000Z | 2022-01-10T13:56:08.000Z | apps/mishka_user/lib/token/token.ex | shahryarjb/mishka-cms | c27aaeeaa8dfc568c6c71f67a8e4f147a4d630f9 | [
"Apache-2.0"
] | null | null | null | apps/mishka_user/lib/token/token.ex | shahryarjb/mishka-cms | c27aaeeaa8dfc568c6c71f67a8e4f147a4d630f9 | [
"Apache-2.0"
] | null | null | null | defmodule MishkaUser.Token.Token do
alias MishkaUser.Token.{PhoenixToken, JWTToken, CurrentPhoenixToken}
@type token() :: String.t()
@type user_info() :: map()
@type id() :: String.t()
@type result() :: map() | tuple() | atom()
@type clime() :: map() | tuple() | struct()
@spec create_token(
... | 28.71134 | 112 | 0.635907 |
741ea197c7ff3dfc294088815a1c60a08e7f6626 | 556 | exs | Elixir | dev/hello_world/mix.exs | toff63/aws_setup_template | 4b9e4780cd6fd5810c9d31376ff8febd35ea84e1 | [
"MIT"
] | 3 | 2019-08-10T11:25:40.000Z | 2019-08-11T12:15:27.000Z | dev/hello_world/mix.exs | toff63/aws_setup_template | 4b9e4780cd6fd5810c9d31376ff8febd35ea84e1 | [
"MIT"
] | null | null | null | dev/hello_world/mix.exs | toff63/aws_setup_template | 4b9e4780cd6fd5810c9d31376ff8febd35ea84e1 | [
"MIT"
] | 1 | 2019-08-09T21:03:02.000Z | 2019-08-09T21:03:02.000Z | defmodule HelloWorld.MixProject do
use Mix.Project
def project do
[
app: :hello_world,
version: "0.1.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
ex... | 18.533333 | 59 | 0.566547 |
741ee9f87ee8bd5c341d31c7444075f45515898b | 3,714 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/api/beaconinfo.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/api/beaconinfo.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/api/beaconinfo.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 44.746988 | 260 | 0.708131 |
741f25c36c9b3a08dd83d7c952b7c5a8882ea96b | 882 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # 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... | 32.666667 | 74 | 0.758503 |
741f435491531830b2ee4f58b58c304dac607c2b | 21,516 | ex | Elixir | lib/phoenix/test/conn_test.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | 2 | 2020-07-24T08:34:36.000Z | 2021-02-08T03:21:49.000Z | lib/phoenix/test/conn_test.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | lib/phoenix/test/conn_test.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | defmodule Phoenix.ConnTest do
@moduledoc """
Conveniences for testing Phoenix endpoints and connection related helpers.
You likely want to use this module or make it part of your `ExUnit.CaseTemplate`.
Once used, this module automatically imports all functions defined here as
well as the functions in `Plug.C... | 32.113433 | 116 | 0.680052 |
741f4970ece192c7c5f38f33fc8169163f2c354c | 2,905 | ex | Elixir | clients/admin/lib/google_api/admin/reports_v1/api/channels.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/admin/lib/google_api/admin/reports_v1/api/channels.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/reports_v1/api/channels.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.794521 | 187 | 0.662306 |
741f4e3f317bfe253d8b081c83675a3b1d2b3d3f | 69 | ex | Elixir | lib/live_deck_web/views/style_guide_view.ex | rheubach/live-share-prop | b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88 | [
"MIT"
] | 68 | 2020-02-13T15:17:39.000Z | 2022-03-29T23:21:19.000Z | lib/live_deck_web/views/style_guide_view.ex | rheubach/live-share-prop | b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88 | [
"MIT"
] | 30 | 2020-04-16T17:21:22.000Z | 2021-09-20T21:47:12.000Z | lib/live_deck_web/views/style_guide_view.ex | rheubach/live-share-prop | b92bcaca16fc42e31a3edb5d8922cbfcb2cceb88 | [
"MIT"
] | 7 | 2020-06-07T16:19:14.000Z | 2022-02-09T23:31:25.000Z | defmodule LiveDeckWeb.StyleGuideView do
use LiveDeckWeb, :view
end
| 17.25 | 39 | 0.826087 |
741f84cedb2eefa32c93226c4fd0ad50b015d7f3 | 1,290 | ex | Elixir | lib/track_user_agents_web/views/error_helpers.ex | SparkPost/elixir-webhook-sample | 22d367b63f4995eb0ddb4b0aaf484790987b8491 | [
"Apache-2.0"
] | 1 | 2021-12-08T18:15:33.000Z | 2021-12-08T18:15:33.000Z | lib/track_user_agents_web/views/error_helpers.ex | SparkPost/elixir-webhook-sample | 22d367b63f4995eb0ddb4b0aaf484790987b8491 | [
"Apache-2.0"
] | null | null | null | lib/track_user_agents_web/views/error_helpers.ex | SparkPost/elixir-webhook-sample | 22d367b63f4995eb0ddb4b0aaf484790987b8491 | [
"Apache-2.0"
] | null | null | null | defmodule TrackUserAgentsWeb.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) ->
co... | 31.463415 | 84 | 0.676744 |
741fa45bbf839995ef4c3c57d7c36662001dfef1 | 421 | exs | Elixir | apps/rna/config/dev.exs | yeongsheng-tan/rna_umbrella | ff97599e726f6adae3fcaee31e3c13faee06838a | [
"BSD-3-Clause"
] | 3 | 2017-03-08T03:00:14.000Z | 2017-06-27T22:02:03.000Z | apps/rna/config/dev.exs | yeongsheng-tan/rna_umbrella | ff97599e726f6adae3fcaee31e3c13faee06838a | [
"BSD-3-Clause"
] | null | null | null | apps/rna/config/dev.exs | yeongsheng-tan/rna_umbrella | ff97599e726f6adae3fcaee31e3c13faee06838a | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
config :bus,
host: 'localhost',
port: 1883,
client_id: "Rna.SNMP_Poller", #needs to be string.
keep_alive: 30, #this is in seconds.
auto_reconnect: true, #if client get disconnected, it will auto reconnect.
auto_connect: true, #this will make sure when you start :bus process, it gets connect... | 38.272727 | 103 | 0.750594 |
741fb084f22d4a1dd5b1be1b3ef1158fcec8abbf | 77 | ex | Elixir | lib/ebayka/request_error.ex | ssnickolay/ebayka | a03e3aa2d7b0abe3cbb9dbc90efa59ae9c6e6ccd | [
"Apache-2.0"
] | 6 | 2018-02-11T13:10:04.000Z | 2021-08-13T14:35:52.000Z | lib/ebayka/request_error.ex | ssnickolay/ebayka | a03e3aa2d7b0abe3cbb9dbc90efa59ae9c6e6ccd | [
"Apache-2.0"
] | null | null | null | lib/ebayka/request_error.ex | ssnickolay/ebayka | a03e3aa2d7b0abe3cbb9dbc90efa59ae9c6e6ccd | [
"Apache-2.0"
] | 3 | 2018-02-11T13:09:56.000Z | 2021-12-09T20:29:10.000Z | defmodule Ebayka.RequestError do
defexception message: "runtime error"
end
| 19.25 | 39 | 0.818182 |
741fcca1812678c6eda4c679de96f059545b9c20 | 354 | exs | Elixir | test/blacklist_test.exs | rsolovjov/expletive | 75bbd20cc701b1dc743b8e294b9fc0ee6ca3e27c | [
"Apache-2.0"
] | null | null | null | test/blacklist_test.exs | rsolovjov/expletive | 75bbd20cc701b1dc743b8e294b9fc0ee6ca3e27c | [
"Apache-2.0"
] | null | null | null | test/blacklist_test.exs | rsolovjov/expletive | 75bbd20cc701b1dc743b8e294b9fc0ee6ca3e27c | [
"Apache-2.0"
] | null | null | null | defmodule BlacklistTest do
use ExUnit.Case
alias Expletive.Blacklist, as: Blacklist
test "english blacklist" do
assert Enum.member?(Blacklist.english, "wrapping the weasel")
end
test "international blacklist" do
assert Enum.member?(Blacklist.international, "shitty")
assert Enum.member?(Blacklis... | 23.6 | 65 | 0.745763 |
741fd85067d221a64749d3c2e0a9c80d4d3dc7dd | 69 | ex | Elixir | lib/queerlink/repo.ex | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 38 | 2015-11-07T23:54:26.000Z | 2021-04-09T04:14:25.000Z | lib/queerlink/repo.ex | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 2 | 2015-11-23T15:00:34.000Z | 2015-11-26T09:59:26.000Z | lib/queerlink/repo.ex | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 6 | 2015-11-26T00:25:22.000Z | 2020-03-04T22:13:59.000Z | defmodule Queerlink.Repo do
use Ecto.Repo, otp_app: :queerlink
end
| 17.25 | 36 | 0.782609 |
741fdd56e75e990492dda92da437fc9553a86809 | 4,263 | ex | Elixir | lib/stripe/issuing/cardholder.ex | esse/stripity_stripe | 7e650078f59545be8b7f72151d832e0379fb4c7f | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/issuing/cardholder.ex | esse/stripity_stripe | 7e650078f59545be8b7f72151d832e0379fb4c7f | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/issuing/cardholder.ex | esse/stripity_stripe | 7e650078f59545be8b7f72151d832e0379fb4c7f | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Issuing.Cardholder do
@moduledoc """
Work with Stripe Issuing cardholder objects.
You can:
- Create a cardholder
- Retrieve a cardholder
- Update a cardholder
Stripe API reference: https://stripe.com/docs/api/issuing/cardholders
"""
use Stripe.Entity
import Stripe.Request
@ty... | 29.811189 | 98 | 0.526859 |
742002ab6d6a5e3a98bf1c0b81acd56508c7c4d7 | 1,559 | ex | Elixir | lib/phoenix.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | lib/phoenix.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | lib/phoenix.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | defmodule Phoenix do
@moduledoc """
This is documentation for the Phoenix project.
By default, Phoenix applications depend on other packages besides
Phoenix itself. Below we provide a short explanation with links to
their documentation for each of those projects:
* [Ecto](http://hexdocs.pm/ecto) - a lan... | 31.18 | 77 | 0.722258 |
742014a03686ab5a8014e3f63870cf821a0b7424 | 12,065 | exs | Elixir | lib/elixir/test/elixir/kernel_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | 1 | 2015-02-23T00:01:48.000Z | 2015-02-23T00:01:48.000Z | lib/elixir/test/elixir/kernel_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel_test.exs | jbcrail/elixir | f30ef15d9d028a6d0f74d10c2bb320d5f8501bdb | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule KernelTest do
use ExUnit.Case, async: true
test "=~/2" do
assert ("abcd" =~ ~r/c(d)/) == true
assert ("abcd" =~ ~r/e/) == false
string = "^ab+cd*$"
assert (string =~ "ab+") == true
assert (string =~ "bb") == false
assert_raise Functi... | 25.03112 | 101 | 0.533858 |
742024845a6689276d72a7be450f1b03c1c5894f | 1,625 | ex | Elixir | test/support/deft.ex | am-kantox/tyx | da0847cabdf304fbf2f5c56797d75c9e8795994c | [
"MIT"
] | 2 | 2021-06-04T20:35:33.000Z | 2021-11-28T22:26:08.000Z | test/support/deft.ex | am-kantox/tyx | da0847cabdf304fbf2f5c56797d75c9e8795994c | [
"MIT"
] | null | null | null | test/support/deft.ex | am-kantox/tyx | da0847cabdf304fbf2f5c56797d75c9e8795994c | [
"MIT"
] | null | null | null | defmodule Tyx.Samples.Deft do
@moduledoc "Examples of Type usage"
use Tyx
alias Tyx.{BuiltIn, Remote, Samples.Deft.M}
Module.put_attribute(__MODULE__, :map, %M{})
import Float
def no_spec(list, count), do: Enum.take(list, count)
deft ok(list ~> BuiltIn.List, count ~> BuiltIn.Integer) ~>> BuiltIn.Lis... | 25.390625 | 87 | 0.660923 |
7420310a27f35c997401a97380c892931b111f0a | 904 | ex | Elixir | lib/wechat/helpers/crypto_helper.ex | h1u2i3/ex_wechat | 0d5dc88f3f694cac9e46dd6529a1df203d60cdf1 | [
"MIT"
] | 23 | 2016-12-25T13:38:38.000Z | 2020-11-02T15:06:10.000Z | lib/wechat/helpers/crypto_helper.ex | h1u2i3/ex_wechat | 0d5dc88f3f694cac9e46dd6529a1df203d60cdf1 | [
"MIT"
] | 15 | 2016-11-05T17:00:18.000Z | 2019-08-28T10:00:41.000Z | lib/wechat/helpers/crypto_helper.ex | h1u2i3/ex_wechat | 0d5dc88f3f694cac9e46dd6529a1df203d60cdf1 | [
"MIT"
] | 8 | 2017-07-04T03:44:25.000Z | 2020-11-11T08:32:39.000Z | defmodule Wechat.Helpers.CryptoHelper do
@moduledoc """
Generate sha1 hash and verify sha1 with given string.
"""
@doc """
Check the sha hash of `string` with `signature`.
"""
def wechat_hash_equal?(params, signature) do
wechat_sha(params) == signature
end
@doc """
Wechat sha hash
"""
def ... | 19.652174 | 57 | 0.600664 |
742048b55c30c46e07481f78c5b02f82e492be17 | 4,940 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_intent.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_intent.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_intent.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... | 59.518072 | 641 | 0.734008 |
742083494145d5d164b4549a854fe214c02ad256 | 3,843 | exs | Elixir | test/siwapp_web/controllers/user_reset_password_controller_test.exs | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 4 | 2015-02-12T09:23:47.000Z | 2022-03-09T18:11:06.000Z | test/siwapp_web/controllers/user_reset_password_controller_test.exs | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 254 | 2021-12-09T14:40:41.000Z | 2022-03-31T08:09:37.000Z | test/siwapp_web/controllers/user_reset_password_controller_test.exs | jakon89/siwapp | b5f8fd43458deae72c76e434ed0c63b620cb97a4 | [
"MIT"
] | 1 | 2022-03-07T10:25:49.000Z | 2022-03-07T10:25:49.000Z | defmodule SiwappWeb.UserResetPasswordControllerTest do
use SiwappWeb.ConnCase, async: true
import Siwapp.AccountsFixtures
alias Siwapp.Accounts
alias Siwapp.Repo
setup do
%{user: user_fixture()}
end
describe "GET /users/reset_password" do
test "renders the reset password page", %{conn: conn} do... | 33.710526 | 91 | 0.63362 |
742090373816302cee22238cdb8144db350aa360 | 2,048 | exs | Elixir | mix.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 204 | 2015-06-04T06:38:57.000Z | 2022-01-30T08:56:33.000Z | mix.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 71 | 2015-05-24T02:08:28.000Z | 2022-01-10T17:13:27.000Z | mix.exs | mneudert/instream | 9a86c43014fcc490fe4a931026f74cd896f78cc7 | [
"Apache-2.0"
] | 41 | 2015-09-05T21:24:04.000Z | 2021-11-10T02:52:48.000Z | defmodule Instream.MixProject do
use Mix.Project
@url_github "https://github.com/mneudert/instream"
def project do
[
app: :instream,
name: "Instream",
version: "2.0.0-dev",
elixir: "~> 1.7",
aliases: aliases(),
deps: deps(),
description: "InfluxDB driver for Elixir"... | 22.755556 | 90 | 0.532227 |
7420bf5a55bf58fe11188f6ba04d7ef18bd7ee32 | 21,758 | ex | Elixir | lib/aws/device_farm.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/device_farm.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/device_farm.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.DeviceFarm do
@moduledoc """
Welcome to the AWS Device Farm API documentation, which contains APIs for:
<ul> <li> Testing on desktop browsers
Device Farm makes it possible for you to tes... | 31.306475 | 80 | 0.697582 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.