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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
620f496f5f8291b8e9d3f4d7e03730bd981e4925 | 1,207 | ex | Elixir | lib/sealax_web/views/error_helpers.ex | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | lib/sealax_web/views/error_helpers.ex | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | 9 | 2021-08-19T01:09:55.000Z | 2022-03-08T01:18:45.000Z | lib/sealax_web/views/error_helpers.ex | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | defmodule SealaxWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static argum... | 35.5 | 75 | 0.670257 |
620f4ab9c4cc73f92dfeed61b39c5637b80610f8 | 813 | ex | Elixir | web/controllers/api/v1/file_upload_controller.ex | kensupermen/javex | f7774e83f64980f3c1eb4b5701f46d835edd76da | [
"MIT"
] | null | null | null | web/controllers/api/v1/file_upload_controller.ex | kensupermen/javex | f7774e83f64980f3c1eb4b5701f46d835edd76da | [
"MIT"
] | null | null | null | web/controllers/api/v1/file_upload_controller.ex | kensupermen/javex | f7774e83f64980f3c1eb4b5701f46d835edd76da | [
"MIT"
] | null | null | null | defmodule Javex.FileUploadController do
use Javex.Web, :controller
alias Javex.Actress
def upload(conn, %{"image" => image_params}) do
IO.puts "uploading..."
image_filename = image_params.filename
bucket_name = System.get_env("BUCKET_NAME")
{:ok, image_binary} = File.read(image_params.path)
... | 26.225806 | 90 | 0.633456 |
620f509188712dbf2b8c3a6974879bc1bb293d95 | 350 | ex | Elixir | lib/spaceex/articles/create.ex | LuizFerK/SpaceEx | ca1a4bd4881692860879b6f2c5d55bc521332c39 | [
"MIT"
] | 1 | 2021-12-13T15:50:00.000Z | 2021-12-13T15:50:00.000Z | lib/spaceex/articles/create.ex | LuizFerK/SpaceEx | ca1a4bd4881692860879b6f2c5d55bc521332c39 | [
"MIT"
] | null | null | null | lib/spaceex/articles/create.ex | LuizFerK/SpaceEx | ca1a4bd4881692860879b6f2c5d55bc521332c39 | [
"MIT"
] | 2 | 2022-01-09T18:12:17.000Z | 2022-01-23T22:12:51.000Z | defmodule Spaceex.Articles.Create do
alias Spaceex.{Article, Error, Repo}
def call(params) do
params
|> Article.changeset()
|> Repo.insert()
|> handle_insert()
end
defp handle_insert({:ok, %Article{}} = result), do: result
defp handle_insert({:error, result}) do
{:error, Error.build(:ba... | 20.588235 | 60 | 0.66 |
620f5e534cc056f1079ba3cd8212f2561cb2b463 | 242 | ex | Elixir | backend/lib/backend_web/api_auth_error_handler.ex | sdil/todo-app-phoenix-nuxtjs | cfdb2ccce9cf54f691236ae81740608ce1c6a227 | [
"MIT"
] | null | null | null | backend/lib/backend_web/api_auth_error_handler.ex | sdil/todo-app-phoenix-nuxtjs | cfdb2ccce9cf54f691236ae81740608ce1c6a227 | [
"MIT"
] | null | null | null | backend/lib/backend_web/api_auth_error_handler.ex | sdil/todo-app-phoenix-nuxtjs | cfdb2ccce9cf54f691236ae81740608ce1c6a227 | [
"MIT"
] | null | null | null | defmodule BackendWeb.ApiAuthErrorHandler do
use BackendWeb, :controller
alias Plug.Conn
def call(conn, :not_authenticated) do
conn
|> put_status(401)
|> json(%{error: %{code: 401, message: "Not authenticated"}})
end
end
| 20.166667 | 65 | 0.694215 |
620f9d99b9412f95175810184ffe4a3ddd9c9d85 | 1,132 | ex | Elixir | test/support/conn_case.ex | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | 1 | 2020-12-23T18:28:53.000Z | 2020-12-23T18:28:53.000Z | test/support/conn_case.ex | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | test/support/conn_case.ex | everydayhoodie/phoenix-trello-notes | ca535a69c610f5edbfca85e34b06a679422d4ba2 | [
"MIT"
] | null | null | null | defmodule PhoenixTrello.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with t... | 25.155556 | 75 | 0.713781 |
620fb90231206c66c4e959f2c2ff8b605cfb8aa5 | 2,065 | exs | Elixir | mix.exs | parry84/amqpx | 41bb9a5c7095e2e2720fc4dcd65c1a14df98a656 | [
"MIT"
] | null | null | null | mix.exs | parry84/amqpx | 41bb9a5c7095e2e2720fc4dcd65c1a14df98a656 | [
"MIT"
] | null | null | null | mix.exs | parry84/amqpx | 41bb9a5c7095e2e2720fc4dcd65c1a14df98a656 | [
"MIT"
] | null | null | null | defmodule Amqpx.MixProject do
use Mix.Project
def project do
[
app: :amqpx,
name: "amqpx",
version: version(),
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :production,
deps: deps(),
description: description(),
al... | 24.583333 | 136 | 0.532688 |
620fbc4525de08ea6dda833172617fc4194314fb | 489 | exs | Elixir | config/test.exs | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | config/test.exs | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | config/test.exs | herminiotorres/blog | f23bca9ef80d13cd61dbc9e4139bb682f86f0acf | [
"MIT"
] | null | null | null | import Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :herminio_torres, HerminioTorresWeb.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4002],
secret_key_base: "ifXdvbeW9cQ8CjvdH1eOFeSNs20y+O6ki/a/g/eXjWy1f1QZZiESU8rtkeFx4WnJ",
server: false
# Print... | 32.6 | 86 | 0.768916 |
620feabd0973fed37770e5e1ab22d58abe9f3165 | 1,465 | ex | Elixir | lib/aws/generated/mobile_analytics.ex | justinludwig/aws-elixir | c66dfebecec62587dada50602c31c76d307d812c | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/mobile_analytics.ex | justinludwig/aws-elixir | c66dfebecec62587dada50602c31c76d307d812c | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/mobile_analytics.ex | justinludwig/aws-elixir | c66dfebecec62587dada50602c31c76d307d812c | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.MobileAnalytics do
@moduledoc """
Amazon Mobile Analytics is a service for collecting, visualizing, and
understanding app usage data at scale.
"""
alias AWS.Client
alias AWS.Request
... | 24.416667 | 81 | 0.642321 |
620ff419ae7861af24c82a8272b3673e6e2b3135 | 3,219 | ex | Elixir | lib/mix/ecto.ex | eksperimental/ecto | 67446d7c00f6b18d7e26360dd15889e68da418e0 | [
"Apache-2.0"
] | null | null | null | lib/mix/ecto.ex | eksperimental/ecto | 67446d7c00f6b18d7e26360dd15889e68da418e0 | [
"Apache-2.0"
] | 2 | 2020-04-23T00:19:07.000Z | 2020-04-23T00:24:25.000Z | lib/mix/ecto.ex | eksperimental/ecto | 67446d7c00f6b18d7e26360dd15889e68da418e0 | [
"Apache-2.0"
] | 1 | 2020-10-07T16:52:00.000Z | 2020-10-07T16:52:00.000Z | defmodule Mix.Ecto do
@moduledoc """
Conveniences for writing Ecto related Mix tasks.
"""
@doc """
Parses the repository option from the given command line args list.
If no repo option is given, it is retrieved from the application environment.
"""
@spec parse_repo([term]) :: [Ecto.Repo.t]
def parse... | 26.603306 | 94 | 0.6064 |
620ffd856232660afae53a1e1e136d01c410c92c | 9,234 | exs | Elixir | lib/mix/test/test_helper.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/test/test_helper.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/mix/test/test_helper.exs | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | Mix.start()
Mix.shell(Mix.Shell.Process)
Application.put_env(:mix, :colors, enabled: false)
exclude = if match?({:win32, _}, :os.type()), do: [unix: true], else: [windows: true]
ExUnit.start(trace: "--trace" in System.argv(), exclude: exclude)
unless {1, 7, 4} <= Mix.SCM.Git.git_version() do
IO.puts(:stderr, "Skipp... | 22.521951 | 87 | 0.619991 |
620ffdc0b96f0036d1d121bfb659c497345ef640 | 8,282 | ex | Elixir | lib/faker/internet.ex | winescout/faker | e75d2e4ab2fdcda5455e33e89dcdd56b9886ab19 | [
"MIT"
] | null | null | null | lib/faker/internet.ex | winescout/faker | e75d2e4ab2fdcda5455e33e89dcdd56b9886ab19 | [
"MIT"
] | null | null | null | lib/faker/internet.ex | winescout/faker | e75d2e4ab2fdcda5455e33e89dcdd56b9886ab19 | [
"MIT"
] | null | null | null | defmodule Faker.Internet do
alias Faker.Lorem
alias Faker.Person.En, as: Person
alias Faker.Util
import Faker.Util, only: [pick: 1]
import Faker, only: [localize: 1]
@moduledoc """
Functions for generating internet related data
"""
@doc """
Returns a complete random domain name
## Examples
... | 24.145773 | 85 | 0.619174 |
6210177a43a81efa6418291ca8f3c3ba0d44a5b2 | 5,135 | ex | Elixir | lib/exyaml/loader.ex | khattori/exyaml | 4ee8678a8ac241e078373f3c6c3958496fc9ac2e | [
"MIT"
] | null | null | null | lib/exyaml/loader.ex | khattori/exyaml | 4ee8678a8ac241e078373f3c6c3958496fc9ac2e | [
"MIT"
] | null | null | null | lib/exyaml/loader.ex | khattori/exyaml | 4ee8678a8ac241e078373f3c6c3958496fc9ac2e | [
"MIT"
] | null | null | null | defmodule Exyaml.Loader do
@on_load :init
# --- *\n
# ... *\n ドキュメントの終わり
# - すでに終わった後に空行は無視される
# - 終わった後に ...\nは無視される
# - 終わった後に ---\n は開始となる
# - 終わった後に上記以外も開始となる
# ---
#
@re_document_sep ~r/^---\s/
@re_document_end ~r/^\.\.\.\s*\n/
#
# Yamerl初期化
# ---
# デフォルトでtimestampを認識するように設定しておく... | 32.707006 | 149 | 0.653359 |
6210359c75160ed94f389af8c5db7fbd51969b06 | 257,539 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/api/projects.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/api/projects.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/api/projects.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... | 49.43167 | 992 | 0.62966 |
62104150fd9a366b0fa14c8b1b570676cdb0719a | 2,265 | exs | Elixir | mix.exs | OpenFermentor/Local-Monitor | 4b356e8ac3f154ec72bdd23b3a501d5f1645241c | [
"MIT"
] | null | null | null | mix.exs | OpenFermentor/Local-Monitor | 4b356e8ac3f154ec72bdd23b3a501d5f1645241c | [
"MIT"
] | null | null | null | mix.exs | OpenFermentor/Local-Monitor | 4b356e8ac3f154ec72bdd23b3a501d5f1645241c | [
"MIT"
] | null | null | null | defmodule BioMonitor.Mixfile do
use Mix.Project
def project do
[app: :bio_monitor,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 31.027397 | 83 | 0.548344 |
6210557ecc483caacbe598212443bcb60099f125 | 4,973 | exs | Elixir | test/xdr/transactions/operations/manage_offer_success_result_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/transactions/operations/manage_offer_success_result_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/transactions/operations/manage_offer_success_result_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.ManageOfferSuccessResultTest do
use ExUnit.Case
import StellarBase.Test.Utils
alias StellarBase.XDR.{
ClaimAtom,
ClaimAtomType,
ClaimOfferAtom,
ClaimAtomList,
Ext,
Int32,
Int64,
OfferEntry,
Price
}
alias StellarBase.XDR.Operations.{Ma... | 37.11194 | 98 | 0.614719 |
621055b3e01ec0b6309dcb5a31ee12c40c3c9c07 | 1,362 | ex | Elixir | web/controllers/campaign_controller.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | web/controllers/campaign_controller.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | web/controllers/campaign_controller.ex | bus-detective/pro | d313f4facdb4c9229bd7a022eeabb85170000e18 | [
"MIT"
] | null | null | null | defmodule BdPro.CampaignController do
use BdPro.Web, :controller
alias BdPro.Campaign
plug :scrub_params, "campaign" when action in [:create, :update]
def index(conn, _params) do
campaigns = Repo.all(Campaign) |> Repo.preload([:vehicles])
render(conn, "index.json", campaigns: campaigns)
end
def ... | 28.375 | 77 | 0.676211 |
6210831c0ef5fcc2d321da8e4409bd215dabe0b2 | 1,771 | ex | Elixir | lib/bearings/dailies/daily.ex | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | 3 | 2018-05-29T12:16:14.000Z | 2019-09-25T21:12:36.000Z | lib/bearings/dailies/daily.ex | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | 23 | 2018-05-25T21:09:43.000Z | 2021-12-16T05:45:25.000Z | lib/bearings/dailies/daily.ex | tmecklem/bearings | 98efda7baba7a4170c46da6a4ccb4f954b0ddc5a | [
"MIT"
] | null | null | null | defmodule Bearings.Dailies.Daily do
@moduledoc """
This module contains an Ecto Schema and related functions for daily planning
data.
"""
use Ecto.Schema
import Ecto.Changeset
alias Bearings.Account.User
alias Bearings.Dailies.{DailyView, Goal, Markdown}
@type t :: %__MODULE__{
daily_plan:... | 25.3 | 93 | 0.654433 |
6210bc39cacbb7e788b424b86d7463b48a779ec9 | 3,616 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_annotated_conversation_dataset.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_annotated_conversation_dataset.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_annotated_conversation_dataset.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 ... | 44.097561 | 141 | 0.730365 |
6211173622b29165851e180f0c98dde04295705e | 2,195 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/ios_version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/ios_version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/testing/lib/google_api/testing/v1/model/ios_version.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... | 37.20339 | 134 | 0.691116 |
62111e7c48b22b7f5f305761c7f8bd56c1818dd6 | 262 | exs | Elixir | config/test.exs | sickill/flash | 8797cb00b70c94b6f3bdd51e9cb456483f1c5741 | [
"Apache-2.0"
] | 1 | 2021-09-08T16:56:39.000Z | 2021-09-08T16:56:39.000Z | config/test.exs | sickill/flash | 8797cb00b70c94b6f3bdd51e9cb456483f1c5741 | [
"Apache-2.0"
] | null | null | null | config/test.exs | sickill/flash | 8797cb00b70c94b6f3bdd51e9cb456483f1c5741 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :flash, FlashWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 23.818182 | 56 | 0.732824 |
62112caee0cee74ffb5e70f83fc6143ae308f99d | 1,244 | ex | Elixir | lib/transmog/matcher.ex | zpeters/transmog | 026aafbb69a838e91c22e3a8582ab682567c72b8 | [
"MIT"
] | null | null | null | lib/transmog/matcher.ex | zpeters/transmog | 026aafbb69a838e91c22e3a8582ab682567c72b8 | [
"MIT"
] | null | null | null | lib/transmog/matcher.ex | zpeters/transmog | 026aafbb69a838e91c22e3a8582ab682567c72b8 | [
"MIT"
] | null | null | null | defmodule Transmog.Matcher do
@moduledoc """
`Matcher` is a module which is responsible for performing a mapping from one
key to another given a valid list of pairs.
"""
@doc """
`find/2` takes a list of pairs and a key and finds the pair in the list which
matches. If a match is found then the opposite k... | 32.736842 | 82 | 0.634244 |
621144fcb8efae5a35a1a33dce0a5f5fabb150a7 | 242 | ex | Elixir | lib/config_opts.ex | akoutmos/server_timing_plug | fde29096c1fe4957694fe06f607a5d10adaff989 | [
"MIT"
] | 7 | 2020-03-26T04:53:28.000Z | 2022-03-10T04:45:32.000Z | lib/config_opts.ex | akoutmos/server_timing_plug | fde29096c1fe4957694fe06f607a5d10adaff989 | [
"MIT"
] | null | null | null | lib/config_opts.ex | akoutmos/server_timing_plug | fde29096c1fe4957694fe06f607a5d10adaff989 | [
"MIT"
] | null | null | null | defmodule ServerTimingPlug.ConfigOpts do
@moduledoc false
alias __MODULE__
defstruct [:header_unit, :enabled]
def new(header_unit, enabled) do
%ConfigOpts{
header_unit: header_unit,
enabled: enabled
}
end
end
| 16.133333 | 40 | 0.706612 |
62114556290ead47b059313c926636528171da3c | 882 | exs | Elixir | test/level/olson_time_zone_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 928 | 2018-04-03T16:18:11.000Z | 2019-09-09T17:59:55.000Z | test/level/olson_time_zone_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 74 | 2018-04-03T00:46:50.000Z | 2019-03-10T18:57:27.000Z | test/level/olson_time_zone_test.exs | mindriot101/level | 0a2cbae151869c2d9b79b3bfb388f5d00739ae12 | [
"Apache-2.0"
] | 89 | 2018-04-03T17:33:20.000Z | 2019-08-19T03:40:20.000Z | defmodule Level.OlsonTimeZoneTest do
use Level.DataCase, async: true
alias Level.OlsonTimeZone
describe "validate/2" do
test "rejects invalid time zones" do
time_zone = "NotAValid/TimeZone"
types = %{time_zone: :string}
changeset =
{%{}, types}
|> Ecto.Changeset.cast(%{tim... | 25.2 | 93 | 0.623583 |
62116fa67c53cd6346e5ea5c1403deaabd6dcadd | 98 | exs | Elixir | test/views/page_view_test.exs | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | 2 | 2016-07-02T21:53:17.000Z | 2016-07-07T16:35:58.000Z | test/views/page_view_test.exs | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | null | null | null | test/views/page_view_test.exs | joakimk/livecoding_workspace | 2d4a30c80e61503323bccf6a1f097d83242171da | [
"MIT",
"Unlicense"
] | null | null | null | defmodule LivecodingWorkspace.PageViewTest do
use LivecodingWorkspace.ConnCase, async: true
end
| 24.5 | 47 | 0.857143 |
621171025f20438735187f941a36bdc2d851f63d | 3,986 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/settings.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/settings.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... | 67.559322 | 1,061 | 0.752885 |
621187a4c8ab7f6b890677686ca8885bf8e9a542 | 600 | ex | Elixir | hiyoko/lib/hiyoko_web/router.ex | rykawamu/phoenix_liveview_practice_01 | e30ab2304473a995a3b36335ceb212a9bbed012f | [
"MIT"
] | null | null | null | hiyoko/lib/hiyoko_web/router.ex | rykawamu/phoenix_liveview_practice_01 | e30ab2304473a995a3b36335ceb212a9bbed012f | [
"MIT"
] | 1 | 2019-09-11T14:22:29.000Z | 2019-09-11T14:22:29.000Z | hiyoko/lib/hiyoko_web/router.ex | rykawamu/phoenix_liveview_practice_01 | e30ab2304473a995a3b36335ceb212a9bbed012f | [
"MIT"
] | null | null | null | defmodule HiyokoWeb.Router do
use HiyokoWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug Phoenix.LiveView.Flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug :put_layout, {HiyokoWeb.LayoutView, :app}
end
pipelin... | 19.354839 | 50 | 0.675 |
6211a9652ce2a5ca482b24f8981c722e651795f1 | 8,620 | ex | Elixir | lib/ex_sieve/builder/where.ex | athonet-open/ex_sieve | 19d4e977f60d032f2267f1324bb5643b4deb3bf3 | [
"MIT"
] | null | null | null | lib/ex_sieve/builder/where.ex | athonet-open/ex_sieve | 19d4e977f60d032f2267f1324bb5643b4deb3bf3 | [
"MIT"
] | null | null | null | lib/ex_sieve/builder/where.ex | athonet-open/ex_sieve | 19d4e977f60d032f2267f1324bb5643b4deb3bf3 | [
"MIT"
] | null | null | null | defmodule ExSieve.Builder.Where do
@moduledoc false
import Ecto.Query
alias ExSieve.Node.{Attribute, Condition, Grouping}
@true_values [1, '1', 'T', 't', true, 'true', 'TRUE', "1", "T", "t", "true", "TRUE"]
@spec build(Ecto.Queryable.t(), Grouping.t()) :: Ecto.Query.t()
def build(query, %Grouping{combina... | 37.973568 | 118 | 0.648724 |
6211b07d5224c57642a067e2638b7103822e8c3b | 20,182 | ex | Elixir | clients/games/lib/google_api/games/v1/api/rooms.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/rooms.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/rooms.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... | 44.453744 | 217 | 0.62308 |
6211c53e7bb447bebf2c4be55abe7d15a7e78299 | 2,274 | exs | Elixir | mix.exs | PabloG6/link_preview | b00e6029e5f941e566e5b31b7dc7b9a7d490b11e | [
"Apache-2.0"
] | null | null | null | mix.exs | PabloG6/link_preview | b00e6029e5f941e566e5b31b7dc7b9a7d490b11e | [
"Apache-2.0"
] | null | null | null | mix.exs | PabloG6/link_preview | b00e6029e5f941e566e5b31b7dc7b9a7d490b11e | [
"Apache-2.0"
] | null | null | null | defmodule LinkPreview.Mixfile do
use Mix.Project
@version "1.0.3"
def project do
[
aliases: aliases(),
app: :link_preview,
deps: deps(),
description: description(),
docs: [
extras: ["README.md", "CHANGELOG.md"]
],
elixir: "~> 1.6",
elixirc_paths: elixi... | 24.989011 | 95 | 0.556288 |
6211c954b35492a939fb9aa8d1fdbf3da6c0fd64 | 676 | ex | Elixir | lib/auth_zuma/middleware/unauthenticaded_middleware.ex | victorolinasc/auth-zuma | a107130440ed79731b8e28e84ed282111f0aa1f1 | [
"Apache-2.0"
] | 3 | 2018-07-16T04:24:01.000Z | 2018-07-17T14:36:02.000Z | lib/auth_zuma/middleware/unauthenticaded_middleware.ex | victorolinasc/auth-zuma | a107130440ed79731b8e28e84ed282111f0aa1f1 | [
"Apache-2.0"
] | null | null | null | lib/auth_zuma/middleware/unauthenticaded_middleware.ex | victorolinasc/auth-zuma | a107130440ed79731b8e28e84ed282111f0aa1f1 | [
"Apache-2.0"
] | null | null | null | defmodule AuthZuma.Middleware.Unauthenticated do
@moduledoc """
Tries authentication when receiving a 401 or 403.
"""
@behaviour Tesla.Middleware
@impl true
def call(env, next, _options) do
{:ok, env} = Tesla.run(env, next)
case {env.status, env.opts[:authentication_module]} do
{status, mod... | 26 | 77 | 0.597633 |
6211fc1570a5f558c319ee7cd93dcce3e36f9a7c | 1,508 | ex | Elixir | lib/ez_calendar/calendars/calendar.ex | elixir-twister/ez_calendar | 4d08f049f4e8cd162e333f1ad296b29297a57621 | [
"MIT"
] | 7 | 2016-11-12T07:53:34.000Z | 2021-05-19T01:34:27.000Z | lib/ez_calendar/calendars/calendar.ex | elixir-twister/ez_calendar | 4d08f049f4e8cd162e333f1ad296b29297a57621 | [
"MIT"
] | 1 | 2017-04-06T15:16:22.000Z | 2017-04-06T15:16:22.000Z | lib/ez_calendar/calendars/calendar.ex | elixir-twister/ez_calendar | 4d08f049f4e8cd162e333f1ad296b29297a57621 | [
"MIT"
] | 2 | 2017-04-19T15:03:58.000Z | 2018-07-04T19:37:10.000Z | defmodule EZCalendar.Calendar do
@moduledoc """
Behaviour definition for calendar types.
"""
@type date :: String.t
@type dates :: list
@type opts :: list
@type calendar :: struct
@doc """
Returns the default HTML module that will render the calendar.
If not using the HTML features do not worr... | 28.45283 | 102 | 0.692971 |
6211fd5b9b5bbd340168c43e8cd3891088e8b03d | 5,480 | ex | Elixir | lib/thesis/stores/ecto_store.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | null | null | null | lib/thesis/stores/ecto_store.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | null | null | null | lib/thesis/stores/ecto_store.ex | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | null | null | null | defmodule Thesis.EctoStore do
@moduledoc """
Thesis.EctoStore is the most commonly-used store for Thesis pages and content.
It interfaces with the host application's repo (which is provided in the
config.exs of the host applicaton).
You can generally just use Thesis.EctoStore unless you're not using Ecto in
... | 30.10989 | 117 | 0.692153 |
621231b5bdf1a1010a9091d88002ddb17b459bd5 | 927 | exs | Elixir | mix.exs | SenecaSystems/adam7 | a3224d332ab531ebda072ec204000c592603486f | [
"MIT"
] | null | null | null | mix.exs | SenecaSystems/adam7 | a3224d332ab531ebda072ec204000c592603486f | [
"MIT"
] | null | null | null | mix.exs | SenecaSystems/adam7 | a3224d332ab531ebda072ec204000c592603486f | [
"MIT"
] | null | null | null | defmodule Adam7.Mixfile do
use Mix.Project
def project do
[
app: :adam7,
version: "0.4.0",
elixir: "~> 1.0",
deps: deps,
source_url: "https://github.com/SenecaSystems/adam7",
description: description,
package: package,
build_embedded: Mix.env == :prod,
star... | 16.854545 | 74 | 0.578209 |
62123b6242aa93d7c031305ef50e37656671026e | 6,123 | ex | Elixir | lib/sentinel/ueberauthenticator.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/ueberauthenticator.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | lib/sentinel/ueberauthenticator.ex | suranyami/sentinel | aeb421e2e61a4bc14abe89b4a92cb1943a5965fb | [
"MIT"
] | null | null | null | defmodule Sentinel.Ueberauthenticator do
@moduledoc """
Common authentication logic using the ueberauth underlying layer
"""
alias Ueberauth.Auth
alias Sentinel.{Authenticator, Changeset.Registrator, Changeset.Confirmator, Config, Ueberauth}
@unknown_error {:error, [base: {"Unknown email or password", []}]... | 34.988571 | 238 | 0.67222 |
62124dcabc474b360a80572da1e419e5beccc16f | 2,091 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name_web/mix.exs | landongrindheim/phoenix | 6540c4918be87ed98f7ef5ff6045a1fe1632ac64 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/mix.exs | landongrindheim/phoenix | 6540c4918be87ed98f7ef5ff6045a1fe1632ac64 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/mix.exs | landongrindheim/phoenix | 6540c4918be87ed98f7ef5ff6045a1fe1632ac64 | [
"MIT"
] | null | null | null | defmodule <%= web_namespace %>.MixProject do
use Mix.Project
def project do
[
app: :<%= web_app_name %>,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
e... | 31.681818 | 107 | 0.55428 |
621293132e662afaec0a33b9f1732936f167d924 | 948 | ex | Elixir | lib/auth_blog/web_server/router.ex | dcdourado/auth_blog | 29ed5d5d0d90d83a1a0a05176d0378e56de79823 | [
"MIT"
] | null | null | null | lib/auth_blog/web_server/router.ex | dcdourado/auth_blog | 29ed5d5d0d90d83a1a0a05176d0378e56de79823 | [
"MIT"
] | 1 | 2021-09-11T13:23:29.000Z | 2021-09-11T13:23:29.000Z | lib/auth_blog/web_server/router.ex | dcdourado/auth_blog | 29ed5d5d0d90d83a1a0a05176d0378e56de79823 | [
"MIT"
] | null | null | null | defmodule AuthBlog.WebServer.Router do
@moduledoc """
Defines routes and links them to `AuthBlog.WebServer.Controller` by method.
Configuration example:
{"/path", method: handler}
"""
alias AuthBlog.WebServer.{Controller, RESTHandler}
@namespace "/api/v1"
@routes [
{"/posts", get: &Controller.... | 27.085714 | 87 | 0.60654 |
6212b19a11136cd21f9341923e7d96cf449f82ef | 4,111 | ex | Elixir | lib/bolt_sips/internals/pack_stream/decoder_v2.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | null | null | null | lib/bolt_sips/internals/pack_stream/decoder_v2.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | null | null | null | lib/bolt_sips/internals/pack_stream/decoder_v2.ex | cheerfulstoic/bolt_sips | e86d6443f69d59f6cc41ecae5d0718ed05ea4904 | [
"Apache-2.0"
] | null | null | null | defmodule Bolt.Sips.Internals.PackStream.DecoderV2 do
@moduledoc false
_module_doc = """
Bolt V2 has specification for decoding:
- Temporal types:
- Local Date
- Local Time
- Local DateTime
- Time with Timezone Offset
- DateTime with Timezone Id
- DateTime with Timezone Offset
- Dura... | 30.909774 | 98 | 0.693019 |
6212d4a877ddf96ffd34718f53bbd4a2f7a11269 | 1,693 | ex | Elixir | lib/farmbot/repo/after_sync_worker.ex | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/repo/after_sync_worker.ex | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | null | null | null | lib/farmbot/repo/after_sync_worker.ex | colocolo317/farmbot | 570281057c3f2791a2e0f8c6b8b659aa338d7b40 | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.Repo.AfterSyncWorker do
@moduledoc false
use GenServer
use Farmbot.Logger
def start_link do
GenServer.start_link(__MODULE__, [], [name: __MODULE__])
end
def init([]) do
Farmbot.Repo.Registry.subscribe()
Farmbot.PinBinding.Manager.confirm_asset_storage_up()
{:ok, %{}}
e... | 32.557692 | 148 | 0.713526 |
6213121307e378c24f962c7a774e07d6de8c7ef8 | 8,359 | ex | Elixir | lib/sanbase/event_bus/event_validation.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/event_bus/event_validation.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/event_bus/event_validation.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.EventBus.EventValidation do
@moduledoc """
When Sanbase.EventBus.notify/1 is called, the event is emitted only if it
passes the validation in this module. Every event_type must have a function
header definition that pattern matches on it and validates its fields
"""
######################... | 40.1875 | 99 | 0.55521 |
621312fe4860d94a02c0407c6234b579256f5292 | 155 | exs | Elixir | test/test_helper.exs | andra49/mogrify | ae8a02f88c979c71808afa09ca024bdc1a74ea25 | [
"MIT"
] | null | null | null | test/test_helper.exs | andra49/mogrify | ae8a02f88c979c71808afa09ca024bdc1a74ea25 | [
"MIT"
] | null | null | null | test/test_helper.exs | andra49/mogrify | ae8a02f88c979c71808afa09ca024bdc1a74ea25 | [
"MIT"
] | null | null | null | import Mogrify.Detect
excluded =
if has_imagemagick?() && has_pango?() do
[:skip]
else
[:skip, :pango]
end
ExUnit.start(exclude: excluded)
| 14.090909 | 42 | 0.651613 |
6213516603ff8521b17757f4ff8f7bd098883e08 | 1,878 | exs | Elixir | clients/container/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/container/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/container/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... | 28.029851 | 140 | 0.660277 |
62136fb5e4ff2d039d369c1054803ed130111621 | 14,953 | ex | Elixir | lib/nebulex/adapters/local/generation.ex | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | null | null | null | lib/nebulex/adapters/local/generation.ex | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | null | null | null | lib/nebulex/adapters/local/generation.ex | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | null | null | null | defmodule Nebulex.Adapters.Local.Generation do
@moduledoc """
Generational garbage collection process.
The generational garbage collector manage the heap as several sub-heaps,
known as generations, based on age of the objects. An object is allocated
in the youngest generation, sometimes called the nursery, a... | 28.811175 | 98 | 0.671838 |
621389cc35fe419f510d0bb34ff8d528d811f4d5 | 35,160 | exs | Elixir | test/paginator_test.exs | BohemianCoding/paginator | 7521830dfd1ec3e192e3979e8303de06e65b7e7a | [
"MIT"
] | null | null | null | test/paginator_test.exs | BohemianCoding/paginator | 7521830dfd1ec3e192e3979e8303de06e65b7e7a | [
"MIT"
] | 1 | 2019-09-16T12:11:23.000Z | 2019-09-18T07:58:11.000Z | test/paginator_test.exs | BohemianCoding/paginator | 7521830dfd1ec3e192e3979e8303de06e65b7e7a | [
"MIT"
] | null | null | null | defmodule PaginatorTest do
use Paginator.DataCase
doctest Paginator
alias Calendar.DateTime, as: DT
alias Paginator.Cursor
setup :create_data
test "paginates forward", %{
payments: {p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12}
} do
opts = [cursor_fields: [:charged_at, :id], sort_directio... | 34.504416 | 108 | 0.575199 |
6213bd3f822519a1a7362cc8e6370b757d95da4c | 3,010 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.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 ... | 37.625 | 140 | 0.703987 |
6213cff29477b49c8ace216913a52be37b3b9880 | 122 | ex | Elixir | test/support/repo.ex | eahanson/schema_assertions | 35760374e2c1e837c5ea6fc0bde4baea53677c83 | [
"Apache-2.0"
] | null | null | null | test/support/repo.ex | eahanson/schema_assertions | 35760374e2c1e837c5ea6fc0bde4baea53677c83 | [
"Apache-2.0"
] | null | null | null | test/support/repo.ex | eahanson/schema_assertions | 35760374e2c1e837c5ea6fc0bde4baea53677c83 | [
"Apache-2.0"
] | null | null | null | defmodule SchemaAssertions.Test.Repo do
use Ecto.Repo, otp_app: :schema_assertions, adapter: Ecto.Adapters.Postgres
end
| 30.5 | 77 | 0.819672 |
6213d565ecce4ed7c0e46b9730a90a80958a2f92 | 1,323 | ex | Elixir | lib/mix/tasks/phx_up.del.plug.ex | henriquefernandez/phoenix_up | b549a2e464d858a090ffa7b0a4100a71561807df | [
"MIT"
] | 27 | 2020-02-22T21:15:33.000Z | 2021-12-25T07:31:14.000Z | lib/mix/tasks/phx_up.del.plug.ex | henriquefernandez/phoenix_up | b549a2e464d858a090ffa7b0a4100a71561807df | [
"MIT"
] | 1 | 2020-03-07T12:14:12.000Z | 2020-03-07T12:14:12.000Z | lib/mix/tasks/phx_up.del.plug.ex | henriquefernandez/phoenix_up | b549a2e464d858a090ffa7b0a4100a71561807df | [
"MIT"
] | 2 | 2020-03-03T13:09:08.000Z | 2020-07-24T05:07:45.000Z | defmodule Mix.Tasks.PhxUp.Del.Plug do
@shortdoc "Delete a plug file and its test file"
@moduledoc """
Delete a plug file and a plug test file.
mix phx_up.del.plug Request.Login.Filter
or
mix phx_up.del.p Request.Login.Filter
The first argument is the plug name.
"""
use Mix.Task
@doc fa... | 24.054545 | 80 | 0.583522 |
6214312646beab34aac8477804a8756edecc477d | 61 | exs | Elixir | test/cizen_test.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | 1 | 2019-04-08T08:00:06.000Z | 2019-04-08T08:00:06.000Z | test/cizen_test.exs | ryo33/cizen | e1d3e232e4d3e72dfc7ef122d936ae26fa60c084 | [
"MIT"
] | null | null | null | test/cizen_test.exs | ryo33/cizen | e1d3e232e4d3e72dfc7ef122d936ae26fa60c084 | [
"MIT"
] | null | null | null | defmodule CizenTest do
use ExUnit.Case
doctest Cizen
end
| 12.2 | 22 | 0.786885 |
621448484050cbf9672dac844705a0b9d48504ff | 509 | exs | Elixir | test/models/user_test.exs | X0nic/officetournament | 4d1c7464bf4a6da2a97247ec698e35f9628c6b01 | [
"MIT"
] | 1 | 2015-09-18T04:41:01.000Z | 2015-09-18T04:41:01.000Z | test/models/user_test.exs | X0nic/officetournament | 4d1c7464bf4a6da2a97247ec698e35f9628c6b01 | [
"MIT"
] | null | null | null | test/models/user_test.exs | X0nic/officetournament | 4d1c7464bf4a6da2a97247ec698e35f9628c6b01 | [
"MIT"
] | null | null | null | defmodule Officetournament.UserTest do
use Officetournament.ModelCase
alias Officetournament.User
@valid_attrs %{email: "some content", name: "some content", username: "ausername"}
@invalid_attrs %{email: "justan@email.com"}
test "changeset with valid attributes" do
changeset = User.changeset(%User{}, ... | 26.789474 | 84 | 0.734774 |
6214583751df9e3d32407fb1e02db954d93d597a | 1,176 | ex | Elixir | lib/deco/trace.ex | vic/deco | 89bce9501a1abf9fa9f79810110eef38a8f04546 | [
"Apache-2.0"
] | 23 | 2018-03-07T07:40:28.000Z | 2020-10-06T03:35:20.000Z | lib/deco/trace.ex | vic/deco | 89bce9501a1abf9fa9f79810110eef38a8f04546 | [
"Apache-2.0"
] | 1 | 2018-03-07T19:12:00.000Z | 2019-04-28T06:59:10.000Z | lib/deco/trace.ex | vic/deco | 89bce9501a1abf9fa9f79810110eef38a8f04546 | [
"Apache-2.0"
] | null | null | null | defmodule Deco.Trace do
@doc """
Traces function execution via Logger.info
Prints the arguments given and the result of the decorated function.
This implementation prints the arguments before applying them to
the decorated function, thus you'll see what was called even if
no function guards matches.
T... | 26.133333 | 92 | 0.609694 |
6214a0cd31c5032a4d8e4a6cb66f18c2b9c9cf8c | 34,879 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_https_proxies.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_https_proxies.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_https_proxies.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... | 53.250382 | 511 | 0.661458 |
6214a3ce84e57094d22f549c98a9e743b9b89f4a | 1,668 | exs | Elixir | elixir/auction_umbrella/apps/auction_web/mix.exs | kendru/darwin | 67096eb900bc36d30bf5ce36d38aaa6db86a29a2 | [
"MIT"
] | 5 | 2021-11-17T04:37:39.000Z | 2022-01-02T06:43:23.000Z | elixir/auction_umbrella/apps/auction_web/mix.exs | kendru/darwin | 67096eb900bc36d30bf5ce36d38aaa6db86a29a2 | [
"MIT"
] | 3 | 2021-05-21T21:50:11.000Z | 2021-11-21T14:34:53.000Z | elixir/auction_umbrella/apps/auction_web/mix.exs | kendru/darwin | 67096eb900bc36d30bf5ce36d38aaa6db86a29a2 | [
"MIT"
] | 2 | 2021-11-16T14:14:05.000Z | 2021-12-31T02:01:06.000Z | defmodule AuctionWeb.MixProject do
use Mix.Project
def project do
[
app: :auction_web,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.7",
elixirc_paths: elix... | 26.0625 | 67 | 0.570743 |
6214ce08a61ab4e086bb3e01314f79c622669a64 | 7,329 | exs | Elixir | .credo.exs | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | .credo.exs | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | .credo.exs | fstromback/bitpal | 2c50e6700d7383b4f025b3734ba37257c69ce47e | [
"BSD-3-Clause-Clear"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.573684 | 97 | 0.609087 |
62150f8831be4b65fe2fd0c1fb1e81dee44dd14a | 1,349 | exs | Elixir | episode-035/config/dev.exs | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 84 | 2016-07-02T05:21:36.000Z | 2021-02-12T22:45:45.000Z | episode-035/config/dev.exs | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 3 | 2016-07-02T06:03:47.000Z | 2017-06-03T14:11:06.000Z | episode-035/config/dev.exs | thaterikperson/elmseeds | 72b09358926287ab4ea79893196d1ba002f190b3 | [
"MIT"
] | 6 | 2017-02-16T19:33:49.000Z | 2019-04-05T19:27:17.000Z | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :elm_is_fun, ElmIsFun.Endpoint,
http: [port: 4... | 29.326087 | 73 | 0.698295 |
62151665b4678e08e2cd0a255161aadeb0c8fe69 | 2,365 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildbot_command_events.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildbot_command_events.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/google_devtools_remotebuildbot_command_events.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"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.953125 | 182 | 0.718393 |
62153368cddaeff8a207d53b14413c02b17f04ee | 866 | ex | Elixir | chp06-07/dungeon_crawl/lib/dungeon_crawl/cli/hero_choice.ex | ulissesalmeida/learn-fp-with-elixir-exercises | 4286f6ecbca55c7487f4ad0f4dfbc323efa8e105 | [
"MIT"
] | 5 | 2019-03-21T00:01:38.000Z | 2021-02-26T12:41:43.000Z | chp06-07/dungeon_crawl/lib/dungeon_crawl/cli/hero_choice.ex | ulissesalmeida/learn-fp-with-elixir-exercises | 4286f6ecbca55c7487f4ad0f4dfbc323efa8e105 | [
"MIT"
] | null | null | null | chp06-07/dungeon_crawl/lib/dungeon_crawl/cli/hero_choice.ex | ulissesalmeida/learn-fp-with-elixir-exercises | 4286f6ecbca55c7487f4ad0f4dfbc323efa8e105 | [
"MIT"
] | 4 | 2019-07-12T22:00:20.000Z | 2020-12-23T22:23:40.000Z | #---
# Excerpted from "Learn Functional Programming with Elixir",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpo... | 30.928571 | 87 | 0.728637 |
62154ed09dfe0cc863f8624727b4bdcd38cf8098 | 409 | ex | Elixir | memory_backend/lib/memory_backend/model/card.ex | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | null | null | null | memory_backend/lib/memory_backend/model/card.ex | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | 15 | 2020-12-23T16:09:28.000Z | 2020-12-26T22:32:47.000Z | memory_backend/lib/memory_backend/model/card.ex | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | null | null | null | defmodule MemoryBackend.Model.Card do
use Ecto.Schema
import Ecto.Changeset
@derive {Jason.Encoder, only: [:id, :deck_id]}
schema "cards" do
field :image, :binary
belongs_to(:deck, MemoryBackend.Model.Deck)
timestamps()
end
@doc false
def changeset(card, attrs) do
card
|> cast(attr... | 18.590909 | 48 | 0.662592 |
621553f7ceb8d3371e330bd1f48095301f61c022 | 16,870 | exs | Elixir | test/xema/cast/map_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/xema/cast/map_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/xema/cast/map_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Xema.Cast.MapTest do
use ExUnit.Case, async: true
import AssertBlame
import Xema, only: [cast: 2, cast!: 2, validate: 2]
alias Xema.{CastError, ValidationError}
@set [1, 1.1, [42], {:tuple}, :atom]
#
# Xema.cast/2
#
describe "cast/2 with a minimal map schema" do
setup do
%{
... | 27.930464 | 90 | 0.512685 |
621569ec13cace5d4bbfeffe582b8ff88e3d15fa | 130 | ex | Elixir | lib/tint/cmyk/conversions/from_any.ex | tlux/tint | 742b3cc8ffd5e90bc78fe0413286af8ec593298c | [
"MIT"
] | 14 | 2019-10-09T19:36:04.000Z | 2022-01-28T12:00:56.000Z | lib/tint/cmyk/conversions/from_any.ex | tlux/tint | 742b3cc8ffd5e90bc78fe0413286af8ec593298c | [
"MIT"
] | null | null | null | lib/tint/cmyk/conversions/from_any.ex | tlux/tint | 742b3cc8ffd5e90bc78fe0413286af8ec593298c | [
"MIT"
] | null | null | null | defimpl Tint.CMYK.Convertible, for: Any do
def convert(color) do
color
|> Tint.to_rgb()
|> Tint.to_cmyk()
end
end
| 16.25 | 42 | 0.638462 |
62157f3e5a849ef2fa5691250844ae7f59227c0d | 2,300 | exs | Elixir | test/controllers/round_controller_test.exs | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | test/controllers/round_controller_test.exs | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | test/controllers/round_controller_test.exs | mfunaro/handiman-api | 66357caa55c2b1fb696471c04e602b5546879cf4 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule HandimanApi.RoundControllerTest do
use HandimanApi.ConnCase
alias HandimanApi.Round
@valid_attrs %{differential: "120.5", holes: 42, score: 42, tee_id: 42, user_id: 42}
@invalid_attrs %{}
setup do
conn = conn() |> put_req_header("accept", "application/json")
{:ok, conn: conn}
end
test... | 34.848485 | 98 | 0.663913 |
62158ac030a1263039bf067685c3469416382be6 | 463 | ex | Elixir | lib/unplug/predicates/request_path_not_in.ex | akoutmos/unplug | da8a775e6a8232016d36cdfe1871c807e9e6eb01 | [
"MIT"
] | 26 | 2020-04-13T04:31:42.000Z | 2022-01-19T21:12:21.000Z | lib/unplug/predicates/request_path_not_in.ex | akoutmos/unplug | da8a775e6a8232016d36cdfe1871c807e9e6eb01 | [
"MIT"
] | null | null | null | lib/unplug/predicates/request_path_not_in.ex | akoutmos/unplug | da8a775e6a8232016d36cdfe1871c807e9e6eb01 | [
"MIT"
] | 1 | 2021-09-21T00:17:28.000Z | 2021-09-21T00:17:28.000Z | defmodule Unplug.Predicates.RequestPathNotIn do
@moduledoc """
Given a request path, do not execute the plug if the request value is
in the the provided enumerable of values.
Usage:
```elixir
plug Unplug,
if: {Unplug.Predicates.RequestPathNotIn, ["/metrics", "/healthcheck"]},
do: MyApp.Plug
```
... | 22.047619 | 75 | 0.699784 |
6215cbb119ac45b35b09970184e2dc7bb000b4ef | 1,214 | ex | Elixir | graphical/lib/graphical_web/views/error_helpers.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/lib/graphical_web/views/error_helpers.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | graphical/lib/graphical_web/views/error_helpers.ex | joshmcarthur/learning-elixir | 5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7 | [
"MIT"
] | null | null | null | defmodule GraphicalWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
@doc """
Translates an error message using gettext.
"""
def translate_error({msg, opts}) do
# When using gettext, we typically pass the strings we want
# to translate as a static ar... | 35.705882 | 78 | 0.673806 |
6215d997c9c1b4ef208d9a423ebe02c06b260977 | 546 | ex | Elixir | lib/web/plugs/verify_slack.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 1 | 2020-06-03T07:45:17.000Z | 2020-06-03T07:45:17.000Z | lib/web/plugs/verify_slack.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 6 | 2021-06-17T23:13:19.000Z | 2021-08-31T21:15:21.000Z | lib/web/plugs/verify_slack.ex | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 2 | 2020-06-03T22:08:06.000Z | 2022-03-11T22:13:36.000Z | defmodule Web.Plugs.VerifySlack do
@moduledoc """
Verify a webhook is sent from slack
"""
import Plug.Conn
alias Web.Slack
def init(default), do: default
def call(conn, _opts) do
with [timestamp] <- get_req_header(conn, "x-slack-request-timestamp"),
[signature] <- get_req_header(conn, "x-... | 21.84 | 91 | 0.619048 |
6215fc95b1aa8153bf466e1cc08c7eadc1929c28 | 5,774 | ex | Elixir | lib/timber/log_entry.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | null | null | null | lib/timber/log_entry.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | null | null | null | lib/timber/log_entry.ex | axelson/timber-elixir | def9de8ebbb64a6f6d5dd85f8958d8b24f8d6c31 | [
"0BSD"
] | null | null | null | defmodule Timber.LogEntry do
@moduledoc false
# The LogEntry module formalizes the structure of every log entry as defined
# by Timber's log event JSON schema:
# https://github.com/timberio/log-event-json-schema. The ensures log lines
# adhere to a normalized and consistent structure providing for predictabil... | 24.570213 | 90 | 0.637167 |
62160b399f7141073cafe5e101f1cf108a8dfb07 | 1,418 | ex | Elixir | lib/mazes_web/endpoint.ex | angelikatyborska/mazes | cba3b1d6aaaa896f4ca505b477cf03b67523ebf0 | [
"MIT"
] | 116 | 2020-12-26T20:56:01.000Z | 2022-03-12T15:12:37.000Z | lib/mazes_web/endpoint.ex | lohayon/mazes | 98a6276ea7440af938edfb14476a5877fdc295e1 | [
"MIT"
] | null | null | null | lib/mazes_web/endpoint.ex | lohayon/mazes | 98a6276ea7440af938edfb14476a5877fdc295e1 | [
"MIT"
] | 10 | 2020-12-29T05:11:43.000Z | 2022-01-02T00:57:12.000Z | defmodule MazesWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :mazes
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_mazes_key",
... | 28.36 | 97 | 0.710155 |
6216197be990752cdf3feaa3cdd5a9b4c152c26a | 1,423 | exs | Elixir | priv/repo/seeds.exs | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | davepersing/blog_engine | 8605732f72c169d6cc2c2261a9acef0de7769403 | [
"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:
#
# BlogEngine.Repo.insert!(%BlogEngine.SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they... | 33.880952 | 133 | 0.640197 |
6216232973de66ece0b3d510ef88e45f6e7a6eb6 | 1,783 | ex | Elixir | lib/livebook/notebook/cell.ex | howard0su/livebook | 6b7825871338af0ec3f4196ec3e17d2670e6a92c | [
"Apache-2.0"
] | null | null | null | lib/livebook/notebook/cell.ex | howard0su/livebook | 6b7825871338af0ec3f4196ec3e17d2670e6a92c | [
"Apache-2.0"
] | null | null | null | lib/livebook/notebook/cell.ex | howard0su/livebook | 6b7825871338af0ec3f4196ec3e17d2670e6a92c | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Notebook.Cell do
@moduledoc false
# Data structure representing a single cell in a notebook.
#
# A cell is the smallest unit of work in a notebook.
# It may consist of text content, outputs, rendered content
# and other special forms.
alias Livebook.Utils
alias Livebook.Notebook.Cel... | 25.112676 | 82 | 0.660684 |
62164e8ffffefaf1842b1cb01439ccab44b03a22 | 2,077 | ex | Elixir | lib/retrospectivex_web.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 5 | 2018-06-27T17:51:51.000Z | 2020-10-05T09:59:04.000Z | lib/retrospectivex_web.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 1 | 2018-10-08T11:33:12.000Z | 2018-10-08T11:33:12.000Z | lib/retrospectivex_web.ex | dreamingechoes/retrospectivex | cad0df6cfde5376121d841f4a8b36861b6ec5d45 | [
"MIT"
] | 2 | 2018-10-08T11:31:55.000Z | 2020-10-05T09:59:05.000Z | defmodule RetrospectivexWeb 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 RetrospectivexWeb, :controller
use RetrospectivexWeb, :view
The definitions below will be executed for every... | 24.151163 | 69 | 0.698122 |
62167fcccee20c1c9c24dea4c5154d6f1844d577 | 2,462 | ex | Elixir | lib/tock/server.ex | malomohq/tock | 8cfa71a7dfbe857a1476fcb1bfa27e642f3bb598 | [
"MIT"
] | null | null | null | lib/tock/server.ex | malomohq/tock | 8cfa71a7dfbe857a1476fcb1bfa27e642f3bb598 | [
"MIT"
] | null | null | null | lib/tock/server.ex | malomohq/tock | 8cfa71a7dfbe857a1476fcb1bfa27e642f3bb598 | [
"MIT"
] | null | null | null | defmodule Tock.Server do
@moduledoc false
use GenServer
@type expectation_t ::
{ { module, atom, non_neg_integer }, [{ :expect | :stub, function }] }
#
# client
#
@spec join(pid) :: pid
def join(tock) do
GenServer.call(tock, :join)
end
@spec put_expectation(pid, expectation_t) :: ... | 24.376238 | 101 | 0.59342 |
621699a2cb15d9b97620a83a2b260ff9c62b0aea | 485 | ex | Elixir | lib/gems_web/views/error_view.ex | nbw/gems | eb4e253af230646563f0ddb307c499a0cab0aa2d | [
"MIT"
] | 63 | 2021-12-02T13:20:03.000Z | 2022-03-02T14:32:19.000Z | lib/gems_web/views/error_view.ex | jasonwc/gems | aa94ec613cc1f2ef49d0cc34ab8311419b634d4b | [
"MIT"
] | 1 | 2022-01-03T02:21:58.000Z | 2022-01-03T23:44:28.000Z | lib/gems_web/views/error_view.ex | jasonwc/gems | aa94ec613cc1f2ef49d0cc34ab8311419b634d4b | [
"MIT"
] | 5 | 2021-12-02T15:17:10.000Z | 2022-02-02T20:18:53.000Z | defmodule GEMSWeb.ErrorView do
use GEMSWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. For ... | 28.529412 | 61 | 0.731959 |
6216a82eba4055d8e13734c5eb07c315e2992ec8 | 1,706 | ex | Elixir | lib/hl7/2.2/segments/pv1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/segments/pv1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/segments/pv1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_2.Segments.PV1 do
@moduledoc false
require Logger
alias HL7.V2_2.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_patient_visit: nil,
patient_class: nil,
assigned_patient_location: nil,
admission_type: nil,
preadmit_number: nil,
prior_p... | 27.516129 | 40 | 0.673505 |
6216c3ed5b8fff03acb7e3a573395db3de03314f | 3,166 | exs | Elixir | apps/feedex_ui/test/feedex_ui/controllers/user_session_controller_test.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_ui/test/feedex_ui/controllers/user_session_controller_test.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_ui/test/feedex_ui/controllers/user_session_controller_test.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | defmodule FeedexUi.UserSessionControllerTest do
use FeedexUi.ConnCase, async: true
import FeedexCore.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/log_in" do
test "renders log in page", %{conn: conn} do
conn = get(conn, Routes.user_session_path(conn, :new))
... | 31.979798 | 89 | 0.60139 |
6216d1fb0e88e4117b73e116cc4b403275f3d50c | 2,551 | ex | Elixir | web/views/delivery_service_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/views/delivery_service_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/views/delivery_service_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.DeliveryServiceView do
use Tox.Web, :view
def render("index.json", %{deliveryservices: deliveryservices}) do
%{data: render_many(deliveryservices, Tox.DeliveryServiceView, "delivery_service.json")}
end
def render("show.json", %{delivery_service: delivery_service}) do
%{data: render_one(d... | 46.381818 | 92 | 0.782046 |
6216da26a289d4e5094ada7f3b3fba7edba8f4df | 69 | exs | Elixir | test/test_helper.exs | lukkor/exlog | f2812d25e7712c41db5a9bf5bf3977255916c8e1 | [
"MIT"
] | null | null | null | test/test_helper.exs | lukkor/exlog | f2812d25e7712c41db5a9bf5bf3977255916c8e1 | [
"MIT"
] | null | null | null | test/test_helper.exs | lukkor/exlog | f2812d25e7712c41db5a9bf5bf3977255916c8e1 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Exlog.Repo, :manual)
| 13.8 | 51 | 0.753623 |
62170c058176c5b98d8038445d82e41c9a98fee8 | 868 | ex | Elixir | lib/ex_admin/themes/active_admin/table.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2018-08-30T20:20:56.000Z | 2018-08-30T20:20:56.000Z | lib/ex_admin/themes/active_admin/table.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | null | null | null | lib/ex_admin/themes/active_admin/table.ex | 8thlight/ex_admin | 314d4068270c47799ec54f719073a565222bcfad | [
"MIT"
] | 2 | 2018-07-12T07:44:50.000Z | 2018-07-19T11:45:09.000Z | defmodule ExAdmin.Theme.ActiveAdmin.Table do
@moduledoc false
import ExAdmin.Table
import ExAdmin.Gettext
alias ExAdmin.Utils
use Xain
@table_opts [border: "0", cellspacing: "0", cellpadding: "0"]
def theme_panel(conn, schema) do
div(".panel") do
h3(schema[:name] || "")
div(".panel_conte... | 28.933333 | 111 | 0.708525 |
621722730697a804cbe378ea56050c54d7aa41d1 | 54,950 | exs | Elixir | test/mint/http2/conn_test.exs | muxinc/mint | d6dd518f89fe63e061555cd17698388537760c23 | [
"Apache-2.0"
] | null | null | null | test/mint/http2/conn_test.exs | muxinc/mint | d6dd518f89fe63e061555cd17698388537760c23 | [
"Apache-2.0"
] | null | null | null | test/mint/http2/conn_test.exs | muxinc/mint | d6dd518f89fe63e061555cd17698388537760c23 | [
"Apache-2.0"
] | null | null | null | defmodule Mint.HTTP2Test do
use ExUnit.Case, async: true
import Mint.HTTP2.Frame
import ExUnit.CaptureLog
alias Mint.{
HTTPError,
HTTP2,
HTTP2.TestServer,
TransportError
}
setup :start_connection
defmacrop assert_recv_frames(frames) when is_list(frames) do
quote do: unquote(frames)... | 34.451411 | 98 | 0.576833 |
621733642a01c250ade3c6b69621356dbc3aec2a | 495 | ex | Elixir | lib/mailman/smtp_config.ex | Route-Now/mailman | 24b99cdb8553b441be7e84f2350fe2b93ddd837a | [
"MIT"
] | null | null | null | lib/mailman/smtp_config.ex | Route-Now/mailman | 24b99cdb8553b441be7e84f2350fe2b93ddd837a | [
"MIT"
] | null | null | null | lib/mailman/smtp_config.ex | Route-Now/mailman | 24b99cdb8553b441be7e84f2350fe2b93ddd837a | [
"MIT"
] | null | null | null | defmodule Mailman.SmtpConfig do
@moduledoc """
A config struct for external SMTP server adapter.
"""
@derive {Inspect, except: [:password]}
defstruct relay: "",
username: "",
password: "",
port: 1111,
ssl: false,
tls: :never,
auth: :alwa... | 23.571429 | 63 | 0.610101 |
621778d18c5898e8f4a02310a807dbe1d455a105 | 2,034 | ex | Elixir | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_cancel_subscription_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_cancel_subscription_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/payments_reseller_subscription/lib/google_api/payments_reseller_subscription/v1/model/google_cloud_payments_reseller_subscription_v1_cancel_subscription_response.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... | 34.474576 | 193 | 0.780236 |
6217a791da52390045b159f99cf6051eb3868e63 | 2,739 | exs | Elixir | src/008/problem008.exs | fredericojordan/project-euler | 75c3f519d5a6ad610362b6904f8fa4d1cde05448 | [
"MIT"
] | 9 | 2018-05-06T04:43:08.000Z | 2020-12-01T20:51:34.000Z | src/008/problem008.exs | fredericojordan/project-euler | 75c3f519d5a6ad610362b6904f8fa4d1cde05448 | [
"MIT"
] | null | null | null | src/008/problem008.exs | fredericojordan/project-euler | 75c3f519d5a6ad610362b6904f8fa4d1cde05448 | [
"MIT"
] | null | null | null | #!/usr/bin/env elixir
defmodule Problem008 do
@moduledoc """
The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495... | 59.543478 | 1,015 | 0.865279 |
6217be13727d7dff9e2f52d788b9299f8aff84f6 | 906 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.555556 | 74 | 0.764901 |
6217c8f7c4ab9b29dd3aee859c9b00bda769ea54 | 6,752 | ex | Elixir | lib/mix/lib/mix/tasks/new.ex | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/new.ex | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/new.ex | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.New do
use Mix.Task
import Mix.Generator
import Mix.Utils, only: [camelize: 1, underscore: 1]
@shortdoc "Creates a new Elixir project"
@moduledoc """
Creates a new Elixir project.
It expects the path of the project as argument.
mix new PATH [--bare] [--module MODULE] [--umbre... | 23.943262 | 127 | 0.616706 |
6217d37ac0bf134aceb28d86ca27f0f350c3682e | 1,138 | exs | Elixir | config/config.exs | DianaOlympos/EVE_Crest_fetcher | 26e98b31d4c80ae9c78b5b9398966da6f9c3abe2 | [
"MIT"
] | 1 | 2016-02-01T14:33:37.000Z | 2016-02-01T14:33:37.000Z | config/config.exs | DianaOlympos/EVE_Crest_fetcher | 26e98b31d4c80ae9c78b5b9398966da6f9c3abe2 | [
"MIT"
] | null | null | null | config/config.exs | DianaOlympos/EVE_Crest_fetcher | 26e98b31d4c80ae9c78b5b9398966da6f9c3abe2 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.709677 | 73 | 0.756591 |
6217e8fa5d3698bd73f635c83069e997e395f77b | 790 | ex | Elixir | lib/phoenix_oauth2_provider/controllers/token_controller.ex | valuechainfactory/phoenix_oauth2_provider | 5219115e6ca08af427b05771b1e1e6f9e45dc054 | [
"MIT"
] | 68 | 2017-04-08T08:31:19.000Z | 2022-02-08T11:41:08.000Z | lib/phoenix_oauth2_provider/controllers/token_controller.ex | valuechainfactory/phoenix_oauth2_provider | 5219115e6ca08af427b05771b1e1e6f9e45dc054 | [
"MIT"
] | 32 | 2017-08-24T19:11:57.000Z | 2021-12-29T07:18:49.000Z | lib/phoenix_oauth2_provider/controllers/token_controller.ex | valuechainfactory/phoenix_oauth2_provider | 5219115e6ca08af427b05771b1e1e6f9e45dc054 | [
"MIT"
] | 29 | 2017-04-07T22:45:46.000Z | 2022-03-08T15:55:42.000Z | defmodule PhoenixOauth2Provider.TokenController do
@moduledoc false
use PhoenixOauth2Provider.Controller, :api
alias ExOauth2Provider.Token
@spec create(Conn.t(), map(), keyword()) :: Conn.t()
def create(conn, params, config) do
params
|> Token.grant(config)
|> case do
{:ok, access_token} ... | 21.351351 | 54 | 0.582278 |
621824d7f1857fdd74cfaa8b3796a31e4eb8f8af | 347 | ex | Elixir | user_api/lib/user_api/accounts/user.ex | uttamk/sip-of-elixr-talk | 08b4f2fddea5c3c60ecb7f646071c2ce0a46dc59 | [
"MIT"
] | null | null | null | user_api/lib/user_api/accounts/user.ex | uttamk/sip-of-elixr-talk | 08b4f2fddea5c3c60ecb7f646071c2ce0a46dc59 | [
"MIT"
] | null | null | null | user_api/lib/user_api/accounts/user.ex | uttamk/sip-of-elixr-talk | 08b4f2fddea5c3c60ecb7f646071c2ce0a46dc59 | [
"MIT"
] | null | null | null | defmodule UserApi.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field :first_name, :string
field :last_name, :string
timestamps()
end
@doc false
def changeset(user, attrs) do
user
|> cast(attrs, [:first_name, :last_name])
|> validate_required([:first_na... | 17.35 | 51 | 0.674352 |
6218658c570678770ee5bb7fde34b7bc7461f082 | 636 | exs | Elixir | mix.exs | prodis/map_vs_list_performance | 266ee688b6f8a73615d10fcf043c4b8a588ab38f | [
"MIT"
] | null | null | null | mix.exs | prodis/map_vs_list_performance | 266ee688b6f8a73615d10fcf043c4b8a588ab38f | [
"MIT"
] | null | null | null | mix.exs | prodis/map_vs_list_performance | 266ee688b6f8a73615d10fcf043c4b8a588ab38f | [
"MIT"
] | null | null | null | defmodule MapListPerformance.MixProject do
use Mix.Project
def project do
[
app: :map_list_performance,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application ... | 21.2 | 88 | 0.581761 |
62189ce7bb31df8ea9fb90bf66ee517238784ff5 | 269 | ex | Elixir | lib/indexing_reporter.ex | ashton314/indexing-reporter | 7bb9d1bb436b18a359ad4855b084b92c076b979d | [
"MIT"
] | null | null | null | lib/indexing_reporter.ex | ashton314/indexing-reporter | 7bb9d1bb436b18a359ad4855b084b92c076b979d | [
"MIT"
] | null | null | null | lib/indexing_reporter.ex | ashton314/indexing-reporter | 7bb9d1bb436b18a359ad4855b084b92c076b979d | [
"MIT"
] | null | null | null | defmodule IndexingReporter do
@moduledoc """
IndexingReporter keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 26.9 | 66 | 0.769517 |
6218b444c5155e4a1a235959c9af75cdf35ea358 | 758 | ex | Elixir | lib/mix/pow/extension.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 4 | 2018-05-07T16:37:15.000Z | 2018-07-14T00:44:12.000Z | lib/mix/pow/extension.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | null | null | null | lib/mix/pow/extension.ex | patrickbiermann/pow | ebc2ac7d6e15961dac4be38091ff75dae0d26554 | [
"MIT"
] | 1 | 2020-07-13T01:11:17.000Z | 2020-07-13T01:11:17.000Z | defmodule Mix.Pow.Extension do
@moduledoc """
Utilities module for mix extension tasks.
"""
alias Pow.Config
@spec extensions(map(), atom()) :: [atom()]
def extensions(config, otp_app) do
config
|> Map.get(:extension, [])
|> List.wrap()
|> Enum.map(&Module.concat(Elixir, &1))
|> maybe_f... | 29.153846 | 117 | 0.693931 |
6218bc85c3f59ad3eed5a276f01ca14c4832e190 | 1,143 | exs | Elixir | scenic1/config/config.exs | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | scenic1/config/config.exs | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | null | null | null | scenic1/config/config.exs | samuelventura/go-sdk | 7209256f70d39d142a2a9859061ac7ec6c19b2bc | [
"Unlicense"
] | 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
config :scenic1, target: Mix.target()
# Customize non-Elixir parts of the firmware. ... | 30.891892 | 72 | 0.773403 |
6218f30cafc0459b5a39d5b82d70d814ea29453c | 1,183 | ex | Elixir | clients/cloud_trace/lib/google_api/cloud_trace/v1/model/traces.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/lib/google_api/cloud_trace/v1/model/traces.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_trace/lib/google_api/cloud_trace/v1/model/traces.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... | 30.333333 | 82 | 0.745562 |
6218f75a6a26fea5fd8e087bcbb83e4e774bd2a6 | 941 | ex | Elixir | hello_phx/test/support/channel_case.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | hello_phx/test/support/channel_case.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | hello_phx/test/support/channel_case.ex | benjohns1/phoenix-sandbox | 58fa6650828882f684a37de7af48d9fb6bd39f59 | [
"MIT"
] | null | null | null | defmodule HelloPhxWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interacts w... | 24.763158 | 70 | 0.717322 |
6219130e400d0d441587ee24e6e2880b369ac3a1 | 28,307 | ex | Elixir | lib/brando_admin/components/form/input/blocks.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando_admin/components/form/input/blocks.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando_admin/components/form/input/blocks.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule BrandoAdmin.Components.Form.Input.Blocks do
use BrandoAdmin, :live_component
use Phoenix.HTML
import Ecto.Changeset
import BrandoAdmin.Components.Form.Input.Blocks.Utils
import Brando.Gettext
alias Brando.Utils
alias BrandoAdmin.Components.Content
alias BrandoAdmin.Components.Form
alias Br... | 34.647491 | 625 | 0.567492 |
62191fa00d4ec9397cfc4c88fadbea40c909116d | 876 | ex | Elixir | clients/vault/lib/google_api/vault/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/vault/lib/google_api/vault/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.444444 | 74 | 0.756849 |
621953fe97d8e36b7fa7ed37b736f784a357af23 | 1,580 | exs | Elixir | mix.exs | joonatank/koala | 71d613c2a1d26fb28078687b72522f0122a9e6ff | [
"MIT"
] | null | null | null | mix.exs | joonatank/koala | 71d613c2a1d26fb28078687b72522f0122a9e6ff | [
"MIT"
] | null | null | null | mix.exs | joonatank/koala | 71d613c2a1d26fb28078687b72522f0122a9e6ff | [
"MIT"
] | null | null | null | defmodule Koala.Mixfile do
use Mix.Project
def project do
[
app: :koala,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps... | 25.901639 | 79 | 0.582278 |
621972b213becd9ce0ab208af84de0448dbf233b | 2,123 | exs | Elixir | test/recipe/election_test.exs | kanatohodets/zookeeper-elixir | 773f63583af4f3de923ddf6a07a686330ddd3a30 | [
"MIT"
] | 19 | 2015-10-08T07:23:32.000Z | 2021-06-25T09:30:28.000Z | test/recipe/election_test.exs | kanatohodets/zookeeper-elixir | 773f63583af4f3de923ddf6a07a686330ddd3a30 | [
"MIT"
] | 1 | 2016-02-18T22:39:01.000Z | 2016-02-18T22:39:01.000Z | test/recipe/election_test.exs | kanatohodets/zookeeper-elixir | 773f63583af4f3de923ddf6a07a686330ddd3a30 | [
"MIT"
] | 20 | 2015-08-13T00:04:08.000Z | 2021-05-27T23:08:13.000Z | defmodule Zookeeper.ElectionTest do
use ExUnit.Case
alias Zookeeper.Client, as: ZK
alias Zookeeper.Election, as: E
defmodule TestServer do
use GenServer
require Logger
def start_link(identifier, test_pid, opts \\ []) do
GenServer.start_link(__MODULE__, {test_pid, identifier}, opts)
end... | 27.571429 | 92 | 0.684409 |
621974af3b672ea20092ea516329274a82c38d68 | 5,260 | exs | Elixir | test/ahab_test.exs | jquadrino/ahab | cc3ba1fb5c043f19b233d3fed01199b3ea1a8bcf | [
"Apache-2.0"
] | 2 | 2019-07-09T18:18:54.000Z | 2020-01-18T10:30:34.000Z | test/ahab_test.exs | jquadrino/ahab | cc3ba1fb5c043f19b233d3fed01199b3ea1a8bcf | [
"Apache-2.0"
] | null | null | null | test/ahab_test.exs | jquadrino/ahab | cc3ba1fb5c043f19b233d3fed01199b3ea1a8bcf | [
"Apache-2.0"
] | null | null | null | defmodule Ahab.Test do
use ExUnit.Case, async: false
import Supervisor.Spec
setup_all do
{:ok, _apps} = Application.ensure_all_started(:logger)
Logger.remove_backend(:console, [flush: true])
on_exit(fn() -> Logger.add_backend(:console, [flush: true]) end)
end
test "start_link/1" do
lsock =... | 31.12426 | 97 | 0.585551 |
621980291125264515499447eeacf5cfc2911c83 | 180 | ex | Elixir | lib/demo.ex | clszzyh/elixir-composite-ci-action | 2dd9c44c4e8cc00a208aa4503446c4c7d26f1d0c | [
"MIT"
] | null | null | null | lib/demo.ex | clszzyh/elixir-composite-ci-action | 2dd9c44c4e8cc00a208aa4503446c4c7d26f1d0c | [
"MIT"
] | 21 | 2021-03-23T02:05:25.000Z | 2022-03-24T02:07:42.000Z | lib/demo.ex | clszzyh/elixir-composite-ci-action | 2dd9c44c4e8cc00a208aa4503446c4c7d26f1d0c | [
"MIT"
] | null | null | null | defmodule Demo do
@external_resource readme = Path.join([__DIR__, "../README.md"])
@moduledoc readme
@version Mix.Project.config()[:version]
def version, do: @version
end
| 22.5 | 66 | 0.711111 |
6219984e2d880f7e39ad7f272aa3cd4738dae3c4 | 1,128 | exs | Elixir | elixir-intro/kode/eksempler/kjoleskap1.exs | kentdahl/nektar-nuby | 03f6624c8bf8de41dd63a0adda5456639b256bc5 | [
"MIT"
] | null | null | null | elixir-intro/kode/eksempler/kjoleskap1.exs | kentdahl/nektar-nuby | 03f6624c8bf8de41dd63a0adda5456639b256bc5 | [
"MIT"
] | null | null | null | elixir-intro/kode/eksempler/kjoleskap1.exs | kentdahl/nektar-nuby | 03f6624c8bf8de41dd63a0adda5456639b256bc5 | [
"MIT"
] | null | null | null | defmodule Kjoleskap do
def start do
tomt = []
spawn(Kjoleskap, :kjol, [tomt])
end
def kjol(innhold) do
receive do
{:sett_inn, mat} -> innhold = [mat|innhold]
{:titt, hvem} -> send hvem, {:mat, innhold}
{:ta_ut, hvem} ->
[mat|rester] = innhold
send hvem, {... | 20.509091 | 77 | 0.549645 |
6219a1ab7a506a2cdc2230b801487301e2c2e539 | 1,308 | ex | Elixir | lib/ex_dbus/dom/reverse.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | 2 | 2021-08-05T09:08:49.000Z | 2021-08-14T22:38:18.000Z | lib/ex_dbus/dom/reverse.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | null | null | null | lib/ex_dbus/dom/reverse.ex | diodechain/ex_dbus | 14d0da9a1b9eb756b0435bec63ad470877d96abf | [
"Apache-2.0"
] | 1 | 2021-12-05T03:03:05.000Z | 2021-12-05T03:03:05.000Z | defmodule ExDBus.Builder.Reverse do
use ExDBus.Spec, prefix: false
@spec reverse(service()) :: service()
def reverse({:service, name, children}) do
{:service, name, Enum.reverse(children)}
end
@spec reverse(object()) :: object()
def reverse({:object, name, children}) do
{:object, name, Enum.revers... | 29.066667 | 70 | 0.672018 |
6219b395ac4d9360095b30cf97a105f906db7390 | 215 | ex | Elixir | lib/neem/web/controllers/page_controller.ex | shankardevy/neem | b78b3da91e7fffb033be5c391d4ac1e1c05e8e22 | [
"MIT"
] | 44 | 2017-06-24T10:33:51.000Z | 2021-09-28T23:17:39.000Z | lib/neem/web/controllers/page_controller.ex | shankardevy/neem | b78b3da91e7fffb033be5c391d4ac1e1c05e8e22 | [
"MIT"
] | null | null | null | lib/neem/web/controllers/page_controller.ex | shankardevy/neem | b78b3da91e7fffb033be5c391d4ac1e1c05e8e22 | [
"MIT"
] | 7 | 2017-07-27T07:26:34.000Z | 2019-07-17T04:31:35.000Z | defmodule Neem.Web.PageController do
use Garuda.Controller
def home(conn, message) do
render(conn, "home.html", message: message)
end
def about(conn, _) do
render(conn, "about.html", [])
end
end
| 17.916667 | 47 | 0.67907 |
6219d2caeaa0aa81f1057443ddeb2cd50bdc5f26 | 428 | ex | Elixir | apps/tai/lib/tai/venue_adapters/okex/stream/auth.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/venue_adapters/okex/stream/auth.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/okex/stream/auth.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.OkEx.Stream.Auth do
@method "GET"
@path "/users/self/verify"
def args({
_account_id,
%{api_key: api_key, api_secret: api_secret, api_passphrase: api_passphrase}
}) do
timestamp = ExOkex.Auth.timestamp()
signed = ExOkex.Auth.sign(timestamp, @method, @path,... | 21.4 | 83 | 0.630841 |
6219de0161527f97eeadae1278f5c764d6ced380 | 998 | exs | Elixir | src/test/mock_server/mix.exs | kuon/java-phoenix-channel | 955bca5010cf625bfdcdc785676ed4f2ed98c581 | [
"Apache-2.0",
"MIT"
] | 18 | 2020-02-20T00:36:57.000Z | 2022-01-18T01:33:25.000Z | src/test/mock_server/mix.exs | kuon/java-phoenix-channel | 955bca5010cf625bfdcdc785676ed4f2ed98c581 | [
"Apache-2.0",
"MIT"
] | 4 | 2020-04-03T21:06:53.000Z | 2020-05-16T03:49:03.000Z | src/test/mock_server/mix.exs | kuon/java-phoenix-channel | 955bca5010cf625bfdcdc785676ed4f2ed98c581 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-05-15T09:26:24.000Z | 2021-02-19T10:54:52.000Z | defmodule MockServer.MixProject do
use Mix.Project
def project do
[
app: :mock_server,
version: "0.1.6",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps()
... | 23.209302 | 57 | 0.587174 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.