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 sequence | 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 sequence | 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 sequence | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f70047e45b24ccabf7e84e6af6eadcc9c0ab0135 | 6,398 | ex | Elixir | lib/monex/result.ex | youroff/monex | fe7d78880e41dc946fc9e2e3a0a133f3b380a39a | [
"MIT"
] | 7 | 2016-12-25T08:26:08.000Z | 2021-08-15T01:23:53.000Z | lib/monex/result.ex | youroff/monex | fe7d78880e41dc946fc9e2e3a0a133f3b380a39a | [
"MIT"
] | null | null | null | lib/monex/result.ex | youroff/monex | fe7d78880e41dc946fc9e2e3a0a133f3b380a39a | [
"MIT"
] | 1 | 2020-09-07T06:59:55.000Z | 2020-09-07T06:59:55.000Z | defmodule MonEx.Result do
@moduledoc """
Result module provides Result type with utility functions.
"""
alias MonEx.Option
defmacro ok(res) do
quote do
{:ok, unquote(res)}
end
end
defmacro error(err) do
quote do
{:error, unquote(err)}
end
end
@typedoc """
Result type.... | 25.49004 | 104 | 0.571429 |
f700654e4685725725ead8db046a39c968e0c08c | 1,378 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/spell_result.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/spell_result.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"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/spell_result.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... | 29.319149 | 100 | 0.736575 |
f70074818b71a0cb48d3509586811e66e73a2243 | 2,338 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/location.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.53125 | 129 | 0.690761 |
f70093a50210d9ff8af12d10d872138bde6080a3 | 3,216 | exs | Elixir | test/espy_web/api_test.exs | XRPL-Labs/XRPL-Webhook | 4b4194d3263ff957bbd3d654aefe06d1225fa73d | [
"MIT"
] | 9 | 2019-02-22T10:33:28.000Z | 2021-02-27T20:26:03.000Z | test/espy_web/api_test.exs | XRPL-Labs/XRPL-Webhook | 4b4194d3263ff957bbd3d654aefe06d1225fa73d | [
"MIT"
] | 11 | 2019-04-02T19:21:25.000Z | 2022-01-05T23:22:04.000Z | test/espy_web/api_test.exs | XRPL-Labs/XRPL-Webhook | 4b4194d3263ff957bbd3d654aefe06d1225fa73d | [
"MIT"
] | 6 | 2019-03-07T15:54:30.000Z | 2020-03-26T02:33:40.000Z | defmodule EspyWeb.ApiTest do
use EspyWeb.ConnCase
import EspyWeb.Factory
setup do
Supervisor.terminate_child(Espy.Supervisor, ConCache)
Supervisor.restart_child(Espy.Supervisor, ConCache)
:ok
end
test "/api/v1/webhooks", %{conn: conn} do
app1 = insert(:app)
# CREATE WEBHOOK INVALID URL
... | 32.816327 | 97 | 0.664801 |
f700a389d06d19b1e2c4f273852e4c3149585893 | 3,906 | ex | Elixir | lib/jukee_web/channels/player_channel.ex | samuelbriole/Jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | 3 | 2018-05-17T17:43:06.000Z | 2018-06-09T02:12:25.000Z | lib/jukee_web/channels/player_channel.ex | samuelbriole/Jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | 2 | 2018-06-04T15:51:36.000Z | 2018-06-20T11:31:23.000Z | lib/jukee_web/channels/player_channel.ex | samuelbriole/jukee | 1f0dd7616d63d742fac17daabaf50b406d9dbede | [
"MIT"
] | null | null | null | defmodule JukeeWeb.PlayerChannel do
use JukeeWeb, :channel
alias Jukee.Players
alias JukeeWeb.PlayerView
alias Jukee.TrackSearch
alias Jukee.Tracks
alias JukeeWeb.PlayerPresence
require Logger
def join("player:" <> player_id, payload, socket) do
if authorized?(player_id, payload) do
send(self... | 31 | 95 | 0.689196 |
f700ed269eb4d8e6666457796cce8fe603084df7 | 1,383 | exs | Elixir | mix.exs | appunite/proto_response | 6bb3e0023000e741598ea004bbb114abbc2278fd | [
"Apache-2.0"
] | 4 | 2017-09-19T12:21:13.000Z | 2021-01-04T16:29:43.000Z | mix.exs | appunite/proto_response | 6bb3e0023000e741598ea004bbb114abbc2278fd | [
"Apache-2.0"
] | 1 | 2017-10-20T12:14:51.000Z | 2017-10-20T12:14:51.000Z | mix.exs | appunite/proto_response | 6bb3e0023000e741598ea004bbb114abbc2278fd | [
"Apache-2.0"
] | 1 | 2017-09-23T03:52:47.000Z | 2017-09-23T03:52:47.000Z | defmodule ProtoResponse.Mixfile do
use Mix.Project
@version "0.4.1"
def project do
[
app: :proto_response,
deps: deps(System.get_env("PROTOBUF_PACKAGE")),
description: description(),
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
vers... | 21.276923 | 92 | 0.570499 |
f700f90fdd8771acfd6a54887dd63fe8ad2876fd | 143 | ex | Elixir | lib/demo_web/live/example_live/static_title_component.ex | pthompson/live_component_examples | e2e1be52a7ff1065fd5ef749c375d729d5d08c21 | [
"MIT"
] | 21 | 2019-12-15T19:14:56.000Z | 2022-02-07T16:04:30.000Z | lib/demo_web/live/example_live/static_title_component.ex | pthompson/live_component_examples | e2e1be52a7ff1065fd5ef749c375d729d5d08c21 | [
"MIT"
] | 4 | 2020-02-06T01:05:28.000Z | 2020-09-07T19:08:45.000Z | lib/demo_web/live/example_live/static_title_component.ex | pthompson/live_component_examples | e2e1be52a7ff1065fd5ef749c375d729d5d08c21 | [
"MIT"
] | 6 | 2019-12-15T19:15:02.000Z | 2021-09-16T20:35:53.000Z | defmodule DemoWeb.StaticTitleComponent do
use Phoenix.LiveComponent
def render(assigns) do
~L"""
<h1>Title</h1>
"""
end
end
| 14.3 | 41 | 0.664336 |
f700fda5320043e8b56a32eb3ff0a5251971236f | 3,989 | ex | Elixir | lib/apoc/hazmat/aead/aes-gcm.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 6 | 2018-10-04T14:18:35.000Z | 2020-05-15T08:43:31.000Z | lib/apoc/hazmat/aead/aes-gcm.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 3 | 2018-10-23T12:20:45.000Z | 2021-01-27T10:41:14.000Z | lib/apoc/hazmat/aead/aes-gcm.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 2 | 2020-02-19T00:43:37.000Z | 2021-08-19T04:04:25.000Z | defmodule Apoc.Hazmat.AEAD.AESGCM do
@moduledoc """
Implementation of the AES block encryption
standard as per [FIPS PUB 197](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197.pdf).
The functions in this module operate in GCM (Galois/Counter Mode) to provide
fast Authenticated Encryption.
See [Recommend... | 29.548148 | 155 | 0.655051 |
f701022b8d97e5f4a5de3b2648eb7ee92865775b | 808 | ex | Elixir | lib/coherence/plugs/validate_option.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | lib/coherence/plugs/validate_option.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | null | null | null | lib/coherence/plugs/validate_option.ex | henb/coherence | 725247353bad46df464caffa12b9ea2788fe774f | [
"MIT"
] | 1 | 2019-09-11T10:21:21.000Z | 2019-09-11T10:21:21.000Z | defmodule Coherence.ValidateOption do
@moduledoc """
Plug to validate the given option is enabled in the project's configuration.
"""
import Coherence.Controller, only: [logged_out_url: 1]
import Plug.Conn
import Phoenix.Controller, only: [put_flash: 3, redirect: 2]
alias Coherence.Messages
@behaviou... | 21.837838 | 78 | 0.659653 |
f7012f6d03c928c74a572130021e6c4258a7e3c5 | 2,242 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/typed_value.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/typed_value.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/typed_value.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38 | 194 | 0.70785 |
f70142ac0dead99bb1eb2d8a7db06d555b05d8d1 | 149 | exs | Elixir | test/make_word_bot/base_test.exs | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | null | null | null | test/make_word_bot/base_test.exs | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | 5 | 2019-02-10T14:22:39.000Z | 2019-02-11T16:29:02.000Z | test/make_word_bot/base_test.exs | nulleof/make-word-bot | bf6ed80975f0d89697cdd5e1019d73c47dd335d4 | [
"MIT"
] | null | null | null | defmodule MakeWordBot.BaseTest do
use ExUnit.Case
doctest MakeWordBot
doctest MakeWordBot.ProcessMessage
doctest MakeWordBot.WordChecker
end
| 21.285714 | 36 | 0.838926 |
f7014928c025feb734460b4d6d668cfb64b55039 | 2,498 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_addons_config.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_addons_config.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_addons_config.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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.338983 | 175 | 0.760208 |
f70149449b7d97da2121163e4632ebd915daa9ff | 1,676 | ex | Elixir | lib/grakn/session.ex | liveforeverx/grakn_elixir | e64745fb200dd64956396c33b986b94706556ab4 | [
"MIT"
] | 1 | 2019-04-25T18:12:23.000Z | 2019-04-25T18:12:23.000Z | lib/grakn/session.ex | liveforeverx/grakn_elixir | e64745fb200dd64956396c33b986b94706556ab4 | [
"MIT"
] | null | null | null | lib/grakn/session.ex | liveforeverx/grakn_elixir | e64745fb200dd64956396c33b986b94706556ab4 | [
"MIT"
] | null | null | null | defmodule Grakn.Session do
@moduledoc false
@opaque t :: GRPC.Channel.t()
# every 5 min
@ping_rate 300_000
@spec new(String.t()) :: {:ok, t()} | {:error, any()}
def new(uri) do
GRPC.Stub.connect(uri, adapter_opts: %{http2_opts: %{keepalive: @ping_rate}})
end
@spec transaction(t(), String.t()) ::... | 24.647059 | 98 | 0.618138 |
f7014def0560d0dce71f8f4c7e9cafbdd023f64f | 997 | ex | Elixir | web/views/error_helpers.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | web/views/error_helpers.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | web/views/error_helpers.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | defmodule MemoApi.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(error), ... | 27.694444 | 78 | 0.679037 |
f70190f0277a8ed36ef3050b36678f27aa12a095 | 1,536 | ex | Elixir | web/controllers/server_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/controllers/server_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/controllers/server_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.ServerController do
use Tox.Web, :controller
alias Tox.Server
def index(conn, _params) do
servers = Repo.all(Server)
render(conn, "index.json", servers: servers)
end
def create(conn, %{"server" => server_params}) do
changeset = Server.changeset(%Server{}, server_params)
case ... | 27.428571 | 72 | 0.61849 |
f701b34d822846e33faa33cebaf337e526076b8f | 3,494 | ex | Elixir | clients/games/lib/google_api/games/v1/model/player_leaderboard_score.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games/lib/google_api/games/v1/model/player_leaderboard_score.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/player_leaderboard_score.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 ... | 46.586667 | 230 | 0.700057 |
f701d95899578b5b28f213b78eb2316130b1676b | 732 | exs | Elixir | test/nerves_hub/client/default_test.exs | aadavids/nerves_hub | 504f143381b2cc7c7e76a049febbb590ad5752f1 | [
"Apache-2.0"
] | null | null | null | test/nerves_hub/client/default_test.exs | aadavids/nerves_hub | 504f143381b2cc7c7e76a049febbb590ad5752f1 | [
"Apache-2.0"
] | null | null | null | test/nerves_hub/client/default_test.exs | aadavids/nerves_hub | 504f143381b2cc7c7e76a049febbb590ad5752f1 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHub.Client.DefaultTest do
use ExUnit.Case, async: true
alias NervesHub.Client.Default
doctest Default
test "update_available/1" do
assert Default.update_available(-1) == :apply
end
describe "handle_fwup_message/1" do
test "progress" do
assert Default.handle_fwup_message({:pr... | 22.181818 | 76 | 0.670765 |
f701ddc702fd1180e83f428cab70fbdc9e210469 | 992 | ex | Elixir | apps/legion/lib/stereotype/stereotype.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/lib/stereotype/stereotype.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/lib/stereotype/stereotype.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Stereotype do
@moduledoc """
Defines stereotypes for the modules of the application.
"""
def model do
quote do
use Ecto.Schema
import Ecto
import Ecto.Changeset
import Ecto.Query
alias Legion.Repo
end
end
def virtual do
quote do
use Ecto.Sc... | 15.746032 | 57 | 0.629032 |
f701dea430ebd5735b2ba5cb96f32926ebf56630 | 5,323 | ex | Elixir | lib/api.ex | symmetrically/paypal | c775ef4cb8f8f169b2bd37bd2587e4edff1c25b3 | [
"MIT"
] | null | null | null | lib/api.ex | symmetrically/paypal | c775ef4cb8f8f169b2bd37bd2587e4edff1c25b3 | [
"MIT"
] | 1 | 2021-12-11T02:43:28.000Z | 2021-12-11T02:43:28.000Z | lib/api.ex | symmetrically/paypal | c775ef4cb8f8f169b2bd37bd2587e4edff1c25b3 | [
"MIT"
] | null | null | null | defmodule PayPal.API do
@moduledoc """
Documentation for PayPal.API. This module is about the base HTTP functionality
"""
@base_url_sandbox "https://api.sandbox.paypal.com/v1/"
@base_url_live "https://api.paypal.com/v1/"
@doc """
Requests an OAuth token from PayPal, returns a tuple containing the token a... | 28.929348 | 127 | 0.588014 |
f701fadbf33e0d3277a9561d2305055110b4c622 | 84 | exs | Elixir | legacy/artie/apps/pypool/test/python_process_test.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | 1 | 2018-04-28T16:55:05.000Z | 2018-04-28T16:55:05.000Z | legacy/artie/apps/pypool/test/python_process_test.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | legacy/artie/apps/pypool/test/python_process_test.exs | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | defmodule PythonProcessTest do
use ExUnit.Case
doctest Pypool.PythonProcess
end
| 16.8 | 30 | 0.833333 |
f702205e88e69c40e02640d593d43096ec88e0eb | 1,454 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/firewall_log_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/firewall_log_config.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/firewall_log_config.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... | 30.93617 | 133 | 0.73934 |
f7026023063a76dbd9cffc791045a366bf80f97b | 1,719 | ex | Elixir | lib/private.ex | rockneurotiko/private | 7e5cbec79b079ee456fcbaf53ff91e42c37f2ee6 | [
"Apache-2.0"
] | null | null | null | lib/private.ex | rockneurotiko/private | 7e5cbec79b079ee456fcbaf53ff91e42c37f2ee6 | [
"Apache-2.0"
] | null | null | null | lib/private.ex | rockneurotiko/private | 7e5cbec79b079ee456fcbaf53ff91e42c37f2ee6 | [
"Apache-2.0"
] | null | null | null | defmodule Private do
@moduledoc File.read!("README.md")
defmacro __using__(_opts) do
quote do
require Private
import Private, only: [ private: 1, private: 2 ]
end
end
@doc """
Define private functions:
private do
def ...
defp ...
end
All functions in ... | 20.464286 | 78 | 0.628854 |
f702b373e89fddf47a5306f9e8d8c80aa47cc8ef | 1,768 | ex | Elixir | lib/caddr.ex | jamesandariese/ex-utils-caddr | dca3ccae973cf5dda8874af343cac2eb207841e8 | [
"Apache-2.0"
] | null | null | null | lib/caddr.ex | jamesandariese/ex-utils-caddr | dca3ccae973cf5dda8874af343cac2eb207841e8 | [
"Apache-2.0"
] | null | null | null | lib/caddr.ex | jamesandariese/ex-utils-caddr | dca3ccae973cf5dda8874af343cac2eb207841e8 | [
"Apache-2.0"
] | null | null | null | defmodule Caddr do
@moduledoc """
Documentation for Elixir Utils by Caddr.
"""
@doc """
Uniq -c
## Examples
iex> Caddr.uniqc([1,2,3,1,2,3,1,2,4])
%{1 => 3, 2 => 3, 3 => 2, 4 => 1}
"""
def uniqc(e) do
Enum.map(e, &({&1}))
|> reduce_groups({0}, [{&Enum.count/1, 0}])
|> Map.to... | 23.891892 | 111 | 0.511878 |
f702c5316b049e52813340529e4f9877fe87990a | 8,107 | ex | Elixir | lib/litmus/type/string.ex | lob/litmus | e7ffccc2e8897e280d3a69942a2ad6cbe4bbb965 | [
"MIT"
] | 38 | 2018-08-21T22:07:25.000Z | 2021-09-23T09:27:57.000Z | lib/litmus/type/string.ex | lob/litmus | e7ffccc2e8897e280d3a69942a2ad6cbe4bbb965 | [
"MIT"
] | 7 | 2018-07-17T17:47:08.000Z | 2019-07-09T21:18:58.000Z | lib/litmus/type/string.ex | lob/litmus | e7ffccc2e8897e280d3a69942a2ad6cbe4bbb965 | [
"MIT"
] | 6 | 2019-05-02T22:28:33.000Z | 2021-02-13T02:10:27.000Z | defmodule Litmus.Type.String do
@moduledoc """
This type validates and converts values to strings It converts boolean and
number values to strings.
## Options
* `:default` - Setting `:default` will populate a field with the provided
value, assuming that it is not present already. If a field already ... | 33.639004 | 97 | 0.605526 |
f7030562008233f3dcfa29a3d46903cd3e774935 | 1,529 | ex | Elixir | clients/vault/lib/google_api/vault/v1/model/remove_held_accounts_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/remove_held_accounts_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/model/remove_held_accounts_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.854167 | 97 | 0.746893 |
f7034424d62d793744af617d6144b4b485cdce43 | 2,430 | exs | Elixir | config/dev.exs | buoy49/zcash-explorer | 3774ef15a46ef13379d5a808f7cea198b76c589a | [
"Apache-2.0"
] | 5 | 2021-11-04T20:19:35.000Z | 2022-02-15T06:55:49.000Z | config/dev.exs | buoy49/zcash-explorer | 3774ef15a46ef13379d5a808f7cea198b76c589a | [
"Apache-2.0"
] | 5 | 2021-09-12T01:36:25.000Z | 2022-02-18T07:28:42.000Z | config/dev.exs | buoy49/zcash-explorer | 3774ef15a46ef13379d5a808f7cea198b76c589a | [
"Apache-2.0"
] | 8 | 2021-07-23T17:11:41.000Z | 2022-03-17T17:07:55.000Z | use Mix.Config
# Configure your database
config :zcash_explorer, ZcashExplorer.Repo,
username: "postgres",
password: "postgres",
database: "zcash_explorer_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debuggin... | 28.255814 | 68 | 0.701646 |
f703447424f554b11ddc5d75cd2dab445e762ce1 | 2,965 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_list_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_list_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/playlist_list_response.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.180556 | 166 | 0.71602 |
f703a4645a24a5c36bfae17d86cdd6c837c0401a | 11,969 | ex | Elixir | lib/game/session/process.ex | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/game/session/process.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/game/session/process.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Session.Process do
@moduledoc """
GenServer process module, client access is at `Game.Session`
Holds knowledge if the player is logged in, who they are, what they're save is.
"""
use GenServer, restart: :temporary
require Logger
alias Game.Account
alias Game.Character
alias Game.Com... | 26.716518 | 94 | 0.651516 |
f703bbdb6cf64f5b574832bc4b5f1eedf6b7ce71 | 1,065 | ex | Elixir | lib/tembeza_web/channels/user_socket.ex | AdolfodelSel/Tembeza | 20c19d6cc090e7c128bf35f016b7a3843cfc0dad | [
"Apache-2.0"
] | null | null | null | lib/tembeza_web/channels/user_socket.ex | AdolfodelSel/Tembeza | 20c19d6cc090e7c128bf35f016b7a3843cfc0dad | [
"Apache-2.0"
] | 1 | 2021-05-11T18:22:04.000Z | 2021-05-11T18:22:04.000Z | lib/tembeza_web/channels/user_socket.ex | AdolfodelSel/Tembeza | 20c19d6cc090e7c128bf35f016b7a3843cfc0dad | [
"Apache-2.0"
] | null | null | null | defmodule TembezaWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", TembezaWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channe... | 31.323529 | 83 | 0.696714 |
f703e67482aa768518cd4a082154dcf7eb3bf23f | 1,562 | ex | Elixir | test/support/data_case.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | 1 | 2020-09-18T03:32:45.000Z | 2020-09-18T03:32:45.000Z | test/support/data_case.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | null | null | null | test/support/data_case.ex | DianaOlympos/remote_test | e222d4e937789871baab3a7b4fd8428b714c1af4 | [
"MIT"
] | null | null | null | defmodule RemotePoints.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done... | 27.892857 | 77 | 0.694622 |
f70424c89288999e5d18016254f06285a06fcc49 | 1,592 | ex | Elixir | lib/double_agent/listening_post.ex | felix-starman/double_agent | f35cc6012eb7793167d0151c74c23c436ec4d811 | [
"MIT"
] | null | null | null | lib/double_agent/listening_post.ex | felix-starman/double_agent | f35cc6012eb7793167d0151c74c23c436ec4d811 | [
"MIT"
] | null | null | null | lib/double_agent/listening_post.ex | felix-starman/double_agent | f35cc6012eb7793167d0151c74c23c436ec4d811 | [
"MIT"
] | null | null | null | defmodule DoubleAgent.ListeningPost do
use GenServer
### CLIENT
def fetch(module, func, args_arity_or_atom) do
GenServer.call(__MODULE__, {:fetch, {module, func, args_arity_or_atom}})
end
def list do
GenServer.call(__MODULE__, :list)
end
def record({_mod, _function_name, _args} = mfa) do
G... | 26.983051 | 96 | 0.635678 |
f7042aee33d55f42603a61593d0d4d4d9f911cfe | 37,568 | exs | Elixir | test/ecto/association_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | test/ecto/association_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | test/ecto/association_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | 1 | 2018-09-21T16:05:29.000Z | 2018-09-21T16:05:29.000Z | defmodule Ecto.AssociationTest do
use ExUnit.Case, async: true
doctest Ecto.Association
import Ecto
import Ecto.Query, only: [from: 2, dynamic: 2]
alias __MODULE__.Author
alias __MODULE__.Comment
alias __MODULE__.CommentWithPrefix
alias __MODULE__.Permalink
alias __MODULE__.Post
alias __MODULE__.P... | 41.328933 | 119 | 0.599127 |
f7043314a61147ef8af794ff83579d30b5e2ea15 | 1,989 | ex | Elixir | lib/git_hooks.ex | pojiro/elixir_git_hooks | 3b9448d535365e4b67b86b7f0ceb97d620c35b96 | [
"MIT"
] | null | null | null | lib/git_hooks.ex | pojiro/elixir_git_hooks | 3b9448d535365e4b67b86b7f0ceb97d620c35b96 | [
"MIT"
] | null | null | null | lib/git_hooks.ex | pojiro/elixir_git_hooks | 3b9448d535365e4b67b86b7f0ceb97d620c35b96 | [
"MIT"
] | null | null | null | defmodule GitHooks do
@moduledoc false
alias Mix.Tasks.GitHooks.Install
if Application.get_env(:git_hooks, :auto_install, true) do
Install.run(["--quiet"])
end
@typedoc """
A Git hook
"""
@type git_hook_type :: atom
@type git_hook_args :: list(String.t())
alias GitHooks.Tasks.Cmd
alias Git... | 29.686567 | 108 | 0.671694 |
f7043b1ab31b69778dc3edcfa268d03334acf384 | 2,491 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/authorization_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_control/lib/google_api/service_control/v1/model/authorization_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_control/lib/google_api/service_control/v1/model/authorization_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.482143 | 386 | 0.738659 |
f70444a2a3ef4376b680efed34e63fd551612bee | 2,423 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/async_batch_annotate_images_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/async_batch_annotate_images_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/async_batch_annotate_images_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... | 45.716981 | 395 | 0.737928 |
f704590b6a5ce66b12731d325e93ae908b07ff90 | 362 | ex | Elixir | lib/twitchbot/application.ex | adigitalmonk/twitchbot | 2d2afd21032d8f94272d5cf2605f69451a24e08e | [
"MIT"
] | null | null | null | lib/twitchbot/application.ex | adigitalmonk/twitchbot | 2d2afd21032d8f94272d5cf2605f69451a24e08e | [
"MIT"
] | null | null | null | lib/twitchbot/application.ex | adigitalmonk/twitchbot | 2d2afd21032d8f94272d5cf2605f69451a24e08e | [
"MIT"
] | null | null | null | defmodule Twitchbot.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
Twitchbot.Client
]
opts = [strategy: :one_for_one, name: Twitchbot.Supervisor]
Superv... | 21.294118 | 63 | 0.71547 |
f704c7e684d59a95e1ead5bd20f49667ee7ff226 | 1,486 | ex | Elixir | clients/vm_migration/lib/google_api/vm_migration/v1/model/add_group_migration_request.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/add_group_migration_request.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/add_group_migration_request.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.617021 | 106 | 0.745626 |
f704d41e80148866f2e4295ddc2e221689526c76 | 1,824 | ex | Elixir | lib/espec/assertions/interface.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | lib/espec/assertions/interface.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | lib/espec/assertions/interface.ex | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule ESpec.Assertions.Interface do
@moduledoc """
Defines the assertion interface.
There are 3 functions that should be defined in the 'assertion' module:
- `match/2`;
- `success_message/4`;
- `error_message/4`.
"""
defmacro __using__(_opts) do
quote do
def assert(subject, data, positive ... | 32 | 95 | 0.602522 |
f70508d41ac05dc4e6a910127b0f0e2cbecae0c8 | 1,681 | ex | Elixir | web/web.ex | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 48 | 2015-06-29T21:20:25.000Z | 2021-05-09T04:27:41.000Z | web/web.ex | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | null | null | null | web/web.ex | houshuang/survey | 948acaf20840af82af1d9af3147acca94cb4fcf8 | [
"Apache-2.0"
] | 15 | 2015-06-29T21:13:57.000Z | 2021-07-27T10:02:40.000Z | defmodule Survey.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Survey.Web, :controller
use Survey.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short ... | 21.278481 | 88 | 0.66865 |
End of preview. Expand in Data Studio
- Downloads last month
- 5