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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
918ac7fbc9f5961111ddd2695d99e6acd3dac3f0 | 6,150 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/gce_cluster_config.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/gce_cluster_config.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/gce_cluster_config.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 83.108108 | 642 | 0.752846 |
918af84a10c066ca02cc911501dadfffe757bc48 | 368 | exs | Elixir | example_app/priv/repo/seeds.exs | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | null | null | null | example_app/priv/repo/seeds.exs | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"MIT"
] | 1 | 2017-05-08T15:09:09.000Z | 2017-05-10T06:05:24.000Z | example_app/priv/repo/seeds.exs | jespr/noegle | e14953085d38384c80993dd750aa85202db11418 | [
"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:
#
# NoegleExampleApp.Repo.insert!(%NoegleExampleApp.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so... | 30.666667 | 66 | 0.720109 |
918b27b85129b4f926939b877225dec0357e828b | 8,802 | ex | Elixir | lib/benchee/formatters/console/memory.ex | pablocostass/benchee | bd4873feabbcc4817cf6ecbd9cef0e0338ce678b | [
"MIT"
] | 636 | 2016-06-06T07:58:36.000Z | 2019-03-19T15:27:37.000Z | lib/benchee/formatters/console/memory.ex | pablocostass/benchee | bd4873feabbcc4817cf6ecbd9cef0e0338ce678b | [
"MIT"
] | 198 | 2016-06-18T08:19:15.000Z | 2019-03-19T15:32:37.000Z | lib/benchee/formatters/console/memory.ex | pablocostass/benchee | bd4873feabbcc4817cf6ecbd9cef0e0338ce678b | [
"MIT"
] | 43 | 2016-06-08T08:04:30.000Z | 2019-02-13T17:10:24.000Z | defmodule Benchee.Formatters.Console.Memory do
@moduledoc false
# This deals with just the formatting of the run time results. They are similar
# to the way the memory results are formatted, but different enough to where the
# abstractions start to break down pretty significantly, so I wanted to extract
# th... | 27.335404 | 100 | 0.651102 |
918b4988a51905482a879f0bc3a4d9a8480b8bd1 | 2,759 | ex | Elixir | apps/service_profile/lib/profile/feed.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_profile/lib/profile/feed.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_profile/lib/profile/feed.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Profile.Feed do
use Supervisor
@type init_opts :: [
name: GenServer.name(),
extract: Extract.t()
]
@spec start_link(init_opts) :: GenServer.on_start()
def start_link(opts) do
server_opts = Keyword.take(opts, [:name])
Supervisor.start_link(__MODULE__, opts, server_... | 29.042105 | 94 | 0.646974 |
918b52c4c025694f816ba1f28be1303ae4412958 | 1,164 | ex | Elixir | demos/phoenix/lib/phoenix_demo/endpoint.ex | aptinio/site_encrypt | be1c5a11d9da250a14d45afe3ff9ac62fb7d282d | [
"MIT"
] | null | null | null | demos/phoenix/lib/phoenix_demo/endpoint.ex | aptinio/site_encrypt | be1c5a11d9da250a14d45afe3ff9ac62fb7d282d | [
"MIT"
] | null | null | null | demos/phoenix/lib/phoenix_demo/endpoint.ex | aptinio/site_encrypt | be1c5a11d9da250a14d45afe3ff9ac62fb7d282d | [
"MIT"
] | null | null | null | defmodule PhoenixDemo.Endpoint do
use Phoenix.Endpoint, otp_app: :phoenix_demo
use SiteEncrypt.Phoenix
plug SiteEncrypt.AcmeChallenge, __MODULE__
plug Plug.SSL, exclude: [], host: "localhost:4001"
plug :hello
defp hello(conn, _opts),
do: Plug.Conn.send_resp(conn, :ok, "This site has been encrypted by ... | 29.846154 | 87 | 0.649485 |
918b536c0c9d52ffd0ad35c1a0458ce0dfe8e939 | 189 | ex | Elixir | lib/ielixir/history_entry.ex | lanalabs/IElixir | c185ce83649c268b7766e707481a3a49c525485b | [
"Apache-2.0"
] | 363 | 2015-07-12T07:36:38.000Z | 2022-03-23T22:48:41.000Z | lib/ielixir/history_entry.ex | lanalabs/IElixir | c185ce83649c268b7766e707481a3a49c525485b | [
"Apache-2.0"
] | 51 | 2015-07-30T08:40:46.000Z | 2021-12-03T09:18:58.000Z | lib/ielixir/history_entry.ex | lanalabs/IElixir | c185ce83649c268b7766e707481a3a49c525485b | [
"Apache-2.0"
] | 50 | 2015-07-30T05:31:58.000Z | 2021-12-03T09:15:58.000Z | defmodule IElixir.HistoryEntry do
use Ecto.Schema
schema "history" do
field :input
field :output
field :session
field :line_number, :integer
timestamps()
end
end
| 15.75 | 33 | 0.687831 |
918b58e0f942a0a5a66d6b1a029dfaadffb511ef | 2,228 | exs | Elixir | mix.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | null | null | null | mix.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | null | null | null | mix.exs | szlend/wobserver | 6c3ea1ef772ddb4a0b35956d155f33fc46f71a8c | [
"MIT"
] | null | null | null | defmodule Wobserver.Mixfile do
use Mix.Project
def project do
[
app: :wobserver,
version: "0.1.8",
elixir: "~> 1.4",
description: "Web based metrics, monitoring, and observer.",
package: package(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 27.506173 | 123 | 0.543986 |
918b6c5d31dbceafbe5eb485014cd3e624713602 | 970 | ex | Elixir | lib/brahman/dns/handler.ex | shun159/brahman | dfa04d757c4e4422b00bdc97a694d2d6637708f9 | [
"Beerware"
] | null | null | null | lib/brahman/dns/handler.ex | shun159/brahman | dfa04d757c4e4422b00bdc97a694d2d6637708f9 | [
"Beerware"
] | null | null | null | lib/brahman/dns/handler.ex | shun159/brahman | dfa04d757c4e4422b00bdc97a694d2d6637708f9 | [
"Beerware"
] | null | null | null | defmodule Brahman.Dns.Handler do
use GenStage
require Logger
# API functions
@type handler_fun :: (binary() -> :ok) | {(... -> :ok), [term()]}
@spec handle(binary(), handler_fun()) :: :ok
def handle(query, handler_fn) do
GenStage.cast(__MODULE__, {:handle, query, handler_fn})
end
# GenStage cal... | 20.638298 | 67 | 0.640206 |
918bb786bf134e6d33f34df72fa246e6556427de | 102 | ex | Elixir | hippo-backend/lib/hippo/repo.ex | yvc74/Hippo | 4a1784c67bdbe073dafaf9aea66660d5b3c7ed5e | [
"MIT"
] | 1 | 2020-09-20T14:16:03.000Z | 2020-09-20T14:16:03.000Z | hippo-backend/lib/hippo/repo.ex | yvc74/Hippo | 4a1784c67bdbe073dafaf9aea66660d5b3c7ed5e | [
"MIT"
] | null | null | null | hippo-backend/lib/hippo/repo.ex | yvc74/Hippo | 4a1784c67bdbe073dafaf9aea66660d5b3c7ed5e | [
"MIT"
] | null | null | null | defmodule Hippo.Repo do
use Ecto.Repo,
otp_app: :hippo,
adapter: Ecto.Adapters.Postgres
end
| 17 | 35 | 0.715686 |
918bc13214061a73f177179ca4ae726e3d9ffdae | 97 | ex | Elixir | lib/plugin_manager/event/reference/on_content_before_display.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-18T14:32:15.000Z | 2022-03-24T06:33:21.000Z | lib/plugin_manager/event/reference/on_content_before_display.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | 3 | 2022-03-25T08:30:42.000Z | 2022-03-27T17:13:46.000Z | lib/plugin_manager/event/reference/on_content_before_display.ex | mishka-group/mishka_installer | ab19e3e1e8aaa984ec48d6277a77d567eb5f61ea | [
"Apache-2.0"
] | null | null | null | defmodule MishkaInstaller.Reference.OnContentBeforeDisplay do
# TODO: it needs html render
end
| 24.25 | 61 | 0.835052 |
918bcccb8da0563f0c4b95ddc706e0995d426eff | 4,406 | ex | Elixir | lib/indicado/mfi.ex | thisiscetin/indicado | c0efc7ec44a33b1de1eb42dcff8765845b0b7b86 | [
"Apache-2.0"
] | 14 | 2021-06-22T09:16:58.000Z | 2021-12-20T03:20:30.000Z | lib/indicado/mfi.ex | c7n0/indicado | 9a9c4a2f5b1ea59a9b263c639194f5ac6900b009 | [
"Apache-2.0"
] | null | null | null | lib/indicado/mfi.ex | c7n0/indicado | 9a9c4a2f5b1ea59a9b263c639194f5ac6900b009 | [
"Apache-2.0"
] | 1 | 2021-07-17T19:44:25.000Z | 2021-07-17T19:44:25.000Z | defmodule Indicado.MFI do
@moduledoc """
This is the MFI module used for calculating Money Flow Index
"""
@typedoc """
The argument passed to eval functions should be a list of mfi_data_map type.
"""
@type mfi_data_map :: %{
low: float,
high: float,
close: float,
v... | 38.99115 | 239 | 0.591239 |
918be4691087796061ded115fccc93d2769b64ab | 1,637 | ex | Elixir | clients/home_graph/lib/google_api/home_graph/v1/model/agent_other_device_id.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/lib/google_api/home_graph/v1/model/agent_other_device_id.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/home_graph/lib/google_api/home_graph/v1/model/agent_other_device_id.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.74 | 119 | 0.723885 |
918bf293f8c25f465b8082f660205381e79607e2 | 99 | exs | Elixir | test/pelemay_test.exs | kentaro/pelemay | fcdd8c2783adb9e57aa82f3fc8c1184346de9f3c | [
"Apache-2.0"
] | 192 | 2019-08-30T06:53:28.000Z | 2022-02-15T06:08:25.000Z | test/pelemay_test.exs | tlk-emb/pelemay_opencl | 949189301ec022cedbb87af253af8bf7aa08ea5f | [
"Apache-2.0"
] | 121 | 2019-09-02T08:13:25.000Z | 2021-12-03T19:04:16.000Z | test/pelemay_test.exs | tlk-emb/pelemay_opencl | 949189301ec022cedbb87af253af8bf7aa08ea5f | [
"Apache-2.0"
] | 15 | 2019-08-31T12:00:03.000Z | 2021-07-03T04:13:10.000Z | defmodule PelemayTest do
use ExUnit.Case, async: true
doctest Pelemay
doctest Pelemay.Db
end
| 16.5 | 30 | 0.777778 |
918c2803f8d4b262d791ac9863288fb9d52329ae | 1,040 | exs | Elixir | config/config.exs | lucassm02/rocket-pay | af9ccbb68bc5d79793703e32bdb1d41f57e29682 | [
"MIT"
] | null | null | null | config/config.exs | lucassm02/rocket-pay | af9ccbb68bc5d79793703e32bdb1d41f57e29682 | [
"MIT"
] | null | null | null | config/config.exs | lucassm02/rocket-pay | af9ccbb68bc5d79793703e32bdb1d41f57e29682 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :rocketpay,
ecto_repos: [Rocketpay.Repo... | 32.5 | 86 | 0.772115 |
918c55383eb64e5181d5aaeb04a0644336908a9c | 17,375 | exs | Elixir | apps/api_web/test/api_web/controllers/route_controller_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/api_web/test/api_web/controllers/route_controller_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | apps/api_web/test/api_web/controllers/route_controller_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | null | null | null | defmodule ApiWeb.RouteControllerTest do
use ApiWeb.ConnCase
@route %Model.Route{
id: "1",
agency_id: "1",
type: 1,
sort_order: 1,
description: "First Route",
fare_class: "Ferry",
short_name: "First",
long_name: "The First",
color: "FFFFFF",
text_color: "000000",
line_id:... | 33.542471 | 97 | 0.565065 |
918c72f389d09b83632ffe5da44cfa6dec83b792 | 514 | exs | Elixir | test/models/user_test.exs | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | null | null | null | test/models/user_test.exs | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 3 | 2018-10-03T16:59:21.000Z | 2018-10-06T09:53:51.000Z | test/models/user_test.exs | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 1 | 2018-10-03T17:06:47.000Z | 2018-10-03T17:06:47.000Z | defmodule Trello.UserTest do
use Trello.ModelCase
alias Trello.User
@valid_attrs %{email: "some email", encrypted_password: "some encrypted_password", first_name: "some first_name", last_name: "some last_name"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = User.changeset(%Use... | 27.052632 | 144 | 0.733463 |
918cf839fd4ea57ff8b05d70ddc8f4b04c27496c | 351 | ex | Elixir | lib/brando_web/controllers/i18n_controller.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando_web/controllers/i18n_controller.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando_web/controllers/i18n_controller.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule BrandoWeb.I18nController do
@moduledoc """
Controller for i18n actions.
"""
use BrandoWeb, :controller
import Brando.I18n
@doc false
def switch_language(conn, %{"language" => language}) do
Gettext.put_locale(Brando.app_module(Gettext), language)
conn
|> put_language(language)
... | 19.5 | 60 | 0.68661 |
918cfdb745e3cc48f6c212fffe5583d7cc214b8a | 2,184 | exs | Elixir | src/017/problem017.exs | fredericojordan/project-euler | 75c3f519d5a6ad610362b6904f8fa4d1cde05448 | [
"MIT"
] | 9 | 2018-05-06T04:43:08.000Z | 2020-12-01T20:51:34.000Z | src/017/problem017.exs | fredericojordan/project-euler | 75c3f519d5a6ad610362b6904f8fa4d1cde05448 | [
"MIT"
] | null | null | null | src/017/problem017.exs | fredericojordan/project-euler | 75c3f519d5a6ad610362b6904f8fa4d1cde05448 | [
"MIT"
] | null | null | null | #!/usr/bin/env elixir
defmodule Problem017 do
@moduledoc """
If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would ... | 27.64557 | 241 | 0.539377 |
918d099959b59a9e35e8555a0d3af1248c7ccd24 | 439 | exs | Elixir | app/config/test.exs | wsams/tixir | 27661173dfe388c57037b4014c527afc8a4a3952 | [
"Apache-2.0"
] | null | null | null | app/config/test.exs | wsams/tixir | 27661173dfe388c57037b4014c527afc8a4a3952 | [
"Apache-2.0"
] | 1 | 2019-09-29T06:50:49.000Z | 2019-09-29T06:50:49.000Z | app/config/test.exs | wsams/tixir | 27661173dfe388c57037b4014c527afc8a4a3952 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# Configure your database
config :app, App.Repo,
username: "postgres",
password: "postgres",
database: "app_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :app, AppWeb.Endp... | 23.105263 | 56 | 0.719818 |
918d0c25c8f65181bdd0504e52db3f7b11962867 | 8,891 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/request.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... | 64.427536 | 169 | 0.768867 |
918d0cc941011ba7c10e2d6018b1e8daced0597e | 2,271 | ex | Elixir | lib/inch_ex/docs.ex | asaaki/inch_ex | 38874a6050663f97c9cbfea29e9b413b4eea1a7b | [
"MIT"
] | null | null | null | lib/inch_ex/docs.ex | asaaki/inch_ex | 38874a6050663f97c9cbfea29e9b413b4eea1a7b | [
"MIT"
] | null | null | null | lib/inch_ex/docs.ex | asaaki/inch_ex | 38874a6050663f97c9cbfea29e9b413b4eea1a7b | [
"MIT"
] | null | null | null | defmodule InchEx.Docs do
@moduledoc """
Provides functions for loading docs.
"""
@beam_file_pattern "*.beam"
def beam_files(files) when is_list(files) do
files
end
def beam_files(dir) do
Path.wildcard(Path.expand(@beam_file_pattern, dir))
end
@doc "Loads the docs from the given `file`."
d... | 26.103448 | 96 | 0.624395 |
918d17487d5a12e3071bbb0920f12e4fa3c67d2b | 915 | exs | Elixir | frameworks/Elixir/phoenix/mix.exs | jberger/FrameworkBenchmarks | 0a65afdf05e435cfbc782368b1a826097680521d | [
"BSD-3-Clause"
] | 1 | 2021-07-13T16:08:08.000Z | 2021-07-13T16:08:08.000Z | frameworks/Elixir/phoenix/mix.exs | dreis2211/FrameworkBenchmarks | a6de4acec24c1e1cc17174c3d75196d9b58d713e | [
"BSD-3-Clause"
] | 3 | 2021-12-09T19:28:16.000Z | 2022-01-21T23:51:59.000Z | frameworks/Elixir/phoenix/mix.exs | dreis2211/FrameworkBenchmarks | a6de4acec24c1e1cc17174c3d75196d9b58d713e | [
"BSD-3-Clause"
] | null | null | null | defmodule Hello.Mixfile do
use Mix.Project
def project do
[app: :hello,
version: "0.1.0",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Confi... | 24.72973 | 89 | 0.602186 |
918d335d1478a5c01f8f832db1fe9adf51ce611c | 205 | exs | Elixir | priv/repo/migrations/20170118183956_add_expires_at_to_personal_access_tokens.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | priv/repo/migrations/20170118183956_add_expires_at_to_personal_access_tokens.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170118183956_add_expires_at_to_personal_access_tokens.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.Repo.Migrations.AddExpiresAtToPersonalAccessTokens do
use Ecto.Migration
def change do
alter table(:personal_access_tokens) do
add :expires_at, :bigint
end
end
end
| 20.5 | 73 | 0.765854 |
918d3f294a099a512820ae0b7b7a31b36d1d6251 | 361 | ex | Elixir | lib/repoex.ex | RomuloHe4rt/Repoex | 6ccf09e1f0be63d3021533c3c9bd7b8e5fd73925 | [
"MIT"
] | null | null | null | lib/repoex.ex | RomuloHe4rt/Repoex | 6ccf09e1f0be63d3021533c3c9bd7b8e5fd73925 | [
"MIT"
] | null | null | null | lib/repoex.ex | RomuloHe4rt/Repoex | 6ccf09e1f0be63d3021533c3c9bd7b8e5fd73925 | [
"MIT"
] | null | null | null | defmodule Repoex do
alias Repoex.Users.{Create, Delete, Update}
defdelegate get_repos(user),
to: Application.fetch_env!(:repoex, __MODULE__)[:get_repos_adapter],
as: :call
defdelegate create_user(params), to: Create, as: :call
defdelegate delete_user(params), to: Delete, as: :call
defdelegate update... | 30.083333 | 72 | 0.734072 |
918d629afc3367721a74883413a3b74c3cf7d454 | 2,076 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/url_channels.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/url_channels.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/model/url_channels.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.421053 | 208 | 0.724952 |
918d862618f7c6d10bc714e13c8508841c550284 | 1,462 | ex | Elixir | lib/sap/combinators/response.ex | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | 7 | 2015-10-25T16:38:45.000Z | 2020-01-12T19:06:57.000Z | lib/sap/combinators/response.ex | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | null | null | null | lib/sap/combinators/response.ex | slogsdon/sap | 766f06cfac8a04772affd977a88d61210064e598 | [
"MIT"
] | null | null | null | defmodule Sap.Combinators.Response do
@moduledoc """
General responsehelpers
"""
import Plug.Conn
import Sap.Context, only: [new: 1]
import Sap.Helpers
@spec response(integer | atom, String.t) :: Sap.Combinators.combinator
def response(status, content) do
set_status(status) ~>> set_content(content... | 22.84375 | 74 | 0.651163 |
918d8bb151dbe8d8e79c21e1533ea33fa49b4edd | 957 | ex | Elixir | lib/requestbox_web/schema.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 18 | 2015-11-18T09:52:34.000Z | 2021-04-27T19:38:08.000Z | lib/requestbox_web/schema.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 3 | 2017-01-11T18:55:39.000Z | 2021-06-15T05:46:34.000Z | lib/requestbox_web/schema.ex | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 7 | 2016-08-17T10:24:20.000Z | 2020-07-10T13:00:36.000Z | defmodule RequestboxWeb.Schema do
use Absinthe.Schema
use Absinthe.Relay.Schema, :modern
alias RequestboxWeb.Resolvers
import_types(Absinthe.Type.Custom)
import_types(RequestboxWeb.Schema.HashIDTypes)
import_types(RequestboxWeb.Schema.TimestampTypes)
import_types(RequestboxWeb.Schema.RequestTypes)
impo... | 28.147059 | 97 | 0.69697 |
918d95c9df4f6d175a8b5006c2d40ee309143f52 | 353 | exs | Elixir | priv/repo/seeds.exs | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | 3 | 2017-06-02T20:47:07.000Z | 2018-05-25T11:17:12.000Z | priv/repo/seeds.exs | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | leobessa/exchess | 289819d183f3001dddf56810c36298fa669c3a06 | [
"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:
#
# ChessApp.Repo.insert!(%ChessApp.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they wi... | 29.416667 | 61 | 0.708215 |
918da90d8f4a16cf4085fb68da9a9c8bb1709f28 | 943 | exs | Elixir | test/grizzly/zwave/commands/barrier_operator_signal_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/barrier_operator_signal_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/barrier_operator_signal_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.BarrierOperatorSignalReportTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.BarrierOperatorSignalReport
test "creates the command and validates params" do
params = [subsystem_type: :audible_notification, subsystem_state: :on]
{:ok, _command} = BarrierOpe... | 37.72 | 80 | 0.7614 |
918de0f5e0c22d5dcdab9d448866c7cc5a36b98b | 2,972 | exs | Elixir | server/test/realtime/rls_replications_test.exs | Omneedia/realtime | 90a72170aa1502e211c9f5cbf638c60add6faaf6 | [
"Apache-2.0"
] | null | null | null | server/test/realtime/rls_replications_test.exs | Omneedia/realtime | 90a72170aa1502e211c9f5cbf638c60add6faaf6 | [
"Apache-2.0"
] | null | null | null | server/test/realtime/rls_replications_test.exs | Omneedia/realtime | 90a72170aa1502e211c9f5cbf638c60add6faaf6 | [
"Apache-2.0"
] | null | null | null | defmodule Realtime.RlsReplicationsTest do
use ExUnit.Case
import Realtime.RLS.Repo
import Realtime.RLS.Replications
@slot_name "test_realtime_slot_name"
@publication_name "supabase_realtime"
@max_record_bytes 1_048_576
setup_all do
start_supervised(Realtime.RLS.Repo)
:ok
end
test "prepare_r... | 32.659341 | 98 | 0.624159 |
918de2a28df6b44cab0b955308ca707d61442bf1 | 709 | exs | Elixir | config/prod.secret.exs | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | 2 | 2021-04-20T22:27:53.000Z | 2021-05-13T17:16:15.000Z | config/prod.secret.exs | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | null | null | null | config/prod.secret.exs | jpbrab0/banking_api | 2614b61225e58a60fed1ecb767870f7e1ac3a621 | [
"Apache-2.0"
] | null | null | null | import Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
environment variable DATABASE_URL is missing.
For example: ecto://USER:PASS@HOST/DATABASE
"""
config :banking_api, BankingApi.Repo,
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
secre... | 26.259259 | 67 | 0.706629 |
918de93e96d47043ce17d33aa9431395a35a02bd | 2,410 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/site_contact.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/site_contact.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/site_contact.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.428571 | 107 | 0.692116 |
918dfd62eeaa8bfd8c84bba76a14483df8073dc1 | 3,549 | ex | Elixir | lib/mailman/parsing.ex | Route-Now/mailman | 24b99cdb8553b441be7e84f2350fe2b93ddd837a | [
"MIT"
] | null | null | null | lib/mailman/parsing.ex | Route-Now/mailman | 24b99cdb8553b441be7e84f2350fe2b93ddd837a | [
"MIT"
] | null | null | null | lib/mailman/parsing.ex | Route-Now/mailman | 24b99cdb8553b441be7e84f2350fe2b93ddd837a | [
"MIT"
] | null | null | null | defmodule Mailman.Parsing do
@moduledoc """
Functions for parsing mail messages into Elixir struct.
"""
@doc """
Parses given MIME mail and returns an email.
"""
def parse(message) when is_binary(message) do
{:ok, parse(:mimemail.decode(message))}
end
def parse(raw) do
%Mailman.Email{
... | 22.320755 | 84 | 0.600169 |
918dffd7d9dd7e2db1e25d5e0adeb0da41cd0e92 | 3,694 | ex | Elixir | lib/mongo/server_description.ex | zookzook/mongodb | 7055a282cfa55efc62dfc4542092fc6109a53d77 | [
"Apache-2.0"
] | 1 | 2019-01-24T09:02:56.000Z | 2019-01-24T09:02:56.000Z | lib/mongo/server_description.ex | yatender-oktalk/mongodb | 3dd14b9eeff769aee315ad07e050f79501fbad1c | [
"Apache-2.0"
] | 7 | 2018-10-12T07:53:57.000Z | 2018-10-14T19:06:55.000Z | lib/mongo/server_description.ex | activeprospect/mongodb | 6bfd814480c3b4eaff505e1c8791d219b8071acc | [
"Apache-2.0"
] | null | null | null | defmodule Mongo.ServerDescription do
@moduledoc false
# see https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#serverdescription
@type type :: :standalone | :mongos | :possible_primary | :rs_primary |
:rs_secondary | :r... | 35.519231 | 165 | 0.649973 |
918e2011bcba3a162277a15109e80a91c98cbbf2 | 1,220 | ex | Elixir | lib/metrics/events/players_instrumenter.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | lib/metrics/events/players_instrumenter.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | lib/metrics/events/players_instrumenter.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Metrics.Events.PlayersInstrumenter do
@moduledoc """
Instrumentation for channels
"""
use Prometheus.Metric
require Logger
@doc false
def setup() do
events = [
{:players, :sign_in},
{:players, :sign_out},
{:players, :status}
]
Enum.each(events, fn {module, event... | 27.111111 | 93 | 0.67377 |
918e34a1bbc5d9ff660f7b9bff05619bad355a45 | 7,226 | ex | Elixir | lib/jason.ex | simpers/jason | b84e05946af973a007bbd80be8e44d63eea40e44 | [
"Apache-2.0"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | lib/jason.ex | simpers/jason | b84e05946af973a007bbd80be8e44d63eea40e44 | [
"Apache-2.0"
] | 4 | 2021-03-04T13:00:52.000Z | 2021-03-12T12:42:09.000Z | deps/jason/lib/jason.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 1 | 2021-08-04T09:34:46.000Z | 2021-08-04T09:34:46.000Z | defmodule Jason do
@moduledoc """
A blazing fast JSON parser and generator in pure Elixir.
"""
alias Jason.{Encode, Decoder, DecodeError, EncodeError, Formatter}
@type escape :: :json | :unicode_safe | :html_safe | :javascript_safe
@type maps :: :naive | :strict
@type encode_opt :: {:escape, escape} | ... | 31.554585 | 95 | 0.645447 |
918e61df1b2aa7ac3382df2edd17e64158b3ea7f | 3,256 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_management/lib/google_api/service_management/v1/model/expr.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_management/lib/google_api/service_management/v1/model/expr.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... | 58.142857 | 1,092 | 0.735565 |
918e9dcbb1ab0594275f374a4a18d117d039e426 | 1,812 | ex | Elixir | apps/engine/lib/engine/ethereum/height_observer/alarm_management.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 4 | 2020-11-30T17:38:57.000Z | 2021-01-23T21:29:41.000Z | apps/engine/lib/engine/ethereum/height_observer/alarm_management.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | 24 | 2020-11-30T17:32:48.000Z | 2021-02-22T06:25:22.000Z | apps/engine/lib/engine/ethereum/height_observer/alarm_management.ex | omgnetwork/omg-childchain-v2 | 31cc9cf9e42718fc3b9bd6668f24a627cac80b4f | [
"Apache-2.0"
] | null | null | null | defmodule Engine.Ethereum.HeightObserver.AlarmManagement do
@moduledoc """
Does all the alarm management logic from height monitoring
"""
@spec subscribe_to_alarms(module(), module(), GenServer.server()) :: :gen_event.add_handler_ret()
def subscribe_to_alarms(sasl_alarm_handler, handler, consumer) do
cas... | 36.24 | 101 | 0.763245 |
918ebc4a438ba492688877b957772cac50100d41 | 71 | ex | Elixir | lib/hello_elixir_web/views/layout_view.ex | moosch/elixir-cloud-run | e531f6b28daf5aa4077bc4435aa48f2b546ed131 | [
"MIT"
] | null | null | null | lib/hello_elixir_web/views/layout_view.ex | moosch/elixir-cloud-run | e531f6b28daf5aa4077bc4435aa48f2b546ed131 | [
"MIT"
] | null | null | null | lib/hello_elixir_web/views/layout_view.ex | moosch/elixir-cloud-run | e531f6b28daf5aa4077bc4435aa48f2b546ed131 | [
"MIT"
] | null | null | null | defmodule HelloElixirWeb.LayoutView do
use HelloElixirWeb, :view
end
| 17.75 | 38 | 0.830986 |
918ec75403f5d763ef1aa9cb68fb52ff8b634d5a | 28,857 | ex | Elixir | lib/aws/generated/sqs.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sqs.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/sqs.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.SQS do
@moduledoc """
Welcome to the *Amazon Simple Queue Service API Reference*.
Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted
queue for storing messages... | 48.014975 | 250 | 0.754999 |
918ed9de135044edad17934109ab64ab544a5cd8 | 677 | exs | Elixir | apps/smtp_recv/mix.exs | shymega/dialoguex | 974bd195780aea952497913537b3386fb6875977 | [
"Apache-2.0"
] | 2 | 2018-03-20T17:28:58.000Z | 2018-05-07T14:13:21.000Z | apps/smtp_recv/mix.exs | shymega/dialoguex | 974bd195780aea952497913537b3386fb6875977 | [
"Apache-2.0"
] | 1 | 2018-03-20T17:54:56.000Z | 2018-03-31T16:27:15.000Z | apps/smtp_recv/mix.exs | shymega/dialoguex | 974bd195780aea952497913537b3386fb6875977 | [
"Apache-2.0"
] | null | null | null | defmodule SMTPRecv.MixProject do
use Mix.Project
def project do
[
app: :smtp_recv,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6",
start_permanent: Mix.en... | 19.911765 | 59 | 0.533235 |
918ef26c7ff41f51b86e392fc22dc183426177bb | 1,728 | exs | Elixir | config/config.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | config/config.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | config/config.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.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
# General application configuration
config :cncf_dashboard_api,
ecto_repos: [CncfDa... | 34.56 | 86 | 0.679977 |
918ef4b75bc3db9383ae00e4d6e480a71f13e199 | 695 | ex | Elixir | lib/warpath/expression/parser.ex | mmmries/warpath | 352e41bedae8a3b4597e5105477483e3fcd5f5b7 | [
"MIT"
] | 16 | 2020-04-28T12:39:27.000Z | 2021-12-21T16:50:58.000Z | lib/warpath/expression/parser.ex | mmmries/warpath | 352e41bedae8a3b4597e5105477483e3fcd5f5b7 | [
"MIT"
] | 41 | 2020-02-01T18:10:50.000Z | 2022-01-18T08:11:22.000Z | lib/warpath/expression/parser.ex | mmmries/warpath | 352e41bedae8a3b4597e5105477483e3fcd5f5b7 | [
"MIT"
] | 3 | 2020-04-27T12:53:57.000Z | 2020-10-02T18:33:32.000Z | defmodule Warpath.Expression.Parser do
@moduledoc false
alias Warpath.Expression.ParserError
def parse(tokens) when is_list(tokens) do
tokens
|> :warpath_parser.parse()
|> case do
{:ok, _} = expression_tokens ->
expression_tokens
{:error, {line, _module, message}} ->
err... | 22.419355 | 97 | 0.630216 |
918ef552998d62f9a4c040e6f20cd25b28464d6b | 82 | exs | Elixir | test/ex_aws_cloud_trail_test.exs | fmcgeough/ex_aws_cloud_trail | 30346e5c11acf9dc5d133635b8025fe659e9f957 | [
"MIT"
] | null | null | null | test/ex_aws_cloud_trail_test.exs | fmcgeough/ex_aws_cloud_trail | 30346e5c11acf9dc5d133635b8025fe659e9f957 | [
"MIT"
] | null | null | null | test/ex_aws_cloud_trail_test.exs | fmcgeough/ex_aws_cloud_trail | 30346e5c11acf9dc5d133635b8025fe659e9f957 | [
"MIT"
] | null | null | null | defmodule ExAwsCloudTrailTest do
use ExUnit.Case
doctest ExAws.CloudTrail
end
| 16.4 | 32 | 0.829268 |
918f1017c782d279d3f2495d4096cb3428d0e849 | 970 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/request_builder.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/request_builder.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/request_builder.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.307692 | 77 | 0.765979 |
918f1471430a1e745375342898102225f8ff229f | 228 | exs | Elixir | apps/auction/priv/repo/migrations/20190513003453_add_auction_assoc_to_item.exs | kendru/auctions-for-adoption | 1cc470d7b79b175be4490ff007b97e7df1e6d484 | [
"Apache-2.0"
] | null | null | null | apps/auction/priv/repo/migrations/20190513003453_add_auction_assoc_to_item.exs | kendru/auctions-for-adoption | 1cc470d7b79b175be4490ff007b97e7df1e6d484 | [
"Apache-2.0"
] | null | null | null | apps/auction/priv/repo/migrations/20190513003453_add_auction_assoc_to_item.exs | kendru/auctions-for-adoption | 1cc470d7b79b175be4490ff007b97e7df1e6d484 | [
"Apache-2.0"
] | null | null | null | defmodule Auction.Repo.Migrations.AddAuctionAssocToItem do
use Ecto.Migration
def change do
alter table(:items) do
add :auction_id, references(:auctions)
end
create index(:items, [:auction_id])
end
end
| 19 | 58 | 0.714912 |
918f703e19082221265659cd59afcc5afc2839ee | 4,848 | ex | Elixir | dio/exibee/lib/exi/exi_connect.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | dio/exibee/lib/exi/exi_connect.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | dio/exibee/lib/exi/exi_connect.ex | exineris/shp_challenge2021 | 2a5447af681259d0ea699b670cf079bd31315cd8 | [
"Apache-2.0"
] | null | null | null | defmodule Exi.Connect do
@moduledoc """
Nerves起動時に指定したノードに `Node.connect()` し、接続が切れた場合は再接続を試みる。
## 使い方
application.exに以下を記載する。
```
{Exi.Connect, [node_name, cookie, conn_node]}
```
- node_name: 自分のノード名
- cookie: クッキー(共通鍵)
- conn_node: Node.connectするノード
## 例
```
{Exi.Connect, ["my_node... | 24.24 | 130 | 0.612624 |
918f9a996f8fc5edf8403489fee1626dda607351 | 1,823 | ex | Elixir | clients/content/lib/google_api/content/v21/model/list_collections_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/list_collections_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/list_collections_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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.46 | 189 | 0.738343 |
918fb665f9f3bffd052a49f38d76ff8a99b6bb73 | 370 | ex | Elixir | apps/mishka_user/lib/guardian/auth_pipeline.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_user/lib/guardian/auth_pipeline.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_user/lib/guardian/auth_pipeline.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaUser.AuthPipeline do
use Guardian.Plug.Pipeline, otp_app: :mishka_user,
module: MishkaUser.Guardian,
error_handler: MishkaUser.AuthErrorHandler
plug Guardian.Plug.VerifyHeader, claims: %{"typ" => "access"}, scheme: "Bearer"
plug Guardian.Plug.EnsureAuthenticated
plug Guardian.Plug.... | 33.636364 | 81 | 0.764865 |
918fbe96849a419711e24ed07f7061dc096296ba | 1,844 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_availability_change_event.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_availability_change_event.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/product_availability_change_event.ex | 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... | 35.461538 | 129 | 0.740239 |
918fee40bb4085021af917fb7075a8cdb8140f44 | 1,545 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/response_header.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dns/lib/google_api/dns/v1/model/response_header.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/response_header.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.87234 | 236 | 0.743042 |
919022cd30b714999f3b5ede13ea0d0d4dc82427 | 1,160 | ex | Elixir | lib/ecto/queryable.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | lib/ecto/queryable.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | lib/ecto/queryable.ex | scrogson/ecto | fdcf807901683c73c1117d89751e0d5a7a318154 | [
"Apache-2.0"
] | null | null | null | defprotocol Ecto.Queryable do
@moduledoc """
The `Queryable` protocol is responsible for converting a structure to an
`Ecto.Query` struct. The only function required to implement is
`to_query` which does the conversion.
"""
def to_query(expr)
end
defimpl Ecto.Queryable, for: Ecto.Query do
def to_query(q... | 24.166667 | 74 | 0.688793 |
91907f02533c898e215b89c31235105341becd8c | 4,827 | ex | Elixir | apps/ewallet/lib/ewallet/seeders/cli_seeder.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/lib/ewallet/seeders/cli_seeder.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/seeders/cli_seeder.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.Seeder.CLI do
@moduledoc """
Provides an interactive seeder.
"""
defmodule Writer do
@moduledoc """
Provides an interactive writer.
"""
alias EWallet.CLI
def success(message), do: CLI.success(message)
def warn(message), do: CLI.warn(message)
def error(message), d... | 23.661765 | 95 | 0.614253 |
91908bf5f377e8788e97467e6e94b7e182838d88 | 2,513 | exs | Elixir | test/ex_jagaimo_blog_web/controllers/blog_controller_test.exs | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:19:06.000Z | 2021-06-19T04:19:06.000Z | test/ex_jagaimo_blog_web/controllers/blog_controller_test.exs | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | 1 | 2021-06-19T04:21:52.000Z | 2021-06-19T04:21:52.000Z | test/ex_jagaimo_blog_web/controllers/blog_controller_test.exs | JasonTrue/ex_jagaimo_blog | e90e2dfe67971e009f3fafb9b4a06dd3bc92ffb9 | [
"MIT"
] | null | null | null | defmodule ExJagaimoBlogWeb.BlogControllerTest do
use ExJagaimoBlogWeb.ConnCase
describe "index" do
test "lists all blogs", %{conn: conn} do
conn = get(conn, Routes.blog_path(conn, :index))
assert html_response(conn, 200) =~ "Listing Blogs"
end
end
# describe "new blog" do
# test "ren... | 33.959459 | 86 | 0.602865 |
91909d6e53924d9e73b117131f320680b55943bf | 2,906 | ex | Elixir | lib/mix/lib/mix/tasks/compile.elixir.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.elixir.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.elixir.ex | davidsulc/elixir | dd4fd6ab742acd75862e34e26dbdb86e0cf6453f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.Elixir do
use Mix.Task.Compiler
@recursive true
@manifest ".compile.elixir"
@moduledoc """
Compiles Elixir source files.
Elixir is smart enough to recompile only files that have changed
and their dependencies. This means if `lib/a.ex` is invoking
a function defined over `l... | 34.595238 | 92 | 0.684102 |
9190ce87a3ed84a2d92081969febecee81b70787 | 2,462 | exs | Elixir | test/test_helper.exs | Fastcomm/edeliver | b75c691cb2e29ae586584fa2aa99113d521456e3 | [
"MIT",
"Unlicense"
] | 807 | 2017-06-30T04:50:01.000Z | 2022-03-24T09:57:48.000Z | test/test_helper.exs | Fastcomm/edeliver | b75c691cb2e29ae586584fa2aa99113d521456e3 | [
"MIT",
"Unlicense"
] | 165 | 2017-06-26T12:57:43.000Z | 2022-03-29T14:36:49.000Z | test/test_helper.exs | Fastcomm/edeliver | b75c691cb2e29ae586584fa2aa99113d521456e3 | [
"MIT",
"Unlicense"
] | 96 | 2017-07-01T17:30:22.000Z | 2022-03-21T09:34:34.000Z |
defmodule Edeliver.BashScript.Case do
use ExUnit.CaseTemplate
using(args) do
quote do
@bash_script_file Keyword.get(unquote(args), :bash_script)
@doc "Calls a function in the bash script"
@spec call(bash_script_file::Path.t, function::String.t, args::[String.t]) :: String.t
def call(... | 43.192982 | 154 | 0.574736 |
9190e861012c56e36306a8f0fcc5191a0393b02d | 933 | exs | Elixir | test/absinthe/language/interface_type_definition.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/language/interface_type_definition.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/language/interface_type_definition.exs | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Language.InterfaceTypeDefinitionTest do
use Absinthe.Case, async: true
alias Absinthe.Blueprint
@text "An Entity"
@idl """
interface Entity
@description(text: "#{@text}")
{
name: String!
}
type Person implements Entity {
name: String!
}
type Business implements Entity ... | 22.214286 | 81 | 0.651661 |
9190eb82ef882acccd6f3bdb2a5eaf415ff3c511 | 49,495 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/node_groups.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/node_groups.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/node_groups.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49.643932 | 511 | 0.639964 |
9190f504b5123988a753e2a19df745e122aac6cf | 2,433 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/student.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/student.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/student.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.757143 | 173 | 0.705713 |
9190f9b64d6fa73ef71bf40b1a23a9966e367d1c | 521 | exs | Elixir | test/models/user.exs | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | 1 | 2020-02-09T03:03:04.000Z | 2020-02-09T03:03:04.000Z | test/models/user.exs | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | null | null | null | test/models/user.exs | mindsigns/soroban | c56962e1164a51cb5e383bbbfda880f098f181f1 | [
"MIT"
] | null | null | null | defmodule Soroban.UserTest do
use Soroban.ModelCase
alias Soroban.User
@valid_attrs %{email: "fred@mail.com", username: "fred", password: "mangoes&gooseberries"}
@invalid_attrs %{email: "fred@mail.com", password: "mangoes&gooseberries"}
test "changeset with valid attributes" do
changeset = User.changes... | 27.421053 | 92 | 0.725528 |
91910d73e8fefca5637af8293d2c3eb4ef346204 | 667 | exs | Elixir | mix.exs | gavilancomun/kakuro-elixir | 015f452f2ea997c0d344ac00099325eea5b47ede | [
"Apache-2.0"
] | null | null | null | mix.exs | gavilancomun/kakuro-elixir | 015f452f2ea997c0d344ac00099325eea5b47ede | [
"Apache-2.0"
] | null | null | null | mix.exs | gavilancomun/kakuro-elixir | 015f452f2ea997c0d344ac00099325eea5b47ede | [
"Apache-2.0"
] | null | null | null | defmodule Kakuro.Mixfile do
use Mix.Project
def project do
[app: :kakuro,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more... | 20.212121 | 77 | 0.605697 |
91913c8520b8f70bd6d9219df1c9c7846bf2da04 | 144 | exs | Elixir | test/hot_button_test.exs | sourceboat/hackathon-14-elixir-nerves-hot-button | ea62cab982d51796dfcf19d8aadb781ae28be1b7 | [
"MIT"
] | null | null | null | test/hot_button_test.exs | sourceboat/hackathon-14-elixir-nerves-hot-button | ea62cab982d51796dfcf19d8aadb781ae28be1b7 | [
"MIT"
] | null | null | null | test/hot_button_test.exs | sourceboat/hackathon-14-elixir-nerves-hot-button | ea62cab982d51796dfcf19d8aadb781ae28be1b7 | [
"MIT"
] | null | null | null | defmodule HotButtonTest do
use ExUnit.Case
doctest HotButton
test "greets the world" do
assert HotButton.hello() == :world
end
end
| 16 | 38 | 0.722222 |
9191681f75150d4cf2d12853d3fe6d6a6232e812 | 23,353 | ex | Elixir | lib/xdiff_plus.ex | mpotra/xdiff_plus | 575ea6b970c911640fcdda4105026ef3b9aff4aa | [
"Apache-2.0"
] | null | null | null | lib/xdiff_plus.ex | mpotra/xdiff_plus | 575ea6b970c911640fcdda4105026ef3b9aff4aa | [
"Apache-2.0"
] | null | null | null | lib/xdiff_plus.ex | mpotra/xdiff_plus | 575ea6b970c911640fcdda4105026ef3b9aff4aa | [
"Apache-2.0"
] | null | null | null | defmodule XdiffPlus do
@moduledoc """
X-tree Diff+: Efficient Change Detection Algorithm in XML Documents
Suk Kyoon Lee°, Dong Ah Kim
http://dl.ifip.org/db/conf/euc/euc2006/LeeK06.pdf
Reference: https://github.com/yidafu/x-tree-diff-plus/blob/master/src/XTreeDiffPlus.ts
"""
alias Xtree
alias Xtree.Algo... | 30.727632 | 98 | 0.576157 |
9191688313410086dab361a6719fdfca116b34b4 | 194 | ex | Elixir | learning/adopting_elixir/chapter_8/sample/lib/sample.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/adopting_elixir/chapter_8/sample/lib/sample.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/adopting_elixir/chapter_8/sample/lib/sample.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule Sample do
@moduledoc """
Documentation for Sample.
"""
@doc """
Hello world.
## Examples
iex> Sample.hello
:world
"""
def hello do
:world
end
end
| 10.210526 | 27 | 0.561856 |
9191857e977629e269ffa8f5166506ca2430fe4f | 38,903 | exs | Elixir | test/mix/tasks/appsignal_diagnose_test.exs | taverngoal/appsignal-elixir | b7a991e14ff2482131daef0071f27b3d6b32b649 | [
"MIT"
] | 1 | 2020-08-11T08:13:25.000Z | 2020-08-11T08:13:25.000Z | test/mix/tasks/appsignal_diagnose_test.exs | gjaldon/appsignal-elixir | 36d872d96d4c53152e365558bcfe96a3ba689fb9 | [
"MIT"
] | null | null | null | test/mix/tasks/appsignal_diagnose_test.exs | gjaldon/appsignal-elixir | 36d872d96d4c53152e365558bcfe96a3ba689fb9 | [
"MIT"
] | 1 | 2020-10-08T20:22:54.000Z | 2020-10-08T20:22:54.000Z | defmodule Mix.Tasks.Appsignal.DiagnoseTest do
use ExUnit.Case
import ExUnit.CaptureIO
import AppsignalTest.Utils
alias Appsignal.{Diagnose.FakeReport, FakeNif, FakeSystem}
@appsignal_version Mix.Project.config()[:version]
@agent_version Appsignal.Nif.agent_version()
defp run, do: capture_io("Y", &run_fn... | 34.305996 | 117 | 0.620775 |
919189b2f27e0f2409f4e9507944f50187382437 | 882 | ex | Elixir | lib/exchange/adapters/message_bus/order_queued.ex | realyarilabs/exchange | b8b44fc9a44a264ea1e8cc607efcaa06caca55fa | [
"Apache-2.0"
] | 2 | 2021-09-01T08:30:14.000Z | 2022-02-08T18:15:11.000Z | lib/exchange/adapters/message_bus/order_queued.ex | realyarilabs/exchange | b8b44fc9a44a264ea1e8cc607efcaa06caca55fa | [
"Apache-2.0"
] | 35 | 2020-08-12T16:04:46.000Z | 2022-03-24T04:07:16.000Z | lib/exchange/adapters/message_bus/order_queued.ex | realyarilabs/exchange | b8b44fc9a44a264ea1e8cc607efcaa06caca55fa | [
"Apache-2.0"
] | 1 | 2020-09-17T13:07:50.000Z | 2020-09-17T13:07:50.000Z | defmodule Exchange.Adapters.MessageBus.OrderQueued do
@moduledoc """
A struct representing the payload of :order_queued events.
"""
use TypedStruct
@typedoc "OrderQueued"
typedstruct do
field(:order, Exchange.Order.order(), enforce: true)
end
@doc """
Decodes the params to an OrderQueued struct... | 24.5 | 78 | 0.704082 |
91918ef329bc95fedf7f230693f074881c71f5d6 | 836 | ex | Elixir | lib/policr_mini/schema/statistic.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | lib/policr_mini/schema/statistic.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 141 | 2020-06-11T01:03:29.000Z | 2022-03-30T20:23:32.000Z | lib/policr_mini/schema/statistic.ex | WOCyo/policr-mini | 23e5e9f927d083cba5993f39e9f122e3a0ad1be2 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | defmodule PolicrMini.Schema.Statistic do
@moduledoc """
统计模型。
"""
use PolicrMini.Schema
alias PolicrMini.Instances.Chat
alias PolicrMini.EctoEnums.StatVerificationStatus
@required_fields ~w(chat_id)a
@optional_fields ~w(verifications_count languages_top begin_at end_at verification_status)a
schema... | 25.333333 | 93 | 0.744019 |
91919a2c2d241dc683b5b3b6ef3bc212906ad6f3 | 1,828 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/prisma_cpe_code.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/prisma_cpe_code.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/prisma_cpe_code.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.490566 | 95 | 0.723195 |
9191d56a1c8a450c49931e84c01a1b1da0e4433f | 1,715 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/reschedule.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/reschedule.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1/model/reschedule.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... | 34.3 | 261 | 0.725948 |
9191f8ffa28675ddea4d26da3b9eb9ca0e4ccd77 | 2,678 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1/model/ca_pool.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/ca_pool.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/private_ca/lib/google_api/private_ca/v1/model/ca_pool.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... | 45.389831 | 239 | 0.722554 |
919234679b934aadab90b998f67065b10ab8a455 | 926 | exs | Elixir | monitoring_hub/apps/market_spread_reports/mix.exs | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | monitoring_hub/apps/market_spread_reports/mix.exs | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | monitoring_hub/apps/market_spread_reports/mix.exs | awesome-archive/wallaroo | 852c19ffad0ed75a767a658a9a72c355e3c4c1c8 | [
"Apache-2.0"
] | null | null | null | defmodule MarketSpreadReports.Mixfile do
use Mix.Project
def project do
[app: :market_spread_reports,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.2",
build_embedded: M... | 22.585366 | 77 | 0.603672 |
91923833da7cd4049a7e0f508ff45d9f6db8fab1 | 1,142 | ex | Elixir | lib/ecto_mysql_extras/queries/total_table_size.ex | kianmeng/ecto_mysql_extras | 55c84833f0b41899e37072d3159748484d7c7883 | [
"Apache-2.0"
] | null | null | null | lib/ecto_mysql_extras/queries/total_table_size.ex | kianmeng/ecto_mysql_extras | 55c84833f0b41899e37072d3159748484d7c7883 | [
"Apache-2.0"
] | null | null | null | lib/ecto_mysql_extras/queries/total_table_size.ex | kianmeng/ecto_mysql_extras | 55c84833f0b41899e37072d3159748484d7c7883 | [
"Apache-2.0"
] | null | null | null | defmodule EctoMySQLExtras.TotalTableSize do
@moduledoc """
Query the total size of each table in the Ecto Repo database.
Data is retrieved from the `information_schema` database and the `tables` table.
"""
@behaviour EctoMySQLExtras
def info do
%{
title: "Size of the tables (including indexes), ... | 24.297872 | 82 | 0.591944 |
91923f1c31be3426da16f37f0d54f40871ab9dd1 | 1,906 | exs | Elixir | test/plug/parsers/json_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | test/plug/parsers/json_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | test/plug/parsers/json_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Parsers.JSONTest do
use ExUnit.Case, async: true
use Plug.Test
defmodule JSON do
def decode!("[1, 2, 3]") do
[1, 2, 3]
end
def decode!("{id: 1}") do
%{"id" => 1}
end
def decode!(_) do
raise "oops"
end
end
def json_conn(body, content_type \\ "applica... | 26.84507 | 92 | 0.631689 |
9192400e84f228f478955b0e96cc4ded897b4a98 | 136 | exs | Elixir | config/test.exs | mbernerslee/ployglot_watcher | 61497899cf4974012e2bae03a7ee58838b846ae0 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | config/test.exs | mbernerslee/ployglot_watcher | 61497899cf4974012e2bae03a7ee58838b846ae0 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 9 | 2020-12-10T20:33:59.000Z | 2020-12-11T12:06:59.000Z | config/test.exs | mbernerslee/polyglot_watcher | 61497899cf4974012e2bae03a7ee58838b846ae0 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | import Config
config :polyglot_watcher, executor: PolyglotWatcher.Executor.Test
config :polyglot_watcher, listen_for_user_input: false
| 27.2 | 65 | 0.860294 |
91924a799036b603ce42bd79b2bc9b3887b1948a | 345 | exs | Elixir | priv/repo/migrations/20170606192713_create_screen.exs | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | priv/repo/migrations/20170606192713_create_screen.exs | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | priv/repo/migrations/20170606192713_create_screen.exs | Namuraid/backend | 04a10248bfeb156eb291207931621b40585d8f7e | [
"MIT"
] | null | null | null | defmodule Namuraid.Repo.Migrations.CreateScreen do
use Ecto.Migration
def change do
create table(:screens) do
add :name, :string
add :activeScreen, :string
add :width, :integer
add :height, :integer
add :x, :integer
add :y, :integer
add :bgColor, :string
timesta... | 18.157895 | 50 | 0.62029 |
9192510b56d93780330b01cae1c0b0a23d672aa7 | 855 | ex | Elixir | templates/new/lib/app_name/application.ex | se-apc/nerves_bootstrap | 0fa54456ffeee81e72c4d6c34274477cec0c7840 | [
"Apache-2.0"
] | null | null | null | templates/new/lib/app_name/application.ex | se-apc/nerves_bootstrap | 0fa54456ffeee81e72c4d6c34274477cec0c7840 | [
"Apache-2.0"
] | null | null | null | templates/new/lib/app_name/application.ex | se-apc/nerves_bootstrap | 0fa54456ffeee81e72c4d6c34274477cec0c7840 | [
"Apache-2.0"
] | null | null | null | defmodule <%= app_module %>.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
@target Mix.Project.config()[:target]
use Application
def start(_type, _args) do
# See https://hexdocs.pm/elixir/Supervisor.html
# for other stra... | 26.71875 | 76 | 0.659649 |
919281cf877a671641f2026073d6174d240e9ebc | 437 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/pipelines.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/pipelines.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/pipelines.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.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 SwaggyJenkins.Model.Pipelines do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
]
@type t :: %__MODULE__{
}
end
... | 16.807692 | 91 | 0.688787 |
9192b1b7d7d0a007d8856793975efb1add518b4b | 7,709 | exs | Elixir | apps/evm/test/evm/operation/system_test.exs | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/evm/test/evm/operation/system_test.exs | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | apps/evm/test/evm/operation/system_test.exs | atoulme/mana | cff3fd96c23feaaeb9fe32df3c0d35ee6dc548a5 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | defmodule EVM.Operation.SystemTest do
use ExUnit.Case, async: true
doctest EVM.Operation.System
alias EVM.AccountRepo
alias EVM.{Address, ExecEnv, MachineCode, MachineState, Operation, Stack, SubState, VM}
alias EVM.Mock.MockAccountRepo
alias EVM.Mock.MockBlockHeaderInfo
describe "selfdestruct/2" do
... | 28.657993 | 108 | 0.552212 |
9192fb204eccde7576e10217d682a3c21bbbaa0e | 1,141 | exs | Elixir | clients/dataflow/config/config.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/config/config.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dataflow/config/config.exs | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.756354 |
9192fdc6487e484c17700b4ee46c63a87b52cdc8 | 10,084 | ex | Elixir | lib/absinthe/type.ex | the-vinner/absinthe | 1f121a4c49a4bc4baeb2fe90a639387fa75ff1d1 | [
"MIT"
] | null | null | null | lib/absinthe/type.ex | the-vinner/absinthe | 1f121a4c49a4bc4baeb2fe90a639387fa75ff1d1 | [
"MIT"
] | null | null | null | lib/absinthe/type.ex | the-vinner/absinthe | 1f121a4c49a4bc4baeb2fe90a639387fa75ff1d1 | [
"MIT"
] | null | null | null | defmodule Absinthe.Type do
@moduledoc false
alias __MODULE__
alias Absinthe.Schema
@type function_identifier :: {module, any}
@type function_ref :: {:ref, module, function_identifier}
# ALL TYPES
@type_modules [
Type.Scalar,
Type.Object,
Type.Interface,
Type.Union,
Type.Enum,
... | 26.467192 | 121 | 0.652122 |
91932d0692767963af4f0e5f69e748a5125468ce | 1,774 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/asps.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/admin/lib/google_api/admin/directory_v1/model/asps.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/admin/lib/google_api/admin/directory_v1/model/asps.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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.471698 | 145 | 0.706877 |
919346d0ef29fdc57db6ae686f690773b5274550 | 102 | exs | Elixir | apps/ex_wire/test/ex_wire/struct/block_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/ex_wire/test/ex_wire/struct/block_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/ex_wire/test/ex_wire/struct/block_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExWire.Struct.BlockTest do
use ExUnit.Case, async: true
doctest ExWire.Struct.Block
end
| 20.4 | 36 | 0.794118 |
9193707d94466c4b5468b2ef5009f4c707b668e1 | 863 | exs | Elixir | test/webapp_web/channels/machine_channel_test.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | test/webapp_web/channels/machine_channel_test.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | test/webapp_web/channels/machine_channel_test.exs | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule WebappWeb.MachineChannelTest do
use WebappWeb.ChannelCase
# setup do
# {:ok, _, socket} =
# socket(WebappWeb.UserSocket, "user_id", %{some: :assign})
# |> subscribe_and_join(WebappWeb.MachineChannel, "machine:lobby")
#
# {:ok, socket: socket}
# end
# test "ping replies w... | 31.962963 | 73 | 0.588644 |
919393d777aa2dd1306607d37df8341de89d9cf3 | 1,657 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_group_manager_status_version_target.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_group_manager_status_version_target.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/instance_group_manager_status_version_target.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... | 35.255319 | 294 | 0.7586 |
9193a0d85503c217f6cae7e994c71592896f9b36 | 2,357 | ex | Elixir | lib/plantar_web.ex | pantanal-labs/plantar | 8b119874fbddf50fe23d435462fb3238bb1d6e42 | [
"MIT"
] | null | null | null | lib/plantar_web.ex | pantanal-labs/plantar | 8b119874fbddf50fe23d435462fb3238bb1d6e42 | [
"MIT"
] | 23 | 2020-07-29T21:03:00.000Z | 2021-02-01T18:20:35.000Z | lib/plantar_web.ex | pantanal-labs/plantar | 8b119874fbddf50fe23d435462fb3238bb1d6e42 | [
"MIT"
] | null | null | null | defmodule PlantarWeb 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 PlantarWeb, :controller
use PlantarWeb, :view
The definitions below will be executed for every view,
controller, ... | 22.663462 | 78 | 0.683072 |
9193b9313103603e11b6c6993ed476975580ae52 | 892 | exs | Elixir | machine_learning_toolkit/apps/svm/mix.exs | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | 1 | 2019-03-28T09:08:16.000Z | 2019-03-28T09:08:16.000Z | machine_learning_toolkit/apps/svm/mix.exs | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | machine_learning_toolkit/apps/svm/mix.exs | gguimond/elixir | 415a7ed10fb44d84089ff89fb651b765b5f5e53f | [
"MIT"
] | null | null | null | defmodule Svm.Mixfile do
use Mix.Project
def project do
[app: :svm,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_perman... | 21.756098 | 77 | 0.588565 |
9193c4d576e7a1c1eb3f1f824c2e64426c46d1c1 | 778 | ex | Elixir | lib/utility/storage.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | null | null | null | lib/utility/storage.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | null | null | null | lib/utility/storage.ex | dbernheisel/elixir-regex | 250258474396269e278d23c052e714d2bf80f763 | [
"MIT"
] | null | null | null | defmodule Utility.Storage do
@type generator :: %Utility.GenDiff.Generator{}
@type html :: Path.t()
@type id :: String.t()
@type project :: String.t()
@callback get(project, id) :: {:ok, html} | {:error, term}
@callback put(project, id, html) :: :ok | {:error, term}
@callback list(project, term) :: list(... | 22.882353 | 60 | 0.641388 |
9193dbe28f6c708b2262297bf10da19f5d69128a | 15,761 | ex | Elixir | lib/exq/redis/job_queue.ex | onpointvn/exq | ee4db22624fb8a00ddc01c35a135e24de31b5a66 | [
"Apache-2.0"
] | null | null | null | lib/exq/redis/job_queue.ex | onpointvn/exq | ee4db22624fb8a00ddc01c35a135e24de31b5a66 | [
"Apache-2.0"
] | null | null | null | lib/exq/redis/job_queue.ex | onpointvn/exq | ee4db22624fb8a00ddc01c35a135e24de31b5a66 | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Redis.JobQueue do
@moduledoc """
The JobQueue module is the main abstraction of a job queue on top of Redis.
It provides functionality for:
* Storing jobs in Redis
* Fetching the next job(s) to be executed (and storing a backup of these).
* Scheduling future jobs in Redis
* Fetching... | 28.398198 | 99 | 0.659349 |
9194027d0775361971b64c4fc7c41ff739b1bd21 | 12,301 | ex | Elixir | lib/livebook_web/live/session_live/cell_component.ex | chriskdon/livebook | b1b573b5f4b49b2e90585e8f511e7b261dcae550 | [
"Apache-2.0"
] | 657 | 2021-07-15T07:38:37.000Z | 2022-03-31T16:47:48.000Z | lib/livebook_web/live/session_live/cell_component.ex | chriskdon/livebook | b1b573b5f4b49b2e90585e8f511e7b261dcae550 | [
"Apache-2.0"
] | 411 | 2021-07-15T07:41:54.000Z | 2022-03-31T21:34:22.000Z | lib/livebook_web/live/session_live/cell_component.ex | chriskdon/livebook | b1b573b5f4b49b2e90585e8f511e7b261dcae550 | [
"Apache-2.0"
] | 112 | 2021-07-16T02:13:21.000Z | 2022-03-30T01:25:08.000Z | defmodule LivebookWeb.SessionLive.CellComponent do
use LivebookWeb, :live_component
@impl true
def mount(socket) do
{:ok, assign(socket, initialized: false)}
end
@impl true
def update(assigns, socket) do
socket = assign(socket, assigns)
socket =
if not connected?(socket) or socket.assig... | 33.336043 | 127 | 0.587757 |
9194170c420ff8ba21ac3c0add688801dff019d5 | 15,549 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disk.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/disk.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/disk.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... | 101.627451 | 1,115 | 0.72294 |
919438ea2b5330b817b824fc689b4c6ce7e92e0b | 1,003 | ex | Elixir | test/support/channel_case.ex | mehmetboraezer/elephant | 2e23af1b632fbef0a1371acd3ae27bd063e1212e | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | mehmetboraezer/elephant | 2e23af1b632fbef0a1371acd3ae27bd063e1212e | [
"Apache-2.0"
] | null | null | null | test/support/channel_case.ex | mehmetboraezer/elephant | 2e23af1b632fbef0a1371acd3ae27bd063e1212e | [
"Apache-2.0"
] | null | null | null | defmodule Elephant.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be ... | 22.795455 | 70 | 0.701894 |
91944c64551bb905e434fdb83eb72b16b68ee382 | 135 | exs | Elixir | summer/test/summer_test.exs | danielspofford/otpv_2021 | 8961c34a06e65af8724f10b115cbc1d437fe586d | [
"MIT"
] | null | null | null | summer/test/summer_test.exs | danielspofford/otpv_2021 | 8961c34a06e65af8724f10b115cbc1d437fe586d | [
"MIT"
] | null | null | null | summer/test/summer_test.exs | danielspofford/otpv_2021 | 8961c34a06e65af8724f10b115cbc1d437fe586d | [
"MIT"
] | null | null | null | defmodule SummerTest do
use ExUnit.Case
doctest Summer
test "greets the world" do
assert Summer.hello() == :world
end
end
| 15 | 35 | 0.703704 |
919455f6ee79fc514ea932d1c5bece8d5c471a94 | 1,121 | ex | Elixir | nolive/hiyoko/lib/hiyoko_web/live/fizzbuzz_live.ex | rykawamu/phoenix_liveview_practice_02 | 7384b0cab78dbeefe6d57a41744f791919f1467a | [
"MIT"
] | null | null | null | nolive/hiyoko/lib/hiyoko_web/live/fizzbuzz_live.ex | rykawamu/phoenix_liveview_practice_02 | 7384b0cab78dbeefe6d57a41744f791919f1467a | [
"MIT"
] | null | null | null | nolive/hiyoko/lib/hiyoko_web/live/fizzbuzz_live.ex | rykawamu/phoenix_liveview_practice_02 | 7384b0cab78dbeefe6d57a41744f791919f1467a | [
"MIT"
] | null | null | null | defmodule HiyokoWeb.FizzbuzzLive do
use Phoenix.LiveView
import Calendar.Strftime
def mount(_params, _session, socket ) do
if connected?(socket) do
Process.send_after(self(), :tick, 1000)
Process.send_after(self(), :fizzbuzz, 3000)
end
{ :ok, assign( socket, time: local_time(), num: 0, v... | 25.477273 | 73 | 0.608385 |
919490a3ad5d3071316693aaa5032b6b27814962 | 1,813 | ex | Elixir | lib/cforum_web/controllers/api/v1/messages/accept_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | 16 | 2019-04-04T06:33:33.000Z | 2021-08-16T19:34:31.000Z | lib/cforum_web/controllers/api/v1/messages/accept_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | 294 | 2019-02-10T11:10:27.000Z | 2022-03-30T04:52:53.000Z | lib/cforum_web/controllers/api/v1/messages/accept_controller.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | 10 | 2019-02-10T10:39:24.000Z | 2021-07-06T11:46:05.000Z | defmodule CforumWeb.Api.V1.Messages.AcceptController do
use CforumWeb, :controller
alias Cforum.Forums
alias Cforum.Threads
alias Cforum.Messages
alias Cforum.ConfigManager
def accept(conn, params) do
accept_value = ConfigManager.conf(conn, "accept_value", :int)
Messages.accept_message(conn.assign... | 34.865385 | 112 | 0.738003 |
9194c2594ef7c372405719368fc8188176c80d35 | 15,281 | ex | Elixir | lib/oban/testing.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | null | null | null | lib/oban/testing.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | null | null | null | lib/oban/testing.ex | chrismo/oban | f912ccf75a1d89e02229041d578f9263d4de0232 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Testing do
@moduledoc """
This module simplifies testing workers and making assertions about enqueued jobs.
Assertions may be made on any property of a job, but you'll typically want to check by `args`,
`queue` or `worker`. If you're using namespacing through PostgreSQL schemas, also called
"p... | 27.783636 | 97 | 0.656632 |
91951a73aaea7ee64c380e52ea54ba8494767042 | 568 | exs | Elixir | cards/mix.exs | Trunkol/complete-elixir-bootcamp | cd7f6caa549dc82cb379802d82b65df53ec3de7d | [
"Apache-2.0"
] | null | null | null | cards/mix.exs | Trunkol/complete-elixir-bootcamp | cd7f6caa549dc82cb379802d82b65df53ec3de7d | [
"Apache-2.0"
] | null | null | null | cards/mix.exs | Trunkol/complete-elixir-bootcamp | cd7f6caa549dc82cb379802d82b65df53ec3de7d | [
"Apache-2.0"
] | null | null | null | defmodule Cards.MixProject do
use Mix.Project
def project do
[
app: :cards,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applica... | 19.586207 | 88 | 0.572183 |
91954233e2f769bcf3df4f7253d0c4730623a41e | 2,014 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_set_target_pools_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_set_target_pools_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/region_instance_group_managers_set_target_pools_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.618182 | 251 | 0.74429 |
91954fe57fd52f39828958c58cce00a90d63d16b | 20,810 | exs | Elixir | test/domo_func_test.exs | BasileNouvellet/Domo | 43617a8e14880853058ea6c5b20944506ade9af0 | [
"MIT"
] | null | null | null | test/domo_func_test.exs | BasileNouvellet/Domo | 43617a8e14880853058ea6c5b20944506ade9af0 | [
"MIT"
] | null | null | null | test/domo_func_test.exs | BasileNouvellet/Domo | 43617a8e14880853058ea6c5b20944506ade9af0 | [
"MIT"
] | null | null | null | defmodule DomoFuncTest do
use Domo.FileCase, async: false
use Placebo
import ExUnit.CaptureIO
alias Domo.CodeEvaluation
alias Mix.Tasks.Compile.DomoCompiler, as: DomoMixTask
setup_all do
ResolverTestHelper.disable_raise_in_test_env()
allow CodeEvaluation.in_mix_compile?(any()), meck_options: [:pa... | 40.019231 | 151 | 0.605863 |
91957c4efb5115a15fd4c39bcc8da4e05927dd12 | 490 | exs | Elixir | medium_graphql_api/test/medium_graphql_api_web/views/error_view_test.exs | jayshakes/medium_elixir | 32aa079c1e8fc0bbaaa7e3c53800329bd7cb1e10 | [
"Apache-2.0"
] | null | null | null | medium_graphql_api/test/medium_graphql_api_web/views/error_view_test.exs | jayshakes/medium_elixir | 32aa079c1e8fc0bbaaa7e3c53800329bd7cb1e10 | [
"Apache-2.0"
] | 2 | 2020-07-17T02:26:13.000Z | 2021-03-09T04:16:53.000Z | medium_graphql_api/test/medium_graphql_api_web/views/error_view_test.exs | jayshakes/medium_elixir | 32aa079c1e8fc0bbaaa7e3c53800329bd7cb1e10 | [
"Apache-2.0"
] | null | null | null | defmodule MediumGraphqlApiWeb.ErrorViewTest do
use MediumGraphqlApiWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(MediumGraphqlApiWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
e... | 30.625 | 101 | 0.706122 |
91958d3e2abbb2366752429f2d3a3e71b2990114 | 2,466 | exs | Elixir | mix.exs | software-opal/opentelemetry_honeycomb | 2393caa4025e8250549047d2975c00da84726b0b | [
"Apache-2.0"
] | null | null | null | mix.exs | software-opal/opentelemetry_honeycomb | 2393caa4025e8250549047d2975c00da84726b0b | [
"Apache-2.0"
] | null | null | null | mix.exs | software-opal/opentelemetry_honeycomb | 2393caa4025e8250549047d2975c00da84726b0b | [
"Apache-2.0"
] | null | null | null | defmodule OpenTelemetry.Honeycomb.MixProject do
use Mix.Project
@description "Integration between OpenTelemetry and Honeycomb"
def project do
[
app: :opentelemetry_honeycomb,
deps: deps(),
description: @description,
dialyzer: dialyzer(),
docs: docs(),
elixir: "~> 1.5",
... | 28.344828 | 94 | 0.576642 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.