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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6568d2496fda7b11411ab18b5e66313047eecf19 | 203 | exs | Elixir | test/controllers/page_controller_test.exs | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | 1 | 2016-05-06T00:00:10.000Z | 2016-05-06T00:00:10.000Z | test/controllers/page_controller_test.exs | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | thluiz/quartoElugRJ | 4988fe0fd05ed92a43f92f5d43ebbc2983021c30 | [
"MIT"
] | null | null | null | defmodule QuartoElugRJ.PageControllerTest do
use QuartoElugRJ.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.555556 | 60 | 0.689655 |
6568d2c596c7fa8c93e188199511208ca175d93a | 7,602 | ex | Elixir | lib/coherence/plugs/authentication/session.ex | statuspal/coherence | 93d8f0906381016858b9473f762fc1dbe656fc5c | [
"MIT"
] | null | null | null | lib/coherence/plugs/authentication/session.ex | statuspal/coherence | 93d8f0906381016858b9473f762fc1dbe656fc5c | [
"MIT"
] | null | null | null | lib/coherence/plugs/authentication/session.ex | statuspal/coherence | 93d8f0906381016858b9473f762fc1dbe656fc5c | [
"MIT"
] | null | null | null | defmodule Coherence.Authentication.Session do
@moduledoc """
Implements Session based authentication. By default, it uses an Server for
session state. Additionally, a the session can be stored in a database with
an Server based cache.
The plug can be used to force a login for unauthenticated users for routes... | 29.695313 | 98 | 0.669166 |
656910045b807997e0b4c68fb9bd042946091068 | 2,322 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/subaccount.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/subaccount.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/subaccount.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.355932 | 195 | 0.704134 |
65693fcfeed73c9590ad40065d0bd7203ac9666a | 1,220 | exs | Elixir | config/config.exs | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | config/config.exs | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"MIT"
] | null | null | null | config/config.exs | josecarlo-macariola/phx_api_test | 1cb8de2aa96b1d669c85f9b2a97948f75e257fac | [
"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 :phx_test,
ecto_repos: [PhxTest.Repo]
#... | 32.972973 | 86 | 0.754098 |
65694574d4f0018785586258b92b6a0a22e8d49c | 1,915 | ex | Elixir | lib/grizzly/connections/supervisor.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/connections/supervisor.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/connections/supervisor.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.Connections.Supervisor do
@moduledoc false
use DynamicSupervisor
alias Grizzly.{Connection, Options, ZWave}
alias Grizzly.Connections.{AsyncConnection, BinaryConnection, SyncConnection}
@spec start_link(Options.t()) :: Supervisor.on_start()
def start_link(options) do
DynamicSuperviso... | 30.887097 | 86 | 0.679896 |
656965cb4eab74076b6bcd394e88ea64d8f9de8b | 1,295 | ex | Elixir | lib/flagger/cogs/top.ex | dimspith/flagger | 5a06eb5dba5716082f17356a8ad0e9f92a48ead2 | [
"Unlicense"
] | null | null | null | lib/flagger/cogs/top.ex | dimspith/flagger | 5a06eb5dba5716082f17356a8ad0e9f92a48ead2 | [
"Unlicense"
] | null | null | null | lib/flagger/cogs/top.ex | dimspith/flagger | 5a06eb5dba5716082f17356a8ad0e9f92a48ead2 | [
"Unlicense"
] | null | null | null | defmodule Flagger.Cogs.Top do
@behaviour Nosedrum.Command
@moduledoc false
@impl true
def usage, do: ["top <year>"]
@impl true
def description, do: "Show the top CTF teams of the specified year."
@impl true
def parse_args([]), do: []
def parse_args(args) when length(args) >= 2, do: :mul_args
def ... | 24.433962 | 98 | 0.636293 |
656975ce85c685b78104b9c325cb1a1af7fea99d | 1,066 | exs | Elixir | config/sponsors.exs | zacky1972/website | b0638572bf0a7a18882c4b8ed6d561dcfa61475d | [
"Apache-2.0"
] | null | null | null | config/sponsors.exs | zacky1972/website | b0638572bf0a7a18882c4b8ed6d561dcfa61475d | [
"Apache-2.0"
] | null | null | null | config/sponsors.exs | zacky1972/website | b0638572bf0a7a18882c4b8ed6d561dcfa61475d | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :erlef, :sponsors, %{
"adroll" => "https://www.adroll.com/",
"aeternityae" => "https://aeternity.com/",
"binary_noggin" => "https://binarynoggin.com/",
"cisco" => "https://www.cisco.com/",
"crevalle" => "https://crevalle.io/",
"enki" => "https://enki-multimedia.org/",
"ericsson" => ... | 38.071429 | 51 | 0.602251 |
6569df1261dc34fdd572811a227233ef07c18991 | 457 | exs | Elixir | test/lib/mix/tasks/tenantex.migrate_test.exs | versilov/tenantex | 5026599d17cf3784fe65044f590995e4981b37a5 | [
"MIT"
] | 21 | 2016-12-01T21:40:45.000Z | 2020-07-11T09:15:13.000Z | test/lib/mix/tasks/tenantex.migrate_test.exs | versilov/tenantex | 5026599d17cf3784fe65044f590995e4981b37a5 | [
"MIT"
] | 13 | 2016-11-08T17:20:46.000Z | 2019-09-20T13:10:56.000Z | test/lib/mix/tasks/tenantex.migrate_test.exs | versilov/tenantex | 5026599d17cf3784fe65044f590995e4981b37a5 | [
"MIT"
] | 7 | 2017-05-18T20:26:11.000Z | 2019-08-01T07:44:46.000Z | defmodule Mix.Tasks.Tenantex.MigrateTest do
use ExUnit.Case
import Mix.Tasks.Tenantex.Migrate, only: [run: 2]
test "runs migration for each tenant, with the correct prefix" do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Tenantex.TestTenantRepo)
expected_args = ["-r", "Tenantex.TestTenantRepo"]
run(expec... | 32.642857 | 69 | 0.719912 |
6569fd0b4daeadfd805211fb71573d382c604259 | 4,749 | ex | Elixir | web/router.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | 1 | 2017-02-18T21:20:17.000Z | 2017-02-18T21:20:17.000Z | web/router.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | null | null | null | web/router.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | null | null | null | defmodule Panglao.Router do
use Panglao.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug RemoteIp
plug Plug.CloudFlare
end
pipeline :browser_auth do
plug Guardian.Plu... | 26.383333 | 93 | 0.667298 |
6569fddaa3e2348b2768c3bec778d8b338202158 | 2,490 | ex | Elixir | lib/google_api/big_query/v2/model/dataset_list_datasets.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"Apache-2.0"
] | null | null | null | lib/google_api/big_query/v2/model/dataset_list_datasets.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"Apache-2.0"
] | null | null | null | lib/google_api/big_query/v2/model/dataset_list_datasets.ex | albert-io/elixir-google-big-query | 26537253b83e7bad513ea4b5143b156c914b1475 | [
"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.727273 | 186 | 0.7249 |
656a413d134066b811cca088df7921fa737761df | 310 | ex | Elixir | lib/ex_double_entry/repo.ex | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | 9 | 2022-02-05T08:00:05.000Z | 2022-03-20T04:53:46.000Z | lib/ex_double_entry/repo.ex | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | 1 | 2022-02-24T06:14:07.000Z | 2022-02-24T06:14:07.000Z | lib/ex_double_entry/repo.ex | CoinbitsInc/ex_double_entry | 31adbcaa0be14fb4f4a725fbb9f3ce6ab8402636 | [
"MIT"
] | 1 | 2022-02-24T02:54:01.000Z | 2022-02-24T02:54:01.000Z | defmodule ExDoubleEntry.Repo do
@db Application.fetch_env!(:ex_double_entry, :db)
@db_adapter (case @db do
:postgres -> Ecto.Adapters.Postgres
:mysql -> Ecto.Adapters.MyXQL
end)
use Ecto.Repo,
otp_app: :ex_double_entry,
adapter: @db_adapter
end
| 23.846154 | 52 | 0.616129 |
656a56e6b42e8bc2ca601d020fa7ee868e80bf20 | 1,907 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__video_segment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__video_segment.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__video_segment.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.672727 | 172 | 0.744625 |
656a77a7d4ce534a13b44f9c38dd0fb0c90c0eae | 6,632 | ex | Elixir | lib/ecto/query/api.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/api.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/api.ex | mschae/ecto | 00f85444c4f61080617179232c0d528381de5ec3 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.API do
@moduledoc """
This module lists all functions allowed in the query API.
* Comparison operators: `==`, `!=`, `<=`, `>=`, `<`, `>`
* Boolean operators: `and`, `or`, `not`
* Inclusion operator: `in/2`
* Search functions: `like/2` and `ilike/2`
* Null check functions: `... | 27.404959 | 83 | 0.643094 |
656a7a20bac03bb0fbb1f5042a963e06fbcc8381 | 2,454 | ex | Elixir | lib/freddy/core/bind.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 10 | 2017-06-28T11:39:39.000Z | 2021-11-19T23:23:16.000Z | lib/freddy/core/bind.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 16 | 2017-01-07T15:34:36.000Z | 2021-05-05T11:07:31.000Z | lib/freddy/core/bind.ex | ajkeys/ex_freddy | c59d0bcfad4b89de8a9b09c7124d0499824a0710 | [
"MIT"
] | 4 | 2018-10-08T19:54:46.000Z | 2021-05-05T10:49:10.000Z | defmodule Freddy.Core.Bind do
@moduledoc """
Queue-Exchange or Exchange-Exchange binding configiration
## Options
* `:routing_key` - Specifies the routing key for the binding. The routing
key is used for routing messages depending on the exchange configuration.
Not all exchanges use a routing ke... | 30.675 | 101 | 0.654849 |
656a8d6c86ff8acbc90a7be13c45b108f84581b0 | 969 | ex | Elixir | apps/ehealth/lib/ehealth/web/controllers/user_controller.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/ehealth/lib/ehealth/web/controllers/user_controller.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/ehealth/lib/ehealth/web/controllers/user_controller.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule EHealth.Web.UserController do
@moduledoc false
use EHealth.Web, :controller
alias Core.Users.API
action_fallback(EHealth.Web.FallbackController)
def create_credentials_recovery_request(conn, %{"credentials_recovery_request" => attrs}) do
opts = build_upstream_opts(conn)
with {:ok, credent... | 31.258065 | 112 | 0.719298 |
656a8e1706f73fc74b450e4664c36774e984a74c | 82 | exs | Elixir | .formatter.exs | devstopfix/meerkat-gateway | fcf13607026879847406bf78a4d2d4bbbc73298e | [
"MIT"
] | 1 | 2021-02-06T15:06:41.000Z | 2021-02-06T15:06:41.000Z | .formatter.exs | devstopfix/meerkat-gateway | fcf13607026879847406bf78a4d2d4bbbc73298e | [
"MIT"
] | 2 | 2016-12-17T15:18:04.000Z | 2017-01-09T19:10:58.000Z | .formatter.exs | devstopfix/plug-ratelimit | fcf13607026879847406bf78a4d2d4bbbc73298e | [
"MIT"
] | null | null | null | [
inputs: ["{mix,.formatter}.exs", "{config,example,lib,test}/**/*.{ex,exs}"]
]
| 20.5 | 77 | 0.560976 |
656a9bdc6195edc83a69e62c1e4c6d7654a8dc66 | 2,811 | ex | Elixir | lib/mldht/server/storage.ex | cit/MLDHT | 3ada20ab01cf1eb312bf673f7ddd244f45319744 | [
"MIT"
] | 49 | 2015-11-24T12:12:48.000Z | 2017-06-14T05:18:51.000Z | lib/mldht/server/storage.ex | faried/MlDHT | 3ada20ab01cf1eb312bf673f7ddd244f45319744 | [
"MIT"
] | 4 | 2019-07-03T15:18:51.000Z | 2019-12-01T07:25:14.000Z | lib/mldht/server/storage.ex | faried/MlDHT | 3ada20ab01cf1eb312bf673f7ddd244f45319744 | [
"MIT"
] | 7 | 2017-07-14T03:19:00.000Z | 2022-01-25T23:02:01.000Z | defmodule MlDHT.Server.Storage do
@moduledoc false
use GenServer
require Logger
#############
# Constants #
#############
## One minute in milliseconds
@min_in_ms 60 * 1000
## 5 Minutes
@review_time 5 * @min_in_ms
## 30 Minutes
@node_expired 30 * @min_in_ms
def start_link(opts) do
G... | 22.488 | 78 | 0.604411 |
656a9cc31a05edbd0ee5467e8b84b7613c49d03d | 2,035 | ex | Elixir | clients/games/lib/google_api/games/v1/model/event_period_update.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/event_period_update.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/games/lib/google_api/games/v1/model/event_period_update.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... | 38.396226 | 160 | 0.729238 |
656ac146dd7818cf6c2e04de320979535817e8cc | 5,032 | ex | Elixir | lib/mix/lib/mix/compilers/erlang.ex | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/mix/lib/mix/compilers/erlang.ex | alco/elixir | 4407170349aa12c58664cab2122374167e827f5e | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/erlang.ex | alco/elixir | 4407170349aa12c58664cab2122374167e827f5e | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Erlang do
@moduledoc false
@doc """
Compiles the files in `src_dirs` with given extensions into
the destination, automatically invoking the callback for each
stale input and output pair (or for all if `force` is `true`) and
removing files that no longer have a source, while keeping ... | 29.775148 | 101 | 0.643482 |
656ae313c5840fa5195d0529578ef6e3432484ca | 161 | ex | Elixir | lib/phoenix_example_app_web/controllers/page_controller.ex | dreamingechoes/phoenix-example-app | 9b3e9cd0c7acbe2ffee627c58b0150fe0e811780 | [
"MIT"
] | 2 | 2018-06-03T19:33:09.000Z | 2020-01-14T03:19:05.000Z | lib/phoenix_example_app_web/controllers/page_controller.ex | dreamingechoes/phoenix-example-app | 9b3e9cd0c7acbe2ffee627c58b0150fe0e811780 | [
"MIT"
] | 16 | 2021-03-09T19:39:31.000Z | 2022-03-15T15:20:24.000Z | integration_test/phoenix_example_app/lib/phoenix_example_app_web/controllers/page_controller.ex | elitau/tix | 2aa5fe4d91e7962ebcdc9b668aacf65e09ff9bb8 | [
"MIT"
] | 1 | 2018-06-22T00:00:39.000Z | 2018-06-22T00:00:39.000Z | defmodule PhoenixExampleAppWeb.PageController do
use PhoenixExampleAppWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 20.125 | 48 | 0.770186 |
656af6b51d508e6d0b64a063a925155b0e3faeb9 | 63 | ex | Elixir | lib/delivery_web/views/page_view.ex | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | null | null | null | lib/delivery_web/views/page_view.ex | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | 4 | 2021-03-01T20:51:23.000Z | 2021-09-20T21:37:12.000Z | lib/delivery_web/views/page_view.ex | Simon-Initiative/proving-ground | ab6ba03051e55edbaa09535f11d9192776c8d901 | [
"MIT"
] | null | null | null | defmodule DeliveryWeb.PageView do
use DeliveryWeb, :view
end
| 15.75 | 33 | 0.809524 |
656b108fd35dd428448a51f784e534a9d5139e22 | 1,789 | ex | Elixir | lib/accent/translations/translations_renderer.ex | raphpap/accent | 1669582c72f1e0f30e78f02ad2be3e674929a4cb | [
"BSD-3-Clause"
] | null | null | null | lib/accent/translations/translations_renderer.ex | raphpap/accent | 1669582c72f1e0f30e78f02ad2be3e674929a4cb | [
"BSD-3-Clause"
] | null | null | null | lib/accent/translations/translations_renderer.ex | raphpap/accent | 1669582c72f1e0f30e78f02ad2be3e674929a4cb | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.TranslationsRenderer do
alias Langue
def render(args) do
value_map = Map.get(args, :value_map, & &1.corrected_text)
serializer = fetch_serializer(args[:document].format)
master_translations = Enum.group_by(args[:master_translations], & &1.key)
entries = fetch_entries(args[:translat... | 30.322034 | 80 | 0.697037 |
656b10e315bc1c1e3bf1933e3739e8e1523a30c3 | 1,635 | ex | Elixir | clients/firebase/lib/google_api/firebase/v1beta1/model/list_sha_certificates_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firebase/lib/google_api/firebase/v1beta1/model/list_sha_certificates_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firebase/lib/google_api/firebase/v1beta1/model/list_sha_certificates_response.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... | 34.787234 | 176 | 0.75841 |
656b138848e80ee6aad16d5be07c0ae0de93fc76 | 3,483 | ex | Elixir | lib/news/content/commands.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 3 | 2015-08-12T20:45:57.000Z | 2015-10-26T09:20:10.000Z | lib/news/content/commands.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 15 | 2015-08-12T16:20:42.000Z | 2015-10-12T16:12:15.000Z | lib/news/content/commands.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 1 | 2015-08-20T17:43:10.000Z | 2015-08-20T17:43:10.000Z | defmodule News.Content.Commands do
@doc """
# Content Commands!
Commands are added (one per line) on the begining of a comment. They start by a double slash sign `//`.
## Moderation commands:
* `//title` - change title
* `//untag` - remove tag
* `//kill` - kill comment
* `//pin, //unpin` - pinning
... | 34.83 | 107 | 0.654895 |
656b8123876113e882c1b5c13ad34954e2580034 | 120 | exs | Elixir | .formatter.exs | tsutsu/maps_as_functions | 5ba1ae75e26b5af3e383345493aa639d7fa0ec4f | [
"MIT"
] | 2 | 2020-01-12T04:16:38.000Z | 2020-06-06T20:22:32.000Z | .formatter.exs | tsutsu/static_map | 5ba1ae75e26b5af3e383345493aa639d7fa0ec4f | [
"MIT"
] | null | null | null | .formatter.exs | tsutsu/static_map | 5ba1ae75e26b5af3e383345493aa639d7fa0ec4f | [
"MIT"
] | null | null | null | # Used by "mix format"
[
inputs: ["{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: [
defmap: 2
]
]
| 13.333333 | 46 | 0.558333 |
656b8f804e0dd8ec74d76bbc1247d2f59ac80ee0 | 1,232 | exs | Elixir | mix.exs | antedeguemon/decorator | 7adc22fe6b8a7865ec461d850e3ac735eda33c8d | [
"MIT"
] | 321 | 2016-10-20T18:43:43.000Z | 2022-01-08T21:39:56.000Z | mix.exs | antedeguemon/decorator | 7adc22fe6b8a7865ec461d850e3ac735eda33c8d | [
"MIT"
] | 43 | 2016-10-20T22:01:51.000Z | 2021-09-04T19:39:20.000Z | mix.exs | antedeguemon/decorator | 7adc22fe6b8a7865ec461d850e3ac735eda33c8d | [
"MIT"
] | 25 | 2016-10-20T21:52:48.000Z | 2022-03-30T11:28:31.000Z | defmodule Decorator.Mixfile do
use Mix.Project
@source_url "https://github.com/arjan/decorator"
@version File.read!("VERSION")
def project do
[
app: :decorator,
version: @version,
elixir: "~> 1.5",
elixirc_options: elixirrc_options(Mix.env()),
build_embedded: Mix.env() == :pr... | 20.196721 | 62 | 0.581169 |
656bc7ddb3a174a2874a321cda4502073899db93 | 208 | exs | Elixir | apps/ewallet_db/priv/repo/migrations/20171027151104_add_account_id_to_balance_table.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 2 | 2019-07-13T05:49:03.000Z | 2021-08-19T23:58:23.000Z | apps/ewallet_db/priv/repo/migrations/20171027151104_add_account_id_to_balance_table.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/priv/repo/migrations/20171027151104_add_account_id_to_balance_table.exs | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | 3 | 2018-05-08T17:15:42.000Z | 2021-11-10T04:08:33.000Z | defmodule EWalletDB.Repo.Migrations.AddAccountIdToBalanceTable do
use Ecto.Migration
def change do
alter table(:balance) do
add :account_id, references(:account, type: :uuid)
end
end
end
| 20.8 | 65 | 0.735577 |
656bd40fda4aa5f5f26afb0a740c4ab2089087e9 | 1,296 | exs | Elixir | test/transmog_test.exs | zpeters/transmog | 026aafbb69a838e91c22e3a8582ab682567c72b8 | [
"MIT"
] | null | null | null | test/transmog_test.exs | zpeters/transmog | 026aafbb69a838e91c22e3a8582ab682567c72b8 | [
"MIT"
] | null | null | null | test/transmog_test.exs | zpeters/transmog | 026aafbb69a838e91c22e3a8582ab682567c72b8 | [
"MIT"
] | null | null | null | defmodule TransmogTest do
@moduledoc false
use ExUnit.Case
describe "format/1" do
test "given a plain map, then it is formatted completely" do
values = %{a: "b"}
pairs = [{":a", "a"}]
expected = {:ok, %{"a" => "b"}}
assert Transmog.format(values, pairs) == expected
end
test... | 30.857143 | 80 | 0.507716 |
656be78fe1973733433ce4406076dfed62b97735 | 84 | ex | Elixir | web/views/index_view.ex | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | web/views/index_view.ex | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | web/views/index_view.ex | WillsonSmith/similarfilms_phoenix | 2466a3796ace5e0a09d345da3c76d90cf7747c13 | [
"MIT"
] | null | null | null | defmodule SimilarfilmsPhoenix.IndexView do
use SimilarfilmsPhoenix.Web, :view
end
| 21 | 42 | 0.845238 |
656c12c15fb085590e1cd533a2d5fc7d35907a69 | 665 | ex | Elixir | lib/central/account/schemas/code.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central/account/schemas/code.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | lib/central/account/schemas/code.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule Central.Account.Code do
use CentralWeb, :schema
schema "account_codes" do
field :value, :string
# E.g. password reset
field :purpose, :string
field :expires, :utc_datetime
belongs_to :user, Central.Account.User
timestamps()
end
def changeset(code, attrs \\ %{}) do
attrs... | 20.151515 | 64 | 0.61203 |
656c2247386ffe273c87ab6f6eec123e965a33f8 | 28,394 | ex | Elixir | lib/ecto/adapters/sql.ex | aptinio/ecto_sql | f13a0e8383428154a61a7a93d43dcb4b6f6a6fad | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql.ex | aptinio/ecto_sql | f13a0e8383428154a61a7a93d43dcb4b6f6a6fad | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql.ex | aptinio/ecto_sql | f13a0e8383428154a61a7a93d43dcb4b6f6a6fad | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.SQL do
@moduledoc """
This application provides functionality for working with
SQL databases in `Ecto`.
## Built-in adapters
By default, we support the following adapters:
* `Ecto.Adapters.Postgres` for Postgres
* `Ecto.Adapters.MyXQL` for MySQL
## Migrations
Ecto supp... | 30.238552 | 139 | 0.633197 |
656c2f535c622275ca88c735fc87518386114f41 | 4,551 | exs | Elixir | examples/tokenizer/humanized.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | examples/tokenizer/humanized.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | examples/tokenizer/humanized.exs | chungwong/timex | bcd2504119f5c11ada7455d19726b5a49254dabf | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defmodule MyApp.DateTimeTokenizers.Humanized do
@moduledoc """
See https://hexdocs.pm/timex/custom-parsers.html for more context.
This custom tokenizer accepts format strings containing the following tokens:
- `{day}` - The phonetic name of the ordinal day of the month, i.e. third
- `{month}` - The full... | 37.303279 | 106 | 0.62294 |
656c593a7b023f9782f0c5760f44ebeeb5334f77 | 1,461 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/pubsub_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/pubsub_destination.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/pubsub_destination.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... | 30.4375 | 99 | 0.733744 |
656c6f8bf89824c0176b1b615b90eccdd02f452f | 539 | exs | Elixir | config/test.exs | shanethacker/reference_graphql | 189b86752cd859bbc0a51cd485940c0f5a29ddd6 | [
"MIT"
] | null | null | null | config/test.exs | shanethacker/reference_graphql | 189b86752cd859bbc0a51cd485940c0f5a29ddd6 | [
"MIT"
] | null | null | null | config/test.exs | shanethacker/reference_graphql | 189b86752cd859bbc0a51cd485940c0f5a29ddd6 | [
"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 :reference_graphql, ReferenceGraphql.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :ref... | 26.95 | 56 | 0.756957 |
656cc2f09a0094317a2bbe30197cbc1c45490e87 | 445 | ex | Elixir | apps/api/lib/api/router/foo.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/api/lib/api/router/foo.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | apps/api/lib/api/router/foo.ex | norbu09/e_no_time | 16a0db136dd91cdcf38d4aab5f11b0684dae289d | [
"BSD-2-Clause"
] | null | null | null | defmodule Api.Router.Foo do
use Maru.Router
# curl http://localhost:4001/foo/bar/foobar
# {"foobar":{"bar":"foo"}}
resource "/foo" do
get do
json(conn, %{ coins: ["USD", "BTC"] })
end
namespace :bar do
route_param :baz, type: String do
desc "Returns the details of baz"
g... | 21.190476 | 52 | 0.530337 |
656cd721a2ff255140b4d5c076135276f2ff9bce | 1,364 | ex | Elixir | lib/numbers/operators.ex | Qqwy/elixir_number | 5847f4ce765658f4959cc576bec0bf51acc8361c | [
"MIT"
] | 23 | 2016-12-13T21:02:32.000Z | 2019-04-23T21:21:34.000Z | lib/numbers/operators.ex | Qqwy/elixir-number | 5847f4ce765658f4959cc576bec0bf51acc8361c | [
"MIT"
] | 29 | 2019-08-30T05:27:38.000Z | 2022-03-23T20:33:55.000Z | lib/numbers/operators.ex | Qqwy/elixir-number | 5847f4ce765658f4959cc576bec0bf51acc8361c | [
"MIT"
] | 2 | 2020-04-09T00:54:15.000Z | 2021-02-18T20:12:55.000Z | defmodule Numbers.Operators do
# Do not import this module directly.
# Instead, use `use Numbers, override_operators: true`
# which will import this module's functions properly.
@moduledoc false
# The following macro-based implementation
# ensures that within guard contexts,
# we'll continue to use the b... | 26.745098 | 65 | 0.601906 |
656d1b2d2bec1ebfbcd10e35c66743fb553c1151 | 977 | ex | Elixir | lib/gravitas/project/base_facts_supervisor.ex | LivewareProblems/Gravitas | b0378395c0c5229507c8abf84e6ea9fb8475299f | [
"Apache-2.0"
] | null | null | null | lib/gravitas/project/base_facts_supervisor.ex | LivewareProblems/Gravitas | b0378395c0c5229507c8abf84e6ea9fb8475299f | [
"Apache-2.0"
] | 8 | 2018-08-19T13:10:37.000Z | 2019-07-10T17:24:06.000Z | lib/gravitas/project/base_facts_supervisor.ex | LivewareProblems/gravitas | b0378395c0c5229507c8abf84e6ea9fb8475299f | [
"Apache-2.0"
] | null | null | null | defmodule Gravitas.Project.BaseFactsSupervisor do
use DynamicSupervisor
@moduledoc """
Supervisor to launch BaseFacts for a project
"""
@spec start_link(any()) :: :ignore | {:error, any()} | {:ok, pid()}
def start_link(arg) do
DynamicSupervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@sp... | 32.566667 | 96 | 0.717503 |
656d75ee7ce3949668910595baa5ee88f1109bea | 1,158 | ex | Elixir | web/views/error_view.ex | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | web/views/error_view.ex | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | web/views/error_view.ex | mijkenator/elapi | 55a85edf6fcadd89e390a682404c79bab93282b0 | [
"Artistic-2.0"
] | null | null | null | defmodule Elapi.ErrorView do
require Logger
use Elapi.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
def render("404.json", _assigns) do
%{errors: %{detail: "not found"}}
end
def render("400.json",... | 25.733333 | 98 | 0.645078 |
656d7fdd948a8061c50b2a0ef1093ff879fdf6bf | 1,308 | ex | Elixir | lib/movement/builders/rollback.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/movement/builders/rollback.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/movement/builders/rollback.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Movement.Builders.Rollback do
@behaviour Movement.Builder
alias Accent.PreviousTranslation
alias Movement.Operation
@action "rollback"
# Batch operation
def build(context = %Movement.Context{assigns: %{operation: operation = %{batch: true}}, operations: operations}) do
new_operation = %Oper... | 31.902439 | 118 | 0.724771 |
656daa084ad59b26584ab458a4d3c19b53d7c7ba | 12,169 | ex | Elixir | lib/scenic/view_port/tables.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/view_port/tables.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/view_port/tables.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 04/13/18.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
# The Tables processes is a critical piece of Scenic. It caches the graphs
# that have been pushed by the various scenes.
defmodule Scenic.ViewPort.Tables do
use GenServer
alias Scenic.Utilities
# import IEx
... | 32.712366 | 85 | 0.537349 |
656dc45b52d7395ef1801c2ad539f6d3b1873a25 | 106 | exs | Elixir | test/flow_viz_test.exs | lukegalea/flow_viz | d80353cd91aaa8168fd77c04b710744fd9368ba7 | [
"MIT"
] | 6 | 2018-01-23T22:02:58.000Z | 2018-09-28T16:16:43.000Z | test/flow_viz_test.exs | lukegalea/flow_viz | d80353cd91aaa8168fd77c04b710744fd9368ba7 | [
"MIT"
] | null | null | null | test/flow_viz_test.exs | lukegalea/flow_viz | d80353cd91aaa8168fd77c04b710744fd9368ba7 | [
"MIT"
] | null | null | null | defmodule FlowVizTest do
use ExUnit.Case
doctest FlowViz
test "to do" do
assert true
end
end
| 11.777778 | 24 | 0.707547 |
656e29c617350506245909587d7407e76117b54b | 1,891 | exs | Elixir | clients/firestore/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/mix.exs | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firestore/mix.exs | 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... | 28.223881 | 161 | 0.661026 |
656e37e77048846ad8a0d22cabc367d033f8bb3c | 2,755 | ex | Elixir | lib/cross_validator_web/assortment/assortment_types.ex | kurtlenfesty/cross_validator_graphiql_demo | f609c19f71025cbd82f1ebebd952fed4e983d10d | [
"MIT"
] | null | null | null | lib/cross_validator_web/assortment/assortment_types.ex | kurtlenfesty/cross_validator_graphiql_demo | f609c19f71025cbd82f1ebebd952fed4e983d10d | [
"MIT"
] | null | null | null | lib/cross_validator_web/assortment/assortment_types.ex | kurtlenfesty/cross_validator_graphiql_demo | f609c19f71025cbd82f1ebebd952fed4e983d10d | [
"MIT"
] | null | null | null | defmodule CrossValidatorWeb.Schema.Types.Assortment do
@moduledoc """
GraphQL schema for Assortment.
"""
use Absinthe.Schema.Notation
alias CrossValidatorWeb.AssortmentResolver
@desc "Assortment queryable fields (without the id)"
object :assortment_queryable_fields do
field(:uid, :uuid4)
fiel... | 28.402062 | 61 | 0.716515 |
656e3d9c424b2c6849500dfa465e261d116bc055 | 1,654 | ex | Elixir | lib/sozui_web/endpoint.ex | evuez/sozui | e478da720ca72c96be4d53bfb03fe6917670b81d | [
"MIT"
] | null | null | null | lib/sozui_web/endpoint.ex | evuez/sozui | e478da720ca72c96be4d53bfb03fe6917670b81d | [
"MIT"
] | null | null | null | lib/sozui_web/endpoint.ex | evuez/sozui | e478da720ca72c96be4d53bfb03fe6917670b81d | [
"MIT"
] | null | null | null | defmodule SozUIWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :sozui
socket "/socket", SozUIWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
... | 28.517241 | 95 | 0.705562 |
656e473c152d1a7d934d26a983dd5fc3ebe9de90 | 1,703 | ex | Elixir | test/support/job_test_helper.ex | polyfox/task_bunny | 24582ff2926431f41a40ff656fbaaeb91c7c6c5f | [
"MIT"
] | 1 | 2019-07-28T17:24:01.000Z | 2019-07-28T17:24:01.000Z | test/support/job_test_helper.ex | polyfox/task_bunny | 24582ff2926431f41a40ff656fbaaeb91c7c6c5f | [
"MIT"
] | null | null | null | test/support/job_test_helper.ex | polyfox/task_bunny | 24582ff2926431f41a40ff656fbaaeb91c7c6c5f | [
"MIT"
] | 2 | 2019-07-28T17:24:04.000Z | 2021-12-06T15:16:26.000Z | defmodule TaskBunny.JobTestHelper do
defmodule Tracer do
def performed(_), do: nil
end
defmodule RetryInterval do
def interval, do: 60_000
end
defmodule TestJob do
use TaskBunny.Job
def perform(payload) do
Tracer.performed(payload)
if payload["sleep"], do: :timer.sleep(payload[... | 19.134831 | 71 | 0.563124 |
656e6e666fc1a261d0bd6d728c48334c397d814f | 612 | ex | Elixir | lib/nsq/test/auth_server.ex | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | null | null | null | lib/nsq/test/auth_server.ex | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | null | null | null | lib/nsq/test/auth_server.ex | blueshift-labs/elixir_nsq | 35711fc5f4091f7f1983ffde7ba4f73259c75848 | [
"MIT"
] | null | null | null | defmodule NSQ.Test.AuthServer do
@json Application.get_env(:elixir_nsq, :json_module, NSQ.Client.Jason)
# This sets up an auth server for NSQD (run from Procfile) so that we can
# test auth properly.
def start(port) do
[:ranch, :cowlib, :cowboy, :http_server] |> Enum.each(&Application.start/1)
HttpServ... | 30.6 | 79 | 0.614379 |
656e7709dad0306514ad40b520ae1b1871c812b2 | 17,500 | ex | Elixir | lib/commanded/process_managers/process_manager.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | null | null | null | lib/commanded/process_managers/process_manager.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | 1 | 2019-03-11T09:54:35.000Z | 2019-03-11T09:54:35.000Z | lib/commanded/process_managers/process_manager.ex | Cantido/commanded | e8058c4381e16547e6960eaf9f38619c6a43b18f | [
"MIT"
] | null | null | null | defmodule Commanded.ProcessManagers.ProcessManager do
@moduledoc """
Macro used to define a process manager.
A process manager is responsible for coordinating one or more aggregates.
It handles events and dispatches commands in response. Process managers have
state that can be used to track which aggregates ... | 33.980583 | 95 | 0.69 |
656ea7299911459dfbeaa3c5aa1982880751613a | 810 | ex | Elixir | lib/graphql/types/document_format.ex | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | lib/graphql/types/document_format.ex | paulelliott/accent | fabd0d2768088adf780317c6e44fcabcccadba11 | [
"BSD-3-Clause"
] | 6 | 2021-03-11T07:37:48.000Z | 2022-02-13T21:10:33.000Z | lib/graphql/types/document_format.ex | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T21:47:35.000Z | 2020-05-29T21:47:35.000Z | defmodule Accent.GraphQL.Types.DocumentFormat do
use Absinthe.Schema.Notation
enum :document_format do
value(:json, as: "json")
value(:simple_json, as: "simple_json")
value(:strings, as: "strings")
value(:gettext, as: "gettext")
value(:rails_yml, as: "rails_yml")
value(:es6_module, as: "es6... | 31.153846 | 58 | 0.68642 |
656ea9f94784eb29a0fb90ed32ad4d3e799a6449 | 3,615 | ex | Elixir | core/handler/body_parser.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/handler/body_parser.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/handler/body_parser.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
alias Croma.Result, as: R
defmodule AntikytheraCore.Handler.BodyParser do
alias Antikythera.Http.{RawBody, Body}
require AntikytheraCore.Logger, as: L
@typep ok_tuple :: {:ok, :cowboy_req.req, RawBody.t, Body.t}
@typep invalid_tupl... | 39.725275 | 124 | 0.608022 |
656eb6c12a8e22b6f33c050879d10430b335af9a | 1,715 | ex | Elixir | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/source_context.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/source_context.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_debugger/lib/google_api/cloud_debugger/v2/model/source_context.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... | 38.111111 | 147 | 0.753936 |
656ecc36c85ef0fccdf665c65ebbc710cbdc442a | 754 | exs | Elixir | test/console/console_test.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | test/console/console_test.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | test/console/console_test.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule ConsoleTest do
use ExUnit.Case
describe "#put_path/3" do
test "it can deep insert a value into a nested map" do
map = %{
"cluster-operator" => %{
"cluster" => %{
"resources" => %{"requests" => %{"cpu" => "250m"}}
},
"monitoring" => %{"namespace"... | 23.5625 | 72 | 0.449602 |
656ed4dd49b8ac0cbb5c8d6589b97555d20a8f03 | 1,464 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/delete_banding_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/delete_banding_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/delete_banding_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... | 31.148936 | 101 | 0.739754 |
656f0233cdfde37254b6d2c199f860b07b2ed7a4 | 1,356 | ex | Elixir | lib/exonerate/type/integer.ex | ityonemo/Exonerate | 42b888c156c9179d222b78609d34c07f0b887eaf | [
"MIT"
] | 14 | 2021-01-14T20:14:30.000Z | 2022-01-28T00:58:07.000Z | lib/exonerate/type/integer.ex | ityonemo/Exonerate | 42b888c156c9179d222b78609d34c07f0b887eaf | [
"MIT"
] | 13 | 2019-09-11T17:48:48.000Z | 2021-11-22T23:02:44.000Z | lib/exonerate/type/integer.ex | ityonemo/Exonerate | 42b888c156c9179d222b78609d34c07f0b887eaf | [
"MIT"
] | 1 | 2021-09-12T13:08:54.000Z | 2021-09-12T13:08:54.000Z | defmodule Exonerate.Type.Integer do
@moduledoc false
# boilerplate!!
@behaviour Exonerate.Type
@derive Exonerate.Compiler
@derive {Inspect, except: [:context]}
alias Exonerate.Filter
alias Exonerate.Tools
alias Exonerate.Validator
import Validator, only: [fun: 2]
defstruct [:context, filters: []... | 28.25 | 94 | 0.69469 |
656f1c76bae0e4fa2a22b8d8dcd9d712647b9c8c | 1,329 | ex | Elixir | lib/consul/catalog.ex | am-kantox/consul-ex | b1c5e1f44f1afe4fd6bd55010832d17b8284b547 | [
"MIT"
] | null | null | null | lib/consul/catalog.ex | am-kantox/consul-ex | b1c5e1f44f1afe4fd6bd55010832d17b8284b547 | [
"MIT"
] | null | null | null | lib/consul/catalog.ex | am-kantox/consul-ex | b1c5e1f44f1afe4fd6bd55010832d17b8284b547 | [
"MIT"
] | null | null | null | #
# The MIT License (MIT)
#
# Copyright (c) 2014-2015 Undead Labs, LLC
#
defmodule Consul.Catalog do
alias Consul.Endpoint
use Consul.Endpoint, handler: Consul.Handler.Base
@catalog "catalog"
@datacenters "datacenters"
@deregister "deregister"
@nodes "nodes"
@node "node"
@services "services"
@servic... | 24.163636 | 73 | 0.629797 |
656f29f07f4ddd46f655ea2a33c0204f2ee19e69 | 264 | ex | Elixir | lib/ex_config.ex | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | lib/ex_config.ex | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | lib/ex_config.ex | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | defmodule ExConfig do
@spec __using__(Keyword.t) :: Macro.t
defmacro __using__(opts) do
unless Keyword.get(opts, :otp_app),
do: raise ArgumentError, "'otp_app' option is required"
quote do
use ExConfig.Mod, unquote(opts)
end
end
end
| 22 | 61 | 0.681818 |
656f386d09a53fbd5e0ee281f21fa9203937b52b | 198 | ex | Elixir | lib/spooky.ex | ahives/spooky | e18a6c7ca75adffbac7d46d11ffb26b58eab907e | [
"Apache-2.0"
] | null | null | null | lib/spooky.ex | ahives/spooky | e18a6c7ca75adffbac7d46d11ffb26b58eab907e | [
"Apache-2.0"
] | null | null | null | lib/spooky.ex | ahives/spooky | e18a6c7ca75adffbac7d46d11ffb26b58eab907e | [
"Apache-2.0"
] | null | null | null | defmodule Spooky do
@moduledoc """
Documentation for `Spooky`.
"""
@doc """
Hello world.
## Examples
iex> Spooky.hello()
:world
"""
def hello do
:world
end
end
| 10.421053 | 29 | 0.550505 |
656f3de181f2da472a76e0443b62e96403a4d606 | 93,598 | ex | Elixir | lib/elixir/lib/enum.ex | smaximov/elixir | 5353f971ae3bd6b29974f0b3f34297f7bb2339c4 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | smaximov/elixir | 5353f971ae3bd6b29974f0b3f34297f7bb2339c4 | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/elixir/lib/enum.ex | lexmag/elixir | 4cf1e19d13f2cd6c95edafb3825e98bc90ceed67 | [
"Apache-2.0"
] | null | null | null | defprotocol Enumerable do
@moduledoc """
Enumerable protocol used by `Enum` and `Stream` modules.
When you invoke a function in the `Enum` module, the first argument
is usually a collection that must implement this protocol.
For example, the expression:
Enum.map([1, 2, 3], &(&1 * 2))
invokes `Enume... | 27.724526 | 105 | 0.61653 |
656f3fc1030177b68248fd0d1adc4bb2c7605ddb | 5,513 | ex | Elixir | lib/x509/csr.ex | fhunleth/x509 | 24c5fcc42207cc74e1e00a322f4809caf058eb6b | [
"BSD-3-Clause"
] | null | null | null | lib/x509/csr.ex | fhunleth/x509 | 24c5fcc42207cc74e1e00a322f4809caf058eb6b | [
"BSD-3-Clause"
] | null | null | null | lib/x509/csr.ex | fhunleth/x509 | 24c5fcc42207cc74e1e00a322f4809caf058eb6b | [
"BSD-3-Clause"
] | null | null | null | defmodule X509.CSR do
@moduledoc """
Implements PKCS#10 Certificate Signing Requests (CSRs), formally known by
their ASN.1 type CertificationRequest.
"""
import X509.ASN1
alias X509.RDNSequence
@typedoc """
`:CertificationRequest` record , as used in Erlang's `:public_key` module
"""
@opaque t ::... | 29.169312 | 94 | 0.664067 |
656f44a14abf9a7fce79814dfdd02a83128d049d | 46 | exs | Elixir | test/test_helper.exs | adamvaughan/memcachir | dc7bede81384d936c1209c3b8e7729b4f78c1e22 | [
"MIT"
] | 6 | 2017-08-08T10:53:50.000Z | 2021-06-03T13:31:16.000Z | test/test_helper.exs | adamvaughan/memcachir | dc7bede81384d936c1209c3b8e7729b4f78c1e22 | [
"MIT"
] | 13 | 2017-08-03T19:44:49.000Z | 2021-08-23T15:41:35.000Z | test/test_helper.exs | adamvaughan/memcachir | dc7bede81384d936c1209c3b8e7729b4f78c1e22 | [
"MIT"
] | 10 | 2017-08-03T19:26:14.000Z | 2021-09-30T15:58:27.000Z | ExUnit.start()
MockSocketModule.start_link()
| 11.5 | 29 | 0.804348 |
656f6c6b77579e42f1dadadaa0178dea27471abe | 2,414 | ex | Elixir | apps/app_udpcan/lib/app_udpcan.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 17 | 2020-06-20T11:29:43.000Z | 2022-03-21T05:53:06.000Z | apps/app_udpcan/lib/app_udpcan.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 2 | 2020-07-09T10:22:50.000Z | 2020-09-01T14:46:40.000Z | apps/app_udpcan/lib/app_udpcan.ex | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 3 | 2020-07-17T20:04:36.000Z | 2022-01-24T14:19:46.000Z | # Copyright 2019 Volvo Cars
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 37.138462 | 123 | 0.736537 |
656f6ea9c103bc33bc365673c290139fd21da452 | 1,577 | ex | Elixir | apps/banking_api_web/lib/banking_api_web/controllers/user_controller.ex | ckoliveira/banking_api | 3a4077a97e2cfcb2475bafd582a836bd03f6c6cc | [
"Apache-2.0"
] | null | null | null | apps/banking_api_web/lib/banking_api_web/controllers/user_controller.ex | ckoliveira/banking_api | 3a4077a97e2cfcb2475bafd582a836bd03f6c6cc | [
"Apache-2.0"
] | null | null | null | apps/banking_api_web/lib/banking_api_web/controllers/user_controller.ex | ckoliveira/banking_api | 3a4077a97e2cfcb2475bafd582a836bd03f6c6cc | [
"Apache-2.0"
] | null | null | null | defmodule BankingApiWeb.UserController do
use BankingApiWeb, :controller
alias BankingApi.User
alias BankingApi.Users.Inputs.CreateUser
alias BankingApi.ChangesetValidation
alias BankingApiWeb.UserAccountView
alias BankingApiWeb.UserView
@doc """
Creates a user.
"""
@spec create(conn :: Plug.Conn... | 30.921569 | 93 | 0.632213 |
656f71820100aac5de169d7ff68cf4538d99eb4f | 2,250 | ex | Elixir | lib/Easypost/helpers.ex | Dania02525/easypost | bec95e2621ab31ecfb930607f83f5da15674ab77 | [
"MIT"
] | 7 | 2015-08-06T12:54:06.000Z | 2021-01-07T18:30:42.000Z | lib/Easypost/helpers.ex | Dania02525/easypost | bec95e2621ab31ecfb930607f83f5da15674ab77 | [
"MIT"
] | 2 | 2016-07-12T13:40:59.000Z | 2018-09-01T00:12:20.000Z | lib/Easypost/helpers.ex | Dania02525/easypost | bec95e2621ab31ecfb930607f83f5da15674ab77 | [
"MIT"
] | 5 | 2016-07-11T22:30:52.000Z | 2021-07-15T10:42:57.000Z | defmodule Easypost.Helpers do
def url(domain, path), do: Path.join([domain, path])
def encode(map) do
q = map
|> Enum.map(fn({k,v})-> process(k, v) end)
|> List.flatten
|> URI.encode_query
end
def process(acc, v) when is_map(v) do
v
|> Enum.map(fn({k, v})-> process(acc <> "[" <... | 27.777778 | 87 | 0.536 |
656f8133ec051ff74a2233f5ebdf1b517e0d5dab | 1,896 | ex | Elixir | lib/livebook_web/live/sidebar_helpers.ex | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/sidebar_helpers.ex | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/sidebar_helpers.ex | kianmeng/livebook | 8fe8d27d3d46b64d22126d1b97157330b87e611c | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SidebarHelpers do
use Phoenix.Component
import LivebookWeb.Helpers
import LivebookWeb.UserHelpers
alias LivebookWeb.Router.Helpers, as: Routes
@doc """
Renders sidebar container.
Other functions in this module render sidebar
items of various type.
"""
def sidebar(assigns) d... | 26.704225 | 179 | 0.611287 |
656fa0d9afed2ea3de2c30b35222c31b7621e5dc | 1,772 | exs | Elixir | rel/config.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | rel/config.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | rel/config.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | # Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))
use Mix.Releases.Config,
# T... | 32.814815 | 81 | 0.735327 |
656fb9997f48d1924439e36dbab14273644780ed | 89 | exs | Elixir | test/telegex/marked/rule_test.exs | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | 1 | 2020-07-13T00:07:19.000Z | 2020-07-13T00:07:19.000Z | test/telegex/marked/rule_test.exs | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | 12 | 2020-07-10T21:20:35.000Z | 2020-07-26T02:19:51.000Z | test/telegex/marked/rule_test.exs | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | null | null | null | defmodule Telegex.Marked.RuleTest do
use ExUnit.Case
doctest Telegex.Marked.Rule
end
| 17.8 | 36 | 0.808989 |
656fbe1d3124eef2c4bc2e01df0c31277f6aaa1a | 3,602 | ex | Elixir | lib/the_end/request_drainer.ex | MozillaReality/the_end | 51e9b0860b96ec5e0cbfc9e84f8fb120387ca4de | [
"MIT"
] | 13 | 2017-10-31T12:20:30.000Z | 2020-05-08T21:10:28.000Z | lib/the_end/request_drainer.ex | MozillaReality/the_end | 51e9b0860b96ec5e0cbfc9e84f8fb120387ca4de | [
"MIT"
] | 1 | 2018-11-09T18:42:28.000Z | 2020-06-30T18:46:52.000Z | lib/the_end/request_drainer.ex | MozillaReality/the_end | 51e9b0860b96ec5e0cbfc9e84f8fb120387ca4de | [
"MIT"
] | 2 | 2018-08-08T04:47:41.000Z | 2020-04-20T01:01:21.000Z | defmodule TheEnd.RequestDrainer do
@moduledoc """
This module's process waits pending requests to finish when terminating itself.
So, your should put this module's spec after your Endpoint's one and before AcceptTanceStopper's one
children = [
# ... other specs
{TheEnd.RequestDrainer,
... | 27.496183 | 102 | 0.642699 |
656fc099d7cbb7971a99c9560aa965a2f5d9096f | 1,503 | exs | Elixir | test/apoc/hazmat/aead/aesgcm_test.exs | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 6 | 2018-10-04T14:18:35.000Z | 2020-05-15T08:43:31.000Z | test/apoc/hazmat/aead/aesgcm_test.exs | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 3 | 2018-10-23T12:20:45.000Z | 2021-01-27T10:41:14.000Z | test/apoc/hazmat/aead/aesgcm_test.exs | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 2 | 2020-02-19T00:43:37.000Z | 2021-08-19T04:04:25.000Z | defmodule ApocTest.Hazmat.AEAD.AESGCMTest do
use ApocTest.Case
alias Apoc.Hazmat.AEAD.AESGCM
doctest AESGCM
describe "Encryption" do
# TODO: Test the errors
# TODO: tuple versions
test "encoded payload includes associated data for a 16 byte key" do
ct = AESGCM.encrypt!("hey there", Apoc.rand_... | 31.978723 | 99 | 0.646707 |
656ff376353c9d1708c3a3092b303b6463760e97 | 8,309 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1beta1/model/step.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1beta1/model/step.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1beta1/model/step.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... | 73.530973 | 320 | 0.739198 |
65700d41458164b749be65e0f20d2e6db3a0312a | 1,144 | ex | Elixir | lib/commodity_api/iam/generic/credentials.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 7 | 2019-04-11T21:12:49.000Z | 2021-04-14T12:56:42.000Z | lib/commodity_api/iam/generic/credentials.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | null | null | null | lib/commodity_api/iam/generic/credentials.ex | akdilsiz/commodity-cloud | 08c366c9fc95fbb3565131672db4cc52f8b870c9 | [
"Apache-2.0"
] | 2 | 2019-06-06T18:05:33.000Z | 2019-07-16T08:49:45.000Z | ##
# Copyright 2018 Abdulkadir DILSIZ
#
# 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... | 31.777778 | 77 | 0.701049 |
65701827b57f63195378a4b295a4a26ca88930c5 | 1,180 | exs | Elixir | config/config.exs | LanfordCai/ElixirWeather | a7667bde35b6ee1073c324266ae15dbadb6d33f7 | [
"MIT"
] | 1 | 2016-02-17T19:10:42.000Z | 2016-02-17T19:10:42.000Z | config/config.exs | LanfordCai/ElixirWeather | a7667bde35b6ee1073c324266ae15dbadb6d33f7 | [
"MIT"
] | null | null | null | config/config.exs | LanfordCai/ElixirWeather | a7667bde35b6ee1073c324266ae15dbadb6d33f7 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :weather, heweather_url: "https://api.heweather.com/x3"
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on ... | 38.064516 | 73 | 0.751695 |
657037ae8defe277fb247b38e217d12a61d34f0b | 185 | exs | Elixir | test/ex_ncurses_test.exs | wisq/ex_ncurses | 92d3587ad121487d637219099857266649655252 | [
"MIT"
] | 76 | 2016-01-02T22:03:13.000Z | 2022-03-10T19:49:01.000Z | test/ex_ncurses_test.exs | wisq/ex_ncurses | 92d3587ad121487d637219099857266649655252 | [
"MIT"
] | 13 | 2018-03-28T14:18:58.000Z | 2021-01-04T16:21:14.000Z | test/ex_ncurses_test.exs | wisq/ex_ncurses | 92d3587ad121487d637219099857266649655252 | [
"MIT"
] | 19 | 2016-03-02T07:04:18.000Z | 2021-03-08T02:45:42.000Z | defmodule ExNcursesTest do
use ExUnit.Case
doctest ExNcurses
test "that initscr needs to be called first" do
assert ExNcurses.refresh() == {:error, :uninitialized}
end
end
| 20.555556 | 58 | 0.735135 |
65704ebaaecbaf4c199965569041bf50a9d625fb | 838 | ex | Elixir | packages/templates/src/project/potionx/lib/{{ appName }}/sessions/session.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | packages/templates/src/project/potionx/lib/{{ appName }}/sessions/session.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | packages/templates/src/project/potionx/lib/{{ appName }}/sessions/session.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule <%= appModule %>.Sessions.Session do
@derive Jason.Encoder
use Ecto.Schema
alias __MODULE__
schema "sessions" do
field :data, :map
field :deleted_at, :utc_datetime
field :expires_at, :utc_datetime
field :ip, EctoNetwork.INET
field :sign_in_provider, :string
field :ttl_access_s... | 23.942857 | 50 | 0.667064 |
65705b4dd6a4e8a5773ebe79bbc5cc61cebac712 | 1,111 | exs | Elixir | mix.exs | rmalecki/simple-rng | 3e78d52626be39178beb8502058ea8fe2bd45083 | [
"MIT"
] | null | null | null | mix.exs | rmalecki/simple-rng | 3e78d52626be39178beb8502058ea8fe2bd45083 | [
"MIT"
] | null | null | null | mix.exs | rmalecki/simple-rng | 3e78d52626be39178beb8502058ea8fe2bd45083 | [
"MIT"
] | null | null | null | defmodule Simplerng.Mixfile do
use Mix.Project
def project do
[app: :simplerng,
version: "0.1.1",
name: "SimpleRNG",
source_url: "https://github.com/rmalecki/simple-rng",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
... | 23.638298 | 79 | 0.605761 |
657072410c7f295e81ddf8192613170cbb9ed434 | 378 | exs | Elixir | thada_generator/mix.exs | wingyplus/thada | be33bf7e744e9deef8176dcb006ed623e2e692be | [
"MIT"
] | null | null | null | thada_generator/mix.exs | wingyplus/thada | be33bf7e744e9deef8176dcb006ed623e2e692be | [
"MIT"
] | null | null | null | thada_generator/mix.exs | wingyplus/thada | be33bf7e744e9deef8176dcb006ed623e2e692be | [
"MIT"
] | null | null | null | defmodule ThadaGenerator.MixProject do
use Mix.Project
def project do
[
app: :thada_generator,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger, :eex]
]
end
de... | 14.538462 | 42 | 0.534392 |
6570726520418f07014d883e6e8ad7f46d4d9e55 | 25,933 | exs | Elixir | elixir-match/app/test/match/game_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/test/match/game_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | elixir-match/app/test/match/game_test.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule Match.GameTest do
use ExUnit.Case, async: true
test "new returns game struct with list of cards in random order" do
state = Match.Game.new(2)
%Match.Game{cards: cards, winner: winner, active_player_id: active_player_id, players: players} = state
possible = [
%Match.Card{:id => "24CEDF... | 40.020062 | 133 | 0.603247 |
6570a7731c553ad18591dfdb99bb454650159607 | 357 | exs | Elixir | config/prod.exs | SylwBar/gat_core | b37c12e1004e1ee11b3d515f51f02319d0ac3a93 | [
"MIT"
] | null | null | null | config/prod.exs | SylwBar/gat_core | b37c12e1004e1ee11b3d515f51f02319d0ac3a93 | [
"MIT"
] | null | null | null | config/prod.exs | SylwBar/gat_core | b37c12e1004e1ee11b3d515f51f02319d0ac3a93 | [
"MIT"
] | null | null | null | import Config
config :gat_core,
env: "Release",
toml_config: "config/prod.toml"
config :logger,
level: :info,
utc_log: true,
backends: [{LoggerFileBackend, :info_log}]
# configuration for the {LoggerFileBackend, :info_log} backend
config :logger, :info_log,
format: "$date $time $metadata[$level] $levelpa... | 22.3125 | 62 | 0.714286 |
6570b784b2fa0105b0a9634407c1c5f2a0182a39 | 813 | ex | Elixir | lib/error_response.ex | ahd-elang/braintree-elixir | c18d37eaff2df8a6d62cc05677b8a03c1d23ad90 | [
"MIT"
] | 108 | 2016-02-03T12:45:03.000Z | 2022-02-19T16:56:36.000Z | lib/error_response.ex | ahd-elang/braintree-elixir | c18d37eaff2df8a6d62cc05677b8a03c1d23ad90 | [
"MIT"
] | 77 | 2016-02-12T15:52:53.000Z | 2022-02-21T14:38:08.000Z | lib/error_response.ex | ahd-elang/braintree-elixir | c18d37eaff2df8a6d62cc05677b8a03c1d23ad90 | [
"MIT"
] | 64 | 2016-04-04T07:07:24.000Z | 2022-03-24T05:42:05.000Z | defmodule Braintree.ErrorResponse do
@moduledoc """
A general purpose response wrapper that is built for any failed API
response.
See the following pages for details about the various processor responses:
* https://developers.braintreepayments.com/reference/general/processor-responses/authorization-response... | 30.111111 | 106 | 0.687577 |
6570b8b055e63770f336b2b7e7481bf4c37f9bec | 6,168 | ex | Elixir | clients/service_control/lib/google_api/service_control/v1/model/audit_log.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_control/lib/google_api/service_control/v1/model/audit_log.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_control/lib/google_api/service_control/v1/model/audit_log.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... | 70.896552 | 486 | 0.726492 |
6570f43a8a65ccccfd520b971fa371c65650467a | 656 | ex | Elixir | lib/markright/parsers/maillink.ex | betrybe/markright | 1b81a2d9931b70645f9eff70d2605f0e9a58f396 | [
"MIT"
] | 15 | 2017-01-12T19:24:35.000Z | 2021-04-27T14:44:08.000Z | lib/markright/parsers/maillink.ex | betrybe/markright | 1b81a2d9931b70645f9eff70d2605f0e9a58f396 | [
"MIT"
] | 8 | 2017-02-13T17:01:35.000Z | 2021-07-27T16:20:52.000Z | lib/markright/parsers/maillink.ex | betrybe/markright | 1b81a2d9931b70645f9eff70d2605f0e9a58f396 | [
"MIT"
] | 1 | 2021-04-24T18:40:11.000Z | 2021-04-24T18:40:11.000Z | defmodule Markright.Parsers.Maillink do
@moduledoc ~S"""
Makes all the mailto:who@where.domain texts to be links.
## Examples
iex> input = "mailto:am@mudasobwa.ru "
iex> Markright.Parsers.Maillink.to_ast(input, %Markright.Continuation{})
%Markright.Continuation{ast: {:a, %{href: "mailto:am@mud... | 31.238095 | 112 | 0.60061 |
6571209e3e453bd7fc4f3161023252d1e8529bd8 | 1,049 | exs | Elixir | test/radex/writer/json/index_test.exs | smartlogic/radex | 001d2b6fc564d9fbcbd98fcffdc89a03dc210c80 | [
"MIT"
] | 3 | 2017-10-12T18:23:33.000Z | 2019-05-14T21:28:09.000Z | test/radex/writer/json/index_test.exs | smartlogic/radex | 001d2b6fc564d9fbcbd98fcffdc89a03dc210c80 | [
"MIT"
] | null | null | null | test/radex/writer/json/index_test.exs | smartlogic/radex | 001d2b6fc564d9fbcbd98fcffdc89a03dc210c80 | [
"MIT"
] | null | null | null | defmodule Radex.Writer.JSON.IndexTest do
use ExUnit.Case
alias Radex.Conn
alias Radex.Metadata
alias Radex.Writer.JSON.Index
test "generating index information" do
metadata = %{
Radex.generate_key() => %Metadata{
success: true,
metadata: %{
resource: "Orders",
d... | 23.840909 | 95 | 0.531935 |
6571675222221deaafa00611672a5bf05f4b9ee9 | 1,389 | ex | Elixir | clients/cloud_build/lib/google_api/cloud_build/v1/model/check_suite_filter.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/check_suite_filter.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/cloud_build/lib/google_api/cloud_build/v1/model/check_suite_filter.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.302326 | 95 | 0.764579 |
65717895bedd58a33fcd56f36ec720703a29310f | 609 | exs | Elixir | test/grizzly/zwave/commands/basic_set_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/basic_set_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/basic_set_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.BasicSetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.BasicSet
test "creates the command and validates params" do
params = [value: :off]
{:ok, _command} = BasicSet.new(params)
end
test "encodes params correctly" do
binary_params = <<0xFF>>
... | 26.478261 | 57 | 0.696223 |
65719a5fbf7408900326b82c85666b3cd7cf4694 | 1,961 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/packet_mirrorings_scoped_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/packet_mirrorings_scoped_list.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/packet_mirrorings_scoped_list.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... | 39.22 | 200 | 0.757777 |
6571a074e208668db519deb7cafa0fc036246886 | 177 | exs | Elixir | test/ark_tbw_delegate_server_test.exs | poka-IT/ark_tbw_delegate_server | c3b238b0967e0e03b078ad8938b33d66cdf0e8c7 | [
"MIT"
] | null | null | null | test/ark_tbw_delegate_server_test.exs | poka-IT/ark_tbw_delegate_server | c3b238b0967e0e03b078ad8938b33d66cdf0e8c7 | [
"MIT"
] | null | null | null | test/ark_tbw_delegate_server_test.exs | poka-IT/ark_tbw_delegate_server | c3b238b0967e0e03b078ad8938b33d66cdf0e8c7 | [
"MIT"
] | null | null | null | defmodule ArkTbwDelegateServerTest do
use ExUnit.Case
doctest ArkTbwDelegateServer
test "greets the world" do
assert ArkTbwDelegateServer.hello() == :world
end
end
| 19.666667 | 49 | 0.774011 |
6571a6cdf4bf908830084c3b885065ec0ebc7f12 | 1,016 | ex | Elixir | lib/baambook/random.ex | AzazKamaz/baambook | ef69a0bbdbc1753eca0a6fa278562a7dc5e5d81b | [
"Unlicense"
] | 12 | 2021-09-24T17:45:26.000Z | 2021-10-15T22:13:57.000Z | lib/baambook/random.ex | AzazKamaz/baambook | ef69a0bbdbc1753eca0a6fa278562a7dc5e5d81b | [
"Unlicense"
] | 1 | 2021-10-10T12:49:16.000Z | 2021-10-10T12:49:16.000Z | lib/baambook/random.ex | AzazKamaz/baambook | ef69a0bbdbc1753eca0a6fa278562a7dc5e5d81b | [
"Unlicense"
] | null | null | null | defmodule Baambook.Random do
@moduledoc """
Module that sends random QR Codes into random room
"""
use GenServer
def start_link(_) do
interval =
case Application.fetch_env(:baambook, __MODULE__) do
{:ok, [interval: interval]} -> interval
:error -> :infinity
end
GenServer... | 22.086957 | 75 | 0.646654 |
6571ca2906e41a43467cb6333cf7e8bc78c2b772 | 4,161 | ex | Elixir | lib/edib/build_config/artifact/parser.ex | netflakes/mix-edib | f8f7f9adc370a21f4adca80dd07b71367fd43199 | [
"MIT"
] | 100 | 2016-01-11T15:36:42.000Z | 2019-09-30T17:25:51.000Z | lib/edib/build_config/artifact/parser.ex | netflakes/mix-edib | f8f7f9adc370a21f4adca80dd07b71367fd43199 | [
"MIT"
] | 35 | 2016-02-29T23:05:03.000Z | 2019-05-16T21:22:04.000Z | lib/edib/build_config/artifact/parser.ex | netflakes/mix-edib | f8f7f9adc370a21f4adca80dd07b71367fd43199 | [
"MIT"
] | 20 | 2016-01-28T14:04:17.000Z | 2019-09-29T22:22:08.000Z | defmodule EDIB.BuildConfig.Artifact.Parser do
@moduledoc false
alias EDIB.Defaults
alias EDIB.BuildConfig.Artifact
alias EDIB.BuildConfig.Artifact.Volume
alias EDIB.BuildConfig.Artifact.Volumes
alias EDIB.BuildConfig.Artifact.ImageSettings
def from_cli_options(options) do
options
|> init_state
... | 30.822222 | 82 | 0.715453 |
6571e8757f9db81c374a35cb3cce262e6fea985d | 2,624 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__speech_transcription.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__speech_transcription.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__speech_transcription.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.757576 | 404 | 0.75343 |
65720710220e7aced16c9d536bb6ed2f6248d4d9 | 1,981 | exs | Elixir | exercises/space-age/space_age_test.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | null | null | null | exercises/space-age/space_age_test.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | null | null | null | exercises/space-age/space_age_test.exs | martinsvalin/xelixir | 9469d92e7eecb528a05a8da923d8271ed303c058 | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("space_age.exs")
end
ExUnit.start
ExUnit.configure exclude: :pending, trace: true
# You need to define a SpaceAge module containing a function age_on that given a
# planet (:earth, :saturn, etc) and a number of seconds returns the age in years
# on that... | 28.3 | 80 | 0.707219 |
6572128985d9ae16b8a7e96713fcfce877ac0c20 | 2,112 | ex | Elixir | lib/mix/tasks/entrance.gen.phx_require_login.ex | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | 11 | 2020-01-25T16:17:24.000Z | 2020-06-03T10:46:27.000Z | lib/mix/tasks/entrance.gen.phx_require_login.ex | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | null | null | null | lib/mix/tasks/entrance.gen.phx_require_login.ex | henriquefernandez/entrance | ac10316678a89b6904b17bdcf7a9061d67f055fc | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Entrance.Gen.PhxRequireLogin do
@shortdoc "Creates phoenix require login plug for authentication with entrance"
@moduledoc "Creates phoenix require login plug for authentication with entrance"
alias Entrance.Mix.Phoenix.Inflector
use Mix.Task
@doc false
def run(io_puts \\ true, args) d... | 31.058824 | 92 | 0.517992 |
657223f6a55fd6af997a160290423cec87b87d95 | 101 | ex | Elixir | web/views/page_view.ex | kimquy/phoenix_webpack_vue_boilerplate | 0067c7facaeb33c8c53fef7779becc708636c97a | [
"MIT"
] | 6 | 2017-05-19T14:00:24.000Z | 2017-07-07T21:19:18.000Z | web/views/page_view.ex | kimquy/phoenix_webpack_vue_boilerplate | 0067c7facaeb33c8c53fef7779becc708636c97a | [
"MIT"
] | 1 | 2017-05-19T14:04:37.000Z | 2017-05-19T14:05:31.000Z | web/views/page_view.ex | kimquy/phoenix_webpack_vue_boilerplate | 0067c7facaeb33c8c53fef7779becc708636c97a | [
"MIT"
] | null | null | null | defmodule PhoenixWebpackVueBoilerplate.PageView do
use PhoenixWebpackVueBoilerplate.Web, :view
end
| 25.25 | 50 | 0.871287 |
657232e6519f8b323d8d1894826a9c60529324c2 | 1,580 | ex | Elixir | web/views/roles_view.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | web/views/roles_view.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | web/views/roles_view.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.V1.RoleView do
use Cog.Web, :view
def render("role.json", %{role: role}=resource) do
%{id: role.id,
name: role.name,
permissions: render_many(role.permissions, Cog.V1.PermissionView, "permission.json", as: :permission),
}
|> Map.merge(render_includes(resource, role))
end
... | 29.811321 | 108 | 0.631646 |
65723d1f9ef186a7325b1a3920f0538008f35783 | 63 | exs | Elixir | test/parsex_test.exs | podigee/parsex | 06df5b85dafa2d66742d09d71a004921f1001c83 | [
"MIT"
] | null | null | null | test/parsex_test.exs | podigee/parsex | 06df5b85dafa2d66742d09d71a004921f1001c83 | [
"MIT"
] | null | null | null | test/parsex_test.exs | podigee/parsex | 06df5b85dafa2d66742d09d71a004921f1001c83 | [
"MIT"
] | 1 | 2020-12-11T11:26:21.000Z | 2020-12-11T11:26:21.000Z | defmodule ParsexTest do
use ExUnit.Case
doctest Parsex
end
| 12.6 | 23 | 0.793651 |
65725b9fcda5e2ec3c60e1353f13ad6f2985ad8e | 306 | ex | Elixir | lib/cforum/messages/tag_json.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/messages/tag_json.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum/messages/tag_json.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defimpl Jason.Encoder, for: Cforum.Messages.Tag do
def encode(tag, options) do
Jason.Encode.map(
%{
tag_id: tag.tag_id,
tag_name: tag.tag_name,
num_messages: tag.num_messages,
synonyms: Enum.map(tag.synonyms, & &1.synonym)
},
options
)
end
end
| 21.857143 | 54 | 0.601307 |
65725dd5f18a7036edd29c63ed5e3b4e072d40c1 | 1,924 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/event_creator.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/calendar/lib/google_api/calendar/v3/model/event_creator.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/calendar/lib/google_api/calendar/v3/model/event_creator.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.357143 | 178 | 0.691788 |
6572707ea31dc97ec6b15588d431edad0a96a48f | 441 | exs | Elixir | test/exampleElixir_web/views/error_view_test.exs | ruyjfs/example-elixir | 9737205e4a548f2118f32ff45dd4f2d67a00c54a | [
"Apache-2.0"
] | null | null | null | test/exampleElixir_web/views/error_view_test.exs | ruyjfs/example-elixir | 9737205e4a548f2118f32ff45dd4f2d67a00c54a | [
"Apache-2.0"
] | null | null | null | test/exampleElixir_web/views/error_view_test.exs | ruyjfs/example-elixir | 9737205e4a548f2118f32ff45dd4f2d67a00c54a | [
"Apache-2.0"
] | null | null | null | defmodule ExampleElixirWeb.ErrorViewTest do
use ExampleElixirWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(ExampleElixirWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 5... | 29.4 | 98 | 0.748299 |
65728938f0cd728aae5b6f8df5d8b9dfee8763b8 | 3,514 | ex | Elixir | lib/mix/tasks/ecto.rollback.ex | groyoh/ecto_sql | 49a732375b928f83f29f995e874e3a580a9caeb8 | [
"Apache-2.0"
] | 1 | 2019-05-02T14:02:56.000Z | 2019-05-02T14:02:56.000Z | lib/mix/tasks/ecto.rollback.ex | groyoh/ecto_sql | 49a732375b928f83f29f995e874e3a580a9caeb8 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/ecto.rollback.ex | groyoh/ecto_sql | 49a732375b928f83f29f995e874e3a580a9caeb8 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Ecto.Rollback do
use Mix.Task
import Mix.Ecto
import Mix.EctoSQL
@shortdoc "Rolls back the repository migrations"
@aliases [
r: :repo,
n: :step
]
@switches [
all: :boolean,
step: :integer,
to: :integer,
start: :boolean,
quiet: :boolean,
prefix: :strin... | 30.824561 | 98 | 0.665054 |
6572ba8f6f43636163d6bb6131bef19f6f8e1897 | 721 | ex | Elixir | lib/bokken/events/team_mentor.ex | coderdojobraga/bokken | df28522637315193e09ac1f3f79823361db0f2f9 | [
"MIT"
] | 7 | 2020-10-19T14:06:46.000Z | 2022-02-19T09:53:02.000Z | lib/bokken/events/team_mentor.ex | coderdojobraga/bokken | df28522637315193e09ac1f3f79823361db0f2f9 | [
"MIT"
] | 5 | 2017-08-24T10:38:46.000Z | 2021-05-26T16:48:22.000Z | lib/bokken/events/team_mentor.ex | coderdojobraga/bokken | df28522637315193e09ac1f3f79823361db0f2f9 | [
"MIT"
] | 2 | 2017-08-25T18:38:11.000Z | 2021-07-15T00:57:33.000Z | defmodule Bokken.Events.TeamMentor do
@moduledoc """
Team and Mentor join table
"""
use Bokken.Schema
alias Bokken.Accounts.Mentor
alias Bokken.Events.Team
@required_fields [:team_id, :mentor_id]
@optional_fields []
@primary_key false
schema "teams_mentors" do
belongs_to :team, Team, type: :b... | 23.258065 | 75 | 0.707351 |
6572dc1a4cb0f643638a2ef1c2f1cccfa43c3bfd | 95 | ex | Elixir | lib/kamleague_web/views/statistics_view.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | null | null | null | lib/kamleague_web/views/statistics_view.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 2 | 2021-11-04T21:05:24.000Z | 2021-11-04T21:51:48.000Z | lib/kamleague_web/views/statistics_view.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 1 | 2021-11-04T18:40:26.000Z | 2021-11-04T18:40:26.000Z | defmodule KamleagueWeb.StatisticsView do
use KamleagueWeb, :view
import Scrivener.HTML
end
| 19 | 40 | 0.821053 |
65731ff470db5434daf5049afa8458c798ffcf37 | 1,757 | exs | Elixir | clients/eventarc/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/eventarc/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/eventarc/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 26.223881 | 99 | 0.646557 |
657324e8e4e1d8a0ed757338167588df3348316f | 82 | exs | Elixir | apps/castles_web/test/views/layout_view_test.exs | sjanota/castles | a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a | [
"Apache-2.0"
] | null | null | null | apps/castles_web/test/views/layout_view_test.exs | sjanota/castles | a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a | [
"Apache-2.0"
] | null | null | null | apps/castles_web/test/views/layout_view_test.exs | sjanota/castles | a890a1acf8c33a7cf7d6c49759387ea4dd4ce37a | [
"Apache-2.0"
] | null | null | null | defmodule CastlesWeb.LayoutViewTest do
use CastlesWeb.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.