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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3869ae467daa93c7fa948a444eb35661293ef8f0 | 2,301 | ex | Elixir | lib/pigeon/fcm/result_parser.ex | mumughal/pigeon | 6cb698fa5668c3b981f97464a48a61dc3863b3a0 | [
"MIT"
] | 1 | 2021-09-05T13:34:21.000Z | 2021-09-05T13:34:21.000Z | lib/pigeon/fcm/result_parser.ex | mumughal/pigeon | 6cb698fa5668c3b981f97464a48a61dc3863b3a0 | [
"MIT"
] | null | null | null | lib/pigeon/fcm/result_parser.ex | mumughal/pigeon | 6cb698fa5668c3b981f97464a48a61dc3863b3a0 | [
"MIT"
] | null | null | null | defmodule Pigeon.FCM.ResultParser do
@moduledoc false
import Pigeon.Tasks, only: [process_on_response: 2]
def parse([], [], on_response, notif) do
process_on_response(on_response, notif)
end
def parse(regid, results, on_response, notif) when is_binary(regid) do
parse([regid], results, on_response, ... | 34.863636 | 81 | 0.690569 |
3869bbdb8fffb8302865a960f25995c98d70db28 | 5,897 | ex | Elixir | lib/ecto_adapters_dynamodb/cache.ex | noonie2k/ecto_adapters_dynamodb | 199c14348f5787b04b4eb997a1f00d13cc09948c | [
"Apache-2.0"
] | null | null | null | lib/ecto_adapters_dynamodb/cache.ex | noonie2k/ecto_adapters_dynamodb | 199c14348f5787b04b4eb997a1f00d13cc09948c | [
"Apache-2.0"
] | null | null | null | lib/ecto_adapters_dynamodb/cache.ex | noonie2k/ecto_adapters_dynamodb | 199c14348f5787b04b4eb997a1f00d13cc09948c | [
"Apache-2.0"
] | 1 | 2018-09-12T13:11:05.000Z | 2018-09-12T13:11:05.000Z | defmodule Ecto.Adapters.DynamoDB.Cache do
@moduledoc """
An Elixir agent to cache DynamoDB table schemas and the first page of results for selected tables
"""
@typep table_name_t :: String.t
@typep dynamo_response_t :: %{required(String.t) => term}
@spec start_link() :: Agent.on_start
def start_link do
... | 39.05298 | 207 | 0.65864 |
3869d07261350cda9b497bf2cac5e71f45811a6f | 1,736 | ex | Elixir | lib/open_pantry/web/controllers/user_order_controller.ex | openpantry/open_pantry | 27d898a65dd6f44b325f48d41bc448bb486d9c6f | [
"MIT"
] | 41 | 2017-10-04T00:33:46.000Z | 2021-04-09T01:33:34.000Z | lib/open_pantry/web/controllers/user_order_controller.ex | openpantry/open_pantry | 27d898a65dd6f44b325f48d41bc448bb486d9c6f | [
"MIT"
] | 74 | 2017-09-20T03:36:17.000Z | 2018-11-20T20:46:16.000Z | lib/open_pantry/web/controllers/user_order_controller.ex | openpantry/open_pantry | 27d898a65dd6f44b325f48d41bc448bb486d9c6f | [
"MIT"
] | 12 | 2017-10-04T10:02:49.000Z | 2021-12-28T22:57:20.000Z | defmodule OpenPantry.Web.UserOrderController do
use OpenPantry.Web, :controller
require Ecto.Query
alias Ecto.Query
alias OpenPantry.User
alias OpenPantry.UserOrder
def index(conn, params) do
orders =
UserOrder
|> Query.preload(:user)
|> filter_facility(conn)
|> orders_for_par... | 28.459016 | 114 | 0.658986 |
3869f236c4e45242efe6efc0d2107e640931f602 | 474 | ex | Elixir | apps/subs_web/lib/subs_web/guardian.ex | gitter-badger/opensubs.io | 76d5b4d355a530c8f496efe3ac2095d87f078997 | [
"MIT"
] | 36 | 2018-02-03T10:58:51.000Z | 2020-09-19T20:52:17.000Z | apps/subs_web/lib/subs_web/guardian.ex | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 8 | 2018-01-17T17:15:48.000Z | 2020-07-06T08:56:54.000Z | apps/subs_web/lib/subs_web/guardian.ex | joaquimadraz/subs | 9a26144ed660d5ece849ee447a9e5de53a311408 | [
"MIT"
] | 10 | 2018-05-21T18:20:32.000Z | 2022-01-29T14:25:48.000Z | defmodule SubsWeb.Guardian do
use Guardian, otp_app: :subs_web
alias Subs.UseCases.Users.FindUser
def subject_for_token(resource, _claims), do: {:ok, to_string(resource.id)}
def resource_from_claims(%{"sub" => sub}) do
with {user_id, _} <- Integer.parse(sub),
{:ok, %{user: user}} <- FindUser.per... | 24.947368 | 77 | 0.656118 |
386a14174a728d9018bbb053616d8abaeb030ff1 | 2,153 | ex | Elixir | lib/chat_api/emails/debounce.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api/emails/debounce.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api/emails/debounce.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApi.Emails.Debounce do
@moduledoc """
A module to handle email verifications with debounce.io
"""
require Logger
use Tesla
plug Tesla.Middleware.BaseUrl, "https://api.debounce.io/v1"
plug Tesla.Middleware.Headers, [
{"content-type", "application/json; charset=utf-8"}
]
plug Tesl... | 24.465909 | 90 | 0.614491 |
386a16397591d517afa7220672f97e65ece4221b | 1,335 | exs | Elixir | config/dev.exs | pbrudnick/pyconar-talks | f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e | [
"MIT"
] | null | null | null | config/dev.exs | pbrudnick/pyconar-talks | f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e | [
"MIT"
] | null | null | null | config/dev.exs | pbrudnick/pyconar-talks | f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :pyconar_talks, PyconarTalks.Endpoint,
http: [... | 30.340909 | 73 | 0.701873 |
386a1d6eeb6ef6ce78cfcb5ac19de3555574c68f | 909 | exs | Elixir | elixir/learning-files/part-1/lists-aka-arrays.exs | Cyan101/code-examples | 7f112c716a3deb3b4d21b27590939e9aa71b8448 | [
"MIT"
] | null | null | null | elixir/learning-files/part-1/lists-aka-arrays.exs | Cyan101/code-examples | 7f112c716a3deb3b4d21b27590939e9aa71b8448 | [
"MIT"
] | 1 | 2018-10-05T06:00:01.000Z | 2018-10-05T06:00:01.000Z | elixir/learning-files/part-1/lists-aka-arrays.exs | Cyan101/code-examples | 7f112c716a3deb3b4d21b27590939e9aa71b8448 | [
"MIT"
] | 1 | 2018-10-05T04:43:55.000Z | 2018-10-05T04:43:55.000Z | [1, 2, true, 3]
# Yeah.... pretty much the same as every language
length [1,2,3,4] # No idea why you can do this on arrays but not strings
[1, 2, 3] ++ [4, 5, 6]
#=> [1, 2, 3, 4, 5, 6]
[1, true, 2, false, 3, true] -- [true, false]
#=> [1, 2, 3, true]
# List operators never modify the existing list. Concatenating to... | 32.464286 | 118 | 0.685369 |
386a1f1005462214fae42f12ce83c21a5c64b48e | 1,185 | ex | Elixir | lib/console/labels/label.ex | Oliv4945/console | fd7b85c8ff3b0702c8a524eb888104612946934c | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | lib/console/labels/label.ex | Oliv4945/console | fd7b85c8ff3b0702c8a524eb888104612946934c | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | lib/console/labels/label.ex | Oliv4945/console | fd7b85c8ff3b0702c8a524eb888104612946934c | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.Labels.Label do
use Ecto.Schema
import Ecto.Changeset
alias Console.Organizations.Organization
alias Console.Devices.Device
alias Console.Labels.DevicesLabels
alias Console.MultiBuys.MultiBuy
alias Console.ConfigProfiles.ConfigProfile
alias Console.Helpers
@primary_key {:id, :binar... | 33.857143 | 144 | 0.748523 |
386a21ef05d1e0a3d6483eb94d3a9364ebdbfe26 | 9,780 | ex | Elixir | lib/hulaaki/message.ex | zoltanmaric/hulaaki | 95d0ad4256757b9e1008e9718b04601f611e871f | [
"MIT"
] | 131 | 2015-04-19T19:20:09.000Z | 2021-02-19T21:03:33.000Z | lib/hulaaki/message.ex | zoltanmaric/hulaaki | 95d0ad4256757b9e1008e9718b04601f611e871f | [
"MIT"
] | 33 | 2015-07-11T15:05:24.000Z | 2020-03-30T21:09:41.000Z | lib/hulaaki/message.ex | zoltanmaric/hulaaki | 95d0ad4256757b9e1008e9718b04601f611e871f | [
"MIT"
] | 36 | 2015-07-03T15:54:52.000Z | 2019-07-02T20:47:24.000Z | defmodule Hulaaki.Message do
@moduledoc """
Provides the structs and constructors for different kinds of message
packets in the MQTT protocol.
"""
defmodule Connect do
@moduledoc """
Struct for Hulaaki Connect
## Fields
* `client_id` : A string(binary) representing the client.
*... | 27.705382 | 102 | 0.63998 |
386a29f03cb383d16c4a225110ee513a6f6d33fc | 1,001 | ex | Elixir | lib/excommerce_web/controllers/admin/state_controller.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | lib/excommerce_web/controllers/admin/state_controller.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | lib/excommerce_web/controllers/admin/state_controller.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule ExcommerceWeb.Admin.StateController do
use ExcommerceWeb, :admin_controller
plug :scrub_params, "state" when action in [:create]
plug :load_country when action in [:create]
def create(conn, %{"state" => state_params}) do
country = conn.assigns[:country]
case Excommerce.Command.State.insert_f... | 27.054054 | 84 | 0.652348 |
386a31a01678358bd6b61c0f90b938b410230a76 | 1,267 | exs | Elixir | test/recurly/invoice_test.exs | calibr/recurly-client-elixir | a1160a10f90e0919adacf39bd95df3784e11fdcc | [
"MIT"
] | 8 | 2016-08-11T00:45:46.000Z | 2020-05-04T18:55:48.000Z | test/recurly/invoice_test.exs | calibr/recurly-client-elixir | a1160a10f90e0919adacf39bd95df3784e11fdcc | [
"MIT"
] | 10 | 2016-08-15T20:01:56.000Z | 2019-05-10T02:09:35.000Z | test/recurly/invoice_test.exs | calibr/recurly-client-elixir | a1160a10f90e0919adacf39bd95df3784e11fdcc | [
"MIT"
] | 4 | 2017-10-16T14:29:58.000Z | 2019-05-09T23:20:56.000Z | defmodule Recurly.InvoiceTest do
use ExUnit.Case, async: true
alias Recurly.Invoice
import Utils
@readable_fields ~w(
account
address
closed_at
collection_method
created_at
currency
customer_notes
invoice_number
invoice_number_prefix
line_items
net_terms
po_numbe... | 18.362319 | 64 | 0.708761 |
386a674202a90194ef525d5dae6783b27ad89cfa | 8,396 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/api/services.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... | 48.252874 | 196 | 0.640305 |
386a6e73a1b9579ca4c973a861d9558cac28e17b | 747 | ex | Elixir | lib/ecto_job/worker_supervisor.ex | thedelchop/ecto_job | 0157d857e4436a35ebcc0a9f5cd4b28b33292f62 | [
"MIT"
] | null | null | null | lib/ecto_job/worker_supervisor.ex | thedelchop/ecto_job | 0157d857e4436a35ebcc0a9f5cd4b28b33292f62 | [
"MIT"
] | null | null | null | lib/ecto_job/worker_supervisor.ex | thedelchop/ecto_job | 0157d857e4436a35ebcc0a9f5cd4b28b33292f62 | [
"MIT"
] | null | null | null | defmodule EctoJob.WorkerSupervisor do
@moduledoc """
GenStage ConsumerSupervisor that will spawn `EctoJob.Worker` tasks for jobs.
"""
import Supervisor.Spec
alias EctoJob.{Config, Worker}
@doc """
Starts the ConsumerSupervisor
- `config` : The JobQueue configuration, used for Repo, Logging options
... | 31.125 | 97 | 0.726908 |
386a806c07626a49ae56637fd353a2529913efb8 | 2,475 | ex | Elixir | lib/liberator/default/handlers.ex | Cantido/liberator | fa958699ffc699a350a06dbcac6402b81208f282 | [
"MIT"
] | 36 | 2020-10-03T16:58:57.000Z | 2021-11-27T09:33:51.000Z | lib/liberator/default/handlers.ex | Cantido/liberator | fa958699ffc699a350a06dbcac6402b81208f282 | [
"MIT"
] | 23 | 2020-10-13T00:23:03.000Z | 2022-03-10T11:05:22.000Z | lib/liberator/default/handlers.ex | Cantido/liberator | fa958699ffc699a350a06dbcac6402b81208f282 | [
"MIT"
] | 1 | 2020-10-12T20:33:30.000Z | 2020-10-12T20:33:30.000Z | # SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT
defmodule Liberator.Default.Handlers do
import Liberator.Gettext
@moduledoc false
def handle_ok(_onn) do
gettext("OK")
end
def handle_options(_conn) do
gettext("Options")
end
def handle_created(_conn) do
gettext(... | 18.75 | 52 | 0.722828 |
386a8d220c6e1280cbb95bedd543bf964ce5d5d7 | 1,951 | ex | Elixir | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/videologue/lib/videologue_web/channels/video_channel.ex | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/videologue/lib/videologue_web/channels/video_channel.ex | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/videologue/lib/videologue_web/channels/video_channel.ex | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | defmodule VideologueWeb.VideoChannel do
use VideologueWeb, :channel
alias Videologue.{Accounts,Multimedia}
alias VideologueWeb.AnnotationView
def join("videos:" <> video_id, params, socket) do
send(self(), :after_join)
# :timer.send_interval(5_000, :ping) # is just for simple use-case, can be cleaned ... | 34.839286 | 89 | 0.679651 |
386a98ef03c6ca88440bdbfaa64e9d32112059b6 | 5,742 | exs | Elixir | src/test/changelog_web/controllers/admin/news/news_item_controller_test.exs | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/test/changelog_web/controllers/admin/news/news_item_controller_test.exs | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/test/changelog_web/controllers/admin/news/news_item_controller_test.exs | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.Admin.NewsItemControllerTest do
use ChangelogWeb.ConnCase
import Mock
alias Changelog.{Buffer, NewsItem, NewsQueue}
@valid_attrs %{type: :project, headline: "Ruby on Rails", url: "https://rubyonrails.org", logger_id: 1}
@invalid_attrs %{type: :project, headline: "Ruby on Rails", url:... | 35.012195 | 164 | 0.689829 |
386a9ac7534f172788fbd4df0ae7b739d15fc3af | 1,442 | ex | Elixir | lib/abci/message_handler.ex | neocortexlab/abci-ex | 9d98c16538a6aeb617a2e112aab6121215958e50 | [
"MIT"
] | 5 | 2018-06-22T10:34:01.000Z | 2019-06-14T00:11:34.000Z | lib/abci/message_handler.ex | neocortexlab/abci-ex | 9d98c16538a6aeb617a2e112aab6121215958e50 | [
"MIT"
] | null | null | null | lib/abci/message_handler.ex | neocortexlab/abci-ex | 9d98c16538a6aeb617a2e112aab6121215958e50 | [
"MIT"
] | null | null | null | defmodule ABCI.MessageHandler do
@moduledoc """
Get a message from a socket, process it and send it back to the socket
"""
use GenServer
require Logger
alias ABCI.Codec
alias ABCI.Service
@eol <<4, 26, 0>>
def init(state), do: {:ok, state}
def start_link(state), do: GenServer.start_link(__MODU... | 24.033333 | 94 | 0.628988 |
386aad813377e36459f5078516e5963bb84f2a5d | 6,062 | ex | Elixir | lib/kazan/codegen/models.ex | dockup/kazan | eff5ced3615e12a8665790def094719c86a0dfad | [
"MIT"
] | null | null | null | lib/kazan/codegen/models.ex | dockup/kazan | eff5ced3615e12a8665790def094719c86a0dfad | [
"MIT"
] | null | null | null | lib/kazan/codegen/models.ex | dockup/kazan | eff5ced3615e12a8665790def094719c86a0dfad | [
"MIT"
] | null | null | null | defmodule Kazan.Codegen.Models do
@moduledoc false
# Macros for generating client code from OAI specs.
require EEx
require Kazan.Codegen.Models.ModelDesc
alias Kazan.Codegen.Models.{ModelDesc, PropertyDesc}
alias Kazan.Codegen.Naming
@doc """
Generates structs for all the data definitions in an OAPI ... | 27.306306 | 162 | 0.633454 |
386acdd30c171c2a57b5a01a5d8dd6585458a7d0 | 6,408 | exs | Elixir | test/bson_test.exs | hauleth/mongodb | d1be214cb38494bfd2cb861628526b853e7b776f | [
"Apache-2.0"
] | null | null | null | test/bson_test.exs | hauleth/mongodb | d1be214cb38494bfd2cb861628526b853e7b776f | [
"Apache-2.0"
] | null | null | null | test/bson_test.exs | hauleth/mongodb | d1be214cb38494bfd2cb861628526b853e7b776f | [
"Apache-2.0"
] | null | null | null | defmodule BSONTest do
use ExUnit.Case, async: true
import BSON, only: [decode: 1]
@map1 %{"hello" => "world"}
@bin1 <<22, 0, 0, 0, 2, 104, 101, 108, 108, 111, 0, 6, 0, 0, 0, 119, 111, 114, 108, 100, 0, 0>>
@map2 %{"BSON" => ["awesome", 5.05, 1986]}
@bin2 <<49, 0, 0, 0, 4, 66, 83, 79, 78, 0, 38, 0, 0, 0, ... | 33.030928 | 98 | 0.513733 |
386af1af38e67aa27c6ebe7f35d72a6293c7ebdb | 2,888 | exs | Elixir | test/liblink/cluster/protocol/router_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 3 | 2018-10-26T12:55:15.000Z | 2019-05-03T22:41:34.000Z | test/liblink/cluster/protocol/router_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 4 | 2018-08-26T14:43:57.000Z | 2020-09-23T21:14:56.000Z | test/liblink/cluster/protocol/router_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 (c) Xerpa
#
# 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, so... | 30.083333 | 93 | 0.643006 |
386b130a42b8a134070ae3a69dd164f35d2ad489 | 2,281 | ex | Elixir | clients/my_business_business_information/lib/google_api/my_business_business_information/v1/model/list_attribute_metadata_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/my_business_business_information/lib/google_api/my_business_business_information/v1/model/list_attribute_metadata_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/my_business_business_information/lib/google_api/my_business_business_information/v1/model/list_attribute_metadata_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.016667 | 327 | 0.755809 |
386b86528e44550b03434bc0bfe73abf7f1fa1e8 | 302 | ex | Elixir | Arrays/Arrays-DS/elixir/lib/array_ds.ex | abadongutierrez/hacker-rank | 4a3a9b38802fbbc77e4deaddd17edc97835daa61 | [
"MIT"
] | null | null | null | Arrays/Arrays-DS/elixir/lib/array_ds.ex | abadongutierrez/hacker-rank | 4a3a9b38802fbbc77e4deaddd17edc97835daa61 | [
"MIT"
] | null | null | null | Arrays/Arrays-DS/elixir/lib/array_ds.ex | abadongutierrez/hacker-rank | 4a3a9b38802fbbc77e4deaddd17edc97835daa61 | [
"MIT"
] | null | null | null | defmodule ArrayDS do
def run() do
n = IO.gets ""
array = IO.gets ""
solution(n |> String.strip |> String.to_integer, String.split(array, ~r/\s/))
end
def solution(n, array) do
IO.puts "#{array |> Enum.reverse |> Enum.take(n) |> Enum.join(" ")}"
end
end
| 25.166667 | 85 | 0.546358 |
386ba59e1637723f40df183b321dae4e8ec9e180 | 505 | ex | Elixir | lib/sparql/extension_function/registry.ex | marcelotto/sparql-ex | 7bf939a2b0eec7e1096f6fdb999b07757995c145 | [
"MIT"
] | 23 | 2018-09-25T21:09:35.000Z | 2020-05-14T16:28:22.000Z | lib/sparql/extension_function/registry.ex | rdf-elixir/sparql-ex | 138141797a1993ecfb50ddac6c1d2977601a11ff | [
"MIT"
] | 2 | 2018-06-01T20:47:48.000Z | 2019-03-05T23:20:34.000Z | lib/sparql/extension_function/registry.ex | marcelotto/sparql-ex | 7bf939a2b0eec7e1096f6fdb999b07757995c145 | [
"MIT"
] | 2 | 2019-12-13T19:20:54.000Z | 2019-12-20T08:23:21.000Z | defmodule SPARQL.ExtensionFunction.Registry do
@moduledoc """
A registry of all available `SPARQL.ExtensionFunction`s.
"""
alias SPARQL.ExtensionFunction.Registration
@doc """
Returns the extension for the given name.
If no function for the given name exists, `nil` is returned.
"""
def extension_fu... | 24.047619 | 83 | 0.742574 |
386bab640c4dd34916d34812c30ff149c4d4586e | 8,683 | ex | Elixir | lib/datex/time/time.ex | DanielePalombo/datex | 3e665dee3c719b7c3e95e218ff2e081ed2aeabdb | [
"MIT"
] | 7 | 2018-09-24T17:14:44.000Z | 2021-05-05T11:28:08.000Z | lib/datex/time/time.ex | DanielePalombo/datex | 3e665dee3c719b7c3e95e218ff2e081ed2aeabdb | [
"MIT"
] | 1 | 2020-06-26T03:17:39.000Z | 2020-06-30T16:23:03.000Z | lib/datex/time/time.ex | DanielePalombo/datex | 3e665dee3c719b7c3e95e218ff2e081ed2aeabdb | [
"MIT"
] | 3 | 2019-03-12T23:03:07.000Z | 2021-03-19T07:43:22.000Z | defmodule Datex.Time do
@moduledoc """
Simple Time which can be used in different formats including elixir format `~T[15:45:56]`.
It includes different functions to compare time and provide relative time in friendly formats and
functions which can format time in multiple ways user needs.
"""
@doc """
G... | 27.391167 | 132 | 0.559945 |
386bd5d9a5efc89f72616a89360f984074c1ef7b | 102 | ex | Elixir | bootstrap/lib/nerves_bootstrap.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | 1 | 2019-06-12T17:34:10.000Z | 2019-06-12T17:34:10.000Z | bootstrap/lib/nerves_bootstrap.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | bootstrap/lib/nerves_bootstrap.ex | opencollective/nerves | 81f5d30de283e77f3720a87fa1435619f0da12de | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Bootstrap do
@version Mix.Project.config[:version]
def version, do: @version
end
| 20.4 | 39 | 0.764706 |
386be0e80b842550aa2bb341ca697449a4f19cbc | 1,826 | exs | Elixir | clients/composer/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/composer/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"Apache-2.0"
] | null | null | null | clients/composer/mix.exs | richiboi1977/elixir-google-api | c495bb3548090eb7a63d12f6fb145ec48aecdc0b | [
"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.253731 | 100 | 0.654436 |
386c0c254271c264e872f5d850af057bd71fb81d | 8,893 | ex | Elixir | lib/game/command/quest.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/command/quest.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | lib/game/command/quest.ex | deep-spaced/ex_venture | 45848abe509620d6d2643b2a780dab01c1ac523b | [
"MIT"
] | null | null | null | defmodule Game.Command.Quest do
@moduledoc """
The "quest" command, reaches straight to the database for most actions
"""
use Game.Command
use Game.Currency
use Game.NPC
alias Game.Session.Character
alias Game.Quest
commands([{"quest", ["quests"]}], parse: false)
@impl Game.Command
def help(:t... | 30.043919 | 118 | 0.633532 |
386c4afd8c316ed23d525b80e1bc99f9cfcd0a6c | 277 | ex | Elixir | lib/local_hex_web/views/layout_view.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | 5 | 2021-11-13T13:58:06.000Z | 2022-03-26T03:47:57.000Z | lib/local_hex_web/views/layout_view.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | 3 | 2021-11-16T18:45:45.000Z | 2021-12-05T13:58:25.000Z | lib/local_hex_web/views/layout_view.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | null | null | null | defmodule LocalHexWeb.LayoutView do
use LocalHexWeb, :view
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
end
| 34.625 | 72 | 0.776173 |
386c4c6828f91759f2af1a9236dfcef92f7e8738 | 364 | exs | Elixir | priv/repo/migrations/20170901194546_user.exs | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | priv/repo/migrations/20170901194546_user.exs | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | priv/repo/migrations/20170901194546_user.exs | deadmp/wiki | 29d98ed0517e26d2e3f1c75f70852bc7512d87fc | [
"MIT"
] | null | null | null | defmodule Wiki.Repo.Migrations.User do
use Ecto.Migration
def change do
create table(:users) do
add :coreid, :binary_id
add :email, :string
add :nick, :string
add :token, :string
add :refresh_token, :string
add :expires, :naive_datetime
timestamps()
end
creat... | 19.157895 | 42 | 0.634615 |
386c4c8e0dff2188335e8432f50e52024d4f8bec | 1,365 | exs | Elixir | test/surgex/database_cleaner/database_cleaner_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | test/surgex/database_cleaner/database_cleaner_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | test/surgex/database_cleaner/database_cleaner_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.DatabaseCleanerTest do
use Surgex.DataCase
import Surgex.Factory
alias Surgex.DatabaseCleaner
alias Surgex.{
OtherUser,
User
}
setup do
insert(:user)
insert(:other_user)
:ok
end
@tag transaction: false
test "default" do
DatabaseCleaner.call(Repo)
asser... | 22.016129 | 54 | 0.654945 |
386c61a4e5e4bb113faf96458d88a3fdf4c39d56 | 2,611 | exs | Elixir | test/erflow_web/controllers/relationship_controller_test.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | test/erflow_web/controllers/relationship_controller_test.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | test/erflow_web/controllers/relationship_controller_test.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | defmodule ErflowWeb.RelationshipControllerTest do
use ErflowWeb.ConnCase
alias Erflow.Model
alias Erflow.Model.Relationship
@create_attrs %{
}
@update_attrs %{
}
@invalid_attrs %{}
def fixture(:relationship) do
{:ok, relationship} = Model.create_relationship(@create_attrs)
relationship
... | 30.011494 | 120 | 0.660666 |
386c8b29a8407c57ee2b0d28b1a18cd612357eee | 1,342 | exs | Elixir | apps/fz_http/test/fz_http_web/user_from_auth_test.exs | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | null | null | null | apps/fz_http/test/fz_http_web/user_from_auth_test.exs | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | 1 | 2020-04-24T01:53:41.000Z | 2020-04-24T01:53:41.000Z | apps/fz_http/test/fz_http_web/user_from_auth_test.exs | CloudFire-LLC/cloudfire-ce | 416ea0d9c9528790fdf70c432aa4eb507d7b2074 | [
"Apache-2.0"
] | null | null | null | defmodule FzHttpWeb.UserFromAuthTest do
use FzHttp.DataCase, async: true
alias FzHttp.Users
alias FzHttpWeb.UserFromAuth
alias Ueberauth.Auth
describe "find_or_create/1 via identity provider" do
setup :create_user
@password "password1234"
test "sign in via identity provider", %{user: user} do
... | 26.313725 | 87 | 0.623696 |
386cf1fa46c45261c962186bb04fab54742ee33c | 7,054 | ex | Elixir | apps/omg/test/support/test_helper.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg/test/support/test_helper.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | apps/omg/test/support/test_helper.ex | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.578431 | 119 | 0.632832 |
386d2dd4e243765bc31ca09c9676910c990e87cc | 11,348 | ex | Elixir | lib/aws/generated/grafana.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/grafana.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/grafana.ex | pecigonzalo/aws-elixir | b52181ebfb9e62349dc8e8067b7fbcd4f7a18c68 | [
"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.Grafana do
@moduledoc """
Amazon Managed Grafana is a fully managed and secure data visualization service
that you can use to instantly query, correlate, and visualize operational
metrics,... | 25.387025 | 208 | 0.64117 |
386d4b4fd3d8dc970a1b23406860c99a6b8066a1 | 1,101 | exs | Elixir | test/plug/session/ets_test.exs | falood/plug | 6022465ed2e44cf092d16ae3d564648615eab87b | [
"Apache-2.0"
] | null | null | null | test/plug/session/ets_test.exs | falood/plug | 6022465ed2e44cf092d16ae3d564648615eab87b | [
"Apache-2.0"
] | null | null | null | test/plug/session/ets_test.exs | falood/plug | 6022465ed2e44cf092d16ae3d564648615eab87b | [
"Apache-2.0"
] | 1 | 2020-12-07T08:04:20.000Z | 2020-12-07T08:04:20.000Z | defmodule Plug.Session.ETSTest do
use ExUnit.Case
alias Plug.Session.ETS
@ets_table :plug_session_test
setup do
:ets.new(@ets_table, [:named_table])
:ok
end
teardown do
:ets.delete(@ets_table)
:ok
end
test "put and get session" do
opts = ETS.init([table: @ets_table])
assert ... | 22.02 | 52 | 0.601272 |
386d7098cda3415a53e6691cc40fd615debcae50 | 811 | exs | Elixir | test/game/command/inventory_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 1 | 2019-02-10T10:22:39.000Z | 2019-02-10T10:22:39.000Z | test/game/command/inventory_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | test/game/command/inventory_test.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | null | null | null | defmodule Game.Command.InventoryTest do
use Data.ModelCase
doctest Game.Command.Inventory
@socket Test.Networking.Socket
setup do
start_and_clear_items()
insert_item(%{id: 1, name: "Sword"})
insert_item(%{id: 2, name: "Shield"})
insert_item(%{id: 3, name: "Leather Chest"})
@socket.clear_m... | 30.037037 | 154 | 0.658446 |
386d74208b9891757a9b9122c0fd0f72248101b1 | 2,007 | ex | Elixir | lib/freddy/notifications/broadcaster.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 10 | 2017-06-28T11:39:39.000Z | 2021-11-19T23:23:16.000Z | lib/freddy/notifications/broadcaster.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 16 | 2017-01-07T15:34:36.000Z | 2021-05-05T11:07:31.000Z | lib/freddy/notifications/broadcaster.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 4 | 2018-10-08T19:54:46.000Z | 2021-05-05T10:49:10.000Z | defmodule Freddy.Notifications.Broadcaster do
@moduledoc false
defmacro __using__(opts \\ []) do
warn? = Keyword.get(opts, :warn, true)
quote location: :keep do
if unquote(warn?) do
IO.warn(
"#{unquote(__MODULE__)} will be removed in Freddy 1.0, use Freddy.Publisher instead"
... | 31.857143 | 94 | 0.679123 |
386dbfe77ba6b9ef7cc99a7f7f4ca73da425273b | 3,010 | exs | Elixir | test/models/product_test.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | test/models/product_test.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | test/models/product_test.exs | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.ProductTest do
use Nectar.ModelCase
alias Nectar.Repo
alias Nectar.Product
import Nectar.DateTestHelpers, only: [get_past_date: 0, get_future_date: 1]
import Nectar.TestSetup.Product, only: [create_product: 0, valid_attrs_with_option_type: 0, invalid_attrs: 0]
describe "fields" do
fi... | 39.605263 | 157 | 0.701329 |
386dfef8f76f67dff1980023b7555746dbe13aef | 862 | exs | Elixir | mix.exs | operable/template_processors | b3a06bd95870ea8f9fcfb180929e2aed163f76dc | [
"Apache-2.0"
] | null | null | null | mix.exs | operable/template_processors | b3a06bd95870ea8f9fcfb180929e2aed163f76dc | [
"Apache-2.0"
] | null | null | null | mix.exs | operable/template_processors | b3a06bd95870ea8f9fcfb180929e2aed163f76dc | [
"Apache-2.0"
] | null | null | null | defmodule TemplateProcessors.Mixfile do
use Mix.Project
def project do
[app: :template_processors,
version: "0.1.0",
elixir: "~> 1.3",
elixirc_options: [warnings_as_errors: System.get_env("ALLOW_WARNINGS") == nil],
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod... | 23.944444 | 84 | 0.595128 |
386e13508b18116c667a742c42532fe0a730d00f | 835 | ex | Elixir | lib/hap/services/motion_sensor.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 40 | 2019-10-26T01:58:42.000Z | 2022-03-09T18:18:39.000Z | lib/hap/services/motion_sensor.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 11 | 2021-04-02T14:55:02.000Z | 2021-11-05T13:49:55.000Z | lib/hap/services/motion_sensor.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 6 | 2020-05-18T09:34:14.000Z | 2021-11-04T11:14:15.000Z | defmodule HAP.Services.MotionSensor do
@moduledoc """
Struct representing an instance of the `public.hap.service.sensor.motion` service
"""
defstruct motion: nil, name: nil, active: nil, fault: nil, tampered: nil, low_battery: nil
defimpl HAP.ServiceSource do
def compile(value) do
HAP.Service.ensu... | 32.115385 | 92 | 0.671856 |
386e14c3b0e44493498443d7b6dba04f7caf0b29 | 3,530 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/pgp_signed_attestation.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/v1alpha1/model/pgp_signed_attestation.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/v1alpha1/model/pgp_signed_attestation.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... | 66.603774 | 873 | 0.751841 |
386e19c6bd2cd25fe0c82b25da67675bcb05153e | 635 | ex | Elixir | core/version/version.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/version/version.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/version/version.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Version do
alias Antikythera.VersionStr
defun current_version(app_name :: v[atom]) :: nil | VersionStr.t do
case Application.started_applications() |> List.keyfind(app_name, 0) do
{_, _, v} -> List.to_str... | 30.238095 | 96 | 0.666142 |
386e364846115a5c8ad1ab3d04d5caa9a716840a | 849 | ex | Elixir | lib/ravix_ecto/storage.ex | YgorCastor/ravix-ecto | 63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371 | [
"Apache-2.0"
] | 1 | 2022-03-30T14:56:00.000Z | 2022-03-30T14:56:00.000Z | lib/ravix_ecto/storage.ex | YgorCastor/ravix-ecto | 63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371 | [
"Apache-2.0"
] | null | null | null | lib/ravix_ecto/storage.ex | YgorCastor/ravix-ecto | 63badc62e9ea2b38c7667d4ee1bfa8cb7c1cf371 | [
"Apache-2.0"
] | null | null | null | defmodule Ravix.Ecto.Storage do
@behaviour Ecto.Adapter.Storage
require Logger
alias Ravix.Operations.Database.Maintenance
alias Ravix.Connection
@impl true
def storage_up(_opts) do
Logger.debug("[RAVIX-ECTO] Storages are auto-created on RavenDB")
:ok
end
@impl true
def storage_down(opts) ... | 22.342105 | 69 | 0.672556 |
386e71c981ba56ffab7bcc670081173a58942c86 | 361 | ex | Elixir | lib/quiz_site_web/views/page_title.ex | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | 2 | 2017-10-30T00:42:01.000Z | 2017-10-30T21:29:15.000Z | lib/quiz_site_web/views/page_title.ex | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | null | null | null | lib/quiz_site_web/views/page_title.ex | rbgraham/quiz_site | 57ded7991e355e2cf9f5edecc823b67833ee0ceb | [
"MIT"
] | null | null | null | defmodule QuizSiteWeb.PageTitle do
alias QuizSiteWeb.{ PageView }
@suffix Application.get_env(:quiz_site, :page_title_suffix)
def page_title(assigns), do: assigns |> get |> put_suffix
defp put_suffix(nil), do: @suffix
defp put_suffix(title), do: title <> " - " <> @suffix
defp get(%{ view_module: PageVie... | 25.785714 | 61 | 0.695291 |
386e8e03c659404524e73116b0bceedd3d255865 | 705 | ex | Elixir | lib/day13/part1.ex | anamba/adventofcode2020 | 2a749140d5393f7c69c630102daae977be30afcc | [
"MIT"
] | null | null | null | lib/day13/part1.ex | anamba/adventofcode2020 | 2a749140d5393f7c69c630102daae977be30afcc | [
"MIT"
] | null | null | null | lib/day13/part1.ex | anamba/adventofcode2020 | 2a749140d5393f7c69c630102daae977be30afcc | [
"MIT"
] | null | null | null | defmodule Day13.Part1 do
@doc """
iex> Day13.Part1.part1(939, "7,13,x,x,59,x,31,19")
295
iex> Day13.Part1.part1(1000067, "17,x,x,x,x,x,x,x,x,x,x,37,x,x,x,x,x,439,x,29,x,x,x,x,x,x,x,x,x,x,13,x,x,x,x,x,x,x,x,x,23,x,x,x,x,x,x,x,787,x,x,x,x,x,x,x,x,x,41,x,x,x,x,x,x,x,x,19")
205
"""
def part1(t... | 28.2 | 187 | 0.556028 |
386e9254f6ce3932aab2c3f7476d7431c65d19db | 2,297 | exs | Elixir | config/runtime.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | 2 | 2021-12-21T16:32:56.000Z | 2022-02-22T17:06:39.000Z | config/runtime.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | config/runtime.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | import Config
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
# and secrets from environment variables or elsewhere. Do not define
# any compile-time configurati... | 39.603448 | 90 | 0.715281 |
386ebfe8b0798dc0118955f91040dd32f70fcd3f | 348 | exs | Elixir | config/runtime.exs | Bentheburrito/pobcoin | 36f879ad1bae2660ace43dce66cada0c0b559dc9 | [
"MIT"
] | null | null | null | config/runtime.exs | Bentheburrito/pobcoin | 36f879ad1bae2660ace43dce66cada0c0b559dc9 | [
"MIT"
] | null | null | null | config/runtime.exs | Bentheburrito/pobcoin | 36f879ad1bae2660ace43dce66cada0c0b559dc9 | [
"MIT"
] | null | null | null | import Config
if Config.config_env() == :dev do
DotenvParser.load_file(".env")
end
config :nostrum,
token: System.get_env("BOT_TOKEN") # The token of your bot as a string
config :pobcoin, Pobcoin.Repo,
database: "pobcoin",
username: System.get_env("DB_USER"),
password: System.get_env("DB_PASS"),
hostname... | 23.2 | 72 | 0.721264 |
386ec75aaf1ca22f697404cd950fa05506a428e8 | 288 | ex | Elixir | lib/brintex/distribution/registry.ex | krasenyp/brintex_horde | 3ab751a5590b0d99245a075a65c89d78ced3f4e7 | [
"MIT"
] | null | null | null | lib/brintex/distribution/registry.ex | krasenyp/brintex_horde | 3ab751a5590b0d99245a075a65c89d78ced3f4e7 | [
"MIT"
] | null | null | null | lib/brintex/distribution/registry.ex | krasenyp/brintex_horde | 3ab751a5590b0d99245a075a65c89d78ced3f4e7 | [
"MIT"
] | null | null | null | defmodule Brintex.Distribution.Registry do
@moduledoc false
def child_spec(_args) do
Horde.Registry.child_spec(
name: __MODULE__,
keys: :unique,
members: :auto
)
end
def via(identifier) do
{:via, Horde.Registry, {__MODULE__, identifier}}
end
end
| 18 | 52 | 0.670139 |
386edf93030555db3555605978bbd1e21b5a8f37 | 179 | ex | Elixir | day1/part1.ex | michaljanocko/aoc | fe3af43536013af1787e0c0685aec5bbb096bd87 | [
"WTFPL"
] | 1 | 2021-12-06T14:40:38.000Z | 2021-12-06T14:40:38.000Z | day1/part1.ex | michaljanocko/aoc | fe3af43536013af1787e0c0685aec5bbb096bd87 | [
"WTFPL"
] | null | null | null | day1/part1.ex | michaljanocko/aoc | fe3af43536013af1787e0c0685aec5bbb096bd87 | [
"WTFPL"
] | null | null | null | File.stream!("input")
|> Enum.map(&String.to_integer(String.trim(&1)))
|> Enum.chunk_every(2, 1, :discard)
|> Enum.map(fn [a, b] -> a < b end)
|> Enum.count(& &1)
|> IO.inspect()
| 25.571429 | 48 | 0.603352 |
386ee737453a48d71f8d3e0b5828087508dd598c | 23,109 | exs | Elixir | lib/elixir/test/elixir/task_test.exs | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/task_test.exs | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/task_test.exs | mattmatters/elixir | e0d1c2e4cae0277e69fec086b92d82f13d2aa033 | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule TaskTest do
use ExUnit.Case
doctest Task
@moduletag :capture_log
def wait_and_send(caller, atom) do
send(caller, :ready)
receive do: (true -> true)
send(caller, atom)
end
defp create_task_in_other_process do
caller = self()
spawn... | 32.547887 | 100 | 0.583539 |
386ef6a44966dbbadfbfc2b9f72eb254a98771a8 | 3,798 | ex | Elixir | lib/sparrow/h2_client_adapter/chatterbox.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 20 | 2019-01-15T10:13:16.000Z | 2021-12-30T09:39:30.000Z | lib/sparrow/h2_client_adapter/chatterbox.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 45 | 2018-10-02T10:14:57.000Z | 2021-04-30T21:57:28.000Z | lib/sparrow/h2_client_adapter/chatterbox.ex | Switch168/sparrow | fbf16b0ce2f648791dd2654a16e42fcf7152be7e | [
"Apache-2.0"
] | 9 | 2019-05-08T17:25:56.000Z | 2022-03-06T10:16:41.000Z | defmodule Sparrow.H2ClientAdapter.Chatterbox do
@behaviour Sparrow.H2ClientAdapter
@moduledoc false
require Logger
@type connection_ref :: pid
@type stream_id :: non_neg_integer
@type headers :: [{String.t(), String.t()}]
@type body :: String.t()
@type reason :: term
@doc """
Starts a new connect... | 24.662338 | 77 | 0.555029 |
38700ab8093ec85f36e963055e6c1dd291c271fc | 212 | ex | Elixir | lib/kantele/character/views/delayed_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 610 | 2017-08-09T15:20:25.000Z | 2022-03-27T15:49:07.000Z | lib/kantele/character/views/delayed_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 69 | 2017-09-23T04:02:30.000Z | 2022-03-19T21:08:21.000Z | lib/kantele/character/views/delayed_view.ex | christhekeele/ex_venture | 4f4b329f50a133e219969f9823144a4cb9bf738d | [
"MIT"
] | 85 | 2017-09-23T04:07:11.000Z | 2021-11-20T06:44:56.000Z | defmodule Kantele.Character.DelayedView do
use Kalevala.Character.View
def render("display", %{command: command}) do
~s(Delayed command running: {color foreground="white"}#{command}{/color}\n)
end
end
| 26.5 | 79 | 0.731132 |
38701af042aca953b9373f2b2cd83567dd7705d9 | 541 | exs | Elixir | test/models/saledetaill_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | test/models/saledetaill_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | test/models/saledetaill_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | defmodule Otherpool.SaledetaillTest do
use Otherpool.ModelCase
alias Otherpool.Saledetaill
@valid_attrs %{due_date: %{day: 17, month: 4, year: 2010}, order_date: %{day: 17, month: 4, year: 2010}, subtotal: 42}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Saledetaill.changese... | 28.473684 | 120 | 0.728281 |
38701ce06d1a2379ffa0530909e886edf15db611 | 3,785 | exs | Elixir | backend/test/edgehog_web/schema/query/device_test.exs | edgehog-device-manager/edgehog | a7808f4b55360659c5259b55f081d3f8659455cb | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/test/edgehog_web/schema/query/device_test.exs | edgehog-device-manager/edgehog | a7808f4b55360659c5259b55f081d3f8659455cb | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/test/edgehog_web/schema/query/device_test.exs | edgehog-device-manager/edgehog | a7808f4b55360659c5259b55f081d3f8659455cb | [
"Apache-2.0"
] | 7 | 2021-11-03T10:58:37.000Z | 2022-02-28T14:00:03.000Z | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 25.402685 | 101 | 0.58177 |
3870425e3277bce0c9581f7a19f11672f65b7060 | 229 | exs | Elixir | priv/repo/migrations/20180809134429_create_custom_records.exs | b-a-b-e/ProComPrag | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 1 | 2020-05-31T21:54:40.000Z | 2020-05-31T21:54:40.000Z | priv/repo/migrations/20180809134429_create_custom_records.exs | b-a-b-e/ProComPrag | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 64 | 2019-07-29T22:06:16.000Z | 2022-03-28T23:46:58.000Z | priv/repo/migrations/20180809134429_create_custom_records.exs | babe-project/BABE | 50c6c87933e71cb69b5c95bc77bf591a34661410 | [
"MIT"
] | 1 | 2019-07-28T19:17:43.000Z | 2019-07-28T19:17:43.000Z | defmodule Magpie.Repo.Migrations.CreateCustomRecords do
use Ecto.Migration
def change do
create table(:custom_records) do
add :name, :string
add :record, {:array, :map}
timestamps()
end
end
end
| 16.357143 | 55 | 0.668122 |
38709e764d0ad418019ad2f77f9ecf34db2f1926 | 3,686 | ex | Elixir | test/support/live_views/flash.ex | smeade/phoenix_live_view | c981846c1e350bc689c28b4cbdaeffe1e30240b2 | [
"MIT"
] | null | null | null | test/support/live_views/flash.ex | smeade/phoenix_live_view | c981846c1e350bc689c28b4cbdaeffe1e30240b2 | [
"MIT"
] | null | null | null | test/support/live_views/flash.ex | smeade/phoenix_live_view | c981846c1e350bc689c28b4cbdaeffe1e30240b2 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest.FlashLive do
use Phoenix.LiveView
def render(assigns) do
~L"""
uri[<%= @uri %>]
root[<%= live_flash(@flash, :info) %>]:info
root[<%= live_flash(@flash, :error) %>]:error
<%= live_component @socket, Phoenix.LiveViewTest.FlashComponent, id: "flash-component" %>
... | 31.237288 | 94 | 0.628866 |
3870c35920df8450c5e66e15b8dd20d9fde9e0d0 | 1,020 | ex | Elixir | lib/mix/lib/mix/scm/path.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/lib/mix/scm/path.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/mix/lib/mix/scm/path.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule Mix.SCM.Path do
@behaviour Mix.SCM
@moduledoc false
def fetchable? do
false
end
def format(opts) do
opts[:path]
end
def format_lock(_opts) do
nil
end
def accepts_options(app, opts) do
cond do
raw = opts[:path] ->
Keyword.put(opts, :dest, Path.expand(raw))
... | 16.721311 | 82 | 0.592157 |
3870ed6204a5e8c28515c5ce30dcbfe64fa12760 | 383 | exs | Elixir | test/magic_test.exs | disruptek/disbot | e8e7f75cd1e510c8e774aa644e173a4e9ed7cfb3 | [
"MIT"
] | null | null | null | test/magic_test.exs | disruptek/disbot | e8e7f75cd1e510c8e774aa644e173a4e9ed7cfb3 | [
"MIT"
] | null | null | null | test/magic_test.exs | disruptek/disbot | e8e7f75cd1e510c8e774aa644e173a4e9ed7cfb3 | [
"MIT"
] | null | null | null | defmodule Disbot.Responders.MagicTest do
use Hedwig.RobotCase
@tag start_robot: true, name: "disbot",
responders: [{Disbot.Responders.Magic8Ball, []}]
test "magic 8ball", %{adapter: adapter, msg: msg} do
send adapter, {:message, %{msg | text: "disbot: are you awake?"}}
assert_receive {:message, %... | 29.461538 | 69 | 0.665796 |
3870fcef823f95e6de4ce33c7feb1b163bb032a1 | 146 | ex | Elixir | db_server/lib/db_server_web/controllers/api/tournament_controller.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/lib/db_server_web/controllers/api/tournament_controller.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/lib/db_server_web/controllers/api/tournament_controller.ex | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | defmodule DbServerWeb.API.TournamentController do
use DbServerWeb, :controller
def index(conn, _params) do
render(conn, :index)
end
end | 20.857143 | 49 | 0.760274 |
38710bbef2c846db153316afb1539d65e9a8c377 | 4,386 | ex | Elixir | lib/conduit_amqp.ex | b1az/conduit_amqp | 2b96e7d85fe82e390cc0f254cd2fa5fd0d763b4b | [
"MIT"
] | null | null | null | lib/conduit_amqp.ex | b1az/conduit_amqp | 2b96e7d85fe82e390cc0f254cd2fa5fd0d763b4b | [
"MIT"
] | null | null | null | lib/conduit_amqp.ex | b1az/conduit_amqp | 2b96e7d85fe82e390cc0f254cd2fa5fd0d763b4b | [
"MIT"
] | null | null | null | defmodule ConduitAMQP do
@moduledoc """
AMQP adapter for Conduit.
* `url` - Full connection url. Can be used instead of the individual
connection options (defaults to `"amqp://guest:guest@localhost:5672/"`);
Individual connection options, which each can override its part
of the full `url`:
* ... | 28.666667 | 96 | 0.642271 |
3871135068820b2467ec102a212b6bde34f777e1 | 2,345 | ex | Elixir | clients/people/lib/google_api/people/v1/model/status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/people/lib/google_api/people/v1/model/status.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/status.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 ... | 37.822581 | 134 | 0.710874 |
38713297cfcf81489336bbb8dd51b1d00572037d | 563 | ex | Elixir | test/process_managers/support/resume/resume_command_handler.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | 1 | 2022-02-20T10:42:07.000Z | 2022-02-20T10:42:07.000Z | test/process_managers/support/resume/resume_command_handler.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | test/process_managers/support/resume/resume_command_handler.ex | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | defmodule Commanded.ProcessManagers.ResumeCommandHandler do
@moduledoc false
@behaviour Commanded.Commands.Handler
alias Commanded.ProcessManagers.ResumeAggregate
alias Commanded.ProcessManagers.ResumeAggregate.Commands.{ResumeProcess, StartProcess}
def handle(%ResumeAggregate{} = aggregate, %StartProcess{}... | 35.1875 | 88 | 0.809947 |
38713f1ec3c9336da1054383683ed20ddd0cb540 | 1,114 | ex | Elixir | apps/plant_monitor_web/test/support/conn_case.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | 2 | 2019-01-25T21:21:56.000Z | 2021-02-24T08:18:51.000Z | apps/plant_monitor_web/test/support/conn_case.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | apps/plant_monitor_web/test/support/conn_case.ex | bartoszgorka/PlantMonitor | 23e18cd76c51bd8eee021ee98668926de885047b | [
"MIT"
] | null | null | null | defmodule PlantMonitorWeb.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 datastructures and query the data layer.
Finally, i... | 26.52381 | 74 | 0.721724 |
38716abec810f163b282e4d7d299f85e6705a01c | 1,538 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/key_value_targeting_expression.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/key_value_targeting_expression.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/key_value_targeting_expression.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.041667 | 92 | 0.756827 |
3871b50ebad703b85e9700a1670a13e3c7d69ae6 | 2,106 | exs | Elixir | mix.exs | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | mix.exs | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | mix.exs | pzingg/phoenix_16_example | 7f4160de837229101e18a4e1cc97a00f4af5aaa7 | [
"MIT"
] | null | null | null | defmodule Example16.MixProject do
use Mix.Project
def project do
[
app: :example_16,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
d... | 28.849315 | 84 | 0.563628 |
3871f46347acdc1250aabb578f97407b76e9a6c9 | 2,108 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/approximate_split_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/approximate_split_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/approximate_split_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... | 39.773585 | 200 | 0.729602 |
38720f2585916fa9eda98f7747729d79ba47e29b | 2,071 | exs | Elixir | test/absinthe/integration/execution/introspection/full_test.exs | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2020-08-12T12:34:40.000Z | 2020-08-12T12:34:40.000Z | test/absinthe/integration/execution/introspection/full_test.exs | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 1 | 2020-04-07T23:46:38.000Z | 2020-04-07T23:46:38.000Z | test/absinthe/integration/execution/introspection/full_test.exs | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | null | null | null | defmodule Elixir.Absinthe.Integration.Execution.Introspection.FullTest do
use Absinthe.Case, async: true
@query """
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
n... | 17.853448 | 73 | 0.503139 |
38724d579063429c7cfde68a569329ac51494afa | 558 | exs | Elixir | priv/repo/migrations/20190408114109_create_real_estate.exs | albertschr/blog_supported_blockchain | ee9578c8ebddd3e72ff5eaabefc2d724c3e2a9a1 | [
"MIT"
] | 1 | 2019-02-06T12:29:35.000Z | 2019-02-06T12:29:35.000Z | priv/repo/migrations/20190408114109_create_real_estate.exs | albertschr/blog_supported_blockchain | ee9578c8ebddd3e72ff5eaabefc2d724c3e2a9a1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190408114109_create_real_estate.exs | albertschr/blog_supported_blockchain | ee9578c8ebddd3e72ff5eaabefc2d724c3e2a9a1 | [
"MIT"
] | null | null | null | defmodule Blog.Repo.Migrations.CreateRealEstate do
use Ecto.Migration
def change do
alter table(:ycy_groups) do
add(:is_enabled, :boolean, default: false)
end
alter table(:ycy_users) do
add :ycy_real_estate_id, :integer
end
create table(:ycy_real_estates) do
add :name, :stri... | 24.26087 | 63 | 0.657706 |
38725a9466c6f50abf882ea83248e8efebc24c19 | 10,158 | exs | Elixir | test/swoosh/adapters/mailgun_test.exs | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 1,214 | 2016-03-21T16:56:42.000Z | 2022-03-31T19:10:11.000Z | test/swoosh/adapters/mailgun_test.exs | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 399 | 2016-03-21T23:11:32.000Z | 2022-03-04T10:52:28.000Z | test/swoosh/adapters/mailgun_test.exs | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 208 | 2016-03-21T21:12:11.000Z | 2022-03-04T06:35:33.000Z | defmodule Swoosh.Adapters.MailgunTest do
use Swoosh.AdapterCase, async: true
import Swoosh.Email
alias Swoosh.Adapters.Mailgun
@success_response """
{
"message": "Queued. Thank you.",
"id": "<20111114174239.25659.5817@samples.mailgun.org>"
}
"""
setup do
bypass = Bypass.open
c... | 39.679688 | 167 | 0.571766 |
38725d0abdabf0103f4e984436c0a2884168b7ea | 1,733 | ex | Elixir | lib/bpxe/engine/exclusive_gateway.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | lib/bpxe/engine/exclusive_gateway.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | lib/bpxe/engine/exclusive_gateway.ex | cjsuite/bpxe | 4b4759b7e2e8ced9f6f76ab55e5da26eb319a7c9 | [
"Apache-2.0"
] | null | null | null | defmodule BPXE.Engine.ExclusiveGateway do
use GenServer
use BPXE.Engine.FlowNode
alias BPXE.Engine.Process
alias BPXE.Engine.Process.Log
defstate token_ids: %{},
drop_tokens: %{},
decision_made: false
@persist_state :token_ids
@persist_state :drop_tokens
def start_link(element, ... | 26.257576 | 100 | 0.682631 |
3872b3b1f21ff8011351339297d95509f3e85713 | 2,061 | ex | Elixir | lib/neko/shikimori/http_client.ex | xmaid/neko-achievements | 4998e462efcc977e4ee1b3e2471023f427e400f6 | [
"MIT"
] | 21 | 2017-05-11T19:19:22.000Z | 2021-06-15T23:43:18.000Z | lib/neko/shikimori/http_client.ex | xmaid/neko-achievements | 4998e462efcc977e4ee1b3e2471023f427e400f6 | [
"MIT"
] | 41 | 2017-11-20T18:43:31.000Z | 2021-12-09T18:17:25.000Z | lib/neko/shikimori/http_client.ex | xmaid/neko-achievements | 4998e462efcc977e4ee1b3e2471023f427e400f6 | [
"MIT"
] | 97 | 2017-10-11T15:38:11.000Z | 2022-01-21T09:56:01.000Z | # http://blog.plataformatec.com.br/2015/10/mocks-and-explicit-contracts/
#
# credo:disable-for-this-file Credo.Check.Refactor.PipeChainStart
defmodule Neko.Shikimori.HTTPClient do
@behaviour Neko.Shikimori.Client.Behaviour
use HTTPoison.Base
@base_url Application.get_env(:neko, :shikimori)[:url]
@conn_timeout... | 26.088608 | 72 | 0.665696 |
3872f1aa9f2de71a36ef96450fc475646808aa10 | 1,667 | exs | Elixir | mix.exs | cspags/lucide_live_view | 03b5c8ff27553891aeb7a2a0c6c602e4eef47341 | [
"MIT"
] | null | null | null | mix.exs | cspags/lucide_live_view | 03b5c8ff27553891aeb7a2a0c6c602e4eef47341 | [
"MIT"
] | null | null | null | mix.exs | cspags/lucide_live_view | 03b5c8ff27553891aeb7a2a0c6c602e4eef47341 | [
"MIT"
] | null | null | null | defmodule Lucide.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/cspags/lucide_live_view"
def project do
[
app: :lucide_live_view,
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,... | 21.934211 | 105 | 0.580684 |
38733dc23be9ae895b965d529416e2aa7b39f69b | 2,480 | ex | Elixir | robotica_common/lib/date.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_common/lib/date.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_common/lib/date.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | defmodule RoboticaCommon.Date do
@moduledoc """
Provides data/time functions for Robotica.
"""
@spec get_timezone :: String.t()
def get_timezone, do: Application.get_env(:robotica_common, :timezone)
@doc """
Converts an UTC date time to a local Date for today.
Note: 13:00 UTC is midnight in Australia... | 27.252747 | 81 | 0.664113 |
3873848da218f8d2a9a7e40e78e4556fb501cfbf | 8,528 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/accounts.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/accounts.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/accounts.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... | 38.763636 | 170 | 0.676477 |
387390ca69672194e55ef7162a101572595ccb47 | 4,569 | ex | Elixir | robotica_ui/lib/scenes/local.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-04-23T09:16:44.000Z | 2019-04-23T09:16:44.000Z | robotica_ui/lib/scenes/local.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 107 | 2019-05-26T08:03:26.000Z | 2022-02-03T19:13:56.000Z | robotica_ui/lib/scenes/local.ex | brianmay/robotica-elixir | 8656510e54b7e32a547e3a54bf946f0e327911c9 | [
"RSA-MD"
] | 1 | 2019-08-10T20:44:24.000Z | 2019-08-10T20:44:24.000Z | defmodule RoboticaUi.Scene.Local do
@moduledoc false
use Scenic.Scene
use EventBus.EventSource
alias Scenic.Graph
alias Scenic.ViewPort
import Scenic.Primitives
alias RoboticaCommon.Config
alias RoboticaUi.Layout
import RoboticaUi.Scene.Utils
alias RoboticaUi.Components.Nav
require Logger
@... | 27.690909 | 98 | 0.56949 |
387394e39fa49bfa6275c6cfac5bb9b735611735 | 981 | ex | Elixir | lib/server_timing_plug.ex | deftia/server_timing | ce9088667ba64ccf4f76be052b2ea382b21d77bd | [
"MIT"
] | 1 | 2018-02-16T09:06:02.000Z | 2018-02-16T09:06:02.000Z | lib/server_timing_plug.ex | deftia/server_timing | ce9088667ba64ccf4f76be052b2ea382b21d77bd | [
"MIT"
] | null | null | null | lib/server_timing_plug.ex | deftia/server_timing | ce9088667ba64ccf4f76be052b2ea382b21d77bd | [
"MIT"
] | null | null | null | defmodule ServerTiming.Plug do
@moduledoc """
A plug to setup server_timing initial store,
and to set `server-timing` header.
## Usage
Setup the plug in your app, is as simple as.
```
defmodule Router do
use Plug.Router
plug ServerTiming.Plug
end
```
"""
import Plug.Conn
@doc false
... | 22.813953 | 82 | 0.606524 |
387398b160d794c23709b9bff8a093b4be8529fe | 120 | exs | Elixir | test/ex_image_info_test/images/_svg_test.exs | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 62 | 2018-01-10T05:23:14.000Z | 2022-03-30T22:26:17.000Z | test/ex_image_info_test/images/_svg_test.exs | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 2 | 2018-05-20T16:09:34.000Z | 2018-11-26T21:46:08.000Z | test/ex_image_info_test/images/_svg_test.exs | Group4Layers/ex_image_info | d1d7f5c7b7b46c4286c71c2bb419cac7dcf84082 | [
"MIT"
] | 3 | 2017-11-04T13:22:05.000Z | 2018-11-16T18:31:03.000Z | # defmodule ExImageInfoTest.Images.SVGTest do
# "svgWH" => TestHelper.read_image("valid/svg/width-height.svg"),
# end
| 30 | 67 | 0.741667 |
38739a41b73e9f29fde519c554f8206a488fef69 | 276 | ex | Elixir | lib/zeroth/api.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | 1 | 2017-06-02T10:07:47.000Z | 2017-06-02T10:07:47.000Z | lib/zeroth/api.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | null | null | null | lib/zeroth/api.ex | arnau/zeroth | 6826f140567002449cacc1502ade00e5da23c7ad | [
"MIT"
] | null | null | null | defprotocol Zeroth.Api do
def get(client, options \\ [])
def post(client, body, options)
def post(client, options)
def patch(client, body, options \\ [])
def delete(client, options \\ [])
def update_endpoint(client, path)
def put_endpoint(client, endpoint)
end
| 25.090909 | 40 | 0.695652 |
38739b2d972044d8f8c885fe6ea24a1fa381fae6 | 1,514 | ex | Elixir | lib/todo_app_web/endpoint.ex | rafaelbreno/alchemy-proj | c4b24b1564ae0293cdf4ef8dacb007b5a7e55eb6 | [
"MIT"
] | null | null | null | lib/todo_app_web/endpoint.ex | rafaelbreno/alchemy-proj | c4b24b1564ae0293cdf4ef8dacb007b5a7e55eb6 | [
"MIT"
] | null | null | null | lib/todo_app_web/endpoint.ex | rafaelbreno/alchemy-proj | c4b24b1564ae0293cdf4ef8dacb007b5a7e55eb6 | [
"MIT"
] | null | null | null | defmodule TodoAppWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :todo_app
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_todo_app... | 28.566038 | 97 | 0.715324 |
3873a772b0d4dc2921d789e78cea1260ce08d79d | 1,945 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/tier_rate.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/tier_rate.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/tier_rate.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.698113 | 118 | 0.734704 |
3873b148ade7f207f2f2632df383cb3fe667e0ce | 2,941 | ex | Elixir | lib/elixir/lib/behaviour.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/elixir/lib/behaviour.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/behaviour.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | defmodule Behaviour do
@moduledoc """
This module has been deprecated.
Instead of `defcallback/1` and `defmacrocallback/1`, the `@callback` and
`@macrocallback` module attributes can be used (respectively). See the
documentation for `Module` for more information on these attributes.
Instead of `MyModule._... | 27.485981 | 95 | 0.642639 |
3873be12ee63762dea9be4d0837acbc09f1fd2a5 | 1,295 | exs | Elixir | test/ex_doc/markdown/earmark_test.exs | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,206 | 2015-01-02T02:05:12.000Z | 2022-03-29T17:18:10.000Z | test/ex_doc/markdown/earmark_test.exs | kelvinst/ex_doc | 609d9765dd6f098dc298e5d6db6430859ee934ec | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,266 | 2015-01-03T03:26:04.000Z | 2022-03-31T09:43:53.000Z | test/ex_doc/markdown/earmark_test.exs | LaudateCorpus1/ex_doc | 0612bac649cbb44ef09c20dedcf7e588a150606c | [
"Apache-2.0",
"CC-BY-4.0"
] | 300 | 2015-01-03T04:07:24.000Z | 2022-03-29T08:10:56.000Z | defmodule ExDoc.Markdown.EarmarkTest do
use ExUnit.Case
alias ExDoc.Markdown.Earmark, as: Markdown
@moduletag :earmark
describe "to_ast/2" do
test "generate AST" do
assert Markdown.to_ast("# Test\n\nHello", []) == [
{:h1, [], ["Test"], %{}},
{:p, [], ["Hello"], %{}}
... | 28.152174 | 87 | 0.482625 |
3873be88d738bd6d29ced606e756d6c78313c8b5 | 1,764 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/reference_bound.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/genomics/lib/google_api/genomics/v1/model/reference_bound.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/reference_bound.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... | 34.588235 | 143 | 0.746032 |
3873d5412fe02b311d1aab68d6b46af162a25441 | 1,094 | exs | Elixir | config/config.exs | dev800/verk_web | 2118e4a42a621b6004a9d51750d389cf5061ac30 | [
"MIT"
] | null | null | null | config/config.exs | dev800/verk_web | 2118e4a42a621b6004a9d51750d389cf5061ac30 | [
"MIT"
] | null | null | null | config/config.exs | dev800/verk_web | 2118e4a42a621b6004a9d51750d389cf5061ac30 | [
"MIT"
] | 1 | 2018-06-24T04:11:11.000Z | 2018-06-24T04:11:11.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
## config :verk_web, VerkWeb.Endpoint,
## url: [host: "0.... | 30.388889 | 68 | 0.698355 |
3873d8dee13c2b73ffcc468e4ecada4431643db4 | 1,163 | exs | Elixir | config/config.exs | chubarovNick/gendex | 98a60682dc67e1d6b22238f832157ad839f3d2e0 | [
"MIT"
] | null | null | null | config/config.exs | chubarovNick/gendex | 98a60682dc67e1d6b22238f832157ad839f3d2e0 | [
"MIT"
] | null | null | null | config/config.exs | chubarovNick/gendex | 98a60682dc67e1d6b22238f832157ad839f3d2e0 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.242424 | 73 | 0.748925 |
3873eb1647c6354a8c0d6910fca9fa1b302a0544 | 143 | ex | Elixir | imdb_data/lib/imdb_data_web/controllers/page_controller.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | imdb_data/lib/imdb_data_web/controllers/page_controller.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | 2 | 2016-03-10T03:04:11.000Z | 2017-02-11T17:43:44.000Z | imdb_data/lib/imdb_data_web/controllers/page_controller.ex | defndaines/eiga | 89adc25dd6c7a5be86d6dc6be9dffc62ad05bdd8 | [
"Apache-2.0"
] | null | null | null | defmodule IMDbDataWeb.PageController do
use IMDbDataWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.875 | 39 | 0.741259 |
3873f60ea9fef0c149d6785f7851b1d6d35df1d0 | 925 | exs | Elixir | webrtc/videoroom/config/config.exs | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 28 | 2019-03-26T15:25:54.000Z | 2020-07-30T13:59:05.000Z | webrtc/videoroom/config/config.exs | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 8 | 2019-03-25T11:52:35.000Z | 2020-07-17T11:44:53.000Z | webrtc/videoroom/config/config.exs | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 5 | 2018-10-29T12:28:40.000Z | 2020-06-05T08:01:34.000Z | import Config
config :phoenix, :json_library, Jason
config :esbuild,
version: "0.12.15",
default: [
args:
~w(src/index.ts --bundle --target=es2016 --outfile=../priv/static/assets/js/app.js --external:/images/*),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", ... | 29.83871 | 111 | 0.708108 |
38740ce3989cad23d833587f4674cd50e7473c53 | 590 | ex | Elixir | test/support/assertions/confirmation.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | test/support/assertions/confirmation.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | 13 | 2021-06-29T04:35:41.000Z | 2022-02-09T04:25:39.000Z | test/support/assertions/confirmation.ex | RatioPBC/epi-contacts | 6c43eea52cbfe2097f48b02e3d0c8fce3b46f1ee | [
"Apache-2.0"
] | null | null | null | defmodule EpiContactsWeb.Assertions.Confirmation do
@moduledoc """
Acceptance assertion helper for interacting with the confirmation step of the questionnaire
"""
use EpiContactsWeb.AcceptanceAssertions
def assert_on_confirmation_page(session) do
session |> assert_has(css("h2", text: "Thank you for help... | 36.875 | 113 | 0.777966 |
38742b36f61a75bcb6b515162add13a0e16e6920 | 1,576 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/boolean_constraint.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/boolean_constraint.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/boolean_constraint.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... | 36.651163 | 238 | 0.771574 |
38742d04c062ad7613f612666e913a4926cfbe1d | 3,346 | ex | Elixir | clients/content/lib/google_api/content/v21/model/product_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v21/model/product_status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v21/model/product_status.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... | 41.825 | 169 | 0.691273 |
38743b0f59d74d3ca03f6022dc6cb0d0772cae9f | 843 | exs | Elixir | mix.exs | crownedgrouse/swab | 88d6d7772ec9a8979b45297436c7523683e9089b | [
"0BSD"
] | 16 | 2015-04-09T04:49:55.000Z | 2022-02-19T00:33:22.000Z | mix.exs | crownedgrouse/swab | 88d6d7772ec9a8979b45297436c7523683e9089b | [
"0BSD"
] | null | null | null | mix.exs | crownedgrouse/swab | 88d6d7772ec9a8979b45297436c7523683e9089b | [
"0BSD"
] | null | null | null | defmodule Edgar.Mixfile do
use Mix.Project
def project do
[app: :swab,
version: "1.0.4",
elixir: "~> 1.2",
description: description(),
package: package(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[appli... | 22.184211 | 123 | 0.582444 |
3874554f19a8007d0c39ab1c40d505c3ab15379b | 2,417 | exs | Elixir | mix.exs | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 4 | 2021-08-23T19:27:00.000Z | 2021-12-24T14:22:10.000Z | mix.exs | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 16 | 2021-08-23T16:48:07.000Z | 2022-02-28T17:25:37.000Z | mix.exs | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 2 | 2021-08-23T16:18:42.000Z | 2021-08-23T16:35:41.000Z | defmodule Bookpile.MixProject do
use Mix.Project
def project do
[
app: :bookpile,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps... | 28.77381 | 84 | 0.558544 |
38745e12eef7f9076ddda8af275ca4cc4a30e542 | 11,907 | ex | Elixir | lib/assert_html.ex | ktec/assert_html | 07aecb5bf564a6c17a278d09724d793d89e00919 | [
"MIT"
] | null | null | null | lib/assert_html.ex | ktec/assert_html | 07aecb5bf564a6c17a278d09724d793d89e00919 | [
"MIT"
] | null | null | null | lib/assert_html.ex | ktec/assert_html | 07aecb5bf564a6c17a278d09724d793d89e00919 | [
"MIT"
] | null | null | null | defmodule AssertHTML do
@moduledoc ~s"""
AssertHTML is an Elixir library for parsing and extracting data from HTML and XML with CSS.
## Usage
### Check selector
`assert_html(html, ".css .selector .exsits")` - assert error if element doesn't exists in selector path.
`refute_html(html, ".css .selector")` - ... | 35.864458 | 145 | 0.646007 |
387474e0dc86e3a9356c2e12ca660736c870fac2 | 1,873 | ex | Elixir | lib/gcs_signed_url/client.ex | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 16 | 2019-07-25T16:05:20.000Z | 2022-02-09T06:24:55.000Z | lib/gcs_signed_url/client.ex | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 53 | 2020-04-21T16:35:49.000Z | 2022-03-28T13:04:07.000Z | lib/gcs_signed_url/client.ex | code-supply/gcs_signed_url | e3e72b8b11e80c47899713189f03d94e28b2a831 | [
"MIT"
] | 10 | 2020-04-21T12:19:47.000Z | 2021-11-19T12:00:06.000Z | defmodule GcsSignedUrl.Client do
@moduledoc """
Defines Google Cloud Storage Signed Url Client
"""
@type t :: %__MODULE__{
private_key: String.t(),
client_email: String.t()
}
@fields [
:private_key,
:client_email
]
@enforce_keys @fields
defstruct @fields
@doc """... | 24.973333 | 93 | 0.64976 |
3874b708616d60135d1f3c926e8bb51d3ad264f8 | 919 | ex | Elixir | chapter3/challenges/mealcon/lib/mealcon_web/router.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | chapter3/challenges/mealcon/lib/mealcon_web/router.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | chapter3/challenges/mealcon/lib/mealcon_web/router.ex | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | defmodule MealconWeb.Router do
use MealconWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", MealconWeb do
pipe_through :api
resources "/meals", MealsController, except: [:new, :edit]
resources "/users", UsersController, except: [:new, :edit]
end
# Enables LiveDashb... | 28.71875 | 70 | 0.707291 |
3874f339af395db44e7637f274c52b9caa73b8bc | 1,950 | ex | Elixir | lib/scenic/primitive/style/stroke.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/stroke.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/stroke.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-05-06.
# Copyright © 2017-2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Primitive.Style.Stroke do
@moduledoc """
Draw an outline around a primitive with the given paint.
Example:
```elixir
graph
|> triangle( {{0,40},{40,40},{40,0}}
miter_limit:... | 24.375 | 113 | 0.612308 |
3875519dbb654d701797208eb73ac0b08270e0e9 | 757 | exs | Elixir | test/etl/type/date_test.exs | bbalser/etl | 24791047ca0ce8066ec73c4196e54e954b1a1471 | [
"Apache-2.0"
] | 1 | 2020-06-15T22:41:37.000Z | 2020-06-15T22:41:37.000Z | test/etl/type/date_test.exs | inhindsight/etl | 24791047ca0ce8066ec73c4196e54e954b1a1471 | [
"Apache-2.0"
] | 1 | 2020-09-11T12:24:12.000Z | 2020-09-12T11:14:27.000Z | test/etl/type/date_test.exs | bbalser/etl | 24791047ca0ce8066ec73c4196e54e954b1a1471 | [
"Apache-2.0"
] | null | null | null | defmodule Etl.Type.DateTest do
use ExUnit.Case
import Checkov
data_test "validates dates - #{inspect(value)} --> #{inspect(result)}" do
type = %Etl.Type.Date{name: "fake", format: format}
assert result == Etl.Type.normalize(type, value)
where [
[:format, :value, :result],
["%Y-%0m-%0d",... | 29.115385 | 82 | 0.570674 |
3875693b1e96e3dcdd8577fdec946a3f98a1c89f | 1,141 | exs | Elixir | config/config.exs | VitorTrin/exchema_coercion | 8c580c5498979b88dd8bc015bc101606a3be97dd | [
"Apache-2.0"
] | 7 | 2018-08-29T09:28:31.000Z | 2020-08-20T12:56:43.000Z | config/config.exs | VitorTrin/exchema_coercion | 8c580c5498979b88dd8bc015bc101606a3be97dd | [
"Apache-2.0"
] | 3 | 2018-10-08T21:33:04.000Z | 2019-07-22T16:38:02.000Z | config/config.exs | VitorTrin/exchema_coercion | 8c580c5498979b88dd8bc015bc101606a3be97dd | [
"Apache-2.0"
] | 2 | 2018-10-15T13:36:03.000Z | 2019-03-15T19:00:37.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.755478 |
3875a61138b04638584bd1371f49439b67091678 | 29,291 | ex | Elixir | lib/elixir/lib/io/ansi/docs.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/elixir/lib/io/ansi/docs.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/elixir/lib/io/ansi/docs.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | null | null | null | defmodule IO.ANSI.Docs do
@moduledoc false
@bullet_text_unicode "• "
@bullet_text_ascii "* "
@bullets [?*, ?-, ?+]
@spaces [" ", "\n", "\t"]
@doc """
The default options used by this module.
The supported keys are:
* `:enabled` - toggles coloring on and off (true)
* `:doc_bold` ... | 30.639121 | 98 | 0.633266 |
3875b13488af62c46cc0164613d46c45e377fb23 | 1,467 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta3_deploy_processor_version_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta3_deploy_processor_version_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta3_deploy_processor_version_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.212766 | 101 | 0.779141 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.