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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c87988f8b71a27c3a8c57dccd7716185ff3cb901 | 1,496 | exs | Elixir | mix.exs | qdentity/phoenix_inline_svg | b920af17ab568a88b5493cd8d8651ba00e87dc3c | [
"MIT"
] | null | null | null | mix.exs | qdentity/phoenix_inline_svg | b920af17ab568a88b5493cd8d8651ba00e87dc3c | [
"MIT"
] | null | null | null | mix.exs | qdentity/phoenix_inline_svg | b920af17ab568a88b5493cd8d8651ba00e87dc3c | [
"MIT"
] | null | null | null | defmodule PhoenixInlineSvg.Mixfile do
use Mix.Project
def project do
[
app: :phoenix_inline_svg,
version: "1.3.1",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
description: description(),
preferred_cli_env: cli_env(... | 24.933333 | 72 | 0.578877 |
c8798a41b112ff1537379b8e433fe8e934615ede | 3,103 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/edit_all_order_deals_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/edit_all_order_deals_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/edit_all_order_deals_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 55.410714 | 880 | 0.756043 |
c879e44d6889a648532593f39dd95ceca3833429 | 245 | ex | Elixir | lib/exrabbit/message.ex | velimir0xff/exrabbit | 95a4332741bb42a355a0e6963e5a48794414be43 | [
"MIT"
] | null | null | null | lib/exrabbit/message.ex | velimir0xff/exrabbit | 95a4332741bb42a355a0e6963e5a48794414be43 | [
"MIT"
] | null | null | null | lib/exrabbit/message.ex | velimir0xff/exrabbit | 95a4332741bb42a355a0e6963e5a48794414be43 | [
"MIT"
] | null | null | null | defmodule Exrabbit.Message do
use Exrabbit.Records
defstruct [
consumer_tag: nil,
delivery_tag: nil,
redelivered: false,
exchange: "",
routing_key: "",
message_count: nil,
body: "",
props: pbasic(),
]
end
| 15.3125 | 29 | 0.620408 |
c87a1484238b3a392fa9575769b8426582e331dc | 422 | ex | Elixir | lib/bitcoin/hsm/supervisor.ex | cancoin/bitcoin-hsm | 8037d85ed60627f2344ed017f5ba21499dc6f462 | [
"Apache-2.0"
] | 1 | 2017-03-16T16:41:11.000Z | 2017-03-16T16:41:11.000Z | lib/bitcoin/hsm/supervisor.ex | cancoin/bitcoin-hsm | 8037d85ed60627f2344ed017f5ba21499dc6f462 | [
"Apache-2.0"
] | null | null | null | lib/bitcoin/hsm/supervisor.ex | cancoin/bitcoin-hsm | 8037d85ed60627f2344ed017f5ba21499dc6f462 | [
"Apache-2.0"
] | null | null | null | defmodule Bitcoin.HSM.Supervisor do
use Supervisor
@timeout 10000
def start_link() do
:supervisor.start_link({:local, __MODULE__}, __MODULE__, [])
end
def init(_opts) do
child = [
supervisor(Bitcoin.HSM.Ledger.Supervisor, [], restart: :permanent, timeout: @timeout),
worker(Bitcoin.HSM.L... | 22.210526 | 92 | 0.682464 |
c87a160d7be5731a79e91b322965b2def6935884 | 351 | exs | Elixir | config/config.exs | vmeansdev/univerex | a89eb9d00e4a57fd8e26cad03077fef7a0962f7d | [
"MIT"
] | 1 | 2018-02-11T00:30:08.000Z | 2018-02-11T00:30:08.000Z | config/config.exs | vmeansdev/univerex | a89eb9d00e4a57fd8e26cad03077fef7a0962f7d | [
"MIT"
] | null | null | null | config/config.exs | vmeansdev/univerex | a89eb9d00e4a57fd8e26cad03077fef7a0962f7d | [
"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
config :univerex,
base_url: "https://univeris.susu.ru/services/mobile/Get",
faculties: "Faculties",
groups: "Groups/FacultyId/",
term: "CurrentTerm/GroupId/",
sch... | 35.1 | 61 | 0.732194 |
c87a359b1f4b8aa6064844c683d016b39e44749b | 3,042 | ex | Elixir | lib/ecto/uuid.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | lib/ecto/uuid.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | lib/ecto/uuid.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.UUID do
@moduledoc """
An Ecto type for UUIDs strings.
In contrast to the `:uuid` type, `Ecto.UUID` works
with UUID as strings instead of binary data.
"""
@behaviour Ecto.Type
@doc """
The Ecto primitive type.
"""
def type, do: :uuid
@doc """
Casts to UUID.
"""
def cast(<<... | 25.140496 | 85 | 0.486522 |
c87a897e7aff777cec149d1b40deccb964491472 | 1,118 | ex | Elixir | lib/kafka_elixir_lab/application.ex | habutre/kafka_elixir_lab | 7cf78b73c5130f0244602f16096734b0e40db7b8 | [
"Apache-2.0"
] | 1 | 2019-06-19T06:29:25.000Z | 2019-06-19T06:29:25.000Z | lib/kafka_elixir_lab/application.ex | habutre/kafka_elixir_lab | 7cf78b73c5130f0244602f16096734b0e40db7b8 | [
"Apache-2.0"
] | null | null | null | lib/kafka_elixir_lab/application.ex | habutre/kafka_elixir_lab | 7cf78b73c5130f0244602f16096734b0e40db7b8 | [
"Apache-2.0"
] | null | null | null | defmodule KafkaElixirLab.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec
# List all child processes to be supervised
children = [
# Starts a worker... | 27.268293 | 73 | 0.627907 |
c87aa2c910cf90f08e8c201d8da07fa79d7faec7 | 439 | exs | Elixir | integration_test/selenium/test_helper.exs | bobwaycott/wallaby | b25e6937f007f6e56be1b7b6a62591db5ac5a240 | [
"MIT"
] | 1 | 2020-05-15T20:41:00.000Z | 2020-05-15T20:41:00.000Z | integration_test/selenium/test_helper.exs | bobwaycott/wallaby | b25e6937f007f6e56be1b7b6a62591db5ac5a240 | [
"MIT"
] | 3 | 2021-08-18T20:39:11.000Z | 2022-01-11T22:45:06.000Z | integration_test/selenium/test_helper.exs | bobwaycott/wallaby | b25e6937f007f6e56be1b7b6a62591db5ac5a240 | [
"MIT"
] | null | null | null | ExUnit.configure(max_cases: 2, exclude: [pending: true])
ExUnit.start()
# Load support files
Code.require_file("../support/test_server.ex", __DIR__)
Code.require_file("../support/pages/index_page.ex", __DIR__)
Code.require_file("../support/pages/page_1.ex", __DIR__)
Code.require_file("../support/session_case.ex", __DI... | 36.583333 | 60 | 0.763098 |
c87aa6768f2d88bc46b368916b86321845f31c02 | 2,033 | exs | Elixir | apps/legion/test/identity/auth/access_control/permission_set_cache_entry_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/test/identity/auth/access_control/permission_set_cache_entry_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/test/identity/auth/access_control/permission_set_cache_entry_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Identity.Auth.AccessControl.PermissionSetCacheEntryTest do
@moduledoc false
use Legion.DataCase
import NaiveDateTime, only: [utc_now: 0]
alias Legion.Identity.Auth.AccessControl.PermissionSetCacheEntry
@env Application.get_env(:legion, Legion.Identity.Auth.AccessControl)
@valid_params %{... | 28.236111 | 89 | 0.712248 |
c87aa91e83a03510c9808866a567d1d7d9af5d26 | 1,228 | exs | Elixir | test/drab/config_test.exs | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 933 | 2017-01-14T13:47:37.000Z | 2022-03-21T18:14:41.000Z | test/drab/config_test.exs | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 189 | 2017-01-15T18:35:06.000Z | 2022-01-24T17:41:22.000Z | test/drab/config_test.exs | Gamecode-HQ/drab | dfbe73c0675831f42829f0f3f7fe12d47a78badc | [
"MIT"
] | 54 | 2017-01-15T18:10:48.000Z | 2021-02-06T17:21:44.000Z | defmodule Drab.ConfigTest do
use ExUnit.Case, ascync: true
doctest Drab.Config
test "controller_for" do
assert Drab.Config.default_controller_for(DrabTestApp.SomeContext.SomeCommander) ==
DrabTestApp.SomeContext.SomeController
assert Drab.Config.default_controller_for(DrabTestApp.LoneComman... | 35.085714 | 90 | 0.758958 |
c87afd395feed306085c457b0ee62c83c02611d8 | 1,083 | ex | Elixir | apps/grapevine/lib/web/views/layout_view.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/grapevine/lib/web/views/layout_view.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/grapevine/lib/web/views/layout_view.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Web.LayoutView do
use Web, :view
alias GrapevineData.Accounts
alias Web.HostedRouter.Helpers, as: HostedRoutes
alias Web.Hosted
alias Web.RecaptchaView
@decanter_enabled Application.get_env(:grapevine, :decanter)[:enabled]
def user_token(%{assigns: %{user_token: token}}), do: token
def user... | 25.785714 | 86 | 0.704524 |
c87b3906770da522638b80b11efce37687d8df37 | 144 | ex | Elixir | examples/repo.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | 3 | 2019-01-02T17:45:21.000Z | 2019-12-04T18:11:53.000Z | examples/repo.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | null | null | null | examples/repo.ex | madebymany/lazy_context | 7786607a2e56ecd280851a7c3f8085a164ea15c1 | [
"Apache-2.0"
] | null | null | null | defmodule LazyContext.Examples.Repo do
@moduledoc false
use Ecto.Repo,
otp_app: :lazy_context,
adapter: Ecto.Adapters.Postgres
end
| 18 | 38 | 0.75 |
c87b53feceb2be11cd14aae4452ea95566b53239 | 2,292 | ex | Elixir | lib/tools.ex | fklement/cannes | a7cd91053fc7655a946fc1dcda88845c8e0dc618 | [
"MIT"
] | 2 | 2021-02-17T12:49:49.000Z | 2022-01-07T17:27:25.000Z | lib/tools.ex | fklement/cannes | a7cd91053fc7655a946fc1dcda88845c8e0dc618 | [
"MIT"
] | null | null | null | lib/tools.ex | fklement/cannes | a7cd91053fc7655a946fc1dcda88845c8e0dc618 | [
"MIT"
] | null | null | null | defmodule Cannes.Tools do
@moduledoc """
`Cannes.Tools` facilitates a usefull wrapper for the python library called `cantool`.
"""
use Export.Python
@python_dir "lib/python"
@python_module "cantool"
@doc """
Calls the given function with args from the given Python file.
"""
@spec python_call(binar... | 35.261538 | 192 | 0.685428 |
c87b5ec8e649345d559eff52074542a0cf99601d | 630 | ex | Elixir | lib/groupher_server/accounts/delegates/hooks/notify.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/accounts/delegates/hooks/notify.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/accounts/delegates/hooks/notify.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Accounts.Delegate.Hooks.Notify do
@moduledoc """
notify hooks, for upvote, collect, comment, reply
"""
alias GroupherServer.{Accounts, Delivery}
alias Accounts.Model.User
# 发布评论是特殊情况,单独处理
def handle(:follow, %User{} = user, %User{} = from_user) do
notify_attrs = %{
acti... | 23.333333 | 68 | 0.655556 |
c87ba47d1eab30d76ef0d7326951c3f20aa0286f | 4,541 | ex | Elixir | apps/json_api/lib/json_api.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/json_api/lib/json_api.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/json_api/lib/json_api.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule JsonApi.Item do
defstruct [:type, :id, :attributes, :relationships]
@type t :: %JsonApi.Item{
type: String.t(),
id: String.t(),
attributes: %{String.t() => any},
relationships: %{String.t() => list(JsonApi.Item.t())}
}
end
defmodule JsonApi.Error do
defs... | 23.651042 | 100 | 0.577626 |
c87bea87871e7a343415790f489c7f258bf3c3d6 | 1,362 | exs | Elixir | kousa/test/broth/_calls/unban_from_room_test.exs | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/test/broth/_calls/unban_from_room_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/test/broth/_calls/unban_from_room_test.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule BrothTest.UnbanFromRoomTest do
use ExUnit.Case, async: true
use KousaTest.Support.EctoSandbox
alias Beef.Schemas.User
alias Beef.Users
alias BrothTest.WsClient
alias BrothTest.WsClientFactory
alias KousaTest.Support.Factory
require WsClient
setup do
user = Factory.create(User)
cli... | 23.894737 | 68 | 0.629956 |
c87becb85dc2fc8e6d95f4d8344f624565d0c61c | 1,393 | ex | Elixir | lib/live_sup_web/live/project/components/datasource_form_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/live_sup_web/live/project/components/datasource_form_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | lib/live_sup_web/live/project/components/datasource_form_component.ex | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Project.Components.DatasourceFormComponent do
use LiveSupWeb, :live_component
alias LiveSup.Core.Datasources
@impl true
def update(%{datasource: datasource} = assigns, socket) do
changeset = Datasources.change_instance(datasource)
{:ok,
socket
|> assign(assigns)
|> ... | 30.955556 | 88 | 0.702082 |
c87bf901731fb72a24d4d61ff89d40ad742e7eec | 48 | ex | Elixir | lib/aliyun_util.ex | ug0/aliyun_util | d02e168d20319eb6d2d51634b3e3ce163978281d | [
"MIT"
] | null | null | null | lib/aliyun_util.ex | ug0/aliyun_util | d02e168d20319eb6d2d51634b3e3ce163978281d | [
"MIT"
] | 6 | 2020-12-25T05:16:23.000Z | 2021-09-22T02:21:25.000Z | lib/aliyun_util.ex | ug0/aliyun_util | d02e168d20319eb6d2d51634b3e3ce163978281d | [
"MIT"
] | 5 | 2019-04-15T10:12:33.000Z | 2021-09-18T07:12:26.000Z | defmodule Aliyun.Util do
@moduledoc false
end
| 12 | 24 | 0.791667 |
c87c15a6a5a39a82418cbc095fc2eb2edd80ab64 | 983 | ex | Elixir | lib/flix/application.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 3 | 2021-03-21T23:52:16.000Z | 2021-06-02T03:47:00.000Z | lib/flix/application.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | 44 | 2021-04-09T04:04:13.000Z | 2022-03-29T06:29:37.000Z | lib/flix/application.ex | conradwt/flix-elixir | e4d6bf6fd79be12fbed6fb6250f78e929247c1a4 | [
"MIT"
] | null | null | null | defmodule Flix.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Flix.Repo,
# Start the Telemetry supervisor
FlixWeb.Telem... | 28.085714 | 62 | 0.693795 |
c87c1a592cffc15a446cd01b1f3f3df330842dd8 | 521 | exs | Elixir | test/destination_test.exs | joshnuss/guzzle | 560ccda34de6547c26c8efbcb478a6506546b24c | [
"MIT"
] | 4 | 2015-02-10T07:06:10.000Z | 2020-01-14T23:19:54.000Z | test/destination_test.exs | joshnuss/guzzle | 560ccda34de6547c26c8efbcb478a6506546b24c | [
"MIT"
] | 1 | 2015-02-10T07:08:06.000Z | 2015-02-10T08:45:36.000Z | test/destination_test.exs | joshnuss/guzzle | 560ccda34de6547c26c8efbcb478a6506546b24c | [
"MIT"
] | null | null | null | defmodule Guzzle.DestinationTest do
use ExUnit.Case, async: false
doctest Guzzle.Destination
import Guzzle.Destination
setup do
File.rm_rf("/tmp/foo")
:ok
end
test "creates directory & file" do
[{"a.js", "let a=1;"}, {"b.js", "let b=2;"}] |> dest("/tmp/foo")
assert File.dir?("/tmp/foo")... | 20.84 | 68 | 0.598848 |
c87c3f535f75624816fc686b22b6e08136faa5dd | 15,841 | ex | Elixir | lib/thrift/ast.ex | rchallapalli/elixir-thrift | 729e3f616947a6c75762252bb2726221eea2e31b | [
"Apache-2.0"
] | null | null | null | lib/thrift/ast.ex | rchallapalli/elixir-thrift | 729e3f616947a6c75762252bb2726221eea2e31b | [
"Apache-2.0"
] | null | null | null | lib/thrift/ast.ex | rchallapalli/elixir-thrift | 729e3f616947a6c75762252bb2726221eea2e31b | [
"Apache-2.0"
] | null | null | null | defmodule Thrift.AST do
@moduledoc """
Thrift Abstract Syntax Tree
Parsed Thrift files are repesented as a tree of these structures, starting
with a `Thrift.AST.Schema` node.
"""
import Thrift.Parser.Conversions
alias Thrift.Parser.{Literals, Types}
defmodule Namespace do
@moduledoc false
@ty... | 29.832392 | 142 | 0.626791 |
c87c767aea5f4bf8fd6df587f296e4dcb8b38057 | 895 | ex | Elixir | lib/mail_slurp_api/model/inbox_preview.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-06-17T18:07:49.000Z | 2021-06-17T18:07:49.000Z | lib/mail_slurp_api/model/inbox_preview.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/inbox_preview.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-03-16T18:55:56.000Z | 2021-03-16T18:55:56.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.InboxPreview do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"createdAt",
:"emailAddress",
:"ex... | 21.309524 | 91 | 0.595531 |
c87c8d5129702ee785937c5dcbac58a941ebe39d | 1,713 | ex | Elixir | lib/web/views/common_view.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/web/views/common_view.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/web/views/common_view.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.CommonView do
import Librecov.Helpers.Number
def format_coverage(%{current_coverage: coverage}), do: format_coverage(coverage)
def format_coverage(num) when is_float(num), do: "#{Decimal.round(Decimal.from_float(num), 2)}%"
def format_coverage(_), do: "NA"
def coverage_color(%{current_cove... | 26.353846 | 98 | 0.636894 |
c87c8de3103dccd32843863fec8687afbe220148 | 937 | ex | Elixir | test/app_web/user_view.ex | skeleton-elixir/skeleton_permission | 9d86d338cfcd5b0b9925cde139d03c225dc9e4ee | [
"MIT"
] | null | null | null | test/app_web/user_view.ex | skeleton-elixir/skeleton_permission | 9d86d338cfcd5b0b9925cde139d03c225dc9e4ee | [
"MIT"
] | 1 | 2020-07-02T13:17:17.000Z | 2020-07-02T13:17:17.000Z | test/app_web/user_view.ex | skeleton-elixir/skeleton_permission | 9d86d338cfcd5b0b9925cde139d03c225dc9e4ee | [
"MIT"
] | null | null | null | defmodule Skeleton.AppWeb.UserView do
use Skeleton.AppWeb, :view
alias Skeleton.AppWeb.UserPermission
def with_preload_atom(conn, users) do
for user <- preload_permissions(conn, users, UserPermission, :can_update) do
check_permission(conn, UserPermission, :can_update, user: user)
end
end
def w... | 32.310345 | 82 | 0.734258 |
c87cb73841fa4cdca264f7ad064e01d943bb4b69 | 3,528 | ex | Elixir | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/api/amp_urls.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/api/amp_urls.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/accelerated_mobile_page_url/lib/google_api/accelerated_mobile_page_url/v1/api/amp_urls.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.506024 | 184 | 0.696429 |
c87cefd87ae89491eae50ae4d6b910fade4095d6 | 1,715 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/add_protected_range_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/add_protected_range_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/add_protected_range_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.489362 | 290 | 0.752187 |
c87cff2bbe87f52b407ab79898a3e625f1b10829 | 489 | ex | Elixir | lib/elx_k8s_web/views/error_view.ex | adrianomota/elx-k8s | 27c0f5c3099137041043d05e754b2b5eb7e0c0f9 | [
"MIT"
] | null | null | null | lib/elx_k8s_web/views/error_view.ex | adrianomota/elx-k8s | 27c0f5c3099137041043d05e754b2b5eb7e0c0f9 | [
"MIT"
] | null | null | null | lib/elx_k8s_web/views/error_view.ex | adrianomota/elx-k8s | 27c0f5c3099137041043d05e754b2b5eb7e0c0f9 | [
"MIT"
] | null | null | null | defmodule ElxK8sWeb.ErrorView do
use ElxK8sWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. ... | 28.764706 | 61 | 0.734151 |
c87d1d1c045eebda3e61877e0eb692dbf8cb38cb | 1,135 | exs | Elixir | config/config.exs | software-mansion-labs/elixir-sftp-toolkit | e72815680903250c5d1d47b457e33e5a3891011c | [
"Apache-2.0"
] | 1 | 2019-02-28T20:13:25.000Z | 2019-02-28T20:13:25.000Z | config/config.exs | SoftwareMansion/elixir-sftp-toolkit | e72815680903250c5d1d47b457e33e5a3891011c | [
"Apache-2.0"
] | null | null | null | config/config.exs | SoftwareMansion/elixir-sftp-toolkit | e72815680903250c5d1d47b457e33e5a3891011c | [
"Apache-2.0"
] | 1 | 2021-07-14T12:14:15.000Z | 2021-07-14T12:14:15.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.612903 | 73 | 0.752423 |
c87d2d09a11be6500a895c0af76588e491a30770 | 65 | ex | Elixir | lib/elmverse_web/views/layout_view.ex | s6o/elmverse | 3e5c732a09f5e7f456286487e84d711672239529 | [
"MIT"
] | null | null | null | lib/elmverse_web/views/layout_view.ex | s6o/elmverse | 3e5c732a09f5e7f456286487e84d711672239529 | [
"MIT"
] | 3 | 2021-03-09T01:27:03.000Z | 2022-02-10T17:08:49.000Z | lib/elmverse_web/views/layout_view.ex | s6o/elmverse | 3e5c732a09f5e7f456286487e84d711672239529 | [
"MIT"
] | null | null | null | defmodule ElmverseWeb.LayoutView do
use ElmverseWeb, :view
end
| 16.25 | 35 | 0.815385 |
c87d58f5ada9afe7fe49dd45d21256d6f3ab3415 | 2,268 | ex | Elixir | lib/hemingway_lorem.ex | mandarvaze/hemingway_lorem | 01f20a6d1b23ddbe01b6a22e2b2869ac3159881a | [
"MIT"
] | null | null | null | lib/hemingway_lorem.ex | mandarvaze/hemingway_lorem | 01f20a6d1b23ddbe01b6a22e2b2869ac3159881a | [
"MIT"
] | null | null | null | lib/hemingway_lorem.ex | mandarvaze/hemingway_lorem | 01f20a6d1b23ddbe01b6a22e2b2869ac3159881a | [
"MIT"
] | null | null | null | defmodule HemingwayLorem do
@moduledoc """
HemingwayLorem is a random text generator like lorem-ipsum, except the text
is from public domain works of Hemingway.
Get a random sentence(s)
## Examples
iex> HemingwayLorem.sentence()
"Gee it’s awful when they go by you and then you have to watch the... | 32.4 | 290 | 0.68254 |
c87d8c6ad223e5bf2ce4c4aa0cad464857a5d1e2 | 15,645 | exs | Elixir | test/ex_secp256k1_test.exs | omgnetwork/ex_secp256k1 | 3fed4f63c318a5e910e44911b7af63f8dc750ad2 | [
"MIT"
] | 7 | 2021-06-17T15:51:17.000Z | 2022-03-24T08:53:27.000Z | test/ex_secp256k1_test.exs | omgnetwork/ex_secp256k1 | 3fed4f63c318a5e910e44911b7af63f8dc750ad2 | [
"MIT"
] | 12 | 2020-10-08T13:33:02.000Z | 2022-03-10T11:37:07.000Z | test/ex_secp256k1_test.exs | omgnetwork/ex_secp256k1 | 3fed4f63c318a5e910e44911b7af63f8dc750ad2 | [
"MIT"
] | 8 | 2020-10-06T12:40:41.000Z | 2021-08-28T00:52:54.000Z | defmodule ExSecp256k1Test do
use ExUnit.Case
doctest ExSecp256k1
describe "sign/2" do
setup do
private_key =
"8da4ef21b864d2cc526dbdb2a120bd2874c36c9d0a1fb7f8c63d7f7a8b41de8f"
|> String.upcase()
|> Base.decode16!()
message =
<<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... | 31.478873 | 98 | 0.550399 |
c87d8d73f64022ac3503f2a5b9108f91011f9548 | 1,811 | ex | Elixir | lib/phoenix_bricks/filter.ex | leanpanda-com/phoenix_bricks | 170a1e05842a69d5c594636464ed001b4c811cee | [
"MIT"
] | 1 | 2021-04-19T19:10:45.000Z | 2021-04-19T19:10:45.000Z | lib/phoenix_bricks/filter.ex | leanpanda-com/phoenix_bricks | 170a1e05842a69d5c594636464ed001b4c811cee | [
"MIT"
] | null | null | null | lib/phoenix_bricks/filter.ex | leanpanda-com/phoenix_bricks | 170a1e05842a69d5c594636464ed001b4c811cee | [
"MIT"
] | null | null | null | defmodule PhoenixBricks.Filter do
@moduledoc ~S"""
Defines a Filter Schema
## Examples
```elixir
defmodule RecordFilter do
use PhoenixBricks.Filter,
filters: [
field_matcher: :string
]
end
```
It defines a schema which fields could be used in a search form.
## Search c... | 21.819277 | 97 | 0.589729 |
c87dcd0b3cff78c3d6916e113f1eb111dd220acb | 955 | ex | Elixir | test/support/channel_case.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | test/support/channel_case.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | defmodule Battletracker.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cann... | 23.292683 | 72 | 0.710995 |
c87df17beb633384c769aed91d07353da5f79a27 | 3,528 | exs | Elixir | apps/snitch_core/test/data/model/adjustment/promotion_adjustment_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/test/data/model/adjustment/promotion_adjustment_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/test/data/model/adjustment/promotion_adjustment_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Data.Model.PromotionAdjustmentTest do
@moduledoc false
use ExUnit.Case
use Snitch.DataCase
import Snitch.Factory
alias Snitch.Data.Model.{Promotion, PromotionAdjustment}
describe "promotion adjustment queries" do
setup do
products = insert_list(3, :product, %{promotionable: true... | 35.28 | 91 | 0.70068 |
c87e0acb2d5b9a523a0b4f22dd17f0052ca4b274 | 4,552 | ex | Elixir | lib/clickhouse_ecto/connection.ex | coingaming/clickhouse_ecto | 455b0a20359dcbb540338ed4c2a4e3a1c0b7b0f1 | [
"Apache-2.0"
] | null | null | null | lib/clickhouse_ecto/connection.ex | coingaming/clickhouse_ecto | 455b0a20359dcbb540338ed4c2a4e3a1c0b7b0f1 | [
"Apache-2.0"
] | null | null | null | lib/clickhouse_ecto/connection.ex | coingaming/clickhouse_ecto | 455b0a20359dcbb540338ed4c2a4e3a1c0b7b0f1 | [
"Apache-2.0"
] | null | null | null | defmodule ClickhouseEcto.Connection do
alias Clickhousex.Query
alias ClickhouseEcto.Query, as: SQL
@typedoc "The prepared query which is an SQL command"
@type prepared :: String.t()
@typedoc "The cache query which is a DBConnection Query"
@type cached :: map
@doc """
Receives options and returns `DBC... | 29.558442 | 93 | 0.615773 |
c87e136b39904dd094cca949532663eea51ebce7 | 1,700 | ex | Elixir | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/add_public_key_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/add_public_key_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_shell/lib/google_api/cloud_shell/v1/model/add_public_key_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.170213 | 375 | 0.737059 |
c87e334495f3872c19e75d76c3e8587ce4c365e7 | 15,200 | exs | Elixir | lib/mix/test/mix/umbrella_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/umbrella_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/umbrella_test.exs | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | 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.115468 | 119 | 0.581711 |
c87e3bb11d40bbae4dc6759038424ec5290883ce | 517 | ex | Elixir | lib/freshcom/shortcut.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 46 | 2018-10-13T23:18:13.000Z | 2021-08-07T07:46:51.000Z | lib/freshcom/shortcut.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 25 | 2018-10-14T00:56:07.000Z | 2019-12-23T19:41:02.000Z | lib/freshcom/shortcut.ex | fleadope/freshcom | 8d5944befaa6eea8d31e5f5995939be2a1a44262 | [
"BSD-3-Clause"
] | 5 | 2018-12-16T04:39:51.000Z | 2020-10-01T12:17:03.000Z | defmodule Freshcom.Shortcut do
alias Freshcom.{Request, Identity}
def get_urt(account_id, user_id) do
req = %Request{
account_id: account_id,
identifier: %{"user_id" => user_id},
_role_: "system"
}
{:ok, %{data: urt}} = Identity.get_api_key(req)
urt
end
def get_prt(account_... | 18.464286 | 51 | 0.601547 |
c87e9d906a814212cc17d132513a0a0006ddce69 | 2,452 | ex | Elixir | lib/league_improvement_web.ex | AmadorZcv/league_improvement | 88393d22ff33d674f711c184f55b02ad6454c2ae | [
"MIT"
] | null | null | null | lib/league_improvement_web.ex | AmadorZcv/league_improvement | 88393d22ff33d674f711c184f55b02ad6454c2ae | [
"MIT"
] | 1 | 2021-04-16T21:19:12.000Z | 2021-04-16T21:19:12.000Z | lib/league_improvement_web.ex | AmadorZcv/league_improvement | 88393d22ff33d674f711c184f55b02ad6454c2ae | [
"MIT"
] | null | null | null | defmodule LeagueImprovementWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use LeagueImprovementWeb, :controller
use LeagueImprovementWeb, :view
The definitions below will be executed ... | 23.805825 | 78 | 0.699021 |
c87ee382ff6bc2423b98c266d3c49c2e3af31c3b | 77 | exs | Elixir | .formatter.exs | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 170 | 2017-08-25T06:40:14.000Z | 2022-01-10T22:18:51.000Z | .formatter.exs | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 27 | 2017-09-07T05:57:37.000Z | 2022-03-22T13:40:47.000Z | .formatter.exs | kayodeosagbemi/elixir-runtime | 1746adf362444e3e0cc2daa5e461be24f1cb624a | [
"Apache-2.0"
] | 16 | 2017-11-14T01:45:00.000Z | 2021-10-09T03:26:39.000Z | [
inputs: [
"/*.exs",
"lib/**/*.{ex,exs}",
"test/*.exs",
]
]
| 9.625 | 24 | 0.311688 |
c87f9d266fcefae73eae898b133674d8dd1d7ec1 | 3,711 | ex | Elixir | lib/sanbase_web/router.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase_web/router.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase_web/router.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Router do
use SanbaseWeb, :router
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_live_flash)
plug(:protect_from_forgery)
plug(:put_secure_browser_headers)
end
pipeline :basic_auth do
plug(SanbaseWeb.Plug.BasicAuth)
end
pipeline ... | 25.074324 | 92 | 0.686338 |
c87fabbe9faab9a24a1eb7a8ad422250f930b3b3 | 22,938 | ex | Elixir | lib/commanded/commands/router.ex | skunkwerks/commanded | 10e08641a190259056d52a35cfce1ba9575f4fb3 | [
"MIT"
] | null | null | null | lib/commanded/commands/router.ex | skunkwerks/commanded | 10e08641a190259056d52a35cfce1ba9575f4fb3 | [
"MIT"
] | null | null | null | lib/commanded/commands/router.ex | skunkwerks/commanded | 10e08641a190259056d52a35cfce1ba9575f4fb3 | [
"MIT"
] | null | null | null | defmodule Commanded.Commands.Router do
@moduledoc """
Command routing macro to allow configuration of each command to its command handler.
## Example
Define a router module which uses `Commanded.Commands.Router` and configures
available commands to dispatch:
defmodule BankRouter do
use Comman... | 33.291727 | 123 | 0.644869 |
c87fbab3a6598d63c90be5276609d9b0cab5bb65 | 2,400 | ex | Elixir | lib/mix/lib/mix/tasks/compile.protocols.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/mix/lib/mix/tasks/compile.protocols.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.protocols.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Protocols do
use Mix.Task
@moduledoc ~S"""
Consolidates all protocols in all paths.
This task is automatically invoked whenever the project
enables `:consolidate_protocols` or `:build_embedded` in
its configuration.
## Consolidation
Protocol consolidation is useful in pro... | 27.906977 | 95 | 0.694583 |
c880214fe0257acfce02db1fa58a881d6213e255 | 5,240 | ex | Elixir | apps/roll35_core/lib/roll35_core/application.ex | Ferroin/Roll35 | f9cda65b33105638884acd33d950d54e38c5d9fd | [
"MITNFA"
] | 1 | 2021-08-07T09:43:28.000Z | 2021-08-07T09:43:28.000Z | apps/roll35_core/lib/roll35_core/application.ex | Ferroin/Roll35 | f9cda65b33105638884acd33d950d54e38c5d9fd | [
"MITNFA"
] | 24 | 2020-11-24T19:18:46.000Z | 2022-02-28T08:03:36.000Z | apps/roll35_core/lib/roll35_core/application.ex | Ferroin/Roll35 | f9cda65b33105638884acd33d950d54e38c5d9fd | [
"MITNFA"
] | null | null | null | defmodule Roll35Core.Application do
@moduledoc false
use Application
require Logger
defp name(atom) do
{:via, Registry, {Roll35Core.Registry, atom}}
end
@impl Application
def start(_type, _args) do
dbpath = Path.join(Application.fetch_env!(:roll35_core, :data_path), "db")
File.mkdir_p!(db... | 24.600939 | 78 | 0.495611 |
c88024c6d5133b3898bf16dd7e278410ae8f887b | 360 | ex | Elixir | lib/web/controllers/admin/dashboard_controller.ex | yknx4/opencov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 8 | 2021-08-22T10:37:57.000Z | 2022-01-10T11:27:06.000Z | lib/web/controllers/admin/dashboard_controller.ex | yknx4/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | 109 | 2021-08-20T04:08:04.000Z | 2022-01-03T07:39:18.000Z | lib/web/controllers/admin/dashboard_controller.ex | Librecov/librecov | dc961a41e29b41b0657bc2a64bb67350a65477b8 | [
"MIT"
] | null | null | null | defmodule Librecov.Admin.DashboardController do
use Librecov.Web, :controller
alias Librecov.Repo
def index(conn, _params) do
users = Repo.latest(Librecov.User)
projects = Repo.latest(Librecov.Project)
settings = Librecov.SettingsManager.get!()
render(conn, "index.html", users: users, projects: ... | 27.692308 | 84 | 0.738889 |
c88047ba53a5be501a214a03e7d316222ded14f3 | 4,801 | ex | Elixir | lib/koans/18_genservers.ex | zups/elixir-koans | ac036085be4403421d4aff713f5c4328a5624662 | [
"MIT"
] | null | null | null | lib/koans/18_genservers.ex | zups/elixir-koans | ac036085be4403421d4aff713f5c4328a5624662 | [
"MIT"
] | null | null | null | lib/koans/18_genservers.ex | zups/elixir-koans | ac036085be4403421d4aff713f5c4328a5624662 | [
"MIT"
] | null | null | null | defmodule GenServers do
use Koans
@intro "GenServers"
defmodule Laptop do
use GenServer
#####
# External API
def init(args) do
{:ok, args}
end
def start_link(init_password) do
# The __MODULE__ macro returns the current module name as an atom
GenServer.start_link(__MOD... | 31.175325 | 114 | 0.675901 |
c8805a492f11b93fac5b46b805b4c0962d282952 | 763 | ex | Elixir | lib/ex_gdax/market.ex | fremantle-capital/ex_gdax | 2d858f74ce00b61c400bde868191ddb38c8aa051 | [
"MIT"
] | 11 | 2017-08-31T01:18:17.000Z | 2021-02-12T04:09:12.000Z | lib/ex_gdax/market.ex | fremantle-capital/ex_gdax | 2d858f74ce00b61c400bde868191ddb38c8aa051 | [
"MIT"
] | 5 | 2017-10-27T20:03:00.000Z | 2019-02-07T05:19:30.000Z | lib/ex_gdax/market.ex | fremantle-capital/ex_gdax | 2d858f74ce00b61c400bde868191ddb38c8aa051 | [
"MIT"
] | 9 | 2017-08-31T01:14:29.000Z | 2020-05-28T12:33:56.000Z | defmodule ExGdax.Market do
@moduledoc """
Unauthenticated endpoints for retrieving market data.
"""
import ExGdax.Api
def list_currencies do
get("/currencies")
end
def get_time do
get("/time")
end
def list_products do
get("/products")
end
def get_order_book(product_id, params \\ %{... | 19.564103 | 55 | 0.668414 |
c8808619844b1fee30975dcff5f5ccf5c10bfdf6 | 576 | ex | Elixir | lib/spi/spi_nif.ex | elcritch/circuits_spi | 8657898c85d3276184a6568f538e2ac0c3f1fee3 | [
"Apache-2.0"
] | null | null | null | lib/spi/spi_nif.ex | elcritch/circuits_spi | 8657898c85d3276184a6568f538e2ac0c3f1fee3 | [
"Apache-2.0"
] | 2 | 2022-02-24T08:29:23.000Z | 2022-03-24T08:33:06.000Z | lib/spi/spi_nif.ex | elcritch/circuits_spi | 8657898c85d3276184a6568f538e2ac0c3f1fee3 | [
"Apache-2.0"
] | null | null | null | defmodule Circuits.SPI.Nif do
@on_load {:load_nif, 0}
@compile {:autoload, false}
@moduledoc false
def load_nif() do
nif_binary = Application.app_dir(:circuits_spi, "priv/spi_nif")
:erlang.load_nif(to_charlist(nif_binary), 0)
end
def open(_bus_name, _mode, _bits_per_word, _speed_hz, _delay_us) do... | 20.571429 | 69 | 0.710069 |
c88092a585a34e4b2267b586f8c13c7a93fa985f | 47,607 | exs | Elixir | test/flow_test.exs | koode/flow | 348966136976a3874ba2a452e95374318ab784a2 | [
"Apache-2.0"
] | null | null | null | test/flow_test.exs | koode/flow | 348966136976a3874ba2a452e95374318ab784a2 | [
"Apache-2.0"
] | null | null | null | test/flow_test.exs | koode/flow | 348966136976a3874ba2a452e95374318ab784a2 | [
"Apache-2.0"
] | null | null | null | defmodule FlowTest do
use ExUnit.Case, async: true
doctest Flow
defmodule Counter do
use GenStage
def start_link(counter) do
GenStage.start_link(__MODULE__, counter)
end
def init(counter) do
{:producer, counter}
end
def handle_demand(demand, counter) when demand > 0 do
... | 30.32293 | 103 | 0.516353 |
c880c6f9bca28f795fea6e53f91b23b03f338dbb | 3,041 | ex | Elixir | clients/access_approval/lib/google_api/access_approval/v1/model/enrolled_service.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/access_approval/lib/google_api/access_approval/v1/model/enrolled_service.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/access_approval/lib/google_api/access_approval/v1/model/enrolled_service.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... | 60.82 | 1,485 | 0.755672 |
c880e577eec4f432097f5422c69fb8b7731e90ae | 5,734 | ex | Elixir | lib/bubble_lib/map_util/auto_map.ex | botsquad/bubble_lib | 774860db5d19e94ad0f3d34618519d13cbe9cbfe | [
"MIT"
] | 2 | 2018-09-25T19:35:00.000Z | 2019-09-23T18:12:50.000Z | lib/bubble_lib/map_util/auto_map.ex | botsquad/bubble_lib | 774860db5d19e94ad0f3d34618519d13cbe9cbfe | [
"MIT"
] | null | null | null | lib/bubble_lib/map_util/auto_map.ex | botsquad/bubble_lib | 774860db5d19e94ad0f3d34618519d13cbe9cbfe | [
"MIT"
] | 1 | 2019-09-23T18:12:53.000Z | 2019-09-23T18:12:53.000Z | defmodule BubbleLib.MapUtil.AutoMap do
@moduledoc """
Automagic map — creates deep elements inside. All map keys are
coerced to strings except for list indexes.
"""
alias BubbleLib.MapUtil.AutoMap
alias BubbleLib.MapUtil.AutoMap.ETS
import Kernel, except: [get_in: 2]
def put_in(data, keys, value) do
... | 22.936 | 88 | 0.615626 |
c881068fb5b6f57420bf880b2ce9789df4b1ffd0 | 167 | ex | Elixir | lib/ex_polygon/history.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/history.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | lib/ex_polygon/history.ex | aai/ex_polygon | 3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3 | [
"MIT"
] | null | null | null | defmodule ExPolygon.History do
@type t :: %ExPolygon.History{}
defstruct ~w(
results_count
map
db_latency
success
ticker
results
)a
end
| 12.846154 | 33 | 0.646707 |
c88142ed497fe6053fbf2fb0f6e139c7a2584046 | 3,122 | ex | Elixir | lib/jackalope/work_list.ex | smartrent/jackalope | be4cf8523de44f9af1af226327916a281bf95576 | [
"Apache-2.0"
] | 25 | 2020-11-12T18:31:56.000Z | 2022-03-08T02:20:10.000Z | lib/jackalope/work_list.ex | smartrent/jackalope | be4cf8523de44f9af1af226327916a281bf95576 | [
"Apache-2.0"
] | 17 | 2020-11-29T19:17:05.000Z | 2022-02-08T00:26:43.000Z | lib/jackalope/work_list.ex | smartrent/jackalope | be4cf8523de44f9af1af226327916a281bf95576 | [
"Apache-2.0"
] | 2 | 2021-06-17T03:49:57.000Z | 2022-01-26T15:23:17.000Z | defmodule Jackalope.WorkList do
@moduledoc false
require Logger
@default_max_size 100
defstruct items: [],
pending: %{},
max_size: @default_max_size
@type t() :: %__MODULE__{items: list(), max_size: non_neg_integer()}
@spec new(list(), non_neg_integer()) :: t()
def new(items, m... | 24.20155 | 95 | 0.626521 |
c88147838b30db04da62931a6dcda5d36df5d546 | 3,167 | ex | Elixir | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/sustainability.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_lodging/lib/google_api/my_business_lodging/v1/model/sustainability.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_lodging/lib/google_api/my_business_lodging/v1/model/sustainability.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... | 48.723077 | 194 | 0.762551 |
c8814e5a671abf9b42d2cda724f319f3751c9d1b | 804 | exs | Elixir | apps/day16/mix.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | 2 | 2019-12-21T21:21:04.000Z | 2019-12-27T07:00:19.000Z | apps/day16/mix.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | apps/day16/mix.exs | jwarwick/aoc_2019 | 04229b86829b72323498b57a6649fcc6f7c96406 | [
"MIT"
] | null | null | null | defmodule Day16.MixProject do
use Mix.Project
def project do
[
app: :day16,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9-dev",
start_permanent: Mix.env()... | 22.971429 | 88 | 0.56592 |
c88152e545f60489437b944b3b1dc72fa914a50f | 283 | exs | Elixir | config/test.exs | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | config/test.exs | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | config/test.exs | fangkunping/micro-server-shell | e90a9992bb58d4dbc2661825e6e5bcdce5f40e7d | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :micro_server_shell, MicroServerShell.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 25.727273 | 56 | 0.75265 |
c881830a99e41aff6fe7721f00a925fbbc35af4c | 1,391 | exs | Elixir | domotic_ui/mix.exs | gcauchon/domotic-pi | af61102fb946670b3e5ec93def6a5c053d894e79 | [
"MIT"
] | 1 | 2020-06-11T17:53:20.000Z | 2020-06-11T17:53:20.000Z | domotic_ui/mix.exs | gcauchon/domotic-pi | af61102fb946670b3e5ec93def6a5c053d894e79 | [
"MIT"
] | 9 | 2020-12-15T21:19:59.000Z | 2021-11-23T13:23:11.000Z | domotic_ui/mix.exs | gcauchon/domotic-pi | af61102fb946670b3e5ec93def6a5c053d894e79 | [
"MIT"
] | 1 | 2021-03-10T15:31:01.000Z | 2021-03-10T15:31:01.000Z | defmodule Domotic.MixProject do
use Mix.Project
def project do
[
app: :domotic,
version: "0.3.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 20.15942 | 57 | 0.5133 |
c881bac7bbd2fb2b55f6eb97ec4127b20e95751d | 2,176 | exs | Elixir | mix.exs | kianmeng/crontab | 8b84019a371c62fd7abb36214e8199174f83d90d | [
"MIT"
] | null | null | null | mix.exs | kianmeng/crontab | 8b84019a371c62fd7abb36214e8199174f83d90d | [
"MIT"
] | null | null | null | mix.exs | kianmeng/crontab | 8b84019a371c62fd7abb36214e8199174f83d90d | [
"MIT"
] | null | null | null | defmodule Crontab.Mixfile do
@moduledoc false
use Mix.Project
@version "1.1.10"
def project do
[
app: :crontab,
version: @version,
elixir: "~> 1.9",
build_embedded:
Mix.env() == :prod or System.get_env("BUILD_EMBEDDED", "false") in ["1", "true"],
start_permanent: Mix... | 25.011494 | 89 | 0.556985 |
c881dac395cdf83c282e3c343e4834412c6ef5d0 | 10,745 | exs | Elixir | test/process_managers/process_manager_error_handling_test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | 1 | 2022-02-20T10:42:07.000Z | 2022-02-20T10:42:07.000Z | test/process_managers/process_manager_error_handling_test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | test/process_managers/process_manager_error_handling_test.exs | jccf091/commanded | 5d68a2b1b7a222b6f204c48d886f3d2c9670f26a | [
"MIT"
] | null | null | null | defmodule Commanded.ProcessManager.ProcessManagerErrorHandlingTest do
use ExUnit.Case
alias Commanded.Helpers.EventFactory
alias Commanded.ProcessManagers.DefaultErrorHandlingProcessManager
alias Commanded.ProcessManagers.ErrorAggregate.Commands.StartProcess
alias Commanded.ProcessManagers.ErrorAggregate.Ev... | 33.47352 | 98 | 0.701815 |
c881fcd05198145fef073d0798f68d3e83aa97c6 | 729 | ex | Elixir | lib/short_url_web/router.ex | Youthink/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 170 | 2018-02-06T05:04:25.000Z | 2021-01-27T07:45:25.000Z | lib/short_url_web/router.ex | imfycc/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 3 | 2021-03-09T01:06:36.000Z | 2022-02-09T22:57:27.000Z | lib/short_url_web/router.ex | Youthink/short_url | b42450e8ea4ef8ea387291a73e3435eaa8fbfccd | [
"MIT"
] | 26 | 2018-02-26T06:53:10.000Z | 2020-11-08T23:02:13.000Z | defmodule ShortUrlWeb.Router do
use ShortUrlWeb, :router
pipeline :browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_flash)
plug(:protect_from_forgery)
plug(:put_secure_browser_headers)
end
pipeline :api do
plug(:accepts, ["json"])
end
scope "/", ShortUrlWeb do
... | 20.828571 | 66 | 0.666667 |
c8820b860fdf58ee0d2bae8b31aed43ee781a689 | 6,552 | ex | Elixir | lib/publisher.ex | mimimalizam/gen_rmq | 28dd1a91c7401029f903408d4fb3675985060e8a | [
"MIT"
] | null | null | null | lib/publisher.ex | mimimalizam/gen_rmq | 28dd1a91c7401029f903408d4fb3675985060e8a | [
"MIT"
] | null | null | null | lib/publisher.ex | mimimalizam/gen_rmq | 28dd1a91c7401029f903408d4fb3675985060e8a | [
"MIT"
] | null | null | null | defmodule GenRMQ.Publisher do
@moduledoc """
A behaviour module for implementing the RabbitMQ publisher
"""
use GenServer
use AMQP
alias Mix.Project
require Logger
# list of fields permitted in message metadata at top level
@metadata_fields :P_basic
|> Record.extract(from_lib: "r... | 31.052133 | 104 | 0.556624 |
c8820ed096ff1c765bd141ebaf4b97e59f7db3c2 | 218 | exs | Elixir | priv/repo/migrations/20210415022102_add_reported_to_article_comments.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | priv/repo/migrations/20210415022102_add_reported_to_article_comments.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | priv/repo/migrations/20210415022102_add_reported_to_article_comments.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Repo.Migrations.AddReportedToArticleComments do
use Ecto.Migration
def change do
alter table(:articles_comments) do
add(:is_reported, :boolean, default: false)
end
end
end
| 21.8 | 72 | 0.756881 |
c88221ef18d90d660ca2241d3db7d8a82d78961b | 1,351 | ex | Elixir | lib/battle_city/core/batch.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | lib/battle_city/core/batch.ex | clszzyh/battle_city_core | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | 38 | 2020-12-17T12:40:44.000Z | 2022-03-31T02:05:59.000Z | lib/battle_city/core/batch.ex | clszzyh/battle_city | 7a3aca9000b186382f1faf526ebce837a76ef86e | [
"MIT"
] | null | null | null | defmodule BattleCity.Core.Batch do
@moduledoc false
alias BattleCity.Context
alias BattleCity.Tank
@type op :: :kill | :stop | :resume
@spec handle_all_enemies(Context.t(), Tank.t(), {op(), BattleCity.reason()}) :: Context.t()
def handle_all_enemies(
%Context{tanks: tanks} = ctx,
%Tank{id... | 27.571429 | 93 | 0.554404 |
c8825b50768a316cc628f20d6ef3aff9e6f13c27 | 1,790 | exs | Elixir | clients/sheets/mix.exs | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/sheets/mix.exs | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/sheets/mix.exs | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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... | 26.716418 | 97 | 0.649162 |
c8825d2dda8c2d8dfb404532d54b064fb69d5367 | 1,135 | exs | Elixir | config/config.exs | nico-amsterdam/simple_mem_cache | d7f326857147c36f82dcd9875f822ad0ebc48e7c | [
"MIT"
] | 3 | 2016-08-12T12:38:11.000Z | 2016-09-27T14:25:28.000Z | config/config.exs | nico-amsterdam/simple_mem_cache | d7f326857147c36f82dcd9875f822ad0ebc48e7c | [
"MIT"
] | null | null | null | config/config.exs | nico-amsterdam/simple_mem_cache | d7f326857147c36f82dcd9875f822ad0ebc48e7c | [
"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... | 36.612903 | 73 | 0.755066 |
c88268fc5290b2b903dc0468fc4b99e6db763d7e | 4,667 | exs | Elixir | apps/reaper/test/unit/reaper/data_extract/processor_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/unit/reaper/data_extract/processor_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/unit/reaper/data_extract/processor_test.exs | PillarTechnology/smartcitiesdata | 9420a26820e38267513cd1bfa82c7f5583222bb1 | [
"Apache-2.0"
] | null | null | null | defmodule Reaper.DataExtract.ProcessorTest do
use ExUnit.Case
use Placebo
import ExUnit.CaptureLog
alias Reaper.{Cache, Persistence}
alias Reaper.DataExtract.Processor
alias SmartCity.TestDataGenerator, as: TDG
@dataset_id "12345-6789"
@csv """
one,two,three
four,five,six
"""
@download_dir ... | 31.113333 | 112 | 0.629526 |
c882754ae63a44c5fa7cf37da139f027a8384fa2 | 71 | ex | Elixir | lib/linkir_web/views/user_registration_view.ex | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | lib/linkir_web/views/user_registration_view.ex | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | lib/linkir_web/views/user_registration_view.ex | byhbt/linkir | 8ac72cd0da2696b628f6981595e75164adfc5945 | [
"MIT"
] | null | null | null | defmodule LinkirWeb.UserRegistrationView do
use LinkirWeb, :view
end
| 17.75 | 43 | 0.830986 |
c8828f3c15c146e0250ca7875e7114635fdd227b | 2,284 | exs | Elixir | config/integration_test.exs | thomasvolk/lighthouse | 566f4029a1ef1e5863e45b7f9b1b7afa914980ec | [
"Apache-2.0"
] | null | null | null | config/integration_test.exs | thomasvolk/lighthouse | 566f4029a1ef1e5863e45b7f9b1b7afa914980ec | [
"Apache-2.0"
] | null | null | null | config/integration_test.exs | thomasvolk/lighthouse | 566f4029a1ef1e5863e45b7f9b1b7afa914980ec | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# LighthouseWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
#... | 32.169014 | 67 | 0.724168 |
c882c7ec74bf86a8bbef9bf4d1254fd0c573f41a | 228 | exs | Elixir | priv/test_repo/migrations/20180731100435_create_categories.exs | kianmeng/turbo_ecto | b9fa5ee50dfdeeb9ad0782e7a8fcb3bd012d4c03 | [
"MIT"
] | 63 | 2018-08-01T13:04:07.000Z | 2021-08-18T06:09:11.000Z | priv/test_repo/migrations/20180731100435_create_categories.exs | kianmeng/turbo_ecto | b9fa5ee50dfdeeb9ad0782e7a8fcb3bd012d4c03 | [
"MIT"
] | 66 | 2018-08-03T02:04:02.000Z | 2021-08-18T03:40:41.000Z | priv/test_repo/migrations/20180731100435_create_categories.exs | kianmeng/turbo_ecto | b9fa5ee50dfdeeb9ad0782e7a8fcb3bd012d4c03 | [
"MIT"
] | 15 | 2018-08-03T02:30:49.000Z | 2021-08-17T13:06:05.000Z | defmodule Turbo.Ecto.TestRepo.Migrations.CreateCategories do
use Ecto.Migration
def change do
create table(:categories) do
add :name, :string
add :posts_count, :integer
timestamps()
end
end
end
| 17.538462 | 60 | 0.688596 |
c8830fb1d47cd67db82ca0f9d060097752ebaea1 | 1,950 | exs | Elixir | mix.exs | elixir-cldr/cldr_calendars_ethiopic | 1b6071e72eea783c97de3a821a1d465726b125d3 | [
"Apache-2.0"
] | null | null | null | mix.exs | elixir-cldr/cldr_calendars_ethiopic | 1b6071e72eea783c97de3a821a1d465726b125d3 | [
"Apache-2.0"
] | 1 | 2020-07-21T05:31:37.000Z | 2020-07-21T06:11:40.000Z | mix.exs | elixir-cldr/cldr_calendars_ethiopic | 1b6071e72eea783c97de3a821a1d465726b125d3 | [
"Apache-2.0"
] | 1 | 2020-07-21T05:23:37.000Z | 2020-07-21T05:23:37.000Z | defmodule Cldr.Calendars.Ethiopic.MixProject do
use Mix.Project
@version "0.5.0"
def project do
[
app: :cldr_calendars_ethiopic,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
source_url: "https://github.com/elixir-cldr/cldr_calen... | 22.413793 | 108 | 0.563077 |
c8831e0f4d08ff56e269e47dbbf1004d1ee51ffc | 3,942 | ex | Elixir | lib/ueberauth/strategy/google.ex | rubikill/ueberauth_google | 02022271e0103f9d7b235392f78f17f236bf5668 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/google.ex | rubikill/ueberauth_google | 02022271e0103f9d7b235392f78f17f236bf5668 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/google.ex | rubikill/ueberauth_google | 02022271e0103f9d7b235392f78f17f236bf5668 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Google do
@moduledoc """
Google Strategy for Überauth.
"""
use Ueberauth.Strategy, uid_field: :sub, default_scope: "email", hd: nil
alias Ueberauth.Auth.Info
alias Ueberauth.Auth.Credentials
alias Ueberauth.Auth.Extra
@doc """
Handles initial request for Google authenti... | 26.816327 | 102 | 0.645611 |
c88329d8bcbf1541980ae0e6ac85b9f333e52216 | 120 | ex | Elixir | lib/konvex/ability/to_get_text_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-03-08T08:30:24.000Z | 2022-03-08T08:30:24.000Z | lib/konvex/ability/to_get_text_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-01-28T16:45:57.000Z | 2022-01-28T16:56:22.000Z | lib/konvex/ability/to_get_text_value.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | null | null | null | defmodule Konvex.Ability.ToGetTextValue do
@callback get_text_value(key :: String.t) :: :key_not_found | String.t
end
| 30 | 72 | 0.775 |
c88339256538f8bc8c632ba622455e42a92cd2ca | 700 | ex | Elixir | web/views/error_helpers.ex | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | 1 | 2017-09-20T23:46:35.000Z | 2017-09-20T23:46:35.000Z | web/views/error_helpers.ex | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | matsubara0507/pastry-chef-test | 05c0fc3a3864e5469690da980e7bf3d2dbdb3919 | [
"MIT"
] | null | null | null | defmodule PastryChefTest.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn (error) ->
conten... | 25 | 80 | 0.682857 |
c883498bbeb10e023e11a50136134a21e5fa1058 | 141 | exs | Elixir | test/handyman_test.exs | Takmo/handyman | d2c56543900f840039785e92082ad10133c36a1a | [
"MIT"
] | null | null | null | test/handyman_test.exs | Takmo/handyman | d2c56543900f840039785e92082ad10133c36a1a | [
"MIT"
] | null | null | null | test/handyman_test.exs | Takmo/handyman | d2c56543900f840039785e92082ad10133c36a1a | [
"MIT"
] | null | null | null | defmodule HandymanTest do
use ExUnit.Case
doctest Handyman
test "greets the world" do
assert Handyman.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
c88353fdb67e2d13c6ea164f8be162a9e7e5affc | 4,193 | exs | Elixir | priv/repo/seeds.exs | retgoat/band-indigo.com | b8a1cf58ec766858cc2319441fa8628ad763529a | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | retgoat/band-indigo.com | b8a1cf58ec766858cc2319441fa8628ad763529a | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | retgoat/band-indigo.com | b8a1cf58ec766858cc2319441fa8628ad763529a | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# BandIndigo.Repo.insert!(%SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail ... | 51.134146 | 181 | 0.522061 |
c8835966ee536f97ed3fff2930e6d15b6efd22f4 | 13,627 | ex | Elixir | lib/evm/operation.ex | oraclesorg/evm | 04076d31356b3ec64c935cf9896e8115c0209c88 | [
"MIT"
] | 1 | 2018-04-23T01:57:52.000Z | 2018-04-23T01:57:52.000Z | lib/evm/operation.ex | poanetwork/evm | 04076d31356b3ec64c935cf9896e8115c0209c88 | [
"MIT"
] | null | null | null | lib/evm/operation.ex | poanetwork/evm | 04076d31356b3ec64c935cf9896e8115c0209c88 | [
"MIT"
] | 1 | 2018-04-25T22:58:39.000Z | 2018-04-25T22:58:39.000Z | defmodule EVM.Operation do
@moduledoc """
Code to handle encoding and decoding
operations from opcodes.
"""
alias MathHelper
alias EVM.Helpers
alias EVM.ExecEnv
alias EVM.MachineState
alias EVM.Stack
alias EVM.SubState
alias EVM.Operation.Metadata.StopAndArithmetic, as: StopAndArithmeticMetadata
... | 35.303109 | 191 | 0.673002 |
c8837e93a37f36db4ee0e9af70e12dedc6e2aa58 | 1,476 | ex | Elixir | lib/mastani_server_web/middleware/add_source_icon.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server_web/middleware/add_source_icon.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server_web/middleware/add_source_icon.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | # ---
# parse and add source icon to radar posts
# ---
defmodule MastaniServerWeb.Middleware.AddSourceIcon do
@moduledoc """
parse and add source icon to radar posts
"""
@behaviour Absinthe.Middleware
@parse_error "https://cps-oss.oss-cn-shanghai.aliyuncs.com/icons/radar_source/url_parse_waning.png"
@wanqu... | 35.142857 | 101 | 0.726965 |
c883872958998d223b3d5c0f7a5bc0deb03b0d20 | 107 | ex | Elixir | examples/your_app/lib/your_app/repo.ex | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | 11 | 2020-01-25T16:17:24.000Z | 2020-06-03T10:46:27.000Z | examples/your_app/lib/your_app/repo.ex | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | null | null | null | examples/your_app/lib/your_app/repo.ex | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | null | null | null | defmodule YourApp.Repo do
use Ecto.Repo,
otp_app: :your_app,
adapter: Ecto.Adapters.Postgres
end
| 17.833333 | 35 | 0.728972 |
c8838b3eaaed89a981c1ca91ed58047f73a39c01 | 2,661 | ex | Elixir | lib/ex_oauth2_provider/plug/ensure_scopes.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | 2 | 2021-04-25T20:59:53.000Z | 2021-07-13T22:49:20.000Z | lib/ex_oauth2_provider/plug/ensure_scopes.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_oauth2_provider/plug/ensure_scopes.ex | gozego/ex_oauth2_provider | d3a7658d28233dda2dfdef7ed397b5b440a2f737 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExOauth2Provider.Plug.EnsureScopes do
@moduledoc """
Use this plug to ensure that there are the correct scopes on
the token found on the connection.
### Example
alias ExOauth2Provider.Plug.EnsureScopes
# With custom handler
plug EnsureScopes, scopes: ~w(read write), handler: SomeMo... | 30.238636 | 86 | 0.67531 |
c883908c8b880e05e642c500cab8bd650689ea92 | 270 | exs | Elixir | priv/repo/migrations/20210620224553_update_uploads.exs | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | priv/repo/migrations/20210620224553_update_uploads.exs | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | priv/repo/migrations/20210620224553_update_uploads.exs | froseph/ambry | 86c1a8528b9f3cc7e4a7debd8005df4116a7d1b1 | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule Ambry.Repo.Migrations.UpdateUploads do
use Ecto.Migration
def change do
alter table(:uploads) do
add :full_cast, :boolean, null: false
add :narrators, {:array, :integer}, null: false
add :status, :text, null: false
end
end
end
| 22.5 | 53 | 0.67037 |
c8839a22528e5fec357fed7ac31e77ee149600cf | 3,243 | ex | Elixir | lib/show_me_the_code_web/channels/room_channel.ex | youzan/show-me-the-code | ec530ab87aecda213beb3f4fff3aa85b2df58802 | [
"MIT"
] | 161 | 2018-07-11T09:49:17.000Z | 2021-11-16T12:43:36.000Z | lib/show_me_the_code_web/channels/room_channel.ex | youzan/show-me-the-code | ec530ab87aecda213beb3f4fff3aa85b2df58802 | [
"MIT"
] | 8 | 2018-08-16T06:46:58.000Z | 2021-08-25T03:37:42.000Z | lib/show_me_the_code_web/channels/room_channel.ex | youzan/show-me-the-code | ec530ab87aecda213beb3f4fff3aa85b2df58802 | [
"MIT"
] | 18 | 2018-10-16T10:42:14.000Z | 2022-03-11T10:49:24.000Z | defmodule ShowMeTheCodeWeb.RoomChannel do
use Phoenix.Channel
alias ShowMeTheCode.{User, Repo, Room}
alias ShowMeTheCode.Room.{Registry, Bucket, Watcher, Presence}
def join("room:" <> room_id, _payload, socket) do
try do
if !String.match?(
room_id,
~r/^[0-9a-f]{8}-[0-9a-f]{4}-[... | 30.027778 | 93 | 0.622263 |
c883b6501bc3958b370144b41affdaeac8e063cb | 1,421 | exs | Elixir | config/config.exs | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 7 | 2019-05-11T12:14:48.000Z | 2021-04-02T18:42:51.000Z | config/config.exs | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 3 | 2019-05-11T08:01:47.000Z | 2019-05-14T12:06:50.000Z | config/config.exs | cloud8421/ada | 384f5e5e85e95c4d5883298259e781cc0a54bd07 | [
"MIT"
] | 1 | 2021-01-06T14:57:32.000Z | 2021-01-06T14:57:32.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
config :ecto, json_library: Jason
config :ada,
ecto_repos: [Ada.Repo]
config :ada... | 24.929825 | 63 | 0.715693 |
c883b8fcc775af8ec10ae17b6fd3e599b5a03290 | 563 | ex | Elixir | lib/bullish_web/controllers/fallback_controller.ex | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 1 | 2019-04-24T03:04:23.000Z | 2019-04-24T03:04:23.000Z | lib/bullish_web/controllers/fallback_controller.ex | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 3 | 2019-03-13T03:26:51.000Z | 2021-05-08T02:34:05.000Z | lib/bullish_web/controllers/fallback_controller.ex | EssenceOfChaos/bullish | b5044a383b9aa1550b2a1ca40593de198f51ceec | [
"MIT"
] | 1 | 2019-03-07T04:56:16.000Z | 2019-03-07T04:56:16.000Z | defmodule BullishWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use BullishWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_statu... | 26.809524 | 75 | 0.705151 |
c883b9b0d63c6ee5d951226e7489403476b9d67a | 1,437 | exs | Elixir | config/dev.exs | doma-engineering/contact_form | 0b6305ec6afc238afff4f848c43acdb1ad739d6f | [
"WTFPL"
] | null | null | null | config/dev.exs | doma-engineering/contact_form | 0b6305ec6afc238afff4f848c43acdb1ad739d6f | [
"WTFPL"
] | 2 | 2021-08-01T18:52:32.000Z | 2021-08-18T13:47:58.000Z | config/dev.exs | doma-engineering/contact_form | 0b6305ec6afc238afff4f848c43acdb1ad739d6f | [
"WTFPL"
] | 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 webpack to recompile .js and .css sources.
config :contact_form, ContactFormWeb.Endpoint,
http: [p... | 29.326531 | 68 | 0.724426 |
c883d1137fcf3bead2c3bcbc09e7ecf0952ef6f4 | 613 | exs | Elixir | timetable_backend/test/views/error_view_test.exs | heru/timetable | b5f86f53020c6e32b569628c5396b8972ca0538f | [
"MIT"
] | null | null | null | timetable_backend/test/views/error_view_test.exs | heru/timetable | b5f86f53020c6e32b569628c5396b8972ca0538f | [
"MIT"
] | null | null | null | timetable_backend/test/views/error_view_test.exs | heru/timetable | b5f86f53020c6e32b569628c5396b8972ca0538f | [
"MIT"
] | null | null | null | defmodule TimetableBackend.ErrorViewTest do
use TimetableBackend.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(TimetableBackend.ErrorView, "404.html", []) ==
"Page not found"
end
... | 27.863636 | 74 | 0.699837 |
c883f2578b9f519695a2c6a88a350b0fb73c7b8d | 1,808 | ex | Elixir | test/support/model_case.ex | thatbraxguy/real-time-quill | 288df903ddada42695c68fd0674e5976a4a848a9 | [
"MIT"
] | null | null | null | test/support/model_case.ex | thatbraxguy/real-time-quill | 288df903ddada42695c68fd0674e5976a4a848a9 | [
"MIT"
] | null | null | null | test/support/model_case.ex | thatbraxguy/real-time-quill | 288df903ddada42695c68fd0674e5976a4a848a9 | [
"MIT"
] | null | null | null | defmodule Quickquill.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. F... | 27.393939 | 84 | 0.688053 |
c883fdb6785dbdf339bc6e4d955d0ea0f951d37d | 1,924 | ex | Elixir | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/sqlresponse.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/sqlresponse.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/sqlresponse.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.301887 | 225 | 0.70894 |
c8841bd0f9226c32607e8499bb8d5646ae2b6217 | 210 | exs | Elixir | priv/repo/migrations/20211116125213_add_avatar_url_to_users.exs | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | priv/repo/migrations/20211116125213_add_avatar_url_to_users.exs | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | priv/repo/migrations/20211116125213_add_avatar_url_to_users.exs | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | defmodule Hexa.Repo.Migrations.AddAvatarUrlToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :avatar_url, :string
add :external_homepage_url, :string
end
end
end
| 19.090909 | 53 | 0.714286 |
c88429d9d0a2caa2b7d3c02e3017f78d8c84884b | 1,694 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/role_role_privileges.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/role_role_privileges.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/role_role_privileges.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... | 33.88 | 216 | 0.730224 |
c8843badea28f5c3886874f1e97d086b648e6bd8 | 570 | ex | Elixir | apps/welcome2_web/lib/welcome2_web/router.ex | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | apps/welcome2_web/lib/welcome2_web/router.ex | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | 13 | 2020-03-22T08:00:57.000Z | 2022-03-07T16:35:36.000Z | apps/welcome2_web/lib/welcome2_web/router.ex | philihp/welcome2_umbrella | f5f494b98fe4b64a3e1bbfc1b8b432aad7f8c3b2 | [
"MIT"
] | null | null | null | defmodule Welcome2Web.Router do
use Welcome2Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/game", Welcome2Web do
... | 19.655172 | 39 | 0.670175 |
c88448ec321b1690a31a440733fa185d07dd23fa | 7,479 | ex | Elixir | lib/plug_rest/conn.ex | christopheradams/plug_rest | 8cd5b8a7a5622bab6b72a146c09a1343fdeb4fad | [
"Apache-2.0"
] | 54 | 2016-07-20T16:40:00.000Z | 2022-03-16T06:59:54.000Z | lib/plug_rest/conn.ex | dragonwasrobot/plug_rest | 8cd5b8a7a5622bab6b72a146c09a1343fdeb4fad | [
"Apache-2.0"
] | 4 | 2016-09-28T11:31:17.000Z | 2020-01-27T05:45:00.000Z | lib/plug_rest/conn.ex | dragonwasrobot/plug_rest | 8cd5b8a7a5622bab6b72a146c09a1343fdeb4fad | [
"Apache-2.0"
] | 6 | 2017-03-17T17:35:33.000Z | 2020-01-23T11:26:59.000Z | defmodule PlugRest.Conn do
@moduledoc false
import Plug.Conn
import Plug.Conn.Utils
@type conn :: Plug.Conn.t()
@type media_type :: PlugRest.State.media_type()
@type etags_list :: list()
@type quality_type :: {String.t(), float()}
@type priority_type :: {media_type, float(), map()}
@typep params :... | 24.125806 | 93 | 0.570531 |
c88459d39bb7aa9cf47abd5e911c5c3f31426f24 | 106 | ex | Elixir | lib/erlixir/repo.ex | itsemilano/erlixir | 39fdcb86a9ccd55058682b3263d40efb9cbad11f | [
"MIT"
] | null | null | null | lib/erlixir/repo.ex | itsemilano/erlixir | 39fdcb86a9ccd55058682b3263d40efb9cbad11f | [
"MIT"
] | null | null | null | lib/erlixir/repo.ex | itsemilano/erlixir | 39fdcb86a9ccd55058682b3263d40efb9cbad11f | [
"MIT"
] | null | null | null | defmodule Erlixir.Repo do
use Ecto.Repo,
otp_app: :erlixir,
adapter: Ecto.Adapters.Postgres
end
| 17.666667 | 35 | 0.726415 |
c88463ed0ba915601f3bbfd3448e7887f1e21e52 | 731 | exs | Elixir | test/surgex/parser/parsers/slug_parser_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | test/surgex/parser/parsers/slug_parser_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | test/surgex/parser/parsers/slug_parser_test.exs | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.Parser.SlugParserTest do
use ExUnit.Case
alias Surgex.Parser.SlugParser
test "nil" do
assert SlugParser.call(nil) == {:ok, nil}
end
test "empty string" do
assert SlugParser.call("") == {:ok, nil}
end
test "valid input" do
assert SlugParser.call("abc-123") == {:ok, "abc-123"... | 26.107143 | 66 | 0.660739 |
c88471d78f3cc8b63c081309bef554e5d99ab41f | 1,175 | exs | Elixir | test/lib/annotations/annotatable_test.exs | chrisjowen/rubbergloves | 9fad14e7309374d6792b83774cef9f4125926d34 | [
"MIT"
] | 2 | 2020-01-14T00:41:15.000Z | 2020-02-05T09:09:12.000Z | test/lib/annotations/annotatable_test.exs | chrisjowen/rubbergloves | 9fad14e7309374d6792b83774cef9f4125926d34 | [
"MIT"
] | null | null | null | test/lib/annotations/annotatable_test.exs | chrisjowen/rubbergloves | 9fad14e7309374d6792b83774cef9f4125926d34 | [
"MIT"
] | null | null | null | defmodule Rubbergloves.AnnotatableTest do
use ExUnit.Case
defmodule Example do
use Rubbergloves.Annotatable, [:bar, :foo]
@bar true
def bar_method do end
@foo [:test]
@bar true
def foo_bar_method do end
def no_annotation_method do end
@baz "ads"
def undefined_annotation_met... | 27.97619 | 121 | 0.723404 |
c8847b2dfdae112a2406849410003910dc36bde6 | 178 | exs | Elixir | priv/repo/migrations/20171022101348_add_unique_index_to_favorite.exs | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | 4 | 2019-02-11T12:15:36.000Z | 2021-03-22T16:23:47.000Z | priv/repo/migrations/20171022101348_add_unique_index_to_favorite.exs | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | null | null | null | priv/repo/migrations/20171022101348_add_unique_index_to_favorite.exs | ludwikbukowski/recipes | cac5711d32874c3011da8da3329b70d0e28e725e | [
"MIT"
] | null | null | null | defmodule EmpexCookbook.Repo.Migrations.AddUniqueIndexToFavorite do
use Ecto.Migration
def change do
create(unique_index(:favorites, [:user_id, :article_id]))
end
end
| 22.25 | 67 | 0.780899 |
c88485cb925a2e247f136fb2848946d512fdaa6a | 946 | ex | Elixir | lib/ecto/registry.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | 1 | 2017-11-27T06:00:32.000Z | 2017-11-27T06:00:32.000Z | lib/ecto/registry.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | lib/ecto/registry.ex | jccf091/ecto | 42d47a6da0711f842e1a0e6724a89b318b9b2144 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Registry do
@moduledoc false
use GenServer
## Public interface
def start_link() do
GenServer.start_link(__MODULE__, :ok, [name: __MODULE__])
end
def associate(pid, value) when is_pid(pid) do
GenServer.call(__MODULE__, {:associate, pid, value})
end
def lookup(repo_name) do
... | 21.5 | 72 | 0.653277 |
c884942aaae7aedf3b24430d0a071340d4eb9813 | 1,132 | exs | Elixir | mix.exs | bengtson/latlong | 2eeb66b4483255745e8fcec9382e30fa9494cc79 | [
"Apache-2.0"
] | 1 | 2017-02-01T13:50:58.000Z | 2017-02-01T13:50:58.000Z | mix.exs | bengtson/latlong | 2eeb66b4483255745e8fcec9382e30fa9494cc79 | [
"Apache-2.0"
] | null | null | null | mix.exs | bengtson/latlong | 2eeb66b4483255745e8fcec9382e30fa9494cc79 | [
"Apache-2.0"
] | null | null | null | defmodule Latlong.Mixfile do
use Mix.Project
def project do
[app: :latlong,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: "Latitude, Longitude Parser",
package: package,
deps: deps(),
# Docs
na... | 21.769231 | 77 | 0.59894 |
c88512f2e7ed83c96599c044d873625078a06a70 | 1,995 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/primary_step.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/primary_step.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/primary_step.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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... | 35 | 134 | 0.74386 |
c88520a044b16179b5cebc6c722769c1bd887aed | 708 | exs | Elixir | test/penelope/nlp/pos_tagger_test.exs | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 53 | 2017-10-13T06:39:49.000Z | 2022-03-28T19:43:42.000Z | test/penelope/nlp/pos_tagger_test.exs | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 12 | 2018-01-08T23:05:37.000Z | 2019-08-02T12:59:27.000Z | test/penelope/nlp/pos_tagger_test.exs | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 4 | 2018-06-13T19:45:57.000Z | 2019-10-17T13:37:06.000Z | defmodule Penelope.NLP.POSTaggerTest do
use ExUnit.Case
alias Penelope.NLP.POSTagger
@x_train [
String.split("Bill is on a boat"),
String.split("I 'm just a bill")
]
@y_train [
String.split("NNP VBZ IN DT NN"),
String.split("PRP VBP RB DT NN")
]
test "fit/export/compile" do
model =... | 24.413793 | 69 | 0.648305 |
c885458a20f221eb81b27d29bd9e9be217e70ec4 | 320 | ex | Elixir | lib/mix/tasks/rolodex.ex | opsb/rolodex | 0e814527a8f7ef04a50742752096655b07365888 | [
"MIT"
] | 36 | 2019-02-19T19:07:38.000Z | 2022-02-23T18:14:31.000Z | lib/mix/tasks/rolodex.ex | opsb/rolodex | 0e814527a8f7ef04a50742752096655b07365888 | [
"MIT"
] | 4 | 2019-02-19T18:55:46.000Z | 2019-05-03T18:45:53.000Z | lib/mix/tasks/rolodex.ex | opsb/rolodex | 0e814527a8f7ef04a50742752096655b07365888 | [
"MIT"
] | 3 | 2019-02-19T19:50:05.000Z | 2020-11-20T11:26:57.000Z | defmodule Mix.Tasks.Rolodex do
use Mix.Task
@shortdoc "Prints Rolodex help information"
@moduledoc """
Prints all available Rolodex tasks.
mix rolodex
"""
@doc false
def run(_args) do
Mix.shell().info("\nAvailable Rolodex Tasks:\n")
Mix.Tasks.Help.run(["--search", "rolodex."])
end
end
| 17.777778 | 52 | 0.659375 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.