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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2dbc55c9970738159eaea0098946b2db8dc0effb | 1,513 | ex | Elixir | lib/phoenix_pubsub_redis_z/redis_publisher.ex | cctiger36/phoenix_pubsub_redis_z | 27ed1a60fcbcec4bced37e7b45493c16f8fa816d | [
"MIT"
] | 5 | 2018-05-27T15:45:16.000Z | 2019-02-12T12:56:31.000Z | lib/phoenix_pubsub_redis_z/redis_publisher.ex | cctiger36/phoenix_pubsub_redis_z | 27ed1a60fcbcec4bced37e7b45493c16f8fa816d | [
"MIT"
] | 45 | 2018-09-11T00:29:09.000Z | 2022-03-23T21:39:38.000Z | lib/phoenix_pubsub_redis_z/redis_publisher.ex | cctiger36/phoenix_pubsub_redis_z | 27ed1a60fcbcec4bced37e7b45493c16f8fa816d | [
"MIT"
] | 1 | 2018-05-23T11:54:55.000Z | 2018-05-23T11:54:55.000Z | defmodule Phoenix.PubSub.RedisZ.RedisPublisher do
@moduledoc false
require Logger
@spec pool_name(atom, non_neg_integer) :: atom
def pool_name(pubsub_server, shard) do
Module.concat(["#{pubsub_server}.RedisZ.PublisherPool#{shard}"])
end
@spec broadcast(term, atom, pos_integer, reference, pid, binary,... | 36.02381 | 98 | 0.678784 |
2dbc6241c6bc60600da4353042c039cba2466fcc | 671 | exs | Elixir | test/integration/shutdown_test.exs | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | 1 | 2021-11-20T19:16:24.000Z | 2021-11-20T19:16:24.000Z | test/integration/shutdown_test.exs | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | test/integration/shutdown_test.exs | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Integration.ShutdownTest do
use Oban.Case
@moduletag :integration
test "slow jobs are allowed to complete within the shutdown grace period" do
start_supervised({Oban, repo: Repo, queues: [alpha: 3], shutdown_grace_period: 50})
%Job{id: id_1} = insert_job!(ref: 1, sleep: 10)
%Job{id: ... | 24.851852 | 87 | 0.661699 |
2dbc74480132466e1651541bc46104e90cfa7a0d | 15,714 | ex | Elixir | lib/elixir/lib/module/types/expr.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/types/expr.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/types/expr.ex | razuf/elixir | a80b6d00738668f5ca2325bfc8c3581af5d531dc | [
"Apache-2.0"
] | null | null | null | defmodule Module.Types.Expr do
@moduledoc false
import Module.Types.{Helpers, Infer}
import Module.Types.Pattern, only: [of_guard: 3, of_pattern: 3]
def of_expr(expr, %{context: stack_context} = stack, context) when stack_context != :expr do
of_expr(expr, %{stack | context: :expr}, context)
end
# :at... | 30.335907 | 98 | 0.596347 |
2dbc79be8436d0eda9d40815ec0641477fd38a9c | 962 | ex | Elixir | lib/extractly/tools.ex | RobertDober/Extractly | 9b1ee855e663f6ded8a3cf25fba1ad0777748ba9 | [
"Apache-2.0"
] | 4 | 2021-02-22T18:39:16.000Z | 2021-10-30T09:11:29.000Z | lib/extractly/tools.ex | RobertDober/Extractly | 9b1ee855e663f6ded8a3cf25fba1ad0777748ba9 | [
"Apache-2.0"
] | 12 | 2019-01-26T11:52:05.000Z | 2021-11-16T10:50:38.000Z | lib/extractly/tools.ex | RobertDober/extractly | 9b1ee855e663f6ded8a3cf25fba1ad0777748ba9 | [
"Apache-2.0"
] | null | null | null | defmodule Extractly.Tools do
@doc ~S"""
Extract lines from either a
- file given by name
- a Stream
- or returns the list passed in as in a NOP
"""
def lines_from_source(source) do
try do
_lines_from_source(source)
rescue
_ -> {:error, "could not read from #{inspect source}"}... | 24.666667 | 64 | 0.656965 |
2dbc8cab1182c280d671f718054fd6ed6b7c9941 | 814 | exs | Elixir | test/sanbase_web/graphql/projects/project_api_forbidden_fields_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase_web/graphql/projects/project_api_forbidden_fields_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase_web/graphql/projects/project_api_forbidden_fields_test.exs | sitedata/sanbase2 | 8da5e44a343288fbc41b68668c6c80ae8547d557 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.Graphql.ProjectApiForbiddenFieldsTest do
use SanbaseWeb.ConnCase, async: false
import SanbaseWeb.Graphql.TestHelpers
test "public project listing forbidden fields", context do
query = """
{
allProjects {
id,
ethBalance,
btcBalance,
roiUsd,
... | 21.421053 | 120 | 0.560197 |
2dbcb10e108a2f0568484242ba03211e85816e9c | 954 | ex | Elixir | lib/discovery_api/schemas/users/user.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:17:18.000Z | 2021-04-05T19:17:18.000Z | lib/discovery_api/schemas/users/user.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | 11 | 2020-01-07T15:43:42.000Z | 2020-12-22T15:23:25.000Z | lib/discovery_api/schemas/users/user.ex | folkengine/discovery_api | 0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217 | [
"Apache-2.0"
] | null | null | null | defmodule DiscoveryApi.Schemas.Users.User do
@moduledoc """
Ecto schema respresentation of the User.
"""
use Ecto.Schema
import Ecto.Changeset
alias DiscoveryApi.Schemas.Visualizations.Visualization
alias DiscoveryApi.Schemas.Organizations.Organization
@primary_key {:id, Ecto.UUID, autogenerate: true}
... | 27.257143 | 105 | 0.72956 |
2dbcb9826f6ece809e355925924eb6260271deb5 | 207 | exs | Elixir | test/controllers/page_controller_test.exs | NorthernTwig/The-Fiddler | 33a508b3c544084c8c6afd5590d561c162466975 | [
"MIT"
] | 2 | 2017-07-25T09:12:57.000Z | 2017-07-25T11:25:07.000Z | test/controllers/page_controller_test.exs | NorthernTwig/The-Fiddler | 33a508b3c544084c8c6afd5590d561c162466975 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | NorthernTwig/The-Fiddler | 33a508b3c544084c8c6afd5590d561c162466975 | [
"MIT"
] | 1 | 2018-10-29T18:53:04.000Z | 2018-10-29T18:53:04.000Z | defmodule TakeItForASpin.PageControllerTest do
use TakeItForASpin.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23 | 60 | 0.695652 |
2dbccab265fa5658f91a77d860a13715c3352353 | 20,327 | ex | Elixir | lib/phoenix/test/channel_test.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/phoenix/test/channel_test.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/phoenix/test/channel_test.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | defmodule Phoenix.ChannelTest do
@moduledoc """
Conveniences for testing Phoenix channels.
In channel tests, we interact with channels via process
communication, sending and receiving messages. It is also
common to subscribe to the same topic the channel subscribes
to, allowing us to assert if a given mess... | 30.798485 | 97 | 0.667339 |
2dbd0ef1068345274453126ef5ebad3710c849bf | 584 | exs | Elixir | exercises/practice/saddle-points/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/saddle-points/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/saddle-points/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule SaddlePoints.MixProject do
use Mix.Project
def project do
[
app: :saddle_points,
version: "0.1.0",
# elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.137931 | 87 | 0.582192 |
2dbd52bc40590e94630258e0b1c527bc04b5ceb0 | 1,293 | ex | Elixir | lib/coherence_social/web/views/error_helpers.ex | veverkap/coherence_social | 45752db88b5c7c8220c96c4828adf58acf0a98d8 | [
"MIT"
] | null | null | null | lib/coherence_social/web/views/error_helpers.ex | veverkap/coherence_social | 45752db88b5c7c8220c96c4828adf58acf0a98d8 | [
"MIT"
] | null | null | null | lib/coherence_social/web/views/error_helpers.ex | veverkap/coherence_social | 45752db88b5c7c8220c96c4828adf58acf0a98d8 | [
"MIT"
] | null | null | null | defmodule CoherenceSocial.Web.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
c... | 31.536585 | 85 | 0.675174 |
2dbd5ad3001d9ad8b8e54233760bdb9435686c26 | 1,895 | ex | Elixir | lib/diversity_in_tech_web/endpoint.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | 8 | 2018-06-22T05:43:30.000Z | 2020-04-13T20:31:40.000Z | lib/diversity_in_tech_web/endpoint.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | lib/diversity_in_tech_web/endpoint.ex | dreamingechoes/diversity-in-tech | 4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f | [
"MIT"
] | null | null | null | defmodule DiversityInTechWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :diversity_in_tech
socket("/socket", DiversityInTechWeb.UserSocket)
plug(
Plug.Static,
at: "/priv/uploads",
from: Path.expand("./priv/uploads"),
gzip: false
)
# Serve at "/" the static files from "priv/static" directory... | 24.934211 | 70 | 0.682322 |
2dbd8f12c329781a96d3a5ee21a9894cc9bf7a51 | 1,606 | ex | Elixir | web/web.ex | rogueunicorn/hello-phoenix | 52c7f42b1f058c61b97bcb923ed3691308072bf0 | [
"MIT"
] | null | null | null | web/web.ex | rogueunicorn/hello-phoenix | 52c7f42b1f058c61b97bcb923ed3691308072bf0 | [
"MIT"
] | null | null | null | web/web.ex | rogueunicorn/hello-phoenix | 52c7f42b1f058c61b97bcb923ed3691308072bf0 | [
"MIT"
] | null | null | null | defmodule HelloPhoenix.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use HelloPhoenix.Web, :controller
use HelloPhoenix.Web, :view
The definitions below will be executed for every view,
controller, etc, s... | 20.589744 | 88 | 0.664384 |
2dbdb9db55ec5afa828019c68e816696a2e4e516 | 1,820 | exs | Elixir | config/config.exs | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | null | null | null | config/config.exs | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"MIT"
] | null | null | null | config/config.exs | clcmo/GuildaEx | 0e30fb8d9b7dfd54c35ae237329791003d6a46bf | [
"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.
# General application configuration
import Config
config :guilda,
ecto_repos: [Guilda.Repo],
ge... | 31.929825 | 86 | 0.756044 |
2dbdbcea7bd6af394e1d06af567c0d1750a15bda | 20 | ex | Elixir | lib/wb.ex | aerosol/wb | d55f97efb1b48076e93210071b61d4bb3e1376f3 | [
"Apache-2.0"
] | 18 | 2021-01-01T01:54:52.000Z | 2022-01-26T08:47:13.000Z | lib/wb.ex | aerosol/wb | d55f97efb1b48076e93210071b61d4bb3e1376f3 | [
"Apache-2.0"
] | 2 | 2021-01-01T17:20:12.000Z | 2021-01-01T23:05:14.000Z | lib/wb.ex | aerosol/wb | d55f97efb1b48076e93210071b61d4bb3e1376f3 | [
"Apache-2.0"
] | 1 | 2021-01-11T02:29:32.000Z | 2021-01-11T02:29:32.000Z | defmodule WB do
end
| 6.666667 | 15 | 0.8 |
2dbdc60a94db653fd1342667b60d37e978ebdea2 | 1,029 | ex | Elixir | test/support/remote_loader_json.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/support/remote_loader_json.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/support/remote_loader_json.ex | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule Test.RemoteLoaderJson do
@moduledoc false
@behaviour Xema.Loader
@impl true
def fetch(uri) do
with {:ok, response} <- get(uri), do: eval(response)
end
defp get(%URI{host: "json-schema.org", path: "/draft-04/schema"}),
do: File.read("test/support/json_schema/draft04.json")
defp get(%U... | 25.725 | 68 | 0.618076 |
2dbdff36d3f611cc865d773c76b433f9ee524a69 | 262 | ex | Elixir | lib/phoenix/supervisor.ex | brightroll/phoenix | b93022086322bcc1d797214a28e0c9710f537c22 | [
"MIT"
] | null | null | null | lib/phoenix/supervisor.ex | brightroll/phoenix | b93022086322bcc1d797214a28e0c9710f537c22 | [
"MIT"
] | null | null | null | lib/phoenix/supervisor.ex | brightroll/phoenix | b93022086322bcc1d797214a28e0c9710f537c22 | [
"MIT"
] | null | null | null | defmodule Phoenix.Supervisor do
use Supervisor
def start_link do
:supervisor.start_link(__MODULE__, [])
end
def init([]) do
children = [
worker(Phoenix.Topic.Supervisor, [])
]
supervise(children, strategy: :one_for_one)
end
end
| 17.466667 | 47 | 0.671756 |
2dbe0f213f99a51fd04ba5448f4ad6a946330d69 | 23,062 | ex | Elixir | lib/ecto.ex | sthagen/elixir-ecto-ecto | a71dc13ba376663279f0c607ebec510018802b30 | [
"Apache-2.0"
] | null | null | null | lib/ecto.ex | sthagen/elixir-ecto-ecto | a71dc13ba376663279f0c607ebec510018802b30 | [
"Apache-2.0"
] | null | null | null | lib/ecto.ex | sthagen/elixir-ecto-ecto | a71dc13ba376663279f0c607ebec510018802b30 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto do
@moduledoc ~S"""
Ecto is split into 4 main components:
* `Ecto.Repo` - repositories are wrappers around the data store.
Via the repository, we can create, update, destroy and query
existing entries. A repository needs an adapter and credentials
to communicate to the database... | 32.945714 | 114 | 0.674226 |
2dbe24876094992cf31f14e81f6a1ac73368afcb | 14,092 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 67.75 | 586 | 0.709622 |
2dbe2b6b1d76dfbcbfd223ac1af840422869d91f | 99 | ex | Elixir | lib/xcribe/api_blueprint/multipart.ex | brainn-co/xcribe | 06e66df0ac28d5b3e525f54bc52ed21722701a06 | [
"Apache-2.0"
] | 30 | 2019-12-17T20:09:41.000Z | 2021-01-11T13:58:24.000Z | lib/xcribe/api_blueprint/multipart.ex | Finbits/xcribe | 37f4195315e27e415212910f0219c68d96a16d4a | [
"Apache-2.0"
] | 36 | 2019-12-17T20:32:04.000Z | 2020-12-02T17:50:49.000Z | lib/xcribe/api_blueprint/multipart.ex | Finbits/xcribe | 37f4195315e27e415212910f0219c68d96a16d4a | [
"Apache-2.0"
] | 3 | 2020-02-21T18:13:59.000Z | 2020-10-20T07:59:05.000Z | defmodule Xcribe.ApiBlueprint.Multipart do
@moduledoc false
defstruct [:parts, :boundary]
end
| 16.5 | 42 | 0.777778 |
2dbe4e10b04dd1098a4ed1c43f4c46d6d6e5d118 | 5,548 | ex | Elixir | lib/mux/video/assets.ex | muxinc/mux_ex | e12ee8be69d2b834111ddcdafbbf63888587f4af | [
"MIT"
] | null | null | null | lib/mux/video/assets.ex | muxinc/mux_ex | e12ee8be69d2b834111ddcdafbbf63888587f4af | [
"MIT"
] | null | null | null | lib/mux/video/assets.ex | muxinc/mux_ex | e12ee8be69d2b834111ddcdafbbf63888587f4af | [
"MIT"
] | null | null | null | defmodule Mux.Video.Assets do
@moduledoc """
This module provides functions for managing assets in Mux Video. [API Documentation](https://docs.mux.com/api-reference/video#tag/assets)
"""
alias Mux.{Base, Fixtures}
@path "/video/v1/assets"
@doc """
Create a new asset.
Returns `{:ok, asset, %Tesla.Clie... | 28.895833 | 166 | 0.651226 |
2dbe6353f4a23409564d8895a69bad555cf96037 | 925 | ex | Elixir | lib/backend/conversations/message.ex | damonvjanis/messenger-react | 018ea500ec73a69dea57a6ea1e708a202a7cb9c1 | [
"MIT"
] | 1 | 2021-02-12T17:40:54.000Z | 2021-02-12T17:40:54.000Z | lib/backend/conversations/message.ex | damonvjanis/messenger-react | 018ea500ec73a69dea57a6ea1e708a202a7cb9c1 | [
"MIT"
] | 3 | 2022-02-13T11:17:47.000Z | 2022-02-27T03:19:11.000Z | lib/backend/conversations/message.ex | damonvjanis/messenger-react | 018ea500ec73a69dea57a6ea1e708a202a7cb9c1 | [
"MIT"
] | 1 | 2021-08-22T14:45:41.000Z | 2021-08-22T14:45:41.000Z | defmodule Backend.Conversations.Message do
use Ecto.Schema
import Ecto.Changeset
alias Backend.Conversations.Conversation
@timestamps_opts [type: :naive_datetime_usec]
schema "messages" do
field :attachment_url, :string
field :body, :string
field :direction, :string
field :type, :string
... | 28.90625 | 97 | 0.690811 |
2dbe7ce93379517c0007f0a0849a949f48037493 | 5,860 | ex | Elixir | lib/ex_doc/autolink.ex | mayel/ex_doc | 6e5ecfa7d6248fd8038caf4e9f4ac02eb13d0d0f | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/autolink.ex | mayel/ex_doc | 6e5ecfa7d6248fd8038caf4e9f4ac02eb13d0d0f | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/autolink.ex | mayel/ex_doc | 6e5ecfa7d6248fd8038caf4e9f4ac02eb13d0d0f | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Autolink do
@moduledoc false
# * `:apps` - the apps that the docs are being generated for. When linking modules they are
# checked if they are part of the app and based on that the links are relative or absolute.
#
# * `:current_module` - the module that the docs are being generated for. Us... | 27.255814 | 97 | 0.590444 |
2dbe91f3ae7a11519397534138a4da1fb2dcd3e5 | 260 | ex | Elixir | apps/admin_api/lib/admin_api/router.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/admin_api/lib/admin_api/router.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/router.ex | turbo-play/ewallet | b7fee3eed62ac716f46246132c2ead1045f2e4f3 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule AdminAPI.Router do
use AdminAPI, :router
use EWallet.Web.APIDocs, scope: "/admin/api"
alias AdminAPI.{StatusController, VersionedRouter}
scope "/admin/api" do
get "/", StatusController, :status
forward "/", VersionedRouter
end
end
| 23.636364 | 52 | 0.719231 |
2dbe946b939fc75e30e2fd2483eb315ff31dcbc4 | 1,960 | ex | Elixir | lib/home_appliances_store_web.ex | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | lib/home_appliances_store_web.ex | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | lib/home_appliances_store_web.ex | gratraw/home_appliances_store | 36b5274294ef3e0124740c2f992695860884976d | [
"MIT"
] | null | null | null | defmodule HomeAppliancesStoreWeb 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 HomeAppliancesStoreWeb, :controller
use HomeAppliancesStoreWeb, :view
The definitions below will be exe... | 24.810127 | 76 | 0.711224 |
2dbe9601302a218a6fd8d02fb70f369a525947dd | 11,552 | exs | Elixir | test/gen_rmq_consumer_test.exs | akoutmos/gen_rmq | 0015ee20019bf4612ce8b706df63b5defbd2a4c9 | [
"MIT"
] | null | null | null | test/gen_rmq_consumer_test.exs | akoutmos/gen_rmq | 0015ee20019bf4612ce8b706df63b5defbd2a4c9 | [
"MIT"
] | null | null | null | test/gen_rmq_consumer_test.exs | akoutmos/gen_rmq | 0015ee20019bf4612ce8b706df63b5defbd2a4c9 | [
"MIT"
] | null | null | null | defmodule GenRMQ.ConsumerTest do
use ExUnit.Case, async: false
use GenRMQ.RabbitCase
import ConsumerSharedTests
alias GenRMQ.Test.Assert
alias GenRMQ.Consumer
alias TestConsumer.Default
alias TestConsumer.WithCustomDeadletter
alias TestConsumer.WithoutConcurrency
alias TestConsumer.WithoutDeadletter... | 31.221622 | 118 | 0.691395 |
2dbe98eedd6f462eb605da3505c874e585b2863f | 813 | ex | Elixir | lib/yara_elixir.ex | nbargnesi/Yara-Elixir | 369bdfa38038c1bb10a7c4c87e10775f04ded15a | [
"Apache-2.0"
] | 2 | 2021-01-06T16:33:12.000Z | 2022-03-15T07:44:20.000Z | lib/yara_elixir.ex | nbargnesi/Yara-Elixir | 369bdfa38038c1bb10a7c4c87e10775f04ded15a | [
"Apache-2.0"
] | null | null | null | lib/yara_elixir.ex | nbargnesi/Yara-Elixir | 369bdfa38038c1bb10a7c4c87e10775f04ded15a | [
"Apache-2.0"
] | 1 | 2021-01-06T16:19:46.000Z | 2021-01-06T16:19:46.000Z | defmodule YaraElixir do
@moduledoc """
Documentation for `YaraElixir`.
"""
@doc """
Hello world.
## Examples
iex> YaraElixir.init_yara()
0
"""
@on_load :load_nifs
def load_nifs do
:erlang.load_nif('./libyara_elixir', 0)
end
def init_yara do
raise "NIF not implemented: ini... | 18.066667 | 58 | 0.694957 |
2dbeebf80fb96f4201185edcbf569672855dd367 | 4,513 | exs | Elixir | test/redex/command/decrby_test.exs | esmaeilpour/redex | c2c6e29e3dec0df265fdcd9f24cd2471c8615ee7 | [
"Apache-2.0"
] | 173 | 2019-03-15T15:05:11.000Z | 2022-01-10T08:21:48.000Z | test/redex/command/decrby_test.exs | esmaeilpour/redex | c2c6e29e3dec0df265fdcd9f24cd2471c8615ee7 | [
"Apache-2.0"
] | null | null | null | test/redex/command/decrby_test.exs | esmaeilpour/redex | c2c6e29e3dec0df265fdcd9f24cd2471c8615ee7 | [
"Apache-2.0"
] | 9 | 2019-07-28T01:20:43.000Z | 2021-08-18T03:41:44.000Z | defmodule Redex.Command.DecrbyTest do
use ExUnit.Case, async: true
use ExUnitProperties
import Mox
import Redex.DataGenerators
import Redex.Command.DECRBY
setup :verify_on_exit!
property "DECRBY a non existing or expired key" do
check all state = %{db: db} <- state(),
nodes <- nodes(s... | 33.932331 | 95 | 0.57279 |
2dbef2a2c1e01b43f6a114dbac96cf2b64f89735 | 3,031 | exs | Elixir | apps/ins_web/test/ins_web/controllers/enr/admission_controller_test.exs | ODYLIGHT/ins_umbrella | 40534551b18030b4621f882f33b0416ab60ba02a | [
"MIT"
] | null | null | null | apps/ins_web/test/ins_web/controllers/enr/admission_controller_test.exs | ODYLIGHT/ins_umbrella | 40534551b18030b4621f882f33b0416ab60ba02a | [
"MIT"
] | null | null | null | apps/ins_web/test/ins_web/controllers/enr/admission_controller_test.exs | ODYLIGHT/ins_umbrella | 40534551b18030b4621f882f33b0416ab60ba02a | [
"MIT"
] | null | null | null | defmodule InsWeb.ENR.AdmissionControllerTest do
use InsWeb.ConnCase
alias Ins.ENR
@create_attrs %{first_name: "some first_name", last_name: "some last_name", views: 42}
@update_attrs %{first_name: "some updated first_name", last_name: "some updated last_name", views: 43}
@invalid_attrs %{first_name: nil, la... | 34.05618 | 104 | 0.690531 |
2dbf24197d652a346f35b69b572c69ae367d875c | 1,882 | ex | Elixir | test/support/conn_case.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 1 | 2021-04-17T20:36:24.000Z | 2021-04-17T20:36:24.000Z | test/support/conn_case.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | 3 | 2021-04-15T19:45:43.000Z | 2021-04-16T06:08:24.000Z | test/support/conn_case.ex | wintermeyer/animina | 44fb98b4cd2efd4ab425fc37e1ae68a6fa1c1f5a | [
"MIT"
] | null | null | null | defmodule AniminaWeb.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 th... | 26.885714 | 69 | 0.712009 |
2dbf42e9c914b2f3230702d4aa1b0e87fe3979a2 | 143 | ex | Elixir | lib/jarvis_web/views/user_group_view.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | lib/jarvis_web/views/user_group_view.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | lib/jarvis_web/views/user_group_view.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | defmodule JarvisWeb.UserGroupView do
@moduledoc """
This view represents all possible response structure.
"""
use JarvisWeb, :view
end
| 20.428571 | 55 | 0.748252 |
2dbf4d02609f31de438be807febc858b1653a06b | 4,533 | exs | Elixir | test/scenic/component/button_test.exs | mobileoverlord/scenic | 5a011d1d66efa4e61ca265de50b80cc7c9393887 | [
"Apache-2.0"
] | 1,716 | 2018-09-07T21:55:43.000Z | 2022-03-31T16:16:30.000Z | test/scenic/component/button_test.exs | mobileoverlord/scenic | 5a011d1d66efa4e61ca265de50b80cc7c9393887 | [
"Apache-2.0"
] | 220 | 2018-09-08T01:28:00.000Z | 2022-03-22T03:55:17.000Z | test/scenic/component/button_test.exs | mobileoverlord/scenic | 5a011d1d66efa4e61ca265de50b80cc7c9393887 | [
"Apache-2.0"
] | 137 | 2018-09-07T21:55:56.000Z | 2022-03-26T04:07:27.000Z | #
# Created by Boyd Multerer on 2018-07-15.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Component.ButtonTest do
use ExUnit.Case, async: false
doctest Scenic
# alias Scenic.Component
alias Scenic.Graph
alias Scenic.Primitive
alias Scenic.ViewPort
alias Scenic.Component.... | 29.435065 | 98 | 0.59872 |
2dbf71a27c699259ae507bebed16534ab39f4487 | 1,272 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/retry_build_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_build/lib/google_api/cloud_build/v1/model/retry_build_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/retry_build_request.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 ... | 30.285714 | 79 | 0.761792 |
2dbf7c8b3b4aa1412d7985aa352650d8536d03b9 | 644 | exs | Elixir | mix.exs | lsanwick/adventofcode2017 | 9dd67f16c97a5ce24cb5d069ed7aaa1680918a09 | [
"MIT"
] | null | null | null | mix.exs | lsanwick/adventofcode2017 | 9dd67f16c97a5ce24cb5d069ed7aaa1680918a09 | [
"MIT"
] | null | null | null | mix.exs | lsanwick/adventofcode2017 | 9dd67f16c97a5ce24cb5d069ed7aaa1680918a09 | [
"MIT"
] | null | null | null | defmodule Challenge1.Mixfile do
use Mix.Project
def project do
[
app: :challenge1,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_... | 20.774194 | 88 | 0.557453 |
2dbf83e3e9f2fcf750e7b468946273e1ea7e456b | 2,034 | exs | Elixir | test/integration/contentful_test.exs | ramonsnir/contentful.ex | c8c31a3dd362c34a97de39a4b642595670316234 | [
"MIT"
] | null | null | null | test/integration/contentful_test.exs | ramonsnir/contentful.ex | c8c31a3dd362c34a97de39a4b642595670316234 | [
"MIT"
] | null | null | null | test/integration/contentful_test.exs | ramonsnir/contentful.ex | c8c31a3dd362c34a97de39a4b642595670316234 | [
"MIT"
] | null | null | null | defmodule Contentful.DeliveryTest do
use ExUnit.Case
alias Contentful.Delivery
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
@access_token "ACCESS_TOKEN"
@space_id "z3aswf9egfi8"
setup_all do
HTTPoison.start
end
@tag timeout: 10_000
test "entries" do
use_cassette "entries" do
e... | 22.6 | 94 | 0.663717 |
2dbf974f92d6385009c63f2670d367de82fd28ac | 132 | exs | Elixir | apps/hefty/test/trader_test.exs | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | apps/hefty/test/trader_test.exs | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | apps/hefty/test/trader_test.exs | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | defmodule HeftyTest do
use ExUnit.Case
doctest Hefty
test "greets the world" do
assert Hefty.hello() == :world
end
end
| 14.666667 | 34 | 0.69697 |
2dbfc5e20d3f7cb80392fe01e3b5c6a379b4f7e1 | 1,301 | ex | Elixir | clients/billing_budgets/lib/google_api/billing_budgets/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/billing_budgets/lib/google_api/billing_budgets/v1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/billing_budgets/lib/google_api/billing_budgets/v1/connection.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... | 36.138889 | 114 | 0.7402 |
2dbfd61122f1e009a805fed97697a995c7e39b9e | 6,890 | ex | Elixir | deps/phoenix/lib/mix/tasks/phx.gen.json.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix/lib/mix/tasks/phx.gen.json.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/phoenix/lib/mix/tasks/phx.gen.json.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Json do
@shortdoc "Generates controller, views, and context for a JSON resource"
@moduledoc """
Generates controller, views, and context for a JSON resource.
mix phx.gen.json Accounts User users name:string age:integer
The first argument is the context module followe... | 37.650273 | 137 | 0.696952 |
2dbfdf6481856d1d3908ef9bcbfddd87aad5fefe | 3,271 | ex | Elixir | lib/logstash_json/event.ex | fast-radius/logstash-json | 67a8961dc8493ecc12d4502db03e3b1031a11bbd | [
"MIT"
] | null | null | null | lib/logstash_json/event.ex | fast-radius/logstash-json | 67a8961dc8493ecc12d4502db03e3b1031a11bbd | [
"MIT"
] | null | null | null | lib/logstash_json/event.ex | fast-radius/logstash-json | 67a8961dc8493ecc12d4502db03e3b1031a11bbd | [
"MIT"
] | 1 | 2021-05-12T02:29:46.000Z | 2021-05-12T02:29:46.000Z | defmodule LogstashJson.Event do
@moduledoc """
This module contains functions for generating and serializing logs events.
"""
@doc "Generate a log event from log data"
def event(level, msg, ts, md, %{fields: fields, utc_log: utc_log, formatter: formatter}) do
fields
|> format_fields(md, %{
"@ti... | 26.379032 | 93 | 0.636197 |
2dbfe30707e16b95e369599b3ce74575ac98542f | 2,042 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/batch_operation_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/batch_operation_metadata.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/batch_operation_metadata.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 ... | 35.824561 | 122 | 0.720372 |
2dbfff9db720e0c68767705bf57dabe9645bccf1 | 399 | ex | Elixir | chapter1/module02/reports_generator/lib/parser.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | chapter1/module02/reports_generator/lib/parser.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | chapter1/module02/reports_generator/lib/parser.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | defmodule ReportsGenerator.Parser do
def parse_file(filename) do
"reports/#{filename}"
|> File.stream!()
|> Stream.map(fn line -> parse_line(line) end)
# |> Enum.map(fn line -> parse_line(line) end)
# |> Enum.map(&parse_line(&1))
end
defp parse_line(line) do
line
|> String.trim()
... | 22.166667 | 50 | 0.616541 |
2dc00a96eca534d5b6fede72e227c4ad5da2cc56 | 92 | exs | Elixir | test/price_tracker_web/views/layout_view_test.exs | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | test/price_tracker_web/views/layout_view_test.exs | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | test/price_tracker_web/views/layout_view_test.exs | kevinbenard/price_tracker | 0a7248edd4afca21f00e8b0fc05561f97799c0ca | [
"MIT"
] | null | null | null | defmodule PriceTrackerWeb.LayoutViewTest do
use PriceTrackerWeb.ConnCase, async: true
end
| 23 | 43 | 0.847826 |
2dc01085f97dfa71059e9fb594b9750f74a12966 | 3,568 | exs | Elixir | test/element_test.exs | wmean-spec/markex | 38712ede3d568410082166a8434937860a2b50a2 | [
"MIT"
] | null | null | null | test/element_test.exs | wmean-spec/markex | 38712ede3d568410082166a8434937860a2b50a2 | [
"MIT"
] | null | null | null | test/element_test.exs | wmean-spec/markex | 38712ede3d568410082166a8434937860a2b50a2 | [
"MIT"
] | null | null | null | defmodule MarkexElementTest do
use ExUnit.Case
doctest Markex.Element
alias Markex.Element
describe "creating element" do
test "from string" do
assert Element.new("Hello, world!") == ["Hello, world!"]
end
test "from list of strings" do
list = ["Some long text", "short text"]
ass... | 23.629139 | 70 | 0.496637 |
2dc010e05462e49965ce3839584669c6aeae62fd | 1,247 | ex | Elixir | lib/credo/check/warning/unused_list_operation.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | lib/credo/check/warning/unused_list_operation.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | lib/credo/check/warning/unused_list_operation.ex | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Warning.UnusedListOperation do
@moduledoc """
The result of a call to the List module's functions has to be used.
# TODO: write example
List operations never work on the variable you pass in, but return a new
variable which has to be used somehow.
"""
@explanation [check: @moduled... | 28.340909 | 77 | 0.659984 |
2dc0aadb9554b374b9aaccb9e067a91eb5244ba1 | 10,920 | ex | Elixir | lib/wallaby/query.ex | drumusician/wallaby | 9f6f6f643f6b6140441a8dd011dadb03f3b4886b | [
"MIT"
] | null | null | null | lib/wallaby/query.ex | drumusician/wallaby | 9f6f6f643f6b6140441a8dd011dadb03f3b4886b | [
"MIT"
] | null | null | null | lib/wallaby/query.ex | drumusician/wallaby | 9f6f6f643f6b6140441a8dd011dadb03f3b4886b | [
"MIT"
] | null | null | null | defmodule Wallaby.Query do
@moduledoc ~S"""
Provides the query DSL.
Queries are used to locate and retrieve DOM elements from a browser (see
`Wallaby.Browser`). You create queries like so:
```
Query.css(".some-css")
Query.xpath(".//input")
```
## Form elements
There are several custom finders fo... | 27.164179 | 135 | 0.635989 |
2dc0c5faa8e5675e7ee790511a2134891b064f5b | 2,463 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_payment_method.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_payment_method.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_payment_method.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... | 34.690141 | 125 | 0.670321 |
2dc0da72df765f47bb088e23dd1f1fe3fe8dc600 | 2,099 | exs | Elixir | apps/calgy_api/config/prod.exs | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | 1 | 2017-09-18T08:54:46.000Z | 2017-09-18T08:54:46.000Z | apps/calgy_api/config/prod.exs | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | null | null | null | apps/calgy_api/config/prod.exs | calgy/calgy | 624790f1299271010f963359a7e94097277a9ee8 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# CalgyApi.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don'... | 33.854839 | 67 | 0.719867 |
2dc0f99e85b3b1ceeee5d7768bbd70f7043a712b | 5,380 | ex | Elixir | verify/lib/mix/ua_inspector/verify/cleanup.ex | kyle-neal/ua_inspector | 180a565b1778a1e07ad2d255c5ce660f825ff213 | [
"Apache-2.0"
] | null | null | null | verify/lib/mix/ua_inspector/verify/cleanup.ex | kyle-neal/ua_inspector | 180a565b1778a1e07ad2d255c5ce660f825ff213 | [
"Apache-2.0"
] | null | null | null | verify/lib/mix/ua_inspector/verify/cleanup.ex | kyle-neal/ua_inspector | 180a565b1778a1e07ad2d255c5ce660f825ff213 | [
"Apache-2.0"
] | 1 | 2020-01-30T18:55:12.000Z | 2020-01-30T18:55:12.000Z | defmodule Mix.UAInspector.Verify.Cleanup do
@moduledoc """
Cleans up testcases.
"""
alias UAInspector.ShortCodeMap.DeviceBrands
@doc """
Cleans up a test case.
"""
@spec cleanup(testcase :: map) :: map
def cleanup(testcase) do
testcase
|> cleanup_bot_category()
|> cleanup_bot_url()
|... | 32.215569 | 92 | 0.665428 |
2dc12e4f355692c3183edfa9c970b46c60fb8e1d | 453 | exs | Elixir | test/priv/test_repo/migrations/20190319220346_add_cat_table.exs | zloyrusskiy/ecto_adapters_dynamodb | c2e462ce4b9e9a54d8a9f97920b2397952146a7d | [
"Apache-2.0"
] | null | null | null | test/priv/test_repo/migrations/20190319220346_add_cat_table.exs | zloyrusskiy/ecto_adapters_dynamodb | c2e462ce4b9e9a54d8a9f97920b2397952146a7d | [
"Apache-2.0"
] | null | null | null | test/priv/test_repo/migrations/20190319220346_add_cat_table.exs | zloyrusskiy/ecto_adapters_dynamodb | c2e462ce4b9e9a54d8a9f97920b2397952146a7d | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.DynamoDB.TestRepo.Migrations.AddCatTable do
@moduledoc """
Used when testing migrations.
Create a cat table, set to provisioned billing mode.
"""
use Ecto.Migration
def up do
create table(:cat,
primary_key: false,
options: [
provisioned_throughput: [1,1]
... | 16.777778 | 67 | 0.642384 |
2dc130fe5b1916b3dd44168d373a5504ea87bbf2 | 1,396 | exs | Elixir | config/config.exs | se-apc/nerves_network | 596ea500a4e43edbf9e2eb7bba003c1174ab8df8 | [
"Apache-2.0"
] | 1 | 2018-06-25T08:34:31.000Z | 2018-06-25T08:34:31.000Z | config/config.exs | se-apc/nerves_network | 596ea500a4e43edbf9e2eb7bba003c1174ab8df8 | [
"Apache-2.0"
] | 6 | 2018-06-23T16:17:16.000Z | 2019-04-10T16:15:07.000Z | config/config.exs | se-apc/nerves_network | 596ea500a4e43edbf9e2eb7bba003c1174ab8df8 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
key_mgmt = System.get_env("NERVES_NETWORK_KEY_MGMT") || "WPA-PSK"
config :nerves_network, :default,
wlan0: [
ssid: System.get_env("NERVES_NETWORK_SSID"),
psk: System.get_env("NERVES_NETWORK_PSK"),
key_mgmt: String.to_atom(key_mgmt)
],
#:stateful - Address and other-information i.e. D... | 31.727273 | 151 | 0.700573 |
2dc1ef409558312f442b4afd1bb28f44dc31bc6f | 52 | exs | Elixir | elixir/iex.exs | gcmt/dotfiles | c34014c41632fb3d1e2626e2086276c0aedb7fb1 | [
"MIT"
] | 20 | 2017-11-21T07:57:16.000Z | 2019-02-19T13:09:04.000Z | elixir/iex.exs | gcmt/dotfiles | c34014c41632fb3d1e2626e2086276c0aedb7fb1 | [
"MIT"
] | null | null | null | elixir/iex.exs | gcmt/dotfiles | c34014c41632fb3d1e2626e2086276c0aedb7fb1 | [
"MIT"
] | 1 | 2017-11-21T13:12:13.000Z | 2017-11-21T13:12:13.000Z | IEx.configure colors: [eval_error: [:red, :bright]]
| 26 | 51 | 0.711538 |
2dc214038491d9056a7f6a5cdae93d5e2523ce4f | 990 | exs | Elixir | elixir/hello/config/config.exs | hwaterke/backend-challenge | 107f373c38b09b1db3562a843ce4c38428bc4b48 | [
"MIT"
] | 2 | 2019-10-29T22:24:37.000Z | 2019-11-01T16:48:43.000Z | elixir/hello/config/config.exs | hwaterke/backend-challenge | 107f373c38b09b1db3562a843ce4c38428bc4b48 | [
"MIT"
] | null | null | null | elixir/hello/config/config.exs | hwaterke/backend-challenge | 107f373c38b09b1db3562a843ce4c38428bc4b48 | [
"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.
# General application configuration
use Mix.Config
config :hello,
ecto_repos: [Hello.Repo]
# Con... | 31.935484 | 86 | 0.765657 |
2dc224dc2c5075e15e20b489fa67e7d68d27921c | 17,551 | exs | Elixir | lib/elixir/test/elixir/module/types/pattern_test.exs | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/elixir/test/elixir/module/types/pattern_test.exs | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/types/pattern_test.exs | dogatuncay/elixir | 42875b97f858a31d3cbb8e1090ffb4d6c443ba75 | [
"Apache-2.0"
] | null | null | null | Code.require_file("type_helper.exs", __DIR__)
defmodule Module.Types.PatternTest do
use ExUnit.Case, async: true
alias Module.Types
alias Module.Types.{Unify, Pattern}
defmacrop quoted_pattern(patterns) do
quote do
{patterns, true} = unquote(Macro.escape(expand_head(patterns, true)))
Pattern... | 37.027426 | 100 | 0.479175 |
2dc23d5d4eec6f9c0cd9cdbfbf41a0de0483b832 | 1,051 | exs | Elixir | mix.exs | smoynes/get_a_job_ex | 13b17562f48561803ee4635342c345d28cffe27d | [
"MIT"
] | 1 | 2020-06-10T11:19:17.000Z | 2020-06-10T11:19:17.000Z | mix.exs | smoynes/get_a_job_ex | 13b17562f48561803ee4635342c345d28cffe27d | [
"MIT"
] | null | null | null | mix.exs | smoynes/get_a_job_ex | 13b17562f48561803ee4635342c345d28cffe27d | [
"MIT"
] | null | null | null | defmodule GetAJobEx.Mixfile do
use Mix.Project
def project do
[app: :get_a_job_ex,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: dep... | 26.275 | 63 | 0.598478 |
2dc2545ea386082f801c97479788ff2a321591dc | 334 | exs | Elixir | config/test.exs | erickgnavar/google-chat-bot | eea16b91b264103047085158344432ce341b02c3 | [
"MIT"
] | 1 | 2020-05-31T22:04:57.000Z | 2020-05-31T22:04:57.000Z | config/test.exs | erickgnavar/google-chat-bot | eea16b91b264103047085158344432ce341b02c3 | [
"MIT"
] | null | null | null | config/test.exs | erickgnavar/google-chat-bot | eea16b91b264103047085158344432ce341b02c3 | [
"MIT"
] | null | null | null | import Config
config :logger, level: :warn
config :alfred, Oban,
crontab: false,
queues: false
config :alfred, Alfred.Repo,
username: "postgres",
password: "postgres",
database: "alfred_test#{System.get_env("MIX_TEST_PARTITION")}",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
config :goth, d... | 19.647059 | 65 | 0.721557 |
2dc26b4973675e8d784d31261928d44101528739 | 3,870 | exs | Elixir | mix.exs | coryodaniel/credo | 840e9be99cb2ebcacb7d012e49b40714c0b37852 | [
"MIT"
] | null | null | null | mix.exs | coryodaniel/credo | 840e9be99cb2ebcacb7d012e49b40714c0b37852 | [
"MIT"
] | null | null | null | mix.exs | coryodaniel/credo | 840e9be99cb2ebcacb7d012e49b40714c0b37852 | [
"MIT"
] | null | null | null | defmodule Credo.Mixfile do
use Mix.Project
@version "1.5.2"
def project do
[
app: :credo,
version: @version,
elixir: ">= 1.7.0",
escript: [main_module: Credo.CLI],
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_cove... | 26.326531 | 97 | 0.576227 |
2dc2a148fa754d69ea6dd1432b6331ddb860391d | 375 | ex | Elixir | lib/skeleton/elasticsearch/reset.ex | gVirtu/skeleton_elasticsearch | b86d0329c28a06fa7aa736c233ac19d828c72b71 | [
"MIT"
] | null | null | null | lib/skeleton/elasticsearch/reset.ex | gVirtu/skeleton_elasticsearch | b86d0329c28a06fa7aa736c233ac19d828c72b71 | [
"MIT"
] | 4 | 2021-02-19T00:21:14.000Z | 2021-02-26T13:05:38.000Z | lib/skeleton/elasticsearch/reset.ex | gVirtu/skeleton_elasticsearch | b86d0329c28a06fa7aa736c233ac19d828c72b71 | [
"MIT"
] | 1 | 2021-08-04T17:22:06.000Z | 2021-08-04T17:22:06.000Z | defmodule Skeleton.Elasticsearch.Reset do
alias Skeleton.Elasticsearch.Config
def run(opts) do
Config.get_app_name()
|> Application.get_env(:elasticsearch_modules)
|> Enum.each(&do_reset(&1, opts))
end
defp do_reset(module, opts) do
module.drop_index("*")
module.refresh("*", force: true)
... | 22.058824 | 50 | 0.706667 |
2dc2b431fc1ccb9965693a1772c3a777480f1e7a | 4,218 | exs | Elixir | apps/ewallet/test/ewallet/web/v1/serializers/transaction_serializer_test.exs | saturnial/ewallet | a0a6a7604fca0891d495b3aebaead37fe02aae2c | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/v1/serializers/transaction_serializer_test.exs | saturnial/ewallet | a0a6a7604fca0891d495b3aebaead37fe02aae2c | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/web/v1/serializers/transaction_serializer_test.exs | saturnial/ewallet | a0a6a7604fca0891d495b3aebaead37fe02aae2c | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.Web.V1.TransactionSerializerTest do
use EWallet.Web.SerializerCase, :v1
alias Ecto.Association.NotLoaded
alias EWallet.Web.V1.{TransactionSerializer, TokenSerializer, UserSerializer, AccountSerializer}
alias EWallet.Web.Date
alias EWalletDB.{Repo, Token, Helpers.Assoc}
describe "serialize... | 35.445378 | 125 | 0.640588 |
2dc2b7e6ffce7936e9901d4ed1a0c06f753f077f | 886 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.814815 | 74 | 0.759594 |
2dc2bc46f6537efbe7ec698eb053fe0c11d5911d | 687 | ex | Elixir | src/lib/changelog/data/post/post_topic.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | lib/changelog/data/post/post_topic.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | lib/changelog/data/post/post_topic.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.PostTopic do
use Changelog.Data
alias Changelog.{Topic, Post}
schema "post_topics" do
field :position, :integer
field :delete, :boolean, virtual: true
belongs_to :topic, Topic
belongs_to :post, Post
timestamps()
end
def changeset(struct, params \\ %{}) do
struc... | 19.628571 | 57 | 0.671033 |
2dc2dc23329564365292c1a42cefe7d2be772d89 | 1,280 | ex | Elixir | lib/chaperon/action/call_function.ex | ideo/chaperon | 6298e96ae2b8f39a1d729b7363f4a451bc4c3a6e | [
"MIT"
] | null | null | null | lib/chaperon/action/call_function.ex | ideo/chaperon | 6298e96ae2b8f39a1d729b7363f4a451bc4c3a6e | [
"MIT"
] | null | null | null | lib/chaperon/action/call_function.ex | ideo/chaperon | 6298e96ae2b8f39a1d729b7363f4a451bc4c3a6e | [
"MIT"
] | null | null | null | defmodule Chaperon.Action.CallFunction do
@moduledoc """
Performs & measures a function call (with args) within a session's
`Chaperon.Scenario` module.
"""
defstruct func: nil,
args: []
@type callback ::
atom
| (Chaperon.Session.t() -> Chaperon.Session.t())
@type t :: %C... | 22.068966 | 68 | 0.616406 |
2dc301c83d5266e174c8c76daa885b875911e2d5 | 1,947 | exs | Elixir | clients/verified_access/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/verified_access/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/verified_access/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.059701 | 177 | 0.670262 |
2dc313cf8f911eaf3bcea53cb4b9dafd4bbdc1dd | 2,827 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/80.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/80.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/80.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
pnoun cm verb SYM neg;
verb noun verb conj neg;
cm adjective verb verb_aux neg;
particle noun verb verb_aux neg;
noun cm adjective verb neg;
noun particle verb verb_aux neg;
pn noun verb verb_aux neg;
noun particle verb verb_aux neg;
pn noun verb verb_aux neg;
cm noun verb verb_aux neg;
nou... | 28.27 | 40 | 0.75734 |
2dc33d7e22cbf5662b275bf9082d5fbadc7f5c7a | 325 | exs | Elixir | priv/repo/migrations/20180307174742_add_name_index_to_varieties.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180307174742_add_name_index_to_varieties.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | priv/repo/migrations/20180307174742_add_name_index_to_varieties.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule Ptr.Repo.Migrations.AddNameIndexToVarieties do
use Ptr, :migration
def change do
if prefix = prefix() do
do_change(prefix)
else
for prefix <- account_prefixes(), do: do_change(prefix)
end
end
defp do_change(prefix) do
create(index(:varieties, :name, prefix: prefix))
end... | 20.3125 | 61 | 0.686154 |
2dc37d94c58e708d459876a8c546076df972e7b4 | 1,427 | exs | Elixir | chapter_5/calculator_handler.exs | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_5/calculator_handler.exs | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_5/calculator_handler.exs | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | defmodule Calculator do
def start, do: spawn(fn -> loop() end)
def add(pid, factor), do: send(pid, {:add_request, factor})
def sub(pid, factor), do: send(pid, {:sub_request, factor})
def mul(pid, factor), do: send(pid, {:mul_request, factor})
def div(pid, factor), do: send(pid, {:div_request, factor})
def... | 24.186441 | 73 | 0.669937 |
2dc38e1fb422c84c4e78d8af9ce0f50d6fc29463 | 860 | exs | Elixir | config/config.exs | shiori-ex/shiori | a38402d5cbea79c13d873c6c82ab729a4e2a6e97 | [
"MIT"
] | 1 | 2022-03-12T19:11:47.000Z | 2022-03-12T19:11:47.000Z | config/config.exs | shiori-ex/shiori | a38402d5cbea79c13d873c6c82ab729a4e2a6e97 | [
"MIT"
] | null | null | null | config/config.exs | shiori-ex/shiori | a38402d5cbea79c13d873c6c82ab729a4e2a6e97 | [
"MIT"
] | null | null | null | import Config
scheme =
case System.get_env("SHIORI_WS_USEHTTPS", "") |> String.downcase() do
"true" -> :https
"1" -> :https
_ -> :http
end
port =
case System.get_env("SHIORI_WS_PORT", "8080") |> Integer.parse() do
{i, _} -> i
{:error} -> raise "invalid config value for port; must be numeral"... | 22.631579 | 71 | 0.645349 |
2dc3b679bf68984115269fc5daf04255096d8a46 | 72 | ex | Elixir | lib/conduit/event_store.ex | ray-sh/cov_detect | b4e74b13850eff4a7c646a64fc7c28fbe700ad2e | [
"MIT"
] | 298 | 2017-06-05T14:28:23.000Z | 2022-03-30T16:53:44.000Z | lib/conduit/event_store.ex | ray-sh/cov_detect | b4e74b13850eff4a7c646a64fc7c28fbe700ad2e | [
"MIT"
] | 28 | 2017-07-21T01:06:47.000Z | 2021-03-07T12:32:56.000Z | lib/conduit/event_store.ex | ray-sh/cov_detect | b4e74b13850eff4a7c646a64fc7c28fbe700ad2e | [
"MIT"
] | 77 | 2017-08-14T20:12:03.000Z | 2021-12-08T22:24:59.000Z | defmodule Conduit.EventStore do
use EventStore, otp_app: :conduit
end
| 18 | 35 | 0.805556 |
2dc41759eec196bbfdc01cfa5304b72f24b55df7 | 259 | ex | Elixir | lib/ex_algo/queue/impls/collectable.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | 21 | 2021-11-21T08:07:38.000Z | 2022-03-13T06:19:35.000Z | lib/ex_algo/queue/impls/collectable.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | 3 | 2021-11-26T22:54:09.000Z | 2022-03-06T21:16:12.000Z | lib/ex_algo/queue/impls/collectable.ex | code-shoily/ex_algo | 7837c222fd2844a151b6b92038f94ea088bec0a2 | [
"MIT"
] | null | null | null | alias ExAlgo.Queue
defimpl Collectable, for: Queue do
def into(queue) do
{queue, &enqueue/2}
end
defp enqueue(queue, {:cont, item}), do: Queue.enqueue(queue, item)
defp enqueue(queue, :done), do: queue
defp enqueue(_queue, :halt), do: :ok
end
| 21.583333 | 68 | 0.679537 |
2dc461eead40e48fc9b830708d81305444c2c21e | 868 | exs | Elixir | mix.exs | fhunleth/pbcs | 253fef9127725a9bc1d5310a10d95878af8c5d27 | [
"Apache-2.0"
] | null | null | null | mix.exs | fhunleth/pbcs | 253fef9127725a9bc1d5310a10d95878af8c5d27 | [
"Apache-2.0"
] | null | null | null | mix.exs | fhunleth/pbcs | 253fef9127725a9bc1d5310a10d95878af8c5d27 | [
"Apache-2.0"
] | null | null | null | defmodule PBCS.MixProject do
use Mix.Project
def project do
[
app: :pbcs,
version: "0.1.1",
elixir: "~> 1.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
source_url: "https://github.com/hexpm/pbcs",
docs: [extras: ["README.md"], main: "readme"],
descriptio... | 20.186047 | 68 | 0.579493 |
2dc4780b02549c832df2d85e2f5d5d514b7a5b28 | 214 | exs | Elixir | priv/repo/migrations/20170510202753_create_event.exs | ckochx/unparsed_endpoint | fe84c7bb1e2d69f3ed6f4cfcd74834e53c36e897 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170510202753_create_event.exs | ckochx/unparsed_endpoint | fe84c7bb1e2d69f3ed6f4cfcd74834e53c36e897 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170510202753_create_event.exs | ckochx/unparsed_endpoint | fe84c7bb1e2d69f3ed6f4cfcd74834e53c36e897 | [
"MIT"
] | null | null | null | defmodule UnparsedEndpoint.Repo.Migrations.CreateEvent do
use Ecto.Migration
def change do
create table(:events) do
add :type, :string
add :name, :string
timestamps()
end
end
end
| 15.285714 | 57 | 0.668224 |
2dc4ab911cc37d4f574e74c4b250b31f34e72c57 | 1,556 | ex | Elixir | clients/os_login/lib/google_api/os_login/v1/model/empty.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/os_login/lib/google_api/os_login/v1/model/empty.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/os_login/lib/google_api/os_login/v1/model/empty.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.12 | 77 | 0.741645 |
2dc4ea657c509633506bdb12a16825c92d1a6888 | 2,405 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/volume_mount.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/volume_mount.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/volume_mount.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... | 40.762712 | 265 | 0.70894 |
2dc4f49b1382d6537616237be523517cdc167aa4 | 2,100 | ex | Elixir | lib/mix/lib/mix/tasks/run.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | 1 | 2017-09-09T20:59:04.000Z | 2017-09-09T20:59:04.000Z | lib/mix/lib/mix/tasks/run.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/run.ex | bruce/elixir | d77ccf941541959079e5f677f8717da24b486fac | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Run do
use Mix.Task
@shortdoc "Run the given file or expression"
@moduledoc """
Runs the given file or expression in the context of the application.
Before running the code, it invokes the `app.start` task which compiles
and loads your project.
It is the goal of this task to provid... | 29.577465 | 78 | 0.636667 |
2dc4f94a2888d506e0cd5028877171fc90ee6b36 | 3,704 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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... | 38.583333 | 207 | 0.717873 |
2dc4ff5e4a0e82a935b6dfd76bc08b10cca38ec4 | 686 | exs | Elixir | config/test.exs | sheosi/transferdrop | 9021fd1c0d2d28dddc141264ce95a4e8d896c3ee | [
"MIT"
] | null | null | null | config/test.exs | sheosi/transferdrop | 9021fd1c0d2d28dddc141264ce95a4e8d896c3ee | [
"MIT"
] | null | null | null | config/test.exs | sheosi/transferdrop | 9021fd1c0d2d28dddc141264ce95a4e8d896c3ee | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :transferdrop, Transferdrop.Repo,
username: "postgres",
password: "postgres",
database: "transferdrop_... | 29.826087 | 71 | 0.758017 |
2dc52b1e44c21adaa031e170be71c9465b5ebff0 | 1,885 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/get_spreadsheet_by_data_filter_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/get_spreadsheet_by_data_filter_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/get_spreadsheet_by_data_filter_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.7 | 174 | 0.745889 |
2dc570512f8abad137751bba5c964a9f82b2d261 | 642 | exs | Elixir | bench/mix.exs | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | 1 | 2020-07-13T00:07:19.000Z | 2020-07-13T00:07:19.000Z | bench/mix.exs | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | 12 | 2020-07-10T21:20:35.000Z | 2020-07-26T02:19:51.000Z | bench/mix.exs | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | null | null | null | defmodule Bench.MixProject do
use Mix.Project
def project do
[
app: :bench,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application d... | 17.351351 | 59 | 0.538941 |
2dc592e9cde102b4f84cadad22ceaeee09c85b7d | 3,878 | exs | Elixir | mix.exs | rizalgowandy/ecto | 99d19b4882a48421209046af0410ce22fea3656c | [
"Apache-2.0"
] | null | null | null | mix.exs | rizalgowandy/ecto | 99d19b4882a48421209046af0410ce22fea3656c | [
"Apache-2.0"
] | null | null | null | mix.exs | rizalgowandy/ecto | 99d19b4882a48421209046af0410ce22fea3656c | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.MixProject do
use Mix.Project
@source_url "https://github.com/elixir-ecto/ecto"
@version "3.8.0-dev"
def project do
[
app: :ecto,
version: @version,
elixir: "~> 1.8",
deps: deps(),
consolidate_protocols: Mix.env() != :test,
elixirc_paths: elixirc_paths(Mi... | 26.930556 | 90 | 0.583032 |
2dc59de8bbda8faa47c61e805760c03c5611bfa3 | 135 | ex | Elixir | lib/epcc_web/controllers/page_controller.ex | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | null | null | null | lib/epcc_web/controllers/page_controller.ex | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | 3 | 2020-07-17T03:56:23.000Z | 2021-05-09T00:04:45.000Z | lib/epcc_web/controllers/page_controller.ex | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | null | null | null | defmodule EpccWeb.PageController do
use EpccWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 16.875 | 35 | 0.725926 |
2dc5d91b8280a1734f4daf45a281f32d24690592 | 1,859 | ex | Elixir | lib/go_champs_api_web/plugs/authorized_elimination.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/plugs/authorized_elimination.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | lib/go_champs_api_web/plugs/authorized_elimination.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.Plugs.AuthorizedElimination do
import Phoenix.Controller
import Plug.Conn
alias GoChampsApi.Phases
alias GoChampsApi.Eliminations
def init(default), do: default
def call(conn, :elimination) do
{:ok, elimination} = Map.fetch(conn.params, "elimination")
{:ok, phase_id} = Ma... | 26.557143 | 100 | 0.643895 |
2dc5e4e7303ce0a95beb9245f81ba1f5f42e91a1 | 151 | ex | Elixir | lib/clone.ex | prmrreddy/eat-master | 7c8d11cc903f8a4cb0cdb26eff6717d3bc1265ba | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-01-26T17:51:50.000Z | 2020-01-26T17:51:50.000Z | lib/clone.ex | prmrreddy/eat-master | 7c8d11cc903f8a4cb0cdb26eff6717d3bc1265ba | [
"CC-BY-4.0",
"MIT"
] | 13 | 2017-11-11T23:16:24.000Z | 2020-06-08T02:12:15.000Z | lib/clone.ex | prmrreddy/eat-master | 7c8d11cc903f8a4cb0cdb26eff6717d3bc1265ba | [
"CC-BY-4.0",
"MIT"
] | null | null | null | defmodule Clone do
@moduledoc """
A tool to clone GitHub repositories and store them in the structure to which I've become
accustomed.
"""
end
| 21.571429 | 90 | 0.728477 |
2dc5f0a062ad890a2c5f1f0cb97a81a8cb65f422 | 1,644 | ex | Elixir | lib/erlef/application.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 1 | 2021-03-13T01:34:28.000Z | 2021-03-13T01:34:28.000Z | lib/erlef/application.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | null | null | null | lib/erlef/application.ex | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | null | null | null | defmodule Erlef.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
# children =
# See https://hexdocs.pm/elixir/Supervisor.html
# fo... | 28.344828 | 94 | 0.688564 |
2dc5f1aecf8fd8199b013c1c13e91ab8c4d8919d | 4,167 | exs | Elixir | test/wobserver/util/metrics/formatter_test.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 984 | 2017-02-06T17:13:48.000Z | 2022-03-18T22:46:55.000Z | test/wobserver/util/metrics/formatter_test.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 52 | 2017-02-13T16:12:10.000Z | 2021-04-08T22:31:28.000Z | test/wobserver/util/metrics/formatter_test.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | 74 | 2017-02-13T15:23:49.000Z | 2021-07-30T07:43:27.000Z | defmodule Wobserver.Util.Metrics.FormatterTest do
use ExUnit.Case, async: false
alias Wobserver.Util.Metrics.{
Formatter,
Prometheus,
}
def example_function do
[point: 5]
end
def local_ip do
with {:ok, ips} <- :inet.getif(),
{ip, _, _} <- List.first(ips),
{ip1, ip2, i... | 27.414474 | 166 | 0.540437 |
2dc5f6cc1ba78d9db687c10dacf62c3458547860 | 1,322 | exs | Elixir | test/firmware/floating_point_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/firmware/floating_point_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | test/firmware/floating_point_test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defmodule FarmbotOS.Firmware.FloatingPointTest do
use ExUnit.Case
alias FarmbotOS.Firmware.FloatingPoint
@arbitrary_precision [
{"1741.15", 1741.1474},
{"2442.86", 2442.8583},
{"2680.65", 2680.6528},
{"3309.42", 3309.4192},
{"4596.65", 4596.6471},
{"4830.12", 4830.1191},
{"5035.40", 5... | 24.943396 | 71 | 0.534039 |
2dc6364a72b6783b9f8fb2476bf42a88ced31a3f | 224 | ex | Elixir | ddd_counter/lib/ddd_counter/mutation_gateway.ex | mwindholtz/unit_tested_live_view_counter | 16e354cb3e4f6632e6d0ffec1c34778ba37df5e5 | [
"Apache-2.0"
] | null | null | null | ddd_counter/lib/ddd_counter/mutation_gateway.ex | mwindholtz/unit_tested_live_view_counter | 16e354cb3e4f6632e6d0ffec1c34778ba37df5e5 | [
"Apache-2.0"
] | 1 | 2021-05-10T17:10:32.000Z | 2021-05-10T17:10:32.000Z | ddd_counter/lib/ddd_counter/mutation_gateway.ex | mwindholtz/elixir_unit_testing_example | 16e354cb3e4f6632e6d0ffec1c34778ba37df5e5 | [
"Apache-2.0"
] | null | null | null | defmodule DddCounter.MutationGateway do
alias DddCounter.MutationAdapter, as: Adapter
def inc(val, adapter \\ Adapter) do
adapter.inc(val)
end
def dec(val, adapter \\ Adapter) do
adapter.dec(val)
end
end
| 18.666667 | 47 | 0.714286 |
2dc637287844b15a2683f968371ca2c20c59814a | 889 | ex | Elixir | lib/ex_diet_web/graphql/plug/token_auth.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 2 | 2020-06-25T11:51:46.000Z | 2020-09-30T14:00:40.000Z | lib/ex_diet_web/graphql/plug/token_auth.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | null | null | null | lib/ex_diet_web/graphql/plug/token_auth.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 1 | 2020-01-29T08:43:07.000Z | 2020-01-29T08:43:07.000Z | defmodule ExDietWeb.GraphQL.Plug.TokenAuth do
@moduledoc """
Absinthe token authentication plug
"""
@behaviour Plug
import Plug.Conn
alias ExDiet.Accounts.User
alias ExDiet.Accounts.Authentication
alias ExDietWeb.ErrorView
def init(opts), do: opts
def call(conn, _) do
case build_context(con... | 22.225 | 90 | 0.619798 |
2dc6487c7b37d05012bdedcd04dd55ada9e77ed2 | 1,338 | ex | Elixir | lib/passive_total/account.ex | FloatingGhost/passive_total_ex | 23aaa7a63e68f18ab82a0a5d23d20c525761940d | [
"MIT"
] | 1 | 2021-02-02T17:49:40.000Z | 2021-02-02T17:49:40.000Z | lib/passive_total/account.ex | FloatingGhost/passive_total_ex | 23aaa7a63e68f18ab82a0a5d23d20c525761940d | [
"MIT"
] | null | null | null | lib/passive_total/account.ex | FloatingGhost/passive_total_ex | 23aaa7a63e68f18ab82a0a5d23d20c525761940d | [
"MIT"
] | null | null | null | defmodule PassiveTotal.Account do
@moduledoc """
API endpoints for `/account`
"""
import PassiveTotal.Utils
@doc """
Read current account metadata and settings
"""
def get(client) do
Tesla.get(client, "/account")
|> parse_response()
end
@doc """
Read API usage history of the account
"... | 18.84507 | 50 | 0.647235 |
2dc655455124000ce8f543fc6c5d093c26f00f01 | 2,357 | exs | Elixir | config/config.exs | jerojasro/crawly | 851d6c8382ec1d19a525da914f7c603ffca61581 | [
"Apache-2.0"
] | null | null | null | config/config.exs | jerojasro/crawly | 851d6c8382ec1d19a525da914f7c603ffca61581 | [
"Apache-2.0"
] | null | null | null | config/config.exs | jerojasro/crawly | 851d6c8382ec1d19a525da914f7c603ffca61581 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
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.179104 | 128 | 0.736105 |
2dc65ef49a0f9ad053a360b67bceb4c6b50eee76 | 17,113 | exs | Elixir | apps/authenticator/test/authenticator/sign_in/commands/refresh_token_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authenticator/test/authenticator/sign_in/commands/refresh_token_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authenticator/test/authenticator/sign_in/commands/refresh_token_test.exs | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authenticator.SignIn.Commands.RefreshTokenTest do
@moduledoc false
use Authenticator.DataCase, async: true
alias Authenticator.Ports.ResourceManagerMock
alias Authenticator.Sessions.Schemas.Session
alias Authenticator.Sessions.Tokens.{AccessToken, RefreshToken}
alias Authenticator.SignIn.Command... | 28.28595 | 96 | 0.518787 |
2dc660a8df3b6927b039b57dc9a90532a8037d47 | 61 | ex | Elixir | apps/uniflow_web/lib/uniflow_web/views/user_view.ex | andyl/uniflow | 049050d2e41b8242bb1e6c543d715caa0d0e7f02 | [
"MIT"
] | null | null | null | apps/uniflow_web/lib/uniflow_web/views/user_view.ex | andyl/uniflow | 049050d2e41b8242bb1e6c543d715caa0d0e7f02 | [
"MIT"
] | 9 | 2021-05-10T18:31:22.000Z | 2021-05-27T12:57:20.000Z | apps/uniflow_web/lib/uniflow_web/views/user_view.ex | andyl/uniflow | 049050d2e41b8242bb1e6c543d715caa0d0e7f02 | [
"MIT"
] | null | null | null | defmodule UniflowWeb.UserView do
use UniflowWeb, :view
end
| 15.25 | 32 | 0.803279 |
2dc66ede7b9f401fdf368c1d59ccf369d225c6d1 | 672 | ex | Elixir | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/operation_display.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/operation_display.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/operation_display.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Storage.Model.OperationDisplay do
@moduledoc """
Display metadata associated with the operation.
"""
@derive [... | 22.4 | 89 | 0.696429 |
2dc674ac3ebecb50718bcd6abeebe059b962eae6 | 1,375 | ex | Elixir | lib/oli_web/live/common/enrollment_browser/select_user_modal.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli_web/live/common/enrollment_browser/select_user_modal.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli_web/live/common/enrollment_browser/select_user_modal.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.Common.EnrollmentBrowser.SelectUserModal do
use Surface.Component
alias OliWeb.Common.EnrollmentBrowser.EnrollmentPicker
prop section, :struct, required: true
prop context, :struct, required: true
prop on_select, :event, required: true
prop on_cancel, :event, default: nil
def render(
... | 32.738095 | 134 | 0.573091 |
2dc685777a89c95bba6c341fa91c86d4e3d74503 | 426 | ex | Elixir | apps/webapp/test/support/acceptance_case.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 25 | 2016-08-09T15:04:37.000Z | 2021-11-15T12:20:27.000Z | apps/webapp/test/support/acceptance_case.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 62 | 2016-05-23T20:16:40.000Z | 2017-04-18T18:36:29.000Z | apps/webapp/test/support/acceptance_case.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 10 | 2016-08-17T15:29:21.000Z | 2017-02-28T07:58:30.000Z | defmodule Webapp.AcceptanceCase do
use ExUnit.CaseTemplate
using do
quote do
use Wallaby.DSL
import Webapp.Router.Helpers
import Webapp.Factory
import Webapp.AcceptanceCase
# The default endpoint for testing
@endpoint Webapp.Endpoint
end
end
setup tags do
# {:... | 17.75 | 64 | 0.669014 |
2dc69e03ff9e7ef19a5d6246960413a0a06d504b | 991 | ex | Elixir | web/views/error_helpers.ex | code-mancers/exray | f37a089c98ae3117063865c8d2583fec6d112af5 | [
"MIT"
] | 1 | 2016-03-20T05:30:28.000Z | 2016-03-20T05:30:28.000Z | web/views/error_helpers.ex | code-mancers/exray | f37a089c98ae3117063865c8d2583fec6d112af5 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | code-mancers/exray | f37a089c98ae3117063865c8d2583fec6d112af5 | [
"MIT"
] | null | null | null | defmodule Exray.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), cl... | 27.527778 | 76 | 0.677094 |
2dc6efba4b6f7592378eb237c057c9aea0afe539 | 3,999 | exs | Elixir | test/mono_counter_test.exs | shopping-adventure/gen_serverring | ec75aa647bee80228dc9464b6e143b0633433827 | [
"MIT"
] | 1 | 2016-09-23T13:08:09.000Z | 2016-09-23T13:08:09.000Z | test/mono_counter_test.exs | shopping-adventure/gen_serverring | ec75aa647bee80228dc9464b6e143b0633433827 | [
"MIT"
] | null | null | null | test/mono_counter_test.exs | shopping-adventure/gen_serverring | ec75aa647bee80228dc9464b6e143b0633433827 | [
"MIT"
] | null | null | null | defmodule MonoCounterTest do
use ExUnit.Case
setup_all do
Application.start(:crdtex)
File.mkdir("data")
on_exit fn() -> Application.stop(:crdtex) end
:ok
end
setup context do
GenServerring.start_link({context.name, context.callback})
:ok
end
defp update_state(state, action) do
... | 31.242188 | 80 | 0.694924 |
2dc7044d9132387f8b0a1ba0194ae6d3b716a6c7 | 26 | exs | Elixir | v01/ch03/variable.edit0.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v01/ch03/variable.edit0.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | v01/ch03/variable.edit0.exs | oiax/elixir-primer | c8b89a29f108cc335b8e1341b7a1e90ec12adc66 | [
"MIT"
] | null | null | null | n = 1
n = n + 1
IO.puts n
| 6.5 | 9 | 0.461538 |
2dc743f746fc06d4710083210e5fceb477e93c6f | 2,149 | ex | Elixir | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/basic_level.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/basic_level.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/basic_level.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... | 42.98 | 408 | 0.746394 |
2dc788c751eaabfa9be2adeda3b8ec58c0299955 | 1,538 | ex | Elixir | test/support/data_case.ex | jcamenisch/dnsierge | cfc1654ce0b2c34c8952845aa0df6113ff3bb406 | [
"MIT"
] | null | null | null | test/support/data_case.ex | jcamenisch/dnsierge | cfc1654ce0b2c34c8952845aa0df6113ff3bb406 | [
"MIT"
] | null | null | null | test/support/data_case.ex | jcamenisch/dnsierge | cfc1654ce0b2c34c8952845aa0df6113ff3bb406 | [
"MIT"
] | null | null | null | defmodule Dnsierge.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 to ... | 27.464286 | 77 | 0.689857 |
2dc7d361227b2efdd5d1c7cc5e4e84a4e7f17377 | 329 | ex | Elixir | lib/uf/sp.ex | edmaarcosta/IEEx | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | null | null | null | lib/uf/sp.ex | edmaarcosta/IEEx | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | 1 | 2017-12-05T15:58:10.000Z | 2017-12-05T15:58:10.000Z | lib/uf/sp.ex | edmaarcosta/ieex | fb457be8c03b7a147463cdd2736f9699a699e22d | [
"MIT"
] | 1 | 2018-10-01T19:35:47.000Z | 2018-10-01T19:35:47.000Z | defmodule IEEx.UF.SP do
alias IEEx.Util
alias IEEx.UF.SPP
alias IEEx.UF.SP12
def is_valid?(input) do
ie = Util.only_numbers(input)
if String.length(ie) == 12 do
case String.at(input, 0) do
"P" -> SPP.is_valid?(ie)
_ -> SP12.is_valid?(ie)
end
else
false
end
... | 17.315789 | 33 | 0.583587 |
2dc7de94d84f46b2288ea4b39d1b4bce8ecae92c | 888 | exs | Elixir | test/predicator/evaluator_operations/ends_with_test.exs | riddler/predicator-ex | afe4130c2fbe6ef1503c124f4db8d34fe544569c | [
"MIT"
] | null | null | null | test/predicator/evaluator_operations/ends_with_test.exs | riddler/predicator-ex | afe4130c2fbe6ef1503c124f4db8d34fe544569c | [
"MIT"
] | null | null | null | test/predicator/evaluator_operations/ends_with_test.exs | riddler/predicator-ex | afe4130c2fbe6ef1503c124f4db8d34fe544569c | [
"MIT"
] | null | null | null | defmodule Predicator.EvaluatorOperation.EndsWithTest do
use ExUnit.Case
import Predicator.Evaluator
@moduletag :parsed
defmodule TestUser, do: defstruct [website: "sanfransiscoisoldnews.com"]
describe "[\"ENDSWITH\"] Comparison operator" do
test "execute/1 lit val ends with charset" do
inst = [["... | 31.714286 | 84 | 0.636261 |
2dc7e5ac7359db17bb519e03f322aa31d8fda4aa | 580 | exs | Elixir | test/ex_rtmidi/message_test.exs | kieraneglin/ex_rtmidi | a408c30706ef9a6c7fb4394e67112d40032599df | [
"MIT",
"Unlicense"
] | 4 | 2021-02-18T22:56:54.000Z | 2021-03-10T10:46:06.000Z | test/ex_rtmidi/message_test.exs | kieraneglin/ex_rtmidi | a408c30706ef9a6c7fb4394e67112d40032599df | [
"MIT",
"Unlicense"
] | null | null | null | test/ex_rtmidi/message_test.exs | kieraneglin/ex_rtmidi | a408c30706ef9a6c7fb4394e67112d40032599df | [
"MIT",
"Unlicense"
] | null | null | null | defmodule ExRtmidi.MessageTest do
use ExUnit.Case
alias ExRtmidi.Message
describe "compose" do
test "Generates a valid message for commands with arguments" do
msg = Message.compose(:note_off, channel: 1, note: 2, velocity: 3)
assert [129, 2, 3] = msg
end
test "Generates a valid message ... | 25.217391 | 72 | 0.648276 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.