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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a163591224cd5c7e42834b7419effe51f59bf1c | 13,334 | ex | Elixir | lib/phoenix/presence.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | 2 | 2016-11-01T15:01:48.000Z | 2016-11-01T15:07:20.000Z | lib/phoenix/presence.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | lib/phoenix/presence.ex | G3z/phoenix | f13fe2c7f7ec25e6a59204266cb8cbbe7ffbbded | [
"MIT"
] | null | null | null | defmodule Phoenix.Presence do
@moduledoc """
Provides Presence tracking to processes and channels.
This behaviour provides presence features such as fetching
presences for a given topic, as well as handling diffs of
join and leave events as they occur in real-time. Using this
module defines a supervisor an... | 33.335 | 117 | 0.646918 |
1a164af3b2bb82f91fe4cd646c26230da987b616 | 1,770 | ex | Elixir | lib/rtp_h264/nal_formats/fu/header.ex | geometerio/membrane_rtp_h264_plugin | 21b48d78128a3bd663da82495134957c1d654a88 | [
"Apache-2.0"
] | 1 | 2020-12-30T23:50:48.000Z | 2020-12-30T23:50:48.000Z | lib/rtp_h264/nal_formats/fu/header.ex | geometerio/membrane_rtp_h264_plugin | 21b48d78128a3bd663da82495134957c1d654a88 | [
"Apache-2.0"
] | 7 | 2020-07-29T20:57:41.000Z | 2021-11-16T09:44:56.000Z | lib/rtp_h264/nal_formats/fu/header.ex | geometerio/membrane_rtp_h264_plugin | 21b48d78128a3bd663da82495134957c1d654a88 | [
"Apache-2.0"
] | 1 | 2021-06-21T23:13:44.000Z | 2021-06-21T23:13:44.000Z | defmodule Membrane.RTP.H264.FU.Header do
@moduledoc """
Defines a structure representing Fragmentation Unit (FU) header
which is defined in [RFC6184](https://tools.ietf.org/html/rfc6184#page-31)
```
+---------------+
|0|1|2|3|4|5|6|7|
+-+-+-+-+-+-+-+-+
|S|E|R| Type |
+---------------+
... | 26.818182 | 94 | 0.602825 |
1a165ea52f5b5e665015a00e3dac0972f45b47b7 | 6,968 | ex | Elixir | lib/livebook/runtime/erl_dist/runtime_server.ex | FE-box/livebook | 44ae4ecf941decb1b3b0b8b4a0811aa6f9aaf83d | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/runtime_server.ex | FE-box/livebook | 44ae4ecf941decb1b3b0b8b4a0811aa6f9aaf83d | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist/runtime_server.ex | FE-box/livebook | 44ae4ecf941decb1b3b0b8b4a0811aa6f9aaf83d | [
"Apache-2.0"
] | 1 | 2021-07-07T06:18:36.000Z | 2021-07-07T06:18:36.000Z | defmodule Livebook.Runtime.ErlDist.RuntimeServer do
@moduledoc false
# A server process backing a specific runtime.
#
# This process handles `Livebook.Runtime` operations,
# like evaluation and completion. It spawns/terminates
# individual evaluators as necessary.
#
# Every runtime server must have an ... | 28.210526 | 97 | 0.675373 |
1a167b2a053d22b8e6aedea758aa5428b22ca7a9 | 2,996 | ex | Elixir | lib/service/clan_service.ex | jcoder39/clans | a674e364816607e238cffc2e85508212bc13462e | [
"MIT"
] | null | null | null | lib/service/clan_service.ex | jcoder39/clans | a674e364816607e238cffc2e85508212bc13462e | [
"MIT"
] | null | null | null | lib/service/clan_service.ex | jcoder39/clans | a674e364816607e238cffc2e85508212bc13462e | [
"MIT"
] | null | null | null | defmodule Clan.Service do
require Clan
require Player
def init() do
:ets.new(:clans, [:set, :protected, :named_table, {:keypos, Clan.clan(:name) + 1}])
end
@doc """
create clan
"""
def create(leader_id, clan_name, clan_tag) do
clan = Clan.clan(name: clan_name, tag: clan_tag, leader_id: lead... | 24.966667 | 113 | 0.610147 |
1a16819552c8c1440bb22154a5609b99029acf48 | 8,823 | ex | Elixir | lib/oli_web/live/sections/overview_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/live/sections/overview_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | lib/oli_web/live/sections/overview_view.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.Sections.OverviewView do
use Surface.LiveView, layout: {OliWeb.LayoutView, "live.html"}
use OliWeb.Common.Modal
alias Oli.Repo.{Paging, Sorting}
alias OliWeb.Common.{Breadcrumb, DeleteModalNoConfirmation}
alias OliWeb.Common.Properties.{Groups, Group, ReadOnly}
alias Oli.Delivery.Sections
... | 38.194805 | 164 | 0.635158 |
1a16b56b34bb3fe62b174d167bcfe815f6863283 | 1,028 | ex | Elixir | lib/accent/schemas/document.ex | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | null | null | null | lib/accent/schemas/document.ex | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | lib/accent/schemas/document.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Accent.Document do
use Accent.Schema
require Accent.DocumentFormat
schema "documents" do
field(:path, :string)
field(:format, :string)
field(:render, :string, virtual: true)
field(:top_of_the_file_comment, :string, default: "")
field(:header, :string, default: "")
belongs_to... | 29.371429 | 85 | 0.712062 |
1a16c5bacaf6819f2aefe00c8e2768f0d0fe1f31 | 3,187 | ex | Elixir | clients/books/lib/google_api/books/v1/api/notification.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/api/notification.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/api/notification.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... | 42.493333 | 217 | 0.70411 |
1a16c7b78a091fea5c87ccce66c6a20e88e356e6 | 3,052 | exs | Elixir | lib/mix/test/mix/tasks/profile.cprof_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/mix/test/mix/tasks/profile.cprof_test.exs | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/mix/test/mix/tasks/profile.cprof_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 Mix.Tasks.Profile.CprofTest do
use MixTest.Case
import ExUnit.CaptureIO
alias Mix.Tasks.Profile.Cprof
@expr "Enum.each(1..5, &String.Chars.Integer.to_string/1)"
test "profiles evaluated expression", context do
in_tmp(context.test, fn ->
... | 28.523364 | 93 | 0.561927 |
1a16d6f2d09f32e180a5df96a72833585f7e8f92 | 1,906 | ex | Elixir | clients/content/lib/google_api/content/v21/model/order_line_item_adjustment.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_line_item_adjustment.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/order_line_item_adjustment.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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... | 35.962264 | 136 | 0.726653 |
1a16e86fd06d8f6840a6af959306c9beeeda8acd | 30,267 | exs | Elixir | lib/elixir/test/elixir/macro_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2018-02-24T19:48:35.000Z | 2018-02-24T19:48:35.000Z | lib/elixir/test/elixir/macro_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/elixir/test/elixir/macro_test.exs | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule Macro.ExternalTest do
defmacro external do
line = 18
file = __ENV__.file
^line = __CALLER__.line
^file = __CALLER__.file
^line = Macro.Env.location(__CALLER__)[:line]
^file = Macro.Env.location(__CALLER__)[:file]
end
defmacro oror(l... | 30.634615 | 98 | 0.51343 |
1a16faa849ee29993b4095a0f4521ff19ebc0b8f | 1,019 | exs | Elixir | mix.exs | nighthawk-apps/zcashex | dca51cca3df69586016b24277614565514e1b8e2 | [
"Apache-2.0"
] | 1 | 2021-05-19T05:56:18.000Z | 2021-05-19T05:56:18.000Z | mix.exs | nighthawk-apps/zcashex | dca51cca3df69586016b24277614565514e1b8e2 | [
"Apache-2.0"
] | null | null | null | mix.exs | nighthawk-apps/zcashex | dca51cca3df69586016b24277614565514e1b8e2 | [
"Apache-2.0"
] | null | null | null | defmodule Zcashex.MixProject do
use Mix.Project
def project do
[
app: :zcashex,
version: "0.1.1",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package()
]
... | 23.697674 | 110 | 0.574092 |
1a1720641089f48e28388025316637c009ee4f7d | 2,199 | ex | Elixir | lib/honeydew/queue/erlang_queue.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 717 | 2015-06-15T19:30:54.000Z | 2022-03-22T06:10:09.000Z | lib/honeydew/queue/erlang_queue.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 106 | 2015-06-25T05:38:05.000Z | 2021-12-08T23:17:19.000Z | lib/honeydew/queue/erlang_queue.ex | kianmeng/honeydew | 7c0e825c70ef4b72c82d02ca95491e7365d6b2e8 | [
"MIT"
] | 60 | 2015-06-07T00:48:37.000Z | 2022-03-06T08:20:23.000Z | defmodule Honeydew.Queue.ErlangQueue do
@moduledoc """
An in-memory queue implementation.
This is a simple FIFO queue implemented with the `:queue` and `Map` modules.
"""
require Logger
alias Honeydew.Job
alias Honeydew.Queue
@behaviour Queue
@impl true
def validate_args!([]), do: :ok
def valid... | 24.164835 | 178 | 0.63347 |
1a1736edc1c7da4bb057d0884dd40c15d876d697 | 1,287 | exs | Elixir | apps/notifier/mix.exs | TaimoorRana/opensubs.io | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/notifier/mix.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/notifier/mix.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | defmodule Notifier.Mixfile do
use Mix.Project
def project do
[
app: :notifier,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
elixirc_paths: elixirc_path... | 24.283019 | 61 | 0.542347 |
1a17555054d7e64f70e11cb711f1698df6f9c15a | 3,743 | ex | Elixir | lib/bubblewrap_engine/game.ex | mikeweber/elixir_prags | ae087248adc484659d7a0948e7056e667301f549 | [
"MIT"
] | null | null | null | lib/bubblewrap_engine/game.ex | mikeweber/elixir_prags | ae087248adc484659d7a0948e7056e667301f549 | [
"MIT"
] | null | null | null | lib/bubblewrap_engine/game.ex | mikeweber/elixir_prags | ae087248adc484659d7a0948e7056e667301f549 | [
"MIT"
] | null | null | null | defmodule BubblewrapEngine.Game do
alias BubblewrapEngine.{Board, Coordinate, Rules}
use GenServer, start: {__MODULE__, :start_link, []}, restart: :transient
@timeout 3600 * 24 * 1000
def start_link(name, max_players) when is_binary(name) do
GenServer.start_link(__MODULE__, {name, max_players}, name: via_... | 27.522059 | 97 | 0.628907 |
1a1763c86dcd2bbe24212eb9f9c27b89584a4ec5 | 2,262 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_groups_scoped_list_warning.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/instance_groups_scoped_list_warning.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_groups_scoped_list_warning.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.888889 | 194 | 0.731653 |
1a1793fc4483bdb335e9ef8ae5acb4b82a10791b | 4,383 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/model/binding.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 78.267857 | 1,970 | 0.745608 |
1a1795a76f271ac0c44c7604504bf022de605ddf | 892 | ex | Elixir | lib/master.ex | stippireddy/cryptocurrency-miner | e38c43666c9f74692903502386f79ca549711bde | [
"MIT"
] | null | null | null | lib/master.ex | stippireddy/cryptocurrency-miner | e38c43666c9f74692903502386f79ca549711bde | [
"MIT"
] | null | null | null | lib/master.ex | stippireddy/cryptocurrency-miner | e38c43666c9f74692903502386f79ca549711bde | [
"MIT"
] | null | null | null | defmodule Master do
use GenServer
def start_link(opts) do
IO.puts "*********** Master up and running ********"
{:ok, pid} = GenServer.start_link(__MODULE__,opts)
:global.register_name(:mas, pid)
w = 1
k = [opts]
Enum.map(1..w, fn(_) -> Slave.start_link(k) end)
... | 22.871795 | 60 | 0.549327 |
1a17b4b0d23542a9ea93e44bd66feab1629b77ba | 89 | ex | Elixir | test/event/support/ignored_event.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-28T20:48:23.000Z | 2018-12-28T20:48:23.000Z | test/event/support/ignored_event.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | test/event/support/ignored_event.ex | edwardzhou/commanded | f104cbf5ff3a37a6e9b637bc07ccde1d79c0725d | [
"MIT"
] | 1 | 2020-02-18T20:53:39.000Z | 2020-02-18T20:53:39.000Z | defmodule Commanded.Event.IgnoredEvent do
@moduledoc false
defstruct [name: nil]
end
| 17.8 | 41 | 0.786517 |
1a17bb0a8c457df9e325bf7e9174354ce5bc5222 | 2,682 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_hit.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_hit.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/model/threat_hit.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... | 42.571429 | 166 | 0.717002 |
1a17c51ea4343d9263fc12d8e77e7a56b6608655 | 5,385 | exs | Elixir | test/sanbase/billing/subscription_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | test/sanbase/billing/subscription_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 1 | 2021-07-24T16:26:03.000Z | 2021-07-24T16:26:03.000Z | test/sanbase/billing/subscription_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | null | null | null | defmodule Sanbase.Billing.SubscriptionTest do
use Sanbase.DataCase
import Sanbase.Factory
import Mock
alias Sanbase.Billing.{Subscription, Plan.AccessChecker}
setup do
%{user: insert(:user)}
end
describe "#is_restricted?" do
test "network_growth and daily_active_deposits are restricted" do
... | 33.867925 | 96 | 0.647354 |
1a17d8447419db4fd8285571bb7402d89e1e54ad | 11,592 | ex | Elixir | lib/green_worker.ex | renderedtext/green-worker | ca69c243e5a98590a6d82ca2872996783948b8fb | [
"Apache-2.0"
] | 1 | 2019-09-05T14:40:33.000Z | 2019-09-05T14:40:33.000Z | lib/green_worker.ex | renderedtext/green-worker | ca69c243e5a98590a6d82ca2872996783948b8fb | [
"Apache-2.0"
] | null | null | null | lib/green_worker.ex | renderedtext/green-worker | ca69c243e5a98590a6d82ca2872996783948b8fb | [
"Apache-2.0"
] | null | null | null | defmodule GreenWorker do
@moduledoc """
A behavior module for implementing FSM-like family of workers.
`GreenWorker` is used to define:
- worker process code and
- family supervision tree.
## Example
Define GreenWorker family called `My.Worker`:
defmodule My.Worker do
use GreenWorker,
... | 29.198992 | 101 | 0.65364 |
1a17e4e9f679193faf1df4290e52b2919f8f52ec | 8,048 | ex | Elixir | lib/hound/json_driver/page.ex | knewter/hound | 49ca7d71f7fb0d9a9de14afa86ca1a1fe5ae1278 | [
"MIT"
] | 1 | 2015-07-08T04:32:02.000Z | 2015-07-08T04:32:02.000Z | lib/hound/json_driver/page.ex | knewter/hound | 49ca7d71f7fb0d9a9de14afa86ca1a1fe5ae1278 | [
"MIT"
] | null | null | null | lib/hound/json_driver/page.ex | knewter/hound | 49ca7d71f7fb0d9a9de14afa86ca1a1fe5ae1278 | [
"MIT"
] | null | null | null | defmodule Hound.JsonDriver.Page do
import Hound.JsonDriver.Utils
@doc "Gets the HTML source of current page."
@spec page_source() :: String.t
def page_source() do
session_id = Hound.get_current_session_id
make_req(:get, "session/#{session_id}/source")
end
@doc "Gets the title of the current page.... | 31.4375 | 122 | 0.669359 |
1a17e518e6d5255398090c01936180b41670d4d6 | 3,031 | ex | Elixir | lib/commanded/aggregates/multi.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | null | null | null | lib/commanded/aggregates/multi.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | lib/commanded/aggregates/multi.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:15:03.000Z | 2018-12-05T18:15:03.000Z | defmodule Commanded.Aggregate.Multi do
@moduledoc """
Use `Commanded.Aggregate.Multi` to generate multiple events from a single
command.
This can be useful when you want to emit multiple events that depend upon the
aggregate state being updated.
## Example
In the example below, money is withdrawn from ... | 28.064815 | 102 | 0.627186 |
1a17ef1a0bf88e4bdcfccc6e75d0cdd76e000013 | 766 | ex | Elixir | lib/hl7/2.5/segments/bpo.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/bpo.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.5/segments/bpo.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_5.Segments.BPO do
@moduledoc false
require Logger
alias HL7.V2_5.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_bpo: nil,
bp_universal_service_id: DataTypes.Cwe,
bp_processing_requirements: DataTypes.Cwe,
bp_quantity: nil,
bp_amount: nil,
... | 29.461538 | 55 | 0.732376 |
1a1807e008b25aaacb70a86bebf580e2d49fde3c | 3,786 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/router_status_bgp_peer_status.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router_status_bgp_peer_status.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/router_status_bgp_peer_status.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.325 | 275 | 0.680137 |
1a182ac1f4460db5d473b1d96dee77bda17a85ba | 4,538 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/status.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 84.037037 | 2,549 | 0.755399 |
1a18334655811cb2821abeed0f50617e9c94d5ff | 135 | ex | Elixir | phoenix/eiga/lib/eiga_web/controllers/page_controller.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | phoenix/eiga/lib/eiga_web/controllers/page_controller.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | 2 | 2016-03-10T03:04:11.000Z | 2017-02-11T17:43:44.000Z | phoenix/eiga/lib/eiga_web/controllers/page_controller.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | defmodule EigaWeb.PageController do
use EigaWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 16.875 | 35 | 0.725926 |
1a1835cb78ad60af98b47179689d556114627342 | 1,245 | ex | Elixir | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/image_data_disk.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/image_data_disk.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/image_data_disk.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Compute.Model.ImageDataDisk do
@moduledoc """
Describes a data disk.
"""
@derive [Poison.Encoder]
defstruct ... | 29.642857 | 120 | 0.697992 |
1a183abe09dc75a6767d4841a49473b33f33dfac | 206 | ex | Elixir | test/support/poison_testing.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 3 | 2018-07-14T22:55:23.000Z | 2019-02-25T06:11:55.000Z | test/support/poison_testing.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 7 | 2020-02-12T03:22:59.000Z | 2022-02-10T20:23:52.000Z | test/support/poison_testing.ex | andersjanmyr/battlesnake-server-2018 | 091b4d1201d144de232be08fd7fb6df8156c5ee2 | [
"MIT"
] | 12 | 2018-03-27T05:27:20.000Z | 2019-04-02T08:19:04.000Z | defmodule PoisonTesting do
@doc """
Convert a struct to JSON and then back to a map.
"""
@spec cast!(struct) :: map
def cast!(s) do
s
|> Poison.encode!()
|> Poison.decode!()
end
end
| 17.166667 | 50 | 0.592233 |
1a18459f83caea959b09b1d545b8cef42684c4ff | 7,520 | ex | Elixir | lib/stripe/subscriptions/subscription_schedule.ex | staffing-coop/stripity_stripe | b6a25cac6e912b050db664db4991574b46959448 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription_schedule.ex | staffing-coop/stripity_stripe | b6a25cac6e912b050db664db4991574b46959448 | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/subscriptions/subscription_schedule.ex | staffing-coop/stripity_stripe | b6a25cac6e912b050db664db4991574b46959448 | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.SubscriptionSchedule do
@moduledoc """
Work with Stripe subscription schedule objects.
"""
use Stripe.Entity
import Stripe.Request
@type plans :: %{
plan: String.t(),
quantity: pos_integer
}
@type phases :: %{
application_fee_percent: float | nil,... | 32.695652 | 98 | 0.530186 |
1a184eec9b8195ea5e48d4ab169ec658aaf16b12 | 3,487 | exs | Elixir | test/bitcraft/bit_block_test.exs | alboratech/bitcraft | 40a8d6d1d72b3b6a9b9b70793f12edd1e133cd8d | [
"MIT"
] | 5 | 2021-08-20T08:41:19.000Z | 2022-02-02T22:04:05.000Z | test/bitcraft/bit_block_test.exs | cabol/bitcraft | 40a8d6d1d72b3b6a9b9b70793f12edd1e133cd8d | [
"MIT"
] | null | null | null | test/bitcraft/bit_block_test.exs | cabol/bitcraft | 40a8d6d1d72b3b6a9b9b70793f12edd1e133cd8d | [
"MIT"
] | null | null | null | defmodule Bitcraft.BitBlockTest do
@moduledoc false
use ExUnit.Case
doctest Bitcraft
alias Bitcraft.BitBlock.DynamicSegment
alias Bitcraft.TestBlocks.{DynamicBlock, IpDatagram, StaticBlock}
describe "encode/decode" do
test "static block works properly" do
assert bits = StaticBlock.sample() |> St... | 29.550847 | 91 | 0.489246 |
1a18592d042e637bbc0e0635a5bb88f5a699900d | 932 | ex | Elixir | lib/sparql/algebra/expression/function_call/extension.ex | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | lib/sparql/algebra/expression/function_call/extension.ex | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | lib/sparql/algebra/expression/function_call/extension.ex | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | defmodule SPARQL.Algebra.FunctionCall.Extension do
defstruct name: nil,
arguments: [],
distinct: false
alias SPARQL.Algebra.FunctionCall
defimpl SPARQL.Algebra.Expression do
def evaluate(%SPARQL.Algebra.FunctionCall.Extension{
name: name, arguments: arguments, dis... | 30.064516 | 83 | 0.643777 |
1a1877236cba6dae32697191523c77f5c3156baf | 1,080 | ex | Elixir | lib/caramel/installer.ex | drewolson/mix_caramel | bb8bf296a09b8221a5817389858005c6b2ced780 | [
"Apache-2.0"
] | null | null | null | lib/caramel/installer.ex | drewolson/mix_caramel | bb8bf296a09b8221a5817389858005c6b2ced780 | [
"Apache-2.0"
] | null | null | null | lib/caramel/installer.ex | drewolson/mix_caramel | bb8bf296a09b8221a5817389858005c6b2ced780 | [
"Apache-2.0"
] | null | null | null | defmodule Caramel.Installer do
def get_host_triplet() do
case :os.type() do
{:unix, :linux} -> "x86_64-unknown-linux-gnu"
{:unix, _} -> "x86_64-apple-darwin"
end
end
def release_url(version, tarball_name) do
"https://github.com/AbstractMachinesLab/caramel/releases/download/" <>
vers... | 32.727273 | 74 | 0.653704 |
1a187a0ca1a32c77a907c2e415f6d944e586b8d8 | 3,649 | ex | Elixir | lib/crawly/manager.ex | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | lib/crawly/manager.ex | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | lib/crawly/manager.ex | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.Manager do
@moduledoc """
Crawler manager module
This module is responsible for spawning all processes related to
a given Crawler.
The manager spawns the following processes tree.
┌────────────────┐ ┌───────────────────┐
│ Crawly.Manager ├────────> Crawly.ManagerSup │
└────────... | 29.192 | 75 | 0.550836 |
1a189fbcb9ece8c95340e34b303e44e51e8f9f1f | 725 | exs | Elixir | test/ttr_core/games/creation_test.exs | alakra/ticket-to-ride-core | 7886e1937d4f41b472e0bb3e2cc20ea4ef350085 | [
"MIT"
] | 6 | 2018-09-23T21:04:50.000Z | 2021-03-13T02:56:23.000Z | test/ttr_core/games/creation_test.exs | alakra/ticket-to-ride-core | 7886e1937d4f41b472e0bb3e2cc20ea4ef350085 | [
"MIT"
] | 23 | 2018-08-24T17:09:18.000Z | 2021-08-02T12:15:23.000Z | test/ttr_core/games/creation_test.exs | alakra/ticket-to-ride-core | 7886e1937d4f41b472e0bb3e2cc20ea4ef350085 | [
"MIT"
] | 1 | 2018-08-24T16:59:45.000Z | 2018-08-24T16:59:45.000Z | defmodule TtrCore.Games.CreationTest do
use ExUnit.Case, async: false
alias TtrCore.{
Games,
Players
}
alias TtrCore.Games.Index
setup do
start_supervised({Registry, [keys: :unique, name: Index]})
start_supervised(Players)
start_supervised(Games)
:ok
end
describe "create/1" do... | 21.969697 | 67 | 0.670345 |
1a18ccc1cc834428d3a02de749fbdec95a54718d | 91 | ex | Elixir | lib/balalaika_bear/account.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 5 | 2018-04-30T09:48:17.000Z | 2020-05-01T10:20:15.000Z | lib/balalaika_bear/account.ex | BalalaikaIndustries/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 7 | 2018-04-28T06:39:10.000Z | 2018-04-28T07:31:59.000Z | lib/balalaika_bear/account.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 2 | 2018-04-27T19:42:04.000Z | 2020-05-01T10:20:02.000Z | defmodule BalalaikaBear.Account do
use BalalaikaBear.Macro.API, namespace: "account"
end
| 22.75 | 51 | 0.813187 |
1a18ed4ece971c29ba92aa75b932fbf94c27ae57 | 544 | ex | Elixir | lib/ash/resource/actions/argument.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | lib/ash/resource/actions/argument.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | lib/ash/resource/actions/argument.ex | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | defmodule Ash.Resource.Actions.Argument do
@moduledoc "Represents an argument to an action"
defstruct [:allow_nil?, :type, :name, constraints: []]
@type t :: %__MODULE__{}
def schema do
[
allow_nil?: [
type: :boolean,
default: true
],
type: [
type: {:custom, Ash.O... | 19.428571 | 59 | 0.523897 |
1a19535ca2eaf60ad9f887ddfe637536c1b500d4 | 949 | ex | Elixir | test/support/channel_case.ex | matthewess/boilertalk | f8382108e6e029e5cc04f6420d60dd1adafa4c30 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | matthewess/boilertalk | f8382108e6e029e5cc04f6420d60dd1adafa4c30 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | matthewess/boilertalk | f8382108e6e029e5cc04f6420d60dd1adafa4c30 | [
"MIT"
] | null | null | null | defmodule BoilertalkWeb.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 common datastructures and query the data layer.
Finally, if the test case interacts... | 24.973684 | 72 | 0.719705 |
1a19660fef64d621df61a3af1a5f6f804613e277 | 1,016 | ex | Elixir | apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares/upload.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares/upload.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_web_core/lib/nerves_hub_web_core/firmwares/upload.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWebCore.Firmwares.Upload do
@moduledoc """
A behaviour module for managing firmware files within a file storage system.
"""
@typedoc "Metadata about the file upload."
@type upload_metadata :: map()
alias NervesHubWebCore.Firmwares.{Firmware, FirmwareDelta}
alias NervesHubWebCore.Accou... | 28.222222 | 81 | 0.646654 |
1a19990aeab1e07e582df813ccb22cbea527bbc5 | 917 | ex | Elixir | lib/scenic/primitive/transform/rotate.ex | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/transform/rotate.ex | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/transform/rotate.ex | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 10/02/17.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Transform.Rotate do
@moduledoc false
use Scenic.Primitive.Transform
# ============================================================================
# data verification and serializ... | 25.472222 | 80 | 0.46892 |
1a19be4a8d37d030adb631bc17c3306482046bb8 | 771 | ex | Elixir | lib/web/views/api/zone_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/web/views/api/zone_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/web/views/api/zone_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Web.API.ZoneView do
use Web, :view
alias Web.Endpoint
alias Web.API.Link
def render("index.json", %{pagination: pagination, zones: zones}) do
%{
items: render_many(zones, __MODULE__, "show.json"),
links: [
%Link{
rel: :self,
href: Routes.api_zone_path(Endp... | 21.416667 | 80 | 0.539559 |
1a19c15783c79e3a74251453e2b0e734dce6a030 | 33,992 | ex | Elixir | lib/phoenix_live_view/test/live_view_test.ex | joshuataylor/phoenix_live_view | 4b4023c07b5c082505961139c4a5c92045c95e23 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | joshuataylor/phoenix_live_view | 4b4023c07b5c082505961139c4a5c92045c95e23 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | joshuataylor/phoenix_live_view | 4b4023c07b5c082505961139c4a5c92045c95e23 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest do
@moduledoc """
Conveniences for testing Phoenix LiveViews.
In LiveView tests, we interact with views via process
communication in substitution of a browser. Like a browser,
our test process receives messages about the rendered updates
from the view which can be asserted ag... | 32.098206 | 98 | 0.66095 |
1a19e7d8bb7ca9df3d17ca855e3fcde4ecab0d4b | 4,092 | ex | Elixir | lib/zxcvbn/feedback.ex | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | lib/zxcvbn/feedback.ex | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | lib/zxcvbn/feedback.ex | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | defmodule Zxcvbn.Feedback do
@moduledoc false
alias Zxcvbn.Scoring
@default_feedback %{
warning: '',
suggestions: [
"Use a few words, avoid common phrases",
"No need for symbols, digits, or uppercase letters"
]
}
def get_feedback(score, sequence) do
# # starting feedback
# r... | 32.47619 | 97 | 0.610215 |
1a1a1415ba7b03ff83ddd6f2674c651e1504cf8e | 1,339 | ex | Elixir | lib/google_api/big_query/v2/model/table_cell.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"Apache-2.0"
] | null | null | null | lib/google_api/big_query/v2/model/table_cell.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"Apache-2.0"
] | null | null | null | lib/google_api/big_query/v2/model/table_cell.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 26.254902 | 77 | 0.732636 |
1a1a1a032b2ed611890f83ccdf1dd9a9663510de | 6,126 | exs | Elixir | test/vendor_cisco_7960_test.exs | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 7 | 2018-12-10T13:50:05.000Z | 2020-10-20T14:16:42.000Z | test/vendor_cisco_7960_test.exs | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | null | null | null | test/vendor_cisco_7960_test.exs | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 4 | 2019-01-09T17:46:44.000Z | 2020-02-02T12:00:04.000Z | defmodule XMediaLib.VendorCisco7960Test do
use ExUnit.Case
alias XMediaLib.Rtp
setup do
pcmu_payload1 =
<<253, 253, 254, 253, 253, 254, 254, 254, 254, 253, 253, 253, 253, 253, 254, 254, 254, 254,
254, 254, 254, 255, 254, 255, 127, 254, 254, 254, 255, 127, 126, 126, 126, 127, 126, 126,
1... | 38.049689 | 97 | 0.583252 |
1a1a23afd4c88f5c37a05bc8b210bed879194a0d | 954 | ex | Elixir | lib/grovepi/registry/subscriber.ex | Tony1928/rpi-grovepi | 35fcf31607904aaff4b766a87e1328ff13866585 | [
"Apache-2.0"
] | 2 | 2018-09-06T21:30:01.000Z | 2018-09-06T21:30:08.000Z | lib/grovepi/registry/subscriber.ex | schainks/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | null | null | null | lib/grovepi/registry/subscriber.ex | schainks/grovepi | 2de21f12a2ab28f9788a2add4c6409871e098479 | [
"Apache-2.0"
] | null | null | null | defmodule GrovePi.Registry.Subscriber do
@moduledoc false
@type event :: atom
@type package :: any
@type registration :: {GrovePi.pin, event}
@type message :: {GrovePi.pin, event, package}
@spec start_link(Registry.registry) :: Supervisor.on_start
def start_link(prefix, opts \\ []) do
opts = Keyword... | 29.8125 | 70 | 0.685535 |
1a1a2f4a1a3022913a3eb8715515996481a4b946 | 1,663 | ex | Elixir | lib/phoenix_live_view/controller.ex | smeade/phoenix_live_view | c981846c1e350bc689c28b4cbdaeffe1e30240b2 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/controller.ex | smeade/phoenix_live_view | c981846c1e350bc689c28b4cbdaeffe1e30240b2 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/controller.ex | smeade/phoenix_live_view | c981846c1e350bc689c28b4cbdaeffe1e30240b2 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Controller do
@moduledoc """
The Controller for LiveView rendering.
"""
alias Phoenix.LiveView
alias Phoenix.LiveView.Socket
@doc """
Renders a live view from a Plug request and sends an HTML response.
Before render the `@live_module` assign will be added to the
connectio... | 27.716667 | 95 | 0.622971 |
1a1a3269caf00e9a400cf87e63c951bdf2a0ba33 | 5,233 | exs | Elixir | test/ink_test.exs | spatrik/ink | e187777a022033d698eab594e4eeed66151e2f14 | [
"MIT"
] | 57 | 2017-04-17T09:40:48.000Z | 2022-02-07T09:04:13.000Z | test/ink_test.exs | spatrik/ink | e187777a022033d698eab594e4eeed66151e2f14 | [
"MIT"
] | 40 | 2017-07-13T08:45:56.000Z | 2022-03-31T08:08:25.000Z | test/ink_test.exs | spatrik/ink | e187777a022033d698eab594e4eeed66151e2f14 | [
"MIT"
] | 20 | 2017-07-12T08:41:34.000Z | 2022-03-30T18:52:41.000Z | defmodule InkTest do
use ExUnit.Case, async: false
require Logger
setup do
{:ok, _} = Logger.add_backend(Ink)
Logger.configure_backend(Ink, io_device: self())
on_exit(fn ->
Logger.flush()
Logger.remove_backend(Ink)
end)
end
test "it can be configured" do
Logger.configure_ba... | 28.911602 | 80 | 0.632524 |
1a1a5355dfc9918cd25efd89ab064672751ddc1d | 2,126 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/pivot_header_entry.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/pivot_header_entry.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/pivot_header_entry.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.37037 | 151 | 0.737535 |
1a1a5b6c3bf74bc2855f22f5e8a45120d46e2c69 | 119 | exs | Elixir | test/fixtures.exs | obmarg/exunit_fixtures | eaa4fef4dbcb1ef5c6b990c21515bb891f38743c | [
"MIT"
] | 14 | 2015-12-24T23:48:59.000Z | 2019-05-09T17:50:57.000Z | test/fixtures.exs | brexhq/ex_unit_fixtures | fb93dffbd73687143f8199805891d3aba4ea1b49 | [
"MIT"
] | 34 | 2016-01-02T17:37:55.000Z | 2019-05-13T22:56:25.000Z | test/fixtures.exs | brexhq/ex_unit_fixtures | fb93dffbd73687143f8199805891d3aba4ea1b49 | [
"MIT"
] | 5 | 2016-01-18T15:31:48.000Z | 2019-05-10T23:24:31.000Z | defmodule TopLevelFixtures do
use ExUnitFixtures.FixtureModule
deffixture top_level_fixture do
:top
end
end
| 14.875 | 34 | 0.798319 |
1a1a5f5e90e405edddfa07c6bd3061caa7885fc9 | 5,263 | exs | Elixir | lib/mix/test/mix/tasks/help_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/mix/test/mix/tasks/help_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/mix/test/mix/tasks/help_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.HelpTest do
use MixTest.Case
import ExUnit.CaptureIO
test "help lists all tasks", context do
in_tmp(context.test, fn ->
Mix.Tasks.Help.run([])
assert_received {:mix_shell, :info, ["mix" <> _]}
assert_received {:mix_sh... | 25.79902 | 97 | 0.573057 |
1a1a5fe771f0b1921e7ed1c75da945c2a7d4098b | 1,223 | exs | Elixir | priv/repo/migrations/20191110170227_create_loan_products.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191110170227_create_loan_products.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191110170227_create_loan_products.exs | oryono/banking | 0a49ebae5ebf93a6db0c24476a1c86c60bb72733 | [
"MIT"
] | null | null | null | defmodule BankingGraph.Repo.Migrations.CreateLoanProducts do
use Ecto.Migration
def change do
create table(:loan_products) do
add :name, :string
add :client_id, references(:clients), null: false
add :interest_method, :string
add :interest_rate, :decimal, ... | 42.172414 | 70 | 0.632052 |
1a1a831d2cf49bbf33de587a371672bcadc1b0c6 | 105 | ex | Elixir | lib/sanbase_web/admin/tag.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/admin/tag.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/admin/tag.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.ExAdmin.Tag do
use ExAdmin.Register
register_resource Sanbase.Tag do
end
end
| 15 | 35 | 0.8 |
1a1a8eb0e0db2865257e94ad87003ec0252d0152 | 460 | ex | Elixir | lib/policr_mini_web/views/admin/api/term_view.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | lib/policr_mini_web/views/admin/api/term_view.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | lib/policr_mini_web/views/admin/api/term_view.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMiniWeb.Admin.API.TermView do
@moduledoc """
渲染后台服务条款数据。
"""
use PolicrMiniWeb, :view
@spec render(String.t(), map()) :: map()
def render("term.json", %{term: term}) do
term |> Map.drop([:__meta__]) |> Map.from_struct()
end
def render("index.json", %{term: term}) do
term = ren... | 20 | 54 | 0.617391 |
1a1a94315f8cb5768a09dd27fc96c0a848182c03 | 4,623 | exs | Elixir | test/oban/config_test.exs | superhawk610/oban | 9e87ca0e45451efee05db1d430739d348c67acdb | [
"Apache-2.0"
] | null | null | null | test/oban/config_test.exs | superhawk610/oban | 9e87ca0e45451efee05db1d430739d348c67acdb | [
"Apache-2.0"
] | null | null | null | test/oban/config_test.exs | superhawk610/oban | 9e87ca0e45451efee05db1d430739d348c67acdb | [
"Apache-2.0"
] | null | null | null | defmodule Oban.ConfigTest do
use Oban.Case, async: true
alias Oban.Config
alias Oban.Plugins.Pruner
describe "start_link/1" do
test "a config struct is stored for retreival" do
conf = Config.new(repo: Repo)
{:ok, pid} = Config.start_link(conf: conf)
assert %Config{} = Config.get(pid)
... | 29.075472 | 81 | 0.651525 |
1a1acfa6cd0adef06cbf665223791975ecb8a946 | 2,327 | ex | Elixir | lib/sanbase/external_services/coinmarketcap/price_point.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/external_services/coinmarketcap/price_point.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/external_services/coinmarketcap/price_point.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.ExternalServices.Coinmarketcap.PricePoint do
alias Sanbase.Influxdb.Measurement
alias Sanbase.Model.Project
@volume_usd_limit 500_000_000_000
@prices_source "coinmarketcap"
defstruct [
:ticker,
:slug,
:datetime,
:marketcap_usd,
:volume_usd,
:price_usd,
:price_btc... | 23.989691 | 95 | 0.652772 |
1a1ad39be5feb576117a4626d2329e820a7103bf | 1,831 | ex | Elixir | clients/webmaster/lib/google_api/webmaster/v3/model/wmx_sitemap_content.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/webmaster/lib/google_api/webmaster/v3/model/wmx_sitemap_content.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/webmaster/lib/google_api/webmaster/v3/model/wmx_sitemap_content.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 ... | 34.54717 | 133 | 0.712725 |
1a1b27f77b875132129c95b3f58c75606328532b | 1,006 | exs | Elixir | test/monad_test.exs | rob-brown/MonadEx | a8b15e3207c0efa53749c4574496da70a6ca8f9d | [
"MIT"
] | 325 | 2015-03-03T01:44:05.000Z | 2022-03-25T20:29:58.000Z | test/monad_test.exs | rob-brown/MonadEx | a8b15e3207c0efa53749c4574496da70a6ca8f9d | [
"MIT"
] | 11 | 2015-05-29T13:33:20.000Z | 2021-05-11T13:48:14.000Z | test/monad_test.exs | rob-brown/MonadEx | a8b15e3207c0efa53749c4574496da70a6ca8f9d | [
"MIT"
] | 17 | 2015-04-18T09:46:50.000Z | 2019-11-12T21:28:21.000Z | defmodule Monad.Test do
use ExUnit.Case, async: true
use Monad.Operators
import Curry
doctest Monad.Operators
doctest Monad.Behaviour
test "bind" do
assert 42 ~>> &(&1 == 42)
assert 42 ~>> &(&1 * 2 == 84)
assert 42 ~>> &(&1 * &1 == 1764)
end
test "fmap one" do
assert (& &1) <|> 42 == ... | 19.72549 | 65 | 0.511928 |
1a1b43c13d6b4237ccd65b67dc3e5f8381a55575 | 1,515 | ex | Elixir | clients/partners/lib/google_api/partners/v2/model/log_message_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/model/log_message_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/model/log_message_response.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... | 31.5625 | 103 | 0.763696 |
1a1b5a57ef3450cb5cdd422a19b4a10633ffe11e | 189 | ex | Elixir | lib/syscrap/mocks/ssh.ex | elpulgardelpanda/syscrap | 03e5dee924df8cd69db4eddb1e557168ea0ee04f | [
"MIT"
] | null | null | null | lib/syscrap/mocks/ssh.ex | elpulgardelpanda/syscrap | 03e5dee924df8cd69db4eddb1e557168ea0ee04f | [
"MIT"
] | null | null | null | lib/syscrap/mocks/ssh.ex | elpulgardelpanda/syscrap | 03e5dee924df8cd69db4eddb1e557168ea0ee04f | [
"MIT"
] | null | null | null | alias Syscrap.Helpers.Metadata, as: HM
defmodule Syscrap.Mocks.SSHExAllOK do
def connect(any) do
%{args: any} |> HM.add_in([:test, SSHExAllOK, :connect])
{:ok, :bogus}
end
end
| 21 | 60 | 0.677249 |
1a1b831128c302dfc000631a0cf63399f9576bcf | 11,121 | ex | Elixir | lib/nadia/model.ex | angordeyev/nadia | e57b45d1d73be195604e56f4e08fe7ce757518b9 | [
"MIT"
] | 386 | 2015-08-20T21:48:07.000Z | 2022-03-06T21:08:19.000Z | lib/nadia/model.ex | angordeyev/nadia | e57b45d1d73be195604e56f4e08fe7ce757518b9 | [
"MIT"
] | 146 | 2015-09-19T07:13:56.000Z | 2022-03-24T20:02:02.000Z | lib/nadia/model.ex | cplotter/nadia | a3cb8f8249903a76cbff281c0773087a437df215 | [
"MIT"
] | 107 | 2015-10-23T09:02:13.000Z | 2022-02-07T19:46:15.000Z | defmodule Nadia.Model do
@moduledoc """
Types used in Telegram Bot API.
## Reference
https://core.telegram.org/bots/api#available-types
"""
defmodule User do
defstruct id: nil, first_name: nil, last_name: nil, username: nil
@type t :: %User{id: integer, first_name: binary, last_name: binary, usern... | 27.664179 | 96 | 0.551209 |
1a1bab6c78994cca7b2229fc5949b57702cadc63 | 490 | ex | Elixir | lib/matrex_web/plugs/require_access_token.ex | bismark/matrex | a92249733c2224507d9117b4b50bdc23fa8712b6 | [
"MIT"
] | 36 | 2016-12-10T10:17:25.000Z | 2022-01-20T03:58:12.000Z | lib/matrex_web/plugs/require_access_token.ex | bismark/matrex | a92249733c2224507d9117b4b50bdc23fa8712b6 | [
"MIT"
] | null | null | null | lib/matrex_web/plugs/require_access_token.ex | bismark/matrex | a92249733c2224507d9117b4b50bdc23fa8712b6 | [
"MIT"
] | 10 | 2016-12-24T14:06:52.000Z | 2022-01-20T03:59:17.000Z | defmodule MatrexWeb.Plugs.RequireAccessToken do
alias Plug.Conn
import Matrex.Validation
import MatrexWeb.Errors
def init(options), do: options
def call(conn, _options) do
res = required(:access_token, conn.query_params, %{}, type: :string)
with {:ok, %{access_token: access_token}} <- res do
... | 22.272727 | 72 | 0.65102 |
1a1bd56b5a0aa2c962f0413443e7be1e0e9be545 | 646 | ex | Elixir | lib/mayo/access.ex | tommy351/mayo | 59df8af91eb12a9a289ca6e699ef4cd1f130d9ed | [
"MIT"
] | 1 | 2016-09-09T09:00:35.000Z | 2016-09-09T09:00:35.000Z | lib/mayo/access.ex | tommy351/mayo | 59df8af91eb12a9a289ca6e699ef4cd1f130d9ed | [
"MIT"
] | null | null | null | lib/mayo/access.ex | tommy351/mayo | 59df8af91eb12a9a289ca6e699ef4cd1f130d9ed | [
"MIT"
] | null | null | null | defprotocol Mayo.Access do
def fetch(value, key)
def get(value, key)
def put(value, key, new)
def delete(value, key)
def keys(value)
end
defimpl Mayo.Access, for: Map do
defdelegate fetch(value, key), to: Map
defdelegate get(value, key), to: Map
defdelegate put(value, key, new), to: Map
defdelegate d... | 26.916667 | 47 | 0.713622 |
1a1c00af0c245e12567cc3c41ba10ca4d63e8cc8 | 8,512 | exs | Elixir | .credo.exs | johnf9896/parquex | 5251e6ef7166bca2e9f021b8cecc912a7b616d71 | [
"MIT"
] | null | null | null | .credo.exs | johnf9896/parquex | 5251e6ef7166bca2e9f021b8cecc912a7b616d71 | [
"MIT"
] | null | null | null | .credo.exs | johnf9896/parquex | 5251e6ef7166bca2e9f021b8cecc912a7b616d71 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 40.341232 | 99 | 0.586584 |
1a1c0ccb62c1535e68d0b2ce4d7cddafb871cea6 | 1,247 | ex | Elixir | lib/quick_polls/web/views/error_helpers.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | lib/quick_polls/web/views/error_helpers.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | 6 | 2017-04-10T05:01:04.000Z | 2017-04-21T06:02:03.000Z | lib/quick_polls/web/views/error_helpers.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | defmodule QuickPolls.Web.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(e... | 30.414634 | 80 | 0.670409 |
1a1c131eeb86836b80d1e3074a1294e9ab411ae0 | 57 | exs | Elixir | test/credo/task_group_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/task_group_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/task_group_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | defmodule Credo.TaskRunnerTest do
use ExUnit.Case
end
| 11.4 | 33 | 0.807018 |
1a1c84541fd0917e56cf1c4101922bc5a083fcae | 1,115 | exs | Elixir | config/config.exs | joshnuss/guzzle | 560ccda34de6547c26c8efbcb478a6506546b24c | [
"MIT"
] | 4 | 2015-02-10T07:06:10.000Z | 2020-01-14T23:19:54.000Z | config/config.exs | joshnuss/guzzle | 560ccda34de6547c26c8efbcb478a6506546b24c | [
"MIT"
] | 1 | 2015-02-10T07:08:06.000Z | 2015-02-10T08:45:36.000Z | config/config.exs | joshnuss/guzzle | 560ccda34de6547c26c8efbcb478a6506546b24c | [
"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... | 35.967742 | 73 | 0.750673 |
1a1c914615dae1ca0be4986a38b435565a908420 | 515 | exs | Elixir | test/crypto_exchanges/adapters/poloniex_adapter_test.exs | sbrink/crypto_exchanges_elixir | 0d500f9129e27b3ab24b59118b88c4d1cbdbec11 | [
"MIT"
] | 12 | 2017-10-01T10:37:11.000Z | 2019-08-09T07:02:02.000Z | test/crypto_exchanges/adapters/poloniex_adapter_test.exs | sbrink/crypto_exchanges_elixir | 0d500f9129e27b3ab24b59118b88c4d1cbdbec11 | [
"MIT"
] | 1 | 2017-10-02T21:43:40.000Z | 2017-10-08T18:37:19.000Z | test/crypto_exchanges/adapters/poloniex_adapter_test.exs | sbrink/crypto_exchanges_elixir | 0d500f9129e27b3ab24b59118b88c4d1cbdbec11 | [
"MIT"
] | null | null | null | defmodule CryptoExchanges.PoloniexAdapterTest do
use CryptoExchanges.AdapterCase
@adapter CryptoExchanges.PoloniexAdapter
describe "#get_info" do
test "returns an info struct" do
assert_exchange_info @adapter.get_info()
end
end
describe "#get_currencies" do
test "get the list" do
us... | 25.75 | 126 | 0.730097 |
1a1c9e8d49f1aef27114450a352f2c30d60e8ca5 | 21,343 | ex | Elixir | lib/elixir/lib/protocol.ex | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/protocol.ex | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/protocol.ex | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | defmodule Protocol do
@moduledoc """
Functions for working with protocols.
"""
@doc """
Defines a new protocol function.
Protocols do not allow functions to be defined directly, instead, the
regular `Kernel.def/*` macros are replaced by this macro which
defines the protocol functions with the appropri... | 30.102962 | 97 | 0.637914 |
1a1caf5c868856975355904729ea6ec6f9418dce | 534 | exs | Elixir | grade-school/school.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | grade-school/school.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | grade-school/school.exs | wobh/xelixir | 63e5beec40d5c441cf6cf87f30c29848f481bb1b | [
"MIT"
] | null | null | null | defmodule School do
@moduledoc """
Simulate students in a school.
Each student is in a grade.
"""
@doc """
Add a student to a particular grade in school.
"""
@spec add(Dict.t, String.t, pos_integer) :: Dict.t
def add(db, name, grade) do
end
@doc """
Return the names of the students in a part... | 16.6875 | 57 | 0.623596 |
1a1cb4338af7eca0034268f2fd46c02292369ded | 4,575 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_annotated_dataset.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_annotated_dataset.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_annotated_dataset.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... | 48.670213 | 218 | 0.72153 |
1a1cc13010e9d4a268c2d16a61b43232e7ad43f0 | 13,528 | ex | Elixir | lib/guardian/permissions.ex | koobob/guardian | 694e546b7c76d7416bf101d687effec4885a4480 | [
"MIT"
] | null | null | null | lib/guardian/permissions.ex | koobob/guardian | 694e546b7c76d7416bf101d687effec4885a4480 | [
"MIT"
] | null | null | null | lib/guardian/permissions.ex | koobob/guardian | 694e546b7c76d7416bf101d687effec4885a4480 | [
"MIT"
] | null | null | null | defmodule Guardian.Permissions do
@moduledoc """
An optional plugin to Guardian to provide permissions for your tokens
These can be used for any token types since they only work on the `claims`.
Permissions are set on a per implementation module basis.
Each implementation module can have their own sets.
P... | 35.883289 | 108 | 0.656047 |
1a1d0f2c49519fc6bc109caeac18c15b87327c97 | 378 | ex | Elixir | ChatRoomServer/chat_room_server/lib/server/room_registry_supervisor.ex | GameEssa/ChatRoom | 13cc75e3fecfdd692246df2eab84eba73b6761e3 | [
"MIT"
] | null | null | null | ChatRoomServer/chat_room_server/lib/server/room_registry_supervisor.ex | GameEssa/ChatRoom | 13cc75e3fecfdd692246df2eab84eba73b6761e3 | [
"MIT"
] | null | null | null | ChatRoomServer/chat_room_server/lib/server/room_registry_supervisor.ex | GameEssa/ChatRoom | 13cc75e3fecfdd692246df2eab84eba73b6761e3 | [
"MIT"
] | null | null | null | defmodule RoomRegistry.Supervisor do
use Supervisor
def start_link( opts ) do
Supervisor.start_link( __MODULE__, :ok, opts )
end
def init( :ok ) do
children = [
{ DynamicSupervisor, strategy: :one_for_one , name: RoomRegistry.Supervisor},
{ RoomRegistry, name: RoomRegistry}
]
Su... | 19.894737 | 83 | 0.687831 |
1a1d51af086ccc310b6422b1d464d3d85021b393 | 8,220 | ex | Elixir | lib/rabbit/connection.ex | suitepad-gmbh/rabbit | c6ba3cbca6b49362c3a9dd32d3af001a1de750ad | [
"MIT"
] | 36 | 2019-06-05T02:27:11.000Z | 2022-02-27T22:01:27.000Z | lib/rabbit/connection.ex | suitepad-gmbh/rabbit | c6ba3cbca6b49362c3a9dd32d3af001a1de750ad | [
"MIT"
] | 41 | 2019-06-06T07:50:20.000Z | 2021-08-02T10:18:08.000Z | lib/rabbit/connection.ex | suitepad-gmbh/rabbit | c6ba3cbca6b49362c3a9dd32d3af001a1de750ad | [
"MIT"
] | 2 | 2021-01-13T16:13:05.000Z | 2021-04-09T13:22:19.000Z | defmodule Rabbit.Connection do
@moduledoc """
A RabbitMQ connection pool process.
Connections form the basis of any application that is working with RabbitMQ. A
connection module is needed by all the other modules included with Rabbit. They
wrap around the standard `AMQP.Connection` and provide the following... | 34.830508 | 118 | 0.650487 |
1a1d69d6d5b8e336975618172f39b9a84da2d924 | 865 | exs | Elixir | phoenix_example/config/config.exs | saraid/rb-phoenix-socket | 90558ced343763621a99e361cbb92e8e3c1d6d1d | [
"MIT"
] | 9 | 2017-09-21T17:28:02.000Z | 2019-09-19T11:13:07.000Z | phoenix_example/config/config.exs | saraid/rb-phoenix-socket | 90558ced343763621a99e361cbb92e8e3c1d6d1d | [
"MIT"
] | 2 | 2017-09-24T00:26:45.000Z | 2021-03-04T15:54:11.000Z | phoenix_example/config/config.exs | saraid/rb-phoenix-socket | 90558ced343763621a99e361cbb92e8e3c1d6d1d | [
"MIT"
] | 1 | 2021-04-08T23:14:22.000Z | 2021-04-08T23:14:22.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :spec_example, SpecExampleWeb.Endpoint,
url: [host... | 36.041667 | 86 | 0.766474 |
1a1d722ec8e68c319f01f3eef1c34a44a58a01c7 | 579 | exs | Elixir | test/authoritex/getty/aat_test.exs | nulib/authoritex | a9b277e20873a886e2578f14f58acb277a501f01 | [
"MIT"
] | 2 | 2020-06-11T10:37:21.000Z | 2020-10-13T18:12:42.000Z | test/authoritex/getty/aat_test.exs | nulib/authoritex | a9b277e20873a886e2578f14f58acb277a501f01 | [
"MIT"
] | 21 | 2020-05-12T21:06:32.000Z | 2022-01-14T14:43:45.000Z | test/authoritex/getty/aat_test.exs | nulib/authoritex | a9b277e20873a886e2578f14f58acb277a501f01 | [
"MIT"
] | null | null | null | defmodule Authoritex.Getty.AATTest do
alias Authoritex.Getty.AAT
use Authoritex.TestCase,
module: AAT,
code: "aat",
description: "Getty Art & Architecture Thesaurus (AAT)",
test_uris: [
"http://vocab.getty.edu/aat/300265149",
"aat:300265149"
],
bad_uri: "http://vocab.getty.edu/a... | 26.318182 | 60 | 0.639033 |
1a1d84778fd5828c6bb400e1a0b94f6c2a5a5df0 | 7,717 | ex | Elixir | lib/mix/lib/mix/compilers/elixir.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Elixir do
@moduledoc false
@manifest_vsn :v2
@doc """
Compiles stale Elixir files.
It expects a manifest file, the source directories, the extensions
to read in sources, the destination directory, a flag to know if
compilation is being forced or not and a callback to be invoked
... | 29.011278 | 98 | 0.616561 |
1a1dd8bb3103421e8f276beb03b4ed070f724ece | 13,542 | ex | Elixir | apps/log_watcher/lib/log_watcher/tasks.ex | pzingg/log_watcher | 9260b1ec79a3a211a18b8214b33be918ebf77141 | [
"MIT"
] | 1 | 2021-11-03T03:26:44.000Z | 2021-11-03T03:26:44.000Z | apps/log_watcher/lib/log_watcher/tasks.ex | pzingg/log_watcher | 9260b1ec79a3a211a18b8214b33be918ebf77141 | [
"MIT"
] | null | null | null | apps/log_watcher/lib/log_watcher/tasks.ex | pzingg/log_watcher | 9260b1ec79a3a211a18b8214b33be918ebf77141 | [
"MIT"
] | null | null | null | defmodule LogWatcher.Tasks do
@moduledoc """
A context for managing Oban jobs, sessions and tasks.
"""
import Ecto.Query
alias LogWatcher.Repo
alias LogWatcher.Tasks.{Session, Task}
require Logger
## Oban.Jobs in database
@spec list_jobs(String.t()) :: [Oban.Job.t()]
def list_jobs(queue_name \\ "... | 33.110024 | 108 | 0.658839 |
1a1df0e778f1408b1814b57ed35b1c8de5ac6753 | 9,881 | ex | Elixir | lib/mongo/topology.ex | wizardone/mongodb | 94d060a0d4f4ef8a805b4b5be31d0007cb83b2f4 | [
"Apache-2.0"
] | null | null | null | lib/mongo/topology.ex | wizardone/mongodb | 94d060a0d4f4ef8a805b4b5be31d0007cb83b2f4 | [
"Apache-2.0"
] | null | null | null | lib/mongo/topology.ex | wizardone/mongodb | 94d060a0d4f4ef8a805b4b5be31d0007cb83b2f4 | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.Topology do
@moduledoc false
use GenServer
alias Mongo.Events.{
ServerDescriptionChangedEvent,
ServerOpeningEvent,
ServerClosedEvent,
TopologyDescriptionChangedEvent,
TopologyOpeningEvent,
TopologyClosedEvent
}
alias Mongo.TopologyDescription
alias Mongo.ServerDesc... | 27.677871 | 190 | 0.632831 |
1a1df366b6856b661ad2696e0b59609a115d4b32 | 200 | ex | Elixir | lib/credit_statistic.ex | karlosmid/exkeycdn | 4f8a756b2ea7b5bcb2d2821509250004ed8850ea | [
"MIT"
] | null | null | null | lib/credit_statistic.ex | karlosmid/exkeycdn | 4f8a756b2ea7b5bcb2d2821509250004ed8850ea | [
"MIT"
] | null | null | null | lib/credit_statistic.ex | karlosmid/exkeycdn | 4f8a756b2ea7b5bcb2d2821509250004ed8850ea | [
"MIT"
] | null | null | null | defmodule ExKeyCDN.CreditStatistic do
@moduledoc """
Client api for https://www.ExKeyCDN.com/api#reports-api
"""
defstruct amount: 0,
type: "traffic",
timestamp: 0
end
| 22.222222 | 57 | 0.635 |
1a1e2c69c30500457d2da28307f9a68ff5e6bbf0 | 1,745 | ex | Elixir | clients/app_engine/lib/google_api/app_engine/v1/model/error_handler.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/app_engine/lib/google_api/app_engine/v1/model/error_handler.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/app_engine/lib/google_api/app_engine/v1/model/error_handler.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.924528 | 108 | 0.710029 |
1a1e52ce00a719dabc4ffdf1111d8a54858c3221 | 1,446 | exs | Elixir | apps/montreal_elixir/mix.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | apps/montreal_elixir/mix.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | apps/montreal_elixir/mix.exs | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | defmodule MontrealElixir.Mixfile do
use Mix.Project
def project do
[
app: :montreal_elixir,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6.4",
elixirc_path... | 27.807692 | 90 | 0.614799 |
1a1e79eacc42bce463774c174df0c19c57bcd418 | 5,867 | exs | Elixir | services/interop-proxy/test/interop_proxy/request_test.exs | uavaustin/orchestra | b2b60253723caa2f265139f89d4cd3f2d1ba805f | [
"MIT"
] | 1 | 2020-10-08T14:37:36.000Z | 2020-10-08T14:37:36.000Z | services/interop-proxy/test/interop_proxy/request_test.exs | uavaustin/orchestra | b2b60253723caa2f265139f89d4cd3f2d1ba805f | [
"MIT"
] | 33 | 2017-10-31T22:36:42.000Z | 2021-01-10T22:15:54.000Z | services/interop-proxy/test/interop_proxy/request_test.exs | uavaustin/orchestra | b2b60253723caa2f265139f89d4cd3f2d1ba805f | [
"MIT"
] | 3 | 2018-10-07T21:36:02.000Z | 2020-02-07T01:13:53.000Z | defmodule InteropProxy.RequestTest do
use ExUnit.Case
alias InteropProxy.Request
alias InteropProxy.TestHelper
import TestHelper, only: [url: 0, username: 0, password: 0, mission_id: 0]
test "log in successfully" do
{:ok, _, cookie} = Request.login url(), username(), password()
assert is_binary(co... | 29.631313 | 78 | 0.607636 |
1a1ea77f0988b57526ec5c96b20e5e475ac06e3c | 6,226 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_content_details.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_content_details.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_content_details.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 64.185567 | 503 | 0.750402 |
1a1ebf325a72513623690d9894a0706956cc5aaa | 36,932 | ex | Elixir | lib/iex/lib/iex/helpers.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/helpers.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex/helpers.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | defmodule IEx.Helpers do
@moduledoc """
Welcome to Interactive Elixir. You are currently
seeing the documentation for the module `IEx.Helpers`
which provides many helpers to make Elixir's shell
more joyful to work with.
This message was triggered by invoking the helper `h()`,
usually referred to as `h/0`... | 27.623037 | 97 | 0.641368 |
1a1edd11a5085698af668b8fc62a00cfcba850b4 | 3,128 | exs | Elixir | test/telemetry_metrics_statsd/formatter/datadog_test.exs | cristopher-rodrigues/telemetry_metrics_statsd | c533b3a10fa298abb5a4db89b1a30a4de88f838e | [
"MIT"
] | 51 | 2019-09-18T15:54:15.000Z | 2022-01-19T08:41:37.000Z | test/telemetry_metrics_statsd/formatter/datadog_test.exs | cristopher-rodrigues/telemetry_metrics_statsd | c533b3a10fa298abb5a4db89b1a30a4de88f838e | [
"MIT"
] | 33 | 2019-09-30T20:58:28.000Z | 2022-02-08T15:20:24.000Z | test/telemetry_metrics_statsd/formatter/datadog_test.exs | cristopher-rodrigues/telemetry_metrics_statsd | c533b3a10fa298abb5a4db89b1a30a4de88f838e | [
"MIT"
] | 20 | 2019-12-08T16:07:49.000Z | 2022-02-28T11:57:11.000Z | defmodule TelemetryMetricsStatsd.Formatter.DatadogTest do
use ExUnit.Case, async: true
import TelemetryMetricsStatsd.Test.Helpers
alias TelemetryMetricsStatsd.Formatter.Datadog
test "counter update is formatted as a Datadog counter with 1 as a value" do
m = given_counter("my.awesome.metric")
assert ... | 31.59596 | 85 | 0.66624 |
1a1f27ed9e4241dd4bc4eaef57d231a6ad74aa82 | 1,090 | ex | Elixir | lib/phoenix/socket/message.ex | benjamintanweihao/phoenix | eb4ef03852f447d67cd61355753147c39b520e1f | [
"MIT"
] | null | null | null | lib/phoenix/socket/message.ex | benjamintanweihao/phoenix | eb4ef03852f447d67cd61355753147c39b520e1f | [
"MIT"
] | null | null | null | lib/phoenix/socket/message.ex | benjamintanweihao/phoenix | eb4ef03852f447d67cd61355753147c39b520e1f | [
"MIT"
] | null | null | null | defmodule Phoenix.Socket.Message do
@moduledoc """
Defines a `Phoenix.Socket` Message dispatched over channels.
The Message format requires the following keys:
* topic - The String topic or topic:subtopic pair namespace, ie "messages", "messages:123"
* event - The String event name, ie "join"
* pay... | 26.585366 | 94 | 0.661468 |
1a1f4871a7cd970f5bacb00dafe46e521307e187 | 1,963 | ex | Elixir | apps/thundermoon_web/lib/thundermoon_web/live/shared/entity_form.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 10 | 2019-08-02T06:41:23.000Z | 2022-03-09T16:12:30.000Z | apps/thundermoon_web/lib/thundermoon_web/live/shared/entity_form.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 319 | 2019-06-11T20:16:26.000Z | 2022-03-09T16:24:22.000Z | apps/thundermoon_web/lib/thundermoon_web/live/shared/entity_form.ex | grrrisu/thundermoon-mvp | 17939d51c7b07216dfd63ba1b2ba53d56f94a48d | [
"MIT"
] | 4 | 2019-08-15T19:52:07.000Z | 2021-12-02T14:52:54.000Z | defmodule ThundermoonWeb.Component.EntityForm do
defmacro __using__(opts) do
# "vegetation"
params_name = opts[:params_name]
# LotkaVolterra.Vegetation -> %Vegetation{}
model = opts[:model]
# Thundermoon.LotkaVolterra.VegetationFormData
form_data = opts[:form_data]
quote do
use Thun... | 27.263889 | 98 | 0.598574 |
1a1f6eda0ae8e05fcec5c12e18ed68c1c2f266b4 | 54 | exs | Elixir | lib/mix/test/fixtures/configs/recursive.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/test/fixtures/configs/recursive.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/mix/test/fixtures/configs/recursive.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | use Mix.Config
import_config "imports_recursive.exs"
| 13.5 | 37 | 0.833333 |
1a1f74ba9a30b84a4c8fc47ecfcbaa1bb4afe598 | 3,679 | ex | Elixir | clients/plus/lib/google_api/plus/v1/model/activity_object_attachments.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/plus/lib/google_api/plus/v1/model/activity_object_attachments.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/plus/lib/google_api/plus/v1/model/activity_object_attachments.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.053333 | 224 | 0.708073 |
1a1f8de83b461029aa56826ff51719ba6209b73e | 328 | ex | Elixir | lib/twitterz_phx/tweets/tweet.ex | eendroroy/twitterz_phx | 2611b344bc6216c45c3be8a6352a9405ea643d6b | [
"MIT"
] | 1 | 2019-04-08T04:49:52.000Z | 2019-04-08T04:49:52.000Z | lib/twitterz_phx/tweets/tweet.ex | eendroroy/twitterz_phx | 2611b344bc6216c45c3be8a6352a9405ea643d6b | [
"MIT"
] | null | null | null | lib/twitterz_phx/tweets/tweet.ex | eendroroy/twitterz_phx | 2611b344bc6216c45c3be8a6352a9405ea643d6b | [
"MIT"
] | null | null | null | defmodule TwitterZPhx.Tweets.Tweet do
use Ecto.Schema
import Ecto.Changeset
schema "tweets" do
field :body, :string
belongs_to :user, User
timestamps()
end
@doc false
def changeset(tweet, attrs) do
tweet
|> cast(attrs, [:user_id, :body])
|> validate_required([:user_id, :body])
... | 16.4 | 43 | 0.658537 |
1a1f8f719373cc862532b4eb57478c350e07a440 | 9,826 | exs | Elixir | test/interval_test.exs | michaeljguarino/timex | 5107429429bbad4b42cefa48718bf11512c9e0f0 | [
"MIT"
] | null | null | null | test/interval_test.exs | michaeljguarino/timex | 5107429429bbad4b42cefa48718bf11512c9e0f0 | [
"MIT"
] | null | null | null | test/interval_test.exs | michaeljguarino/timex | 5107429429bbad4b42cefa48718bf11512c9e0f0 | [
"MIT"
] | null | null | null | defmodule IntervalTests do
use ExUnit.Case, async: true
use Timex
alias Timex.Duration
doctest Timex.Interval
describe "new/1" do
test "returns an Interval when given no options" do
assert %Interval{} = Interval.new()
end
test "returns an Interval when given a valid step unit" do
as... | 38.233463 | 95 | 0.646346 |
1a1f909fc1d5016991d4a5ff4670060992f8a37f | 14,734 | ex | Elixir | lib/libpe/optional_header.ex | elixir-desktop/libpe | c7e84e7d35b5ab7661691a2282b44ca2268eec39 | [
"MIT"
] | null | null | null | lib/libpe/optional_header.ex | elixir-desktop/libpe | c7e84e7d35b5ab7661691a2282b44ca2268eec39 | [
"MIT"
] | 1 | 2022-03-02T14:35:50.000Z | 2022-03-02T14:35:50.000Z | lib/libpe/optional_header.ex | elixir-desktop/libpe | c7e84e7d35b5ab7661691a2282b44ca2268eec39 | [
"MIT"
] | null | null | null | defmodule LibPE.OptionalHeader do
@moduledoc false
alias LibPE.OptionalHeader
defstruct [
:magic,
:major_linker_version,
:minor_linker_version,
:size_of_code,
:size_of_initialized_data,
:size_of_uninitialized_data,
:address_of_entrypoint,
:base_of_code,
# only for PE
:base... | 40.814404 | 97 | 0.696416 |
1a1f9768a027845c9ff7b5092f3c964206492a74 | 198 | ex | Elixir | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/CaptureOperator.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/at_bracket_operation_parsing_test_case/CaptureOperator.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/at_bracket_operation_parsing_test_case/CaptureOperator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @Module.&[key: value]
@Module.& [key: value]
@Module.&[()]
@Module.& [()]
@Module.&[matched_expression]
@Module.& [matched_expression]
@Module.&[matched_expression,]
@Module.& [matched_expression,]
| 22 | 31 | 0.686869 |
1a1f987f83a691e18217997a5cce26cd5a55a736 | 878 | ex | Elixir | builder-0.0.1/debian/prerm.ex | milindsingh/dev-shell-scripts | 1fbae838287bd504b0f401234cdcc4bdc5fafa53 | [
"MIT"
] | 11 | 2019-06-18T15:47:44.000Z | 2021-12-03T00:20:10.000Z | builder-0.0.1/debian/prerm.ex | milindsingh/dev-shell-scripts | 1fbae838287bd504b0f401234cdcc4bdc5fafa53 | [
"MIT"
] | null | null | null | builder-0.0.1/debian/prerm.ex | milindsingh/dev-shell-scripts | 1fbae838287bd504b0f401234cdcc4bdc5fafa53 | [
"MIT"
] | 1 | 2019-09-27T13:28:28.000Z | 2019-09-27T13:28:28.000Z | #!/bin/sh
# prerm script for builder
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version... | 22.512821 | 76 | 0.626424 |
1a1f9bd6c584a21171be10b3e7bd65ccf59b56f7 | 2,167 | ex | Elixir | lib/sanbase/cryptocompare/supervisor.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/cryptocompare/supervisor.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/cryptocompare/supervisor.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Cryptocompare.Supervisor do
use Supervisor
import Sanbase.ApplicationUtils
require Sanbase.Utils.Config, as: Config
alias Sanbase.Cryptocompare.{WebsocketScraper, HistoricalScheduler}
@spec start_link(Keyword.t()) :: Supervisor.on_start()
def start_link(opts) when is_list(opts) do
... | 29.684932 | 94 | 0.610521 |
1a1fa302edbf7b7ffc480d8a470f2b8942510f18 | 525 | ex | Elixir | samples/client/petstore/elixir/lib/openapi_petstore/model/has_only_read_only.ex | MalcolmScoffable/openapi-generator | 73605a0c0e0c825286c95123c63678ba75b44d5c | [
"Apache-2.0"
] | 11,868 | 2018-05-12T02:58:07.000Z | 2022-03-31T21:19:39.000Z | samples/client/petstore/elixir/lib/openapi_petstore/model/has_only_read_only.ex | MalcolmScoffable/openapi-generator | 73605a0c0e0c825286c95123c63678ba75b44d5c | [
"Apache-2.0"
] | 9,672 | 2018-05-12T14:25:43.000Z | 2022-03-31T23:59:30.000Z | samples/client/petstore/elixir/lib/openapi_petstore/model/has_only_read_only.ex | MalcolmScoffable/openapi-generator | 73605a0c0e0c825286c95123c63678ba75b44d5c | [
"Apache-2.0"
] | 4,776 | 2018-05-12T12:06:08.000Z | 2022-03-31T19:52:51.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OpenapiPetstore.Model.HasOnlyReadOnly do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"bar",
:"foo"
]
@type t :: ... | 18.75 | 91 | 0.664762 |
1a1fb2e99b66ed0fc4fd32f1a6614fcaa650f743 | 642 | ex | Elixir | lib/glimesh/jobs/start_stream_notifier.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/jobs/start_stream_notifier.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | lib/glimesh/jobs/start_stream_notifier.ex | MemoryLeakDeath/glimesh.tv | 1462c4b939da899f5e3f67c3f28850025d59a10f | [
"MIT"
] | null | null | null | defmodule Glimesh.Jobs.StartStreamNotifier do
@moduledoc false
@behaviour Rihanna.Job
def priority, do: 15
def perform([channel_id]) do
channel = Glimesh.ChannelLookups.get_channel!(channel_id)
users = Glimesh.ChannelLookups.list_live_subscribed_followers(channel)
full_channel = Glimesh.Repo.prelo... | 27.913043 | 89 | 0.732087 |
1a20081682c2c59d47244e2286f4662d5006d923 | 143 | ex | Elixir | lv_sample/lib/lv_sample_web/controllers/page_controller.ex | tetsuya-ishida/LiveView | 2a8290b3e0a4c735390b7d3d17ced36638406f54 | [
"Apache-2.0"
] | null | null | null | lv_sample/lib/lv_sample_web/controllers/page_controller.ex | tetsuya-ishida/LiveView | 2a8290b3e0a4c735390b7d3d17ced36638406f54 | [
"Apache-2.0"
] | null | null | null | lv_sample/lib/lv_sample_web/controllers/page_controller.ex | tetsuya-ishida/LiveView | 2a8290b3e0a4c735390b7d3d17ced36638406f54 | [
"Apache-2.0"
] | null | null | null | defmodule LvSampleWeb.PageController do
use LvSampleWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.875 | 39 | 0.741259 |
1a20110970c73a7102cead10ab3f1c4b6bee285e | 188 | exs | Elixir | apps/core/priv/repo/migrations/20200721215212_add_url_to_users.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | apps/core/priv/repo/migrations/20200721215212_add_url_to_users.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | apps/core/priv/repo/migrations/20200721215212_add_url_to_users.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | defmodule Legendary.Core.Repo.Migrations.AddUrlToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :homepage_url, :string, default: nil
end
end
end
| 18.8 | 57 | 0.718085 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.