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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
382900dc681c00db456e63ddd1d42576cccb6ede | 480 | exs | Elixir | test/models/language_test.exs | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | test/models/language_test.exs | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | test/models/language_test.exs | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | defmodule EmotionsWheelBackend.LanguageTest do
use EmotionsWheelBackend.ModelCase
alias EmotionsWheelBackend.Language
@valid_attrs %{name: "Polish", code: "pl"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Language.changeset(%Language{}, @valid_attrs)
assert changeset.va... | 25.263158 | 63 | 0.747917 |
38292f6e171b6433070d0cb7dd8e5f8e286e73ed | 594 | exs | Elixir | mix.exs | weiss/rebar3_ex_doc | ec9e0e6352409086e254bad5e9305e4e1d227c4b | [
"Apache-2.0"
] | null | null | null | mix.exs | weiss/rebar3_ex_doc | ec9e0e6352409086e254bad5e9305e4e1d227c4b | [
"Apache-2.0"
] | null | null | null | mix.exs | weiss/rebar3_ex_doc | ec9e0e6352409086e254bad5e9305e4e1d227c4b | [
"Apache-2.0"
] | null | null | null | defmodule RebarHexDoc.MixProject do
use Mix.Project
def project do
[
app: :rebar_ex_doc,
version: "0.2.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: [main_module: ExDoc.CLI, name: "ex_doc", path: "priv/ex_doc"],
docs: [main: "readme... | 18.5625 | 77 | 0.558923 |
38293eb677b69872b4fcb6462b91ecd001f3286b | 714 | ex | Elixir | lib/elmverse_web/gettext.ex | s6o/elmverse | 3e5c732a09f5e7f456286487e84d711672239529 | [
"MIT"
] | null | null | null | lib/elmverse_web/gettext.ex | s6o/elmverse | 3e5c732a09f5e7f456286487e84d711672239529 | [
"MIT"
] | 3 | 2021-03-09T01:27:03.000Z | 2022-02-10T17:08:49.000Z | lib/elmverse_web/gettext.ex | s6o/elmverse | 3e5c732a09f5e7f456286487e84d711672239529 | [
"MIT"
] | null | null | null | defmodule ElmverseWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import ElmverseWeb.Gettext
# Simple translation
gettext("Here is... | 28.56 | 72 | 0.679272 |
382961a861c56a384bd76f8364593cc7535fef21 | 458 | exs | Elixir | config/test.exs | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | null | null | null | config/test.exs | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | 1 | 2021-05-10T10:36:59.000Z | 2021-05-10T10:36:59.000Z | config/test.exs | ontanj/karroake | b3346707df9d2378a06ee3bb7d218d0962fe7d86 | [
"MIT"
] | null | null | null | import Config
# Configure your database
config :karroake, Karroake.Repo,
username: "sol",
password: "sofla123",
database: "karroake_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :karroak... | 25.444444 | 56 | 0.733624 |
38296c65a5da292f77ea34e0eac4605dccb0b418 | 2,714 | ex | Elixir | lib/transhook/webhook/webhook.ex | linjunpop/transhook | 59000e5a346c6c059d95c5a1f48190f698b4e7a3 | [
"0BSD"
] | null | null | null | lib/transhook/webhook/webhook.ex | linjunpop/transhook | 59000e5a346c6c059d95c5a1f48190f698b4e7a3 | [
"0BSD"
] | null | null | null | lib/transhook/webhook/webhook.ex | linjunpop/transhook | 59000e5a346c6c059d95c5a1f48190f698b4e7a3 | [
"0BSD"
] | null | null | null | defmodule Transhook.Webhook do
@moduledoc """
The Webhook context.
"""
import Ecto.Query, warn: false
alias Transhook.Repo
alias Transhook.Webhook.Hook
alias Transhook.Webhook.Papertrail
@doc """
Returns the list of hooks.
## Examples
iex> list_hooks()
[%Hook{}, ...]
"""
def li... | 17.738562 | 72 | 0.590641 |
382975177252836b83dbe4b1d62e61ee314b4022 | 1,710 | ex | Elixir | lib/mix/ua_inspector/download.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | lib/mix/ua_inspector/download.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | lib/mix/ua_inspector/download.ex | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | 1 | 2020-01-30T18:55:12.000Z | 2020-01-30T18:55:12.000Z | defmodule Mix.UAInspector.Download do
@moduledoc """
Utility module to support download tasks.
"""
alias Mix.UAInspector.README
alias UAInspector.Config
@doc """
Prints an error because of missing configuration values.
"""
@spec exit_unconfigured() :: no_return
def exit_unconfigured() do
Mix.... | 25.522388 | 79 | 0.665497 |
38297856adff08f7995595883f123efbd766ea75 | 4,257 | ex | Elixir | lib/hexpm/repository/packages.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/packages.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/packages.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.Packages do
use Hexpm.Web, :context
def count() do
Repo.one!(Package.count())
end
def count(organizations, filter) do
Repo.one!(Package.count(organizations, filter))
end
def get(organization, name) when is_binary(organization) do
organization = Organizations.get(org... | 27.464516 | 96 | 0.672304 |
38297dd1ae828735994330922384b8fe96b60001 | 1,105 | ex | Elixir | lib/awesome_web/router.ex | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | lib/awesome_web/router.ex | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | lib/awesome_web/router.ex | ravernkoh/awesome-lists | ed8f93d6bc1e5968303a484ebe8f0036ddd0db7b | [
"MIT"
] | null | null | null | defmodule AwesomeWeb.Router do
use AwesomeWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
# TODO: Refactor to better naming
pipeline :browser_session do
plug Guardian.Plug.... | 28.333333 | 78 | 0.700452 |
38298c44cb893d1aa9e2ce58b8ce7607745b9d0d | 2,290 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/floodlight_activities_generate_tag_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/floodlight_activities_generate_tag_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/floodlight_activities_generate_tag_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.482759 | 289 | 0.748908 |
38299bf4d0a086ec52b1e57165641262c3e8262d | 477 | ex | Elixir | phoenix_crud/web/models/user.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_crud/web/models/user.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | phoenix_crud/web/models/user.ex | enilsen16/elixir | b4d1d45858a25e4beb39e07de8685f3d93d6a520 | [
"MIT"
] | null | null | null | defmodule PhoenixCrud.User do
use PhoenixCrud.Web, :model
schema "users" do
field :content, :string
timestamps
end
@required_fields ~w(content)
@optional_fields ~w()
@doc """
Creates a changeset based on the `model` and `params`.
If no params are provided, an invalid changeset is returned
... | 19.875 | 61 | 0.691824 |
3829bf94c822359ef1af4cc645cf2fdc602964c2 | 457 | ex | Elixir | lib/postgrex/extensions/void_binary.ex | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 681 | 2016-06-16T12:28:22.000Z | 2022-03-30T08:48:42.000Z | deps/postgrex/lib/postgrex/extensions/void_binary.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 383 | 2016-06-17T14:49:41.000Z | 2022-03-21T18:13:19.000Z | deps/postgrex/lib/postgrex/extensions/void_binary.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 234 | 2016-06-16T16:14:47.000Z | 2022-03-03T00:43:59.000Z | defmodule Postgrex.Extensions.VoidBinary do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "void_send"
def encode(_) do
quote location: :keep do
:void ->
<<0::int32>>
other ->
raise DBConnection.EncodeError, Postgrex.Utils.encode_m... | 20.772727 | 90 | 0.645514 |
3829d252bfc05508a7c144a77ec1739501d11852 | 2,049 | ex | Elixir | interop/lib/interop/server.ex | scohen/grpc-elixir | c0eaa61d789f5c5b9e3c2f4c213944bebaf2c72c | [
"Apache-2.0"
] | null | null | null | interop/lib/interop/server.ex | scohen/grpc-elixir | c0eaa61d789f5c5b9e3c2f4c213944bebaf2c72c | [
"Apache-2.0"
] | null | null | null | interop/lib/interop/server.ex | scohen/grpc-elixir | c0eaa61d789f5c5b9e3c2f4c213944bebaf2c72c | [
"Apache-2.0"
] | null | null | null | defmodule Interop.Server do
@moduledoc false
use GRPC.Server, service: Grpc.Testing.TestService.Service
def empty_call(_, _stream) do
Grpc.Testing.Empty.new()
end
def unary_call(req, stream) do
handle_metadata(stream)
status = req.response_status
if status && status.code != 0 do
raise... | 31.045455 | 89 | 0.694485 |
382a01f2404b3a6732b4386e78aa55a9d52418a4 | 72 | exs | Elixir | test/views/page_view_test.exs | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/artour/test/views/page_view_test.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/artour/test/views/page_view_test.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Artour.PageViewTest do
use Artour.ConnCase, async: true
end
| 18 | 34 | 0.805556 |
382a35227f4890e703c6ea37727ed9eff8297084 | 207 | ex | Elixir | lib/transit_realtime/vehicle_position/vehicle_stop_status.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | lib/transit_realtime/vehicle_position/vehicle_stop_status.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | lib/transit_realtime/vehicle_position/vehicle_stop_status.ex | bbalser/reaper | 7a2e8808c877b33ffa63a745179118f938460989 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule TransitRealtime.VehiclePosition.VehicleStopStatus do
@moduledoc false
use Protobuf, enum: true, syntax: :proto2
field(:INCOMING_AT, 0)
field(:STOPPED_AT, 1)
field(:IN_TRANSIT_TO, 2)
end
| 23 | 62 | 0.763285 |
382aa9b3531a488d6b3cf163f622dedfc4a126b4 | 454 | ex | Elixir | lib/asciinema/exq_middleware_sentry.ex | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | lib/asciinema/exq_middleware_sentry.ex | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | lib/asciinema/exq_middleware_sentry.ex | zubairshokh/asciinema-server | b882f285a84054e94e70def8f9777cc2fc3551b1 | [
"Apache-2.0"
] | null | null | null | defmodule Asciinema.Exq.Middleware.Sentry do
@behaviour Exq.Middleware.Behaviour
def before_work(pipeline) do
pipeline
end
def after_processed_work(pipeline) do
pipeline
end
def after_failed_work(pipeline) do
{exception, stacktrace} = pipeline.assigns.error
Sentry.capture_exception(
... | 18.916667 | 60 | 0.726872 |
382ae4ac6371249c84c574de83bbdc4f3fba351f | 1,109 | exs | Elixir | config/config.exs | romanmt/textex | feab2fd82402afce696b541429939352bb3d0bce | [
"MIT"
] | 2 | 2016-07-31T19:39:46.000Z | 2020-03-13T21:26:13.000Z | config/config.exs | romanmt/textex | feab2fd82402afce696b541429939352bb3d0bce | [
"MIT"
] | null | null | null | config/config.exs | romanmt/textex | feab2fd82402afce696b541429939352bb3d0bce | [
"MIT"
] | 2 | 2017-10-27T15:23:32.000Z | 2020-03-11T13:30:20.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... | 35.774194 | 73 | 0.754734 |
382b108a52e55fdf88457307a382dc2a3e1fe8ef | 4,733 | ex | Elixir | lib/md0/table_scanner.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | lib/md0/table_scanner.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | lib/md0/table_scanner.ex | RobertDober/md0 | b2337e69a9bea6b2b17951b75daa15fe7fe8cfad | [
"Apache-2.0"
] | null | null | null | defmodule Md0.TableScanner do
@typep token :: {atom(), String.t, number()}
@typep tokens :: list(token)
@typep graphemes :: list(String.t)
@typep scan_info :: {atom(), graphemes(), number(), IO.chardata(), tokens()}
def scan_document(doc) do
doc
|> String.split(~r{\r\n?|\n})
|> Enum.zip(Stream.i... | 38.479675 | 118 | 0.581238 |
382b244f7bc2593a00747f162e0e29c8f65d4f2e | 1,585 | ex | Elixir | lib/backdoor/session/code_runner.ex | mwhitworth/backdoor | 4e8708d0a4e28b50a848af3239a8b8f6383f486a | [
"MIT"
] | 3 | 2020-09-28T07:06:11.000Z | 2021-12-17T19:01:55.000Z | lib/backdoor/session/code_runner.ex | mwhitworth/backdoor | 4e8708d0a4e28b50a848af3239a8b8f6383f486a | [
"MIT"
] | null | null | null | lib/backdoor/session/code_runner.ex | mwhitworth/backdoor | 4e8708d0a4e28b50a848af3239a8b8f6383f486a | [
"MIT"
] | 2 | 2020-09-28T07:50:53.000Z | 2021-12-19T14:11:02.000Z | defmodule Backdoor.Session.CodeRunner do
use GenServer
import Backdoor.Session.LogHelpers
import Backdoor.Session.ViaTuple
require Logger
# Public API
def start_link([session_id, name: name]) do
GenServer.start_link(__MODULE__, session_id, name: name)
end
# Callbacks
@impl true
def init(sess... | 24.765625 | 97 | 0.674448 |
382b4906dceec295bf1d950d91da3032d8460755 | 8,628 | ex | Elixir | lib/oli/delivery/attempts/page_lifecycle.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/delivery/attempts/page_lifecycle.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/delivery/attempts/page_lifecycle.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Delivery.Attempts.PageLifecycle do
import Ecto.Query, warn: false
@moduledoc """
Façade module providing a uniform interface to initiate page attempt state
transitions and to access their state.
"""
alias Oli.Repo
import Oli.Delivery.Attempts.Core
alias Oli.Delivery.Snapshots
alias O... | 31.837638 | 132 | 0.660292 |
382b4a3970ca52f27ef6a6144a6de92374c54fcf | 585 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/usage_name.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.Network/lib/microsoft/azure/management/network/model/usage_name.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/model/usage_name.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.Network.Model.UsageName do
@moduledoc """
The usage names.
"""
@derive [Poison.Encoder]
defstruct [
:"va... | 20.892857 | 82 | 0.695726 |
382b6af07602a9ffd22c534f4865fe080a4956e0 | 204 | ex | Elixir | web/views/tp_timing_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_timing_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | web/views/tp_timing_view.ex | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpTimingView do
use CgratesWebJsonapi.Web, :view
use JaSerializer.PhoenixView
attributes [:tpid, :tag, :years, :months, :month_days, :week_days, :time, :created_at]
end
| 29.142857 | 88 | 0.769608 |
382b80ba8e97af3b83fbcea64285ba1602702c05 | 1,696 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/test_iam_permissions_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/test_iam_permissions_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/test_iam_permissions_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.333333 | 234 | 0.741156 |
382b8992594680dbdf3c0df2d8b8f207131345f5 | 107 | ex | Elixir | apps/dredd_web/web/admin/user.ex | TheAustinSeven/Dredd | 2a5429bb3212c97689181017cdd0d3283dbddafd | [
"BSD-3-Clause"
] | null | null | null | apps/dredd_web/web/admin/user.ex | TheAustinSeven/Dredd | 2a5429bb3212c97689181017cdd0d3283dbddafd | [
"BSD-3-Clause"
] | null | null | null | apps/dredd_web/web/admin/user.ex | TheAustinSeven/Dredd | 2a5429bb3212c97689181017cdd0d3283dbddafd | [
"BSD-3-Clause"
] | null | null | null | defmodule DreddWeb.ExAdmin.User do
use ExAdmin.Register
register_resource DreddWeb.User do
end
end
| 13.375 | 36 | 0.794393 |
382bc1b62cb63d46978c710e9422e4ce653150c0 | 24,080 | ex | Elixir | lib/aws/generated/directory.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/directory.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/directory.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Directory do
@moduledoc """
AWS Directory Service
AWS Directory Service is a web service that makes it easy for you to setup
and run directories in the AWS cloud, or connect your AWS reso... | 36.156156 | 120 | 0.73044 |
382bc6466a019fc307de5ee8597beb6d6aa85eb7 | 418 | exs | Elixir | project/gamenect/test/models/game_json_test.exs | daemonfire300/learning_phoenix | 0ab0cb1feacda4ec5c0ab0a5324835a150db22ab | [
"MIT"
] | null | null | null | project/gamenect/test/models/game_json_test.exs | daemonfire300/learning_phoenix | 0ab0cb1feacda4ec5c0ab0a5324835a150db22ab | [
"MIT"
] | null | null | null | project/gamenect/test/models/game_json_test.exs | daemonfire300/learning_phoenix | 0ab0cb1feacda4ec5c0ab0a5324835a150db22ab | [
"MIT"
] | null | null | null | defmodule Gamenect.GameJSONTest do
use Gamenect.ModelCase
alias Gamenect.GameJSON
@valid_attrs %{}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = GameJSON.changeset(%GameJSON{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid attributes" do
... | 22 | 63 | 0.73445 |
382bce56c11c5000b575b80147857a469c7c0a4a | 87 | ex | Elixir | lib/zaryn/neural_galaxy/node.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | 1 | 2020-01-04T11:24:44.000Z | 2020-01-04T11:24:44.000Z | lib/zaryn/neural_galaxy/node.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | null | null | null | lib/zaryn/neural_galaxy/node.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | null | null | null | defmodule Zaryn.NeuralGalaxy.Node do
require Logger
use GenServer, asyns: true
end
| 17.4 | 36 | 0.793103 |
382be554c9c46c90b7da1d0d791c9eebabc5a255 | 1,094 | ex | Elixir | lib/app_web/views/project_view.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | lib/app_web/views/project_view.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | lib/app_web/views/project_view.ex | ThanhUong/Chronos | 5e1b0823c585b784f5c51212513d518cab53a571 | [
"MIT"
] | null | null | null | defmodule AppWeb.ProjectView do
use AppWeb, :view
alias AppWeb.{ProjectView, LeadSourceView, ProjectTypeView, StageView, OrganizationView}
def render("index.json", %{projects: projects}) do
%{data: render_many(projects, ProjectView, "project.json")}
end
def render("show.json", %{project: project}) do
... | 35.290323 | 91 | 0.712066 |
382c0ad2a32fdb5c5bbf046804ebe7ba333aa944 | 2,132 | exs | Elixir | test/movement/builders/slave_conflict_sync_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/movement/builders/slave_conflict_sync_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/movement/builders/slave_conflict_sync_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule AccentTest.Movement.Builders.SlaveConflictSync do
use Accent.RepoCase
alias Movement.Builders.SlaveConflictSync, as: SlaveConflictSyncBuilder
alias Accent.{
Repo,
ProjectCreator,
Translation,
User,
Language,
Revision,
Document
}
@user %User{email: "test@test.com"}
s... | 33.84127 | 140 | 0.674015 |
382c0e00b12c0976b5abc06193291e8bfeb3c9e4 | 209 | exs | Elixir | priv/templates/brando.upgrade/migrations/brando_69_add_language_to_global_categories.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | priv/templates/brando.upgrade/migrations/brando_69_add_language_to_global_categories.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | priv/templates/brando.upgrade/migrations/brando_69_add_language_to_global_categories.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.Repo.Migrations.AddLanguageToGlobalCategories do
use Ecto.Migration
def change do
alter table(:sites_global_categories) do
add :language, :text, default: "en"
end
end
end
| 20.9 | 65 | 0.741627 |
382c19ef1849b641e211e8d0ff5144aff55cec68 | 514 | exs | Elixir | nucleotide-count/dna.exs | nickpellant/xelixir | 6e27dc7083ef3e423a1615f5151910672e6397a8 | [
"MIT"
] | null | null | null | nucleotide-count/dna.exs | nickpellant/xelixir | 6e27dc7083ef3e423a1615f5151910672e6397a8 | [
"MIT"
] | null | null | null | nucleotide-count/dna.exs | nickpellant/xelixir | 6e27dc7083ef3e423a1615f5151910672e6397a8 | [
"MIT"
] | null | null | null | defmodule DNA do
@nucleotides [?A, ?C, ?G, ?T]
@doc """
Counts individual nucleotides in a DNA strand.
## Examples
iex> DNA.count('AATAA', ?A)
4
iex> DNA.count('AATAA', ?T)
1
"""
@spec count([char], char) :: non_neg_integer
def count(strand, nucleotide) do
end
@doc """
Returns a summa... | 15.117647 | 48 | 0.579767 |
382c370c427ec324c7c0d3bef7837c194c0b6ce9 | 1,246 | exs | Elixir | mix.exs | Liveflow-io/oauth2_token_manager | b2eb28a83dd7499a901075eaa08b4eaf8181c408 | [
"Apache-2.0"
] | 4 | 2020-08-14T23:02:18.000Z | 2021-11-20T21:05:06.000Z | mix.exs | Liveflow-io/oauth2_token_manager | b2eb28a83dd7499a901075eaa08b4eaf8181c408 | [
"Apache-2.0"
] | 1 | 2021-03-31T09:21:37.000Z | 2021-03-31T11:22:03.000Z | mix.exs | Liveflow-io/oauth2_token_manager | b2eb28a83dd7499a901075eaa08b4eaf8181c408 | [
"Apache-2.0"
] | 4 | 2020-08-14T23:02:21.000Z | 2022-02-27T21:49:50.000Z | defmodule OAuth2TokenManager.MixProject do
use Mix.Project
def project do
[
app: :oauth2_token_manager,
description: "Manages OAuth2 tokens and OpenID Connect claims and ID tokens",
version: "0.3.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
docs: [
main... | 24.92 | 83 | 0.55939 |
382c9b023fdba9c803d710baecc05be2a36aca77 | 448 | ex | Elixir | lib/xdr/types/void.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 3 | 2020-01-12T03:16:38.000Z | 2020-09-06T03:37:03.000Z | lib/xdr/types/void.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 7 | 2019-10-14T14:27:31.000Z | 2020-05-01T22:27:52.000Z | lib/xdr/types/void.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 1 | 2020-02-06T23:19:24.000Z | 2020-02-06T23:19:24.000Z | defmodule XDR.Type.Void do
@moduledoc """
Void
"""
defstruct type_name: "Void"
@type t() :: %__MODULE__{type_name: String.t()}
@type encoding() :: <<>>
defimpl XDR.Type do
def build_type(type, _), do: type
def resolve_type!(type, _), do: type
def build_value!(type, _value), do: type
... | 17.92 | 53 | 0.613839 |
382cc06e75b67c54441b470ab3058d5aff285bdb | 1,485 | ex | Elixir | clients/books/lib/google_api/books/v1/model/geolayerdata_geo_viewport_hi.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/books/lib/google_api/books/v1/model/geolayerdata_geo_viewport_hi.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/geolayerdata_geo_viewport_hi.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 ... | 29.7 | 82 | 0.719192 |
382cd4284e5166433b0eca652a90ea546880c883 | 2,069 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__text_detection_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__text_detection_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1__text_detection_config.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... | 37.618182 | 316 | 0.745771 |
382d1b473e62c29f0dbbdfad710b8ef6be0e4b60 | 1,779 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/auto_text.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/slides/lib/google_api/slides/v1/model/auto_text.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/auto_text.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.566038 | 122 | 0.707139 |
382d1f122e74ef1820e423c686dfe2320439b40e | 2,382 | ex | Elixir | clients/fitness/lib/google_api/fitness/v1/model/application.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/model/application.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/fitness/lib/google_api/fitness/v1/model/application.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.535714 | 340 | 0.724181 |
382d4ad16cd376498d46d93ba628ed83c4bf5d51 | 2,260 | ex | Elixir | lib/erlef_web/views/page_view.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/views/page_view.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/views/page_view.ex | dhadka/website | e67c23d7052b4ef00a1af52b0b9ebc952d34776e | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.PageView do
use ErlefWeb, :view
import ErlefWeb.ViewHelpers, only: [event_dates: 2]
def community_card_wall(items) do
~E"""
<div class="row">
<%= for i <- items do %>
<div class="col-md-4 mb-5">
<div class="card community-card h-100 shadow-sm">
... | 29.736842 | 98 | 0.456637 |
382d79eb1d1fa0a2dc0571ef02710976354b7464 | 176 | exs | Elixir | test/potion_tweet/string_enum_test.exs | artemruts/PotionTweet | d5b478fcbfe1ce610e22780947138cd3e6933ce3 | [
"MIT"
] | 1 | 2017-09-02T04:21:42.000Z | 2017-09-02T04:21:42.000Z | test/potion_tweet/string_enum_test.exs | artemruts/PotionTweet | d5b478fcbfe1ce610e22780947138cd3e6933ce3 | [
"MIT"
] | null | null | null | test/potion_tweet/string_enum_test.exs | artemruts/PotionTweet | d5b478fcbfe1ce610e22780947138cd3e6933ce3 | [
"MIT"
] | null | null | null | defmodule StringEnum do
use ExUnit.Case
import PotionTweet.StringEnum
test "Will not fail on an empty string" do
str = pick_string("")
assert str == ""
end
end | 19.555556 | 44 | 0.693182 |
382dc6a459fbcf6f8e8c15f3d91baeb726c458c3 | 162 | exs | Elixir | test/ueberauth_reddit_test.exs | latesh/ueberauth_reddit | fc5bd260058c416b4b91d9080e00827fb64b3258 | [
"MIT"
] | null | null | null | test/ueberauth_reddit_test.exs | latesh/ueberauth_reddit | fc5bd260058c416b4b91d9080e00827fb64b3258 | [
"MIT"
] | null | null | null | test/ueberauth_reddit_test.exs | latesh/ueberauth_reddit | fc5bd260058c416b4b91d9080e00827fb64b3258 | [
"MIT"
] | 1 | 2020-09-21T20:39:27.000Z | 2020-09-21T20:39:27.000Z | defmodule UeberauthRedditTest do
use ExUnit.Case
doctest UeberauthReddit
test "greets the world" do
assert UeberauthReddit.hello() == :world
end
end
| 18 | 44 | 0.753086 |
382dd214c0841421e4b884297ea668a7d49734f4 | 2,558 | exs | Elixir | config/prod.exs | ngscheurich/jabberwocky | c99cd52d35a4847afa83194132f8b1f5ee952d32 | [
"MIT"
] | null | null | null | config/prod.exs | ngscheurich/jabberwocky | c99cd52d35a4847afa83194132f8b1f5ee952d32 | [
"MIT"
] | null | null | null | config/prod.exs | ngscheurich/jabberwocky | c99cd52d35a4847afa83194132f8b1f5ee952d32 | [
"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
# JabberwockyWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
... | 35.041096 | 74 | 0.727912 |
382e000377dc333ca016d033cd4a2c9a3ca73cc5 | 1,009 | ex | Elixir | apps/ewallet_api/lib/ewallet_api/v1/views/auth_view.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_api/lib/ewallet_api/v1/views/auth_view.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_api/lib/ewallet_api/v1/views/auth_view.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 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 ... | 33.633333 | 74 | 0.75223 |
382e160e801770c0f43132ca54c95f52c210e11a | 2,306 | ex | Elixir | kv_umbrella/apps/kv/registry.ex | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | kv_umbrella/apps/kv/registry.ex | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | kv_umbrella/apps/kv/registry.ex | guthb/fp | 2a754adfcf2eb60e80016a23de81fad83993bafe | [
"MIT"
] | null | null | null | defmodule KV.Registry do
use GenServer
## Client API
@doc """
Starts the registry with given options
`:name` is always requireed.
"""
def start_link(opts) do
# 1. Pass the name to GenServer's init
server = Keyword.fetch!(opts, :name)
GenServer.start_link(__MODULE__, :ok, opts)
end
@doc... | 25.065217 | 82 | 0.605377 |
382e35fbfa7694ac30a9f34c59f3a01c4bd0da70 | 2,201 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/cloud_repo_source_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/cloud_repo_source_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/cloud_repo_source_context.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.303571 | 140 | 0.722853 |
382e68e3324de28ec3e3cf77a8b2faff569251fb | 1,892 | exs | Elixir | server/test/melody_match_web/channels/matchmaker_channel_test.exs | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | null | null | null | server/test/melody_match_web/channels/matchmaker_channel_test.exs | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | 4 | 2021-03-28T03:09:37.000Z | 2021-04-10T17:45:10.000Z | server/test/melody_match_web/channels/matchmaker_channel_test.exs | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | null | null | null | defmodule MelodyMatchWeb.MatchmakerChannelTest do
use MelodyMatchWeb.ChannelCase
import Mox
alias MelodyMatch.Accounts
alias MelodyMatch.Matchmaker
alias MelodyMatch.Matchmaker.MatcherMock
alias MelodyMatchWeb.MatchmakerChannel
setup :set_mox_from_context
setup :verify_on_exit!
setup do
start_... | 34.4 | 100 | 0.690803 |
382ec2c5fdbeade968bff8b6f179bb9c9f1096c2 | 9,388 | ex | Elixir | lib/oban/query.ex | myskoach/oban | a91d53bad86c215d83f5d46e41573b9794259383 | [
"Apache-2.0"
] | null | null | null | lib/oban/query.ex | myskoach/oban | a91d53bad86c215d83f5d46e41573b9794259383 | [
"Apache-2.0"
] | null | null | null | lib/oban/query.ex | myskoach/oban | a91d53bad86c215d83f5d46e41573b9794259383 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Query do
@moduledoc false
import Ecto.Query
import DateTime, only: [utc_now: 0]
alias Ecto.{Changeset, Multi}
alias Oban.{Config, Job}
@spec fetch_available_jobs(Config.t(), binary(), binary(), pos_integer()) :: {:ok, [Job.t()]}
def fetch_available_jobs(%Config{} = conf, queue, nonce, de... | 30.283871 | 98 | 0.609075 |
382eccaced1c41ad1e61f28fecffb33e8b0ccef0 | 1,371 | ex | Elixir | lib/jarvis_web/controllers/isle_api_controller.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | lib/jarvis_web/controllers/isle_api_controller.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | 7 | 2019-05-25T06:39:46.000Z | 2021-02-13T11:24:50.000Z | lib/jarvis_web/controllers/isle_api_controller.ex | corka149/jarvis | 66ddb3d919323aaf39be15e937c28cc8cc805e40 | [
"MIT"
] | null | null | null | defmodule JarvisWeb.IsleApiController do
use JarvisWeb, :controller
alias Jarvis.AnimalXing
alias Jarvis.AnimalXing.Isle
action_fallback JarvisWeb.FallbackController
plug JarvisWeb.Plugs.RequireAuthentication
def index_html(conn, _params) do
render(conn, "index.html")
end
def index(conn, _param... | 26.365385 | 84 | 0.660102 |
382ed970bc043257c80c27d6080c9807fff408f5 | 7,737 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/device.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/device.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/device.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 53.729167 | 174 | 0.697686 |
382edf0d586b17a10c752847d6f5902ee0883952 | 269 | ex | Elixir | backend/web/channels/map_channel.ex | ospaarmann/ex-emoji-map | 7a5c2a1b4c2c684ddee33ac2b284c65d150965d4 | [
"MIT"
] | 14 | 2018-01-12T08:47:00.000Z | 2020-06-18T04:59:27.000Z | backend/web/channels/map_channel.ex | ospaarmann/ex-emoji-map | 7a5c2a1b4c2c684ddee33ac2b284c65d150965d4 | [
"MIT"
] | 1 | 2017-03-17T13:15:47.000Z | 2017-03-17T13:15:47.000Z | backend/web/channels/map_channel.ex | ospaarmann/ex-emoji-map | 7a5c2a1b4c2c684ddee33ac2b284c65d150965d4 | [
"MIT"
] | 4 | 2018-07-31T12:29:15.000Z | 2021-01-05T19:22:49.000Z | defmodule EmojiMap.MapChannel do
@moduledoc """
"""
use Phoenix.Channel
def join("map:updates", _message, socket) do
{:ok, socket}
end
def handle_out("new_msg", payload, socket) do
push socket, "new_msg", payload
{:noreply, socket}
end
end
| 16.8125 | 47 | 0.657993 |
382ee1f8269fc73e64900463c80b47982f446afc | 2,758 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/attachment_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/attachment_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/attachment_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 51.074074 | 737 | 0.756708 |
382ee910d4657c9da196b20a653aee998d866a95 | 874 | ex | Elixir | clients/file/lib/google_api/file/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/file/lib/google_api/file/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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.37037 | 74 | 0.756293 |
382efa5cd402885979d93e80868e8299e0ab4df0 | 47,169 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/networks.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/api/networks.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/networks.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... | 55.362676 | 1,174 | 0.6397 |
382f5646cf8857868772da4535457dbaa93faaad | 2,699 | exs | Elixir | test/preview/queue_test.exs | hexpm/preview | 5ce0f85633cf1570433b0b5530af8ac508a9c78a | [
"Apache-2.0"
] | 26 | 2021-01-25T20:30:46.000Z | 2021-12-16T08:42:35.000Z | test/preview/queue_test.exs | hexpm/preview | 5ce0f85633cf1570433b0b5530af8ac508a9c78a | [
"Apache-2.0"
] | 17 | 2021-01-25T18:45:43.000Z | 2021-07-23T15:15:41.000Z | test/preview/queue_test.exs | hexpm/preview | 5ce0f85633cf1570433b0b5530af8ac508a9c78a | [
"Apache-2.0"
] | 4 | 2021-01-25T21:32:28.000Z | 2021-07-07T12:36:19.000Z | defmodule Preview.QueueTest do
use ExUnit.Case
alias Preview.{Bucket, Fake, Storage}
@repo_bucket Application.get_env(:preview, :repo_bucket)
@preview_bucket Application.get_env(:preview, :preview_bucket)
test "put object" do
package = Fake.random(:package)
Mox.set_mox_global()
Mox.expect(Prev... | 26.722772 | 94 | 0.587625 |
382f58e266b9b037366d6df7015a6a23d1617b9e | 1,861 | exs | Elixir | clients/access_approval/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/access_approval/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"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... | 27.776119 | 106 | 0.659323 |
382f7933361707b280c5a5afdce5679fd90d48d0 | 1,448 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/empty.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/empty.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... | 34.47619 | 282 | 0.756215 |
382f845cd0b528da8803b985e5ba373549ce8e35 | 340 | ex | Elixir | lib/mix/tasks/docker.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | lib/mix/tasks/docker.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | lib/mix/tasks/docker.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule Mix.Tasks.Docker.Build do
use Mix.Task
@shortdoc "Builds the image to run commands in. Only needs to be done once."
def run(_) do
Docker.build_devel_image()
end
end
defmodule Mix.Tasks.Docker.Mix do
use Mix.Task
@shortdoc "Runs a mix command in Docker context"
def run(args) do
Docker.... | 18.888889 | 78 | 0.714706 |
382fa3793c5d50d3da003307aa5f25d2215c5568 | 26,931 | ex | Elixir | lib/elixir/lib/uri.ex | piacsek/elixir | 8c11ba5cd7cd120f13b7da6e723577cb0c5c439d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/uri.ex | piacsek/elixir | 8c11ba5cd7cd120f13b7da6e723577cb0c5c439d | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/uri.ex | piacsek/elixir | 8c11ba5cd7cd120f13b7da6e723577cb0c5c439d | [
"Apache-2.0"
] | 1 | 2021-11-08T10:21:27.000Z | 2021-11-08T10:21:27.000Z | defmodule URI do
@moduledoc """
Utilities for working with URIs.
This module provides functions for working with URIs (for example, parsing
URIs or encoding query strings). The functions in this module are implemented
according to [RFC 3986](https://tools.ietf.org/html/rfc3986).
URIs are structs behind th... | 29.56202 | 105 | 0.612343 |
383008304e2be06f89ba5786f615bc1c96918d24 | 850 | ex | Elixir | services/fc_identity/lib/fc_identity/events/user_registered.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | services/fc_identity/lib/fc_identity/events/user_registered.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | services/fc_identity/lib/fc_identity/events/user_registered.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule FCIdentity.UserRegistered do
use TypedStruct
@derive Jason.Encoder
@version 1
typedstruct do
field :__version__, integer(), default: @version
field :request_id, String.t()
field :requester_id, String.t()
field :requester_type, String.t()
field :requester_role, String.t()
fie... | 23.611111 | 52 | 0.668235 |
38302df0474468ae862a5f1e7f1199cfc16ea035 | 9,499 | ex | Elixir | lib/surface/type_handler.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | 1 | 2021-04-30T14:28:08.000Z | 2021-04-30T14:28:08.000Z | lib/surface/type_handler.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | lib/surface/type_handler.ex | EddyLane/surface | 1f13259cbdf81b5a4740ee13349a48f8b6c54bb5 | [
"MIT"
] | null | null | null | defmodule Surface.TypeHandler do
@moduledoc false
alias Surface.IOHelper
@type clauses :: list(Macro.t())
@type opts :: keyword(Macro.t())
@callback literal_to_ast_node(
type :: atom(),
name :: atom(),
value :: any(),
meta :: Surface.AST.Meta.t()
... | 28.960366 | 93 | 0.611328 |
3830c03a8740f104f5c571dcf745f9cd4a36cdc9 | 1,369 | exs | Elixir | .credo.exs | HGInsights/snowpack | adf1cd8521056896b2e76ad071f761c5f21fc6d5 | [
"Apache-2.0"
] | 2 | 2021-11-19T22:08:39.000Z | 2021-11-19T23:23:05.000Z | .credo.exs | HGInsights/snowpack | adf1cd8521056896b2e76ad071f761c5f21fc6d5 | [
"Apache-2.0"
] | 13 | 2021-03-25T19:50:58.000Z | 2022-01-26T23:26:28.000Z | .credo.exs | HGInsights/opentelemetry_snowpack | b305f3baa976471eb466991e78bd98a202855c11 | [
"Apache-2.0"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: [
"lib/",
"src/",
"test/",
"web/",
"apps/*/lib/",
"apps/*/src/",
"apps/*/test/",
"apps/*/web/"
],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_... | 21.390625 | 64 | 0.452885 |
383102797f75e9d5bd9827f4ac909e130f597e23 | 3,184 | ex | Elixir | lib/server/default/play_stream.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | 1 | 2021-12-21T14:22:12.000Z | 2021-12-21T14:22:12.000Z | lib/server/default/play_stream.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | lib/server/default/play_stream.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | defmodule PlayfabEx.Server.Default.PlayStream do
@doc """
Adds a given tag to a player profile. The tag's namespace is automatically generated based on the source of the tag.
@link https://api.playfab.com/documentation/server/method/AddPlayerTag
"""
@spec add_player_tag(map()) :: {:ok, map} | {:error, Strin... | 38.361446 | 443 | 0.716394 |
383120de5c965ee26cb650099c5f5ebf6732a3d5 | 1,860 | exs | Elixir | test/pipelines/duplicates_filter_test.exs | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | test/pipelines/duplicates_filter_test.exs | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | test/pipelines/duplicates_filter_test.exs | harlantwood/crawly | d57a1b97e4a909d20f03f063a27157c8209367c4 | [
"Apache-2.0"
] | null | null | null | defmodule Pipelines.DuplicatesFilterTest do
use ExUnit.Case, async: false
@valid %{data: [%{some: "nested_data"}], id: "my_id"}
setup do
on_exit(fn ->
Application.put_env(:crawly, :item_id, :title)
end)
end
test "Drops duplicate items with the same item_id value through global config" do
A... | 30 | 83 | 0.674731 |
38315cd9265b2160e4626a1de706f1e72982627c | 1,986 | exs | Elixir | test/mipha_web/controllers/admin/node_controller_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 156 | 2018-06-01T19:52:32.000Z | 2022-02-03T10:58:10.000Z | test/mipha_web/controllers/admin/node_controller_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 139 | 2018-07-10T01:57:23.000Z | 2021-08-02T21:29:24.000Z | test/mipha_web/controllers/admin/node_controller_test.exs | ZPVIP/mipha | a7df054f72eec7de88b60d94c501488375bdff6a | [
"MIT"
] | 29 | 2018-07-17T08:43:45.000Z | 2021-12-14T13:45:30.000Z | defmodule MiphaWeb.Admin.NodeControllerTest do
use MiphaWeb.ConnCase
alias Mipha.Topics.Node
@valid_attrs %{name: "some node"}
@invalid_attrs %{name: nil}
@tag :as_admin
test "lists all nodes on index", %{conn: conn} do
# n1 = insert(:node)
# n2 = insert(:node)
conn = get(conn, admin_node_pat... | 29.641791 | 78 | 0.654079 |
38317cd9deb21a96aa9a98c46c249b4f4b6dd237 | 1,236 | exs | Elixir | apps/services/test/services/search_test.exs | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 4 | 2018-11-19T06:10:52.000Z | 2022-02-03T01:50:23.000Z | apps/services/test/services/search_test.exs | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 254 | 2018-11-19T06:08:51.000Z | 2021-07-22T13:47:26.000Z | apps/services/test/services/search_test.exs | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | null | null | null | defmodule Services.SearchTest do
use ExUnit.Case, async: true
doctest Services.Search
use Services.Fake.Spotify
use Services.Fake.Wikipedia
use Services.Fake.Youtube
alias Services.Search
setup_all do
setup_spotify()
setup_wikipedia()
setup_youtube()
:ok
end
setup do
_ = start_... | 25.75 | 93 | 0.705502 |
3831855e3d409e672f9741fbd1a1c017f3d0be95 | 145 | ex | Elixir | apps/api/web/controllers/catch_all_controller.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | 39 | 2016-11-01T07:21:51.000Z | 2021-02-05T20:19:02.000Z | apps/api/web/controllers/catch_all_controller.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | apps/api/web/controllers/catch_all_controller.ex | elicopter/core | 7731dc7558dea39bd1c473ab9e512c9db9e1b2c9 | [
"MIT"
] | null | null | null | defmodule Api.CatchAllController do
use Api.Web, :controller
def index(conn, _params) do
conn |> put_status(404) |> json(nil)
end
end
| 18.125 | 40 | 0.703448 |
38318c10e64950bbd6500f07e4a5b1e013331d55 | 158 | exs | Elixir | day01/tests.exs | CoderDennis/AdventOfCode2017 | fcb5989b106b5476e909e7b8d79c2816771517f8 | [
"MIT"
] | null | null | null | day01/tests.exs | CoderDennis/AdventOfCode2017 | fcb5989b106b5476e909e7b8d79c2816771517f8 | [
"MIT"
] | null | null | null | day01/tests.exs | CoderDennis/AdventOfCode2017 | fcb5989b106b5476e909e7b8d79c2816771517f8 | [
"MIT"
] | null | null | null | ExUnit.start
defmodule Tests do
use ExUnit.Case, async: true
doctest Day01
doctest Day01_2
end
# run via:
#> elixirc .\day01.ex
#> elixir .\tests.exs
| 13.166667 | 30 | 0.708861 |
38318dc93bef774856e73403ea6c911754ddc980 | 10,488 | ex | Elixir | lib/wallaby/selenium.ex | lessthanseventy/wallaby | 30068098a3ee7bb1188840fc7f18ea262e64b845 | [
"MIT"
] | 1 | 2021-11-03T14:48:04.000Z | 2021-11-03T14:48:04.000Z | lib/wallaby/selenium.ex | marcandre/wallaby | d351c46f1a272bbcf8333c8327d154be3bd12c5c | [
"MIT"
] | null | null | null | lib/wallaby/selenium.ex | marcandre/wallaby | d351c46f1a272bbcf8333c8327d154be3bd12c5c | [
"MIT"
] | 1 | 2021-11-30T00:02:15.000Z | 2021-11-30T00:02:15.000Z | defmodule Wallaby.Selenium do
@moduledoc """
The Selenium driver uses [Selenium Server](https://github.com/SeleniumHQ/selenium) to power many types of browsers (Chrome, Firefox, Edge, etc).
## Usage
Start a Wallaby Session using this driver with the following command:
```
{:ok, session} = Wallaby.start_s... | 25.456311 | 189 | 0.681255 |
3831d7a8b0edbc722ed0654ecd93fc1eabe3347a | 1,195 | exs | Elixir | clients/cloud_kms/mix.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/mix.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/mix.exs | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | defmodule GoogleApi.CloudKMS.V1.Mixfile do
use Mix.Project
@version "0.1.0"
def project() do
[
app: :google_api_cloud_kms,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: ... | 23.9 | 109 | 0.59749 |
3831f2dce25eb7ad4783575e31a81ccba6e65e7a | 1,004 | ex | Elixir | lib/bsdc/application.ex | MontanaProgrammers/bsdc | 777f053e61b985a01d72987f06f5c4f865aaa169 | [
"MIT"
] | null | null | null | lib/bsdc/application.ex | MontanaProgrammers/bsdc | 777f053e61b985a01d72987f06f5c4f865aaa169 | [
"MIT"
] | null | null | null | lib/bsdc/application.ex | MontanaProgrammers/bsdc | 777f053e61b985a01d72987f06f5c4f865aaa169 | [
"MIT"
] | null | null | null | defmodule Bsdc.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
#... | 31.375 | 82 | 0.706175 |
3832291915925c13fb5892bc9c0b19fc6a0e688f | 4,191 | exs | Elixir | apps/omg_api/test/integration/happy_path_test.exs | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/test/integration/happy_path_test.exs | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/test/integration/happy_path_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... | 41.91 | 112 | 0.706753 |
38322ab1157eeb171caa8952ebd192f8198458b1 | 1,028 | ex | Elixir | lib/chewiepay/application.ex | jennifertakagi/chewiepay | 15b5eca89f56e2933610f3edda7412889dc08137 | [
"MIT"
] | 4 | 2021-02-22T18:27:51.000Z | 2021-02-28T21:54:12.000Z | lib/chewiepay/application.ex | jennifertakagi/chewiepay | 15b5eca89f56e2933610f3edda7412889dc08137 | [
"MIT"
] | null | null | null | lib/chewiepay/application.ex | jennifertakagi/chewiepay | 15b5eca89f56e2933610f3edda7412889dc08137 | [
"MIT"
] | null | null | null | defmodule Chewiepay.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Chewiepay.Repo,
# Start the Telemetry supervisor
Che... | 29.371429 | 67 | 0.707198 |
383237155fa9201e4b1f5780766de72323131e4d | 4,863 | ex | Elixir | lib/brando/blueprint/listings.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/blueprint/listings.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/blueprint/listings.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Blueprint.Listings do
@moduledoc """
# Listings
### Field types
- `:image` - Display an image in the listing
For example, to display the entry's `cover` image over 2 columns, with a `padded`
class and using the image's `small` size key:
```
field :cover, :image, columns: 2, ... | 24.938462 | 85 | 0.618343 |
38323ee9cbe24a4ad4527a6819fe26bb712d0b18 | 634 | ex | Elixir | lib/cadet_web/views/sourcecast_view.ex | chrisgzf/cadet | 101dfe43ca7d6626ee86bb1f2ba20f054602a563 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/views/sourcecast_view.ex | chrisgzf/cadet | 101dfe43ca7d6626ee86bb1f2ba20f054602a563 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/views/sourcecast_view.ex | chrisgzf/cadet | 101dfe43ca7d6626ee86bb1f2ba20f054602a563 | [
"Apache-2.0"
] | null | null | null | defmodule CadetWeb.SourcecastView do
use CadetWeb, :view
def render("index.json", %{sourcecasts: sourcecasts}) do
render_many(sourcecasts, CadetWeb.SourcecastView, "show.json", as: :sourcecast)
end
def render("show.json", %{sourcecast: sourcecast}) do
transform_map_for_view(sourcecast, %{
id: :i... | 28.818182 | 83 | 0.664038 |
38326a4f24adfe2956df7ed70aec92a661cf6a3b | 1,759 | ex | Elixir | lib/freshbooks_api_client/caller/http_xml.ex | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | 2 | 2018-09-18T21:26:55.000Z | 2020-04-24T15:29:05.000Z | lib/freshbooks_api_client/caller/http_xml.ex | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | 1 | 2018-03-02T14:33:21.000Z | 2018-03-02T14:33:21.000Z | lib/freshbooks_api_client/caller/http_xml.ex | annkissam/freshbooks_api_client | 016edcf9e126d711048c6321ffd7f45b4727fd3d | [
"MIT"
] | null | null | null | defmodule FreshbooksApiClient.Caller.HttpXml do
@moduledoc """
This module makes a request using HTTP and XML.
It uses FreshbooksApiClient.Caller
"""
@base_url "https://:subdomain.freshbooks.com/api/2.1/xml-in"
use FreshbooksApiClient.Caller
import SweetXml
alias FreshbooksApiClient.Xml
def run(... | 25.492754 | 66 | 0.653781 |
38327551cf65479bbd161535c055fa2400cb557e | 3,126 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/pubprofiles.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/pubprofiles.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/pubprofiles.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... | 43.416667 | 217 | 0.721049 |
38328373526cf0e3daf15c2bfee1943593f698e4 | 1,884 | exs | Elixir | priv/repo/migrations/20200904153435_create_oauth_tables.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 328 | 2020-07-23T22:13:49.000Z | 2022-03-31T21:22:28.000Z | priv/repo/migrations/20200904153435_create_oauth_tables.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 362 | 2020-07-23T22:38:38.000Z | 2022-03-24T02:11:16.000Z | priv/repo/migrations/20200904153435_create_oauth_tables.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | 72 | 2020-07-23T22:50:46.000Z | 2022-02-02T11:59:32.000Z | defmodule Glimesh.Repo.Migrations.CreateOauthTables do
use Ecto.Migration
def change do
create table(:oauth_applications) do
add :name, :string, null: false
add :uid, :string, null: false
add :secret, :string, null: false, default: ""
add :redirect_uri, :string, null: false
add :s... | 30.885246 | 85 | 0.673567 |
3832b5e71bf7e879bbf051b16762d0142995b5fb | 3,316 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/vulnerability.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/vulnerability.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/vulnerability.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... | 52.634921 | 387 | 0.738239 |
3832d30cd10a2b8cdf3b0493ab50976ed19b4218 | 1,844 | exs | Elixir | clients/content/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/mix.exs | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/mix.exs | 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... | 27.522388 | 106 | 0.656182 |
3832d950ce576c28d089656b773a697b90cd2dd4 | 1,964 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/event_notification_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/event_notification_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/event_notification_config.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 ... | 36.37037 | 140 | 0.736762 |
3832f8c846d6d08a42e116b21ecfbfe760442c82 | 300 | ex | Elixir | lib/zero_phoenix_web/graphql/schemas/mutations/person.ex | conradwt/zero-to-graphql-using-elixir | 1014681c5708e2ee02db6fb9b6f64cee0f533150 | [
"MIT"
] | 6 | 2021-12-15T13:29:04.000Z | 2022-01-23T14:13:03.000Z | lib/zero_phoenix_web/graphql/schemas/mutations/person.ex | conradwt/zero-to-graphql-using-elixir | 1014681c5708e2ee02db6fb9b6f64cee0f533150 | [
"MIT"
] | null | null | null | lib/zero_phoenix_web/graphql/schemas/mutations/person.ex | conradwt/zero-to-graphql-using-elixir | 1014681c5708e2ee02db6fb9b6f64cee0f533150 | [
"MIT"
] | null | null | null | defmodule ZeroPhoenixWeb.GraphQL.Schemas.Mutations.Person do
use Absinthe.Schema.Notation
object :person_mutations do
field :create_person, type: :person do
arg :input, non_null(:person_input)
resolve(&ZeroPhoenixWeb.GraphQL.Resolvers.PersonResolver.create/3)
end
end
end
| 25 | 72 | 0.76 |
3832fa67e05ef6414c6de4d7a748e979a28ee2fd | 1,056 | exs | Elixir | config/config.exs | GalPin-Ark/chit_chat | 8cb492b7c6daca82fdbd536f6dbc185c02991730 | [
"MIT"
] | null | null | null | config/config.exs | GalPin-Ark/chit_chat | 8cb492b7c6daca82fdbd536f6dbc185c02991730 | [
"MIT"
] | 2 | 2021-03-10T11:14:42.000Z | 2021-05-11T06:51:36.000Z | config/config.exs | GalPin-Ark/chit_chat | 8cb492b7c6daca82fdbd536f6dbc185c02991730 | [
"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 :chit_chat,
ecto_repos: [ChitChat.Repo]... | 33 | 86 | 0.768939 |
383311930581d3a117b0884744f580a72fbc103c | 1,302 | ex | Elixir | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__stop_trial_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__stop_trial_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__stop_trial_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31 | 99 | 0.77573 |
38331205a13009fd9c0bae05d463865bfa7aafc9 | 3,731 | ex | Elixir | lib/surface/catalogue/components/component_tree.ex | treebee/surface_catalogue | fc938a81deef099e88a977d5de62c3f0e86197b8 | [
"MIT"
] | null | null | null | lib/surface/catalogue/components/component_tree.ex | treebee/surface_catalogue | fc938a81deef099e88a977d5de62c3f0e86197b8 | [
"MIT"
] | null | null | null | lib/surface/catalogue/components/component_tree.ex | treebee/surface_catalogue | fc938a81deef099e88a977d5de62c3f0e86197b8 | [
"MIT"
] | null | null | null | defmodule Surface.Catalogue.Components.ComponentTree do
@moduledoc false
use Surface.LiveComponent
alias Surface.Components.LivePatch
prop selected_component, :string
prop single_catalogue?, :boolean
prop components, :map
def render(assigns) do
~H"""
<aside
class="section column is-narrow... | 32.72807 | 113 | 0.59019 |
38337c0446d63211ed3aca228b48eb6994d7f95a | 76 | exs | Elixir | .formatter.exs | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 12 | 2018-09-10T09:59:22.000Z | 2021-08-29T00:37:02.000Z | .formatter.exs | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 8 | 2018-09-03T08:29:47.000Z | 2022-03-27T16:28:08.000Z | .formatter.exs | geometerio/bunch | 2b8fe7f44881ef5e4a035080cd7dd3a59e86dbb9 | [
"Apache-2.0"
] | 2 | 2019-07-23T04:21:26.000Z | 2021-10-15T23:45:57.000Z | [
inputs: [
"{lib,test,spec,config}/**/*.{ex,exs}",
"*.exs"
]
]
| 10.857143 | 43 | 0.407895 |
3833e4861d016882a628e9d80bbaf122f51bc06e | 18,189 | exs | Elixir | test/miles_to_go/accounts_test.exs | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | 6 | 2020-12-18T08:36:32.000Z | 2021-06-13T03:02:16.000Z | test/miles_to_go/accounts_test.exs | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | test/miles_to_go/accounts_test.exs | code-shoily/miles_to_go | cf5758d3113244326651320bd19c1887677bcf51 | [
"MIT"
] | null | null | null | defmodule MilesToGo.AccountsTest do
use MilesToGo.DataCase
alias MilesToGo.Accounts
import MilesToGo.AccountsFixtures
alias MilesToGo.Accounts.{User, UserToken}
describe "get_user_by_email/1" do
test "does not return the user if the email does not exist" do
refute Accounts.get_user_by_email("unkno... | 33.313187 | 97 | 0.649733 |
3833f1f87d0e3c93f3f82c03ba3649a35c5743fc | 886 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/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 |
3834132d1d5015ddcd30317b016180c7c016cf36 | 2,166 | exs | Elixir | kousa/test/broth/_casts/auth_test.exs | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/test/broth/_casts/auth_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/test/broth/_casts/auth_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule BrothTest.AuthTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias BrothTest.WsClient
alias KousaTest.Support.Factory
require WsClient
setup do
user = %{id: user_id} = Factory.create(User)
tokens = Kousa.Utils.TokenUtils.create_tokens(us... | 27.075 | 87 | 0.605725 |
38341576c8dbeedceee3df962bc9b8b8c5b3c7c4 | 1,574 | exs | Elixir | mix.exs | Inflexus/codepagex | 84d25de4be9d6946966796537c57415c61031586 | [
"Apache-2.0"
] | 99 | 2015-08-09T21:31:11.000Z | 2022-03-30T00:48:39.000Z | mix.exs | Inflexus/codepagex | 84d25de4be9d6946966796537c57415c61031586 | [
"Apache-2.0"
] | 24 | 2015-08-30T10:11:18.000Z | 2022-03-15T21:06:37.000Z | mix.exs | Inflexus/codepagex | 84d25de4be9d6946966796537c57415c61031586 | [
"Apache-2.0"
] | 23 | 2015-08-10T05:04:18.000Z | 2021-12-14T00:28:51.000Z | defmodule Codepagex.Mixfile do
use Mix.Project
def project do
[
app: :codepagex,
version: "0.1.6",
elixir: "~> 1.5",
name: "Codepagex",
description: description(),
package: package(),
source_url: "https://github.com/tallakt/codepagex",
build_embedded: Mix.env() =... | 23.848485 | 78 | 0.557179 |
3834465db39f412a51ad34cef9436982ec79ec83 | 758 | ex | Elixir | apps/artemis/lib/artemis/contexts/job/get_job.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/job/get_job.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/contexts/job/get_job.ex | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.GetJob do
use Artemis.Context
alias Artemis.Drivers.IBMCloudant
alias Artemis.Job
def call!(id, user, options \\ []) do
case call(id, user, options) do
nil -> raise(Artemis.Context.Error, "Error getting job")
response -> response
end
end
def call(id, user, options \\... | 22.294118 | 62 | 0.650396 |
38344ac625d682c7bd18aa96012eb684f78dd92e | 19,216 | ex | Elixir | lib/ecto/repo/preloader.ex | iautom8things/ecto | 9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/preloader.ex | iautom8things/ecto | 9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo/preloader.ex | iautom8things/ecto | 9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo.Preloader do
# The module invoked by user defined repo_names
# for preload related functionality.
@moduledoc false
require Ecto.Query
require Logger
@doc """
Transforms a result set based on query preloads, loading
the associations onto their parent schema.
"""
@spec query([lis... | 35.001821 | 117 | 0.621461 |
383477235964fc4fdb32e72e1af7dd96b6c3a7cd | 11,545 | ex | Elixir | lib/elixir/lib/io/ansi/docs.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io/ansi/docs.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/io/ansi/docs.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | defmodule IO.ANSI.Docs do
@moduledoc false
@bullets [?*, ?-, ?+]
@default_colors [ enabled: true,
doc_code: "cyan,bright",
doc_inline_code: "cyan",
doc_headings: "yellow,bright",
doc_title: "reverse,yellow,bright",
... | 30.623342 | 114 | 0.625119 |
38347eb62cf4dc5568b6d167c05c443d2b4fd6d8 | 80 | exs | Elixir | test/test_helper.exs | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 344 | 2017-07-03T11:30:26.000Z | 2022-03-30T19:11:41.000Z | test/test_helper.exs | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 56 | 2017-06-29T01:55:35.000Z | 2022-03-15T22:09:47.000Z | test/test_helper.exs | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 45 | 2017-08-15T18:59:41.000Z | 2022-03-17T17:00:50.000Z | Triplex.MSTestRepo.start_link()
Triplex.PGTestRepo.start_link()
ExUnit.start()
| 16 | 31 | 0.8125 |
3834b2cc2f5a920600cb468c50e87fc384714aac | 949 | ex | Elixir | test/support/channel_case.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | drobertduke/ninescraft | 00a08e4f3433b1ffd8f0a8dc77927d043b4e3ce8 | [
"Apache-2.0"
] | null | null | null | defmodule NinescraftWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interacts... | 24.973684 | 72 | 0.719705 |
3834e1aa7615303999a240ea77de36768f77d11c | 1,477 | exs | Elixir | apps/core/test/services/docker/trivy_source_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/test/services/docker/trivy_source_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/test/services/docker/trivy_source_test.exs | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.Docker.TrivySourceTest do
use Core.SchemaCase, async: true
alias Core.Docker.TrivySource
@example Application.get_env(:core, :vulnerability) |> Jason.decode!()
describe "#to_vulnerability/1" do
test "It can convert a trivy json message to a vulnerability map" do
result = TrivySource.t... | 39.918919 | 155 | 0.69262 |
3834e261be1f78037407e3303ef05a6c44744c29 | 69,495 | ex | Elixir | lib/ecto/query/planner.ex | anthonator/ecto | 00df9cc724aedc753c8dd3206e9f6ff90f491a02 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/planner.ex | anthonator/ecto | 00df9cc724aedc753c8dd3206e9f6ff90f491a02 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/planner.ex | anthonator/ecto | 00df9cc724aedc753c8dd3206e9f6ff90f491a02 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Planner do
# Normalizes a query and its parameters.
@moduledoc false
alias Ecto.Query.{BooleanExpr, DynamicExpr, FromExpr, JoinExpr, QueryExpr, SelectExpr}
if map_size(%Ecto.Query{}) != 21 do
raise "Ecto.Query match out of date in builder"
end
@parent_as __MODULE__
@aggs ~w(cou... | 37.123397 | 147 | 0.630391 |
3834e4d72950e02232da03e1049f08e0aa3de3d7 | 401 | ex | Elixir | lib/models/entity.ex | accord-coop/ex_microsoftbot | 45f2d45f04e256435563a3ffc155651e8ec26fb6 | [
"MIT"
] | null | null | null | lib/models/entity.ex | accord-coop/ex_microsoftbot | 45f2d45f04e256435563a3ffc155651e8ec26fb6 | [
"MIT"
] | 1 | 2021-06-26T00:52:21.000Z | 2021-06-26T00:52:21.000Z | lib/models/entity.ex | accord-coop/ex_microsoftbot | 45f2d45f04e256435563a3ffc155651e8ec26fb6 | [
"MIT"
] | null | null | null | defmodule ExMicrosoftBot.Models.Entity do
@moduledoc """
Microsoft bot entity structure
"""
@derive [Poison.Encoder]
defstruct [:type, :name, :supportsDisplay]
@type t :: %ExMicrosoftBot.Models.Entity{
type: String.t(),
name: String.t(),
supportsDisplay: boolean
}
... | 20.05 | 44 | 0.638404 |
3835092eead14fdaab122c82e29858f28fda8d17 | 1,638 | exs | Elixir | test/erlef_web/controllers/page_controller_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | test/erlef_web/controllers/page_controller_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | test/erlef_web/controllers/page_controller_test.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | defmodule ErlefWeb.PageControllerTest do
use ErlefWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, Routes.page_path(conn, :index))
assert html_response(conn, 200) =~
"The Erlang Ecosystem Foundation is a 501(c)(3) not-for-profit organization"
end
test "GET /bylaws", %{conn: c... | 32.117647 | 89 | 0.663004 |
383532bb7e3ab8db413a65b73c276d4ccbbf6ef3 | 12,500 | exs | Elixir | test/supervisor_test.exs | F2011B/horde | ac7cbb321f79049c4d8695cffac1dc5dfa4a9033 | [
"MIT"
] | 3 | 2019-11-11T17:00:04.000Z | 2019-11-20T22:01:06.000Z | test/supervisor_test.exs | evadne/horde | 5778e243682850131ac6bec94e75a301d44a102b | [
"MIT"
] | null | null | null | test/supervisor_test.exs | evadne/horde | 5778e243682850131ac6bec94e75a301d44a102b | [
"MIT"
] | null | null | null | defmodule SupervisorTest do
require Logger
use ExUnit.Case
setup do
n1 = :"horde_#{:rand.uniform(100_000_000)}"
n2 = :"horde_#{:rand.uniform(100_000_000)}"
n3 = :"horde_#{:rand.uniform(100_000_000)}"
{:ok, horde_1_sup_pid} =
Horde.Supervisor.start_link(
name: n1,
strategy: ... | 26.709402 | 95 | 0.6064 |
3835362b65f5c20ed50d4da0db2428de12618dc9 | 403 | exs | Elixir | priv/repo/migrations/20171201052230_create_users.exs | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20171201052230_create_users.exs | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | priv/repo/migrations/20171201052230_create_users.exs | fletchermoore/cip | 5dd1c6f105d6a4c8c34a9e824cbad2fcf78a0655 | [
"Unlicense"
] | null | null | null | defmodule Cip.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string
add :password_hash, :string
add :is_admin, :boolean, default: false, null: false
add :is_control, :boolean, default: false, null: false
add :identifier, :strin... | 22.388889 | 60 | 0.66005 |
383550cc41541239d2f09e1559a6e4789033b8d2 | 13,531 | ex | Elixir | lib/mix/lib/mix/tasks/xref.ex | maartenvanvliet/elixir | 62d75fd7c657b2e08bfaff4002a851efaccf5a65 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/xref.ex | maartenvanvliet/elixir | 62d75fd7c657b2e08bfaff4002a851efaccf5a65 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/xref.ex | maartenvanvliet/elixir | 62d75fd7c657b2e08bfaff4002a851efaccf5a65 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Xref do
use Mix.Task
alias Mix.Tasks.Compile.Elixir, as: E
import Mix.Compilers.Elixir, only: [read_manifest: 2, source: 1, source: 2, module: 1]
@shortdoc "Performs cross reference checks"
@recursive true
@moduledoc """
Performs cross reference checks between modules.
## Xref mo... | 26.688363 | 100 | 0.626413 |
383557a66afbdbac49e9635d0834376dd5ead84a | 141 | exs | Elixir | test/aba_model_test.exs | jscheel42/aba_model | 5e005b9efe84d15b76cc9645701c662e855903ea | [
"MIT"
] | null | null | null | test/aba_model_test.exs | jscheel42/aba_model | 5e005b9efe84d15b76cc9645701c662e855903ea | [
"MIT"
] | null | null | null | test/aba_model_test.exs | jscheel42/aba_model | 5e005b9efe84d15b76cc9645701c662e855903ea | [
"MIT"
] | null | null | null | defmodule AbaModelTest do
use ExUnit.Case
doctest AbaModel
test "greets the world" do
assert AbaModel.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.