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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ea3d28931694eb9ca547f2851172b5b0f60b371 | 3,733 | exs | Elixir | test/vapor/provider/file_test.exs | autodidaddict/vapor | 319853bfce86c9b164adfc6c5ccf2455d4e1d771 | [
"MIT"
] | 533 | 2018-05-27T17:54:58.000Z | 2021-09-26T12:21:20.000Z | test/vapor/provider/file_test.exs | autodidaddict/vapor | 319853bfce86c9b164adfc6c5ccf2455d4e1d771 | [
"MIT"
] | 68 | 2018-05-28T14:26:52.000Z | 2021-09-11T23:11:34.000Z | test/vapor/provider/file_test.exs | autodidaddict/vapor | 319853bfce86c9b164adfc6c5ccf2455d4e1d771 | [
"MIT"
] | 37 | 2018-06-22T00:08:38.000Z | 2021-10-06T17:14:19.000Z | defmodule Vapor.Provider.FileTest do
use ExUnit.Case, async: false
alias Vapor.Provider
alias Vapor.Provider.File
test "raises if the format is unknown" do
assert_raise Vapor.FileFormatNotFoundError, fn ->
%File{path: "test.test"} |> Provider.load()
end
end
test "raises if the file is not f... | 25.923611 | 75 | 0.532012 |
9ea3f11353888df2216870a031be2cba5e92f8ac | 949 | exs | Elixir | mix.exs | afronski/cartographer | b909f93f600da8daf2e2ba20f6c09ecd6d45a250 | [
"MIT"
] | 2 | 2017-05-24T08:57:23.000Z | 2017-05-24T10:47:52.000Z | mix.exs | afronski/cartographer | b909f93f600da8daf2e2ba20f6c09ecd6d45a250 | [
"MIT"
] | null | null | null | mix.exs | afronski/cartographer | b909f93f600da8daf2e2ba20f6c09ecd6d45a250 | [
"MIT"
] | null | null | null | defmodule Cartographer.Mixfile do
use Mix.Project
def project do
[
app: :cartographer,
version: "0.0.1",
elixir: "~> 1.0",
test_coverage: [tool: Coverex.Task],
deps: deps,
package: package,
description: description
]
end
def application do
[
appli... | 18.25 | 65 | 0.54373 |
9ea3fac4fb2616d0b68832e5b974b7085255a417 | 1,236 | ex | Elixir | debian/emacsen-install.ex | Stephan14/lighttpd_1.4.20_code_analysis | 6107be9d939d1413f6f68cddf9cc0b5cd7568a3b | [
"BSD-3-Clause"
] | null | null | null | debian/emacsen-install.ex | Stephan14/lighttpd_1.4.20_code_analysis | 6107be9d939d1413f6f68cddf9cc0b5cd7568a3b | [
"BSD-3-Clause"
] | null | null | null | debian/emacsen-install.ex | Stephan14/lighttpd_1.4.20_code_analysis | 6107be9d939d1413f6f68cddf9cc0b5cd7568a3b | [
"BSD-3-Clause"
] | 1 | 2021-04-08T21:45:02.000Z | 2021-04-08T21:45:02.000Z | #! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/lighttpd
# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
FLAVOR=$1
PACKAGE=lighttpd
if [ ${FLAVOR} = emacs ]; then ... | 26.869565 | 96 | 0.687702 |
9ea404f9bca423013125d69e4770e5aa336cbeca | 1,448 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1beta1/model/rollback_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/firestore/lib/google_api/firestore/v1beta1/model/rollback_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1beta1/model/rollback_request.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 ... | 30.808511 | 90 | 0.742403 |
9ea40c31cf194e584114b0dd30f34a4ca18d3ebe | 199 | ex | Elixir | lib/price_register/repo.ex | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | 4 | 2021-03-09T19:35:37.000Z | 2022-03-20T23:31:19.000Z | lib/price_register/repo.ex | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | null | null | null | lib/price_register/repo.ex | civictech-ie/price-register | 9112c183722b76c09e98063ec2829dc2d0b55113 | [
"Apache-2.0"
] | null | null | null | defmodule PriceRegister.Repo do
use Ecto.Repo,
otp_app: :price_register,
adapter: Ecto.Adapters.Postgres,
migration_timestamps: [type: :utc_datetime_usec]
use Quarto, limit: 250
end
| 22.111111 | 52 | 0.743719 |
9ea419e22b50eaad393d0cb67d2516758a7e8a66 | 955 | exs | Elixir | config/prod.secret.exs | tanguilp/plugoid_demo | 7ce537fc6e9e5dc68e212723b57fe76f3587246f | [
"Apache-2.0"
] | 4 | 2020-05-30T21:21:11.000Z | 2020-06-03T10:46:41.000Z | config/prod.secret.exs | tanguilp/plugoid_demo | 7ce537fc6e9e5dc68e212723b57fe76f3587246f | [
"Apache-2.0"
] | 2 | 2021-03-10T20:18:30.000Z | 2021-05-11T15:51:54.000Z | config/prod.secret.exs | tanguilp/plugoid_demo | 7ce537fc6e9e5dc68e212723b57fe76f3587246f | [
"Apache-2.0"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
... | 31.833333 | 65 | 0.735079 |
9ea425e7ec2d515ffc116252bc2c3ba10caffa27 | 2,567 | exs | Elixir | config/prod.exs | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | 2 | 2018-10-23T13:30:00.000Z | 2018-10-24T14:32:52.000Z | config/prod.exs | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | 60 | 2018-10-23T13:39:19.000Z | 2019-02-11T14:18:01.000Z | config/prod.exs | InFact-coop/your-sanctuary | 066e3b99ae52ee0d3fddac80b6aaf65ffef2bd0f | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# YourSanctuaryWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
... | 35.652778 | 90 | 0.729646 |
9ea42d50068f40e6942d8fa66fc9cd0ea9a87f2d | 1,946 | ex | Elixir | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/photo_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/photo_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/street_view_publish/lib/google_api/street_view_publish/v1/model/photo_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.92 | 175 | 0.747688 |
9ea432612f5968864022e9d5099b020d2b0183e0 | 756 | ex | Elixir | lib/toki/pattern.ex | tommy351/toki | 099591c6ab5dcbad91c4c45ff87ab7e6d05959bc | [
"MIT"
] | 3 | 2016-07-19T03:23:33.000Z | 2016-09-15T11:57:37.000Z | lib/toki/pattern.ex | tommy351/toki | 099591c6ab5dcbad91c4c45ff87ab7e6d05959bc | [
"MIT"
] | null | null | null | lib/toki/pattern.ex | tommy351/toki | 099591c6ab5dcbad91c4c45ff87ab7e6d05959bc | [
"MIT"
] | null | null | null | defmodule Toki.Pattern do
use Toki.Unit.Year, :compile
use Toki.Unit.Month, :compile
use Toki.Unit.Day, :compile
use Toki.Unit.Hour, :compile
use Toki.Unit.Minute, :compile
use Toki.Unit.Second, :compile
@spec compile(String.t) :: Regex.t
def compile(pattern) do
do_compile(pattern, "")
en... | 23.625 | 62 | 0.611111 |
9ea448f48159f23ec59a144795d312918bf532c7 | 208 | ex | Elixir | lib/compiler/structure.ex | ProtoDef-io/elixir-protodef | 9176d2439d66c713a5db7f57f26dfc5dc18f8d6f | [
"MIT"
] | 2 | 2016-03-31T16:23:39.000Z | 2016-05-20T17:42:38.000Z | lib/compiler/structure.ex | McEx/ProtoDef | 9176d2439d66c713a5db7f57f26dfc5dc18f8d6f | [
"MIT"
] | 1 | 2016-04-02T08:54:49.000Z | 2016-04-02T08:54:49.000Z | lib/compiler/structure.ex | McEx/ProtoDef | 9176d2439d66c713a5db7f57f26dfc5dc18f8d6f | [
"MIT"
] | null | null | null | defmodule ProtoDef.Compiler.Structure do
def gen_for_type({:type_ref, typ, _}, _ctx), do: {:type_ref, typ}
def gen_for_type(type, ctx) do
apply(type.__struct__, :structure, [type, ctx])
end
end
| 23.111111 | 67 | 0.697115 |
9ea45491d9dcab31889be979849146c092d2804c | 1,216 | ex | Elixir | ros/ros_service/lib/ros_service.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_service/lib/ros_service.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_service/lib/ros_service.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.Service do
@moduledoc false
use GenServer
alias Phoenix.Channels.GenSocketClient
def send_newdata_message(orderid) do
GenSocketClient.call(Ros.Service.DataSocketClient, {:new_data, orderid}, 3000)
end
# def get_data(for) do
# GenServer.call(__MODULE__, {:getdata, for}, 3000)
# end
... | 25.333333 | 83 | 0.677632 |
9ea457614c4f6488310e026c994b32af626ed2d5 | 941 | exs | Elixir | config/config.exs | Arqui2018/2F_wallet_ms | 3b5cdb71f1590f7340460f13a086918448bc3fae | [
"MIT"
] | null | null | null | config/config.exs | Arqui2018/2F_wallet_ms | 3b5cdb71f1590f7340460f13a086918448bc3fae | [
"MIT"
] | null | null | null | config/config.exs | Arqui2018/2F_wallet_ms | 3b5cdb71f1590f7340460f13a086918448bc3fae | [
"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 :wallet_ms,
ecto_repos: [WalletMs.Repo]
... | 33.607143 | 86 | 0.763018 |
9ea4688c83f3ef8cf56478f034b590ba5189fc27 | 6,119 | ex | Elixir | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/policy.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/policy.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/policy.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... | 57.186916 | 497 | 0.724465 |
9ea47e362d9da4602aec703f06ad8b9a1ae0473c | 1,768 | exs | Elixir | config/test.exs | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | config/test.exs | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"MIT"
] | null | null | null | config/test.exs | IrinaS-D/tailwind-beginner-site | 999b16fd89b20b6af4e33bb51acca670ccda6216 | [
"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.
[
{:admin, Legendary.Admin},
{:app, AppWeb},
{:core, Legendary.AuthWeb},
{:content, Legendary.Content},
{:core, Legendary.CoreWeb},
{:object_storage, Legendary.ObjectStorageWeb}
]
|> Enum.map(fn... | 26.38806 | 111 | 0.720023 |
9ea4930f05bdbb6c3ff44284c153cb75073c18bf | 4,019 | ex | Elixir | projects/api/lib/margaret/stars/stars.ex | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 82 | 2017-11-06T01:00:55.000Z | 2020-12-09T10:35:29.000Z | projects/api/lib/margaret/stars/stars.ex | dbstratta/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 98 | 2017-11-06T22:57:32.000Z | 2020-07-03T04:46:39.000Z | projects/api/lib/margaret/stars/stars.ex | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 10 | 2017-11-16T05:31:58.000Z | 2020-10-29T18:02:35.000Z | defmodule Margaret.Stars do
@moduledoc """
The Stars context.
"""
alias Ecto.Multi
alias Margaret.{
Repo,
Accounts,
Stories,
Comments,
Stars,
Notifications,
Helpers
}
alias Accounts.User
alias Stories.Story
alias Comments.Comment
alias Stars.Star
@type starrable :: ... | 21.842391 | 84 | 0.606867 |
9ea49462b8bf3544d13b73345ac19a7b128bc8f5 | 1,557 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/test_iam_permissions_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/test_iam_permissions_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/test_iam_permissions_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... | 33.12766 | 143 | 0.751445 |
9ea49b8e83f8c1568eefe6198008e1e7d2159da9 | 122 | exs | Elixir | test/translator_test.exs | atanych/translator | 0535854adefea1036752fa03de1fd623a01f222c | [
"MIT"
] | 13 | 2016-04-17T17:02:11.000Z | 2021-04-06T08:40:51.000Z | test/translator_test.exs | atanych/translator | 0535854adefea1036752fa03de1fd623a01f222c | [
"MIT"
] | 4 | 2016-04-12T02:54:30.000Z | 2016-12-26T16:26:39.000Z | test/translator_test.exs | atanych/translator | 0535854adefea1036752fa03de1fd623a01f222c | [
"MIT"
] | 5 | 2016-04-17T17:02:13.000Z | 2018-09-27T17:10:16.000Z | defmodule TranslatorTest do
use ExUnit.Case
doctest Translator
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.555556 | 27 | 0.688525 |
9ea4b29755edc92a1bd181848ef183cb0e116934 | 5,127 | ex | Elixir | lib/lexin/dictionary/xml_converter.ex | cr0t/lexin | bff2997db52a00bf770614630b8684821ab72abc | [
"MIT"
] | null | null | null | lib/lexin/dictionary/xml_converter.ex | cr0t/lexin | bff2997db52a00bf770614630b8684821ab72abc | [
"MIT"
] | 6 | 2022-01-05T12:51:37.000Z | 2022-01-13T09:52:36.000Z | lib/lexin/dictionary/xml_converter.ex | cr0t/lexin | bff2997db52a00bf770614630b8684821ab72abc | [
"MIT"
] | null | null | null | defmodule Lexin.Dictionary.XMLConverter do
@moduledoc """
In order to get quick lookups for the words in the dictionary files, we want to convert original
XML files into similar SQLite counterparts with simple structure.
Every word definition might have referential `Index`-es – the words that can point to the ... | 33.730263 | 108 | 0.655159 |
9ea4bac661d2eea7c5499f47a03e50a7a2eb6ae5 | 1,987 | ex | Elixir | lib/short_uuid.ex | truealisa/short_uuid | 81628bcb0ed33fd8e04dfd3071e9f5aee78e8304 | [
"MIT"
] | null | null | null | lib/short_uuid.ex | truealisa/short_uuid | 81628bcb0ed33fd8e04dfd3071e9f5aee78e8304 | [
"MIT"
] | null | null | null | lib/short_uuid.ex | truealisa/short_uuid | 81628bcb0ed33fd8e04dfd3071e9f5aee78e8304 | [
"MIT"
] | null | null | null | defmodule ShortUUID do
@moduledoc """
ShortUUID allows UUIDs to be encoded in a more URL- and user-friendly Base58 format:
iex> ShortUUID.encode("64d7280f-736a-4ffa-b9c0-383f43486d0b")
"DTEETeS5R2XxjrVTZxXoJS"
iex> ShortUUID.decode("DTEETeS5R2XxjrVTZxXoJS")
"64d7280f-736a-4ffa-b9c0-383f434... | 26.493333 | 86 | 0.537997 |
9ea4c0025e531b8be4f1c1614941343263421eb1 | 648 | ex | Elixir | lib/oriel_web/controllers/api.ex | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | 1 | 2022-01-27T08:17:53.000Z | 2022-01-27T08:17:53.000Z | lib/oriel_web/controllers/api.ex | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | null | null | null | lib/oriel_web/controllers/api.ex | sgeos/oriel | 145c563e1ef30119881b1c589b57e9ede7de083f | [
"BSD-3-Clause"
] | null | null | null | defmodule OrielWeb.ApiController do
use OrielWeb, :controller
defp graphql(query, variables, conn) do
context = %{remote_ip: conn.remote_ip}
query
|> Absinthe.run(OrielWeb.GraphQL.Schema, variables: variables, context: context)
|> case do
{:ok, %{data: result}} ->
result
{:ok, %... | 19.636364 | 84 | 0.557099 |
9ea4e428c60ad783ea5804f3007ac66754a7ad5f | 8,264 | exs | Elixir | test/ex_gpgme/context_test.exs | jshmrtn/ex-gpgme | 0a465254d24d192c2311acf640258fe016b9195a | [
"MIT"
] | 3 | 2017-11-30T16:47:13.000Z | 2019-02-20T20:43:05.000Z | test/ex_gpgme/context_test.exs | jshmrtn/ex-gpgme | 0a465254d24d192c2311acf640258fe016b9195a | [
"MIT"
] | 1 | 2020-07-08T18:33:26.000Z | 2020-07-08T18:47:09.000Z | test/ex_gpgme/context_test.exs | jshmrtn/ex-gpgme | 0a465254d24d192c2311acf640258fe016b9195a | [
"MIT"
] | 2 | 2018-12-31T02:03:38.000Z | 2020-07-08T17:45:14.000Z | defmodule ExGpgme.ContextTest do
@moduledoc false
use ExUnit.Case
alias ExGpgme.Context
alias ExGpgme.Results.{VerificationResult, Signature, ImportResult}
doctest Context, except: [
from_protocol: 1,
from_protocol!: 1,
import: 2,
find_key: 2,
encrypt: 4,
sign_and_encrypt: 4,
eng... | 29.098592 | 103 | 0.657672 |
9ea5019fec00ba6baa9e889085f18a2f0a18910c | 1,980 | exs | Elixir | config/prod.exs | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | config/prod.exs | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | config/prod.exs | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 31.935484 | 67 | 0.712121 |
9ea507bd0df176c7c1de5d0e304a73dfa8b216fe | 274 | ex | Elixir | lib/phx_i18n_example_web/views/page_view.ex | paulfioravanti/phx_liveview_i18n_example | a1813758f4f9ff8d2250c8776cb045a700c69077 | [
"MIT"
] | 9 | 2020-01-18T23:27:36.000Z | 2021-12-22T04:56:14.000Z | lib/phx_i18n_example_web/views/page_view.ex | paulfioravanti/phx_liveview_i18n_example | a1813758f4f9ff8d2250c8776cb045a700c69077 | [
"MIT"
] | 6 | 2020-03-29T10:53:33.000Z | 2021-05-22T12:22:54.000Z | lib/phx_i18n_example_web/views/page_view.ex | paulfioravanti/phx_i18n_example | a1813758f4f9ff8d2250c8776cb045a700c69077 | [
"MIT"
] | null | null | null | defmodule PhxI18nExampleWeb.PageView do
use PhxI18nExampleWeb, :view
import Gettext, only: [with_locale: 2]
alias PhxI18nExampleWeb.PageStyle
defdelegate article, to: PageStyle
defdelegate heading, to: PageStyle
defdelegate heading_container, to: PageStyle
end
| 27.4 | 46 | 0.80292 |
9ea51c16c73ab1aa9189ab410f49a21e83153034 | 115 | ex | Elixir | examples/apps/phx_example/lib/phx_example_web/endpoint.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 227 | 2018-09-05T15:33:23.000Z | 2022-02-25T18:12:06.000Z | examples/apps/phx_example/lib/phx_example_web/endpoint.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 211 | 2018-09-05T21:42:41.000Z | 2022-03-25T17:51:56.000Z | examples/apps/phx_example/lib/phx_example_web/endpoint.ex | tpitale/elixir_agent | f356b588fe9d7cc3b9db00d9a251e009a20b3e0e | [
"Apache-2.0"
] | 84 | 2018-09-05T04:26:26.000Z | 2022-03-09T14:28:14.000Z | defmodule PhxExampleWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :phx_example
plug PhxExampleWeb.Router
end
| 19.166667 | 45 | 0.817391 |
9ea52678c255a2bdbcf206388016aeb39ce26b61 | 12,938 | exs | Elixir | test/graphql/lang/parser_introspection_test.exs | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 719 | 2016-03-18T03:10:46.000Z | 2022-02-02T10:07:29.000Z | test/graphql/lang/parser_introspection_test.exs | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 51 | 2015-08-30T03:15:17.000Z | 2016-03-02T07:13:26.000Z | test/graphql/lang/parser_introspection_test.exs | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 34 | 2016-03-30T12:56:11.000Z | 2021-08-30T09:21:54.000Z | defmodule GraphQL.Lang.Parser.IntrospectionTest do
use ExUnit.Case, async: true
import ExUnit.TestHelpers
test "Introspection Query" do
assert_parse """
# The introspection query to end all introspection queries, copied from
# https://github.com/graphql/graphql-js/blob/master/src/utilities/intro... | 44.460481 | 93 | 0.39782 |
9ea52a3c5b410e78311fd9317fb11b0ee93a3b12 | 3,107 | ex | Elixir | lib/instream/encoder/line.ex | XiaoTeTech/instream | be469d2d8f94c9537a64b052b2dfd583c784d086 | [
"Apache-2.0"
] | null | null | null | lib/instream/encoder/line.ex | XiaoTeTech/instream | be469d2d8f94c9537a64b052b2dfd583c784d086 | [
"Apache-2.0"
] | null | null | null | lib/instream/encoder/line.ex | XiaoTeTech/instream | be469d2d8f94c9537a64b052b2dfd583c784d086 | [
"Apache-2.0"
] | null | null | null | defmodule Instream.Encoder.Line do
@moduledoc """
Encoder for the InfluxDB line protocol.
"""
alias Instream.Decoder.RFC3339
@type point ::
%{
required(:fields) => map,
required(:measurement) => binary,
optional(:tags) => map,
optional(:timestamp) =>... | 26.330508 | 95 | 0.578371 |
9ea55703f34c1f5d22f50bc1df66dbd8ac370f8b | 5,384 | ex | Elixir | clients/connectors/lib/google_api/connectors/v1/model/connection.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/connectors/lib/google_api/connectors/v1/model/connection.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/connectors/lib/google_api/connectors/v1/model/connection.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... | 58.521739 | 311 | 0.701523 |
9ea597cc1444ccac757acfde0d5286d31ff7731e | 2,867 | ex | Elixir | lib/ash/options_helpers.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/options_helpers.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | lib/ash/options_helpers.ex | savish/ash | 7faf73097a6c6f801851e9d89569b6f5e6e87f81 | [
"MIT"
] | null | null | null | defmodule Ash.OptionsHelpers do
@moduledoc """
Helpers for working with nimble options
"""
@type schema :: NimbleOptions.schema()
def merge_schemas(left, right, section \\ nil) do
new_right =
Enum.map(right, fn {key, value} ->
{key, Keyword.put(value, :subsection, section)}
end)
... | 24.715517 | 89 | 0.617719 |
9ea5ab1bd8ff4dc9fbcce53c2b7057aaf33beb04 | 2,150 | exs | Elixir | elixir/space-age/space_age_test.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/space-age/space_age_test.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"MIT"
] | null | null | null | elixir/space-age/space_age_test.exs | macborowy/exercism | c5d45e074e81b946a82a340b2730e0d2732b7e0a | [
"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.666667 | 80 | 0.704186 |
9ea5dee4f08e6883f0905f9622b8e4b65216e2d3 | 886 | exs | Elixir | apps/site/test/lib/css_helpers_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/site/test/lib/css_helpers_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/site/test/lib/css_helpers_test.exs | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule CSSHelpersTest do
use ExUnit.Case
import CSSHelpers
describe "string_to_class/1" do
test "converts string to a dash delimted string" do
assert string_to_class("Guides") == "guides"
assert string_to_class("Senior CharlieCard Event") == "senior-charliecard-event"
assert string_to_c... | 34.076923 | 86 | 0.694131 |
9ea611b453a17a047a3ad3b942de158546f04766 | 687 | ex | Elixir | web/coherence_web.ex | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | web/coherence_web.ex | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | web/coherence_web.ex | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | defmodule BioMonitor.Coherence.Web do
def view do
quote do
use Phoenix.View, root: "web/templates/coherence"
# Import convenience functions from controllers
import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1]
# Use all HTML functionality (forms, tags, etc)
... | 25.444444 | 88 | 0.701601 |
9ea6247a1ad857358a61a68dca7dac87a036371c | 385 | ex | Elixir | apps/core/lib/core/man/templates/hash_chain_verification_notification.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/man/templates/hash_chain_verification_notification.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/man/templates/hash_chain_verification_notification.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.Man.Templates.HashChainVerificationNotification do
@moduledoc false
use Confex, otp_app: :core
alias Core.Man.Client, as: ManClient
def render(failure_details) do
ManClient.render_template(
config()[:id],
%{
format: config()[:format],
locale: config()[:locale],
... | 20.263158 | 65 | 0.657143 |
9ea6329171503d9ad7e2fa34a90039eb1f7aeb79 | 2,852 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_offer_phase.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_offer_phase.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_offer_phase.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"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... | 42.567164 | 314 | 0.744039 |
9ea679db90f8e2de2fca24b51c247e10cd68cd2a | 167 | ex | Elixir | web/shipment/splitter/do_not_split.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/shipment/splitter/do_not_split.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/shipment/splitter/do_not_split.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Shipment.Splitter.DoNotSplit do
def split(order) do
line_items = order.line_items
[line_items] # only one group of all line items
end
end
| 23.857143 | 51 | 0.748503 |
9ea67bf9bdfb75a7ff9236fb1de252c1df230d23 | 6,145 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/treemap_chart_spec.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/treemap_chart_spec.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/treemap_chart_spec.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... | 74.036145 | 807 | 0.73214 |
9ea6812c55aa7139aaa0b7f204058e5bec5a150f | 1,622 | exs | Elixir | test/connect_test.exs | jarroput/molliex | 52741bf9267159438590449eb1cc47761ccf2aec | [
"MIT"
] | 12 | 2018-11-27T13:51:07.000Z | 2020-07-14T18:57:15.000Z | test/connect_test.exs | jarroput/molliex | 52741bf9267159438590449eb1cc47761ccf2aec | [
"MIT"
] | 7 | 2018-11-19T12:40:18.000Z | 2021-01-20T14:48:09.000Z | test/connect_test.exs | jarroput/molliex | 52741bf9267159438590449eb1cc47761ccf2aec | [
"MIT"
] | 4 | 2019-03-08T09:52:59.000Z | 2021-01-18T17:47:49.000Z | defmodule ConnectTest do
use ExUnit.Case
doctest Mollie
test "authorize_url with map" do
client = Mollie.Client.new()
params = %{
"client_id" => "app_dnR5f6uPDWhrvZkiL9ex7Wjj",
"state" => "a63f5cfcdaa209e2302be84da28008e8",
"scope" => "payments.read payments.write profiles.read organiz... | 39.560976 | 279 | 0.736745 |
9ea68229eaa860a6cd0e367d3fd82d073acf2b64 | 944 | exs | Elixir | test/oli_web/controllers/static_page_controller_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | test/oli_web/controllers/static_page_controller_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | test/oli_web/controllers/static_page_controller_test.exs | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule OliWeb.StaticPageControllerTest do
use OliWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to"
assert html_response(conn, 200) =~ "Learner/Educator Sign In"
assert html_response(conn, 200) =~ "Authoring Sign In"
end
descri... | 33.714286 | 96 | 0.688559 |
9ea6c96b01647c146629b73d1bbd0e1c28292a0b | 181 | exs | Elixir | test/controllers/page_controller_test.exs | avval-alumni/alumni_book | 17b27da849919312a332aaa3b39ce5c65032f2b4 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | avval-alumni/alumni_book | 17b27da849919312a332aaa3b39ce5c65032f2b4 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | avval-alumni/alumni_book | 17b27da849919312a332aaa3b39ce5c65032f2b4 | [
"MIT"
] | null | null | null | defmodule AlumniBook.PageControllerTest do
use AlumniBookWeb.ConnCase
test "GET /" do
conn = get(build_conn(), "/")
assert html_response(conn, 200) =~ "body"
end
end
| 20.111111 | 45 | 0.690608 |
9ea6db93c9d22fb77279651f8d7b5b2cb1c83275 | 9,744 | ex | Elixir | apps/broker/lib/collector/validator/transaction/validator.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 19 | 2019-09-17T18:14:36.000Z | 2021-12-06T07:29:27.000Z | apps/broker/lib/collector/validator/transaction/validator.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 5 | 2019-09-30T04:57:14.000Z | 2020-11-10T15:41:03.000Z | apps/broker/lib/collector/validator/transaction/validator.ex | iotaledger/chronicle | 73566e5613268e4b0c5951265ae4760cedb4051f | [
"Apache-2.0"
] | 2 | 2019-09-17T19:03:16.000Z | 2021-03-01T01:04:31.000Z | defmodule Broker.Collector.TransactionValidator do
@max_demand Application.get_env(:broker, :__MAX_DEMAND__) || 64
@min_demand Application.get_env(:broker, :__MIN_DEMAND__) || 0
use GenStage
require Logger
@spec start_link(Keyword.t) :: tuple
def start_link(args) do
name = name_by_topic?(args)
Ge... | 34.431095 | 98 | 0.60663 |
9ea6fdb94afbc2e50aff166c3fb6f4a2a51258ce | 77 | exs | Elixir | config/dev.exs | OffgridElectric/nerves_hub_user_api | dd77a47fd9bc51c9a76732056bc0b3fc0019f770 | [
"Apache-2.0"
] | 2 | 2019-06-18T19:59:13.000Z | 2020-01-13T18:45:50.000Z | config/dev.exs | OffgridElectric/nerves_hub_user_api | dd77a47fd9bc51c9a76732056bc0b3fc0019f770 | [
"Apache-2.0"
] | 9 | 2019-03-08T19:06:33.000Z | 2022-03-16T21:35:04.000Z | config/dev.exs | OffgridElectric/nerves_hub_user_api | dd77a47fd9bc51c9a76732056bc0b3fc0019f770 | [
"Apache-2.0"
] | 3 | 2019-11-25T12:15:30.000Z | 2021-01-22T16:17:37.000Z | use Mix.Config
config :nerves_hub_user_api,
host: "0.0.0.0",
port: 4002
| 12.833333 | 28 | 0.688312 |
9ea728067a22e661093c5b4722e8b2ebe190257f | 3,084 | ex | Elixir | lib/periodic/test.ex | QuinnWilton/parent | 7c4c983a38c25a409e8fb61c57daf8a8c083a275 | [
"MIT"
] | null | null | null | lib/periodic/test.ex | QuinnWilton/parent | 7c4c983a38c25a409e8fb61c57daf8a8c083a275 | [
"MIT"
] | null | null | null | lib/periodic/test.ex | QuinnWilton/parent | 7c4c983a38c25a409e8fb61c57daf8a8c083a275 | [
"MIT"
] | null | null | null | defmodule Periodic.Test do
@moduledoc """
Helpers for testing a periodic job.
See the "Testing" section in `Periodic` documentation for details.
"""
public_telemetry_events = ~w/started finished skipped stopped_previous/a
@telemetry_events if Mix.env() != :test,
do: public_telemetry... | 33.16129 | 97 | 0.605707 |
9ea75f3c314658893d7e62557b7de67415a9e885 | 109 | exs | Elixir | test/cx_leaderboard_test.exs | crossfield/cx_leaderboard | 600a29a767562424ea72ee4e6f7e5fb1a728e03a | [
"Apache-2.0"
] | 12 | 2018-04-14T16:59:56.000Z | 2018-09-23T06:45:03.000Z | test/cx_leaderboard_test.exs | crossfield/cx_leaderboard | 600a29a767562424ea72ee4e6f7e5fb1a728e03a | [
"Apache-2.0"
] | 1 | 2019-02-22T07:36:41.000Z | 2019-02-22T07:36:41.000Z | test/cx_leaderboard_test.exs | crossfield/cx_leaderboard | 600a29a767562424ea72ee4e6f7e5fb1a728e03a | [
"Apache-2.0"
] | 3 | 2019-02-22T07:32:57.000Z | 2021-07-19T20:04:22.000Z | defmodule CxLeaderboardTest do
use ExUnit.Case
alias CxLeaderboard.Leaderboard
doctest Leaderboard
end
| 18.166667 | 33 | 0.834862 |
9ea7686de3778222d1bff38623f6801251d3fd2f | 655 | exs | Elixir | priv/repo/migrations/20200106204106_create_cells_table.exs | sntpiraquara/mapa_celulas | 5e0b1206748bd5169cefb75b006a5489117bfda3 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200106204106_create_cells_table.exs | sntpiraquara/mapa_celulas | 5e0b1206748bd5169cefb75b006a5489117bfda3 | [
"MIT"
] | null | null | null | priv/repo/migrations/20200106204106_create_cells_table.exs | sntpiraquara/mapa_celulas | 5e0b1206748bd5169cefb75b006a5489117bfda3 | [
"MIT"
] | null | null | null | defmodule MapaCelulas.Repo.Migrations.CreateCellsTable do
use Ecto.Migration
def up do
create table(:cells) do
add :uuid, :uuid
add :title, :string
add :lat, :float
add :lng, :float
add :day_of_week, :integer
add :start_time, :string
# Addre... | 19.848485 | 57 | 0.60458 |
9ea7745c92b9e732ceecd577b53b459be7c05bcd | 1,284 | ex | Elixir | restserver_supervised/lib/restserver.ex | arquitecturas-concurrentes/iasc-otp-elixir-2019c2 | c8c6c88db978785f439596e0b5f582473b54a35f | [
"BSD-3-Clause"
] | null | null | null | restserver_supervised/lib/restserver.ex | arquitecturas-concurrentes/iasc-otp-elixir-2019c2 | c8c6c88db978785f439596e0b5f582473b54a35f | [
"BSD-3-Clause"
] | null | null | null | restserver_supervised/lib/restserver.ex | arquitecturas-concurrentes/iasc-otp-elixir-2019c2 | c8c6c88db978785f439596e0b5f582473b54a35f | [
"BSD-3-Clause"
] | null | null | null | defmodule RESTServer do
use GenServer
## Client API
def start_link([], name) do
start_link(name)
end
def start_link(name) do
GenServer.start_link(__MODULE__, :ok, [name: name])
end
# helper functions, use the callbacks
def get(server, url) do
GenServer.call(server, {:get, url})
end
d... | 19.753846 | 55 | 0.625389 |
9ea7965bd78996d251ae33515c37b25268f48c37 | 1,255 | exs | Elixir | mix.exs | maartenvanvliet/libcluster_ec2 | 10e21ab66c2e980b530961a964ebad3f610479da | [
"MIT"
] | null | null | null | mix.exs | maartenvanvliet/libcluster_ec2 | 10e21ab66c2e980b530961a964ebad3f610479da | [
"MIT"
] | null | null | null | mix.exs | maartenvanvliet/libcluster_ec2 | 10e21ab66c2e980b530961a964ebad3f610479da | [
"MIT"
] | null | null | null | defmodule ClusterEC2.Mixfile do
use Mix.Project
def project do
[
app: :libcluster_ec2,
version: "0.6.0",
elixir: "~> 1.4",
name: "libcluster_ec2",
source_url: "https://github.com/kyleaa/libcluster_ec2",
homepage_url: "https://github.com/kyleaa/libcluster_ec2",
descript... | 22.410714 | 66 | 0.564143 |
9ea7a1a686130298de1312aabc3746df370d68de | 212 | ex | Elixir | lib/spidey/application.ex | Manzanit0/spidey | 9d5b1de5bc2f8fa8f925c449aa1ffd5613edf99b | [
"MIT"
] | 4 | 2020-09-14T09:21:01.000Z | 2020-09-19T07:31:40.000Z | lib/spidey/application.ex | Manzanit0/spidey | 9d5b1de5bc2f8fa8f925c449aa1ffd5613edf99b | [
"MIT"
] | 1 | 2021-03-10T23:19:36.000Z | 2021-04-04T10:59:00.000Z | lib/spidey/application.ex | Manzanit0/spidey | 9d5b1de5bc2f8fa8f925c449aa1ffd5613edf99b | [
"MIT"
] | null | null | null | defmodule Spidey.Application do
use Application
def start(_type, _args) do
children = []
opts = [strategy: :one_for_one, name: Spidey.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 19.272727 | 60 | 0.712264 |
9ea7ca1b7965d5d46413db832a65ffa31e81de1c | 1,232 | exs | Elixir | test/lib/new_relix/collector_test.exs | wfgilman/NewRelix | 76dc43a1fad38c30f96ab9d653e3c4eb4ae56b30 | [
"MIT"
] | null | null | null | test/lib/new_relix/collector_test.exs | wfgilman/NewRelix | 76dc43a1fad38c30f96ab9d653e3c4eb4ae56b30 | [
"MIT"
] | null | null | null | test/lib/new_relix/collector_test.exs | wfgilman/NewRelix | 76dc43a1fad38c30f96ab9d653e3c4eb4ae56b30 | [
"MIT"
] | null | null | null | defmodule NewRelix.CollectorTest do
@moduledoc false
use ExUnit.Case
alias NewRelix.Collector
setup_all do
key = "Database/ETL"
value = 1_800
{:ok, key: key, value: value}
end
describe "collector" do
test "record_value/1 accepts instrumentation", %{key: key, value: value} do
asse... | 26.212766 | 80 | 0.560065 |
9ea7ef58b51cd7323b01bf899d2bf012c3cc90ae | 1,713 | exs | Elixir | mix.exs | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | mix.exs | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | mix.exs | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | defmodule BartScrape.Mixfile do
use Mix.Project
def project do
[
app: :bart_scrape,
version: "0.0.1",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
... | 26.353846 | 79 | 0.562172 |
9ea7f38e78ac1d3e2e43ffd32e91804bb25ef555 | 1,339 | exs | Elixir | mix.exs | smeevil/alods | 284224bc63c668e1e273251c67614aa2e40b37eb | [
"WTFPL"
] | 1 | 2017-10-03T12:30:53.000Z | 2017-10-03T12:30:53.000Z | mix.exs | smeevil/alods | 284224bc63c668e1e273251c67614aa2e40b37eb | [
"WTFPL"
] | null | null | null | mix.exs | smeevil/alods | 284224bc63c668e1e273251c67614aa2e40b37eb | [
"WTFPL"
] | null | null | null | defmodule Alods.Mixfile do
use Mix.Project
def project do
[
app: :alods,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps(),
dialyzer: [
plt_add_deps: true,
ignore_warnings: ".dialyzer_ignore",
flags: [
:erro... | 22.316667 | 49 | 0.45407 |
9ea7fc5660e4dfa1d5f7bf473a6fe03e43ed2f67 | 186 | exs | Elixir | apps/re/priv/repo/migrations/20171014132520_add_lat_lng_to_address.exs | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re/priv/repo/migrations/20171014132520_add_lat_lng_to_address.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/priv/repo/migrations/20171014132520_add_lat_lng_to_address.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule Re.Repo.Migrations.AddLatLngToAddress do
use Ecto.Migration
def change do
alter table(:addresses) do
add :lat, :string
add :lng, :string
end
end
end
| 16.909091 | 50 | 0.677419 |
9ea80b947e698e27bd46e2128ad1124311c2aa3c | 525 | ex | Elixir | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/sub_resource_read_only.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/sub_resource_read_only.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/sub_resource_read_only.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Compute.Model.SubResourceReadOnly do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"id"
]
... | 20.192308 | 92 | 0.710476 |
9ea831a799bbde0f1370f651f61dfd4676e37460 | 166 | exs | Elixir | config/test.exs | Nehonar/cipher | 68f584f8eda1ee741c24bbed71587aae9336c397 | [
"MIT"
] | 65 | 2015-02-09T21:36:49.000Z | 2021-12-19T12:46:25.000Z | config/test.exs | Nehonar/cipher | 68f584f8eda1ee741c24bbed71587aae9336c397 | [
"MIT"
] | 20 | 2016-04-22T18:15:02.000Z | 2021-06-04T15:25:08.000Z | config/test.exs | Nehonar/cipher | 68f584f8eda1ee741c24bbed71587aae9336c397 | [
"MIT"
] | 30 | 2015-05-28T11:48:09.000Z | 2021-12-15T17:34:45.000Z | use Mix.Config
config :cipher, keyphrase: "testiekeyphraseforcipher",
ivphrase: "testieivphraseforcipher",
magic_token: "magictoken"
| 27.666667 | 54 | 0.656627 |
9ea8558157fab239a5d75eb26dab99cc5efa1c99 | 497 | ex | Elixir | lib/watch_faces_web/views/error_view.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | lib/watch_faces_web/views/error_view.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | lib/watch_faces_web/views/error_view.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | defmodule WatchFacesWeb.ErrorView do
use WatchFacesWeb, :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 templat... | 29.235294 | 61 | 0.738431 |
9ea88f3d49a065761489711681b9d3e4361b54fb | 1,224 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/connection.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... | 34 | 74 | 0.735294 |
9ea8a3032de241276e077c625d5e6fe0b815c63c | 1,109 | ex | Elixir | lib/accent/schemas/comment.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/accent/schemas/comment.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/accent/schemas/comment.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.Comment do
use Accent.Schema
import Ecto.Query, only: [where: 2]
schema "comments" do
field(:text, :string)
belongs_to(:translation, Accent.Translation)
belongs_to(:user, Accent.User)
timestamps()
end
@required_fields ~w(text user_id translation_id)a
def create_changes... | 22.18 | 61 | 0.660956 |
9ea8b869f52b15deaa4c8dd23c727189888c420c | 9,525 | ex | Elixir | lib/exq/redis/job_stat.ex | instinctscience/exq | 6dac201d0b59a16f30ec4d6d24514689ef7dd9b0 | [
"Apache-2.0"
] | null | null | null | lib/exq/redis/job_stat.ex | instinctscience/exq | 6dac201d0b59a16f30ec4d6d24514689ef7dd9b0 | [
"Apache-2.0"
] | null | null | null | lib/exq/redis/job_stat.ex | instinctscience/exq | 6dac201d0b59a16f30ec4d6d24514689ef7dd9b0 | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Redis.JobStat do
@moduledoc """
The JobStat module encapsulates storing system-wide stats on top of Redis
It aims to be compatible with the Sidekiq stats format.
"""
require Logger
alias Exq.Support.{Binary, Process, Job, Time, Node}
alias Exq.Redis.{Connection, JobQueue}
def record_proc... | 29.398148 | 98 | 0.637165 |
9ea8df581295f60085a5695512727e7b8e655ddf | 1,049 | ex | Elixir | lib/docdog_web/controllers/project_invite_controller.ex | wunsh/docdog-engine | a3044d21a6ac00098a295249358a367059453b8d | [
"MIT"
] | 40 | 2017-04-19T15:35:42.000Z | 2020-02-14T11:07:44.000Z | lib/docdog_web/controllers/project_invite_controller.ex | wunsh/docdog-engine | a3044d21a6ac00098a295249358a367059453b8d | [
"MIT"
] | 43 | 2017-01-17T23:03:47.000Z | 2018-08-16T01:25:24.000Z | lib/docdog_web/controllers/project_invite_controller.ex | wunsh/docdog-engine | a3044d21a6ac00098a295249358a367059453b8d | [
"MIT"
] | 6 | 2018-02-15T09:43:15.000Z | 2018-04-10T21:08:36.000Z | defmodule DocdogWeb.ProjectInviteController do
use DocdogWeb, :controller
plug(DocdogWeb.AuthorizationRequiredPlug)
alias Docdog.Editor
alias Docdog.Editor.Project
def show(conn, %{"invite_code" => invite_code}) do
project = Editor.get_project_by_invite_code!(invite_code)
render(conn, "show.html",... | 29.971429 | 89 | 0.679695 |
9ea8f9eab940e5de96a64e1e8af4858610ab6b44 | 146 | ex | Elixir | lib/credentials.ex | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | 2 | 2017-02-10T16:46:21.000Z | 2020-05-04T11:50:50.000Z | lib/credentials.ex | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | null | null | null | lib/credentials.ex | littlelines/frex | e3d9005b782fa0c0aaff0c0368f154c45fb7a302 | [
"Apache-2.0"
] | 1 | 2019-11-27T15:43:55.000Z | 2019-11-27T15:43:55.000Z | defmodule Frex.Credentials do
@moduledoc """
A struct for storing OAuth credentials.
"""
defstruct oauth_token: "", oauth_secret: ""
end
| 18.25 | 45 | 0.705479 |
9ea90a0eef013c0ed7970d3d7790c562ff2db1f3 | 1,368 | ex | Elixir | lib/google_api/you_tube/v3/model/subscription_subscriber_snippet.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/subscription_subscriber_snippet.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | lib/google_api/you_tube/v3/model/subscription_subscriber_snippet.ex | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"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.571429 | 110 | 0.751462 |
9ea91b4b11301f4b74a297e43d6ec4580ef47bc7 | 1,283 | ex | Elixir | lib/sunshines_battleacademy/web/views/error_helpers.ex | djdduty/sunshines_battleacademy | bcc085a3a6a519fc1591d00a39783523644f87a0 | [
"Apache-2.0"
] | null | null | null | lib/sunshines_battleacademy/web/views/error_helpers.ex | djdduty/sunshines_battleacademy | bcc085a3a6a519fc1591d00a39783523644f87a0 | [
"Apache-2.0"
] | null | null | null | lib/sunshines_battleacademy/web/views/error_helpers.ex | djdduty/sunshines_battleacademy | bcc085a3a6a519fc1591d00a39783523644f87a0 | [
"Apache-2.0"
] | null | null | null | defmodule SunshinesBattleacademy.Web.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, trans... | 31.292683 | 92 | 0.679657 |
9ea9579f85e5166094aa1c22edfa51077cd9f4e2 | 15,755 | ex | Elixir | deps/ecto/lib/ecto/adapters/sql.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/adapters/sql.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/adapters/sql.ex | scouten/crash_esqlite_case | 986f0b0721399c7ed520f6b9df133980906e3f51 | [
"MIT"
] | null | null | null | defmodule Ecto.Adapters.SQL do
@moduledoc """
Behaviour and implementation for SQL adapters.
The implementation for SQL adapter provides a
pooled based implementation of SQL and also expose
a query function to developers.
Developers that use `Ecto.Adapters.SQL` should implement
a connection module with ... | 30.066794 | 111 | 0.626976 |
9ea96895b664d0260b93072f486cf07c26d58c55 | 10,487 | exs | Elixir | integration_test/cases/preload.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/preload.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | integration_test/cases/preload.exs | ashneyderman/ecto | 16f27f64c5ca2480568fad10e40c26522ffbf793 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.PreloadTest do
use Ecto.Integration.Case
require Ecto.Integration.TestRepo, as: TestRepo
import Ecto.Query
alias Ecto.Integration.Post
alias Ecto.Integration.Comment
alias Ecto.Integration.Permalink
alias Ecto.Integration.User
alias Ecto.Integration.Custom
test "preload e... | 34.048701 | 84 | 0.631925 |
9ea96f05c46e41ce2a4b46865ee49be4dca0280a | 19,732 | exs | Elixir | test/teslamate/vehicles/vehicle/driving_test.exs | qianbin/teslamate | ef673e88824c24c934b9fc7b155ad8766c1377bb | [
"MIT"
] | 1 | 2021-10-31T13:22:49.000Z | 2021-10-31T13:22:49.000Z | test/teslamate/vehicles/vehicle/driving_test.exs | qianbin/teslamate | ef673e88824c24c934b9fc7b155ad8766c1377bb | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/driving_test.exs | qianbin/teslamate | ef673e88824c24c934b9fc7b155ad8766c1377bb | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle.DrivingTest do
use TeslaMate.VehicleCase, async: true
alias TeslaMate.Log.{Drive, Car}
test "logs a full drive", %{test: name} do
now = DateTime.utc_now()
now_ts = DateTime.to_unix(now, :millisecond)
events = [
{:ok, online_event()},
{:ok, drive_even... | 38.166344 | 98 | 0.61342 |
9ea985395d329c4374bce587cadbba8afd5d77d2 | 2,815 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/training_run.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/training_run.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/training_run.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... | 47.711864 | 207 | 0.736767 |
9ea9918578d5fbb45d539a92908a549b26662076 | 351 | exs | Elixir | priv/repo/seeds.exs | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | priv/repo/seeds.exs | OrigamiApp/server | efbf185a33694b47fc94376c8ddc4b30f8e3d620 | [
"Apache-2.0"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# Origami.Repo.insert!(%Origami.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will... | 29.25 | 61 | 0.706553 |
9ea9c3e7ab8cca6f7f3a1ad12a4ddc8d97cff073 | 840 | ex | Elixir | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/webhook_properties_update_parameters.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/webhook_properties_update_parameters.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Containers/lib/microsoft/azure/management/containers/model/webhook_properties_update_parameters.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Containers.Model.WebhookPropertiesUpdateParameters do
@moduledoc """
The parameters for updating the properties of ... | 24.705882 | 109 | 0.684524 |
9eaa1e34d9eb33ac2d6e83bb04ddc63851a8aeb8 | 1,122 | exs | Elixir | lib/makeup/lexers/elixir_lexer/variables.ex.exs | davydog187/makeup_elixir | 462b0edd8b7ec878202587c6506ae1fe029aaca9 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/lexers/elixir_lexer/variables.ex.exs | davydog187/makeup_elixir | 462b0edd8b7ec878202587c6506ae1fe029aaca9 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/lexers/elixir_lexer/variables.ex.exs | davydog187/makeup_elixir | 462b0edd8b7ec878202587c6506ae1fe029aaca9 | [
"BSD-2-Clause"
] | null | null | null | defmodule Makeup.Lexers.ElixirLexer.Variables do
@moduledoc false
# parsec:Makeup.Lexers.ElixirLexer.Variables
# This module is generated at "dev time" so that the lexer
# doesn't have to depend on the (excelent) `unicode_set` library,
# which takes several minutes to compile.
import NimbleParsec
variab... | 46.75 | 108 | 0.759358 |
9eaa289537fde3266abefe64c9700d9754a761ea | 1,972 | ex | Elixir | apps/rent_bot/lib/rent_bot/subscribers/subscribers.ex | Shiva-1927/Chatbot | cfc4adcb70a5481ecbf65b9dc932029bbdcf5eae | [
"MIT"
] | 94 | 2018-02-19T11:53:45.000Z | 2021-11-15T12:20:24.000Z | apps/rent_bot/lib/rent_bot/subscribers/subscribers.ex | Shiva-1927/Chatbot | cfc4adcb70a5481ecbf65b9dc932029bbdcf5eae | [
"MIT"
] | 2 | 2021-03-10T03:48:31.000Z | 2021-05-10T23:32:27.000Z | apps/rent_bot/lib/rent_bot/subscribers/subscribers.ex | dih78/rent-bot | 35ee3f32ca227979922aee37678e98e6e46491c8 | [
"MIT"
] | 28 | 2018-02-19T11:53:48.000Z | 2021-01-02T21:55:36.000Z | defmodule RentBot.Subscribers do
@moduledoc """
The Subscribers context.
"""
import Ecto.Query, warn: false
alias RentBot.Repo
alias RentBot.Subscribers.Subscriber
@doc """
Returns the list of subscribers.
## Examples
iex> list_subscribers()
[%Subscriber{}, ...]
"""
def list_subs... | 18.780952 | 65 | 0.633874 |
9eaa318c16325cbd83029ff4accf53c836e22ba5 | 816 | exs | Elixir | config/prod.secret.exs | joaohf/epad | ff3e37c3fc3b13363f5fb728c6d4a0a3d0ef3fce | [
"MIT"
] | 2 | 2020-09-07T19:45:28.000Z | 2021-05-04T05:31:41.000Z | config/prod.secret.exs | joaohf/epad | ff3e37c3fc3b13363f5fb728c6d4a0a3d0ef3fce | [
"MIT"
] | null | null | null | config/prod.secret.exs | joaohf/epad | ff3e37c3fc3b13363f5fb728c6d4a0a3d0ef3fce | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
secret_key_base = "l/e8Q8Ev6H8Q5WzQR0jU+amNX85j6EYdWYiNvH9JryYaUaa1i2VxG2... | 32.64 | 84 | 0.756127 |
9eaa846343768da4d013c6129c409542294afac1 | 800 | ex | Elixir | lib/projare/endpoint.ex | tuvistavie/projare | e776b2d326fed97e0dbf62530674fe688ff73ab8 | [
"MIT"
] | 3 | 2016-03-06T12:23:01.000Z | 2017-03-21T18:22:07.000Z | lib/projare/endpoint.ex | tuvistavie/projare | e776b2d326fed97e0dbf62530674fe688ff73ab8 | [
"MIT"
] | null | null | null | lib/projare/endpoint.ex | tuvistavie/projare | e776b2d326fed97e0dbf62530674fe688ff73ab8 | [
"MIT"
] | null | null | null | defmodule Projare.Endpoint do
use Phoenix.Endpoint, otp_app: :projare
plug Plug.Static,
at: "/", from: :projare, gzip: false,
only: ~w(css fonts images js favicon.ico robots.txt components)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
if code_... | 23.529412 | 69 | 0.71125 |
9eaa929e18d9ecb714e3440c2b3a42fd5599d720 | 1,018 | exs | Elixir | mix.exs | HeyHomie/keycloak_api | ba873e093eb2e68410abf4b7228ef30a7191addc | [
"MIT"
] | null | null | null | mix.exs | HeyHomie/keycloak_api | ba873e093eb2e68410abf4b7228ef30a7191addc | [
"MIT"
] | null | null | null | mix.exs | HeyHomie/keycloak_api | ba873e093eb2e68410abf4b7228ef30a7191addc | [
"MIT"
] | null | null | null | defmodule KeycloakAPI.MixProject do
use Mix.Project
def project do
[
app: :keycloak_api,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
c... | 21.659574 | 62 | 0.545187 |
9eaa9f980a512cc8b559c6a1757ccf7d89673191 | 2,237 | ex | Elixir | clients/content/lib/google_api/content/v2/model/account_address.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/account_address.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/account_address.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.915254 | 203 | 0.693339 |
9eaaf10cd11d26a6b7db237b8dad133682dd699f | 682 | exs | Elixir | config/config.exs | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 4 | 2019-03-13T16:38:32.000Z | 2020-01-11T20:05:25.000Z | config/config.exs | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 1 | 2019-03-14T17:41:55.000Z | 2019-03-14T17:41:55.000Z | config/config.exs | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 1 | 2019-03-14T14:53:29.000Z | 2019-03-14T14:53:29.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# By default, the umbrella project as well as each child
# application will require this configuration file, ensuring
# they all use the same configuration. While one could
# configu... | 37.888889 | 68 | 0.740469 |
9eab0dd41eb5b556b5da9e9971df38aea423db90 | 950 | ex | Elixir | lib/game/format/bugs.ex | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/game/format/bugs.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/game/format/bugs.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Format.Bugs do
@moduledoc """
Format functions for bugs
"""
import Game.Format.Context
alias Game.Format
alias Game.Format.Table
@doc """
Format a list of bugs
"""
@spec list_bugs([Bug.t()]) :: String.t()
def list_bugs(bugs) do
rows =
bugs
|> Enum.map(fn bug ->
... | 19 | 67 | 0.584211 |
9eab1e3576e39255a6c0edbffc82479a5d59b7e5 | 3,230 | ex | Elixir | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/http_data.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/http_data.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/storage_transfer/lib/google_api/storage_transfer/v1/model/http_data.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... | 68.723404 | 1,727 | 0.758514 |
9eab25d07def99a4b2ce202076631110d29335d1 | 287 | ex | Elixir | test/support/factories/okr_reflection.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 12 | 2019-05-10T21:48:06.000Z | 2021-11-07T14:04:30.000Z | test/support/factories/okr_reflection.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 2 | 2019-05-14T19:07:10.000Z | 2019-05-20T21:06:27.000Z | test/support/factories/okr_reflection.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 3 | 2019-05-19T18:24:20.000Z | 2019-10-31T20:29:12.000Z | defmodule Test.Factories.OkrReflection do
def create!(override_params = %{"okr_id" => _}) do
params =
%{
"reflection" => "How I did"
}
|> Map.merge(override_params)
{:ok, struct} = OkrApp.Objectives.create_okr_reflection(params)
struct
end
end
| 22.076923 | 67 | 0.623693 |
9eab2ab79ae010bffb27f95749ac97fbd2bd2cd4 | 1,059 | ex | Elixir | test/support/conn_case.ex | nicohartto/headland-back | 413febe835dafc15b4dae731998ff42aa755496b | [
"MIT"
] | null | null | null | test/support/conn_case.ex | nicohartto/headland-back | 413febe835dafc15b4dae731998ff42aa755496b | [
"MIT"
] | null | null | null | test/support/conn_case.ex | nicohartto/headland-back | 413febe835dafc15b4dae731998ff42aa755496b | [
"MIT"
] | null | null | null | defmodule Headland.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
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the d... | 24.627907 | 67 | 0.704438 |
9eab4bb5791d98cef278eb936d93a8226b29f0f2 | 1,642 | ex | Elixir | lib/ex_oauth2_provider/access_grants/access_grants.ex | aidanranney/ex_oauth2_provider | b6ab9c37d39430cd220b2be9794502111c05585c | [
"MIT"
] | 161 | 2017-02-27T19:29:17.000Z | 2021-12-22T12:29:14.000Z | lib/ex_oauth2_provider/access_grants/access_grants.ex | lawalalao/ex_oauth2_provider | 093cc3b289a45e6aeac6205d40b632c0a0af8b3c | [
"MIT"
] | 54 | 2017-03-23T21:05:03.000Z | 2022-02-22T00:16:59.000Z | lib/ex_oauth2_provider/access_grants/access_grants.ex | lawalalao/ex_oauth2_provider | 093cc3b289a45e6aeac6205d40b632c0a0af8b3c | [
"MIT"
] | 49 | 2017-02-26T22:38:34.000Z | 2022-03-07T19:17:03.000Z | defmodule ExOauth2Provider.AccessGrants do
@moduledoc """
The boundary for the OauthAccessGrants system.
"""
alias ExOauth2Provider.Mixin.{Expirable, Revocable}
alias ExOauth2Provider.{Applications.Application, AccessGrants.AccessGrant, Config}
defdelegate revoke!(data, config \\ []), to: Revocable
defd... | 30.407407 | 117 | 0.686967 |
9eab56ce840c1d3d9c31c0486b3d6b640f964c54 | 15,076 | exs | Elixir | lib/elixir/test/elixir/kernel/quote_test.exs | goalves/elixir | 75726d5611413ee45cb5235b1698944b72efa244 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/quote_test.exs | goalves/elixir | 75726d5611413ee45cb5235b1698944b72efa244 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/quote_test.exs | goalves/elixir | 75726d5611413ee45cb5235b1698944b72efa244 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.QuoteTest do
use ExUnit.Case, async: true
@some_fun &List.flatten/1
test "fun" do
assert is_function(@some_fun)
end
test "list" do
assert quote(do: [1, 2, 3]) == [1, 2, 3]
end
test "tuple" do
assert quote(do: {:a, 1}) == {:... | 24.276973 | 92 | 0.553197 |
9eab6ad70a6570970dad97474560c54bf2f35b4d | 7,121 | ex | Elixir | carnage/agents/reminder_agent.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 10 | 2021-03-02T20:05:13.000Z | 2022-03-14T21:10:39.000Z | carnage/agents/reminder_agent.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-14T18:29:44.000Z | 2021-12-23T20:38:27.000Z | carnage/agents/reminder_agent.ex | JediLuke/flamelex | b38d1171b8f93375d8dc59f1710442860b6c8580 | [
"Apache-2.0"
] | 2 | 2021-12-05T20:41:26.000Z | 2021-12-26T01:46:42.000Z | defmodule Flamelex.Agent.Reminders do
@moduledoc """
This agent runs & checks for reminders.
"""
use GenServer
require Logger
alias Flamelex.Structs.TidBit
@default_reminder_time_in_minutes 15
def start_link([] = default_params) do
GenServer.start_link(__MODULE__, default_params)
end
# def sn... | 32.967593 | 111 | 0.640781 |
9eab7e4adee71253b56529c1c7aad0b181ec626a | 990 | ex | Elixir | lib/snapshot.ex | BoringButGreat/grafana | 1d2381268e8b3abc54fd7ec046ac95d9f2b7e362 | [
"BSD-3-Clause"
] | 15 | 2016-05-05T01:30:27.000Z | 2021-02-19T12:50:00.000Z | lib/snapshot.ex | BoringButGreat/grafana | 1d2381268e8b3abc54fd7ec046ac95d9f2b7e362 | [
"BSD-3-Clause"
] | 3 | 2017-05-10T11:22:11.000Z | 2017-05-10T13:52:07.000Z | lib/snapshot.ex | BoringButGreat/grafana | 1d2381268e8b3abc54fd7ec046ac95d9f2b7e362 | [
"BSD-3-Clause"
] | 2 | 2016-10-25T13:18:38.000Z | 2017-05-10T11:23:43.000Z | defmodule Grafana.Snapshot do
use Grafana.API
@path "/api/snapshots"
@doc """
Create a new snapshot as specified by json.
iex> {:ok, result} = Grafana.Snapshot.new(%{"dashboard" => %{}, "expires" => 3600})
...> Map.keys(result)
["deleteKey","deleteUrl","key","url"]
"""
def new(json), do: api_... | 25.384615 | 100 | 0.621212 |
9eab9ca37ef405bdaace38c7526122e333508d91 | 645 | ex | Elixir | lib/altstatus_web/views/submission_view.ex | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 1 | 2020-01-20T18:17:59.000Z | 2020-01-20T18:17:59.000Z | lib/altstatus_web/views/submission_view.ex | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | null | null | null | lib/altstatus_web/views/submission_view.ex | AltCampus/altstatus_backend | 70bf7a9d337e570f54002c3a7df264e88372adfa | [
"MIT"
] | 2 | 2018-09-09T08:05:24.000Z | 2018-09-09T08:35:18.000Z | defmodule AltstatusWeb.SubmissionView do
use AltstatusWeb, :view
alias AltstatusWeb.SubmissionView
def render("index.json", %{submissions: submissions}) do
%{data: render_many(submissions, SubmissionView, "submission.json")}
end
def render("show.json", %{submission: submission}) do
%{data: render_on... | 29.318182 | 72 | 0.724031 |
9eaba5e5d61ba1b09fae69147b53e8f06154f8af | 8,838 | ex | Elixir | lib/hangman/dictionary_ingestion.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | 1 | 2016-12-19T00:10:34.000Z | 2016-12-19T00:10:34.000Z | lib/hangman/dictionary_ingestion.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | lib/hangman/dictionary_ingestion.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | defmodule Hangman.Dictionary.Ingestion do
@moduledoc """
Module handles the ingestion of hangman dictionary words
through the coordination of `Ingestion.First.Flow` and `Ingestion.Cache.Flow`
Saves ingestion state in intermediary cache partition files and finally in
ets dump file
Module transforms the dic... | 33.604563 | 93 | 0.68873 |
9eabe26a989e704069c7e368293c38d6425df96d | 273 | exs | Elixir | config/test.exs | cscairns/agile_pulse | 01675fc60c5ebc88e6e6c3304f2a5aa683528f7c | [
"CC0-1.0"
] | null | null | null | config/test.exs | cscairns/agile_pulse | 01675fc60c5ebc88e6e6c3304f2a5aa683528f7c | [
"CC0-1.0"
] | null | null | null | config/test.exs | cscairns/agile_pulse | 01675fc60c5ebc88e6e6c3304f2a5aa683528f7c | [
"CC0-1.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 :agile_pulse, AgilePulseWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.818182 | 56 | 0.74359 |
9eabe30dec380a3650383fd66201bd7f0ef0efd4 | 879 | ex | Elixir | lib/wunderground/forecast/txt_forecast_day.ex | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 2 | 2017-08-23T21:48:07.000Z | 2017-10-16T21:35:36.000Z | lib/wunderground/forecast/txt_forecast_day.ex | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 8 | 2017-08-23T10:02:35.000Z | 2017-09-03T11:35:36.000Z | lib/wunderground/forecast/txt_forecast_day.ex | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 1 | 2021-06-22T15:02:15.000Z | 2021-06-22T15:02:15.000Z | defmodule Wunderground.Forecast.TXTForecastDay do
@moduledoc """
Ensures correct JSON encoding.
"""
@derive [Poison.Encoder]
defstruct ~w(fcttext fcttext_metric icon icon_url period pop title)a
@typedoc """
The Wunderground.Forecast.TXTForecastDay struct.
## Example
%Wunderground.Forecast.TXT... | 24.416667 | 89 | 0.643914 |
9eac0cb319050309959e7fbe98d517c59cc84685 | 743 | ex | Elixir | test/support/channel_case.ex | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | test/support/channel_case.ex | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | test/support/channel_case.ex | EVE-Tools/static_data | 6080c43e9cddd36df33c3ed79db9ef4c8d74e7d0 | [
"BSD-3-Clause"
] | null | null | null | defmodule StaticData.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot b... | 21.852941 | 56 | 0.720054 |
9eac4db5c5b8730909e3bcbd6f99f78d6bb723af | 1,519 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/get_database_ddl_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spanner/lib/google_api/spanner/v1/model/get_database_ddl_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/spanner/lib/google_api/spanner/v1/model/get_database_ddl_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.319149 | 162 | 0.742594 |
9eacb7b15e7a08cc84b6b87672b12bb41b0aee2c | 955 | exs | Elixir | mix.exs | acac99/credo-module-function-order-rule | a60a8641e682dde1517bc38df37c91bb23359b2b | [
"MIT"
] | 1 | 2019-09-19T10:29:24.000Z | 2019-09-19T10:29:24.000Z | mix.exs | acac99/credo-module-function-ordering | a60a8641e682dde1517bc38df37c91bb23359b2b | [
"MIT"
] | null | null | null | mix.exs | acac99/credo-module-function-ordering | a60a8641e682dde1517bc38df37c91bb23359b2b | [
"MIT"
] | null | null | null | defmodule CredoModuleFunctionOrdering.MixProject do
use Mix.Project
def project do
[
app: :credo_module_function_ordering,
version: "0.1.0",
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
description: "Credo rule for ordering of different functions types within a module",
... | 26.527778 | 90 | 0.613613 |
9eacf0f75056f9d75c4643da94c999a42c82b5e1 | 4,621 | exs | Elixir | test/mix/tasks/ex_oauth2_provider.gen.migration_test.exs | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | test/mix/tasks/ex_oauth2_provider.gen.migration_test.exs | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | test/mix/tasks/ex_oauth2_provider.gen.migration_test.exs | heroinbob/ex_oauth2_provider | 80c21a53bba0955ab3b66f1bd32cc81db0f04f49 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.ExOauth2Provider.Gen.MigrationTest do
use ExOauth2Provider.Mix.TestCase
alias Mix.Tasks.ExOauth2Provider.Gen.Migration
defmodule Repo do
def __adapter__, do: true
def config, do: [priv: "tmp/#{inspect(Migration)}", otp_app: :ex_oauth2_provider]
end
@tmp_path Path.join(["tmp", in... | 36.101563 | 112 | 0.627786 |
9eacf34a2acb1df18803b107db460157be22d400 | 11,372 | ex | Elixir | lib/mix/lib/mix/tasks/new.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/mix/lib/mix/tasks/new.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/new.ex | nurugger07/elixir | c859e49199bb24190656e6d3acb6cf35fe70e8bb | [
"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 [--sup] [--module MODULE] [--app AP... | 26.757647 | 103 | 0.620559 |
9eacf963aecb9af3897913542aad803b82d05684 | 2,878 | ex | Elixir | lib/yummy_web/mutations/recipes_mutations.ex | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 122 | 2017-11-24T11:28:17.000Z | 2022-02-25T17:05:20.000Z | lib/yummy_web/mutations/recipes_mutations.ex | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 6 | 2018-01-11T22:07:44.000Z | 2021-11-21T15:41:42.000Z | lib/yummy_web/mutations/recipes_mutations.ex | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 25 | 2018-04-01T02:43:21.000Z | 2022-02-15T03:22:54.000Z | defmodule YummyWeb.Mutations.RecipesMutations do
use Absinthe.Schema.Notation
import Ecto.Query, warn: false
import YummyWeb.Helpers.ValidationMessageHelpers
alias YummyWeb.Schema.Middleware
alias Yummy.Repo
alias Yummy.Recipes
alias Yummy.Recipes.Recipe
input_object :recipe_input do
field(:title,... | 29.670103 | 94 | 0.601459 |
9ead4356a2870a2d4f62268efab7b20d389695fe | 1,353 | exs | Elixir | test/day06_test.exs | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | 1 | 2022-01-10T02:34:18.000Z | 2022-01-10T02:34:18.000Z | test/day06_test.exs | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | null | null | null | test/day06_test.exs | hvnsweeting/adventofcode2018 | 8e5a85ebb7b102361b844b0f92522c18148a672a | [
"BSD-3-Clause"
] | 1 | 2019-12-02T09:42:17.000Z | 2019-12-02T09:42:17.000Z | defmodule Day06Test do
use ExUnit.Case, async: true
doctest Day06
@example "1, 1
1, 6
8, 3
3, 4
5, 5
8, 9"
test "greets the world" do
assert Day06.hello() == :hello
end
test "smallest grid" do
coord =
@example
|> Day06.string_to_coordinate()
|> Day06.smallest_grid()
assert c... | 20.5 | 84 | 0.552106 |
9ead50a1f023a4f57dc8d6147626f4381b279cd3 | 454 | exs | Elixir | test/lib_leaf_web/views/error_view_test.exs | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | test/lib_leaf_web/views/error_view_test.exs | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | test/lib_leaf_web/views/error_view_test.exs | gimKondo/lib-leaf | 241609a82b3c76a64263b6a151f05c0d3c4f4dd6 | [
"MIT"
] | null | null | null | defmodule LibLeafWeb.ErrorViewTest do
use LibLeafWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(LibLeafWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "renders 500.jso... | 28.375 | 92 | 0.682819 |
9ead60f01d75d551289c15f48b947c69466830ff | 663 | exs | Elixir | test/controllers/module_controller_test.exs | lee-dohm/ship-designer | 641b6f44aa5efc676ee3f9251618eeafb2b89bad | [
"MIT"
] | 1 | 2020-01-26T18:06:25.000Z | 2020-01-26T18:06:25.000Z | test/controllers/module_controller_test.exs | lee-dohm/ship-designer | 641b6f44aa5efc676ee3f9251618eeafb2b89bad | [
"MIT"
] | null | null | null | test/controllers/module_controller_test.exs | lee-dohm/ship-designer | 641b6f44aa5efc676ee3f9251618eeafb2b89bad | [
"MIT"
] | null | null | null | defmodule ShipDesigner.ModuleControllerTest do
use ShipDesigner.ConnCase
alias ShipDesigner.Module
test "lists all entries on index", %{conn: conn} do
conn = get conn, module_path(conn, :index)
assert html_response(conn, 200) =~ "Modules"
end
test "shows chosen resource", %{conn: conn} do
modul... | 28.826087 | 80 | 0.695324 |
9ead7ebee9f3a2d5adb2a59726e2aa29942a7d7b | 106 | exs | Elixir | source/elixir_clients/doorpi/apps/fw/test/fw_test.exs | rveshovda/pifog | 127c2de6ff2666ebc9987d8c2cfd5431ce5ff888 | [
"Apache-2.0"
] | 16 | 2016-09-14T16:57:33.000Z | 2017-11-11T16:31:14.000Z | apps/fw/test/fw_test.exs | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | 5 | 2016-09-08T07:14:44.000Z | 2018-11-09T12:34:19.000Z | apps/fw/test/fw_test.exs | royveshovda/buildstuff2016 | edb7c283a84a939383f6869eb623030d7316a91b | [
"MIT"
] | 2 | 2017-12-09T02:07:22.000Z | 2021-01-06T15:30:03.000Z | defmodule FwTest do
use ExUnit.Case
doctest Fw
test "the truth" do
assert 1 + 1 == 2
end
end
| 11.777778 | 21 | 0.641509 |
9ead84618c31ac31d2fef3675c44023b08a1cc9c | 2,921 | ex | Elixir | apps/core/lib/core/policies/repository.ex | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | null | null | null | apps/core/lib/core/policies/repository.ex | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | null | null | null | apps/core/lib/core/policies/repository.ex | asamoal/plural | 5b336f27cb2d775560e35e5323192c42d62e72f5 | [
"Apache-2.0"
] | null | null | null | defmodule Core.Policies.Repository do
use Piazza.Policy
import Core.Policies.Utils
alias Core.Schema.{User, Installation, Repository, Integration, Artifact, DockerRepository, ApplyLock}
def can?(%User{} = user, %Integration{} = integ, policy) do
%{repository: repo} = Core.Repo.preload(integ, [:repository])... | 34.77381 | 104 | 0.625813 |
9eadc2d11ada3b972d81196ae04c7482e6152695 | 2,286 | exs | Elixir | test/ecto/migrator_repo_test.exs | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 384 | 2018-10-03T17:52:39.000Z | 2022-03-24T17:54:21.000Z | test/ecto/migrator_repo_test.exs | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 357 | 2018-10-06T13:47:33.000Z | 2022-03-29T08:18:02.000Z | test/ecto/migrator_repo_test.exs | nasrulgunawan/ecto_sql | ace2c9daf07190a3f7debfa2060cd3ddd251b6c7 | [
"Apache-2.0"
] | 251 | 2018-10-04T11:06:41.000Z | 2022-03-29T07:22:53.000Z | defmodule Ecto.MigratorRepoTest do
use ExUnit.Case
import Ecto.Migrator
import ExUnit.CaptureLog
defmodule Migration do
use Ecto.Migration
def up do
execute "up"
end
def down do
execute "down"
end
end
defmodule ChangeMigration do
use Ecto.Migration
def change do... | 26.275862 | 124 | 0.667542 |
9eadfddbb033a74cf2a6e642450c05f27015d29f | 10,342 | exs | Elixir | test/codec/encoder_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | 7 | 2018-11-01T15:47:05.000Z | 2021-05-19T10:07:23.000Z | test/codec/encoder_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | test/codec/encoder_test.exs | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | defmodule Saucexages.EncoderTest do
use ExUnit.Case, async: true
import Saucexages.Codec.Encoder
require Codepagex
alias Codepagex
alias Saucexages.SauceBlock
test "encode_string/2 encodes a string to the proper size with space padding" do
assert encode_string("12345", 5) == "12345"
#overrun
as... | 37.471014 | 138 | 0.587217 |
9eae12e38d44ea0ace6885ae1d061b9ac1938736 | 2,030 | ex | Elixir | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_app_attest_challenge_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/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_app_attest_challenge_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_app_check/lib/google_api/firebase_app_check/v1beta/model/google_firebase_appcheck_v1beta_app_attest_challenge_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... | 35.614035 | 277 | 0.747291 |
9eae60ee3e90cc57ffacaad61531d40f8ff73b30 | 2,258 | ex | Elixir | lib/hexa_web/telemetry.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa_web/telemetry.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa_web/telemetry.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | defmodule HexaWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn mor... | 31.361111 | 88 | 0.650133 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.