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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da5d5cbe3d1264484ab9ea574d850b72100dae0a | 3,620 | ex | Elixir | elixir/lib/homework_web/schemas/transactions_schema.ex | najens/web-homework | ad0b54f4faf59997385274305ea82c56d9bf11dc | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/transactions_schema.ex | najens/web-homework | ad0b54f4faf59997385274305ea82c56d9bf11dc | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/transactions_schema.ex | najens/web-homework | ad0b54f4faf59997385274305ea82c56d9bf11dc | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Schemas.TransactionsSchema do
@moduledoc """
Defines the graphql schema for transactions.
"""
use Absinthe.Schema.Notation
alias HomeworkWeb.Resolvers.TransactionsResolver
object :transaction do
field(:id, non_null(:id))
field(:user_id, :id)
field(:amount, :integer)
f... | 33.518519 | 83 | 0.701105 |
da5d6f95a5c7db53e26ceeeaf11f4efa9524c012 | 957 | ex | Elixir | lib/zss_service/service/responder.ex | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | lib/zss_service/service/responder.ex | nickve28/zss_service_suite_service | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | 13 | 2017-05-20T12:19:37.000Z | 2017-07-16T10:31:34.000Z | lib/zss_service/service/responder.ex | nickve28/zss_service_suite_service_ex | 6474fe4656141e283360ce9bdec1f522651eb72f | [
"MIT"
] | null | null | null | defmodule ZssService.Service.Responder do
use GenServer
@moduledoc """
This module will get responses from the socket. The responses will be forwarded to the service pid
"""
@socket_adapter Application.get_env(:zss_service, :socket_adapter) || ZssService.Adapters.Socket
alias ZssService.Message
require... | 23.925 | 100 | 0.684431 |
da5db6c17d6d15e7e0813b25a4fd9a4f53289d6a | 1,766 | ex | Elixir | lib/attribute_group.ex | electricshaman/hippy | e72c95a31c6415bde9cbdee43f077c68a3a3795b | [
"MIT"
] | 8 | 2018-04-02T14:14:28.000Z | 2021-05-04T19:39:48.000Z | lib/attribute_group.ex | electricshaman/hippy | e72c95a31c6415bde9cbdee43f077c68a3a3795b | [
"MIT"
] | 1 | 2018-04-06T01:55:04.000Z | 2018-04-06T05:15:47.000Z | lib/attribute_group.ex | electricshaman/hippy | e72c95a31c6415bde9cbdee43f077c68a3a3795b | [
"MIT"
] | 3 | 2018-04-02T23:45:51.000Z | 2021-04-04T20:14:49.000Z | defmodule Hippy.AttributeGroup do
@moduledoc "Contains functions for working with attribute groups."
def to_map([]) do
Map.new()
end
def to_map([head | _] = group) when is_tuple(head) do
group_to_map(group)
end
def to_map([head | _]) when is_list(head) do
group_to_map(head)
end
def to_ma... | 22.075 | 91 | 0.607022 |
da5df9a8d2d2aa36aeaa9d222966b844d05f82f8 | 1,656 | exs | Elixir | test/authorize_test.exs | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 130 | 2016-06-21T07:58:46.000Z | 2022-01-01T21:45:23.000Z | test/authorize_test.exs | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 50 | 2016-06-29T16:01:42.000Z | 2019-08-07T21:33:49.000Z | test/authorize_test.exs | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 20 | 2016-07-02T11:37:33.000Z | 2018-10-26T19:12:41.000Z | defmodule Openmaize.AuthorizeTest do
use ExUnit.Case
use Plug.Test
import Openmaize.AccessControl
@admin %{id: 2, username: "Big Boss", role: "admin"}
@user %{id: 1, username: "Raymond Luxury Yacht", role: "user"}
def call(path, current_user, roles) do
conn(:get, path)
|> assign(:current_user, cu... | 29.052632 | 79 | 0.646739 |
da5e5d7db817f170a47b0469c35142b747ac9efd | 1,062 | ex | Elixir | lib/officetournament/endpoint.ex | X0nic/officetournament | 4d1c7464bf4a6da2a97247ec698e35f9628c6b01 | [
"MIT"
] | 1 | 2015-09-18T04:41:01.000Z | 2015-09-18T04:41:01.000Z | lib/officetournament/endpoint.ex | X0nic/officetournament | 4d1c7464bf4a6da2a97247ec698e35f9628c6b01 | [
"MIT"
] | null | null | null | lib/officetournament/endpoint.ex | X0nic/officetournament | 4d1c7464bf4a6da2a97247ec698e35f9628c6b01 | [
"MIT"
] | null | null | null | defmodule Officetournament.Endpoint do
use Phoenix.Endpoint, otp_app: :officetournament
socket "/socket", Officetournament.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in produc... | 26.55 | 69 | 0.724105 |
da5e7bf774f44c0b714ae3eea2fc773de7c9e7a3 | 139 | ex | Elixir | web/controllers/about_controller.ex | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | 3 | 2015-10-31T02:33:29.000Z | 2016-07-19T06:25:03.000Z | web/controllers/about_controller.ex | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | null | null | null | web/controllers/about_controller.ex | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | null | null | null | defmodule Readerl.AboutController do
use Readerl.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 17.375 | 36 | 0.733813 |
da5e8cc2d70046f47c5e858fef3dd40f624a0549 | 1,073 | ex | Elixir | test/support/conn_case.ex | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 5 | 2019-07-13T22:20:50.000Z | 2020-07-13T05:05:43.000Z | test/support/conn_case.ex | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 33 | 2019-08-01T03:48:23.000Z | 2021-07-28T03:29:40.000Z | test/support/conn_case.ex | hammoc-app/hammoc-elixir | 00cd24e2170cc3dee65c7848868ea3d1096ac25c | [
"MIT"
] | 2 | 2019-09-03T22:45:11.000Z | 2020-01-01T23:56:58.000Z | defmodule HammocWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the... | 27.512821 | 85 | 0.72041 |
da5ea507d8a7f9b91fc3f6ced6248cff2e2a4920 | 355 | exs | Elixir | priv/repo/migrations/20170426154053_create_blog_article.exs | zoosky/elixir-phoenix-realworld-example-app | 8620fb2829703051cdbd032f93be6cd941c4810e | [
"MIT"
] | 909 | 2017-11-16T08:41:08.000Z | 2022-03-31T21:59:17.000Z | priv/repo/migrations/20170426154053_create_blog_article.exs | zoosky/elixir-phoenix-realworld-example-app | 8620fb2829703051cdbd032f93be6cd941c4810e | [
"MIT"
] | 36 | 2017-11-28T01:31:05.000Z | 2021-12-15T05:03:00.000Z | priv/repo/migrations/20170426154053_create_blog_article.exs | zoosky/elixir-phoenix-realworld-example-app | 8620fb2829703051cdbd032f93be6cd941c4810e | [
"MIT"
] | 160 | 2017-11-16T06:00:37.000Z | 2022-01-20T13:50:42.000Z | defmodule RealWorld.Repo.Migrations.CreateRealWorld.Blog.Article do
use Ecto.Migration
def change do
create table(:articles) do
add(:title, :string)
add(:description, :string)
add(:body, :text)
add(:slug, :string)
timestamps(inserted_at: :created_at)
end
create(unique_in... | 20.882353 | 67 | 0.664789 |
da5eb4940a3a3b28b6b6bb9cc98b78853455ccea | 4,017 | ex | Elixir | lib/resolver.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 3 | 2019-01-07T20:11:40.000Z | 2021-02-03T22:24:07.000Z | lib/resolver.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 13 | 2018-07-27T12:39:01.000Z | 2022-03-28T20:16:15.000Z | lib/resolver.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | null | null | null | defmodule JsonSchema.Resolver do
@moduledoc """
Module containing functions for resolving types. Main function being
the `resolve_type` function.
"""
alias JsonSchema.{Parser, Types}
alias Parser.{ErrorUtil, ParserError}
alias Types.{PrimitiveType, SchemaDefinition, TypeReference}
@doc """
Resolves ... | 28.692857 | 91 | 0.616131 |
da5ee62fd91d6d6991bf810cc1ea12fd5fd4d042 | 688 | ex | Elixir | lib/level/posts/reply.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level/posts/reply.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | lib/level/posts/reply.ex | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | defmodule Level.Posts.Reply do
@moduledoc """
The Reply schema.
"""
use Ecto.Schema
import Ecto.Changeset
alias Level.Posts.Post
alias Level.Spaces.Space
alias Level.Spaces.SpaceUser
@type t :: %__MODULE__{}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
sch... | 19.657143 | 64 | 0.680233 |
da5f09f97a8e2c94e04cbc41f7bd185ae13fe189 | 1,204 | ex | Elixir | lib/mix/lib/mix/tasks/do.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/lib/mix/tasks/do.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/mix/lib/mix/tasks/do.ex | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | defmodule Mix.Tasks.Do do
use Mix.Task
@shortdoc "Executes the tasks separated by comma"
@moduledoc """
Executes the tasks separated by comma.
The comma should be followed by a space.
This task is automatically reenabled, so it can be called multiple times.
## Examples
The example below prints the... | 23.153846 | 86 | 0.657807 |
da5f15ead47f9777b4b62324f11d00d3e9b8d12f | 859 | ex | Elixir | kousa/lib/beef/room_permission.ex | joshrezende/dogehouse | 2c77fa86fc0c625ded3d4b5d112fbdd22a3cdbfe | [
"MIT"
] | 5 | 2021-03-02T09:00:45.000Z | 2021-03-13T04:45:46.000Z | kousa/lib/beef/room_permission.ex | RonaldColyar/dogehouse | eb0599ecad1e8f2ca663906f42ee8bea346be5cb | [
"MIT"
] | null | null | null | kousa/lib/beef/room_permission.ex | RonaldColyar/dogehouse | eb0599ecad1e8f2ca663906f42ee8bea346be5cb | [
"MIT"
] | 1 | 2021-04-09T12:25:24.000Z | 2021-04-09T12:25:24.000Z | defmodule Beef.RoomPermission do
use Ecto.Schema
import Ecto.Changeset
@type t :: %__MODULE__{
roomId: Ecto.UUID.t(),
userId: Ecto.UUID.t(),
isSpeaker: boolean(),
isMod: boolean(),
askedToSpeak: boolean()
}
@derive {Poison.Encoder, only: [:isSpeaker, :... | 26.84375 | 73 | 0.643772 |
da5f1acb74339fcdbacad92bb9affb14bb7079c8 | 132 | exs | Elixir | config/prod.exs | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | 3 | 2018-05-29T12:16:14.000Z | 2019-09-25T21:12:36.000Z | config/prod.exs | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | 23 | 2018-05-25T21:09:43.000Z | 2021-12-16T05:45:25.000Z | config/prod.exs | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | null | null | null | import Config
config :logger, level: :info
config(:bearings, BearingsWeb.Endpoint, force_ssl: [rewrite_on: [:x_forwarded_proto]])
| 22 | 86 | 0.772727 |
da5f20be39db31f46afd07ec7f55ed2cf94a9ab9 | 407 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/components/client/public/_cright_component.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 3 | 2021-06-27T10:26:51.000Z | 2022-01-10T13:56:08.000Z | apps/mishka_html/lib/mishka_html_web/live/components/client/public/_cright_component.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | null | null | null | apps/mishka_html/lib/mishka_html_web/live/components/client/public/_cright_component.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | null | null | null | defmodule MishkaHtmlWeb.Client.Public.CrightComponent do
use MishkaHtmlWeb, :live_component
def render(assigns) do
~H"""
<div id="cright-inside">
<div class="space20"></div>
<p class="cright vazir"><%= MishkaTranslator.Gettext.dgettext("html_live_component", "ساخته شده به وسیله ترانگل © ... | 25.4375 | 140 | 0.636364 |
da5f451451f7e714d315f7bd30e61100cee9f2b9 | 69 | exs | Elixir | test/grizzly/command_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.Command.Test do
use ExUnit.Case, async: true
end
| 17.25 | 33 | 0.782609 |
da5f5316607c438f5dc1155f574f0811f43aa003 | 5,144 | ex | Elixir | lib/config_cat/client.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | null | null | null | lib/config_cat/client.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | null | null | null | lib/config_cat/client.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | null | null | null | defmodule ConfigCat.Client do
@moduledoc false
use GenServer
alias ConfigCat.{CachePolicy, Config, Constants, Rollout, User}
require Constants
require Logger
@type client :: ConfigCat.instance_id()
@type option ::
{:cache_policy, module()} | {:cache_policy_id, CachePolicy.id()} | {:name, cli... | 30.802395 | 98 | 0.677683 |
da5f7def702a2d822b9854301efb8de9d4cc1c3e | 2,490 | ex | Elixir | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/ingress_source.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/ingress_source.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/access_context_manager/lib/google_api/access_context_manager/v1/model/ingress_source.ex | 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... | 49.8 | 580 | 0.761446 |
da5fa2a475bddb14f800a6d893531e27bafc9043 | 843 | ex | Elixir | lib/paginator/page/metadata.ex | slapers/paginator | c5a5ab221c869a4b96191fb101e83ea377be3943 | [
"MIT"
] | 2 | 2020-05-29T17:35:14.000Z | 2020-12-04T20:37:40.000Z | lib/paginator/page/metadata.ex | slapers/paginator | c5a5ab221c869a4b96191fb101e83ea377be3943 | [
"MIT"
] | 2 | 2021-08-17T21:58:30.000Z | 2021-09-14T15:37:51.000Z | lib/paginator/page/metadata.ex | slapers/paginator | c5a5ab221c869a4b96191fb101e83ea377be3943 | [
"MIT"
] | 1 | 2019-05-28T23:48:25.000Z | 2019-05-28T23:48:25.000Z | defmodule Paginator.Page.Metadata do
@moduledoc """
Defines page metadata.
## Fields
* `after` - an opaque cursor representing the last row of the current page.
* `before` - an opaque cursor representing the first row of the current page.
* `limit` - the maximum number of entries that can be contained in ... | 31.222222 | 86 | 0.676157 |
da5fa8ea1f1f91b0371aeb40adee5fe718891549 | 1,536 | exs | Elixir | mix.exs | ayrat555/absinthe_phoenix | 4104c7213c328c3698b52710d49cd6d85449305c | [
"MIT"
] | null | null | null | mix.exs | ayrat555/absinthe_phoenix | 4104c7213c328c3698b52710d49cd6d85449305c | [
"MIT"
] | null | null | null | mix.exs | ayrat555/absinthe_phoenix | 4104c7213c328c3698b52710d49cd6d85449305c | [
"MIT"
] | null | null | null | defmodule Absinthe.Phoenix.Mixfile do
use Mix.Project
@version "1.4.3"
def project do
[
app: :absinthe_phoenix,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
doc... | 27.927273 | 118 | 0.578125 |
da5fb48fadef716561cd1b834a90b56d764452ed | 392 | ex | Elixir | lib/active_proxy/application.ex | Branch-Bunch/active-proxy | 92b1d271e8738257367356d726be6f9164cac6dd | [
"MIT"
] | 4 | 2018-12-05T19:49:14.000Z | 2018-12-07T15:21:33.000Z | lib/active_proxy/application.ex | Branch-Bunch/active-proxy | 92b1d271e8738257367356d726be6f9164cac6dd | [
"MIT"
] | null | null | null | lib/active_proxy/application.ex | Branch-Bunch/active-proxy | 92b1d271e8738257367356d726be6f9164cac6dd | [
"MIT"
] | null | null | null | defmodule ActiveProxy.Application do
use Application
require Logger
def start(_type, _args) do
children = [
{Task.Supervisor, name: ActiveProxy.TaskSupervisor},
Supervisor.child_spec({Task, fn -> ActiveProxy.Proxy.listen(8080) end}, restart: :permanent)
]
Logger.info("Starting Proxy...")... | 24.5 | 98 | 0.709184 |
da5fbfe19d21c3e159ce5cf50071d8e56260d61a | 3,812 | ex | Elixir | lib/automata/knowledge/blackboards/automata_blackboard.ex | upstarter/automata | c97badb2ea4ff7fef3bb35fe3311ae80d26f576a | [
"Apache-2.0"
] | 150 | 2020-02-04T15:10:52.000Z | 2022-02-19T15:33:17.000Z | lib/automata/knowledge/blackboards/automata_blackboard.ex | upstarter/automata | c97badb2ea4ff7fef3bb35fe3311ae80d26f576a | [
"Apache-2.0"
] | 31 | 2020-02-09T01:37:23.000Z | 2020-05-21T01:50:14.000Z | lib/automata/knowledge/blackboards/automata_blackboard.ex | upstarter/automata | c97badb2ea4ff7fef3bb35fe3311ae80d26f576a | [
"Apache-2.0"
] | 8 | 2020-02-06T04:42:20.000Z | 2022-01-21T00:21:20.000Z | defmodule Automata.Blackboard do
@moduledoc """
A global Blackboard for knowledge representations
Memory and Interaction Protocols
With large trees, we face another challenge: storage. In an ideal world,
each AI would have an entire tree allocated to it, with each behavior having
a persistent ... | 57.757576 | 89 | 0.759706 |
da5fdc6ff5411abee9608a21cf56b29ab7d42db0 | 656 | ex | Elixir | lib/wabanex/users/get.ex | igorkf/wabanex | 942b5e22c1285ef0206766935aed6f858f7fb16e | [
"RSA-MD"
] | null | null | null | lib/wabanex/users/get.ex | igorkf/wabanex | 942b5e22c1285ef0206766935aed6f858f7fb16e | [
"RSA-MD"
] | null | null | null | lib/wabanex/users/get.ex | igorkf/wabanex | 942b5e22c1285ef0206766935aed6f858f7fb16e | [
"RSA-MD"
] | null | null | null | defmodule Wabanex.Users.Get do
import Ecto.Query
alias Ecto.UUID
alias Wabanex.{User, Training, Repo}
def call(id) do
id
|> UUID.cast()
|> handle_response()
end
defp handle_response(:error) do
{:error, "Invalid UUID"}
end
defp handle_response({:ok, uuid}) do
case Repo.get(User, uu... | 21.866667 | 86 | 0.643293 |
da5fe0592435311970dfe952288182303e6a9e8a | 890 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/game_services/lib/google_api/game_services/v1/metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # 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.962963 | 74 | 0.760674 |
da5ff1fdb5b3c175e445848a242808559c2301fa | 3,047 | exs | Elixir | test/phoenix/endpoint_test.exs | benjamintanweihao/phoenix | eb4ef03852f447d67cd61355753147c39b520e1f | [
"MIT"
] | null | null | null | test/phoenix/endpoint_test.exs | benjamintanweihao/phoenix | eb4ef03852f447d67cd61355753147c39b520e1f | [
"MIT"
] | null | null | null | test/phoenix/endpoint_test.exs | benjamintanweihao/phoenix | eb4ef03852f447d67cd61355753147c39b520e1f | [
"MIT"
] | null | null | null | defmodule Phoenix.EndpointTest do
use ExUnit.Case, async: true
use RouterHelper
@config [url: [host: "example.com", path: "/api"],
server: false,
pubsub: [adapter: Phoenix.PubSub.PG2, name: :endpoint_pub]]
Application.put_env(:phoenix, __MODULE__.Endpoint, @config)
defmodule Endpoint d... | 35.847059 | 98 | 0.669511 |
da6000c5c9e4ebcb2a854edadca0b12e55ce12e3 | 1,072 | ex | Elixir | lib/herminio_torres/application.ex | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | lib/herminio_torres/application.ex | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | lib/herminio_torres/application.ex | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | defmodule HerminioTorres.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
HerminioTorresWeb.Telemetry,
# Star... | 29.777778 | 72 | 0.721082 |
da6032c690bce2f99255ff7f954458f32ffd909d | 368 | exs | Elixir | priv/repo/migrations/20170426142928_create_users_table.exs | vbrazo/blog_api | 8a3e15c666beef8f33b6d323627f92379267ecd9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170426142928_create_users_table.exs | vbrazo/blog_api | 8a3e15c666beef8f33b6d323627f92379267ecd9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170426142928_create_users_table.exs | vbrazo/blog_api | 8a3e15c666beef8f33b6d323627f92379267ecd9 | [
"MIT"
] | null | null | null | defmodule BlogApi.Repo.Migrations.CreateUsersTable do
use Ecto.Migration
def change do
create table(:users) do
add(:username, :string)
add(:password, :string)
add(:email, :string)
add(:bio, :string)
add(:image, :string)
timestamps(inserted_at: :created_at)
end
crea... | 20.444444 | 53 | 0.646739 |
da603b0e2eb3e7ae5aee21b6ccd398103a7f42a1 | 3,640 | exs | Elixir | test/centaurus_test.exs | mischief901/centaurus | 0765a747b54abb073baf61b18eb10c46928d6c74 | [
"MIT"
] | 4 | 2020-11-15T10:17:13.000Z | 2021-05-10T16:32:28.000Z | test/centaurus_test.exs | mischief901/centaurus | 0765a747b54abb073baf61b18eb10c46928d6c74 | [
"MIT"
] | null | null | null | test/centaurus_test.exs | mischief901/centaurus | 0765a747b54abb073baf61b18eb10c46928d6c74 | [
"MIT"
] | null | null | null | defmodule CentaurusTest do
use ExUnit.Case
doctest Centaurus
alias Centaurus.Core
alias Centaurus.Types
alias Types.SocketConfig
alias Types.StreamConfig
alias Types.Options
setup_all do
cert_dir = :code.priv_dir(:centaurus) |> to_string
Centaurus.Nif.create_cert_and_key(cert_dir, "centaurus... | 35.686275 | 102 | 0.666484 |
da60553a82b18aa3338887c55300c142f8aeb6ad | 4,334 | ex | Elixir | lib/vintage_net/interface/udhcpc.ex | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | lib/vintage_net/interface/udhcpc.ex | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | lib/vintage_net/interface/udhcpc.ex | GregMefford/vintage_net | fdbbd80d45f4b660e72e0150aa4b98a1155b071e | [
"Apache-2.0"
] | null | null | null | defmodule VintageNet.Interface.Udhcpc do
@behaviour VintageNet.ToElixir.UdhcpcHandler
alias VintageNet.{Command, InterfacesMonitor, NameResolver, RouteManager}
require Logger
@doc """
Handle deconfig reports from udhcpc
"""
@impl true
def deconfig(ifname, info) do
_ = Logger.info("#{ifname} dhcp ... | 27.0875 | 79 | 0.629211 |
da6057ae0a0f054da217d85dec56ffa4c22ecaa3 | 13,006 | ex | Elixir | lib/livebook_web/live/home_live.ex | chamot1111/livebook | 4ff1ff0d5a3c664fdf53b71667b9b4660ce8d7f4 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live.ex | chamot1111/livebook | 4ff1ff0d5a3c664fdf53b71667b9b4660ce8d7f4 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live.ex | chamot1111/livebook | 4ff1ff0d5a3c664fdf53b71667b9b4660ce8d7f4 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.HomeLive do
use LivebookWeb, :live_view
import LivebookWeb.UserHelpers
import LivebookWeb.SessionHelpers
alias LivebookWeb.{SidebarHelpers, ExploreHelpers}
alias Livebook.{Sessions, Session, LiveMarkdown, Notebook, FileSystem}
@impl true
def mount(_params, %{"current_user_id" => c... | 33.607235 | 105 | 0.576349 |
da6089d7ba45deb0cdbea9daffef974f8534647e | 65 | ex | Elixir | lib/academy/repo.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-06-18T17:46:14.000Z | 2020-01-21T03:19:41.000Z | lib/academy/repo.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 18 | 2016-06-18T18:05:43.000Z | 2018-03-06T08:19:41.000Z | lib/academy/repo.ex | ClubNix/academy | 962be0defc1d8eedc5d19ac0a65e931c794c6538 | [
"MIT"
] | 3 | 2016-10-26T19:51:06.000Z | 2018-09-18T09:06:14.000Z | defmodule Academy.Repo do
use Ecto.Repo, otp_app: :academy
end
| 16.25 | 34 | 0.769231 |
da6091b9089d2c0bbb031d7615506c94d3a9cb17 | 127 | exs | Elixir | test/fixtures/parser/create_index.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 23 | 2021-10-29T19:58:35.000Z | 2021-11-13T21:42:45.000Z | test/fixtures/parser/create_index.exs | maximemenager/strong_migrations | b7e091d2cfed73098d3bf683c7ce5c8ceee3159b | [
"MIT"
] | 1 | 2021-10-31T03:57:47.000Z | 2021-10-31T14:33:45.000Z | test/fixtures/parser/create_index.exs | surgeventures/strong_migrations | 3c82e34a6e7a372c6de17ba7a0b07da7664baa26 | [
"MIT"
] | 3 | 2021-10-31T02:14:10.000Z | 2021-11-09T08:07:22.000Z | defmodule CreateIndex do
@moduledoc false
use Ecto.Migration
def change do
create(index(:users, :email))
end
end
| 12.7 | 33 | 0.708661 |
da609dfad18ad308ccfbf62acca71d9a3012bbb2 | 180,328 | ex | Elixir | lib/pbbuilder_lit/dol.ex | StBarCo/pbbuilder | 9d6eb47d6137a6a16cd746a0c1418493f94043d5 | [
"MIT"
] | null | null | null | lib/pbbuilder_lit/dol.ex | StBarCo/pbbuilder | 9d6eb47d6137a6a16cd746a0c1418493f94043d5 | [
"MIT"
] | null | null | null | lib/pbbuilder_lit/dol.ex | StBarCo/pbbuilder | 9d6eb47d6137a6a16cd746a0c1418493f94043d5 | [
"MIT"
] | null | null | null | defmodule PbbuilderLit.DOL do
import Service
alias PbbuilderWeb.Couchdb
def dolToCouch do
dol
|> Map.keys()
|> Enum.map(&(dol[&1] |> Jason.encode!() |> Couchdb.create(&1, "lectionary")))
end
def dol do
%{
"antiphon_advent" => ["Our King and Savior now draws near: O come, let us adore h... | 40.135322 | 273 | 0.434558 |
da60a4b1fb17fc0abd5982dba0f65f86242657fc | 5,066 | ex | Elixir | lib/memcache/receiver.ex | thecodeboss/memcachex | d6de70a8b93524a71dc54f736fcb79b5377718fd | [
"MIT"
] | null | null | null | lib/memcache/receiver.ex | thecodeboss/memcachex | d6de70a8b93524a71dc54f736fcb79b5377718fd | [
"MIT"
] | null | null | null | lib/memcache/receiver.ex | thecodeboss/memcachex | d6de70a8b93524a71dc54f736fcb79b5377718fd | [
"MIT"
] | 2 | 2019-03-12T13:47:13.000Z | 2019-05-29T23:10:57.000Z | defmodule Memcache.Receiver do
@moduledoc false
use GenServer
alias Memcache.Protocol
defmodule State do
@moduledoc false
defstruct sock: nil, parent: nil, buffer: <<>>
end
def start_link(args) do
GenServer.start_link(__MODULE__, args)
end
def stop(receiver) do
GenServer.stop(receive... | 28.784091 | 101 | 0.64015 |
da60a8eec63655ebd0d2242592fb896f00708678 | 701 | exs | Elixir | mix.exs | NikolaMandic/ex_aerospike | cdec83b117ce3ae7837f401c5cc1d2cc261ceee4 | [
"MIT"
] | 8 | 2015-03-11T06:23:09.000Z | 2019-04-01T09:31:06.000Z | mix.exs | NikolaMandic/ex_aerospike | cdec83b117ce3ae7837f401c5cc1d2cc261ceee4 | [
"MIT"
] | 3 | 2015-05-06T11:16:58.000Z | 2021-07-05T05:16:18.000Z | mix.exs | NikolaMandic/ex_aerospike | cdec83b117ce3ae7837f401c5cc1d2cc261ceee4 | [
"MIT"
] | 2 | 2015-05-01T03:46:18.000Z | 2016-05-19T11:26:02.000Z | defmodule ExAerospike.Mixfile do
use Mix.Project
def project do
[app: :ex_aerospike,
version: "0.0.1",
elixir: "~> 1.0.0",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger]]
en... | 21.242424 | 96 | 0.623395 |
da60f0da98fc3f8619bae9d73833faf2eaed0415 | 776 | ex | Elixir | lib/hexa/songs_cleaner.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa/songs_cleaner.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa/songs_cleaner.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | defmodule Hexa.SongsCleaner do
@moduledoc """
Expire user songs using a polling interval.
"""
use GenServer
alias Hexa.MediaLibrary
@poll_interval :timer.minutes(30)
def start_link(opts) do
GenServer.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl true
def init(opts) do
{count, ... | 24.25 | 80 | 0.712629 |
da6111e5a622e7ae235275e762e96a9472d99a38 | 2,017 | ex | Elixir | lib/accio/cli/parser.ex | g1ntas/ex-accio | 18f82b8dba1dbb0087505a3016259ae936a62fbe | [
"MIT"
] | null | null | null | lib/accio/cli/parser.ex | g1ntas/ex-accio | 18f82b8dba1dbb0087505a3016259ae936a62fbe | [
"MIT"
] | null | null | null | lib/accio/cli/parser.ex | g1ntas/ex-accio | 18f82b8dba1dbb0087505a3016259ae936a62fbe | [
"MIT"
] | null | null | null | defmodule Accio.CLI.Parser do
@moduledoc """
Process executable arguments.
"""
@switches [:username, :token, :path, :help, :vars]
@aliases [
u: :username,
t: :token,
h: :help,
v: :vars
]
@doc """
Parses arguments and returns tuple to use in processor.
"""
@spec parse_args(list) ::... | 32.532258 | 117 | 0.570649 |
da613155288ecb9bb4d8256c818dc736d2b4bd32 | 2,095 | ex | Elixir | charts/lib/charts/stacked_bar_chart/base_chart_impl.ex | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | charts/lib/charts/stacked_bar_chart/base_chart_impl.ex | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | charts/lib/charts/stacked_bar_chart/base_chart_impl.ex | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | defimpl Charts.StackedBarChart, for: Charts.BaseChart do
alias Charts.BaseChart
alias Charts.StackedBarChart.MultiBar
alias Charts.StackedColumnChart.Rectangle
alias Charts.BarChart.Dataset
def rows(%BaseChart{dataset: nil}), do: []
def rows(%BaseChart{dataset: dataset}), do: rows(dataset)
def rows(%Data... | 25.864198 | 73 | 0.586635 |
da613cf14e472c3459fe706dea92cb6afd4b0de8 | 12,442 | exs | Elixir | test/credo/check/warning/unused_tuple_operation_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/warning/unused_tuple_operation_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | test/credo/check/warning/unused_tuple_operation_test.exs | sevenseacat/credo | 48837401040d9c2340b5fb9c7d786d31f89f6426 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Warning.UnusedTupleOperationTest do
use Credo.TestHelper
@described_check Credo.Check.Warning.UnusedTupleOperation
test "it should NOT report expected code" do
"""
defmodule CredoSampleModule do
def some_function(parameter1, parameter2) do
Tuple.to_list(parameter1) + parameter2
end... | 25.340122 | 145 | 0.649172 |
da615db4e068b22b364b103fcddded9892f2596a | 1,631 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/flatten_instruction.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/flatten_instruction.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/flatten_instruction.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... | 34.702128 | 150 | 0.748007 |
da62522b860e1e057f6c0416c87a747779e45cd8 | 4,275 | ex | Elixir | lib/phoenix/live_dashboard/system_info.ex | LostKobrakai/phoenix_live_dashboard | 3bee701e489eb092b7b2b80e5d3a0c4b2472c770 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/system_info.ex | LostKobrakai/phoenix_live_dashboard | 3bee701e489eb092b7b2b80e5d3a0c4b2472c770 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/system_info.ex | LostKobrakai/phoenix_live_dashboard | 3bee701e489eb092b7b2b80e5d3a0c4b2472c770 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.SystemInfo do
# Helpers for fetching and formatting system info.
@moduledoc false
## Formatters
def format_call({m, f, a}), do: Exception.format_mfa(m, f, a)
def format_uptime(uptime) do
{d, {h, m, _s}} = :calendar.seconds_to_daystime(div(uptime, 1000))
cond do
... | 27.580645 | 86 | 0.637661 |
da6265bcc76bcdb84ced0f7b4bde1a948bc31206 | 1,129 | ex | Elixir | apps/quickstart_web/test/support/channel_case.ex | jdcumpson/elixir-phoenix-ssr-redux-postgres | 20ecf8bac1322be273ed6441bb586b8574998286 | [
"MIT"
] | 1 | 2020-11-04T04:32:56.000Z | 2020-11-04T04:32:56.000Z | apps/quickstart_web/test/support/channel_case.ex | jdcumpson/elixir-phoenix-ssr-redux-postgres | 20ecf8bac1322be273ed6441bb586b8574998286 | [
"MIT"
] | 4 | 2021-10-06T22:46:17.000Z | 2022-02-27T12:04:59.000Z | apps/quickstart_web/test/support/channel_case.ex | jdcumpson/elixir-phoenix-ssr-redux-postgres | 20ecf8bac1322be273ed6441bb586b8574998286 | [
"MIT"
] | null | null | null | defmodule QuickstartWeb.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 data structures and query the data layer.
Finally, if the test case interact... | 27.536585 | 72 | 0.731621 |
da626a65d3dd7a6178003a8ec5b52a5fce032e54 | 712 | exs | Elixir | day06/el_b.exs | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | 1 | 2019-12-13T22:44:09.000Z | 2019-12-13T22:44:09.000Z | day06/el_b.exs | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | null | null | null | day06/el_b.exs | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | 1 | 2019-12-05T21:06:06.000Z | 2019-12-05T21:06:06.000Z | Code.require_file("el.ex", __DIR__)
map =
File.stream!("day06/input.txt", [encoding: :utf8], :line)
|> Stream.map(&Day06.parse_orbit/1)
|> Enum.reduce(%{}, &Day06.insert_orbit(&2, &1))
|> Day06.objects_set_orbit_depth
src_orbit_list = Day06.orbit_list(map, "YOU")
dst_orbit_list = Day06.orbit_list(map, "SAN")
... | 28.48 | 70 | 0.691011 |
da627b8cbe5ff63735da6c16c752dc7b34432d84 | 1,161 | exs | Elixir | config/config.exs | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | config/config.exs | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | config/config.exs | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | null | null | null | use Mix.Config
# General application configuration
config :conduit, ecto_repos: [Conduit.Repo]
# Configures the endpoint
config :conduit, ConduitWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "hXslnxxJrzfI918PrmgkZZwJU3GYhT8y1500AP6Foxq9aDgjChbi0BcMdsscFkAs",
render_errors: [view: ConduitWeb.ErrorView... | 26.386364 | 86 | 0.758829 |
da628d69112b04d1fa4bb767b8c6b046053ab185 | 8,611 | exs | Elixir | test/conduit/test_test.exs | Astrocoders/conduit | db1288219f015c1156c5b3119813f6367c001f41 | [
"MIT"
] | 119 | 2016-11-21T13:19:22.000Z | 2021-11-07T17:29:05.000Z | test/conduit/test_test.exs | Astrocoders/conduit | db1288219f015c1156c5b3119813f6367c001f41 | [
"MIT"
] | 104 | 2018-02-02T20:42:46.000Z | 2021-08-03T05:36:09.000Z | test/conduit/test_test.exs | Astrocoders/conduit | db1288219f015c1156c5b3119813f6367c001f41 | [
"MIT"
] | 21 | 2018-08-03T02:38:21.000Z | 2022-03-16T18:26:58.000Z | defmodule Conduit.TestSharedTest do
use ExUnit.Case, async: false
use Conduit.Test, shared: true
setup do
Application.put_env(
:shared_test_app,
Conduit.TestSharedTest.Broker,
adapter: Conduit.TestAdapter
)
:ok
end
defmodule Broker do
@moduledoc false
use Conduit.Broke... | 26.015106 | 84 | 0.723377 |
da62f4aa1329a0af983ddc79715cfe5e6df79ed3 | 1,806 | ex | Elixir | backend/test/support/geolocation_mock_case.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/test/support/geolocation_mock_case.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | backend/test/support/geolocation_mock_case.ex | bejolithic/honeyland | 8c4a0d3b56543648d3acb96cc6906df86526743b | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Honeyland.
#
# Copyright 2022 Nervive Studio
#
# 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 ... | 26.955224 | 74 | 0.745847 |
da633d82cdf30d8eb2ab1cb531ffb417315e0756 | 993 | ex | Elixir | lib/proxy.ex | AntonFagerberg/rackla | b8007313255b4311a5ba226e0b3827364118f43d | [
"Apache-2.0"
] | 292 | 2015-06-05T07:19:43.000Z | 2021-09-13T04:58:55.000Z | lib/proxy.ex | johnwahba/rackla | b8007313255b4311a5ba226e0b3827364118f43d | [
"Apache-2.0"
] | 17 | 2015-06-05T07:39:41.000Z | 2017-03-01T18:54:48.000Z | lib/proxy.ex | johnwahba/rackla | b8007313255b4311a5ba226e0b3827364118f43d | [
"Apache-2.0"
] | 32 | 2015-06-05T07:27:45.000Z | 2018-11-29T09:18:42.000Z | defmodule Rackla.Proxy do
@moduledoc """
`Rackla.Proxy` settings struct for using a proxy in outbound requests.
Required:
* `type` - `:socks5` (SOCKS5) or `:connect` (HTTP tunnel), default: `:socks5`.
* `host` - Host, example: `"127.0.0.1"` or `"localhost"`, default: `"localhost"`.
* `port` - Port, example... | 32.032258 | 83 | 0.5428 |
da636391c8345ca78656193fe5a88341e6bb9cd3 | 102 | ex | Elixir | lib/nudge/repo.ex | code-mancers/nudge | 6237a508203e73fbb0280d6aa428d83cbd347c11 | [
"MIT"
] | null | null | null | lib/nudge/repo.ex | code-mancers/nudge | 6237a508203e73fbb0280d6aa428d83cbd347c11 | [
"MIT"
] | 17 | 2021-08-04T12:44:20.000Z | 2021-09-09T07:25:00.000Z | lib/nudge/repo.ex | code-mancers/nudge | 6237a508203e73fbb0280d6aa428d83cbd347c11 | [
"MIT"
] | null | null | null | defmodule Nudge.Repo do
use Ecto.Repo,
otp_app: :nudge,
adapter: Ecto.Adapters.Postgres
end
| 17 | 35 | 0.715686 |
da6375fbb22a0d256aac2f138049de935fd9ac78 | 724 | ex | Elixir | server/lib/melody_match_web/gettext.ex | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | null | null | null | server/lib/melody_match_web/gettext.ex | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | 4 | 2021-03-28T03:09:37.000Z | 2021-04-10T17:45:10.000Z | server/lib/melody_match_web/gettext.ex | brianjaustin/melody-match | 5200fd347f7ae636ec782398896c782d80c17f59 | [
"Apache-1.1"
] | null | null | null | defmodule MelodyMatchWeb.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 MelodyMatchWeb.Gettext
# Simple translation
gettext("H... | 28.96 | 72 | 0.683702 |
da639ff6f4adc56145909f8f344aaac96c258006 | 1,985 | exs | Elixir | config/prod.exs | maxdec/cellar | 056202b1d90748378e16edc9fdcade8c0491f2b1 | [
"MIT"
] | null | null | null | config/prod.exs | maxdec/cellar | 056202b1d90748378e16edc9fdcade8c0491f2b1 | [
"MIT"
] | null | null | null | config/prod.exs | maxdec/cellar | 056202b1d90748378e16edc9fdcade8c0491f2b1 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.016129 | 67 | 0.712343 |
da63a09d9d152ffca8fd6859b2b74a9e090de75f | 1,054 | ex | Elixir | apps/nerves_hub_www/lib/nerves_hub_www/application.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_www/lib/nerves_hub_www/application.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_www/lib/nerves_hub_www/application.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubWWW.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
# Start the hackney pool for connections to NervesHubCA
NervesHubWebCore.CertificateAuthority.start_pool()
# Define workers a... | 34 | 90 | 0.739089 |
da63a1e5b3d39556aa59b06316d2173777819073 | 872 | ex | Elixir | lib/evolvr/basics.ex | matthewmacleod/evolvr | 6392f0e03a8218ea70e86afdd187dcf728155072 | [
"MIT"
] | 3 | 2015-12-29T21:13:23.000Z | 2017-08-14T22:35:25.000Z | lib/evolvr/basics.ex | matthewmacleod/evolvr | 6392f0e03a8218ea70e86afdd187dcf728155072 | [
"MIT"
] | null | null | null | lib/evolvr/basics.ex | matthewmacleod/evolvr | 6392f0e03a8218ea70e86afdd187dcf728155072 | [
"MIT"
] | null | null | null | defmodule Evolvr.Basics do
@moduledoc """
A collection of simple utilities
* additional list functions
* print functions
"""
### list type functions ###
@doc"""
Input: list
Output: sorted list
NB n log n algorithm
"""
def qsort([]), do: []
def qsort([head|tail]) do
smaller = fn list... | 17.795918 | 60 | 0.59289 |
da63a9399143b686d839cd0b2c93a5c17ec3a7d6 | 333 | ex | Elixir | lib/algae/state/apply.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 191 | 2016-08-22T17:34:45.000Z | 2019-05-28T19:02:39.000Z | lib/algae/state/apply.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 35 | 2016-08-30T20:56:22.000Z | 2019-05-02T17:32:31.000Z | lib/algae/state/apply.ex | doma-engineering/algae | da85c5a9e78591c707859f07f9d485ed68019349 | [
"MIT"
] | 10 | 2016-08-30T18:41:54.000Z | 2019-02-14T14:14:55.000Z | alias Algae.State
import TypeClass
definst Witchcraft.Apply, for: Algae.State do
@force_type_instance true
def convey(%State{runner: state_g}, %State{runner: state_f}) do
fg =
fn(s) ->
{x, t} = state_f.(s)
{y, u} = state_g.(t)
{x.(y), u}
end
State.new(fn x -> fg.(x) en... | 19.588235 | 65 | 0.573574 |
da63fa8b9c76902d97b709a7636a402dfb8d3d4d | 7,805 | ex | Elixir | clients/reseller/lib/google_api/reseller/v1/api/resellernotify.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/api/resellernotify.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/api/resellernotify.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 43.848315 | 187 | 0.655349 |
da645f9d273a8d5d29e7c94e5aad3ae0b069748b | 4,933 | ex | Elixir | lib/hangman/cli_handler.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | 1 | 2016-12-19T00:10:34.000Z | 2016-12-19T00:10:34.000Z | lib/hangman/cli_handler.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | lib/hangman/cli_handler.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | defmodule Hangman.CLI.Handler do
@moduledoc """
Module drives `Player.Controller`, while
setting up the proper `Game` server and `Event` consumer states beforehand.
Simply stated it politely nudges the player to proceed to the next
course of action or make the next guess. The handler also collects
input... | 29.363095 | 99 | 0.647476 |
da6464c9ab107afb02f0982ba16aa40423d0ce7f | 2,397 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/dataset_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/dataset_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/dataset_list.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... | 42.803571 | 352 | 0.721736 |
da64c8f4fe857db0d1c30e29ac500e1ba0e17d13 | 2,405 | exs | Elixir | benchmarks/jobs_table_indexing.exs | lpil/rihanna | 83db1fab1550244a9e3cb347ccda607f5ff4e4b5 | [
"MIT"
] | 1 | 2019-02-11T14:07:57.000Z | 2019-02-11T14:07:57.000Z | benchmarks/jobs_table_indexing.exs | lpil/rihanna | 83db1fab1550244a9e3cb347ccda607f5ff4e4b5 | [
"MIT"
] | null | null | null | benchmarks/jobs_table_indexing.exs | lpil/rihanna | 83db1fab1550244a9e3cb347ccda607f5ff4e4b5 | [
"MIT"
] | null | null | null | defmodule Rihanna.JobsTableIndexing do
@moduledoc """
Benchmark to compare the affect of an index applied to the Rihanna jobs table.
To run this benchmark:
$ MIX_ENV=test mix run benchmarks/jobs_table_indexing.exs
"""
def benchmark do
Benchee.run(
%{
"with index" => {
&loc... | 22.688679 | 80 | 0.580042 |
da652b91369d3237a4ba76656e78b39080816f76 | 5,155 | ex | Elixir | lib/ueberauth/strategy/salesforce.ex | grain-team/ueberauth_salesforce | df47ac22d9041f60c06daa7eaf1f1f582cda95e5 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/salesforce.ex | grain-team/ueberauth_salesforce | df47ac22d9041f60c06daa7eaf1f1f582cda95e5 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/salesforce.ex | grain-team/ueberauth_salesforce | df47ac22d9041f60c06daa7eaf1f1f582cda95e5 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Salesforce do
@moduledoc """
Salesforce Strategy for Überauth.
"""
use Ueberauth.Strategy,
uid_field: :sub,
default_scope: "openid",
hd: nil,
userinfo_endpoint: "https://login.salesforce.com/services/oauth2/userinfo"
alias Ueberauth.Auth.Info
alias Ueberauth.Au... | 28.016304 | 90 | 0.659554 |
da6563dede3d38c0d3cdd4b0f49c732787df5a5f | 219 | exs | Elixir | test/controllers/page_controller_test.exs | pchmiele/team-vacation-tool | 862243a94e6b95639629f4ed9653bc81b6522add | [
"Apache-2.0"
] | null | null | null | test/controllers/page_controller_test.exs | pchmiele/team-vacation-tool | 862243a94e6b95639629f4ed9653bc81b6522add | [
"Apache-2.0"
] | null | null | null | test/controllers/page_controller_test.exs | pchmiele/team-vacation-tool | 862243a94e6b95639629f4ed9653bc81b6522add | [
"Apache-2.0"
] | null | null | null | defmodule TeamVacationTool.PageControllerTest do
use TeamVacationTool.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "<div id=\"elm-main\"></div>"
end
end
| 24.333333 | 68 | 0.671233 |
da656a41135615747f0e154fa835c4ac353a6749 | 11,857 | ex | Elixir | lib/absinthe/pipeline.ex | myronmarston/absinthe | d94d1bb5d9ede3a8715f5a6ce6ce607126d4d756 | [
"MIT"
] | null | null | null | lib/absinthe/pipeline.ex | myronmarston/absinthe | d94d1bb5d9ede3a8715f5a6ce6ce607126d4d756 | [
"MIT"
] | null | null | null | lib/absinthe/pipeline.ex | myronmarston/absinthe | d94d1bb5d9ede3a8715f5a6ce6ce607126d4d756 | [
"MIT"
] | null | null | null | defmodule Absinthe.Pipeline do
@moduledoc """
Execute a pipeline of phases.
A pipeline is merely a list of phases. This module contains functions for building,
modifying, and executing pipelines of phases.
"""
alias Absinthe.Phase
require Logger
@type data_t :: any
@type phase_config_t :: Phase.t... | 29.204433 | 88 | 0.645104 |
da659f4e73de8ea9cb86a8fefcd54ab60806aa50 | 2,507 | ex | Elixir | lib/honeybadger/logger.ex | saneery/honeybadger-elixir | ac81da237ef9c138e322f8ee50f770d8f81c0c8b | [
"MIT"
] | null | null | null | lib/honeybadger/logger.ex | saneery/honeybadger-elixir | ac81da237ef9c138e322f8ee50f770d8f81c0c8b | [
"MIT"
] | null | null | null | lib/honeybadger/logger.ex | saneery/honeybadger-elixir | ac81da237ef9c138e322f8ee50f770d8f81c0c8b | [
"MIT"
] | null | null | null | defmodule Honeybadger.Logger do
alias Honeybadger.Breadcrumbs.{Collector, Breadcrumb}
@moduledoc false
@behaviour :gen_event
@impl true
def init(__MODULE__) do
init({__MODULE__, []})
end
def init({__MODULE__, opts}) when is_list(opts) do
level = Keyword.get(opts, :level)
{:ok, %{level: le... | 22.585586 | 98 | 0.652174 |
da65a0b7e72a0c97c4907c02abb842aceaac4af4 | 1,203 | ex | Elixir | lib/nestru/encoder.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | 15 | 2021-11-10T23:15:29.000Z | 2022-03-26T01:03:38.000Z | lib/nestru/encoder.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | lib/nestru/encoder.ex | IvanRublev/Nestru | 4e65cdbeec812de718fc3373c2f1ab92c4fbcca7 | [
"MIT"
] | null | null | null | defprotocol Nestru.Encoder do
@fallback_to_any true
@doc """
Returns the fields map from the encodable struct to be merged to the return map.
The implementation for `Any` makes a map by calling `Map.from_struct/1`.
This function is a good place for encoding struct type into the map
for further decoding.
... | 28.642857 | 176 | 0.719036 |
da65d63910b0d00020ad737726154e98d4c88b9a | 2,892 | ex | Elixir | lib/deneb/viewer.ex | tyrchen/deneb | 97759b57700816471feabf3fb97676d5e28e2261 | [
"MIT"
] | 4 | 2021-03-07T01:11:30.000Z | 2021-09-03T06:40:48.000Z | lib/deneb/viewer.ex | tyrchen/deneb | 97759b57700816471feabf3fb97676d5e28e2261 | [
"MIT"
] | null | null | null | lib/deneb/viewer.ex | tyrchen/deneb | 97759b57700816471feabf3fb97676d5e28e2261 | [
"MIT"
] | 1 | 2021-05-04T12:06:39.000Z | 2021-05-04T12:06:39.000Z | defmodule Deneb.Viewer do
@moduledoc """
Vega-lite chart viewer
"""
@cdn_url ~S"https://cdn.jsdelivr.net/npm/<%= package %>@<%= version %>"
@versions %{
"vega" => Deneb.MixProject.vega(),
"vega-lite" => Deneb.MixProject.vega_lite(),
"vega-embed" => Deneb.MixProject.vega_embed()
}
@inline_ht... | 31.78022 | 186 | 0.58195 |
da65fb0714fbc617717ae6b50db1e4c6efd58a8d | 1,949 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/storage_source.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/storage_source.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/storage_source.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... | 34.803571 | 119 | 0.722935 |
da661d27cc49bc99888a77dca4211363ad9cae12 | 1,906 | exs | Elixir | mix.exs | sudokid-software/12-day-mmo | 8b3038e754078a3361de6c9b516cb192f2ef0202 | [
"BSD-2-Clause"
] | 1 | 2021-01-04T21:25:35.000Z | 2021-01-04T21:25:35.000Z | mix.exs | visheshc14/Prisonic-Fairytale | 91152fbf3662952146e29ff36a45ad20bebe4558 | [
"MIT"
] | null | null | null | mix.exs | visheshc14/Prisonic-Fairytale | 91152fbf3662952146e29ff36a45ad20bebe4558 | [
"MIT"
] | null | null | null | defmodule Mmo.MixProject do
use Mix.Project
def project do
[
app: :mmo,
version: "0.1.7",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps:... | 28.029412 | 84 | 0.571354 |
da6620f2549f113d73718f2628d31f833d86e56c | 1,262 | ex | Elixir | apps/desafio_api_web/test/support/conn_case.ex | brunobamaral/desafio_api | 90362b0fa6c0c9e3c4d1c212fe84b7ad264a46f6 | [
"Apache-2.0"
] | null | null | null | apps/desafio_api_web/test/support/conn_case.ex | brunobamaral/desafio_api | 90362b0fa6c0c9e3c4d1c212fe84b7ad264a46f6 | [
"Apache-2.0"
] | null | null | null | apps/desafio_api_web/test/support/conn_case.ex | brunobamaral/desafio_api | 90362b0fa6c0c9e3c4d1c212fe84b7ad264a46f6 | [
"Apache-2.0"
] | null | null | null | defmodule DesafioApiWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if... | 28.681818 | 72 | 0.729002 |
da669ab4bd3d265461c5110692513b4fd71e8643 | 1,892 | exs | Elixir | mix.exs | plemora-mirror/elixir-captcha | e0f16822d578866e186a0974d65ad58cddc1e2ab | [
"MIT"
] | null | null | null | mix.exs | plemora-mirror/elixir-captcha | e0f16822d578866e186a0974d65ad58cddc1e2ab | [
"MIT"
] | null | null | null | mix.exs | plemora-mirror/elixir-captcha | e0f16822d578866e186a0974d65ad58cddc1e2ab | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Compile.Make do
def run(_) do
{result, _error_code} = System.cmd("make", [], stderr_to_stdout: true)
Mix.shell().info(result)
:ok
end
end
defmodule Mix.Tasks.Clean.Make do
def run(_) do
{result, _error_code} = System.cmd("make", ['clean'], stderr_to_stdout: true)
Mix.shel... | 21.022222 | 131 | 0.567125 |
da669b067f1caf4a9cd33628858dd6822a3c00e5 | 1,904 | ex | Elixir | lib/rdb_parser/redis_set.ex | joshuawscott/rdb_parser | 388f0c0b05a29dfb1fbdfad8916cecb71d9897f6 | [
"MIT"
] | null | null | null | lib/rdb_parser/redis_set.ex | joshuawscott/rdb_parser | 388f0c0b05a29dfb1fbdfad8916cecb71d9897f6 | [
"MIT"
] | null | null | null | lib/rdb_parser/redis_set.ex | joshuawscott/rdb_parser | 388f0c0b05a29dfb1fbdfad8916cecb71d9897f6 | [
"MIT"
] | null | null | null | defmodule RdbParser.RedisSet do
@moduledoc false
# Parses redis sets from the rdb format
# RedisSet.parse looks at the first byte to determine how the length is encoded, then takes the
# length bytes and extracts the set values.
alias RdbParser.RedisString
@spec parse(binary) :: :incomplete | MapSet.t()
... | 30.222222 | 98 | 0.691702 |
da66aeee70fc31c6280c9db6c84846fa8f6b9efa | 10,264 | ex | Elixir | lib/mix/lib/mix/project.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/project.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/project.ex | liveforeverx/elixir | cf3cf0bd5443b59206e5733602244bc3543f0a53 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Project do
@moduledoc """
Defines and manipulate Mix projects.
In order to configure Mix, a developer needs to use
`Mix.Project` in a module and define a function named
`project` that returns a keyword list with configuration.
defmodule MyApp do
use Mix.Project
def proje... | 25.98481 | 99 | 0.646532 |
da66b8ac8eaddcf3200cc14407022b649ea839f3 | 26,847 | exs | Elixir | lib/mix/test/mix/dep_test.exs | KronicDeth/elixir | 1c9be51dc3264c36af475c55140be4ad5c2bde19 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/dep_test.exs | KronicDeth/elixir | 1c9be51dc3264c36af475c55140be4ad5c2bde19 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/dep_test.exs | KronicDeth/elixir | 1c9be51dc3264c36af475c55140be4ad5c2bde19 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Mix.DepTest do
use MixTest.Case
defmodule DepsApp do
def project do
[
deps: [
{:ok, "0.1.0", path: "deps/ok"},
{:invalidvsn, "0.2.0", path: "deps/invalidvsn"},
{:invalidapp, "0.1.0", path: "deps/invalidapp"}... | 31.326721 | 102 | 0.597944 |
da66c3f364166add4767c2c67eac815b526cfdc6 | 2,802 | ex | Elixir | apps/omg_watcher_info/lib/omg_watcher_info/order_fee_fetcher.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher_info/lib/omg_watcher_info/order_fee_fetcher.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher_info/lib/omg_watcher_info/order_fee_fetcher.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 40.028571 | 103 | 0.709136 |
da66d44a580b525c67fe832473099e4aaedf4fa0 | 693 | exs | Elixir | mix.exs | defndaines/logger_logstash_backend | 0670cda41374a3d899dbd3aa00780ced08a9b9f5 | [
"Apache-2.0"
] | null | null | null | mix.exs | defndaines/logger_logstash_backend | 0670cda41374a3d899dbd3aa00780ced08a9b9f5 | [
"Apache-2.0"
] | null | null | null | mix.exs | defndaines/logger_logstash_backend | 0670cda41374a3d899dbd3aa00780ced08a9b9f5 | [
"Apache-2.0"
] | null | null | null | defmodule Logger.Backends.Logstash.Mixfile do
use Mix.Project
def project do
[app: :logger_logstash_backend,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Typ... | 21 | 77 | 0.621934 |
da66d65cd943ab04ee07d6914af6c2b021e1d2e6 | 2,039 | exs | Elixir | client_query/config/prod.exs | gumberss/Ticketing-deno | 959b1b0763d246e05fd261aa5ceb94894dc5fe7b | [
"MIT"
] | 1 | 2020-09-08T00:06:33.000Z | 2020-09-08T00:06:33.000Z | client_query/config/prod.exs | gumberss/Ticketing-deno | 959b1b0763d246e05fd261aa5ceb94894dc5fe7b | [
"MIT"
] | null | null | null | client_query/config/prod.exs | gumberss/Ticketing-deno | 959b1b0763d246e05fd261aa5ceb94894dc5fe7b | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.410714 | 66 | 0.718489 |
da66d92ca44ea77d6d3c062a14bcecd8e5aceb38 | 2,635 | exs | Elixir | test/k8s/conn/auth/exec_test.exs | FreedomBen/k8s | 9cfd7bec869cd1f2d8a6c543923f3849710941a5 | [
"MIT"
] | null | null | null | test/k8s/conn/auth/exec_test.exs | FreedomBen/k8s | 9cfd7bec869cd1f2d8a6c543923f3849710941a5 | [
"MIT"
] | 2 | 2022-03-28T03:22:37.000Z | 2022-03-28T03:22:54.000Z | test/k8s/conn/auth/exec_test.exs | FreedomBen/k8s | 9cfd7bec869cd1f2d8a6c543923f3849710941a5 | [
"MIT"
] | null | null | null | defmodule K8s.Conn.Auth.ExecTest do
@moduledoc false
use ExUnit.Case, async: true
alias K8s.Conn
alias K8s.Conn.Auth.Exec
describe "create/2" do
test "creates an exec struct from exec data" do
auth = %{
"exec" => %{
"apiVersion" => "client.authentication.k8s.io/v1alpha1",
... | 26.089109 | 77 | 0.482353 |
da6712af8b6170db1c83f75833b97d7e09ba19bf | 3,545 | ex | Elixir | lib/mix/lib/mix/tasks/app.start.ex | flash4syth/elixir | 466bfc79fbad69eb6c9e4e3f19c262cdd93d7817 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/app.start.ex | flash4syth/elixir | 466bfc79fbad69eb6c9e4e3f19c262cdd93d7817 | [
"Apache-2.0"
] | 1 | 2020-09-14T16:23:33.000Z | 2021-03-25T17:38:59.000Z | lib/mix/lib/mix/tasks/app.start.ex | flash4syth/elixir | 466bfc79fbad69eb6c9e4e3f19c262cdd93d7817 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.App.Start do
use Mix.Task
@shortdoc "Starts all registered apps"
@moduledoc """
Starts all registered apps.
First this task guarantees that all dependencies are in place
and that the current project has been compiled. Then the current
application is started as a temporary applicatio... | 29.541667 | 87 | 0.655007 |
da67600df2ebfb723300e0e9cd174dc30d4465cb | 743 | ex | Elixir | lib/wax_api_rest/types/pub_key_cred_params.ex | tanguilp/wax_api_rest | c5580775afe2bad91e49083a80629da043258dd5 | [
"Apache-2.0"
] | null | null | null | lib/wax_api_rest/types/pub_key_cred_params.ex | tanguilp/wax_api_rest | c5580775afe2bad91e49083a80629da043258dd5 | [
"Apache-2.0"
] | null | null | null | lib/wax_api_rest/types/pub_key_cred_params.ex | tanguilp/wax_api_rest | c5580775afe2bad91e49083a80629da043258dd5 | [
"Apache-2.0"
] | null | null | null | defmodule WaxAPIREST.Types.PubKeyCredParams do
alias WaxAPIREST.Types.{
Error,
PublicKeyCredentialType
}
@enforce_keys [:type, :alg]
defstruct [
:type,
:alg
]
@type t :: %__MODULE__{
type: PublicKeyCredentialType.t(),
alg: integer()
}
@spec new(PublicKeyCredentialType.t(), Wa... | 20.638889 | 71 | 0.606999 |
da679c7223ba75eb81cd612d2a4dc707bebe1ab8 | 961 | ex | Elixir | exercises/practice/list-ops/lib/list_ops.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/list-ops/lib/list_ops.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/list-ops/lib/list_ops.ex | jaimeiniesta/elixir-1 | e8ddafeb313822645e0cd76743955a5c728a84c5 | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule ListOps do
# Please don't use any external modules (especially List or Enum) in your
# implementation. The point of this exercise is to create these basic
# functions yourself. You may use basic Kernel functions (like `Kernel.+/2`
# for adding numbers), but please do not use Kernel functions for Lists... | 23.439024 | 78 | 0.62435 |
da67aa639b8890a09f2f1a83a69972a5efb78311 | 898 | exs | Elixir | test/rockelivery_web/views/users_view_test.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | test/rockelivery_web/views/users_view_test.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | null | null | null | test/rockelivery_web/views/users_view_test.exs | mCodex/rocketseat-ignite-rockelivery | 8592c95962acd6578f28583307df2ea4464d4750 | [
"MIT"
] | null | null | null | defmodule RockeliveryWeb.UsersViewTest do
use RockeliveryWeb.ConnCase, async: true
import Phoenix.View
import Rockelivery.Factory
alias RockeliveryWeb.UsersView
alias Rockelivery.User
test "renders create.json" do
user = build(:user)
token = "test123"
response = render(UsersView, "create.js... | 24.944444 | 73 | 0.530067 |
da67ca927cdb2b9872bd3007d30ac83487c3aeeb | 1,940 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/sponsor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/sponsor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/sponsor.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.603774 | 154 | 0.720619 |
da67cf6832b0f735906b55d1da57a1dc49a8d9cd | 414 | exs | Elixir | priv/repo/migrations/20190615164334_create_tokens.exs | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 14 | 2017-01-08T14:51:25.000Z | 2022-03-14T09:23:17.000Z | priv/repo/migrations/20190615164334_create_tokens.exs | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 654 | 2017-05-23T22:55:21.000Z | 2022-03-30T09:02:25.000Z | priv/repo/migrations/20190615164334_create_tokens.exs | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 4 | 2019-07-10T23:09:25.000Z | 2020-02-09T12:14:00.000Z | defmodule AtomTweaks.Repo.Migrations.CreateTokens do
use Ecto.Migration
def change do
create table(:tokens, primary_key: false) do
add(:id, :binary_id, primary_key: true)
add(:description, :string)
add(:scopes, {:array, :string})
add(:user_id, references(:users, on_delete: :nothing, typ... | 24.352941 | 78 | 0.664251 |
da67d60e4b3d84f8f0206f521c11691f8a323c3d | 2,098 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta1_document_provenance_parent.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/v1beta3/model/google_cloud_documentai_v1beta1_document_provenance_parent.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/v1beta3/model/google_cloud_documentai_v1beta1_document_provenance_parent.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... | 36.172414 | 196 | 0.729743 |
da6818f2e542a2a9ed285252763c28f8dc00e30c | 11,950 | exs | Elixir | lib/elixir/test/elixir/module/types/map_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | 1 | 2022-03-28T12:04:08.000Z | 2022-03-28T12:04:08.000Z | lib/elixir/test/elixir/module/types/map_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/types/map_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | Code.require_file("type_helper.exs", __DIR__)
defmodule Module.Types.MapTest do
# This file holds cases for maps and structs.
use ExUnit.Case, async: true
import TypeHelper
defmodule :"Elixir.Module.Types.MapTest.Struct" do
defstruct foo: :atom, bar: 123, baz: %{}
end
test "map" do
assert quoted... | 31.613757 | 98 | 0.381088 |
da681e24fe775f29fc69b3b94514045eef04cdc1 | 15,011 | exs | Elixir | lib/mix/test/mix/umbrella_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/test/mix/umbrella_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/umbrella_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | Code.require_file "../test_helper.exs", __DIR__
defmodule Mix.UmbrellaTest do
use MixTest.Case
@moduletag apps: [:foo, :bar]
test "apps_paths" do
in_fixture "umbrella_dep/deps/umbrella", fn ->
assert Mix.Project.apps_paths == nil
Mix.Project.in_project(:umbrella, ".", fn _ ->
assert Mix... | 33.063877 | 119 | 0.580907 |
da683102ded5d8b647e8c33e268d2861d0615901 | 715 | ex | Elixir | lib/chargebee/structs/estimate/estimate.ex | alfredclub/chargebee-elixir | d981f77f38f77410a207e31c8929258024ef2f26 | [
"MIT"
] | 2 | 2017-02-20T23:42:59.000Z | 2019-09-13T14:31:36.000Z | lib/chargebee/structs/estimate/estimate.ex | madebymany/chargebee-elixir | d981f77f38f77410a207e31c8929258024ef2f26 | [
"MIT"
] | 2 | 2017-02-20T23:42:48.000Z | 2017-04-13T18:48:32.000Z | lib/chargebee/structs/estimate/estimate.ex | madebymany/chargebee-elixir | d981f77f38f77410a207e31c8929258024ef2f26 | [
"MIT"
] | 2 | 2017-02-20T23:44:13.000Z | 2017-05-11T19:53:21.000Z | defmodule Chargebee.Estimate do
import Chargebee.API
@derive [Poison.Encoder]
@chargebee_url "/estimates"
defstruct [ :created_at,
:subscription_estimate,
:invoice_estimate,
:next_invoice_estimate,
:credit_note_estimates
]
def create_subscr... | 27.5 | 88 | 0.672727 |
da6885d86259ebbb8faac6b4d01387b1c09c60ec | 487 | ex | Elixir | test/support/node_setup.ex | uberbrodt/commanded_horde_registry | 2ecb1dfe90b6eba49bd9b2f012d425cf3e9ff1c7 | [
"MIT"
] | 5 | 2019-05-10T16:34:44.000Z | 2019-12-07T15:51:47.000Z | test/support/node_setup.ex | traitify/commanded_horde_registry | 7ee4398efe771eca70a83c217f128bc255750023 | [
"MIT"
] | 4 | 2019-07-04T09:22:19.000Z | 2020-01-31T04:59:51.000Z | test/support/node_setup.ex | traitify/commanded_horde_registry | 7ee4398efe771eca70a83c217f128bc255750023 | [
"MIT"
] | 4 | 2019-09-04T10:00:07.000Z | 2020-08-13T17:26:26.000Z | defmodule Commanded.HordeRegistry.NodeSetup do
@moduledoc false
def setup_node(node) do
rpc(node, Application, :ensure_all_started, [:commanded])
rpc(node, Commanded.HordeRegistry.DefaultApp, :start_link, [[]])
args = [name: Commanded.HordeRegistry.ExampleSupervisor, strategy: :one_for_one]
rpc(nod... | 32.466667 | 84 | 0.737166 |
da688c65b733c4e8a7f32b853d67f732e75394f8 | 1,526 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/generate_download_url_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/generate_download_url_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/generate_download_url_request.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... | 31.791667 | 129 | 0.746396 |
da68a8a19091221ef1f8282c20465d6cff0a3cd4 | 1,560 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/test_iam_permissions_response.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/test_iam_permissions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/model/test_iam_permissions_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.5 | 134 | 0.745513 |
da68e995e3c88637f93e5d43cbe3ad77b8d4cbd3 | 782 | ex | Elixir | lib/exred_node_debug.ex | exredorg/exred_node_debug | 6a245cf69032e6822edf824c8041b48151ab3ba9 | [
"MIT"
] | null | null | null | lib/exred_node_debug.ex | exredorg/exred_node_debug | 6a245cf69032e6822edf824c8041b48151ab3ba9 | [
"MIT"
] | null | null | null | lib/exred_node_debug.ex | exredorg/exred_node_debug | 6a245cf69032e6822edf824c8041b48151ab3ba9 | [
"MIT"
] | null | null | null | defmodule Exred.Node.Debug do
@moduledoc """
Logs debug messages in Exred flows.
"""
@name "Debug"
@category "output"
@info """
This node logs every message it receives
using the Logger module and also publishes
them to a Phoenix channel that the editor
back-end can sign up for.
"""
@config %{
... | 21.722222 | 80 | 0.658568 |
da6922b83f9ce31d50c05e18c5fd8e85c2c2b550 | 1,751 | ex | Elixir | platform/lib/all-deps/etc/location-mapping.ex | TeamSPoon/CYC_JRTL_with_CommonLisp_OLD | 31ce724b21468bee0693dfc1d0ca4bc861c58e2b | [
"Apache-2.0"
] | 10 | 2016-09-03T18:41:14.000Z | 2020-01-17T16:29:19.000Z | platform/lib/all-deps/etc/location-mapping.ex | TeamSPoon/CYC_JRTL_with_CommonLisp_OLD | 31ce724b21468bee0693dfc1d0ca4bc861c58e2b | [
"Apache-2.0"
] | 3 | 2016-09-01T19:15:27.000Z | 2016-10-12T16:28:48.000Z | Jena/src/etc/location-mapping.ex | kineticsquid/My_old_stuff | 82569a23e1e03f599bc50f88ef776c642cc96a69 | [
"MIT"
] | 1 | 2017-10-24T06:26:07.000Z | 2017-10-24T06:26:07.000Z | ## EXAMPLE
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix lm: <http://jena.hpl.hp.com/2004/08/location-mapping#> .
# Application location to alternative location m... | 36.479167 | 86 | 0.656768 |
da69324fed73c968dfc45c02ce95e82c5e51f840 | 837 | exs | Elixir | spotiauth/mix.exs | jirimakarius/spotify_controller | c09f07cd622aa3a8f454dc4193b42329b36f7d49 | [
"MIT"
] | null | null | null | spotiauth/mix.exs | jirimakarius/spotify_controller | c09f07cd622aa3a8f454dc4193b42329b36f7d49 | [
"MIT"
] | null | null | null | spotiauth/mix.exs | jirimakarius/spotify_controller | c09f07cd622aa3a8f454dc4193b42329b36f7d49 | [
"MIT"
] | null | null | null | defmodule Spotiauth.MixProject do
use Mix.Project
def project do
[
app: :spotiauth,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env),
test_coverage: [tool: ExCoveralls],
deps: deps()
]
end
# Run "mi... | 22.621622 | 59 | 0.574671 |
da693d4cb08f40a1bdf6ba5218da699498c58f62 | 91 | exs | Elixir | test/absinthe/integration/execution/input_types/null/literal_to_type_[T!]!.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/input_types/null/literal_to_type_[T!]!.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2020-07-21T05:23:37.000Z | 2020-08-26T04:56:12.000Z | test/absinthe/integration/execution/input_types/null/literal_to_type_[T!]!.exs | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | {
:ok,
%{
errors: [%{message: "Argument \"input\" has invalid value null."}]
}
}
| 13 | 70 | 0.516484 |
da69557b2f7fdbbed0e792948077b2b52cf61dcc | 1,620 | ex | Elixir | lib/ja_serializer/builder/scrivener_links.ex | Xerpa/ja_serializer | b94a37fd9ed6fdb20dc3776cd5c581fefc57c924 | [
"Apache-2.0"
] | 1 | 2017-08-31T04:00:15.000Z | 2017-08-31T04:00:15.000Z | lib/ja_serializer/builder/scrivener_links.ex | Xerpa/ja_serializer | b94a37fd9ed6fdb20dc3776cd5c581fefc57c924 | [
"Apache-2.0"
] | null | null | null | lib/ja_serializer/builder/scrivener_links.ex | Xerpa/ja_serializer | b94a37fd9ed6fdb20dc3776cd5c581fefc57c924 | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Scrivener) do
defmodule JaSerializer.Builder.ScrivenerLinks do
@moduledoc """
Builds JSON-API spec pagination links for %Scrivener.Page{}.
"""
@first_page 1
@spec build(map) :: map
def build(context = %{data: %Scrivener.Page{}}) do
{[], context}
|> current... | 28.421053 | 127 | 0.585802 |
da6957895b6d50b27b7f10b01cbfbd50b93c1639 | 4,281 | exs | Elixir | scam_analysis 2/white_bread_context.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | scam_analysis 2/white_bread_context.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | scam_analysis 2/white_bread_context.exs | alpdenizz/ElixirPlayground | 58b5a16c489058e0067e4811042d96fe6a5f8d59 | [
"MIT"
] | null | null | null | defmodule WhiteBreadContext do
use WhiteBread.Context
use Hound.Helpers
alias Takso.{Repo,Trip}
feature_starting_state fn ->
Application.ensure_all_started(:hound)
%{}
end
scenario_starting_state fn _state ->
Ecto.Adapters.SQL.Sandbox.checkout(Takso.Repo)
Ecto.Adapters.SQL.Sandbox.mode(Tak... | 35.97479 | 108 | 0.645644 |
da695c66e1c5b7a7dcdc2f47ea6676c1599e924f | 38,789 | ex | Elixir | lib/aws/rekognition.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | lib/aws/rekognition.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | lib/aws/rekognition.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.Rekognition do
@moduledoc """
This is the Amazon Rekognition API reference.
"""
@doc """
Compares a face in the *source* input image with each of the 100 largest
faces detected in the *... | 45.420375 | 77 | 0.754415 |
da69631e58efaaeeadb65e1e7937fb2409cfa2b8 | 3,597 | ex | Elixir | lib/ecto/query/builder/from.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/from.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/builder/from.ex | zachahn/ecto | 8119ad877f7caa837912647a014f4a63a951dba0 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.From do
@moduledoc false
alias Ecto.Query.Builder
@doc """
Handles from expressions.
The expressions may either contain an `in` expression or not.
The right side is always expected to Queryable.
## Examples
iex> escape(quote(do: MySchema), __ENV__)
{quote(do: ... | 29.975 | 109 | 0.597164 |
da6983c742b14566285883baf096a875d08e4e06 | 1,456 | ex | Elixir | lib/ethereumex/http_client.ex | ayrat555/circleci_multiple_docker_test | 4360b17a61658f1242b421605bd2815a3618fac2 | [
"MIT"
] | null | null | null | lib/ethereumex/http_client.ex | ayrat555/circleci_multiple_docker_test | 4360b17a61658f1242b421605bd2815a3618fac2 | [
"MIT"
] | null | null | null | lib/ethereumex/http_client.ex | ayrat555/circleci_multiple_docker_test | 4360b17a61658f1242b421605bd2815a3618fac2 | [
"MIT"
] | null | null | null | defmodule Ethereumex.HttpClient do
use Ethereumex.Client.Macro
import Ethereumex.Config
@moduledoc false
@spec single_request(map()) :: {:ok, any() | [any()]} | error
def single_request(payload) do
payload
|> encode_payload
|> post_request
end
@spec encode_payload(map()) :: binary()
defp e... | 27.471698 | 91 | 0.576236 |
da69e994d6652caca35252409709d3ca59cca273 | 757 | ex | Elixir | lib/oath/coll.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/oath/coll.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | lib/oath/coll.ex | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | defmodule Oath.Coll do
@moduledoc false
@behaviour Access
defstruct specs: [],
union?: false
@type t :: %__MODULE__{
specs: [Oath.t()],
union?: boolean
}
@impl Access
def fetch(_term, _key) do
:error
end
@impl Access
def get_and_update(data, _key, _funct... | 15.770833 | 52 | 0.561427 |
da6a0b0e4fbd08e446ba514fd0e70818fd096daf | 3,560 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/model/os_policy_assignment_report_os_policy_compliance.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/os_config/lib/google_api/os_config/v1/model/os_policy_assignment_report_os_policy_compliance.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/os_config/lib/google_api/os_config/v1/model/os_policy_assignment_report_os_policy_compliance.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... | 53.134328 | 1,162 | 0.748596 |
da6a12892af3a0a4226eb7212187626841ab0c40 | 316 | ex | Elixir | lib/cuid/table_owner.ex | paulswartz/cuid | d9c95ea336b55ce356a18d93e9f61693c52c41aa | [
"MIT"
] | null | null | null | lib/cuid/table_owner.ex | paulswartz/cuid | d9c95ea336b55ce356a18d93e9f61693c52c41aa | [
"MIT"
] | null | null | null | lib/cuid/table_owner.ex | paulswartz/cuid | d9c95ea336b55ce356a18d93e9f61693c52c41aa | [
"MIT"
] | null | null | null | defmodule Cuid.TableOwner do
@moduledoc """
GenServer process to own the ETS table used for the Cuid counter.
"""
use GenServer
def start_link(_) do
GenServer.start_link(__MODULE__, [])
end
def init([]) do
state = Cuid.new()
:persistent_term.put(Cuid, state)
{:ok, state}
end
end
| 16.631579 | 67 | 0.658228 |
da6a1ba7e512b5688d64fb09c9afc1e5adf6650c | 9,490 | exs | Elixir | test/phoenix_ecto/html_test.exs | wojtekmach/phoenix_ecto | ba3fa4402d6693221fa791a92b670225f7bf8e01 | [
"MIT"
] | null | null | null | test/phoenix_ecto/html_test.exs | wojtekmach/phoenix_ecto | ba3fa4402d6693221fa791a92b670225f7bf8e01 | [
"MIT"
] | null | null | null | test/phoenix_ecto/html_test.exs | wojtekmach/phoenix_ecto | ba3fa4402d6693221fa791a92b670225f7bf8e01 | [
"MIT"
] | null | null | null | defmodule PhoenixEcto.HTMLTest do
use ExUnit.Case, async: true
import Ecto.Changeset
import Phoenix.HTML
import Phoenix.HTML.Form
defp safe_form_for(changeset, opts \\ [], function) do
safe_to_string(form_for(changeset, "/", opts, function))
end
test "converts decimal to safe" do
assert html_es... | 30.031646 | 111 | 0.583878 |
da6a21dc53a8c80a78227b648a3a03c4f8baa558 | 1,259 | ex | Elixir | lib/github/github/repo.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | null | null | null | lib/github/github/repo.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | 1 | 2020-03-07T08:28:14.000Z | 2020-03-07T08:28:14.000Z | lib/github/github/repo.ex | UnofficialJuliaMirror/bors-ng-bors-ng | fcec51b5f6e5a691d3e310bd35ba7b74e55b667f | [
"Apache-2.0"
] | 3 | 2020-11-15T16:17:58.000Z | 2021-06-04T11:26:42.000Z | defmodule BorsNG.GitHub.Repo do
@moduledoc """
The GitHub repository structure.
"""
defstruct(
id: 0,
name: "",
private: false,
owner: %{
id: 0,
login: "",
avatar_url: "",
type: :user})
@type t :: %BorsNG.GitHub.Repo{
id: integer,
name: bit... | 20.639344 | 58 | 0.509929 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.