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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79fcb1cb25f7b0aa1fcb8dd5997f566ecd6ab528 | 754 | ex | Elixir | apps/service_persist/lib/persist/transformations.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_persist/lib/persist/transformations.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_persist/lib/persist/transformations.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Persist.Transformations do
@moduledoc """
State management functions for transformation events.
"""
@instance Persist.Application.instance()
@collection "transformations"
import Definition, only: [identifier: 1, identifier: 2]
@spec persist(Transform.t()) :: :ok
def persist(transform) do
... | 29 | 90 | 0.669761 |
79fcb9240ee62c684091e7c1fe623a901ebc7b3c | 399 | ex | Elixir | lib/hologram/template/token_html_encoder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/template/token_html_encoder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/template/token_html_encoder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | # Covered in Hologram.Template.Parser integration tests
defmodule Hologram.Template.TokenHTMLEncoder do
def encode(arg)
def encode(tokens) when is_list(tokens) do
Enum.map(tokens, &encode/1)
|> Enum.join("")
end
def encode({:symbol, symbol}), do: to_string(symbol)
def encode({:string, str}), do: s... | 21 | 55 | 0.686717 |
79fcdbb67a983a8526fa9b8cde6231e23476c67c | 393 | ex | Elixir | lib/ambrosia_web/pow/mailer.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 2 | 2020-05-25T05:28:31.000Z | 2020-05-25T08:10:43.000Z | lib/ambrosia_web/pow/mailer.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | 9 | 2020-05-25T16:39:15.000Z | 2020-11-11T16:51:37.000Z | lib/ambrosia_web/pow/mailer.ex | emeric-martineau/ambrosia | 74c55d35cf66537d7c8a33ef6057e89d44abd347 | [
"MIT"
] | null | null | null | defmodule AmbrosiaWeb.Pow.Mailer do
use Pow.Phoenix.Mailer
require Logger
def cast(%{user: user, subject: subject, text: text, html: html, assigns: _assigns}) do
# Build email struct to be used in `process/1`
%{to: user.email, subject: subject, text: text, html: html}
end
def process(email) do
... | 24.5625 | 89 | 0.679389 |
79fd0ac19fc43fed6775d4b79dbecfd20db715a2 | 2,152 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/backend_service_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/backend_service_list_warning.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/backend_service_list_warning.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... | 40.603774 | 245 | 0.723513 |
79fd77adac94c80c3c076bea9f4f076619a9dc8f | 2,882 | exs | Elixir | test/graphql/resolvers/document_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/graphql/resolvers/document_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/graphql/resolvers/document_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule AccentTest.GraphQL.Resolvers.Document do
use Accent.RepoCase
alias Accent.GraphQL.Resolvers.Document, as: Resolver
alias Accent.{
Repo,
Project,
Document,
Translation,
Revision,
User,
Language
}
defmodule PlugConn do
defstruct [:assigns]
end
@user %User{email:... | 42.382353 | 166 | 0.674185 |
79fd9646020f3995fb014846fb3a673f221b9ad1 | 3,116 | ex | Elixir | lib/elixir_boilerplate_web/endpoint.ex | k0d3rR/Elixir-Boilerplate | e69693497f68cb92f9e2d4cd79b7c774564be437 | [
"Unlicense"
] | 1 | 2020-09-20T14:06:40.000Z | 2020-09-20T14:06:40.000Z | lib/elixir_boilerplate_web/endpoint.ex | yvc74/v9 | c0c3913f1efb58113224bfed07dcbabfdd35e51a | [
"BSD-3-Clause"
] | null | null | null | lib/elixir_boilerplate_web/endpoint.ex | yvc74/v9 | c0c3913f1efb58113224bfed07dcbabfdd35e51a | [
"BSD-3-Clause"
] | null | null | null | defmodule ElixirBoilerplateWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :elixir_boilerplate
use Sentry.Phoenix.Endpoint
socket(
"/socket",
ElixirBoilerplateWeb.Socket,
websocket: true
)
plug(ElixirBoilerplateWeb.Health.Plug)
plug(:canonical_host)
plug(:force_ssl)
plug(:cors)
plug(:basi... | 27.095652 | 158 | 0.705712 |
79fe033ff6f22dd90cb4bf2ed059c1ff91684ada | 69 | exs | Elixir | farmbot_celery_script/.formatter.exs | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_celery_script/.formatter.exs | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_celery_script/.formatter.exs | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | [
inputs: ["*.{ex,exs}", "{config,priv,lib,test}/**/*.{ex,exs}"]
]
| 17.25 | 64 | 0.478261 |
79fe3434d93ab172e946fa5a60f1fa5dfb7971bf | 4,579 | ex | Elixir | lib/sap.ex | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | 7 | 2015-10-25T16:38:45.000Z | 2020-01-12T19:06:57.000Z | lib/sap.ex | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | null | null | null | lib/sap.ex | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | null | null | null | defmodule Sap do
@moduledoc """
Sap is a toolkit for Plug applications to accept and respond to HTTP
requests by using a decision tree built with combinators.
## Making a decision with combinators
In most Plug applications, there is some sort of match and/or dispatch
process that takes place for an indivi... | 33.423358 | 76 | 0.689452 |
79fe3c0fd839e63a2fbcbe72b347e20eed970f86 | 9,079 | exs | Elixir | test/phoenix/endpoint/endpoint_test.exs | esambo/phoenix | f7784f86ed803a39eb45486f0e031e974e708818 | [
"MIT"
] | null | null | null | test/phoenix/endpoint/endpoint_test.exs | esambo/phoenix | f7784f86ed803a39eb45486f0e031e974e708818 | [
"MIT"
] | null | null | null | test/phoenix/endpoint/endpoint_test.exs | esambo/phoenix | f7784f86ed803a39eb45486f0e031e974e708818 | [
"MIT"
] | null | null | null | System.put_env("ENDPOINT_TEST_HOST", "example.com")
defmodule Phoenix.Endpoint.EndpointTest do
use ExUnit.Case, async: true
use RouterHelper
@config [url: [host: {:system, "ENDPOINT_TEST_HOST"}, path: "/api"],
static_url: [host: "static.example.com"],
server: false, http: [port: 80], https... | 37.987448 | 128 | 0.685648 |
79fe5395ffea4e5d55c81a729b926ed1478972c8 | 1,368 | ex | Elixir | apps/chex/test/support/data_case.ex | chrisfishwood/chex | 04d3446f3d25c8c3c0badd282b50abccc59cc41d | [
"MIT"
] | null | null | null | apps/chex/test/support/data_case.ex | chrisfishwood/chex | 04d3446f3d25c8c3c0badd282b50abccc59cc41d | [
"MIT"
] | null | null | null | apps/chex/test/support/data_case.ex | chrisfishwood/chex | 04d3446f3d25c8c3c0badd282b50abccc59cc41d | [
"MIT"
] | null | null | null | defmodule Chex.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test ru... | 25.333333 | 77 | 0.67617 |
79fe7942900290dde1772c9229b5c5579eab5782 | 2,886 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/user_posix_account.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/user_posix_account.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/user_posix_account.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... | 39 | 119 | 0.662855 |
79fe9b12f0f226bdd8fdbc41020b5f680d2bf9c5 | 1,125 | exs | Elixir | config/config.exs | szTheory/elixir-leaseweb | 98be9c7cc496b52d7b12d4986078d1b68fca1e71 | [
"MIT"
] | 1 | 2018-09-07T15:56:14.000Z | 2018-09-07T15:56:14.000Z | config/config.exs | szTheory/elixir-leaseweb | 98be9c7cc496b52d7b12d4986078d1b68fca1e71 | [
"MIT"
] | null | null | null | config/config.exs | szTheory/elixir-leaseweb | 98be9c7cc496b52d7b12d4986078d1b68fca1e71 | [
"MIT"
] | 2 | 2017-02-11T03:00:58.000Z | 2020-03-03T21:21:42.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.290323 | 73 | 0.755556 |
79fed457661c0d812123436289e12a1625a5a5b6 | 86 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/MatchedDotOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/MatchedDotOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_two_operation_parsing_test_case/MatchedDotOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | One.two ++ Three.four
One.two -- Three.four
One.two..Three.four
One.two <> Three.four
| 17.2 | 21 | 0.697674 |
79fedca4636dd2f84de2d452c6143fb464f89bf1 | 8,412 | exs | Elixir | test/parent/client_test.exs | jlgeering/parent | 90fb6d08e6ce123852783a3f274d21c674bb4753 | [
"MIT"
] | 200 | 2018-04-08T20:36:15.000Z | 2022-03-12T14:43:46.000Z | test/parent/client_test.exs | jlgeering/parent | 90fb6d08e6ce123852783a3f274d21c674bb4753 | [
"MIT"
] | 15 | 2018-05-31T11:03:21.000Z | 2022-02-19T21:26:21.000Z | test/parent/client_test.exs | jlgeering/parent | 90fb6d08e6ce123852783a3f274d21c674bb4753 | [
"MIT"
] | 18 | 2018-05-16T02:09:35.000Z | 2022-02-03T18:56:30.000Z | defmodule Parent.ClientTest do
use ExUnit.Case, async: true
import Parent.CaptureLog
alias Parent.Client
setup do
Mox.stub(Parent.RestartCounter.TimeProvider.Test, :now_ms, fn ->
:erlang.unique_integer([:monotonic, :positive]) * :timer.seconds(5)
end)
:ok
end
describe "child_pid/1" do
... | 33.783133 | 94 | 0.611032 |
79fee3f4fdef4beb652db7fd38911914844cd505 | 1,111 | ex | Elixir | graphical/lib/graphical/accounts/user.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/lib/graphical/accounts/user.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/lib/graphical/accounts/user.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | defmodule Graphical.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
alias Graphical.Accounts.User
schema "users" do
field :email, :string
field :name, :string
field :password, :string, virtual: true
field :encrypted_password
has_many :posts, Graphical.Posts.Post
timestamps()
... | 24.152174 | 88 | 0.647165 |
79fef09518bb1976a70eda11134844b917a514e3 | 274 | exs | Elixir | farmbot_core/priv/config/migrations/20180813200950_add_ssh_opts.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/priv/config/migrations/20180813200950_add_ssh_opts.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/config/migrations/20180813200950_add_ssh_opts.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule Farmbot.System.ConfigStorage.Migrations.AddSshOpts do
use Ecto.Migration
import FarmbotCore.Config.MigrationHelpers
def change do
create_settings_config("ssh_port", :float, 22.0)
create_settings_config("authorized_ssh_key", :string, nil)
end
end
| 24.909091 | 63 | 0.788321 |
79ff1af6791b95169552481c96f7d28437e9e9fb | 2,609 | exs | Elixir | phoenix/test/mehr_schulferien_web/controllers/api/country_controller_test.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/test/mehr_schulferien_web/controllers/api/country_controller_test.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/test/mehr_schulferien_web/controllers/api/country_controller_test.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.Api.CountryControllerTest do
use MehrSchulferienWeb.ConnCase
alias MehrSchulferien.Locations
alias MehrSchulferien.Locations.Country
@create_attrs %{name: "some name", slug: "some slug"}
@update_attrs %{name: "some updated name", slug: "some updated slug"}
@invalid_attrs %{nam... | 31.817073 | 100 | 0.643542 |
79ff2135bd4f9db2abcd8cd3d25784323f706bda | 2,791 | ex | Elixir | instrumentation/opentelemetry_oban/lib/opentelemetry_oban/job_handler.ex | qdentity/opentelemetry-erlang-contrib | eecb238cff95edb111a70d3c617dd1995f6b0eba | [
"Apache-2.0"
] | null | null | null | instrumentation/opentelemetry_oban/lib/opentelemetry_oban/job_handler.ex | qdentity/opentelemetry-erlang-contrib | eecb238cff95edb111a70d3c617dd1995f6b0eba | [
"Apache-2.0"
] | null | null | null | instrumentation/opentelemetry_oban/lib/opentelemetry_oban/job_handler.ex | qdentity/opentelemetry-erlang-contrib | eecb238cff95edb111a70d3c617dd1995f6b0eba | [
"Apache-2.0"
] | null | null | null | defmodule OpentelemetryOban.JobHandler do
alias OpenTelemetry.Span
@tracer_id :opentelemetry_oban
def attach() do
attach_job_start_handler()
attach_job_stop_handler()
attach_job_exception_handler()
end
defp attach_job_start_handler() do
:telemetry.attach(
"#{__MODULE__}.job_start",
... | 27.362745 | 83 | 0.66607 |
79ff4067421ecbbda82fdfd2362b5d907658752b | 787 | ex | Elixir | out/manticoresearch-elixir/lib/manticoresearch/model/insert_document_request.ex | manticoresoftware/openapi | 79bccede913291724c83ebcad5590f1f13ff7726 | [
"MIT"
] | null | null | null | out/manticoresearch-elixir/lib/manticoresearch/model/insert_document_request.ex | manticoresoftware/openapi | 79bccede913291724c83ebcad5590f1f13ff7726 | [
"MIT"
] | 3 | 2021-12-21T08:18:48.000Z | 2022-03-24T10:50:37.000Z | out/manticoresearch-elixir/lib/manticoresearch/model/insert_document_request.ex | manticoresoftware/openapi | 79bccede913291724c83ebcad5590f1f13ff7726 | [
"MIT"
] | 5 | 2021-12-11T06:10:14.000Z | 2022-03-18T11:05:24.000Z | # Manticore Search Client
# Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com)
#
# All rights reserved
# Do not edit the class manually.
defmodule Manticoresearch.Model.InsertDocumentRequest do
@moduledoc """
Object with document data.
"""
@derive [Poison.Encoder]
defstruct [
... | 21.27027 | 79 | 0.660737 |
79ff45f945f26e9fb38da31b8dfe5fc4dea4ee06 | 1,272 | exs | Elixir | test/controllers/oembed_controller_test.exs | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 893 | 2017-09-14T14:18:29.000Z | 2022-03-31T21:45:08.000Z | test/controllers/oembed_controller_test.exs | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 103 | 2017-09-29T22:15:33.000Z | 2022-03-27T21:47:43.000Z | test/controllers/oembed_controller_test.exs | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 152 | 2017-09-07T12:43:15.000Z | 2022-03-10T18:47:47.000Z | defmodule Asciinema.OembedControllerTest do
use AsciinemaWeb.ConnCase
import Asciinema.Factory
alias AsciinemaWeb.Endpoint
describe "show" do
test "for JSON format", %{conn: conn} do
asciicast = insert(:asciicast)
url = Routes.asciicast_url(Endpoint, :show, asciicast)
conn =
get(... | 27.06383 | 98 | 0.621069 |
79ff5d86d7d9ea37cb62a76e0c7b51592603f32e | 1,142 | ex | Elixir | lib/exqlite/stream.ex | laszlohegedus/exqlite | ed0668228fc668cf6d49e1989614eaf02c5a2dd9 | [
"MIT"
] | null | null | null | lib/exqlite/stream.ex | laszlohegedus/exqlite | ed0668228fc668cf6d49e1989614eaf02c5a2dd9 | [
"MIT"
] | null | null | null | lib/exqlite/stream.ex | laszlohegedus/exqlite | ed0668228fc668cf6d49e1989614eaf02c5a2dd9 | [
"MIT"
] | null | null | null | defmodule Exqlite.Stream do
@moduledoc false
defstruct [:conn, :query, :params, :options]
@type t :: %Exqlite.Stream{}
defimpl Enumerable do
def reduce(%Exqlite.Stream{query: %Exqlite.Query{} = query} = stream, acc, fun) do
# Possibly need to pass a chunk size option along so that we can let
# ... | 26.55814 | 86 | 0.614711 |
79ff6339477439a4ffac6d8bf775445e314844b6 | 3,055 | exs | Elixir | test/wolfgang_api_web/controllers/album_controller_test.exs | davidenglishmusic/wolfgang_api | 828df91ddf46dcce4dee86c0f416cf292fc261be | [
"MIT"
] | null | null | null | test/wolfgang_api_web/controllers/album_controller_test.exs | davidenglishmusic/wolfgang_api | 828df91ddf46dcce4dee86c0f416cf292fc261be | [
"MIT"
] | null | null | null | test/wolfgang_api_web/controllers/album_controller_test.exs | davidenglishmusic/wolfgang_api | 828df91ddf46dcce4dee86c0f416cf292fc261be | [
"MIT"
] | null | null | null | defmodule WolfgangApiWeb.AlbumControllerTest do
use WolfgangApiWeb.ConnCase
alias WolfgangApi.Directory
alias WolfgangApi.Directory.Album
@create_attrs %{
album_artist: "some album_artist",
composer: "some composer",
genre: "some genre",
title: "some title"
}
@update_attrs %{
album_art... | 30.247525 | 92 | 0.606547 |
79ff6a8338931c195646796e111f93dcdb5c5caf | 2,334 | ex | Elixir | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/config.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/config.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/config.ex | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2018 Ispirata Srl
#
# 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 appl... | 31.12 | 148 | 0.72665 |
79ff98fd4bc3287f6a8fbbe8a88a08c1e7b97996 | 1,341 | ex | Elixir | apps/faqcheck_web/lib/faqcheck_web/views/error_helpers.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | apps/faqcheck_web/lib/faqcheck_web/views/error_helpers.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | 20 | 2021-09-08T04:07:31.000Z | 2022-03-10T21:52:24.000Z | apps/faqcheck_web/lib/faqcheck_web/views/error_helpers.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | defmodule FaqcheckWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
require FaqcheckWeb.Gettext
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
name = input_name(form, field)
form.errors
... | 26.294118 | 147 | 0.604773 |
79ffa578542a453c51c9c90fd1781425765efe5e | 1,305 | exs | Elixir | bench/encoder.exs | rdf-elixir/rdf-xml-ex | abee756be39d64381a5126fb81f5cc1b4190f55d | [
"MIT"
] | 1 | 2020-11-16T15:07:18.000Z | 2020-11-16T15:07:18.000Z | bench/encoder.exs | rdf-elixir/rdf-xml-ex | abee756be39d64381a5126fb81f5cc1b4190f55d | [
"MIT"
] | null | null | null | bench/encoder.exs | rdf-elixir/rdf-xml-ex | abee756be39d64381a5126fb81f5cc1b4190f55d | [
"MIT"
] | null | null | null | alias RDF.XML.Encoder
data_dir = "bench/data/"
example_file = Path.join(data_dir, "org.rdf")
example_xml = File.read!(example_file)
example_graph = RDF.XML.Decoder.decode!(example_xml)
Benchee.run(
%{
"encode to string directly" => fn ->
{:ok, xml} = Encoder.encode(example_graph)
end,
"encode to s... | 23.727273 | 57 | 0.622222 |
79ffabbacce41054098999e35db8c12e86007dd1 | 67,241 | exs | Elixir | integration_test/cases/repo.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/repo.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/repo.exs | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../support/types.exs", __DIR__
defmodule Ecto.Integration.RepoTest do
use Ecto.Integration.Case, async: Application.get_env(:ecto, :async_integration_tests, true)
alias Ecto.Integration.TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.User
alias Ecto.Integr... | 38.912616 | 152 | 0.633587 |
79ffc85502db343c15929bcf58c59b235ac6d73f | 284 | exs | Elixir | verify/mix.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 57 | 2015-04-07T03:10:45.000Z | 2019-03-11T01:01:40.000Z | verify/mix.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 16 | 2015-03-09T19:56:17.000Z | 2019-03-16T14:24:02.000Z | verify/mix.exs | elixytics/ua_inspector | 11fd98f69b7853b70529ee73355ef57851248572 | [
"Apache-2.0"
] | 15 | 2015-02-02T23:14:00.000Z | 2019-03-16T13:15:05.000Z | defmodule UAInspector.Verify.MixProject do
use Mix.Project
def project do
[
app: :ua_inspector_verify,
version: "0.0.1",
elixir: "~> 1.9",
deps: [{:ua_inspector, path: "../"}],
deps_path: "../deps",
lockfile: "../mix.lock"
]
end
end
| 18.933333 | 43 | 0.552817 |
79ffd7801361e1832470b1abb2719c1955cda6aa | 1,652 | ex | Elixir | apps/frontend/lib/frontend_web/live/live_helpers.ex | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | apps/frontend/lib/frontend_web/live/live_helpers.ex | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | apps/frontend/lib/frontend_web/live/live_helpers.ex | ricardoebbers/exquisitle | 69367f56aae110e4efbd1960bc49b8d049a7de89 | [
"MIT"
] | null | null | null | defmodule FrontendWeb.LiveHelpers do
import Phoenix.LiveView
import Phoenix.LiveView.Helpers
alias Phoenix.LiveView.JS
@doc """
Renders a live component inside a modal.
The rendered modal receives a `:return_to` option to properly update
the URL when the modal is closed.
## Examples
<.modal r... | 27.081967 | 86 | 0.562349 |
79ffd941f51bf803e6f719471bd405a3498759b0 | 259 | exs | Elixir | config/test.exs | zampino/livex | 74bcc6557ca8e5185b7e4dac85323b1c5174e52d | [
"MIT"
] | 6 | 2016-03-31T21:23:21.000Z | 2020-09-15T01:36:17.000Z | config/test.exs | zampino/livex | 74bcc6557ca8e5185b7e4dac85323b1c5174e52d | [
"MIT"
] | null | null | null | config/test.exs | zampino/livex | 74bcc6557ca8e5185b7e4dac85323b1c5174e52d | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :livex, Livex.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 23.545455 | 56 | 0.72973 |
79ffea9d69d858548968c3e3ebf26ffaf86a819c | 3,011 | ex | Elixir | lib/odd_job/scheduler.ex | msimonborg/odd_job | 99c662b21e7a6ed34ebae6bdd79cb6ad997e9724 | [
"MIT"
] | 3 | 2022-02-01T13:49:51.000Z | 2022-02-04T05:56:34.000Z | lib/odd_job/scheduler.ex | msimonborg/odd_job | 99c662b21e7a6ed34ebae6bdd79cb6ad997e9724 | [
"MIT"
] | null | null | null | lib/odd_job/scheduler.ex | msimonborg/odd_job | 99c662b21e7a6ed34ebae6bdd79cb6ad997e9724 | [
"MIT"
] | null | null | null | defmodule OddJob.Scheduler do
@moduledoc """
The `OddJob.Scheduler` is responsible for execution of scheduled jobs.
Each scheduler is a dynamically supervised process that is created to manage a single timer
and a job or collection of jobs to send to a pool when the timer expires. After the jobs are
delivere... | 26.412281 | 97 | 0.682498 |
79fff9bdf43ba67fad73b5bb73ef8682d2eb7ad6 | 1,241 | ex | Elixir | clients/gke_hub/lib/google_api/gke_hub/v1/model/migrate_state.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/gke_hub/lib/google_api/gke_hub/v1/model/migrate_state.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/gke_hub/lib/google_api/gke_hub/v1/model/migrate_state.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.547619 | 74 | 0.758259 |
0300272e182f7121c4fd3eababc25c0ba6e3bde2 | 1,750 | ex | Elixir | clients/content/lib/google_api/content/v2/model/pos_store.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/pos_store.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/pos_store.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 ... | 33.018868 | 152 | 0.708 |
03002c804d2e9039f50104fce662ca1936f8a559 | 1,236 | exs | Elixir | nevernote/config/config.exs | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | 4 | 2019-01-07T09:15:23.000Z | 2021-06-18T02:56:14.000Z | nevernote/config/config.exs | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | nevernote/config/config.exs | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :nevernote,
ecto_repos: [Nevernote.Repo]... | 33.405405 | 80 | 0.783981 |
030031b82e7d8c204f893d08e37c16f4aa1e1cb6 | 611 | ex | Elixir | lib/notoriety/note_file.ex | aoswalt/notoriety | e8599a7831be0b647511f59881c536b6c5d97147 | [
"MIT"
] | null | null | null | lib/notoriety/note_file.ex | aoswalt/notoriety | e8599a7831be0b647511f59881c536b6c5d97147 | [
"MIT"
] | 5 | 2020-02-01T16:37:57.000Z | 2021-05-08T16:44:10.000Z | lib/notoriety/note_file.ex | aoswalt/notoriety | e8599a7831be0b647511f59881c536b6c5d97147 | [
"MIT"
] | null | null | null | defmodule Notoriety.NoteFile do
@moduledoc """
A file name and its associated `Notoriety.Note`
"""
alias Notoriety.Note
@enforce_keys [:file_name, :note]
defstruct [:file_name, :note]
@doc """
Construct a `NoteFile` from the given file name and `Notoriety.Note`.
"""
def new(file_name, %Note{} = n... | 21.821429 | 71 | 0.653028 |
0300367cd28236fef9bf0224c0bb5c82377e7fad | 210 | ex | Elixir | test/support/docs.ex | hasclass/tesla | c1ee0e3417ea269124869ca1ff33fd2364391154 | [
"MIT"
] | 1 | 2020-12-21T03:45:23.000Z | 2020-12-21T03:45:23.000Z | test/support/docs.ex | hasclass/tesla | c1ee0e3417ea269124869ca1ff33fd2364391154 | [
"MIT"
] | 1 | 2019-10-25T19:27:33.000Z | 2019-10-25T19:27:33.000Z | test/support/docs.ex | hasclass/tesla | c1ee0e3417ea269124869ca1ff33fd2364391154 | [
"MIT"
] | 1 | 2020-04-04T03:19:50.000Z | 2020-04-04T03:19:50.000Z | defmodule TeslaDocsTest do
defmodule Default do
use Tesla
end
defmodule NoDocs do
use Tesla, docs: false
@doc """
Something something
"""
def custom(url), do: get(url)
end
end
| 14 | 33 | 0.638095 |
030061b84eb9e442c4c860a6e800b06417a77a0f | 3,075 | ex | Elixir | apps/firestorm_data/lib/firestorm_data/categories/categories.ex | firestormforum/firestorm_elixir | 80caba13daa21ef6087aa85f6cf0dd1f016e9aef | [
"MIT"
] | 14 | 2020-01-03T04:13:48.000Z | 2021-12-01T16:16:24.000Z | apps/firestorm_data/lib/firestorm_data/categories/categories.ex | firestormforum/firestorm_elixir | 80caba13daa21ef6087aa85f6cf0dd1f016e9aef | [
"MIT"
] | 1 | 2019-10-07T23:31:52.000Z | 2019-10-07T23:31:52.000Z | apps/firestorm_data/lib/firestorm_data/categories/categories.ex | firestormforum/firestorm_elixir | 80caba13daa21ef6087aa85f6cf0dd1f016e9aef | [
"MIT"
] | 4 | 2020-01-20T16:43:18.000Z | 2022-03-03T23:05:37.000Z | defmodule FirestormData.Categories do
@moduledoc """
Threads exist within categories.
"""
alias FirestormData.{
Repo,
Categories.Category
}
@type index_params :: %{
optional(:pagination) => %{
optional(:per_page) => non_neg_integer(),
optional(:page) => non_neg_in... | 22.947761 | 98 | 0.592846 |
0300822715c1f27d59a3768d0d95d8d24945f918 | 217 | ex | Elixir | test/support/mocks.ex | valiot/nerves_hub_web | 01aef0b9b6b07d9f5c5440f7df0d2a3ec026daa8 | [
"Apache-2.0"
] | null | null | null | test/support/mocks.ex | valiot/nerves_hub_web | 01aef0b9b6b07d9f5c5440f7df0d2a3ec026daa8 | [
"Apache-2.0"
] | null | null | null | test/support/mocks.ex | valiot/nerves_hub_web | 01aef0b9b6b07d9f5c5440f7df0d2a3ec026daa8 | [
"Apache-2.0"
] | null | null | null | Code.compiler_options(ignore_module_conflict: true)
Mox.defmock(NervesHubWebCore.PatcherMock, for: NervesHubWebCore.Firmwares.Patcher)
Mox.defmock(NervesHubWebCore.UploadMock, for: NervesHubWebCore.Firmwares.Upload)
| 43.4 | 82 | 0.866359 |
0300886d72c64bac0409107817e005ef294aa02d | 1,167 | exs | Elixir | spec/assertions/enum/have_count_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 807 | 2015-03-25T14:00:19.000Z | 2022-03-24T08:08:15.000Z | spec/assertions/enum/have_count_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 254 | 2015-03-27T10:12:25.000Z | 2021-07-12T01:40:15.000Z | spec/assertions/enum/have_count_spec.exs | MeneDev/espec | ec4b3d579c5192999e930224a8a2650bb1fdf0bc | [
"Apache-2.0"
] | 85 | 2015-04-02T10:25:19.000Z | 2021-01-30T21:30:43.000Z | defmodule ESpec.Assertions.Enum.HaveCountSpec do
use ESpec, async: true
let :range, do: 1..3
context "Success" do
it "checks success with `to`" do
message = expect(range()) |> to(have_count(3))
expect(message) |> to(eq "`1..3` has `3` elements.")
end
it "checks success with `not_to`" do... | 25.933333 | 77 | 0.59126 |
0300adb53e51df744428395bde3e0ca49d507191 | 3,572 | ex | Elixir | lib/cforum_web/views/voting_area_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/views/voting_area_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/views/voting_area_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule CforumWeb.VotingAreaView do
use CforumWeb, :view
alias Cforum.Messages.MessageHelpers
alias Cforum.Messages.Votes
def acceptance_status?(conn, message, top),
do: MessageHelpers.accepted?(message) && (top || !Abilities.accept?(conn, message))
def voting_svg(conn, path) do
[
{:safe,
... | 35.366337 | 124 | 0.595465 |
0300cddf296ce67cfd1818206de70e77fb23ce05 | 470 | ex | Elixir | lib/api_banking/financial/account.ex | juniornelson123/api_banking_teste | db263511d78fffe9e4081551817d006df2094316 | [
"MIT"
] | null | null | null | lib/api_banking/financial/account.ex | juniornelson123/api_banking_teste | db263511d78fffe9e4081551817d006df2094316 | [
"MIT"
] | null | null | null | lib/api_banking/financial/account.ex | juniornelson123/api_banking_teste | db263511d78fffe9e4081551817d006df2094316 | [
"MIT"
] | null | null | null | defmodule ApiBanking.Financial.Account do
use Ecto.Schema
import Ecto.Changeset
schema "accounts" do
field :amount, :float
field :number, :string
belongs_to :user, ApiBanking.Financial.User
has_many :transactions, ApiBanking.Financial.Transaction
timestamps()
end
@doc false
def chang... | 21.363636 | 60 | 0.7 |
0300dec73a25510261873272b02ec3a02bf1d5b8 | 1,792 | exs | Elixir | config/prod.exs | Baradoy/topshelf | bd3d5f96b3d3840990231cf244cc5f14bd807997 | [
"MIT"
] | null | null | null | config/prod.exs | Baradoy/topshelf | bd3d5f96b3d3840990231cf244cc5f14bd807997 | [
"MIT"
] | null | null | null | config/prod.exs | Baradoy/topshelf | bd3d5f96b3d3840990231cf244cc5f14bd807997 | [
"MIT"
] | null | null | null | import Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# w... | 35.84 | 96 | 0.708705 |
0300e828138615328f0eafb20c4af48810a817b1 | 1,693 | exs | Elixir | elixir/config/dev.exs | Arthurb101/web-homework | d3f768a71c7d9e13e456028c491ced8e71e6cda4 | [
"MIT"
] | null | null | null | elixir/config/dev.exs | Arthurb101/web-homework | d3f768a71c7d9e13e456028c491ced8e71e6cda4 | [
"MIT"
] | null | null | null | elixir/config/dev.exs | Arthurb101/web-homework | d3f768a71c7d9e13e456028c491ced8e71e6cda4 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :homework, Homework.Repo,
username: "postgres",
password: "mypassword",
database: "homework_dev",
hostname: "35.188.173.102",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code... | 29.189655 | 68 | 0.724749 |
030123d1b28ce1a18d4bc44e9b262f459e728019 | 2,382 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/typed_data_hash/types.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher/lib/omg_watcher/typed_data_hash/types.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher/lib/omg_watcher/typed_data_hash/types.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 30.151899 | 115 | 0.625945 |
03012a62181995def08f9d9bfbd220baabaa663a | 709 | ex | Elixir | apps/artemis/lib/artemis/contexts/permission/delete_permission.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/contexts/permission/delete_permission.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/permission/delete_permission.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-04-10T13:34:15.000Z | 2019-05-17T02:42:24.000Z | defmodule Artemis.DeletePermission do
use Artemis.Context
alias Artemis.GetPermission
alias Artemis.Repo
def call!(id, params \\ %{}, user) do
case call(id, params, user) do
{:error, _} -> raise(Artemis.Context.Error, "Error deleting permission")
{:ok, result} -> result
end
end
def ca... | 26.259259 | 78 | 0.662906 |
03012d5f3261993745944c09d829225d14a68c7c | 1,089 | exs | Elixir | test/util/bank_test.exs | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | 1 | 2019-11-16T00:33:02.000Z | 2019-11-16T00:33:02.000Z | test/util/bank_test.exs | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | 1 | 2019-08-11T23:02:15.000Z | 2019-08-11T23:02:15.000Z | test/util/bank_test.exs | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | null | null | null | defmodule Util.BankTest do
use ExUnit.Case
import Util.Test.DataBuilder
test "new with exactly a bank worth of data returns a bank" do
data = build_block_of_ffs(Util.Bank.bank_size())
assert %Util.Bank{} = Util.Bank.new(data)
end
test "new with more than a bank worth of data returns a bank and the e... | 35.129032 | 86 | 0.733701 |
030161a79053fdc12d86a7d7782c25fac0433321 | 1,193 | ex | Elixir | lib/table_rex/renderer/text/meta.ex | elixir-poa/table_rex | af8f5b421215e53921d212185b60be7b03b524b1 | [
"MIT"
] | 1 | 2018-04-26T13:41:33.000Z | 2018-04-26T13:41:33.000Z | lib/table_rex/renderer/text/meta.ex | geolessel/table_rex | af8f5b421215e53921d212185b60be7b03b524b1 | [
"MIT"
] | null | null | null | lib/table_rex/renderer/text/meta.ex | geolessel/table_rex | af8f5b421215e53921d212185b60be7b03b524b1 | [
"MIT"
] | null | null | null | defmodule TableRex.Renderer.Text.Meta do
@moduledoc """
The data structure for the `TableRex.Renderer.Text` rendering module, it holds results
of style & dimension calculations to be passed down the render pipeline.
"""
alias TableRex.Renderer.Text.Meta
defstruct col_widths: %{},
row_heights: %... | 27.744186 | 88 | 0.678122 |
0301727c4e6e7fc6c31ea31db55d485c3aa15404 | 3,214 | ex | Elixir | lib/gnat/handshake.ex | santif/nats.ex | 84277ae3ae5a7ea2a7e6e70e624c59683c72d0de | [
"MIT"
] | 102 | 2019-04-17T06:19:48.000Z | 2022-03-31T02:36:11.000Z | lib/gnat/handshake.ex | santif/nats.ex | 84277ae3ae5a7ea2a7e6e70e624c59683c72d0de | [
"MIT"
] | 29 | 2019-04-16T03:45:04.000Z | 2022-03-11T12:25:54.000Z | lib/gnat/handshake.ex | santif/nats.ex | 84277ae3ae5a7ea2a7e6e70e624c59683c72d0de | [
"MIT"
] | 17 | 2019-05-07T19:33:17.000Z | 2022-03-24T18:27:25.000Z | defmodule Gnat.Handshake do
@moduledoc false
alias Gnat.Parsec
@doc """
This function handles all of the variations of establishing a connection to
a nats server and just returns {:ok, socket} or {:error, reason}
"""
def connect(settings) do
host = settings.host |> to_charlist
case :gen_tcp.conne... | 37.372093 | 116 | 0.684816 |
0301906be6482283230b5942d643f06f610c1b94 | 1,505 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_project_details.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_project_details.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video_project_details.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 ... | 32.021277 | 127 | 0.738206 |
0301913614a7d76f0ad4ab7823d6b412899dd500 | 428 | exs | Elixir | test/_support/basic_gen_server.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 4 | 2020-06-27T02:15:42.000Z | 2020-12-21T14:24:42.000Z | test/_support/basic_gen_server.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 4 | 2020-06-03T16:51:55.000Z | 2020-09-08T19:28:55.000Z | test/_support/basic_gen_server.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 1 | 2020-12-21T14:24:47.000Z | 2020-12-21T14:24:47.000Z | defmodule MultiversesTest.BasicGenServer do
@moduledoc false
use Multiverses, with: GenServer
use GenServer
def start_link(options) do
GenServer.start_link(__MODULE__, :state, options)
end
@impl true
def init(:state), do: {:ok, :state}
def get_universe(srv), do: GenServer.call(srv, :universe)
... | 20.380952 | 59 | 0.712617 |
0301bad1686cfe30fa437035ce8b93734607decc | 2,611 | ex | Elixir | lib/yuri_template/simple_expander.ex | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | 3 | 2020-05-03T15:30:21.000Z | 2021-05-09T01:35:41.000Z | lib/yuri_template/simple_expander.ex | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | 1 | 2021-04-15T20:08:14.000Z | 2021-04-18T20:48:17.000Z | lib/yuri_template/simple_expander.ex | sirikid/yuri_template | 66846ed0f5a8407749408a4ebf526f9c27cb9366 | [
"Apache-2.0"
] | null | null | null | defmodule YuriTemplate.SimpleExpander do
@moduledoc false
@behaviour YuriTemplate.Expander
@impl true
def expand(acc, _substitutes, []), do: acc
def expand(acc, substitutes, [{:explode, var} | vars]) do
case Access.fetch(substitutes, var) do
:error ->
expand(acc, substitutes, vars)
... | 23.736364 | 83 | 0.456147 |
0301bc780b48eb52d187ba90bb69b052ed261017 | 162 | exs | Elixir | priv/repo/migrations/20161204021700_rename_owner_to_owner_id_in_rooms.exs | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20161204021700_rename_owner_to_owner_id_in_rooms.exs | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20161204021700_rename_owner_to_owner_id_in_rooms.exs | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | defmodule Lunatube.Repo.Migrations.RenameOwnerToOwnerIdInRooms do
use Ecto.Migration
def change do
rename table(:rooms), :owner, to: :owner_id
end
end
| 20.25 | 65 | 0.765432 |
0301d572f7e0941544fffab2d0e8485a88322e34 | 601 | ex | Elixir | lib/exfile/token.ex | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 100 | 2015-12-25T12:38:41.000Z | 2021-12-31T11:41:20.000Z | lib/exfile/token.ex | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 62 | 2015-12-26T01:43:54.000Z | 2019-09-15T16:16:35.000Z | lib/exfile/token.ex | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 22 | 2016-04-19T11:54:38.000Z | 2021-09-29T14:48:46.000Z | defmodule Exfile.Token do
@moduledoc false
@spec verify_token(Path.t, String.t) :: boolean
def verify_token(path, token) do
case Base.url_decode64(token) do
{:ok, hmac} ->
hmac == do_generate_token(path)
:error ->
false
end
end
@spec build_path(Path.t) :: Path.t
def bui... | 24.04 | 57 | 0.668885 |
0301f264798579ce0e5b7f1953c1fd61a1444bcc | 3,521 | exs | Elixir | test/mix/tasks/phoenix/new_test.exs | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | test/mix/tasks/phoenix/new_test.exs | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | test/mix/tasks/phoenix/new_test.exs | knewter/phoenix | 191909d97511ab99f9bbcc776cba9988c8b07596 | [
"MIT"
] | null | null | null | Code.require_file "../../mix_helper.exs", __DIR__
defmodule Mix.Tasks.Phoenix.NewTest do
# This test case needs to be sync because we rely on
# changing the current working directory which is global.
use ExUnit.Case
use Plug.Test
import MixHelper
import ExUnit.CaptureIO
@app_name "photo_blog"
@tmp_p... | 32.906542 | 94 | 0.66998 |
03020be2a58ed7e6aa83afbbf60febf65ea9f0ed | 1,564 | ex | Elixir | todo_interface/lib/todo_interface_web/views/error_helpers.ex | moritzploss/todoServer | 404db774493b42bb328c552c8c428fa4be2b10d1 | [
"MIT"
] | null | null | null | todo_interface/lib/todo_interface_web/views/error_helpers.ex | moritzploss/todoServer | 404db774493b42bb328c552c8c428fa4be2b10d1 | [
"MIT"
] | null | null | null | todo_interface/lib/todo_interface_web/views/error_helpers.ex | moritzploss/todoServer | 404db774493b42bb328c552c8c428fa4be2b10d1 | [
"MIT"
] | null | null | null | defmodule TodoInterfaceWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
conten... | 32.583333 | 82 | 0.66624 |
03022ffeb89b11e511a5ece8adfe99b8c4c41457 | 389 | ex | Elixir | lib/codes/codes_i00.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_i00.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_i00.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_I00 do
alias IcdCode.ICDCode
def _I00 do
%ICDCode{full_code: "I00",
category_code: "I00",
short_code: "",
full_name: "Rheumatic fever without heart involvement",
short_name: "Rheumatic fever without heart involvement",
category_nam... | 24.3125 | 68 | 0.658098 |
03023f135fb8c6386b050a4217204ba001d6b142 | 435 | ex | Elixir | lib/eds/dynamic_supervisor.ex | the-mediocre-dev/elixir-dev-server | 1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136 | [
"MIT"
] | null | null | null | lib/eds/dynamic_supervisor.ex | the-mediocre-dev/elixir-dev-server | 1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136 | [
"MIT"
] | null | null | null | lib/eds/dynamic_supervisor.ex | the-mediocre-dev/elixir-dev-server | 1ea20f92e1344f7f9fe3f9ac4fee91fb7371d136 | [
"MIT"
] | null | null | null | defmodule EDS.DynamicSupervisor do
use DynamicSupervisor
def start_link(args) do
DynamicSupervisor.start_link(__MODULE__, args, name: __MODULE__)
end
@impl true
def init(_args) do
DynamicSupervisor.init(strategy: :one_for_one)
end
def start_child(args) do
DynamicSupervisor.start_child(__MOD... | 20.714286 | 68 | 0.763218 |
030246e6bb2291657a51f5082df3e1971749cfcc | 1,814 | exs | Elixir | test/parser/js/declaration_test.exs | desweemerl/origami_parser | 52af0913f26be51162588d94c784aa5971beaf1a | [
"MIT"
] | null | null | null | test/parser/js/declaration_test.exs | desweemerl/origami_parser | 52af0913f26be51162588d94c784aa5971beaf1a | [
"MIT"
] | null | null | null | test/parser/js/declaration_test.exs | desweemerl/origami_parser | 52af0913f26be51162588d94c784aa5971beaf1a | [
"MIT"
] | null | null | null | defmodule Origami.Parser.Js.DeclarationTest do
use ExUnit.Case
alias Origami.Parser
alias Origami.Parser.Js
test "check if single declarations are parsed" do
declaration = """
var a = 1;
let b = 1;
const c = 1;
"""
{:ok, {:root, _, children}} = Parser.parse(declaration, Js)
expec... | 23.868421 | 65 | 0.396913 |
03024ebe7f13f371ad3d00e0136821ab4e495ae9 | 2,158 | exs | Elixir | test/views/job_view_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 4 | 2019-12-07T05:18:26.000Z | 2020-11-06T23:28:43.000Z | test/views/job_view_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 53 | 2020-01-06T11:23:09.000Z | 2021-06-25T15:30:07.000Z | test/views/job_view_test.exs | mathiaHT/ex_step_flow | 6496e9511239de64f00119428476338dfcde9dea | [
"MIT"
] | 3 | 2020-01-30T15:37:40.000Z | 2020-10-27T14:10:02.000Z | defmodule StepFlow.JobViewTest do
use ExUnit.Case
use Plug.Test
alias Ecto.Adapters.SQL.Sandbox
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
setup do
# Explicitly get a connection before each test
:ok = Sandbox.checkout(StepFlow.Repo)
# Setting the shar... | 26.975 | 90 | 0.52873 |
0302501c35421b1e16900bf38e470e24f378217c | 3,575 | exs | Elixir | test/pushex/helpers_test.exs | mauricionr/pushex-1 | a096335bd4b92da152cf9fe5f99c824433a6af41 | [
"MIT"
] | 69 | 2016-03-29T15:35:29.000Z | 2018-06-27T14:57:23.000Z | test/pushex/helpers_test.exs | mauricionr/pushex-1 | a096335bd4b92da152cf9fe5f99c824433a6af41 | [
"MIT"
] | 9 | 2016-04-29T09:14:49.000Z | 2017-10-31T02:08:14.000Z | test/pushex/helpers_test.exs | mauricionr/pushex-1 | a096335bd4b92da152cf9fe5f99c824433a6af41 | [
"MIT"
] | 6 | 2016-08-26T12:56:05.000Z | 2018-06-21T23:51:00.000Z | defmodule Pushex.HelpersTest do
use Pushex.Case
alias Pushex.Helpers
alias Pushex.GCM
test "send_notification delegates to GCM when using: :gcm" do
ref = Helpers.send_notification(%{body: "foo"}, to: "whoever", using: :gcm, with_app: "default_app")
assert_receive {{:ok, res}, req, ^ref}
assert mat... | 39.722222 | 104 | 0.677762 |
03027fef620f7dee84a09bf79aa5b159738190ab | 3,686 | exs | Elixir | test/printer/one_of_printer_test.exs | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | null | null | null | test/printer/one_of_printer_test.exs | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | null | null | null | test/printer/one_of_printer_test.exs | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | null | null | null | defmodule JS2ETest.Printer.OneOfPrinter do
use ExUnit.Case
require Logger
alias JS2E.Printer
alias JsonSchema.Types
alias Printer.OneOfPrinter
alias Types.{ObjectType, OneOfType, SchemaDefinition, TypeReference}
test "print 'one of' type value" do
result =
one_of_type()
|> OneOfPrinter.p... | 25.597222 | 70 | 0.589528 |
0302b03cd4172835d5617d2edfeb3a61f2206890 | 164 | exs | Elixir | config/test.exs | elixirsc/git-pair | b8fde0e560fb00ccdc5f41b6bf8ae2eb48dc9eff | [
"MIT"
] | 11 | 2020-03-04T13:40:18.000Z | 2020-11-07T02:04:50.000Z | config/test.exs | elixirsc/git-pair | b8fde0e560fb00ccdc5f41b6bf8ae2eb48dc9eff | [
"MIT"
] | 36 | 2020-03-07T11:35:39.000Z | 2020-12-15T13:58:25.000Z | config/test.exs | elixirsc/git-pair | b8fde0e560fb00ccdc5f41b6bf8ae2eb48dc9eff | [
"MIT"
] | null | null | null | import Config
config :git_pair,
command_runner: GitPair.SystemMock
config :git_pair,
storage: GitPair.StorageMock
config :git_pair,
hook: GitPair.HookMock
| 14.909091 | 36 | 0.786585 |
0302bfc627bf5ecd75c0f0bec54a5771ca0ca399 | 5,827 | ex | Elixir | lib/sanbase/kafka/kafka_exporter.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase/kafka/kafka_exporter.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase/kafka/kafka_exporter.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule Sanbase.KafkaExporter do
@moduledoc ~s"""
Module for persisting any data to Kafka.
The module exposes one function that should be used - `persist/1`.
This functions adds the data to an internal buffer that is flushed
every `kafka_flush_timeout` milliseconds or when the buffer is big enough.
The ... | 32.372222 | 106 | 0.669126 |
0302c00f0a768799f57f98f917b8533272023615 | 176 | exs | Elixir | daniel/prog_elix/ch22/eg1.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | daniel/prog_elix/ch22/eg1.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | daniel/prog_elix/ch22/eg1.exs | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | defmodule My do
defmacro macro(code) do
IO.inspect code
quote do: IO.puts "Different code"
end
end
defmodule Test do
require My
My.macro(IO.puts("hello"))
end
| 14.666667 | 38 | 0.693182 |
0302c10df99a157ef76aacc9bae6853385db261c | 1,026 | exs | Elixir | test/registery_test.exs | alisinabh/yasd | b42f164512ae3060de5aa50a43ff18ebbf5e9354 | [
"MIT"
] | null | null | null | test/registery_test.exs | alisinabh/yasd | b42f164512ae3060de5aa50a43ff18ebbf5e9354 | [
"MIT"
] | null | null | null | test/registery_test.exs | alisinabh/yasd | b42f164512ae3060de5aa50a43ff18ebbf5e9354 | [
"MIT"
] | null | null | null | defmodule YASD.RegistryTest do
use ExUnit.Case
alias YASD.Registry
test "register a service and fetching nodes work" do
service_name = "svc-#{Enum.random(1..99999)}"
:ok = Registry.register(service_name, "192.168.1.1")
:ok = Registry.register(service_name, "192.168.1.2", [])
:ok = Registry.regis... | 36.642857 | 82 | 0.65692 |
0302c59357f0588e9f33cf58c1e11266f6ac2d7c | 589 | ex | Elixir | lib/Voice/udp.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | null | null | null | lib/Voice/udp.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | null | null | null | lib/Voice/udp.ex | ElinksFr/alchemy | 4c64e5c619977a62a5674dbd2b1ef29f76f6f44e | [
"MIT"
] | null | null | null | defmodule Alchemy.Voice.UDP do
@moduledoc false
def open_udp(endpoint, port, ssrc) do
{:ok, discord_ip} = :inet.parse_address(to_charlist(endpoint))
data = <<ssrc :: size(560)>>
udp_opts = [:binary, active: false, reuseaddr: true]
{:ok, udp} = :gen_udp.open(0, udp_opts)
:gen_udp.send(udp, disco... | 34.647059 | 66 | 0.634975 |
03030560f74e5afb5be531b2e040c2f779547d13 | 1,267 | ex | Elixir | lib/dialyxir/warnings/negative_guard_fail.ex | groksrc/dialyxir | 2968bea2c22e67571bfa939422fc370ea5ce5b4c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/negative_guard_fail.ex | groksrc/dialyxir | 2968bea2c22e67571bfa939422fc370ea5ce5b4c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/negative_guard_fail.ex | groksrc/dialyxir | 2968bea2c22e67571bfa939422fc370ea5ce5b4c | [
"Apache-2.0"
] | null | null | null | defmodule Dialyxir.Warnings.NegativeGuardFail do
@behaviour Dialyxir.Warning
@impl Dialyxir.Warning
@spec warning() :: :neg_guard_fail
def warning(), do: :neg_guard_fail
@impl Dialyxir.Warning
@spec format_short([String.t()]) :: String.t()
def format_short(_) do
"Guard test can never succeed."
end... | 18.910448 | 70 | 0.621942 |
0303066612d79d9052dc8e0e86566898ea34d900 | 65 | exs | Elixir | config/test.exs | grahac/eth | 950eeb89e4059f0e8711ec5c7944732c161a4bef | [
"MIT"
] | 4 | 2021-12-01T17:20:34.000Z | 2021-12-09T23:09:03.000Z | config/test.exs | grahac/eth | 950eeb89e4059f0e8711ec5c7944732c161a4bef | [
"MIT"
] | null | null | null | config/test.exs | grahac/eth | 950eeb89e4059f0e8711ec5c7944732c161a4bef | [
"MIT"
] | 4 | 2021-04-29T23:42:55.000Z | 2022-01-30T23:55:58.000Z | use Mix.Config
config :ethereumex, url: "http://localhost:8545"
| 16.25 | 48 | 0.738462 |
03031de0afd54e0db34d5ac3aaa3ab2cd8fd1d19 | 1,377 | exs | Elixir | mix.exs | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null | mix.exs | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null | mix.exs | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null | defmodule Fona.Mixfile do
use Mix.Project
def project do
[app: :fona_modern,
version: "0.2.0",
elixir: "~> 1.11",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
name: "Fona_Modern",
... | 24.589286 | 103 | 0.606391 |
03032ed9b2305dac0192a722f3176c8df0fcf2f6 | 2,379 | ex | Elixir | lib/minecraft_controller_web.ex | TenTakano/Minecraft_Controller | a118a6e9694da3c0fdfa9ec93872790d38f093e3 | [
"MIT"
] | null | null | null | lib/minecraft_controller_web.ex | TenTakano/Minecraft_Controller | a118a6e9694da3c0fdfa9ec93872790d38f093e3 | [
"MIT"
] | 29 | 2021-02-13T06:54:56.000Z | 2021-06-06T09:55:36.000Z | lib/minecraft_controller_web.ex | TenTakano/Minecraft_Controller | a118a6e9694da3c0fdfa9ec93872790d38f093e3 | [
"MIT"
] | null | null | null | defmodule MinecraftControllerWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use MinecraftControllerWeb, :controller
use MinecraftControllerWeb, :view
The definitions below will be exe... | 25.580645 | 76 | 0.696091 |
030368ffccc5f29ecb7f71377bdbb31c4a1981d4 | 659 | exs | Elixir | test/codec_gsm_test.exs | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 7 | 2018-12-10T13:50:05.000Z | 2020-10-20T14:16:42.000Z | test/codec_gsm_test.exs | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | null | null | null | test/codec_gsm_test.exs | xirsys/xmedialib | 8e59b7691ffae93ea62fd9f037bf380c7f676ba0 | [
"Apache-2.0"
] | 4 | 2019-01-09T17:46:44.000Z | 2020-02-02T12:00:04.000Z | defmodule XMediaLib.CodecGSMTest do
use ExUnit.Case
alias XMediaLib.TestUtils
test "decoding from GSM to PCM" do
assert TestUtils.codec_decode(
"test/samples/gsm/sample-gsm-16-mono-8khz.raw",
"test/samples/gsm/sample-pcm-16-mono-8khz.raw",
33,
"GSM",
... | 26.36 | 65 | 0.550835 |
030390aebcae188341777c7d263baa87e6d16f92 | 339 | ex | Elixir | lib/offer_hunters/comments/get.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | 3 | 2021-10-01T21:13:02.000Z | 2021-11-05T22:25:55.000Z | lib/offer_hunters/comments/get.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | lib/offer_hunters/comments/get.ex | Ryandls/offer_hunters-backend | abedff162d8623e2fbaa4c5e4a518f1726bef436 | [
"MIT"
] | null | null | null | defmodule OfferHunters.Comments.Get do
@moduledoc """
Module for get comments
"""
alias OfferHunters.{Comment, Error, Repo}
def by_id(id) do
case Repo.get(Comment, id) do
%Comment{} = comment ->
{:ok, comment}
nil ->
{:error, Error.build(:not_found, "This id does't exist")}... | 19.941176 | 65 | 0.60472 |
0303c2a44ea706ed09d7f9f120de1ffa8838fe7a | 510 | ex | Elixir | lib/map.ex | ElixirCourse/lists-recursion-live-coding | 57c3d2dca0495451b9155de0c11db0d46fcf5031 | [
"MIT"
] | null | null | null | lib/map.ex | ElixirCourse/lists-recursion-live-coding | 57c3d2dca0495451b9155de0c11db0d46fcf5031 | [
"MIT"
] | null | null | null | lib/map.ex | ElixirCourse/lists-recursion-live-coding | 57c3d2dca0495451b9155de0c11db0d46fcf5031 | [
"MIT"
] | null | null | null | defmodule List.Map do
def map([], _), do: []
def map([h | t], fun), do: [fun.(h) | map(t, fun)]
def rmap(list, fun) do
list
|> List.Reduce.foldr([], fn elem, acc ->
[fun.(elem) | acc]
end)
end
def lmap(list, fun) do
list
|> List.Reduce.foldl([], fn elem, acc ->
[fun.(elem) | ... | 18.214286 | 52 | 0.505882 |
0303ccf3ab5b6f1340ff8c0d8cb094acec631b5d | 235 | exs | Elixir | priv/repo/migrations/20181217050227_add_live_to_queue_sources.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | priv/repo/migrations/20181217050227_add_live_to_queue_sources.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | priv/repo/migrations/20181217050227_add_live_to_queue_sources.exs | upmaru/cineplex | 7d1d516d3e3d3683b2ad4425b61517a8f556f721 | [
"MIT"
] | null | null | null | defmodule Cineplex.Repo.Migrations.AddLiveToQueueSources do
use Ecto.Migration
def change do
alter table(:queue_sources) do
add :live, :boolean, default: true
end
create index(:queue_sources, [:live])
end
end
| 19.583333 | 59 | 0.714894 |
0303f1201e716c22dc67a0081bc3f61194813644 | 3,700 | ex | Elixir | apps/language_server/lib/language_server/providers/formatting.ex | KTSCode/elixir-ls | 23d8b2a1cdbf8df1ae7e97c786779bf2c29201bc | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/providers/formatting.ex | KTSCode/elixir-ls | 23d8b2a1cdbf8df1ae7e97c786779bf2c29201bc | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/providers/formatting.ex | KTSCode/elixir-ls | 23d8b2a1cdbf8df1ae7e97c786779bf2c29201bc | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Providers.Formatting do
import ElixirLS.LanguageServer.Protocol, only: [range: 4]
alias ElixirLS.LanguageServer.SourceFile
def supported? do
function_exported?(Code, :format_string!, 2)
end
def format(source_file, uri, project_dir) do
if can_format?(uri, project_dir... | 34.90566 | 96 | 0.628649 |
0303f5f85e461455d5ad95efb2fd43d8a2e41438 | 1,993 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_audit_log_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_audit_log_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_iam_v1_audit_log_config.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... | 39.86 | 316 | 0.732564 |
0304022c4d0e070999c2366b6af8aa051ec2e5f9 | 819 | ex | Elixir | lib/app/storage.ex | drumser/markovich | 387d95b3d5cbc31f3c43dfa00906048ee8c29086 | [
"MIT"
] | null | null | null | lib/app/storage.ex | drumser/markovich | 387d95b3d5cbc31f3c43dfa00906048ee8c29086 | [
"MIT"
] | null | null | null | lib/app/storage.ex | drumser/markovich | 387d95b3d5cbc31f3c43dfa00906048ee8c29086 | [
"MIT"
] | null | null | null | defmodule App.Storage do
use GenServer
require Logger
def start_link do
Logger.log(:info, "Started storage")
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
CubDB.start_link(data_dir: Path.join([App.Utils.get_data_dir(), "cubdb"]))
end
def handle_cast({:put, key... | 19.5 | 78 | 0.638584 |
030434e5dda2f52555d5d1b367c7341e15f65c1c | 1,973 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1beta1/model/deidentify_summary.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/deidentify_summary.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1beta1/model/deidentify_summary.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 37.226415 | 213 | 0.737962 |
0304571d370cf2d91b725c0bec2b57fe186eb2e8 | 453 | ex | Elixir | lib/ellie_web/graphql/types/project_id.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 377 | 2018-04-05T03:36:00.000Z | 2022-03-30T19:12:44.000Z | lib/ellie_web/graphql/types/project_id.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 91 | 2018-05-24T21:56:06.000Z | 2022-02-26T03:54:04.000Z | lib/ellie_web/graphql/types/project_id.ex | HenkPoley/ellie | 045212b56142341fc95b79659c3ca218b0d5d282 | [
"BSD-3-Clause"
] | 34 | 2018-05-29T03:54:35.000Z | 2022-01-13T07:12:46.000Z | defmodule EllieWeb.Graphql.Types.PrettyId do
use Absinthe.Schema.Notation
alias Ellie.Types.PrettyId
scalar :project_id, name: "PrettyId" do
serialize &to_string/1
parse &cast_from_string/1
end
defp cast_from_string(%Absinthe.Blueprint.Input.String{value: value}) do
PrettyId.cast(value)
end
... | 20.590909 | 74 | 0.730684 |
030471463c5feafbffa724ffcbb01d7301f59cff | 1,892 | ex | Elixir | lib/evercam_models/analytics/geese_counting.ex | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | lib/evercam_models/analytics/geese_counting.ex | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | lib/evercam_models/analytics/geese_counting.ex | mekongit/evercam_models | 7c36d52f2b47ffc89a3eaca65c2e353716fafacc | [
"MIT"
] | null | null | null | defmodule Analytics.GeeseCounting do
@moduledoc """
The Reports context.
"""
use Evercam.Schema
import Ecto.Query, warn: false
alias Analytics.GeeseCounting
schema "geese_counting" do
field :cameraex, :string
field :snapshot_date, :string
field :number, :integer
timestamps()
end
... | 26.277778 | 75 | 0.650634 |
0304b05e87fc998eaef95fa7b3991aaf5c74eb5f | 3,242 | ex | Elixir | lib/graphvix/subgraph.ex | ssajnani/graphvix | e5fb0fbceb5b9ab72941633b702d414302868acc | [
"MIT"
] | 47 | 2016-10-02T21:44:30.000Z | 2022-02-21T18:01:40.000Z | lib/graphvix/subgraph.ex | ssajnani/graphvix | e5fb0fbceb5b9ab72941633b702d414302868acc | [
"MIT"
] | 17 | 2016-10-27T17:11:27.000Z | 2021-12-23T13:19:39.000Z | lib/graphvix/subgraph.ex | ssajnani/graphvix | e5fb0fbceb5b9ab72941633b702d414302868acc | [
"MIT"
] | 10 | 2017-03-20T18:21:21.000Z | 2021-07-25T14:34:28.000Z | defmodule Graphvix.Subgraph do
@moduledoc """
[Internal] Models a subgraph or cluster for inclusion in a graph.
The functions included in this module are for internal use only. See
* `Graphvix.Graph.add_subgraph/3`
* `Graphvix.Graph.add_cluster/3`
for the public interface for creating and including subgr... | 29.207207 | 86 | 0.673041 |
0304bc75fab6f9c1da60f74c3f7e3306d0a3ec42 | 1,702 | ex | Elixir | lib/clockr/masterclock_crypt.ex | powerhome/clockr | 751ceb03885a1a0a0f20e7443e961d6f1ca0a091 | [
"Apache-2.0"
] | null | null | null | lib/clockr/masterclock_crypt.ex | powerhome/clockr | 751ceb03885a1a0a0f20e7443e961d6f1ca0a091 | [
"Apache-2.0"
] | null | null | null | lib/clockr/masterclock_crypt.ex | powerhome/clockr | 751ceb03885a1a0a0f20e7443e961d6f1ca0a091 | [
"Apache-2.0"
] | null | null | null | defmodule Clockr.MasterclockCrypt do
@moduledoc """
Utilities for managing encrypted Masterclock packets
"""
use Bitwise
@prog_key {0x74, 0x12, 0x02, 0xfb, 0xcc, 0x24, 0x5b, 0x82, 0x61, 0xe7, 0x3f, 0x9a, 0x26, 0x7c, 0xd3, 0xa0, 0x42}
@doc """
Transforms a list bytes using the Masterclock algorithm
... | 40.52381 | 309 | 0.645711 |
0304d690067a8d7a8f938c8fc8e7294e31214187 | 803 | ex | Elixir | sample_app/lib/my_app_web/requests/shared/address.ex | smanolloff/phoenix_params | 90ce2f08b04db11a267ddadbf72bb645ceac275f | [
"MIT"
] | 15 | 2018-09-05T13:36:40.000Z | 2021-03-18T15:00:12.000Z | sample_app/lib/my_app_web/requests/shared/address.ex | smanolloff/phoenix_params | 90ce2f08b04db11a267ddadbf72bb645ceac275f | [
"MIT"
] | null | null | null | sample_app/lib/my_app_web/requests/shared/address.ex | smanolloff/phoenix_params | 90ce2f08b04db11a267ddadbf72bb645ceac275f | [
"MIT"
] | 1 | 2018-11-15T09:33:53.000Z | 2018-11-15T09:33:53.000Z | defmodule MyAppWeb.Requests.Shared.Address do
use PhoenixParams, error_view: MyAppWeb.ErrorView
typedef Locale, &__MODULE__.coerce_locale/1
param :country,
type: String,
required: true
param :city,
type: String
param :street_name,
type: String
param :street_number,
... | 20.075 | 79 | 0.615193 |
0304dc3d29568f124cd79374407ed1ea214c8b55 | 68 | exs | Elixir | test/test_helper.exs | prio101/bosque | 3b9d0a789a4c33dce829d5cab9d198145f28b8fd | [
"MIT"
] | null | null | null | test/test_helper.exs | prio101/bosque | 3b9d0a789a4c33dce829d5cab9d198145f28b8fd | [
"MIT"
] | null | null | null | test/test_helper.exs | prio101/bosque | 3b9d0a789a4c33dce829d5cab9d198145f28b8fd | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Bosque.Repo, :manual)
| 22.666667 | 52 | 0.779412 |
0304dea768562001f5026ad79ee07ee3c19cf089 | 599 | exs | Elixir | apps/tai/test/tai/events/lock_account_ok_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/test/tai/events/lock_account_ok_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | null | null | null | apps/tai/test/tai/events/lock_account_ok_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Events.LockAccountOkTest do
use ExUnit.Case, async: true
test ".to_data/1 transforms decimal data to strings" do
event = %Tai.Events.LockAccountOk{
venue_id: :my_venue,
credential_id: :my_credential,
asset: :btc,
min: Decimal.new("0.1"),
max: Decimal.new("0.3"),
... | 24.958333 | 57 | 0.542571 |
030513018a3537fe475b60510a1f39171cece577 | 2,403 | exs | Elixir | apps/omg_watcher/test/db/eth_event_db_test.exs | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/db/eth_event_db_test.exs | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/db/eth_event_db_test.exs | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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 writi... | 39.393443 | 114 | 0.692468 |
03051cd21e4822b75c6ab937890e8d01826d3d7c | 3,558 | exs | Elixir | test/oban/migrations_test.exs | nathanl/oban | e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b | [
"Apache-2.0"
] | null | null | null | test/oban/migrations_test.exs | nathanl/oban | e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b | [
"Apache-2.0"
] | null | null | null | test/oban/migrations_test.exs | nathanl/oban | e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b | [
"Apache-2.0"
] | null | null | null | defmodule Oban.MigrationsTest do
use Oban.Case, async: true
import Oban.Migrations, only: [initial_version: 0, current_version: 0, migrated_version: 2]
@arbitrary_checks 20
defmodule StepMigration do
use Ecto.Migration
def up do
Oban.Migrations.up(version: up_version(), prefix: "migrating")
... | 26.552239 | 93 | 0.68353 |
030522bd1512f8436ec7106e69e354bd6d16b5e3 | 5,402 | ex | Elixir | lib/logger/lib/logger/config.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/logger/lib/logger/config.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/logger/lib/logger/config.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Logger.Config do
@moduledoc false
@behaviour :gen_event
@name __MODULE__
@table __MODULE__
@data :__data__
@deleted_handlers :__deleted_handlers__
def start_link do
GenServer.start_link(__MODULE__, :ok, name: @name)
end
def configure(options) do
:gen_event.call(Logger, @name, {:c... | 25.601896 | 92 | 0.655128 |
03052b44dc74991d4385d69146fea0f5cb70d8ee | 1,190 | ex | Elixir | web/channels/user_socket.ex | ngnclht1102/trello-clone | 669bf0ab765ca1d9735124f3f99cb245582b45fa | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | ngnclht1102/trello-clone | 669bf0ab765ca1d9735124f3f99cb245582b45fa | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | ngnclht1102/trello-clone | 669bf0ab765ca1d9735124f3f99cb245582b45fa | [
"MIT"
] | null | null | null | defmodule TrelloRewriteMe.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", TrelloRewriteMe.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to ve... | 31.315789 | 88 | 0.707563 |
0305412ca982a16f1b9d62b4f2f9ffabbc24b89b | 1,293 | exs | Elixir | apps/brain/rel/config.exs | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | 39 | 2016-11-01T07:21:51.000Z | 2021-02-05T20:19:02.000Z | apps/brain/rel/config.exs | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | apps/brain/rel/config.exs | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: :dev
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/co... | 32.325 | 81 | 0.755607 |
03056375edaa966ef464d281b0db0fa9fab6bc08 | 875 | ex | Elixir | lib/balance/balance.ex | mfeckie/pin_elixir | 8b360c0d189109b2a71a34f7f80c78ce9bc9092c | [
"MIT"
] | 6 | 2015-11-16T08:13:08.000Z | 2016-05-26T04:00:58.000Z | lib/balance/balance.ex | mfeckie/pin_elixir | 8b360c0d189109b2a71a34f7f80c78ce9bc9092c | [
"MIT"
] | null | null | null | lib/balance/balance.ex | mfeckie/pin_elixir | 8b360c0d189109b2a71a34f7f80c78ce9bc9092c | [
"MIT"
] | null | null | null | defmodule PinElixir.Balance do
import PinElixir.Utils.RequestOptions
import PinElixir.Utils.Response
@moduledoc """
Allows querying of pin account balance
"""
@pin_url Application.get_env(:pin_elixir, :pin_url)
@doc """
Provides a representation of the current pin account balance and pending transact... | 19.021739 | 87 | 0.632 |
030597b439d61a69e9dece27427f799cf18c8832 | 2,138 | exs | Elixir | config/prod.exs | cjen07/lssn | a3b9f4998dc497935896657473b1c30a570c92e8 | [
"MIT"
] | null | null | null | config/prod.exs | cjen07/lssn | a3b9f4998dc497935896657473b1c30a570c92e8 | [
"MIT"
] | null | null | null | config/prod.exs | cjen07/lssn | a3b9f4998dc497935896657473b1c30a570c92e8 | [
"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... | 32.393939 | 67 | 0.708138 |
030599eb2ce0857750a548def3d5e812fc2b1c9a | 15,356 | ex | Elixir | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/street_view_publish/lib/google_api/street_view_publish/v1/api/photos.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 ... | 42.893855 | 196 | 0.646783 |
0305b466fc53b9aa23f5f8e0b861feac587f53cc | 2,308 | ex | Elixir | lib/sudoku_web.ex | ream88/sudoku | 7b319ce075a23bf8ca58ffcefa2c2965795cc9a2 | [
"MIT"
] | null | null | null | lib/sudoku_web.ex | ream88/sudoku | 7b319ce075a23bf8ca58ffcefa2c2965795cc9a2 | [
"MIT"
] | null | null | null | lib/sudoku_web.ex | ream88/sudoku | 7b319ce075a23bf8ca58ffcefa2c2965795cc9a2 | [
"MIT"
] | null | null | null | defmodule SudokuWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use SudokuWeb, :controller
use SudokuWeb, :view
The definitions below will be executed for every view,
controller, etc... | 22.407767 | 78 | 0.680243 |
0305c58cfe054a78090e7df09398972429612fb4 | 1,115 | exs | Elixir | config/config.exs | aforward/my_app | b6e13308657996fc4b0124c887836d9cc29d371a | [
"MIT"
] | null | null | null | config/config.exs | aforward/my_app | b6e13308657996fc4b0124c887836d9cc29d371a | [
"MIT"
] | null | null | null | config/config.exs | aforward/my_app | b6e13308657996fc4b0124c887836d9cc29d371a | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.967742 | 73 | 0.750673 |
0305ee0cf8781f66d8bba8297bc29995778f61b9 | 2,036 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/view_definition.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/view_definition.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/view_definition.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... | 39.153846 | 329 | 0.759823 |
0305fa98ea44f9e95255210ffd9b8af6da52cc28 | 269 | ex | Elixir | lib/liberator_example.ex | Cantido/liberator_example | d14014277cdc803a8ef895f80aac0651cea7108e | [
"MIT"
] | null | null | null | lib/liberator_example.ex | Cantido/liberator_example | d14014277cdc803a8ef895f80aac0651cea7108e | [
"MIT"
] | null | null | null | lib/liberator_example.ex | Cantido/liberator_example | d14014277cdc803a8ef895f80aac0651cea7108e | [
"MIT"
] | null | null | null | defmodule LiberatorExample do
@moduledoc """
LiberatorExample keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.9 | 66 | 0.769517 |
0305fb58d2a890a8477cad17a6d1a964f06deb41 | 6,182 | ex | Elixir | lib/article/article.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | lib/article/article.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | lib/article/article.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule Article do
require Logger
@type t :: %__MODULE__{
date: Date.t() | nil,
end: Data.RoughDate.t() | nil,
full_title: binary() | nil,
hide_footer: boolean() | nil,
name: binary(),
no_auto_title: boolean() | nil,
start: Data.RoughDate.t() ... | 27.23348 | 87 | 0.598835 |
030627041baf92cc54b9a25183dfd0ebbf246ec5 | 4,098 | exs | Elixir | test/parser_test.exs | alg/auto_linker | 084f75e5efb85ba37568581ab098c6431978c7ef | [
"MIT"
] | null | null | null | test/parser_test.exs | alg/auto_linker | 084f75e5efb85ba37568581ab098c6431978c7ef | [
"MIT"
] | null | null | null | test/parser_test.exs | alg/auto_linker | 084f75e5efb85ba37568581ab098c6431978c7ef | [
"MIT"
] | null | null | null | defmodule AutoLinker.ParserTest do
use ExUnit.Case
doctest AutoLinker.Parser
import AutoLinker.Parser
describe "is_url" do
test "valid scheme true" do
valid_scheme_urls()
|> Enum.each(fn url ->
assert is_url?(url, true)
end)
end
test "invalid scheme true" do
invalid... | 26.43871 | 204 | 0.596633 |
0306321063fa7b01c0176fa90d392679cec93331 | 2,860 | ex | Elixir | deps/plug_crypto/lib/plug/crypto/key_generator.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/plug_crypto/lib/plug/crypto/key_generator.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/plug_crypto/lib/plug/crypto/key_generator.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Plug.Crypto.KeyGenerator do
@moduledoc """
`KeyGenerator` implements PBKDF2 (Password-Based Key Derivation Function 2),
part of PKCS #5 v2.0 (Password-Based Cryptography Specification).
It can be used to derive a number of keys for various purposes from a given
secret. This lets applications ... | 33.255814 | 100 | 0.639161 |
0306345e8ec73c4f552cfcf44226cf060069198e | 11,971 | ex | Elixir | lib/mix/lib/mix/project.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/project.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/project.ex | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Project do
@moduledoc """
Defines and manipulate Mix projects.
In order to configure Mix, a developer needs to use
`Mix.Project` in a module and define a function named
`project` that returns a keyword list with configuration.
defmodule MyApp do
use Mix.Project
def proje... | 26.426049 | 103 | 0.645811 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.