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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
388ae3725e89fc2e40958a01a2936f4288ecc54e | 3,607 | ex | Elixir | lib/bencodex.ex | slang800/Bencodex | 99c138edc887af6b4be8cdbfa57210b4676bac67 | [
"Apache-2.0"
] | null | null | null | lib/bencodex.ex | slang800/Bencodex | 99c138edc887af6b4be8cdbfa57210b4676bac67 | [
"Apache-2.0"
] | null | null | null | lib/bencodex.ex | slang800/Bencodex | 99c138edc887af6b4be8cdbfa57210b4676bac67 | [
"Apache-2.0"
] | null | null | null | defmodule Bencodex do
@moduledoc """
Bencodex is a encoder/decoder for the bencode protocol.
Bencode supports four types of objects
* `string` - Implemented as an ASCII encoded binary
* `integer` - Encoded in base 10 ASCII
* `list` - Ordered, heterogenious list
* `dictio... | 27.96124 | 93 | 0.589687 |
388b216e316a313fd27c97af16cb13f21abea11f | 141 | exs | Elixir | test/pranxhow_test.exs | zeionara/pranxhow | 8c7652ff5b0fe7c27f1b2b4bbc43859709d7ab2c | [
"Apache-2.0"
] | null | null | null | test/pranxhow_test.exs | zeionara/pranxhow | 8c7652ff5b0fe7c27f1b2b4bbc43859709d7ab2c | [
"Apache-2.0"
] | null | null | null | test/pranxhow_test.exs | zeionara/pranxhow | 8c7652ff5b0fe7c27f1b2b4bbc43859709d7ab2c | [
"Apache-2.0"
] | null | null | null | defmodule PranxhowTest do
use ExUnit.Case
doctest Pranxhow
test "greets the world" do
assert Pranxhow.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
388b2d10b039c949aa2924efc84d98a43ea246a6 | 854 | exs | Elixir | mix.exs | preciz/max | 263eb4857771d64526fa404ead79c072ca996c6c | [
"MIT"
] | 1 | 2020-05-04T22:34:16.000Z | 2020-05-04T22:34:16.000Z | mix.exs | preciz/max | 263eb4857771d64526fa404ead79c072ca996c6c | [
"MIT"
] | 4 | 2020-09-17T04:56:52.000Z | 2021-09-06T11:47:13.000Z | mix.exs | preciz/max | 263eb4857771d64526fa404ead79c072ca996c6c | [
"MIT"
] | null | null | null | defmodule Max.MixProject do
use Mix.Project
@version "0.1.4"
@github "https://github.com/preciz/max"
def project do
[
app: :max,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
homepag... | 16.745098 | 60 | 0.52459 |
388b47d7fac17fc64cf5e21fe0e70ea560452965 | 432 | ex | Elixir | lib/backroll/supervisor.ex | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | 1 | 2020-01-13T19:56:02.000Z | 2020-01-13T19:56:02.000Z | lib/backroll/supervisor.ex | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | null | null | null | lib/backroll/supervisor.ex | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | null | null | null | defmodule Backroll.Supervisor do
use Supervisor
def start() do
{:ok, pid} = Supervisor.start_link(__MODULE__, [])
Process.unlink(pid)
{:ok, pid}
end
def start_link() do
Supervisor.start_link(__MODULE__, [])
end
def start_link(name) do
Supervisor.start_link(__MODULE__, [], name: name)
... | 20.571429 | 77 | 0.673611 |
388b73cdd953cc3d5e0e744c018f2bd72385faf7 | 5,972 | exs | Elixir | test/json_schema_test_suite/draft7/dependencies_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft7/dependencies_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | test/json_schema_test_suite/draft7/dependencies_test.exs | romul/xema | 8273e10645cf54e8765a197b1ff0c097994275d9 | [
"MIT"
] | null | null | null | defmodule JsonSchemaTestSuite.Draft7.DependenciesTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe "dependencies" do
setup do
%{
schema:
Xema.from_json_schema(
%{"dependencies" => %{"bar" => ["foo"]}},
draft: "draft7"
)
}
end
... | 24.677686 | 84 | 0.502679 |
388bd40006b170b8196f7d07c2a4fcb912d7539a | 4,436 | ex | Elixir | clients/games/lib/google_api/games/v1/api/pushtokens.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/pushtokens.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/pushtokens.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"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... | 37.277311 | 170 | 0.680117 |
388be6de36d8ed7a8a84c86e70adb902f72b34ba | 1,835 | exs | Elixir | test/absinthe/phase/document/directives_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/phase/document/directives_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/phase/document/directives_test.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Phase.Document.DirectivesTest do
use Absinthe.Case, async: true
alias Absinthe.{Blueprint, Phase, Pipeline}
defmodule Schema do
use Absinthe.Schema
query do
field :books, list_of(:book)
end
object :book do
field :name, :string
field :categories, list_of(:ca... | 22.378049 | 72 | 0.621253 |
388c0ee26e3e71232c41cf4f2231ab4e68efe90b | 2,925 | ex | Elixir | lib/mojito/pool/poolboy.ex | appcues/xclient | 423984cbc9bb592d799d9d9e456a1d4eca45245b | [
"MIT"
] | 367 | 2019-02-25T23:50:14.000Z | 2022-02-11T23:05:16.000Z | lib/mojito/pool/poolboy.ex | appcues/xclient | 423984cbc9bb592d799d9d9e456a1d4eca45245b | [
"MIT"
] | 72 | 2019-02-26T00:30:49.000Z | 2022-02-03T22:24:04.000Z | lib/mojito/pool/poolboy.ex | appcues/xclient | 423984cbc9bb592d799d9d9e456a1d4eca45245b | [
"MIT"
] | 36 | 2019-03-18T15:34:18.000Z | 2021-08-31T21:25:18.000Z | defmodule Mojito.Pool.Poolboy do
@moduledoc false
## Mojito.Pool.Poolboy is an HTTP client with high-performance, easy-to-use
## connection pools based on the Poolboy library.
##
## Pools are maintained automatically by Mojito, requests are matched to
## the correct pool without user intervention, and mult... | 28.398058 | 78 | 0.647521 |
388c0fe5e793337dbe70644527cd99604fd6e38c | 1,817 | exs | Elixir | mix.exs | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | mix.exs | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | mix.exs | activeprospect/postgrex | d267e419de5db61ac8705210dec8527e4bf94a84 | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Mixfile do
use Mix.Project
@version "0.14.1"
def project do
[
app: :postgrex,
version: @version,
elixir: "~> 1.4",
deps: deps(),
name: "Postgrex",
description: "PostgreSQL driver for Elixir",
source_url: "https://github.com/elixir-ecto/postgrex",
... | 22.432099 | 69 | 0.532746 |
388c18f232fc9b84f8065186267dff843714109a | 2,023 | ex | Elixir | apps/tai/lib/tai/venue_adapters/ftx/product.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/ftx/product.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/venue_adapters/ftx/product.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Ftx.Product do
alias ExFtx.Market
defmodule Options do
@type t :: %Options{
type: Tai.Venues.Product.type(),
collateral: Tai.Venues.Product.collateral(),
collateral_weight: Tai.Venues.Product.collateral_weight(),
expiry: Tai.Venues.Product.expiry()
}
... | 35.491228 | 93 | 0.684132 |
388c1fc694ab211655f10ab76e8f8a6d7d5787d4 | 282 | exs | Elixir | test/event_store/subscription_test.exs | zipmex/commanded-eventstore-adapter | c599da23ed9b5be6e0dd1e713a933a6d9fdb10fa | [
"MIT"
] | 23 | 2017-12-08T18:02:40.000Z | 2021-06-12T05:35:52.000Z | test/event_store/subscription_test.exs | slashdotdash/commanded-eventstore-adapter | 76dad75bdde56390329cbd71b2dba4dddededa5e | [
"MIT"
] | 5 | 2018-10-15T13:35:37.000Z | 2020-10-18T13:19:53.000Z | test/event_store/subscription_test.exs | slashdotdash/commanded-eventstore-adapter | 76dad75bdde56390329cbd71b2dba4dddededa5e | [
"MIT"
] | 19 | 2018-09-28T09:17:50.000Z | 2021-06-25T00:29:36.000Z | defmodule Commanded.EventStore.Adapters.EventStore.SubscriptionTest do
use Commanded.EventStore.EventStoreTestCase
use Commanded.EventStore.SubscriptionTestCase,
event_store: Commanded.EventStore.Adapters.EventStore
defp event_store_wait(_default \\ nil), do: 1_000
end
| 31.333333 | 70 | 0.833333 |
388c2b137b3ef2a339ea07ec00a8084d945cf7a6 | 249 | ex | Elixir | apps/panacea_beacon/lib/panacea_beacon.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/panacea_beacon/lib/panacea_beacon.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | apps/panacea_beacon/lib/panacea_beacon.ex | timjp87/panacea | 5edddfa12a8f18b040248b9b186479b9ec8aed51 | [
"MIT"
] | null | null | null | defmodule Beacon do
@moduledoc """
Beacon keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.9 | 66 | 0.751004 |
388c49dc0c80cf976050e03295058623dfe9da5b | 594 | exs | Elixir | priv/repo/seeds.exs | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | spearheadsys/asciinema-server | 6c8874e5dcfbbf9be176f831dd1ea421c43d375f | [
"Apache-2.0"
] | 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:
#
# Asciinema.Repo.insert!(%Asciinema.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they ... | 33 | 93 | 0.771044 |
388c4d7e2d7166d1a082e8390bcab50acfb9c5ab | 992 | exs | Elixir | config/config.exs | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | config/config.exs | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | config/config.exs | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :phoenix_api_starter,
ecto_repos: [Phoen... | 35.428571 | 86 | 0.774194 |
388c5c7b3930f043b057e1f47a8614f01d264bd3 | 3,773 | ex | Elixir | lib/ex_twilio/jwt/access_token.ex | antoinereyt/ex_twilio | 00276cb855574f2dfd89f72f260a1d56136d48aa | [
"MIT"
] | null | null | null | lib/ex_twilio/jwt/access_token.ex | antoinereyt/ex_twilio | 00276cb855574f2dfd89f72f260a1d56136d48aa | [
"MIT"
] | null | null | null | lib/ex_twilio/jwt/access_token.ex | antoinereyt/ex_twilio | 00276cb855574f2dfd89f72f260a1d56136d48aa | [
"MIT"
] | 2 | 2022-03-08T22:05:17.000Z | 2022-03-09T05:29:46.000Z | defmodule ExTwilio.JWT.AccessToken do
@moduledoc """
A Twilio JWT access token, as described in the Twilio docs.
https://www.twilio.com/docs/iam/access-tokens
"""
alias ExTwilio.JWT.Grant
alias ExTwilio.Ext
use Joken.Config
@enforce_keys [:account_sid, :api_key, :api_secret, :identity, :grants, :expi... | 30.184 | 311 | 0.620461 |
388c61356f5c191d2a85ac893d4d4f9f6f62dd14 | 589 | ex | Elixir | test/phoenixstarter_web/models/user_test.ex | nickyeager/phoenix-starter | 6940499c28b460916d610929e6a6fec256345018 | [
"MIT"
] | null | null | null | test/phoenixstarter_web/models/user_test.ex | nickyeager/phoenix-starter | 6940499c28b460916d610929e6a6fec256345018 | [
"MIT"
] | 2 | 2021-03-10T19:22:36.000Z | 2021-05-11T15:05:23.000Z | test/phoenixstarter_web/models/user_test.ex | nickyeager/phoenix-starter | 6940499c28b460916d610929e6a6fec256345018 | [
"MIT"
] | null | null | null | defmodule PhoenixStarterWeb.UserTest do
use PhoenixStarterWeb.ModelCase
alias PhoenixStarterWeb.User
test "changeset/2 sets default role" do
user =
%User{}
|> User.changeset(%{})
|> Ecto.Changeset.apply_changes()
assert user.role == "user"
end
test "changeset_role/2" do
change... | 25.608696 | 103 | 0.662139 |
388cbcccc98276c728a0a5fbb91f0c22fe00494a | 2,083 | ex | Elixir | lib/policr_mini_bot/plugs/handle_self_left_plug.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | null | null | null | lib/policr_mini_bot/plugs/handle_self_left_plug.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 2 | 2022-02-25T06:15:30.000Z | 2022-02-25T06:15:33.000Z | lib/policr_mini_bot/plugs/handle_self_left_plug.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | null | null | null | defmodule PolicrMiniBot.HandleSelfLeftedPlug do
@moduledoc """
机器人自己离开群组的处理器。
"""
# TODO: 弃用此模块。由于 TG 上游的变动,加群已放弃对 `message` 的处理。因此 `telegex_plug` 库的预制的抽象模块已无法适应此需求,需改进库设计。
# !注意! 此模块功能依赖对 `my_chat_member` 更新的接收。
use PolicrMiniBot, plug: :preheater
alias PolicrMini.Instances
alias PolicrMini.Instanc... | 26.705128 | 97 | 0.664426 |
388cd1c8a34b4dc739d31c34e6962c455171d97c | 830 | exs | Elixir | ui/config/config.exs | UpstateElixir/websocket_blinky | 42d5d8666ad6d5ef67cb1047b3c66cdb6c649903 | [
"MIT"
] | null | null | null | ui/config/config.exs | UpstateElixir/websocket_blinky | 42d5d8666ad6d5ef67cb1047b3c66cdb6c649903 | [
"MIT"
] | null | null | null | ui/config/config.exs | UpstateElixir/websocket_blinky | 42d5d8666ad6d5ef67cb1047b3c66cdb6c649903 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :ui, UiWeb.Endpoint,
url: [host: "localhost"],
s... | 34.583333 | 86 | 0.756627 |
388ce7a878aeab6d9190d13e3bffd3bd90a02ccb | 597 | exs | Elixir | config/test.exs | travisboettcher/futurecyborg-blog | 927c26ee9e94f0739847aa649050b5263ece9239 | [
"MIT"
] | null | null | null | config/test.exs | travisboettcher/futurecyborg-blog | 927c26ee9e94f0739847aa649050b5263ece9239 | [
"MIT"
] | null | null | null | config/test.exs | travisboettcher/futurecyborg-blog | 927c26ee9e94f0739847aa649050b5263ece9239 | [
"MIT"
] | 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 :future_cyborg, FutureCyborg.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Set a higher stacktrace during test
config ... | 25.956522 | 56 | 0.752094 |
388cf62001c43f2c3ac4324f4dc71e57178052ec | 2,110 | ex | Elixir | apps/omg_watcher/test/support/integration/test_server.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher/test/support/integration/test_server.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/support/integration/test_server.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 42.2 | 119 | 0.745972 |
388cfbe17ae7aac076a4934e6d6fa75690474a4f | 1,811 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_image_properties.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_image_properties.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_image_properties.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.509804 | 185 | 0.769188 |
388d1871b2c1fb70d8736139289de8b47b2abd4c | 2,353 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_resync_dataset_metadata_updated_document.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_resync_dataset_metadata_updated_document.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_resync_dataset_metadata_updated_document.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.216667 | 177 | 0.753081 |
388d1eb1869584ac6fac8e2ef7375ab1498ea587 | 236 | ex | Elixir | lib/kitto/job/workspace.ex | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 1,047 | 2016-05-11T16:09:29.000Z | 2022-03-29T17:17:26.000Z | lib/kitto/job/workspace.ex | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 132 | 2016-10-28T19:44:26.000Z | 2020-12-06T21:16:53.000Z | lib/kitto/job/workspace.ex | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 70 | 2016-10-26T00:11:05.000Z | 2022-01-02T21:43:06.000Z | defmodule Kitto.Job.Workspace do
@moduledoc false
@spec load_file(String.t(), pid()) :: {any(), any()}
def load_file(file, server) do
Code.eval_string(File.read!(file), [runner_server: server], file: file, line: 1)
end
end
| 26.222222 | 84 | 0.677966 |
388d420864199ee72fa2d4dc1348b147c894c27a | 3,098 | ex | Elixir | clients/android_management/lib/google_api/android_management/v1/model/signin_detail.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_management/lib/google_api/android_management/v1/model/signin_detail.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/android_management/lib/google_api/android_management/v1/model/signin_detail.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 55.321429 | 598 | 0.752421 |
388db3ea66812dd9c6871e86f4719ebcda854fdc | 604 | exs | Elixir | day14/mix.exs | bjorng/advent-of-code-2016 | fb3e40ae2fd52d761f6c0bf55e7634277917ba25 | [
"Apache-2.0"
] | 1 | 2021-05-12T11:30:15.000Z | 2021-05-12T11:30:15.000Z | day14/mix.exs | bjorng/advent-of-code-2016 | fb3e40ae2fd52d761f6c0bf55e7634277917ba25 | [
"Apache-2.0"
] | null | null | null | day14/mix.exs | bjorng/advent-of-code-2016 | fb3e40ae2fd52d761f6c0bf55e7634277917ba25 | [
"Apache-2.0"
] | null | null | null | defmodule Day14.MixProject do
use Mix.Project
def project do
[
app: :day14,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 20.133333 | 87 | 0.56457 |
388dee7a6fc7fabdb312e52689553e6dca5b2509 | 3,139 | ex | Elixir | lib/ironman/config.ex | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | 39 | 2019-02-19T21:59:35.000Z | 2021-03-31T21:43:58.000Z | lib/ironman/config.ex | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | 17 | 2019-03-13T15:02:52.000Z | 2020-11-09T20:33:44.000Z | lib/ironman/config.ex | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | 5 | 2020-01-30T13:51:15.000Z | 2020-10-25T18:27:59.000Z | defmodule Ironman.Config do
@moduledoc """
This struct represents the state of the project. It is created at the beginning of a run, passed through
all the checks, where it is updated, and then files are written out at the end based on its contents.
"""
alias Ironman.{Config, Utils}
alias Ironman.Utils.Fil... | 31.707071 | 109 | 0.639057 |
388e236e78f6497bf4cb7c7cdc03fd91d2d16d3d | 23,678 | ex | Elixir | lib/elixir/lib/kernel/typespec.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/typespec.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/typespec.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | 1 | 2021-09-30T01:21:02.000Z | 2021-09-30T01:21:02.000Z | defmodule Kernel.Typespec do
# TODO: Remove deprecated code on 2.0 and move this module to Module.Typespec.
@moduledoc false
## Deprecated API moved to Code.Typespec
@doc false
def spec_to_ast(name, spec) do
IO.warn(
"Kernel.Typespec.spec_to_ast/2 is deprecated, please use Code.Typespec.spec_to_qu... | 31.073491 | 106 | 0.624715 |
388e3394e5d32025e46c493f668077557850ef20 | 886 | ex | Elixir | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/pub_sub_lite/lib/google_api/pub_sub_lite/v1/metadata.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.814815 | 74 | 0.759594 |
388e3cd3d363da1a88090283f65b866462ddc869 | 800 | ex | Elixir | lib/nsq/client/mojito.ex | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | null | null | null | lib/nsq/client/mojito.ex | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | null | null | null | lib/nsq/client/mojito.ex | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | null | null | null | defmodule NSQ.Client.Mojito do
@moduledoc "Http client using mojito"
@behaviour NSQ.HTTP
@compile {:inline, get: 3, post: 4}
@impl true
def get(url, headers \\ [], options \\ []) do
case Mojito.get(url, headers, options) do
{:ok, %Mojito.Response{
body: body, headers: headers, status_code: s... | 33.333333 | 132 | 0.62125 |
388e4d2b30ab0f3565e9bc9cdb1620128e0f5d5b | 1,617 | ex | Elixir | lib/wishlist_web/endpoint.ex | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | lib/wishlist_web/endpoint.ex | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | lib/wishlist_web/endpoint.ex | egutter/wishlist | af7b71c96ef9efded708c5ecfe3bab5a00c0761e | [
"MIT"
] | null | null | null | defmodule WishlistWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :wishlist
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_wishlis... | 29.4 | 97 | 0.719852 |
388e4fb5b5c118bc2299d01609bfb61e76f810cc | 4,049 | exs | Elixir | apps/core/test/unit/validators/json_objects_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/test/unit/validators/json_objects_test.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/test/unit/validators/json_objects_test.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.Unit.Validators.JsonObjectsTest do
@moduledoc false
use ExUnit.Case, async: true
alias Core.ValidationError
alias Core.Validators.JsonObjects
@valid_path ["person", "details", "documents"]
@invalid_path ["person", "details", "something"]
@object %{
"person" => %{
"details" => %... | 32.918699 | 108 | 0.588787 |
388e5026c2e272a869f87e5e485b9d487537ea42 | 2,203 | ex | Elixir | lib/smwc.ex | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | 2 | 2022-03-09T18:04:42.000Z | 2022-03-11T22:24:25.000Z | lib/smwc.ex | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | null | null | null | lib/smwc.ex | druu/smwcbot | 0c9e3530c470028c767b6a77be8a939481756438 | [
"MIT"
] | 2 | 2022-02-27T22:00:17.000Z | 2022-02-28T02:20:21.000Z | defmodule SMWC do
@moduledoc """
Search SMWC for shit.
"""
alias SMWC.Parser
alias SMWC.Resources
require Logger
@base_uri "https://www.smwcentral.net"
@default_opts %{resource: :hack}
@doc """
Search for hack.
"""
@spec search(String.t(), keyword()) :: Parser.parse_result()
def search(qu... | 30.178082 | 86 | 0.542442 |
388e7b21f7a125a398a47e620898c004f1f56dd2 | 2,341 | ex | Elixir | clients/content/lib/google_api/content/v2/model/products_custom_batch_request_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/products_custom_batch_request_entry.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/products_custom_batch_request_entry.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... | 39.677966 | 148 | 0.697565 |
388e986f0900df681fd7ce563e8621e77a6d95db | 1,260 | exs | Elixir | config/test.exs | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | 1 | 2020-10-02T18:33:23.000Z | 2020-10-02T18:33:23.000Z | config/test.exs | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | null | null | null | config/test.exs | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :crawly,
manager_operations_timeout: 30_000,
# Stop spider after scraping certain amount of items
closespider_itemcount: 100,
# Stop spider if it does crawl fast enough
closespider_timeout: 20,
concurrent_requests_per_domain: 5,
follow_redirect: true,
# Request middlewares
# U... | 33.157895 | 128 | 0.716667 |
388e9e04daafbd5f63aa176e10d9484a0acd1d96 | 1,824 | ex | Elixir | lib/events/comments.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events/comments.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events/comments.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | defmodule Events.Comments do
@moduledoc """
The Comments context.
"""
import Ecto.Query, warn: false
alias Events.Repo
alias Events.Comments.Comment
@doc """
Returns the list of comments.
## Examples
iex> list_comments()
[%Comment{}, ...]
"""
def list_comments do
Repo.all(Com... | 17.371429 | 62 | 0.600877 |
388ec0722be35c01d504a305880c89c5c42362bc | 389 | ex | Elixir | lib/outer/release.ex | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | lib/outer/release.ex | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | lib/outer/release.ex | karolsluszniak/clustered_queue_and_pool-phoenix1.6 | cbf8f51a3c72cb7a5bde31839c1de056775af4f3 | [
"MIT"
] | null | null | null | defmodule Outer.Release do
alias Ecto.Migrator
alias Outer.Repo
def default do
migrate()
end
def migrate do
with_repo(&Migrator.run(&1, :up, all: true))
end
def rollback(version) do
with_repo(&Migrator.run(&1, :down, to: version))
end
defp with_repo(callback) do
Application.load(:o... | 17.681818 | 52 | 0.66838 |
388eea23c311740e06f1b4f8381877dda1def24c | 7,200 | ex | Elixir | lib/sum_mag.ex | tlk-emb/pelemay_opencl | 949189301ec022cedbb87af253af8bf7aa08ea5f | [
"Apache-2.0"
] | 1 | 2020-02-25T06:30:59.000Z | 2020-02-25T06:30:59.000Z | lib/sum_mag.ex | tlk-emb/pelemay_opencl | 949189301ec022cedbb87af253af8bf7aa08ea5f | [
"Apache-2.0"
] | null | null | null | lib/sum_mag.ex | tlk-emb/pelemay_opencl | 949189301ec022cedbb87af253af8bf7aa08ea5f | [
"Apache-2.0"
] | null | null | null | defmodule SumMag do
@moduledoc """
SumMag: a meta-programming library for Pelemay and Cockatorice.
"""
@doc """
## Examples
iex> quote do end |> SumMag.parse(%{target: :pelemay})
[]
iex> (quote do: def func(a), do: a) |> SumMag.parse(%{target: :pelemay})
[[function_name: :func, i... | 24.573379 | 251 | 0.523194 |
388eeed59df51f3264cbcea278bb722b2c3bf64a | 433 | exs | Elixir | test/configs/mega_maid.exs | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 410 | 2015-01-10T13:33:00.000Z | 2022-01-31T20:12:15.000Z | test/configs/mega_maid.exs | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 140 | 2015-02-05T16:29:32.000Z | 2020-10-22T10:52:33.000Z | test/configs/mega_maid.exs | LaudateCorpus1/conform | 664c3b8de09a4b35c64e4b7559869740d906fcee | [
"MIT"
] | 65 | 2015-02-13T21:02:29.000Z | 2021-06-23T05:49:09.000Z | use Mix.Config
config :mega_maid, MegaMaid.Endpoint,
render_errors: [accepts: ["html","json"]],
pubsub: [name: MegaMaid.PubSub,
adapter: Phoenix.PubSub.PG2],
http: [compress: true, port: {:system, "PORT"}],
url: [host: nil, scheme: "https", port: 443],
root: ".",
check_origin: ["//"],
cache_stati... | 27.0625 | 53 | 0.639723 |
388f4fb5e69c1edd9177aac3ed6a60d0e0189efd | 6,443 | exs | Elixir | config/.credo.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 3 | 2021-11-23T23:07:34.000Z | 2021-11-24T01:40:01.000Z | config/.credo.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | null | null | null | config/.credo.exs | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 1 | 2021-07-19T11:48:30.000Z | 2021-07-19T11:48:30.000Z | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 39.048485 | 117 | 0.617414 |
388f5428b275675fd82302fa5f69ed67b8cdc91f | 50 | ex | Elixir | main.ex | buys-fran/blog_linter_ex | bf0debb5b66b196d06b3c29e612ad416d720c971 | [
"MIT"
] | 2 | 2021-04-30T04:15:25.000Z | 2021-05-13T17:31:17.000Z | main.ex | buys-fran/blog_linter_ex | bf0debb5b66b196d06b3c29e612ad416d720c971 | [
"MIT"
] | null | null | null | main.ex | buys-fran/blog_linter_ex | bf0debb5b66b196d06b3c29e612ad416d720c971 | [
"MIT"
] | 2 | 2021-04-30T04:15:29.000Z | 2021-06-08T13:08:23.000Z | IO.inspect BlogLinter.process_path("./blogposts")
| 25 | 49 | 0.8 |
388f8826683ccd33ae334ea1ca1787fec546a3b8 | 1,293 | ex | Elixir | lib/auto_api.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 4 | 2018-01-19T16:11:10.000Z | 2019-12-13T16:35:10.000Z | lib/auto_api.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 5 | 2018-11-29T09:48:29.000Z | 2019-11-06T12:11:35.000Z | lib/auto_api.ex | nonninz/auto-api-elixir | 53e11542043285e94bbb5a0a3b8ffff0b1b47167 | [
"MIT"
] | 1 | 2021-02-17T18:36:13.000Z | 2021-02-17T18:36:13.000Z | # AutoAPI
# The MIT License
#
# Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 43.1 | 79 | 0.771848 |
388fa94abd6184622368726423c610b5c11572fd | 323 | ex | Elixir | discuss/lib/discuss/topic.ex | Ithildir/test-elixir | ff87c886a161a9f67dd3901ece34453f9f8ff0bf | [
"Unlicense"
] | null | null | null | discuss/lib/discuss/topic.ex | Ithildir/test-elixir | ff87c886a161a9f67dd3901ece34453f9f8ff0bf | [
"Unlicense"
] | null | null | null | discuss/lib/discuss/topic.ex | Ithildir/test-elixir | ff87c886a161a9f67dd3901ece34453f9f8ff0bf | [
"Unlicense"
] | null | null | null | defmodule Discuss.Topic do
use Ecto.Schema
import Ecto.Changeset
schema "topics" do
field :title, :string
belongs_to :user, Discuss.User
has_many :comments, Discuss.Comment
end
def changeset(topic, attrs \\ %{}) do
topic
|> cast(attrs, [:title])
|> validate_required([:title])
end
e... | 19 | 39 | 0.662539 |
388fb1f12cf06122d60054f00644821a3323cc41 | 3,199 | ex | Elixir | lib/chaindefinition/mainnet.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 8 | 2021-03-12T15:35:09.000Z | 2022-03-06T06:37:49.000Z | lib/chaindefinition/mainnet.ex | diodechain/diode_server_ex | 5cf47e5253a0caafd335d0af4dba711d4dcad42d | [
"Apache-2.0"
] | 15 | 2019-09-06T07:58:01.000Z | 2021-03-06T17:04:46.000Z | lib/chaindefinition/mainnet.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 5 | 2021-10-01T12:52:28.000Z | 2022-02-02T19:29:56.000Z | # Diode Server
# Copyright 2020 Diode (IBTC)
# Licensed under the Diode License, Version 1.1
defmodule ChainDefinition.Mainnet do
alias ChainDefinition.{Voyager, Pioneer}
# Planned date Monday 31st August 2020
@voyager 713_277
@voyager_t1 @voyager - 1
# Planned date Monday 10 January 2021
@pioneer 1_264_61... | 25.798387 | 95 | 0.665208 |
388fdb01cef32fa90d0699ae649c303a5c20aa7e | 1,348 | ex | Elixir | test/support/data_case.ex | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | test/support/data_case.ex | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | test/support/data_case.ex | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | defmodule PhxTest.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test... | 24.962963 | 73 | 0.682493 |
388fe597d7a6f38124b942364dabc754666a3e0b | 17,824 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/api/feeds.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/api/feeds.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/api/feeds.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... | 46.537859 | 396 | 0.613386 |
38901eb6e0c4880767ebdf915cc28d00e73bcd22 | 975 | exs | Elixir | test/still/compiler/compile_test.exs | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 202 | 2021-01-13T15:45:17.000Z | 2022-03-22T01:26:27.000Z | test/still/compiler/compile_test.exs | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 55 | 2021-01-26T14:11:34.000Z | 2022-03-22T22:34:37.000Z | test/still/compiler/compile_test.exs | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 10 | 2021-02-04T21:14:41.000Z | 2022-03-20T10:12:59.000Z | defmodule Still.Compiler.CompileTest do
use Still.Case
alias Still.Compiler.Compile
alias Still.Preprocessor.{
OutputPath,
AddContent,
AddLayout,
Frontmatter,
Slime,
Save
}
import Mock
defmodule TestCaller do
def hook, do: :ok
end
setup do
{:ok, _} = Compile.start_li... | 17.105263 | 90 | 0.614359 |
389021007c204ce9eff9a72115ada4836bb0f398 | 6,148 | exs | Elixir | test/tirexs/resources/document_test.exs | DataKrewTech/tirexs | 8238da373f4547d27eea57a10826114e947aa66b | [
"Apache-2.0"
] | 384 | 2015-03-09T05:03:42.000Z | 2022-02-27T00:45:58.000Z | test/tirexs/resources/document_test.exs | DataKrewTech/tirexs | 8238da373f4547d27eea57a10826114e947aa66b | [
"Apache-2.0"
] | 144 | 2015-03-06T11:19:49.000Z | 2021-06-11T11:26:39.000Z | test/tirexs/resources/document_test.exs | DataKrewTech/tirexs | 8238da373f4547d27eea57a10826114e947aa66b | [
"Apache-2.0"
] | 97 | 2015-03-21T13:58:38.000Z | 2022-01-07T14:40:49.000Z | defmodule Tirexs.Resources.DocumentTest do
use ExUnit.Case
alias Tirexs.Resources.Document
@resources [ "_bulk", "_mget" ]
test ~S| functions like a '_bulk()' | do
Enum.each @resources, fn(resource) ->
# actual = Document._bulk()
actual = Kernel.apply(Document, String.to_atom(resource), [])
... | 39.159236 | 111 | 0.621503 |
38909a59f39fdc7faa65bfeb8b01eb83c6526e57 | 537 | exs | Elixir | minimalistic-phoenix-app/mix.exs | thbar/elixir-playground | 4c3e8cecb927d05f762b666d3064114451786db4 | [
"MIT"
] | 14 | 2016-01-18T13:58:37.000Z | 2021-08-09T11:39:54.000Z | minimalistic-phoenix-app/mix.exs | thbar/elixir-playground | 4c3e8cecb927d05f762b666d3064114451786db4 | [
"MIT"
] | null | null | null | minimalistic-phoenix-app/mix.exs | thbar/elixir-playground | 4c3e8cecb927d05f762b666d3064114451786db4 | [
"MIT"
] | null | null | null | defmodule MyMixfile do
use Mix.Project
def project do
[app: :my_application,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: ["lib"],
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: [
{:phoenix, "~> ... | 22.375 | 54 | 0.56797 |
38909d112495705b56c86bee33f8c5932c1cdd8f | 3,847 | ex | Elixir | lib/extractly/xtra.ex | RobertDober/Extractly | 9b1ee855e663f6ded8a3cf25fba1ad0777748ba9 | [
"Apache-2.0"
] | 4 | 2021-02-22T18:39:16.000Z | 2021-10-30T09:11:29.000Z | lib/extractly/xtra.ex | RobertDober/Extractly | 9b1ee855e663f6ded8a3cf25fba1ad0777748ba9 | [
"Apache-2.0"
] | 12 | 2019-01-26T11:52:05.000Z | 2021-11-16T10:50:38.000Z | lib/extractly/xtra.ex | RobertDober/extractly | 9b1ee855e663f6ded8a3cf25fba1ad0777748ba9 | [
"Apache-2.0"
] | null | null | null | defmodule Extractly.Xtra do
alias Extractly.Messages, as: M
alias Extractly.Toc.Options
@moduledoc """
This wraps `Extractly's` API by putting all messages to be logged to the
`Extractly.Messages` module.
Its primarty use case is for `Mix.Tasks.Xtra` which will pass this module
as a param into the `EEx`... | 32.058333 | 201 | 0.678711 |
3890f38c8d0b5c74fc5dbbcb80b4914a8af90633 | 3,533 | ex | Elixir | apps/ewallet/lib/ewallet/fetchers/account_fetcher.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/lib/ewallet/fetchers/account_fetcher.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/lib/ewallet/fetchers/account_fetcher.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 29.441667 | 100 | 0.655817 |
3890f403362740c6fba51d4ef106deb2800cba41 | 4,153 | exs | Elixir | test/oli/rendering/content/html_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | test/oli/rendering/content/html_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | test/oli/rendering/content/html_test.exs | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | null | null | null | defmodule Oli.Content.Content.HtmlTest do
use Oli.DataCase
alias Oli.Rendering.Context
alias Oli.Rendering.Content
import ExUnit.CaptureLog
describe "html content renderer" do
setup do
author = author_fixture()
%{author: author}
end
test "renders well-formed content properly", %{a... | 41.53 | 232 | 0.646521 |
38910ae01c9425a08590b98e3426fbeab87fa36d | 1,383 | ex | Elixir | lib/soapex/fetcher.ex | zdeneksejcek/soapex | 59ea45b1eff7f265b7192b831a97483077d18e62 | [
"MIT"
] | 2 | 2019-02-18T10:44:23.000Z | 2021-03-22T10:52:55.000Z | lib/soapex/fetcher.ex | strzibny/soapex | 069648e65f36222501e7e168c02086c630b88cd7 | [
"MIT"
] | null | null | null | lib/soapex/fetcher.ex | strzibny/soapex | 069648e65f36222501e7e168c02086c630b88cd7 | [
"MIT"
] | 3 | 2020-01-21T15:09:07.000Z | 2020-03-18T04:38:00.000Z | defmodule Soapex.Fetcher do
@moduledoc false
import SweetXml
import Soapex.Util
@spec get_files(String.t()) :: Map.t()
def get_files(path) do
wsdl_root = get_root(path)
parsed_imports = get_imports(wsdl_root)
{:ok, %{wsdl: wsdl_root, imports: parsed_imports}}
end
defp get_imports(wsdl_root... | 23.844828 | 74 | 0.60376 |
38911da2cd802f8d7b45d79064515543e9f6ac64 | 1,103 | ex | Elixir | lib/petfinder/helpers.ex | petfinder-com/petfinder_ex | 33d116ade25cf66cab8071e4e6569dec93a7f6e9 | [
"BSD-3-Clause"
] | null | null | null | lib/petfinder/helpers.ex | petfinder-com/petfinder_ex | 33d116ade25cf66cab8071e4e6569dec93a7f6e9 | [
"BSD-3-Clause"
] | null | null | null | lib/petfinder/helpers.ex | petfinder-com/petfinder_ex | 33d116ade25cf66cab8071e4e6569dec93a7f6e9 | [
"BSD-3-Clause"
] | 1 | 2021-01-11T18:28:38.000Z | 2021-01-11T18:28:38.000Z | defmodule Petfinder.Helpers do
alias Petfinder.Auth
def handle_http_response({:ok, %{status_code: 200, body: body}}),
do: {:ok, Poison.decode!(body)}
def handle_http_response({:ok, %{status_code: 404}}), do: {:error, "Not found :("}
def handle_http_response({:ok, %{reason: reason}}), do: {:error, IO.inspe... | 26.902439 | 86 | 0.617407 |
38914927738e501ef250bface4078b368acf267c | 2,354 | ex | Elixir | deps/sqlitex/lib/sqlitex/sql_builder.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/sqlitex/lib/sqlitex/sql_builder.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/sqlitex/lib/sqlitex/sql_builder.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | defmodule Sqlitex.SqlBuilder do
@moduledoc """
This module contains functions for SQL creation. At the moment
it is only used for `CREATE TABLE` statements.
"""
# Returns an SQL CREATE TABLE statement as a string. `name` is the name of the
# table, and `table_opts` contains the table constraints (at the mo... | 35.134328 | 104 | 0.632965 |
38914ca5d5db2467e0791478611c3296a22bf2c7 | 172 | exs | Elixir | priv/repo/migrations/20180911092436_create_flags_fix.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | priv/repo/migrations/20180911092436_create_flags_fix.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180911092436_create_flags_fix.exs | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Repo.Migrations.CreateFlags do
use Ecto.Migration
def change do
create_if_not_exists table(:flags) do
timestamps()
end
end
end
| 17.2 | 54 | 0.738372 |
38915c4c50112cdd950c9043b1f1e3ffb82b7c5c | 261 | ex | Elixir | test/support/get_person.ex | elixir-cqrs/cqrs_tools_absinthe | c80285f252eba8273384fdd1c718cf50b2d36671 | [
"MIT"
] | 3 | 2022-03-06T03:07:49.000Z | 2022-03-06T03:16:08.000Z | test/support/get_person.ex | blunt-elixir/blunt_absinthe | c80285f252eba8273384fdd1c718cf50b2d36671 | [
"MIT"
] | null | null | null | test/support/get_person.ex | blunt-elixir/blunt_absinthe | c80285f252eba8273384fdd1c718cf50b2d36671 | [
"MIT"
] | null | null | null | defmodule Blunt.Absinthe.Test.GetPerson do
use Blunt.Query
@moduledoc """
Get's a person.
"""
field :id, :binary_id, required: true
field :error_out, :boolean, default: false
binding :person, BluntBoundedContext.QueryTest.ReadModel.Person
end
| 18.642857 | 65 | 0.727969 |
38916755e3eaa75aef183e7e57a3dc87411eba59 | 1,750 | ex | Elixir | web/services/side_nav_service.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | web/services/side_nav_service.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | web/services/side_nav_service.ex | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.SideNavService do
use UcxChat.Web, :service
alias UcxChat.ServiceHelpers, as: Helpers
alias UcxChat.{ChatDat, Channel, ChannelService, User, Direct, Subscription}
def render_rooms_list(channel_id, user_id) do
user = Helpers.get_user! user_id
channel = if channel_id, do: Helpers.get(C... | 33.653846 | 112 | 0.669714 |
3891abbd02034fb7ad4db4a7b966f80c0e7ca17e | 686 | ex | Elixir | 2016/day01/lib/day01/move.ex | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day01/lib/day01/move.ex | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day01/lib/day01/move.ex | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | defmodule Day01.Move do
@moduledoc """
Calculates the destination of a move from a given point.
"""
def move({:right, steps}, {x, y, :north}), do: {x + steps, y, :east}
def move({:left , steps}, {x, y, :north}), do: {x - steps, y, :west}
def move({:right, steps}, {x, y, :south}), do: {x - steps, y, :west}... | 38.111111 | 71 | 0.539359 |
3891b8ee0c93105c73bad2cedbc0e55d5bc0d36f | 5,121 | ex | Elixir | lib/broadway_cloud_pub_sub/pull_client.ex | greg-rychlewski/broadway_cloud_pub_sub | 0c4052ec55975c1df5a9fa98e27ad1aac1595a3b | [
"Apache-2.0"
] | null | null | null | lib/broadway_cloud_pub_sub/pull_client.ex | greg-rychlewski/broadway_cloud_pub_sub | 0c4052ec55975c1df5a9fa98e27ad1aac1595a3b | [
"Apache-2.0"
] | null | null | null | lib/broadway_cloud_pub_sub/pull_client.ex | greg-rychlewski/broadway_cloud_pub_sub | 0c4052ec55975c1df5a9fa98e27ad1aac1595a3b | [
"Apache-2.0"
] | null | null | null | defmodule BroadwayCloudPubSub.PullClient do
@moduledoc """
Pull client using Finch.
"""
alias Broadway.Message
alias BroadwayCloudPubSub.Client
alias BroadwayCloudPubSub.PipelineOptions
alias Finch.Response
require Logger
@behaviour Client
@impl Client
def prepare_to_connect(name, producer_opts... | 25.226601 | 93 | 0.652997 |
389224b26207dcf5d827d0d9cd3e785fd3e141db | 24,475 | exs | Elixir | apps/site/test/site_web/controllers/schedule/line_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/test/site_web/controllers/schedule/line_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/test/site_web/controllers/schedule/line_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule SiteWeb.ScheduleController.LineTest do
use SiteWeb.ConnCase, async: true
import SiteWeb.ScheduleController.Line.Helpers
import SiteWeb.ScheduleController.Line.DiagramHelpers
alias Services.Service
alias Stops.{RouteStop, RouteStops}
alias SiteWeb.ScheduleController.Line
doctest SiteWeb.Schedule... | 32.896505 | 102 | 0.563146 |
389225cc7aaae56b7d189082a6b5b509c48690a0 | 4,126 | ex | Elixir | lib/ueberauth/strategy/google.ex | STUDITEMPS/ueberauth_google | 453e52a37ad90a7335e9f2c3f81d4a7543650d2f | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/google.ex | STUDITEMPS/ueberauth_google | 453e52a37ad90a7335e9f2c3f81d4a7543650d2f | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/google.ex | STUDITEMPS/ueberauth_google | 453e52a37ad90a7335e9f2c3f81d4a7543650d2f | [
"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... | 27.506667 | 99 | 0.64348 |
389232b955ae464aab2dc7b281857bd1d1031c0e | 103 | ex | Elixir | apps/rtc/lib/rtc/presence.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/rtc/lib/rtc/presence.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/rtc/lib/rtc/presence.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Rtc.Presence do
use Phoenix.Presence,
otp_app: :rtc,
pubsub_server: Rtc.PubSub
end
| 17.166667 | 29 | 0.728155 |
38923940d32d877583166ec4cd5071afea64f38f | 377 | exs | Elixir | test/acceptance/html/list_and_block_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html/list_and_block_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html/list_and_block_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Html.ListAndBlockTest do
use Support.AcceptanceTestCase
describe "Block Quotes in Lists" do
test "four spaces" do
markdown = "- c\n > d"
html = gen({:ul, {:li, ["c", {:blockquote, {:p, "d"}}]}})
messages = []
assert as_html(markdown) == {:ok, html, messages}... | 25.133333 | 67 | 0.607427 |
38923ce4a6be685b5445a51420f97460b1c235c3 | 1,104 | exs | Elixir | rel/config.exs | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | rel/config.exs | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | rel/config.exs | pwjablonski/remote_retro | 1b6acf359b362ae2ec187cfbd1a38dc8266aa546 | [
"MIT"
] | null | null | null | use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: :dev
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/co... | 31.542857 | 81 | 0.754529 |
389240f3644d9fe6b1de745f064e5ebb8452ec9f | 267 | ex | Elixir | lib/intermediate_git.ex | Baradoy/intermdiategit | 3a7b7efc32e361d2347057cbe3c8997f44135522 | [
"MIT"
] | null | null | null | lib/intermediate_git.ex | Baradoy/intermdiategit | 3a7b7efc32e361d2347057cbe3c8997f44135522 | [
"MIT"
] | null | null | null | lib/intermediate_git.ex | Baradoy/intermdiategit | 3a7b7efc32e361d2347057cbe3c8997f44135522 | [
"MIT"
] | null | null | null | defmodule IntermediateGit do
@moduledoc """
IntermediateGit keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.7 | 66 | 0.76779 |
389296a05a1019487c3fbf5e024be631d25675e4 | 80 | exs | Elixir | test/gamelet_web/views/page_view_test.exs | niku/gamelet | 94270bffca1f6a360a55c94a6f955969d681dc63 | [
"MIT"
] | 2 | 2018-01-02T07:54:44.000Z | 2018-01-03T15:39:29.000Z | test/gamelet_web/views/page_view_test.exs | niku/gamelet | 94270bffca1f6a360a55c94a6f955969d681dc63 | [
"MIT"
] | null | null | null | test/gamelet_web/views/page_view_test.exs | niku/gamelet | 94270bffca1f6a360a55c94a6f955969d681dc63 | [
"MIT"
] | null | null | null | defmodule GameletWeb.PageViewTest do
use GameletWeb.ConnCase, async: true
end
| 20 | 38 | 0.825 |
3892b4068d3aff59e98c27d8b2a628b346ad9140 | 13,246 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/85.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/85.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set2/TrainingInstances/85.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
verb verb_aux verb_aux conj verb;
cm noun verb_aux verb_aux verb;
pnoun cm conj noun verb;
particle adjective verb_aux verb_aux verb;
noun cm conj demonstrative verb;
adjective noun verb_aux verb_aux verb;
pnoun cm SYM SYM noun;
pnoun cm verb_aux conj verb;
cm pnoun pn noun verb;
noun cm ver... | 29.766292 | 43 | 0.765892 |
3892b9c762e1cfa1a227931c35565e9e2501a3a0 | 482 | ex | Elixir | lib/asciinema/gc.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 893 | 2017-09-14T14:18:29.000Z | 2022-03-31T21:45:08.000Z | lib/asciinema/gc.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 103 | 2017-09-29T22:15:33.000Z | 2022-03-27T21:47:43.000Z | lib/asciinema/gc.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 152 | 2017-09-07T12:43:15.000Z | 2022-03-10T18:47:47.000Z | defmodule Asciinema.GC do
use Oban.Worker
alias Asciinema.Accounts
alias Asciinema.Asciicasts
require Logger
@impl Oban.Worker
def perform(_job) do
if days = Asciicasts.gc_days() do
Logger.info("archiving unclaimed asciicasts...")
dt = Timex.shift(Timex.now(), days: -days)
count = Asc... | 22.952381 | 75 | 0.680498 |
3892f4f95c4c842ddb640d12d09565aea0c9adc7 | 2,144 | ex | Elixir | clients/people/lib/google_api/people/v1/model/list_directory_people_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/people/lib/google_api/people/v1/model/list_directory_people_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/people/lib/google_api/people/v1/model/list_directory_people_response.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... | 40.45283 | 213 | 0.728078 |
3892fbac0b6166b86ec4ddd404c99b5cc2a4ebaf | 379 | exs | Elixir | priv/repo/migrations/20160603095827_create_comment.exs | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | 1 | 2016-09-13T10:40:53.000Z | 2016-09-13T10:40:53.000Z | priv/repo/migrations/20160603095827_create_comment.exs | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160603095827_create_comment.exs | avinoth/spaces | 00bec5adf4568fef73b49e57808033295a837931 | [
"MIT"
] | null | null | null | defmodule Spaces.Repo.Migrations.CreateComment do
use Ecto.Migration
def change do
create table(:comments) do
add :body, :text
add :user_id, references(:users, on_delete: :nothing)
add :post_id, references(:posts, on_delete: :nothing)
timestamps
end
create index(:comments, [:us... | 22.294118 | 59 | 0.675462 |
3893075139ddcf7c8e363ef2cba8791a283e3ea3 | 592 | ex | Elixir | gherkin/elixir/lib/gherkin/ast_builder/id_generator.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | 3,974 | 2015-01-01T10:21:24.000Z | 2021-05-07T09:51:49.000Z | gherkin/elixir/lib/gherkin/ast_builder/id_generator.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | 1,298 | 2015-01-01T08:19:06.000Z | 2021-05-07T17:12:31.000Z | gherkin/elixir/lib/gherkin/ast_builder/id_generator.ex | alvivi/cucumber | 647e4c9a46d441fb6d86b22138ad44580d500f75 | [
"MIT"
] | 923 | 2015-01-02T16:14:05.000Z | 2021-05-05T05:59:48.000Z | defmodule CucumberGherkin.IdGenerator.PredictableGen do
@moduledoc false
defstruct count: 0
end
defmodule CucumberGherkin.IdGenerator.UUIDGen do
@moduledoc false
defstruct []
end
defprotocol CucumberGherkin.IdGenerator do
@moduledoc false
def get_id(possible_state)
end
alias CucumberGherkin.IdGenerator
a... | 22.769231 | 80 | 0.768581 |
38930e90ab7bc37c52a54669982efa39c34a8e09 | 1,108 | exs | Elixir | config/config.exs | Dmitriy7Smirnov/elixirTest | 1fa7132f3e4a5fbd71b4c4270291a69778e53bc2 | [
"MIT"
] | null | null | null | config/config.exs | Dmitriy7Smirnov/elixirTest | 1fa7132f3e4a5fbd71b4c4270291a69778e53bc2 | [
"MIT"
] | null | null | null | config/config.exs | Dmitriy7Smirnov/elixirTest | 1fa7132f3e4a5fbd71b4c4270291a69778e53bc2 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.741935 | 73 | 0.75722 |
389334822ec63b332510989c03589acaa87dae0a | 11,027 | ex | Elixir | lib/ex_machina/ecto.ex | adamrobbie/ex_machina | a07c7660ccf97b2acd1f2b0905919722b9698f8c | [
"MIT"
] | null | null | null | lib/ex_machina/ecto.ex | adamrobbie/ex_machina | a07c7660ccf97b2acd1f2b0905919722b9698f8c | [
"MIT"
] | null | null | null | lib/ex_machina/ecto.ex | adamrobbie/ex_machina | a07c7660ccf97b2acd1f2b0905919722b9698f8c | [
"MIT"
] | null | null | null | defmodule ExMachina.Ecto do
@moduledoc """
Module for building and inserting factories with Ecto
This module works much like the regular `ExMachina` module, but adds a few
nice things that make working with Ecto easier.
* It uses `ExMachina.EctoStrategy`, which adds `insert/1`, `insert/2`,
`insert_pair/... | 30.801676 | 96 | 0.666818 |
3893bd04d8639fb1951ba8ebe58a3b1a2949afde | 835 | ex | Elixir | lib/chat_api_web/controllers/session_controller.ex | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | 2 | 2021-04-30T08:30:26.000Z | 2021-04-30T16:20:39.000Z | lib/chat_api_web/controllers/session_controller.ex | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | null | null | null | lib/chat_api_web/controllers/session_controller.ex | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.SessionController do
use ChatApiWeb, :controller
alias ChatApi.Authentication.Auth
action_fallback(ChatApiWeb.FallbackController)
def create(conn, params) do
case Auth.find_user_and_check_password(params) do
{:ok, user} ->
{:ok, jwt, _full_claims} =
user |> Ch... | 26.935484 | 78 | 0.65509 |
3893be168b1e2039e8521bb9951fefb03f4c4b0a | 8,888 | ex | Elixir | lib/acme/client.ex | sikanhe/acme | 2c28818a2edea5c570dcb1ab09de695b5e0a4021 | [
"MIT"
] | 44 | 2017-03-31T15:55:48.000Z | 2022-02-21T11:16:26.000Z | lib/acme/client.ex | sikanhe/acme | 2c28818a2edea5c570dcb1ab09de695b5e0a4021 | [
"MIT"
] | 7 | 2017-07-12T09:36:57.000Z | 2018-01-18T21:30:43.000Z | lib/acme/client.ex | sikanhe/acme | 2c28818a2edea5c570dcb1ab09de695b5e0a4021 | [
"MIT"
] | 6 | 2017-11-20T05:04:10.000Z | 2019-07-09T11:12:41.000Z | defmodule Acme.Client do
alias JOSE.{JWK, JWS}
@client_version Mix.Project.config()[:version]
@default_connect_timeout 10000
@default_recv_timeout 20000
defmodule MissingServerURLError do
defexception message: """
You must pass a server url to connect to an Acme server
"""
end
defmodule M... | 27.015198 | 96 | 0.638726 |
3893bf9aaf6eb95136b7fa7661cd8f9d5fe4b006 | 998 | ex | Elixir | lib/ex_mustang/responders/isup.ex | theodowling/ex_mustang | 0bf0d96c0e33e8291eb4d911bfdcdc57902fa78d | [
"Apache-2.0"
] | 69 | 2016-08-17T06:50:58.000Z | 2021-01-26T00:43:34.000Z | lib/ex_mustang/responders/isup.ex | onixus74/ex_mustang | e7c8ae51027d717c20784abad76b846198a980b9 | [
"Apache-2.0"
] | 55 | 2016-08-16T01:05:39.000Z | 2020-10-08T15:53:35.000Z | lib/ex_mustang/responders/isup.ex | onixus74/ex_mustang | e7c8ae51027d717c20784abad76b846198a980b9 | [
"Apache-2.0"
] | 10 | 2017-01-20T19:45:43.000Z | 2020-09-30T20:32:23.000Z | defmodule ExMustang.Responders.Isup do
@moduledoc """
checks against https://isitup.org/<domain>.json if the given site is down or not
"""
use Hedwig.Responder
import ExMustang.Utils, only: [useragent: 0, parse_domain: 1]
@usage """
isitup <domain> - checks if given domain is up or not
"""
hear ~r/^... | 28.514286 | 82 | 0.60521 |
3893d2679fdd22fae7c44b0244595c77b3db810d | 640 | exs | Elixir | test/yggdrasil/publisher_test.exs | valiot/yggdrasil | 7395591f4eba813f508c8cb25676b0d317fefaa0 | [
"MIT"
] | 96 | 2016-02-11T22:23:30.000Z | 2022-03-20T01:57:45.000Z | test/yggdrasil/publisher_test.exs | valiot/yggdrasil | 7395591f4eba813f508c8cb25676b0d317fefaa0 | [
"MIT"
] | 8 | 2016-08-09T13:37:15.000Z | 2021-07-19T05:55:21.000Z | test/yggdrasil/publisher_test.exs | valiot/yggdrasil | 7395591f4eba813f508c8cb25676b0d317fefaa0 | [
"MIT"
] | 5 | 2017-10-26T12:11:29.000Z | 2021-07-26T10:23:13.000Z | defmodule Yggdrasil.PublisherTest do
use ExUnit.Case, async: true
alias Yggdrasil.Channel
alias Yggdrasil.Publisher
alias Yggdrasil.Registry
test "publish message" do
{:ok, channel} =
Registry.get_full_channel(%Channel{
name: make_ref(),
namespace: PublisherTest
})
Yggdr... | 24.615385 | 59 | 0.695313 |
3893daa8a97a38304dfb72ec51dbe0e722d2a8e4 | 50 | exs | Elixir | book-material/modules/times1.exs | AdnanCodes/Elixir-Learning | 6fbab6092384566aff92bccf64b1af90c68ecb6c | [
"MIT"
] | null | null | null | book-material/modules/times1.exs | AdnanCodes/Elixir-Learning | 6fbab6092384566aff92bccf64b1af90c68ecb6c | [
"MIT"
] | null | null | null | book-material/modules/times1.exs | AdnanCodes/Elixir-Learning | 6fbab6092384566aff92bccf64b1af90c68ecb6c | [
"MIT"
] | null | null | null | defmodule Times do
def double(n), do: n * 2
end
| 12.5 | 26 | 0.66 |
389412db1fa9475ed66eb8df9c222da42afb8c74 | 73 | ex | Elixir | lib/phelmx_web/plugs/absinthe.ex | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | lib/phelmx_web/plugs/absinthe.ex | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | lib/phelmx_web/plugs/absinthe.ex | ilkka/phoenix-elm-graphql-starter | fd88adf0e471eb97feb98a32026c2a1581e55490 | [
"Apache-2.0"
] | null | null | null | defmodule PhelmxWeb.Absinthe do
def build_context do
%{}
end
end
| 12.166667 | 31 | 0.712329 |
389418485d92a300e39660ad3be97a4e9c12474a | 698 | ex | Elixir | lib/plaid/asset_report/warning.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 16 | 2021-03-09T02:29:32.000Z | 2022-03-13T07:18:03.000Z | lib/plaid/asset_report/warning.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 5 | 2021-04-24T20:38:14.000Z | 2022-03-19T22:03:09.000Z | lib/plaid/asset_report/warning.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 2 | 2021-06-11T02:15:01.000Z | 2022-03-15T18:39:59.000Z | defmodule Plaid.AssetReport.Warning do
@moduledoc """
[Plaid Asset Report Warning schema](https://plaid.com/docs/api/products/#asset_report-get-response-warnings)
"""
@behaviour Plaid.Castable
alias Plaid.AssetReport.Warning.Cause
alias Plaid.Castable
@type t :: %__MODULE__{
warning_type: Str... | 21.8125 | 110 | 0.65616 |
38942644c3807397c9bc4c6d158b98eafd2c1788 | 334 | exs | Elixir | priv/repo/migrations/20191031051340_add_goals.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20191031051340_add_goals.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20191031051340_add_goals.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.AddGoals do
use Ecto.Migration
def change do
create table(:goals) do
add :domain, :text, null: false
add :name, :text, null: false
add :event_name, :text
add :page_path, :text
timestamps()
end
create unique_index(:goals, [:domain, :nam... | 19.647059 | 49 | 0.640719 |
38943139db2857eab96b1ce1515af3df05932648 | 2,140 | ex | Elixir | lib/plumbapius/coverage/report.ex | kuznetsov-v-spb/plumbapius | bd5f6b597417b5a28d7e9abb9bb3ef7b020c3f10 | [
"Apache-2.0"
] | null | null | null | lib/plumbapius/coverage/report.ex | kuznetsov-v-spb/plumbapius | bd5f6b597417b5a28d7e9abb9bb3ef7b020c3f10 | [
"Apache-2.0"
] | null | null | null | lib/plumbapius/coverage/report.ex | kuznetsov-v-spb/plumbapius | bd5f6b597417b5a28d7e9abb9bb3ef7b020c3f10 | [
"Apache-2.0"
] | null | null | null | defmodule Plumbapius.Coverage.Report do
alias Plumbapius.Coverage.CoverageTracker
alias Plumbapius.Request
@type t :: %__MODULE__{
all: list(CoverageTracker.interaction()),
missed: list(CoverageTracker.interaction()),
covered: list(CoverageTracker.interaction())
}
defstru... | 29.722222 | 119 | 0.678972 |
38946d72f2aea24c75a7fc30286ffdd95b9cb685 | 103,788 | ex | Elixir | lib/sequence/oeis/primes.ex | patricknevindwyer/chunky | e17df98df24d079c84fc8c51fbbd3ec57f77166b | [
"BSD-3-Clause"
] | 1 | 2020-12-18T11:00:32.000Z | 2020-12-18T11:00:32.000Z | lib/sequence/oeis/primes.ex | patricknevindwyer/chunky | e17df98df24d079c84fc8c51fbbd3ec57f77166b | [
"BSD-3-Clause"
] | null | null | null | lib/sequence/oeis/primes.ex | patricknevindwyer/chunky | e17df98df24d079c84fc8c51fbbd3ec57f77166b | [
"BSD-3-Clause"
] | null | null | null | # credo:disable-for-this-file Credo.Check.Design.AliasUsage
defmodule Chunky.Sequence.OEIS.Primes do
@moduledoc """
OEIS Sequences dealing with Primes, Pseudo-primes, and primality. For related sequences, see `Chunky.Sequences.OEIS.Factors`
## Available Sequences
### Pseudoprimes
Fermat pseudoprimes to spe... | 29.451759 | 222 | 0.679741 |
3894704d7d3cd4b42fd2775778a0f35618477537 | 195 | ex | Elixir | lib/validation/rules/lowercase.ex | adolfont/validation | 6288f5a5745f645c90b6f6241e14f0088c218f5b | [
"MIT"
] | null | null | null | lib/validation/rules/lowercase.ex | adolfont/validation | 6288f5a5745f645c90b6f6241e14f0088c218f5b | [
"MIT"
] | null | null | null | lib/validation/rules/lowercase.ex | adolfont/validation | 6288f5a5745f645c90b6f6241e14f0088c218f5b | [
"MIT"
] | null | null | null | defmodule Validation.Rules.Lowercase do
@moduledoc false
@spec validate?(String.t()) :: boolean
def validate?(input) when is_binary(input) do
input == String.downcase(input)
end
end
| 21.666667 | 47 | 0.723077 |
3894924e8895bc502f552a8272228c7a71f405ce | 2,725 | exs | Elixir | test/student_list_web/controllers/user_registration_controller_test.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | 1 | 2021-06-27T20:02:11.000Z | 2021-06-27T20:02:11.000Z | test/student_list_web/controllers/user_registration_controller_test.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | test/student_list_web/controllers/user_registration_controller_test.exs | jwarwick/student_list | d35a2fcef2025d3de9b7915682965c48481c1d15 | [
"MIT"
] | null | null | null | defmodule StudentListWeb.UserRegistrationControllerTest do
use StudentListWeb.ConnCase, async: true
use Bamboo.Test
import StudentList.AccountsFixtures
describe "GET /users/register with existing user" do
setup do
%{user: user_fixture()}
end
test "doesn't render registration page", %{conn: ... | 29.945055 | 98 | 0.637431 |
3894b2a81d53606bdd7317eb826bf2a3fdad1645 | 1,800 | exs | Elixir | clients/dns/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dns/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dns/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.865672 | 94 | 0.65 |
3894b90a8ce6de022ffac6a7280bfbe6f54b1bea | 1,366 | exs | Elixir | test/travis_test.exs | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | null | null | null | test/travis_test.exs | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | null | null | null | test/travis_test.exs | brauliobz/excoveralls | 8108405bda1c6ef27253edc294415f02d78760f4 | [
"MIT"
] | 2 | 2019-03-15T08:12:53.000Z | 2019-06-11T11:34:04.000Z | defmodule ExCoveralls.TravisTest do
use ExUnit.Case
import Mock
alias ExCoveralls.Travis
@content "defmodule Test do\n def test do\n end\nend\n"
@counts [0, 1, nil, nil]
@source_info [%{name: "test/fixtures/test.ex",
source: @content,
coverage: @counts
... | 31.045455 | 96 | 0.632504 |
3894c03df548d54f31acfa5b711d435312109314 | 1,699 | exs | Elixir | mix.exs | cocoa-xu/img_decode_rs | 40b04f3673ce465a042d180f9085c4b34285966c | [
"Apache-2.0"
] | null | null | null | mix.exs | cocoa-xu/img_decode_rs | 40b04f3673ce465a042d180f9085c4b34285966c | [
"Apache-2.0"
] | 1 | 2022-03-02T17:36:53.000Z | 2022-03-02T17:36:53.000Z | mix.exs | cocoa-xu/img_decode_rs | 40b04f3673ce465a042d180f9085c4b34285966c | [
"Apache-2.0"
] | null | null | null | defmodule ImgDecode.MixProject do
use Mix.Project
@github_url "https://github.com/cocoa-xu/image_rs"
@nerves_rust_target_triple_mapping %{
"armv6-nerves-linux-gnueabihf": "arm-unknown-linux-gnueabihf",
"armv7-nerves-linux-gnueabihf": "armv7-unknown-linux-gnueabihf",
"aarch64-nerves-linux-gnu": "aarc... | 24.623188 | 90 | 0.606828 |
3894c3f2deea43bac64ba13a84f917920aa6782b | 3,658 | exs | Elixir | test/xdr/ledger_entries/ledger_entry_type_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/ledger_entries/ledger_entry_type_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/ledger_entries/ledger_entry_type_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.LedgerEntryTypeTest do
use ExUnit.Case
alias StellarBase.XDR.LedgerEntryType
describe "Account LedgerEntryType" do
setup do
%{
binary: <<0, 0, 0, 0>>,
identifier: :ACCOUNT,
entry_type: LedgerEntryType.new(:ACCOUNT)
}
end
test "new/1", %{... | 29.739837 | 89 | 0.65719 |
3895213e8585e294117ed5631bf8ec4be0fdc641 | 17,128 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/routes.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/api/routes.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/routes.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... | 57.864865 | 1,174 | 0.648704 |
38952a9f3374d43bf4e9c5f785f8ef018fb76595 | 1,787 | exs | Elixir | test/state_fair_test.exs | system76/state_fair | b681c2fb73d426aabc2bd590f92e349fd4505fc6 | [
"MIT"
] | 3 | 2016-04-13T10:21:35.000Z | 2021-02-12T11:16:13.000Z | test/state_fair_test.exs | system76/state_fair | b681c2fb73d426aabc2bd590f92e349fd4505fc6 | [
"MIT"
] | null | null | null | test/state_fair_test.exs | system76/state_fair | b681c2fb73d426aabc2bd590f92e349fd4505fc6 | [
"MIT"
] | 2 | 2017-10-16T02:40:24.000Z | 2020-12-08T14:49:32.000Z | defmodule TestModule do
import StateFair
defstruct state: :new
state_manager :state do
event :do_stuff do
transition from: :new, to: :done
transition from: [:first, :second], to: :last
end
event :change_color do
transition from: :green, to: :red
transition from: :green, to: ... | 24.819444 | 72 | 0.673755 |
38957eff6d0bd12a3e4a533d9c91ecca53a540b7 | 65 | ex | Elixir | umbrella/apps/sunulator_web/lib/sunulator_web/views/page_view.ex | plasticine/sunulator | f202518bae70cad06ea9d38e183c1b9873a77b18 | [
"MIT"
] | 2 | 2019-06-05T23:28:44.000Z | 2019-06-05T23:41:20.000Z | umbrella/apps/sunulator_web/lib/sunulator_web/views/page_view.ex | plasticine/sunulator | f202518bae70cad06ea9d38e183c1b9873a77b18 | [
"MIT"
] | 3 | 2021-03-09T12:30:08.000Z | 2021-09-01T19:32:06.000Z | umbrella/apps/sunulator_web/lib/sunulator_web/views/page_view.ex | plasticine/sunulator | f202518bae70cad06ea9d38e183c1b9873a77b18 | [
"MIT"
] | null | null | null | defmodule SunulatorWeb.PageView do
use SunulatorWeb, :view
end
| 16.25 | 34 | 0.815385 |
3895b2511118a05118ab9ea1fb708bdfe4ac9038 | 4,097 | ex | Elixir | lib/wechat_mp_auth/authorizer_access_token.ex | he9qi/wechat_mp_auth | 307e5ffb2214f9aca3fb230c302852b1216ce0c3 | [
"MIT"
] | 21 | 2016-05-12T17:06:29.000Z | 2018-01-14T14:44:21.000Z | lib/wechat_mp_auth/authorizer_access_token.ex | he9qi/wechat_mp_auth | 307e5ffb2214f9aca3fb230c302852b1216ce0c3 | [
"MIT"
] | 3 | 2016-05-12T06:11:30.000Z | 2016-10-12T04:59:09.000Z | lib/wechat_mp_auth/authorizer_access_token.ex | he9qi/wechat_mp_auth | 307e5ffb2214f9aca3fb230c302852b1216ce0c3 | [
"MIT"
] | 1 | 2017-11-30T01:55:17.000Z | 2017-11-30T01:55:17.000Z | defmodule WechatMPAuth.AuthorizerAccessToken do
@moduledoc """
This module defines the `WechatMPAuth.AuthorizerAccessToken` struct
"""
alias WechatMPAuth.Client
import WechatMPAuth.Util
alias WechatMPAuth.Request
alias WechatMPAuth.AuthorizerAccessToken
@type access_token :: binary
@type refresh... | 33.040323 | 96 | 0.637052 |
3895b58a2cc47217be51dbbc6cda0b2606494910 | 686 | ex | Elixir | lib/access_error.ex | facundokantox/vela | 5c7163af4188611ffa4703a3d6346156a914e438 | [
"MIT"
] | 9 | 2020-05-16T07:29:28.000Z | 2021-02-14T23:12:31.000Z | lib/access_error.ex | facundokantox/vela | 5c7163af4188611ffa4703a3d6346156a914e438 | [
"MIT"
] | 2 | 2020-07-12T09:40:04.000Z | 2021-01-29T06:28:33.000Z | lib/access_error.ex | facundokantox/vela | 5c7163af4188611ffa4703a3d6346156a914e438 | [
"MIT"
] | 1 | 2020-11-27T09:21:45.000Z | 2020-11-27T09:21:45.000Z | defmodule Vela.AccessError do
@moduledoc """
The generic exception thrown when the access in invalid.
Parameters:
- `source` the source of the exception
- `field` the field the access to has failed
"""
defexception [:message, :source, :field]
@impl true
def exception(opts) do
source =
cas... | 25.407407 | 85 | 0.637026 |
3895d0ae6f9be8ecc0bf7aaf78fea4b670e09974 | 1,024 | exs | Elixir | mix.exs | sebn/pbkdf2_elixir | c892b7d9f0a20e749288217d57a18da6fe000fca | [
"BSD-3-Clause"
] | null | null | null | mix.exs | sebn/pbkdf2_elixir | c892b7d9f0a20e749288217d57a18da6fe000fca | [
"BSD-3-Clause"
] | null | null | null | mix.exs | sebn/pbkdf2_elixir | c892b7d9f0a20e749288217d57a18da6fe000fca | [
"BSD-3-Clause"
] | null | null | null | defmodule Pbkdf2Elixir.Mixfile do
use Mix.Project
@version "1.2.1"
@description """
Pbkdf2 password hashing algorithm for Elixir
"""
def project do
[
app: :pbkdf2_elixir,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
description: @description,... | 20.897959 | 71 | 0.560547 |
3895e6371d92ee548d368074a1eeb1065b866695 | 8,019 | ex | Elixir | plugins/one_chat/lib/one_chat/services/service_helpers.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/lib/one_chat/services/service_helpers.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/lib/one_chat/services/service_helpers.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChat.ServiceHelpers do
# use OneChatWeb, :service
use InfinityOneWeb.Gettext
import Ecto.Query
require OneChatWeb.SharedView
alias InfinityOne.{Repo, Hooks, Accounts.User}
alias OneChat.{AppConfig, Channel}
require Logger
@default_user_preload [:account, :roles, user_roles: :role]
de... | 29.810409 | 93 | 0.602319 |
38962ea2ef8d1ae9df0e2603069c4441ed06ee4c | 658 | ex | Elixir | lib/plausible_web/views/email_view.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | 1 | 2020-05-02T15:26:56.000Z | 2020-05-02T15:26:56.000Z | lib/plausible_web/views/email_view.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | lib/plausible_web/views/email_view.ex | dukhniav/plausible | dfcbf9cc98637721698b2046eee205b66b204acb | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.EmailView do
use PlausibleWeb, :view
def user_salutation(user) do
if user.name do
String.split(user.name) |> List.first
else
""
end
end
def suggested_plan_name(usage) do
cond do
usage < 9_000 ->
"Personal"
usage < 90_000 ->
"Startu... | 16.45 | 43 | 0.531915 |
38964cdc361a041d7f603478e58d76045d9e3698 | 2,167 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_update_warnings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_update_warnings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/resource_update_warnings.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... | 40.12963 | 252 | 0.724042 |
3896551e4b321f2186fc6ec5bf7b059439771256 | 578 | ex | Elixir | lib/blue_jet/app/goods/stockable/query.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/goods/stockable/query.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/goods/stockable/query.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Goods.Stockable.Query do
@behaviour BlueJet.Query
use BlueJet, :query
alias BlueJet.Goods.Stockable
def identifiable_fields, do: [:id, :status]
def filterable_fields, do: [:id, :status, :label]
def searchable_fields, do: [:code, :name]
def default(), do: from s in Stockable
def get... | 30.421053 | 80 | 0.690311 |
38967282d79c9625a9f31e23d84c99ed6591b3c3 | 2,305 | exs | Elixir | test/rock/links_test.exs | sitch/rock | 4ed29f0b9bcbbef2b690a4ca903c33b60edb04e4 | [
"MIT"
] | null | null | null | test/rock/links_test.exs | sitch/rock | 4ed29f0b9bcbbef2b690a4ca903c33b60edb04e4 | [
"MIT"
] | null | null | null | test/rock/links_test.exs | sitch/rock | 4ed29f0b9bcbbef2b690a4ca903c33b60edb04e4 | [
"MIT"
] | null | null | null | defmodule Rock.LinksTest do
use ExUnit.Case
alias Rock.Links
alias Rock.Struct.Point
alias Rock.NeighbourCriterion
test "calculates link matrix (example 1)" do
criterion = NeighbourCriterion.new(0.1)
points = [
Point.new(["1", "2", "3", "4", "5"]),
Point.new(["1"]),
Point.new(["5", ... | 26.494253 | 49 | 0.399566 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.