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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
f7050c4d9ac290313b213a75965819355d3fe8e1 | 21,658 | ex | Elixir | lib/aws/generated/app_sync.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/app_sync.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/app_sync.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.AppSync do
@moduledoc """
AWS AppSync provides API actions for creating and interacting with data sources
using GraphQL from your application.
"""
alias AWS.Client
alias AWS.Request
... | 19.797075 | 100 | 0.556376 |
f70513f656a73783a43329fe170e9fc125f85b79 | 634 | ex | Elixir | web/views/form_helpers.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-06-18T17:46:14.000Z | 2020-01-21T03:19:41.000Z | web/views/form_helpers.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 18 | 2016-06-18T18:05:43.000Z | 2018-03-06T08:19:41.000Z | web/views/form_helpers.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-10-26T19:51:06.000Z | 2018-09-18T09:06:14.000Z | defmodule Academy.FormHelpers do
@moduledoc """
Conveniences for HTML forms.
"""
use Phoenix.HTML
@doc ~S"""
Build an input group. Usefull to have the class "invalid" in the div when
a field in the changeset is invalid.
Example:
input_group f, :name do
label f, :name
end
might... | 19.8125 | 75 | 0.623028 |
f7051d5437f73204e34b597526e13015318dc100 | 5,110 | ex | Elixir | lib/mix/tasks/nerves_hub.deployment.ex | pdgonzalez872/nerves_hub_cli | 0554bcb5931dee5effccd4359129ca7ee704884e | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/nerves_hub.deployment.ex | pdgonzalez872/nerves_hub_cli | 0554bcb5931dee5effccd4359129ca7ee704884e | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/nerves_hub.deployment.ex | pdgonzalez872/nerves_hub_cli | 0554bcb5931dee5effccd4359129ca7ee704884e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.NervesHub.Deployment do
use Mix.Task
@shortdoc "Manages NervesHub deployments"
@moduledoc """
Manage NervesHub deployments
## list
mix nerves_hub.deployment list
### Command-line options
* `--product` - (Optional) Only show deployments for one product.
This defaults t... | 23.122172 | 93 | 0.596282 |
f70527d152cf5f98089867549149ac313cc0b225 | 1,204 | exs | Elixir | test/husky/task/delete_test.exs | erlandsona/husky-elixir | 4f4998c8ab8570cfec01749ed855a371210ba27e | [
"MIT"
] | 43 | 2018-10-22T14:19:19.000Z | 2022-03-28T19:16:59.000Z | test/husky/task/delete_test.exs | erlandsona/husky-elixir | 4f4998c8ab8570cfec01749ed855a371210ba27e | [
"MIT"
] | 7 | 2019-01-04T21:21:03.000Z | 2020-07-22T16:27:03.000Z | test/husky/task/delete_test.exs | erlandsona/husky-elixir | 4f4998c8ab8570cfec01749ed855a371210ba27e | [
"MIT"
] | 7 | 2018-11-27T12:35:46.000Z | 2022-03-25T04:59:21.000Z | defmodule Husky.Task.DeleteTest do
import ExUnit.CaptureIO
use ExUnit.Case, async: false
alias Mix.Tasks.Husky.{Delete, Install}
alias Husky.{TestHelper, Util}
require TestHelper
@delete_message """
... running husky delete
"""
setup do
TestHelper.initialize_local()
capture_io(&Install.run/0... | 31.684211 | 104 | 0.675249 |
f705292a9c8e8b13c8efa05e8756156cc7bc056b | 242 | ex | Elixir | lib/rotterdam/managed_node.ex | holandes22/rotterdam | d8b56079638c15a8492c08a6859ed14413163e62 | [
"MIT"
] | null | null | null | lib/rotterdam/managed_node.ex | holandes22/rotterdam | d8b56079638c15a8492c08a6859ed14413163e62 | [
"MIT"
] | null | null | null | lib/rotterdam/managed_node.ex | holandes22/rotterdam | d8b56079638c15a8492c08a6859ed14413163e62 | [
"MIT"
] | null | null | null | defmodule Rotterdam.Managed.Node do
defstruct id: nil,
label: nil,
role: nil,
host: nil,
port: "2376",
cert_path: nil,
status: :stopped,
status_msg: ""
end
| 22 | 35 | 0.466942 |
f705517e8450203b72ccbd98baf16a1b476ff26a | 1,248 | ex | Elixir | test/support/conn_case.ex | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 1 | 2022-02-10T13:54:39.000Z | 2022-02-10T13:54:39.000Z | test/support/conn_case.ex | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 11 | 2020-07-10T16:05:17.000Z | 2020-08-25T23:44:34.000Z | test/support/conn_case.ex | cognizant-softvision/birdcage | 2f766c7bc6d70f1243aab56ad9ac7f7d4c5014fb | [
"Apache-2.0"
] | 1 | 2020-08-06T18:56:52.000Z | 2020-08-06T18:56:52.000Z | defmodule BirdcageWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if t... | 28.363636 | 70 | 0.725962 |
f7056033df91ade669abe0cb9237a3888a3fd1d1 | 1,462 | ex | Elixir | clients/container/lib/google_api/container/v1/model/big_query_destination.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container/lib/google_api/container/v1/model/big_query_destination.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container/lib/google_api/container/v1/model/big_query_destination.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.106383 | 88 | 0.740766 |
f7056a25a700a555eeb2529e21c4431cba628009 | 3,619 | ex | Elixir | lib/elixir/lib/kernel/utils.ex | rcoppolo/elixir | c4092e071f8b42f5a9ad213dd8b3632918097213 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/utils.ex | rcoppolo/elixir | c4092e071f8b42f5a9ad213dd8b3632918097213 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/utils.ex | rcoppolo/elixir | c4092e071f8b42f5a9ad213dd8b3632918097213 | [
"Apache-2.0"
] | null | null | null | import Kernel, except: [destructure: 2, defdelegate: 2, defstruct: 2]
defmodule Kernel.Utils do
@moduledoc false
@doc """
Callback for destructure.
"""
def destructure(list, count) when is_list(list), do: destructure_list(list, count)
def destructure(nil, count), do: destructure_nil(count)
defp destruc... | 29.185484 | 98 | 0.628903 |
f70572739984f0145a347cc12485da5495b4323a | 8,175 | ex | Elixir | lib/elixir_script/passes/translate/forms/pattern.ex | alex-min/elixirscript | a2bd2327d0b6bbacf98fb555198acf12c0c20916 | [
"MIT"
] | 1 | 2021-09-14T14:28:39.000Z | 2021-09-14T14:28:39.000Z | lib/elixir_script/passes/translate/forms/pattern.ex | alex-min/elixirscript | a2bd2327d0b6bbacf98fb555198acf12c0c20916 | [
"MIT"
] | null | null | null | lib/elixir_script/passes/translate/forms/pattern.ex | alex-min/elixirscript | a2bd2327d0b6bbacf98fb555198acf12c0c20916 | [
"MIT"
] | null | null | null | defmodule ElixirScript.Translate.Forms.Pattern do
alias ElixirScript.Translate.Forms.Pattern.Patterns, as: PM
alias ESTree.Tools.Builder, as: J
alias ElixirScript.Translate.Helpers
alias ElixirScript.Translate.Form
alias ElixirScript.Translate.Forms.Bitstring
@moduledoc false
@doc """
Handles all patt... | 26.980198 | 87 | 0.56367 |
f70589b83dbdf73ad56defaaafb4b16f20eba733 | 312 | ex | Elixir | web/views/layout_view.ex | eqdw/warg | c60669a492bfecb829381357864a61ddb0438174 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | eqdw/warg | c60669a492bfecb829381357864a61ddb0438174 | [
"MIT"
] | null | null | null | web/views/layout_view.ex | eqdw/warg | c60669a492bfecb829381357864a61ddb0438174 | [
"MIT"
] | null | null | null | defmodule Warg.LayoutView do
use Warg.Web, :view
def main_menu_links do
%{
"Home" => Warg.Router.Helpers.page_path(Warg.Endpoint, :index),
"Ehlo" => Warg.Router.Helpers.ehlo_path(Warg.Endpoint, :index),
"Users" => Warg.Router.Helpers.user_path(Warg.Endpoint, :index)
}
end
end
| 26 | 70 | 0.663462 |
f705b1168538a4f7e64cd981f458ef61101661a9 | 1,875 | ex | Elixir | test/support/pages/contact_investigation_quarantine_monitoring.ex | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | test/support/pages/contact_investigation_quarantine_monitoring.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | test/support/pages/contact_investigation_quarantine_monitoring.ex | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule EpicenterWeb.Test.Pages.ContactInvestigationQuarantineMonitoring do
import ExUnit.Assertions
import Phoenix.LiveViewTest
alias Epicenter.ContactInvestigations.ContactInvestigation
alias Epicenter.Test
alias EpicenterWeb.Test.Pages
alias Phoenix.LiveViewTest.View
def visit(%Plug.Conn{} = conn, ... | 31.25 | 100 | 0.696533 |
f705bfc6b512f1a42087b58e46c7511f9c2175d1 | 4,059 | ex | Elixir | lib/teiserver/agents/battlehost_agent_server.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | lib/teiserver/agents/battlehost_agent_server.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | lib/teiserver/agents/battlehost_agent_server.ex | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | defmodule Teiserver.Agents.BattlehostAgentServer do
use GenServer
alias Teiserver.Agents.AgentLib
alias Teiserver.Battle.Lobby
require Logger
@tick_period 5000
@inaction_chance 0.5
@leave_chance 0.5
@password_chance 0.5
@map_hash "1565299817"
@game_hash "393009621"
@game_name "Beyond All Reason ... | 27.993103 | 106 | 0.621335 |
f705cd8b66ac35ddf3c02078ad9da503f7979dd9 | 1,017 | ex | Elixir | apps/customer/lib/customer/web/models/favorite_job.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/customer/lib/customer/web/models/favorite_job.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/customer/lib/customer/web/models/favorite_job.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Web.FavoriteJob do
use Customer.Web, :model
schema "favorite_jobs" do
field :interest, :integer, default: 1
field :remarks, :string
field :status, :integer
timestamps()
belongs_to :user, User
belongs_to :job, Job
end
@required_fields ~w(user_id job_id)a
@optional... | 25.425 | 86 | 0.703048 |
f705dc702929ac44a778ae1bc40bfb11484d74ea | 1,601 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/tag_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/tag_settings.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/tag_settings.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.02 | 112 | 0.730793 |
f7061a03164843f43f6e1640abb5a76002ce9d53 | 3,435 | ex | Elixir | implementations/absinthe-federation/lib/products_web/schema.ex | destumme/apollo-federation-subgraph-compatibility | fe1a6c79557edf462a4454abcf3bb18b8fa7f354 | [
"MIT"
] | 18 | 2021-08-31T09:57:28.000Z | 2022-03-25T03:59:36.000Z | implementations/absinthe-federation/lib/products_web/schema.ex | destumme/apollo-federation-subgraph-compatibility | fe1a6c79557edf462a4454abcf3bb18b8fa7f354 | [
"MIT"
] | 36 | 2021-08-17T04:58:50.000Z | 2022-03-31T00:48:03.000Z | implementations/absinthe-federation/lib/products_web/schema.ex | destumme/apollo-federation-subgraph-compatibility | fe1a6c79557edf462a4454abcf3bb18b8fa7f354 | [
"MIT"
] | 14 | 2021-08-22T04:48:10.000Z | 2022-02-10T13:46:07.000Z | defmodule ProductsWeb.Schema do
use Absinthe.Schema
use Absinthe.Federation.Schema
defmodule Product do
defstruct [:id, :sku, :package, :variation]
end
defmodule User do
defstruct [:email, :name, :total_products_created]
end
@desc """
extend type User @key(fields: "email") {
email: ID! @e... | 22.16129 | 100 | 0.601747 |
f70620ed2a01c09cba6419ac97d98b0082127cad | 1,037 | exs | Elixir | test/shouldi/should_test.exs | szTheory/power_assert_ex | 0ae79b6b1e801bd5395a689a203c577650ae774d | [
"Apache-2.0"
] | null | null | null | test/shouldi/should_test.exs | szTheory/power_assert_ex | 0ae79b6b1e801bd5395a689a203c577650ae774d | [
"Apache-2.0"
] | null | null | null | test/shouldi/should_test.exs | szTheory/power_assert_ex | 0ae79b6b1e801bd5395a689a203c577650ae774d | [
"Apache-2.0"
] | null | null | null | defmodule ShouldTest do
use ShouldI
use PowerAssert
should "inside should" do
assert 1 + 2 == 3
end
should "use power assert inside should" do
try do
assert [1,2,3] |> Enum.take(1) |> Enum.empty?
rescue
error ->
msg = """
[1, 2, 3] |> Enum.take(1) |> Enum.empty?()
... | 24.116279 | 63 | 0.455159 |
f70628cf79330d785dfc1bec646c95c9e1e39c01 | 2,000 | exs | Elixir | mix.exs | duzzifelipe/jaxon | a0c0ff1d1007fe257fb936d7fad18c4ca5c3436c | [
"Apache-2.0"
] | null | null | null | mix.exs | duzzifelipe/jaxon | a0c0ff1d1007fe257fb936d7fad18c4ca5c3436c | [
"Apache-2.0"
] | null | null | null | mix.exs | duzzifelipe/jaxon | a0c0ff1d1007fe257fb936d7fad18c4ca5c3436c | [
"Apache-2.0"
] | null | null | null | defmodule Jaxon.MixProject do
use Mix.Project
def project do
[
app: :jaxon,
name: "Jaxon",
version: "2.0.0",
elixir: "~> 1.7",
compilers: [:elixir_make] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
test_coverage... | 28.169014 | 159 | 0.5515 |
f7063324fba7cba130aab09f4cabda3675a0d7b7 | 2,138 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/machine_image_list_warning.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/machine_image_list_warning.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/machine_image_list_warning.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... | 40.339623 | 243 | 0.721703 |
f7063e93fa3c14a06c0799963091f491145af43c | 9,862 | ex | Elixir | lib/workflows/rule.ex | fracek/workflows | 6ef7ad3e280127f544f00fd098901bb6526a80cb | [
"Apache-2.0"
] | 94 | 2021-04-02T15:20:15.000Z | 2022-03-21T10:46:09.000Z | lib/workflows/rule.ex | fracek/workflows | 6ef7ad3e280127f544f00fd098901bb6526a80cb | [
"Apache-2.0"
] | null | null | null | lib/workflows/rule.ex | fracek/workflows | 6ef7ad3e280127f544f00fd098901bb6526a80cb | [
"Apache-2.0"
] | 6 | 2021-04-02T23:29:46.000Z | 2021-12-24T10:55:44.000Z | defmodule Workflows.Rule do
@moduledoc """
Choice state rule.
"""
@type t :: %__MODULE__{
next: String.t(),
rule: (map() -> boolean())
}
defstruct [:next, :rule]
@doc """
Create a rule that can be matched on an input.
"""
def create(%{"Next" => next} = rule) do
case ... | 31.710611 | 87 | 0.642263 |
f70641b32c13339b967a6b6cc6d0d85ea8b3a718 | 717 | ex | Elixir | lib/conversor_web/gettext.ex | wagncarv/CurrencyExchange | 3e626681d97a17a68385be31d8c8a82fd4bfcd59 | [
"MIT"
] | 1 | 2022-03-28T19:10:45.000Z | 2022-03-28T19:10:45.000Z | lib/conversor_web/gettext.ex | wagner-de-carvalho/currency_exchange | 6c784dcab0af3345c71a41ca606158298a447d49 | [
"MIT"
] | null | null | null | lib/conversor_web/gettext.ex | wagner-de-carvalho/currency_exchange | 6c784dcab0af3345c71a41ca606158298a447d49 | [
"MIT"
] | null | null | null | defmodule ConversorWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import ConversorWeb.Gettext
# Simple translation
gettext("Here ... | 28.68 | 72 | 0.680614 |
f70656d699fa7fc982f8b51bbde84933b136aa69 | 1,135 | exs | Elixir | apps/subs_services/config/config.exs | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/subs_services/config/config.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/subs_services/config/config.exs | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.612903 | 73 | 0.754185 |
f7065a5222cb0783c2b4dd862a261431a652038d | 448 | exs | Elixir | test/integeration/log_in_test.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | test/integeration/log_in_test.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | test/integeration/log_in_test.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.LogInTest do
# use UcxChat.AcceptanceCase
use UcxChat.ConnCase
import UcxChat.TestHelpers
require Logger
use Hound.Helpers
hound_session()
setup do
subs = insert_subscription()
current_window_handle() |> maximize_window
{:ok, subs: subs, user: subs.user}
end
# broken... | 17.92 | 47 | 0.6875 |
f706b2441919772c9f715c8d89974d71b27366ff | 2,883 | ex | Elixir | apps/ewallet/lib/ewallet/web/v1/serializers/transaction_request_serializer.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/lib/ewallet/web/v1/serializers/transaction_request_serializer.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/web/v1/serializers/transaction_request_serializer.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.Web.V1.TransactionRequestSerializer do
@moduledoc """
Serializes transaction request data into V1 JSON response format.
"""
alias Ecto.Association.NotLoaded
alias EWallet.Web.V1.{
AccountSerializer,
PaginatorSerializer,
TokenSerializer,
UserSerializer,
WalletSerializer
... | 43.681818 | 92 | 0.772806 |
f706c8e49b0a70aa6a5307cde44702da7c4efa4a | 1,404 | exs | Elixir | exercises/01-elixir/01-basics/08-guards/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/01-elixir/01-basics/08-guards/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/01-elixir/01-basics/08-guards/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Setup do
@script "shared.exs"
def setup(directory \\ ".") do
path = Path.join(directory, @script)
if File.exists?(path) do
Code.require_file(path)
Shared.setup(__DIR__)
else
setup(Path.join(directory, ".."))
end
end
end
Setup.setup
defmodule Tests do
use ExUnit.C... | 27.529412 | 51 | 0.696581 |
f706ddd6227352361f7e17b912b946f601ee8ba9 | 5,913 | exs | Elixir | test/payloader_test.exs | membraneframework/membrane_rtp_vp9_plugin | 7dac9476a76a3eea1ed3b90b65aad5660663a98b | [
"Apache-2.0"
] | null | null | null | test/payloader_test.exs | membraneframework/membrane_rtp_vp9_plugin | 7dac9476a76a3eea1ed3b90b65aad5660663a98b | [
"Apache-2.0"
] | 3 | 2020-12-14T10:28:19.000Z | 2021-01-05T08:35:15.000Z | test/payloader_test.exs | membraneframework/membrane_rtp_vp9_plugin | 7dac9476a76a3eea1ed3b90b65aad5660663a98b | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTP.VP9.PayloaderTest do
use ExUnit.Case
alias Membrane.RTP.VP9.Payloader
alias Membrane.RTP.VP9.Payloader.State
alias Membrane.RTP.VP9.PayloadDescriptor
alias Membrane.Buffer
test "fragmentation not required" do
input_payload = <<1, 1, 1>>
input_buffer = %Buffer{payload: input_... | 36.5 | 95 | 0.527989 |
f706eb280e352d37c43a69d6a7d822f4890e00ba | 5,302 | ex | Elixir | lib/bacen/ccs/serializer/schema_converter.ex | aleDsz/bacen_ccs | 573634bd4cad5f068a120850fe8ef846d270a604 | [
"MIT"
] | 3 | 2021-10-30T20:02:52.000Z | 2021-11-12T22:55:30.000Z | lib/bacen/ccs/serializer/schema_converter.ex | aleDsz/bacen_ccs | 573634bd4cad5f068a120850fe8ef846d270a604 | [
"MIT"
] | 7 | 2021-11-18T00:39:10.000Z | 2022-03-23T11:11:26.000Z | lib/bacen/ccs/serializer/schema_converter.ex | aleDsz/bacen_ccs | 573634bd4cad5f068a120850fe8ef846d270a604 | [
"MIT"
] | null | null | null | defmodule Bacen.CCS.Serializer.SchemaConverter do
@moduledoc """
The Bacen's CCS schema converter.
It reads all `Ecto.Schema` defined on `Message`
schema and generates a tuple-formatted XML, allowing
the application to serialize it properly and convert
to String.
"""
alias Bacen.CCS.Message
alias Ba... | 28.972678 | 89 | 0.605055 |
f706f2170575eae904fa84dd1321adec14532d3b | 1,588 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/partition.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/spanner/lib/google_api/spanner/v1/model/partition.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/partition.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 ... | 31.76 | 127 | 0.740554 |
f70708829b4a0a645e291d79b499a917aeaa6220 | 1,150 | ex | Elixir | lib/oli_web/live/products/payments/create_codes.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli_web/live/products/payments/create_codes.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli_web/live/products/payments/create_codes.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.Products.Payments.CreateCodes do
use Surface.LiveComponent
alias OliWeb.Router.Helpers, as: Routes
prop product_slug, :string, required: true
prop count, :integer, required: true
prop click, :event, required: true
prop change, :event, required: true
prop disabled, :boolean, required: true... | 29.487179 | 168 | 0.656522 |
f70779c0f01cd21511248450ca229148a59e0daf | 1,821 | ex | Elixir | lib/day7.ex | erljef/adventofcode-2020 | fdae924b34eb9b324e529b02e2aed45a79078102 | [
"WTFPL"
] | null | null | null | lib/day7.ex | erljef/adventofcode-2020 | fdae924b34eb9b324e529b02e2aed45a79078102 | [
"WTFPL"
] | null | null | null | lib/day7.ex | erljef/adventofcode-2020 | fdae924b34eb9b324e529b02e2aed45a79078102 | [
"WTFPL"
] | null | null | null | defmodule Day7 do
require Graph
def from_file(path) do
File.read!(path)
end
def parse(input) do
input
|> String.split("\n", trim: true)
|> Enum.map(fn x -> Regex.run(~r/(.*) bags contain (.*)\./, x, capture: :all_but_first) end)
|> Enum.map(fn [type, contains] -> [type, parse_contains(cont... | 27.179104 | 118 | 0.55464 |
f7077b09db8796f69a6052539b1af3308998d022 | 254 | ex | Elixir | seminars/transport/lib/netw.ex | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | seminars/transport/lib/netw.ex | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | seminars/transport/lib/netw.ex | Murre3/ID1019 | 8240d07be35843610c6c14a40bcb3ed21b3ea36f | [
"MIT"
] | null | null | null | defmodule Netw do
defstruct src: 0, dst: 0, data: nil
defimpl String.Chars, for: Netw do
def to_string(%Netw{src: s, dst: d, data: msg}) do
"Netw<src: #{s}, dst: #{d}, data: " <> String.Chars.to_string(msg) <> ">"
end
end
end
| 16.933333 | 79 | 0.57874 |
f707a274a6547dea28cf52b20184bf5658229ef6 | 1,774 | ex | Elixir | clients/content/lib/google_api/content/v2/model/carriers_carrier.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/carriers_carrier.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/carriers_carrier.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... | 33.471698 | 158 | 0.697294 |
f707a480381ce019ffee852e4a08693090f3f633 | 1,266 | ex | Elixir | lib/money/currency/ecto_type.ex | stefanluptak/money | 51b4b403787f76e21b12fc162270113a6cfe6a08 | [
"MIT"
] | 350 | 2019-02-21T02:25:03.000Z | 2022-03-10T02:35:50.000Z | lib/money/currency/ecto_type.ex | stefanluptak/money | 51b4b403787f76e21b12fc162270113a6cfe6a08 | [
"MIT"
] | 68 | 2019-02-21T07:19:17.000Z | 2022-03-29T03:13:12.000Z | lib/money/currency/ecto_type.ex | stefanluptak/money | 51b4b403787f76e21b12fc162270113a6cfe6a08 | [
"MIT"
] | 70 | 2015-08-28T16:45:57.000Z | 2019-02-06T01:11:11.000Z | if Code.ensure_loaded?(Ecto.Type) do
defmodule Money.Currency.Ecto.Type do
@moduledoc """
Provides a type for Ecto to store a currency.
The underlying data type is a string.
## Migration
create table(:my_table) do
add :currency, :string
end
## Schema
schema "m... | 22.210526 | 71 | 0.587678 |
f707c109ca90aa51e95bb7cf82454a1a4a81dedd | 2,164 | ex | Elixir | lib/core/env.ex | doctorcorral/gyx | f44990f817cd2cbac01510b3c72cdc374820ac8b | [
"BSD-2-Clause"
] | 19 | 2019-02-02T02:41:12.000Z | 2021-07-05T21:14:45.000Z | lib/core/env.ex | doctorcorral/gyx | f44990f817cd2cbac01510b3c72cdc374820ac8b | [
"BSD-2-Clause"
] | 37 | 2018-11-27T06:41:07.000Z | 2022-01-28T19:39:00.000Z | lib/core/env.ex | doctorcorral/gyx | f44990f817cd2cbac01510b3c72cdc374820ac8b | [
"BSD-2-Clause"
] | 2 | 2018-11-26T22:06:18.000Z | 2019-05-02T19:13:42.000Z | defmodule Gyx.Core.Env do
@moduledoc """
This behaviour is intended to be followed for any `Environment` implementation
The most critical function to be exposed is `step/1` , which serves as a direct bridge
between the environment and any agent.
Here, an important design question to address is the fundamenta... | 33.292308 | 98 | 0.684843 |
f7084eba8538c91d539b1dc1bb488ba628458d96 | 1,368 | ex | Elixir | lib/web/controllers/profile_controller.ex | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | 7 | 2019-12-13T19:23:47.000Z | 2022-01-22T23:02:42.000Z | lib/web/controllers/profile_controller.ex | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | 11 | 2021-03-10T01:57:00.000Z | 2021-08-31T18:30:54.000Z | lib/web/controllers/profile_controller.ex | smartlogic/stein_example | 7ef369757989a9a56d04e87f6421675bf69193a2 | [
"MIT"
] | null | null | null | defmodule Web.ProfileController do
use Web, :controller
alias SteinExample.Users
def show(conn, _params) do
%{current_user: user} = conn.assigns
conn
|> assign(:user, user)
|> render("show.html")
end
def edit(conn, _params) do
%{current_user: user} = conn.assigns
conn
|> assig... | 24 | 78 | 0.584064 |
f70897183c94a2fdc593bec82325566b91a3bb33 | 1,200 | ex | Elixir | lib/central/admin/tasks/delete_user_task.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 4 | 2021-07-29T16:23:20.000Z | 2022-02-23T05:34:36.000Z | lib/central/admin/tasks/delete_user_task.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central/admin/tasks/delete_user_task.ex | badosu/teiserver | 19b623aeb7c2ab28756405f7486e92b714777c54 | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule Central.Admin.DeleteUserTask do
@moduledoc false
alias Central.{Account, Config, Communication, Logging}
def delete_user(userid) when is_integer(userid) do
case Account.get_user(userid) do
nil -> nil
user -> do_delete_user(user)
end
end
def delete_user(%Account.User{} = user) d... | 24 | 58 | 0.683333 |
f7089a67e2bba580f4896b161d745da21e0ca3f2 | 2,984 | exs | Elixir | apps/omg_watcher_info/test/omg_watcher_info/release_tasks/set_tracer_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_info/test/omg_watcher_info/release_tasks/set_tracer_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_info/test/omg_watcher_info/release_tasks/set_tracer_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 39.263158 | 110 | 0.668231 |
f708a1ab5e41ea8f41fc14b33c9683889241c7cb | 7,350 | ex | Elixir | lib/plug/upload.ex | rzcastilho/plug | 542870dfefb710ae9e508c345da9067d2c8c4149 | [
"Apache-2.0"
] | 1,218 | 2017-07-14T15:13:32.000Z | 2022-03-30T16:42:42.000Z | lib/plug/upload.ex | rzcastilho/plug | 542870dfefb710ae9e508c345da9067d2c8c4149 | [
"Apache-2.0"
] | 502 | 2017-07-19T15:36:44.000Z | 2022-03-31T06:47:36.000Z | lib/plug/upload.ex | rzcastilho/plug | 542870dfefb710ae9e508c345da9067d2c8c4149 | [
"Apache-2.0"
] | 376 | 2017-07-17T15:47:55.000Z | 2022-03-23T19:24:30.000Z | defmodule Plug.UploadError do
defexception [:message]
end
defmodule Plug.Upload do
@moduledoc """
A server (a `GenServer` specifically) that manages uploaded files.
Uploaded files are stored in a temporary directory
and removed from that directory after the process that
requested the file dies.
During ... | 26.727273 | 92 | 0.621224 |
f708a30509aa69012631b65395f261dd52fd10ba | 1,570 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1beta1/model/google_cloud_videointelligence_v1_annotate_video_progress.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1beta1/model/google_cloud_videointelligence_v1_annotate_video_progress.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1beta1/model/google_cloud_videointelligence_v1_annotate_video_progress.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... | 40.25641 | 206 | 0.780892 |
f708a78c302e435caad6f212d1e2d3c4374da6ed | 1,437 | ex | Elixir | clients/drive_activity/lib/google_api/drive_activity/v2/model/system_event.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive_activity/lib/google_api/drive_activity/v2/model/system_event.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/system_event.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... | 30.574468 | 111 | 0.736952 |
f708a97fe8615b82328b1767cf17c99fd1d2045b | 2,353 | exs | Elixir | config/prod.exs | nicohartto/headland-back | 413febe835dafc15b4dae731998ff42aa755496b | [
"MIT"
] | null | null | null | config/prod.exs | nicohartto/headland-back | 413febe835dafc15b4dae731998ff42aa755496b | [
"MIT"
] | null | null | null | config/prod.exs | nicohartto/headland-back | 413febe835dafc15b4dae731998ff42aa755496b | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.614286 | 78 | 0.715257 |
f708adcfe88e698288ad18fec3747bd70cdd7bbc | 2,443 | ex | Elixir | lib/policr_mini_bot/plugs/resp_login_cmd_plug.ex | uxh/policr-mini | bad33834a9bd6405afb241b74000cec2cb78ef21 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | lib/policr_mini_bot/plugs/resp_login_cmd_plug.ex | uxh/policr-mini | bad33834a9bd6405afb241b74000cec2cb78ef21 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | lib/policr_mini_bot/plugs/resp_login_cmd_plug.ex | uxh/policr-mini | bad33834a9bd6405afb241b74000cec2cb78ef21 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMiniBot.RespLoginCmdPlug do
@moduledoc """
登录命令。
"""
use PolicrMiniBot, plug: [commander: :login]
alias PolicrMini.Logger
alias PolicrMini.PermissionBusiness
@doc """
处理登录命令。
此命令会提示用户私聊使用,也仅限于私聊使用。
"""
def handle(%{chat: %{type: "private"}} = message, state) do
%{chat: %{i... | 26.268817 | 101 | 0.607041 |
f708b121993fc0d1300f1962bc188c47b48bea06 | 1,308 | ex | Elixir | apps/tai/lib/tai/orders/transitions/expire.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/orders/transitions/expire.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/orders/transitions/expire.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.Orders.Transitions.Expire do
@moduledoc """
The order was not filled or partially filled and removed from the order book
"""
@type client_id :: Tai.Orders.Order.client_id()
@type venue_order_id :: Tai.Orders.Order.venue_order_id()
@type t :: %__MODULE__{
client_id: client_id,
... | 25.647059 | 92 | 0.681193 |
f708d5c87894389924bd986c088e53e23ff50528 | 407 | exs | Elixir | mt9x9.exs | bluebat/mt9x9 | 0758ed7bba325ecc3a08a919ea7f38f6b9795306 | [
"Unlicense"
] | null | null | null | mt9x9.exs | bluebat/mt9x9 | 0758ed7bba325ecc3a08a919ea7f38f6b9795306 | [
"Unlicense"
] | null | null | null | mt9x9.exs | bluebat/mt9x9 | 0758ed7bba325ecc3a08a919ea7f38f6b9795306 | [
"Unlicense"
] | 1 | 2019-06-01T07:12:12.000Z | 2019-06-01T07:12:12.000Z | #!/usr/bin/elixir
# 9x9 multiplication table in Elixir
# CC0, Wei-Lun Chao <bluebat@member.fsf.org>, 2021.
# ./mt9x9.exs || elixir mt9x9.exs
Enum.each(Stream.take_every(1..9, 3), fn i ->
Enum.each(Enum.sort(1..9), fn j ->
Enum.each([i, i+1, i+2], fn k ->
IO.write "#{k}x#{j}=#{String.pad_leading... | 27.133333 | 74 | 0.565111 |
f708f5e76caf7017fab6d42f4b779248215e50d6 | 207 | exs | Elixir | test/controllers/page_controller_test.exs | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | 1 | 2017-09-20T23:46:35.000Z | 2017-09-20T23:46:35.000Z | test/controllers/page_controller_test.exs | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | defmodule PastryChefTest.PageControllerTest do
use PastryChefTest.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23 | 60 | 0.695652 |
f7090783fbac9a76f06cc92823231421fa551947 | 7,878 | ex | Elixir | lib/codes/codes_d31.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d31.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_d31.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_D31 do
alias IcdCode.ICDCode
def _D3100 do
%ICDCode{full_code: "D3100",
category_code: "D31",
short_code: "00",
full_name: "Benign neoplasm of unspecified conjunctiva",
short_name: "Benign neoplasm of unspecified conjunctiva",
cate... | 35.327354 | 83 | 0.621351 |
f7092a0aece354bec660c312b483a441d6fe8f6f | 25,117 | ex | Elixir | lib/type_system/evaluator.ex | tpoulsen/terp | a11b2452bec7b3dd558b5b51a27b44a5b7dda009 | [
"BSD-2-Clause"
] | 23 | 2017-09-22T07:13:34.000Z | 2021-06-08T14:50:06.000Z | lib/type_system/evaluator.ex | smpoulsen/terp | a11b2452bec7b3dd558b5b51a27b44a5b7dda009 | [
"BSD-2-Clause"
] | 5 | 2017-08-26T18:40:54.000Z | 2017-09-28T00:24:50.000Z | lib/type_system/evaluator.ex | smpoulsen/terp | a11b2452bec7b3dd558b5b51a27b44a5b7dda009 | [
"BSD-2-Clause"
] | 4 | 2017-09-27T23:14:59.000Z | 2021-06-08T14:50:12.000Z | defmodule Terp.TypeSystem.Evaluator do
@moduledoc """
The primary type inference module.
"""
alias Terp.Error
alias Terp.TypeSystem.Type
alias Terp.TypeSystem.Annotation
alias Terp.TypeSystem.TypeVars
alias Terp.TypeSystem.Environment
alias Terp.TypeSystem.Match
@type scheme :: {[Type.t], Type.t}
... | 35.62695 | 125 | 0.547597 |
f7092e1731a1c11c0225cd887444c8f7f2fc79e8 | 742 | ex | Elixir | lib/multipster_web/controllers/account_controller.ex | adamniedzielski/multipster | 1abf95d545ab8d6bac3f26e0cfb632e2ba69c7d7 | [
"MIT"
] | 2 | 2018-01-24T08:31:09.000Z | 2019-04-14T11:06:02.000Z | lib/multipster_web/controllers/account_controller.ex | adamniedzielski/multipster | 1abf95d545ab8d6bac3f26e0cfb632e2ba69c7d7 | [
"MIT"
] | 5 | 2017-12-20T16:51:06.000Z | 2017-12-28T13:54:08.000Z | lib/multipster_web/controllers/account_controller.ex | adamniedzielski/multipster | 1abf95d545ab8d6bac3f26e0cfb632e2ba69c7d7 | [
"MIT"
] | null | null | null | defmodule MultipsterWeb.AccountController do
use MultipsterWeb, :controller
alias Multipster.Repo
alias Multipster.User
alias MultipsterWeb.SignIn.Link
def new(conn, _params) do
changeset = User.changeset(%User{}, %{})
render(conn, "new.html", changeset: changeset)
end
def create(conn, %{"user" ... | 26.5 | 87 | 0.661725 |
f709392d63a23368986aa0dd9019b44f7e86c86b | 4,637 | ex | Elixir | lib/scenic/primitive/style/style.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/style.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/style.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-05-06.
# Copyright © 2017-2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Primitive.Style do
@moduledoc """
Modify the look of a primitive by applying a Style.
Styles are optional modifiers that you can put on any primitive. Each style does a
specific thing a... | 30.11039 | 89 | 0.592625 |
f70957d39343e0fbd2a6bcea5778b900d2fef03e | 398 | ex | Elixir | lib/exshome/datatype/string.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | 2 | 2021-12-21T16:32:56.000Z | 2022-02-22T17:06:39.000Z | lib/exshome/datatype/string.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | lib/exshome/datatype/string.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | defmodule Exshome.DataType.String do
@moduledoc """
String datatype.
"""
use Exshome.DataType
@impl Ecto.Type
def type, do: :string
@impl Ecto.Type
def cast(data) when is_binary(data), do: {:ok, data}
def cast(_), do: :error
@impl Ecto.Type
def dump(term) when is_binary(term), do: {:ok, term}
... | 18.952381 | 54 | 0.658291 |
f7095db4c9cba90e3ff07dde7e40ac24bd8785df | 1,139 | exs | Elixir | config/config.exs | staring-frog/cth_readable | ca924c8c0de3107b086f51e6683bdbac84f8c270 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | staring-frog/cth_readable | ca924c8c0de3107b086f51e6683bdbac84f8c270 | [
"BSD-3-Clause"
] | null | null | null | config/config.exs | staring-frog/cth_readable | ca924c8c0de3107b086f51e6683bdbac84f8c270 | [
"BSD-3-Clause"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.741935 | 73 | 0.753292 |
f7097861df284421e4e40474447b1835ed34331f | 1,309 | ex | Elixir | lib/alchemetrics/backends/console_backend.ex | panoramix360/alchemetrics | 7aa973bf951d5b892311831d46285a45cda0cee4 | [
"MIT"
] | 32 | 2017-07-06T13:40:00.000Z | 2021-10-17T23:56:17.000Z | lib/alchemetrics/backends/console_backend.ex | panoramix360/alchemetrics | 7aa973bf951d5b892311831d46285a45cda0cee4 | [
"MIT"
] | 20 | 2017-07-06T14:05:33.000Z | 2021-12-02T01:04:31.000Z | lib/alchemetrics/backends/console_backend.ex | panoramix360/alchemetrics | 7aa973bf951d5b892311831d46285a45cda0cee4 | [
"MIT"
] | 6 | 2017-07-06T14:45:38.000Z | 2021-10-08T12:27:49.000Z | defmodule Alchemetrics.ConsoleBackend do
use Alchemetrics.CustomBackend
@moduledoc """
Backend to print the datasets measurements on the console.
## Using it with IEx
```elixir
iex(1)> Alchemetrics.ConsoleBackend.enable
:ok
Starting Elixir.Alchemetrics.ConsoleBackend with following options: []
iex(... | 27.851064 | 153 | 0.698243 |
f7098fb06347661c34908912c3ba561cffbd680e | 5,112 | exs | Elixir | test/absinthe/schema/sdl_render_test.exs | tristan-secord/absinthe | 8bde654ea5b10b1386fc363d6d6ba015f979a938 | [
"MIT"
] | 1 | 2020-08-12T12:34:40.000Z | 2020-08-12T12:34:40.000Z | test/absinthe/schema/sdl_render_test.exs | tristan-secord/absinthe | 8bde654ea5b10b1386fc363d6d6ba015f979a938 | [
"MIT"
] | null | null | null | test/absinthe/schema/sdl_render_test.exs | tristan-secord/absinthe | 8bde654ea5b10b1386fc363d6d6ba015f979a938 | [
"MIT"
] | null | null | null | defmodule SdlRenderTest do
use ExUnit.Case
defmodule SdlTestSchema do
use Absinthe.Schema
alias Absinthe.Blueprint.Schema
@sdl """
schema {
query: Query
}
directive @foo(name: String!) on OBJECT | SCALAR
interface Animal {
legCount: Int!
}
\"""
A submitted p... | 19.813953 | 83 | 0.545383 |
f7099b3d53a560bb28b2effef6cbe84c3fb8aa52 | 963 | exs | Elixir | run-length-encoding/rle.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | run-length-encoding/rle.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | run-length-encoding/rle.exs | mauricius/exercism-elixir | c6babb343f9f024a84cfa8328c6adf7a8aa504a5 | [
"MIT"
] | null | null | null | defmodule RunLengthEncoder do
@doc """
Generates a string where consecutive elements are represented as a data value and count.
"AABBBCCCC" => "2A3B4C"
For this example, assume all input are strings, that are all uppercase letters.
It should also be able to reconstruct the data into its original form.
"2A3B... | 25.342105 | 90 | 0.583593 |
f709bfd5acb44f0e16c9810772ef55fc76947844 | 478 | ex | Elixir | lib/bike_brigade_web/views/error_view.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade_web/views/error_view.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade_web/views/error_view.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigadeWeb.ErrorView do
use BikeBrigadeWeb, :view
def render("403.html", %{reason: %BikeBrigadeWeb.DeliveryExpiredError{}}) do
"This delivery is now over. Thank you for riding with The Bike Brigade!"
end
# By default, Phoenix returns the status message from
# the template name. For example... | 31.866667 | 78 | 0.753138 |
f709c0eae15eae702cb26cad02bb9c7cc66e2a45 | 904 | exs | Elixir | mix.exs | RobinDaugherty/gh_webhook_plug | c8561be5303ca8cb12ec6102cf4a5a7b3f971906 | [
"MIT"
] | 1 | 2017-10-04T15:03:59.000Z | 2017-10-04T15:03:59.000Z | mix.exs | RobinDaugherty/github_webhook_authentication_plug | c8561be5303ca8cb12ec6102cf4a5a7b3f971906 | [
"MIT"
] | null | null | null | mix.exs | RobinDaugherty/github_webhook_authentication_plug | c8561be5303ca8cb12ec6102cf4a5a7b3f971906 | [
"MIT"
] | null | null | null | defmodule GithubWebhookAuthenticationPlug.Mixfile do
use Mix.Project
def project do
[
app: :github_webhook_authentication_plug,
version: "0.0.3",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package:... | 20.088889 | 99 | 0.590708 |
f709d36071f6421de87c59726a555b0131c6c1b3 | 4,850 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/client.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... | 64.666667 | 696 | 0.745773 |
f709e2d6ca28aa96a0d2fe221a2037916b8e6fd7 | 11,525 | exs | Elixir | test/test_helper.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | test/test_helper.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | test/test_helper.exs | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | Application.ensure_all_started(:mimic)
Application.ensure_all_started(:farmbot)
defmodule Helpers do
alias FarmbotCore.Asset.{Repo, Point}
@wait_time 180
@fake_jwt "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZ" <>
"G1pbkBhZG1pbi5jb20iLCJpYXQiOjE1MDIxMjcxMTcsImp0a" <>
"SI6IjlhZj... | 31.317935 | 85 | 0.686941 |
f70a735a2b5376c8c2244a3c841ad33a2fe4dbf6 | 2,272 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_environment_test_cases_config.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_environment_test_cases_config.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_environment_test_cases_config.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... | 39.172414 | 209 | 0.739877 |
f70a7ad188c2ef651699214898ff697eda2731cc | 1,124 | ex | Elixir | lib/ex_money/saltedge/account.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 184 | 2015-11-23T20:51:50.000Z | 2022-03-30T01:01:39.000Z | lib/ex_money/saltedge/account.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 15 | 2015-11-26T16:00:20.000Z | 2018-05-25T20:13:39.000Z | lib/ex_money/saltedge/account.ex | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 21 | 2015-11-26T21:34:40.000Z | 2022-03-26T02:56:42.000Z | defmodule ExMoney.Saltedge.Account do
require Logger
alias ExMoney.{Account, Repo}
def sync(user_id, saltedge_login_id) do
endpoint = "accounts?login_id=#{saltedge_login_id}"
case ExMoney.Saltedge.Client.request(:get, endpoint) do
{:ok, response} ->
Enum.each response["data"], fn(se_accoun... | 32.114286 | 91 | 0.658363 |
f70a844002638ad888fe0fb3415497da25704d6c | 713 | ex | Elixir | web/gettext.ex | robinsonj/ptdb | a804b3eabd1026342089be6ed951642ee0a74dcb | [
"MIT"
] | null | null | null | web/gettext.ex | robinsonj/ptdb | a804b3eabd1026342089be6ed951642ee0a74dcb | [
"MIT"
] | null | null | null | web/gettext.ex | robinsonj/ptdb | a804b3eabd1026342089be6ed951642ee0a74dcb | [
"MIT"
] | null | null | null | defmodule PokeTeamDb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import PokeTeamDb.Gettext
# Simple translation
gettext "Here is t... | 28.52 | 72 | 0.683029 |
f70a8605230b6737e697fafdb9a0b32eee667bf8 | 826 | ex | Elixir | lib/elm/ecto/name.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 377 | 2018-04-05T03:36:00.000Z | 2022-03-30T19:12:44.000Z | lib/elm/ecto/name.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 91 | 2018-05-24T21:56:06.000Z | 2022-02-26T03:54:04.000Z | lib/elm/ecto/name.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 34 | 2018-05-29T03:54:35.000Z | 2022-01-13T07:12:46.000Z | defmodule Elm.Ecto.Name do
alias Elm.Name
@behaviour Ecto.Type
def up do
Ecto.Migration.execute("""
do $$ begin
if not exists (select 1 from pg_type where typname = 'elm_name') then
create type elm_name as (
username varchar(255),
project varchar(255)
... | 20.65 | 77 | 0.588378 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.