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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a551193cbad7dc9f9e1fe45816fffef3cf9d1b1 | 1,282 | exs | Elixir | apps/cb_locomotion/test/cb_locomotion/locomotion_test.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 16 | 2016-09-14T16:57:33.000Z | 2017-11-11T16:31:14.000Z | apps/cb_locomotion/test/cb_locomotion/locomotion_test.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | 5 | 2016-09-08T07:14:44.000Z | 2018-11-09T12:34:19.000Z | apps/cb_locomotion/test/cb_locomotion/locomotion_test.exs | CultivateHQ/cultivatarmobile | 09148467d8569138e9b692a7b726b7090b2af5d6 | [
"MIT"
] | null | null | null | defmodule LoccomotionTest do
use ExUnit.Case
alias CbLocomotion.{StepperMotor, Locomotion}
test "set step rate" do
Locomotion.set_step_rate(20)
assert StepperMotor.state(:right_stepper).step_millis == 20
assert StepperMotor.state(:left_stepper).step_millis == 20
assert Locomotion.get_step_rate ... | 25.137255 | 67 | 0.734009 |
4a55237f8af695ce814b1c88ea8959c10538f8ad | 1,956 | exs | Elixir | implementations/absinthe-federation/config/prod.exs | setchy/apollo-federation-subgraph-compatibility | 85c23d185564ac461cac6474e70310996349aaf4 | [
"MIT"
] | 18 | 2021-08-31T09:57:28.000Z | 2022-03-25T03:59:36.000Z | implementations/absinthe-federation/config/prod.exs | setchy/apollo-federation-subgraph-compatibility | 85c23d185564ac461cac6474e70310996349aaf4 | [
"MIT"
] | 36 | 2021-08-17T04:58:50.000Z | 2022-03-31T00:48:03.000Z | implementations/absinthe-federation/config/prod.exs | setchy/apollo-federation-subgraph-compatibility | 85c23d185564ac461cac6474e70310996349aaf4 | [
"MIT"
] | 14 | 2021-08-22T04:48:10.000Z | 2022-02-10T13:46:07.000Z | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 36.222222 | 76 | 0.713701 |
4a553c48350333ca361045d5bb9439aa6e507718 | 22,881 | exs | Elixir | lib/elixir/test/elixir/uri_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | 1 | 2022-03-28T12:04:08.000Z | 2022-03-28T12:04:08.000Z | lib/elixir/test/elixir/uri_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/uri_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
defmodule URITest do
use ExUnit.Case, async: true
doctest URI
test "encode/1,2" do
assert URI.encode("4_test.is-s~") == "4_test.is-s~"
assert URI.encode("\r\n&<%>\" ゆ", &URI.char_unreserved?/1) ==
"%0D%0A%26%3C%25%3E%22%20%E3%82%86"
end
t... | 32.875 | 98 | 0.566977 |
4a55435d70524e5ed03333d0d192bf495dcbbc69 | 9,682 | exs | Elixir | test/prefixed_test.exs | Tmw/ecto_ranked | 8791c88b157f09dfba8cfa9556cedaa8a53da9b7 | [
"MIT"
] | null | null | null | test/prefixed_test.exs | Tmw/ecto_ranked | 8791c88b157f09dfba8cfa9556cedaa8a53da9b7 | [
"MIT"
] | null | null | null | test/prefixed_test.exs | Tmw/ecto_ranked | 8791c88b157f09dfba8cfa9556cedaa8a53da9b7 | [
"MIT"
] | null | null | null | defmodule EctoRanked.PrefixedTest do
use EctoRanked.TestCase
import Ecto.Query
alias EctoRanked.Test.Repo
alias EctoRanked.Test.PrefixedModel, as: Model
@min -2147483648
@max 2147483647
def ranked_ids do
Model
|> select([m], m.id)
|> order_by(:my_rank)
|> Repo.all(prefix: "tenant")
end... | 42.651982 | 96 | 0.60473 |
4a55808b6f774f8860f906cdf9cded49f2c60bec | 2,308 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__text_annotation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__text_annotation.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__text_annotation.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... | 35.507692 | 193 | 0.736135 |
4a5596fbf694bc7da1a42a833a423b1dff7d3795 | 85,419 | ex | Elixir | lib/nostrum/api.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | lib/nostrum/api.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | lib/nostrum/api.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | defmodule Nostrum.Api do
@moduledoc ~S"""
Interface for Discord's rest API.
By default all methods in this module are ran synchronously. If you wish to
have async rest operations I recommend you execute these functions inside of a
task.
**Examples**
```Elixir
# Async Task
t = Task.async fn ->
No... | 33.082494 | 128 | 0.690198 |
4a55af556e472dae69f9b97ffda72f0beacf12aa | 1,133 | exs | Elixir | test/comparemoji/live/emoji_live_test.exs | maxvw/comparemoji.com | a078b5854e8bedbc112fb2e5ddcf4c64ca4ad572 | [
"MIT"
] | 5 | 2020-07-12T18:09:15.000Z | 2021-12-23T19:51:22.000Z | test/comparemoji/live/emoji_live_test.exs | maxvw/comparemoji.com | a078b5854e8bedbc112fb2e5ddcf4c64ca4ad572 | [
"MIT"
] | 1 | 2021-04-06T20:35:02.000Z | 2021-04-06T20:35:02.000Z | test/comparemoji/live/emoji_live_test.exs | maxvw/comparemoji.com | a078b5854e8bedbc112fb2e5ddcf4c64ca4ad572 | [
"MIT"
] | null | null | null | defmodule Comparemoji.PageLiveTest do
use Comparemoji.ConnCase
import Phoenix.LiveViewTest
describe "disconnected" do
test "renders regular html", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~
"<title dir=\"ltr\">Compare emojis on different platforms</... | 30.621622 | 81 | 0.609885 |
4a55c1c339a5d01033206e42bb260970794e8476 | 5,418 | ex | Elixir | lib/oban/queue/executor.ex | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | lib/oban/queue/executor.ex | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | lib/oban/queue/executor.ex | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Queue.Executor do
@moduledoc false
require Logger
alias Oban.{Breaker, Config, Job, Query, Worker}
@type success :: {:success, Job.t()}
@type failure :: {:failure, Job.t(), Worker.t(), atom(), term()}
@type t :: %__MODULE__{
conf: Config.t(),
duration: pos_integer(),
... | 24.627273 | 98 | 0.584348 |
4a55cf8568a07967f5adc40e42d97a59815d9ca6 | 7,123 | exs | Elixir | test/models/account/user_test.exs | ZURASTA/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 1 | 2017-06-15T11:20:27.000Z | 2017-06-15T11:20:27.000Z | test/models/account/user_test.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | null | null | null | test/models/account/user_test.exs | ScrimpyCat/bonbon | 231888326535a11aa7e7c4ed93e0a0ba01411d95 | [
"BSD-2-Clause"
] | 2 | 2017-07-25T10:16:19.000Z | 2017-08-02T06:54:22.000Z | defmodule Bonbon.Model.Account.UserTest do
use Bonbon.ModelCase
alias Bonbon.Model.Account.User
@valid_model %User{
email: "email@example.com",
name: "Foo Bar",
password: "test",
password_hash: "test",
mobile: "+123456789"
}
test "empty" do
refute_c... | 44.798742 | 146 | 0.649165 |
4a55d25ad20ea741570e8b8ee783dea5f16b8df1 | 2,569 | ex | Elixir | lib/cog/command/service/data_store/nested_file.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | lib/cog/command/service/data_store/nested_file.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | lib/cog/command/service/data_store/nested_file.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Command.Service.DataStore.NestedFile do
@moduledoc """
Stores an arbitrary String on the filesystem of the Cog host in a file
named by combining the provided key and extension. Files are written to
a directory hierarchy that is created by splitting the filename into
two character segments and ... | 29.528736 | 76 | 0.646555 |
4a5607397cde7e65f1503486c5259f0c57947be2 | 1,592 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/block_getter/supervisor.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher/lib/omg_watcher/block_getter/supervisor.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/block_getter/supervisor.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 34.608696 | 117 | 0.721106 |
4a560e550db11d6dfa590394b97e12003d0183cc | 7,717 | exs | Elixir | lib/mix/test/test_helper.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/test_helper.exs | Joe-noh/elixir | 34bf464bc1a035b6015366463e04f1bf9d2065f3 | [
"Apache-2.0"
] | null | null | null | Mix.start()
Mix.shell(Mix.Shell.Process)
Application.put_env(:mix, :colors, [enabled: false])
ExUnit.start [trace: "--trace" in System.argv]
defmodule MixTest.Case do
use ExUnit.CaseTemplate
defmodule Sample do
def project do
[app: :sample,
version: "0.1.0",
aliases: [sample: "compile"]]
... | 22.111748 | 82 | 0.617727 |
4a56234739f1974b8bfd0838af57a1d37a13f52a | 249 | ex | Elixir | lib/health.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | lib/health.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | 2 | 2021-03-10T04:15:17.000Z | 2021-05-10T23:54:35.000Z | lib/health.ex | TDogVoid/health_demo | 4e9fbf79c32145cf563cdbdb3ea4a0f594a87053 | [
"MIT"
] | null | null | null | defmodule Health do
@moduledoc """
Health keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.9 | 66 | 0.751004 |
4a563688b2caf9c9ff9be1ed92e736b30c97bd9b | 1,355 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/write_log_entries_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/write_log_entries_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/write_log_entries_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.511628 | 82 | 0.76679 |
4a5648c83d3ac5157af7ea3c3f640bac0e9c7e42 | 1,073 | exs | Elixir | test/shopifex_web/controllers/auth_controller_test.exs | smantzavinos/shopifex | 744d732f9237cdea1773056c412f3524e1f5ca4f | [
"Apache-2.0"
] | null | null | null | test/shopifex_web/controllers/auth_controller_test.exs | smantzavinos/shopifex | 744d732f9237cdea1773056c412f3524e1f5ca4f | [
"Apache-2.0"
] | null | null | null | test/shopifex_web/controllers/auth_controller_test.exs | smantzavinos/shopifex | 744d732f9237cdea1773056c412f3524e1f5ca4f | [
"Apache-2.0"
] | null | null | null | defmodule ShopifexWeb.AuthControllerTest do
use ShopifexWeb.ConnCase, async: true
test "new shop is redirected to install", %{conn: conn} do
conn =
get(conn, Routes.auth_path(@endpoint, :initialize_installation), %{
"shop" => "shopifex.myshopify.com"
})
assert conn.status == 302
[l... | 35.766667 | 179 | 0.687791 |
4a56577cde34269c2f07a29fba7dca59404dab65 | 1,119 | ex | Elixir | apps/definition/lib/definition/schema/type.ex | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | apps/definition/lib/definition/schema/type.ex | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | apps/definition/lib/definition/schema/type.ex | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | defmodule Definition.Schema.Type do
@moduledoc """
Defines specifications according to the Norm
library for `string`, `required_string`, `id`, and `version`
"""
import Norm
import Definition.Schema.Validation
@type spec :: Norm.Conformer.Conformable.t()
@spec required_string() :: spec
def required_... | 21.519231 | 62 | 0.634495 |
4a566d332727a1e59e1af7ea6c27abd7970e8cff | 1,330 | exs | Elixir | config/dev.exs | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | config/dev.exs | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | config/dev.exs | KazuCocoa/myChatEx | 27871c7d9715987a664caa10a7c79b2682f6e56c | [
"MIT"
] | null | null | null | 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 :my_chat_ex, MyChatEx.Endpoint,
http: [port: 4... | 28.913043 | 73 | 0.693985 |
4a566d857c709a2a035c277648617d2fcedb6cfa | 1,617 | ex | Elixir | lib/excheck/statement.ex | devstopfix/excheck | c8cbf457e9bf7c13a0a4b70c60c8e02495ff53a1 | [
"MIT"
] | null | null | null | lib/excheck/statement.ex | devstopfix/excheck | c8cbf457e9bf7c13a0a4b70c60c8e02495ff53a1 | [
"MIT"
] | null | null | null | lib/excheck/statement.ex | devstopfix/excheck | c8cbf457e9bf7c13a0a4b70c60c8e02495ff53a1 | [
"MIT"
] | null | null | null | defmodule ExCheck.Statement do
@moduledoc """
Provides macros for test statements.
"""
@doc """
Generate property method and ExUnit tests.
"""
defmacro property(message, do: contents) do
contents = Macro.escape(contents, unquote: true)
quote bind_quoted: binding() do
def unquote(:"prop_#{m... | 27.40678 | 75 | 0.658009 |
4a568b2488f95f0286cbb19ee580fa963d1a165f | 778 | exs | Elixir | test/phoenix/live_dashboard/router_test.exs | LostKobrakai/phoenix_live_dashboard | 3bee701e489eb092b7b2b80e5d3a0c4b2472c770 | [
"MIT"
] | 1 | 2020-04-23T11:36:03.000Z | 2020-04-23T11:36:03.000Z | test/phoenix/live_dashboard/router_test.exs | LostKobrakai/phoenix_live_dashboard | 3bee701e489eb092b7b2b80e5d3a0c4b2472c770 | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/router_test.exs | LostKobrakai/phoenix_live_dashboard | 3bee701e489eb092b7b2b80e5d3a0c4b2472c770 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.RouterTest do
use ExUnit.Case, async: true
alias Phoenix.LiveDashboard.Router
test "sets options" do
assert Router.__options__([]) == [
session: {Phoenix.LiveDashboard.Router, :__session__, [nil]},
layout: {Phoenix.LiveDashboard.LayoutView, :dash},
... | 29.923077 | 76 | 0.645244 |
4a56b20f590f63291f56e08cf028374cd8f1f45c | 568 | exs | Elixir | test/models/source_key_pipelines_test.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | test/models/source_key_pipelines_test.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | test/models/source_key_pipelines_test.exs | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | defmodule CncfDashboardApi.SourceKeyPipelinesTest do
use CncfDashboardApi.ModelCase
alias CncfDashboardApi.SourceKeyPipelines
@valid_attrs %{new_id: 42, source_id: "some content", source_name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = SourceKeyPipelines.ch... | 29.894737 | 84 | 0.776408 |
4a56b482c10796e82671cd0a7c299996a47644b2 | 1,331 | exs | Elixir | test/quantum/run_strategy_test.exs | fatboypunk/quantum-core | f264e1c5d6b0e13e60f0920ae09c287f342b9d7c | [
"Apache-2.0"
] | null | null | null | test/quantum/run_strategy_test.exs | fatboypunk/quantum-core | f264e1c5d6b0e13e60f0920ae09c287f342b9d7c | [
"Apache-2.0"
] | null | null | null | test/quantum/run_strategy_test.exs | fatboypunk/quantum-core | f264e1c5d6b0e13e60f0920ae09c287f342b9d7c | [
"Apache-2.0"
] | null | null | null | defmodule Quantum.RunStrategyTest do
use ExUnit.Case, async: true
alias Quantum.Job
alias Quantum.RunStrategy.NodeList
defmodule Scheduler do
@moduledoc false
use Quantum.Scheduler, otp_app: :quantum_test
end
test "run strategy local" do
job = Job.new(Scheduler.config(run_strategy: Quantum.R... | 31.690476 | 90 | 0.70849 |
4a56d4715c342e9173bcda5c1352b3580fac600b | 1,607 | ex | Elixir | clients/fitness/lib/google_api/fitness/v1/model/data_type.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/model/data_type.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/fitness/lib/google_api/fitness/v1/model/data_type.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... | 32.14 | 165 | 0.742377 |
4a56f6fcdab06f01bfeacadd3f10362d95854e53 | 1,821 | exs | Elixir | test/unit/hologram/compiler/call_graph_builder/function_call_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/call_graph_builder/function_call_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/call_graph_builder/function_call_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.CallGraphBuilder.FunctionCallTest do
use Hologram.Test.UnitCase, async: false
alias Hologram.Compiler.{CallGraph, CallGraphBuilder, Reflection}
alias Hologram.Compiler.IR.FunctionCall
alias Hologram.Test.Fixtures.{
PlaceholderModule1,
PlaceholderModule2,
PlaceholderModu... | 31.947368 | 86 | 0.751785 |
4a56ff7151ea7267718b396453c95ba4cb1bf4a2 | 1,891 | ex | Elixir | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_execute_device_command_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_execute_device_command_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/smart_device_management/lib/google_api/smart_device_management/v1/model/google_home_enterprise_sdm_v1_execute_device_command_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.175439 | 143 | 0.744051 |
4a5712087971577d8fc3a25080c4226c61c459cd | 2,192 | ex | Elixir | clients/games/lib/google_api/games/v1/model/turn_based_match_rematch.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/games/lib/google_api/games/v1/model/turn_based_match_rematch.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/turn_based_match_rematch.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 ... | 41.358491 | 219 | 0.739051 |
4a57129715e78ab87c37b761032513127760fc53 | 2,118 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_evaluation_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_evaluation_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1beta1_evaluation_config.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... | 37.821429 | 320 | 0.78423 |
4a5753cf73014e05775bca97abca19f8dd1dd2c9 | 1,977 | exs | Elixir | bullion/config/prod.exs | ttymck/bullion | d15babe80d30f9775e45f2a143b88a66b539d318 | [
"MIT"
] | null | null | null | bullion/config/prod.exs | ttymck/bullion | d15babe80d30f9775e45f2a143b88a66b539d318 | [
"MIT"
] | 8 | 2021-03-10T20:53:42.000Z | 2021-07-30T06:52:16.000Z | bullion/config/prod.exs | ttymck/bullion | d15babe80d30f9775e45f2a143b88a66b539d318 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 35.303571 | 66 | 0.713708 |
4a5753db656ec66f9a3b38cf5acbe79e89cfad81 | 4,332 | ex | Elixir | lib/ueberauth/strategy/evesso/oauth.ex | lukasni/ueberauth_eve_sso | 9f89893fc04f28ea3aa7f846ab6c11b5c3d8ded6 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/evesso/oauth.ex | lukasni/ueberauth_eve_sso | 9f89893fc04f28ea3aa7f846ab6c11b5c3d8ded6 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/evesso/oauth.ex | lukasni/ueberauth_eve_sso | 9f89893fc04f28ea3aa7f846ab6c11b5c3d8ded6 | [
"MIT"
] | 2 | 2020-05-05T06:59:41.000Z | 2020-11-28T18:58:46.000Z | defmodule Ueberauth.Strategy.EVESSO.OAuth do
@moduledoc """
An implementation of OAuth2 for EVE SSO
To add your `client_id` and `client_secret` include these values in your configuration.
config :ueberauth, Ueberauth.Strategy.EVESSO.OAuth,
client_id: System.get_env("EVESSO_CLIENT_ID"),
cli... | 30.723404 | 122 | 0.675208 |
4a578f5b8094fb9a4e07f63743eed33bac13b745 | 2,457 | ex | Elixir | backend/test/support/data_case.ex | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/test/support/data_case.ex | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/test/support/data_case.ex | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# 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 app... | 30.7125 | 97 | 0.706146 |
4a57c2c319a9ad63f059acbc7d4f5fb50a63805e | 324 | exs | Elixir | chromoid_web/priv/repo/migrations/20210211191211_add_nfc_actions_table.exs | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_web/priv/repo/migrations/20210211191211_add_nfc_actions_table.exs | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/priv/repo/migrations/20210211191211_add_nfc_actions_table.exs | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule Chromoid.Repo.Migrations.AddNfcActionsTable do
use Ecto.Migration
def change do
create table(:nfc_actions) do
add :nfc_iso14443a_id, references(:nfc_iso14443a), null: false
add :module, :string, null: false
add :args, :map, null: false, default: %{}
timestamps()
end
end
... | 24.923077 | 68 | 0.685185 |
4a57c66c9f1b9b583c9094c84ff65c37537f804e | 758 | ex | Elixir | lib/langue/langue.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/langue/langue.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/langue/langue.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Langue do
@formats [
Android,
CSV,
Es6Module,
Gettext,
JavaProperties,
JavaPropertiesXml,
Json,
Rails,
SimpleJson,
Strings,
LaravelPhp,
GoI18nJson,
XLIFF12,
Resx20
]
for format <- @formats, module = Module.concat([Langue, Formatter, format]), name... | 24.451613 | 102 | 0.663588 |
4a57cd22ae66df1940a283359d671de8c620d81c | 2,054 | ex | Elixir | lib/tasks/CLI/users/users_add.ex | phha/boreale | 67fde10962f3b3045b4fa5ac5109fe5cd7df04c1 | [
"MIT"
] | null | null | null | lib/tasks/CLI/users/users_add.ex | phha/boreale | 67fde10962f3b3045b4fa5ac5109fe5cd7df04c1 | [
"MIT"
] | null | null | null | lib/tasks/CLI/users/users_add.ex | phha/boreale | 67fde10962f3b3045b4fa5ac5109fe5cd7df04c1 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.CLI.UsersAdd do
def run(args) do
args = Mix.Tasks.CLI.Utils.args_to_map(args)
case args do
%{"--help" => _} -> Mix.Tasks.CLI.Utils.print_help_for("users add")
x when x == %{} -> add_user()
_ -> IO.puts "boreale cli: users add command does not take any arguments"
... | 29.342857 | 104 | 0.614411 |
4a57cd8a339e2763e5e371d002eeacdd7b7eef1d | 3,407 | ex | Elixir | deps/phoenix/lib/phoenix/code_reloader/server.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/code_reloader/server.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/code_reloader/server.ex | dmitrinesterenko/sample_phoenix_ecs | d6b94f35680163302e372cf30c70d3e409b0c9b1 | [
"MIT"
] | null | null | null | # The GenServer used by the CodeReloader.
defmodule Phoenix.CodeReloader.Server do
@moduledoc false
use GenServer
require Logger
alias Phoenix.CodeReloader.Proxy
def start_link(app, root, paths, compilers, opts \\ []) do
GenServer.start_link(__MODULE__, {app, root, paths, compilers}, opts)
end
def ... | 28.872881 | 90 | 0.624009 |
4a57fc72a8086f2c0e66a6a657f9660d19d6eec6 | 842 | exs | Elixir | mix.exs | mainium/clock | 12c99181b03cd185ca50113f771376f2a69ed98d | [
"MIT"
] | 1 | 2020-05-31T19:09:50.000Z | 2020-05-31T19:09:50.000Z | mix.exs | mainium/clock | 12c99181b03cd185ca50113f771376f2a69ed98d | [
"MIT"
] | null | null | null | mix.exs | mainium/clock | 12c99181b03cd185ca50113f771376f2a69ed98d | [
"MIT"
] | null | null | null | defmodule Clock.MixProject do
use Mix.Project
def project do
[
app: :clock,
version: "0.1.3",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applica... | 22.157895 | 87 | 0.549881 |
4a583aeb28d02856263cea8f4454ec6908f2660a | 975 | ex | Elixir | test/sample_files/custom_behaviour_module.ex | balexandr/doctor | 9e6411e26fa2222a2da70271ac857f8049c77bd4 | [
"MIT"
] | 110 | 2018-10-03T06:44:31.000Z | 2022-03-06T20:20:10.000Z | test/sample_files/custom_behaviour_module.ex | balexandr/doctor | 9e6411e26fa2222a2da70271ac857f8049c77bd4 | [
"MIT"
] | 34 | 2019-06-05T18:47:10.000Z | 2022-03-11T00:11:54.000Z | test/sample_files/custom_behaviour_module.ex | balexandr/doctor | 9e6411e26fa2222a2da70271ac857f8049c77bd4 | [
"MIT"
] | 8 | 2019-06-16T22:10:00.000Z | 2022-02-23T19:30:33.000Z | defmodule Doctor.FooBarBehaviour do
@moduledoc """
A custom behaviour module
"""
@doc """
The famous foo function
"""
@callback foo(mode :: atom()) :: integer()
@doc """
And the infamous bar function
"""
@callback bar(mode :: atom()) :: integer()
@callback bar(mode :: atom(), param :: integer... | 19.5 | 64 | 0.645128 |
4a585567626f678087306e282ee95c2ac8a03f34 | 988 | ex | Elixir | lib/budget_api.ex | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | lib/budget_api.ex | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | lib/budget_api.ex | juanjcsr/BudgetAndCashAPI | 89c83c73175663d4572d6bfd0442af22353b6bc9 | [
"MIT"
] | null | null | null | defmodule BudgetApi do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint when the application starts
supervisor(BudgetA... | 31.870968 | 71 | 0.714575 |
4a588bd061d5d8408d1544092ecc5967cd8e395e | 2,104 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/operation_list_warning.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/operation_list_warning.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/operation_list_warning.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... | 38.962963 | 194 | 0.719106 |
4a58a91cd4a503904c63857599c353d795cc6d38 | 2,316 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/status.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/status.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/status.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... | 43.698113 | 427 | 0.718048 |
4a58b05bba17880fe20bbc094e8df1cda00c35a1 | 7,123 | exs | Elixir | test/phoenix_live_view/helpers_test.exs | tomconroy/phoenix_live_view | 655e95170e3e1b8fead1ffe43a661c7f5aa6b519 | [
"MIT"
] | null | null | null | test/phoenix_live_view/helpers_test.exs | tomconroy/phoenix_live_view | 655e95170e3e1b8fead1ffe43a661c7f5aa6b519 | [
"MIT"
] | null | null | null | test/phoenix_live_view/helpers_test.exs | tomconroy/phoenix_live_view | 655e95170e3e1b8fead1ffe43a661c7f5aa6b519 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.HelpersTest do
use ExUnit.Case, async: true
import Phoenix.LiveView.Helpers
import Phoenix.HTML
import Phoenix.HTML.Form
describe "live_patch" do
test "single arity" do
dom =
live_patch(to: "/", do: "text")
|> safe_to_string()
assert dom =~ ~s|data... | 30.054852 | 106 | 0.501334 |
4a58b645513879acf3b70fab3e985bcf2a13c9de | 2,006 | exs | Elixir | test/pow_last_login/ecto/schema_test.exs | montebrown/pow_last_login | da6ed81d67f0e55e101ad2402b923c05dcb5f367 | [
"MIT"
] | null | null | null | test/pow_last_login/ecto/schema_test.exs | montebrown/pow_last_login | da6ed81d67f0e55e101ad2402b923c05dcb5f367 | [
"MIT"
] | null | null | null | test/pow_last_login/ecto/schema_test.exs | montebrown/pow_last_login | da6ed81d67f0e55e101ad2402b923c05dcb5f367 | [
"MIT"
] | null | null | null | defmodule PowLastLogin.Ecto.SchemaTest do
use ExUnit.Case
use PowLastLogin.Test.Ecto.TestCase
doctest PowLastLogin.Ecto.Schema
alias PowLastLogin.Test.{Users.User}
@password "secret1234"
# @user Ecto.put_meta(%User{email: "test@example.com", password: @password, confirm_password: @password}, stat... | 39.333333 | 132 | 0.763709 |
4a58bc3a7397a6c0347f8448915a69993433f165 | 2,323 | ex | Elixir | lib/ex_doc/utils.ex | jwarwick/ex_doc | c9e1c6987a92749270ea6d34e9d39607a4d5c0f2 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/utils.ex | jwarwick/ex_doc | c9e1c6987a92749270ea6d34e9d39607a4d5c0f2 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/utils.ex | jwarwick/ex_doc | c9e1c6987a92749270ea6d34e9d39607a4d5c0f2 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Utils do
@moduledoc false
@doc """
HTML escapes the given string.
iex> ExDoc.Utils.h("<foo>")
"<foo>"
"""
def h(string) do
String.replace(string, ~w|& < > "|, fn
"&" -> "&"
"<" -> "<"
">" -> ">"
~S(") -> """
end)
end
@doc... | 24.712766 | 72 | 0.627637 |
4a58de1de92d4cd4c4696a5d2135074e1895c892 | 1,981 | exs | Elixir | clients/container_analysis/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/container_analysis/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.567164 | 188 | 0.671378 |
4a591e1b96097ef4fcb8116a7ec356637ea23602 | 1,921 | ex | Elixir | lib/sh.ex | devinus/sh | 65d5a7b62b4222a3c2c86de513cf9149f8fccbc9 | [
"Unlicense"
] | 128 | 2015-02-21T13:40:49.000Z | 2022-02-21T16:19:21.000Z | lib/sh.ex | devinus/sh | 65d5a7b62b4222a3c2c86de513cf9149f8fccbc9 | [
"Unlicense"
] | 5 | 2015-06-30T15:04:27.000Z | 2019-11-24T02:18:33.000Z | lib/sh.ex | devinus/sh | 65d5a7b62b4222a3c2c86de513cf9149f8fccbc9 | [
"Unlicense"
] | 8 | 2015-06-07T04:30:05.000Z | 2019-08-16T16:34:20.000Z | defmodule Sh do
defmodule CommandNotFound do
defexception [:command]
def message(%{command: command}) do
"Command not found: #{command}"
end
end
defmodule AbnormalExit do
defexception [:output, :status]
def message(%{status: status}) do
"exited with non-zero status (#{status})"
... | 24.316456 | 79 | 0.525247 |
4a595c44a8a2f2795152128562dee4307ed51a60 | 13,924 | ex | Elixir | lib/baiji/service/polly.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/polly.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/polly.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | defmodule Baiji.Polly do
@moduledoc """
Amazon Polly is a web service that makes it easy to synthesize speech from
text.
The Amazon Polly service provides API operations for synthesizing
high-quality speech from plain text and Speech Synthesis Markup Language
(SSML), along with managing pronunciations le... | 82.880952 | 8,034 | 0.589773 |
4a5963aad27ad224b04342493e00f9cbfedd4bf4 | 2,146 | ex | Elixir | web/models/old_animal.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | web/models/old_animal.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | web/models/old_animal.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.OldAnimal do
use Eecrit.Web, :model
use Eecrit.ModelDefaults, model: __MODULE__
resource_requires_ability :is_admin
use Timex
alias Eecrit.Pile
alias Eecrit.TimeUtil
@valid_species ~w{bovine caprine equine}
def valid_species, do: @valid_species
schema "animals" do
field :name, ... | 32.029851 | 100 | 0.714352 |
4a599ebadd1f3d9c13452b5a4d43b4c570bb9bcc | 1,029 | ex | Elixir | lib/bhelx_track/endpoint.ex | bhelx/AndroidTracker | f628701e5680874cf67e2d4cf8ed0ad1599b3308 | [
"MIT"
] | 4 | 2016-05-02T11:40:19.000Z | 2019-02-26T20:31:18.000Z | lib/bhelx_track/endpoint.ex | bhelx/AndroidTracker | f628701e5680874cf67e2d4cf8ed0ad1599b3308 | [
"MIT"
] | null | null | null | lib/bhelx_track/endpoint.ex | bhelx/AndroidTracker | f628701e5680874cf67e2d4cf8ed0ad1599b3308 | [
"MIT"
] | null | null | null | defmodule BhelxTrack.Endpoint do
use Phoenix.Endpoint, otp_app: :bhelx_track
socket "/socket", BhelxTrack.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug... | 25.725 | 69 | 0.715258 |
4a59f43c3335c8c7e15e45a47539c79fae7f3ea9 | 9,454 | ex | Elixir | lib/freegiving/accounts.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving/accounts.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving/accounts.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | defmodule Freegiving.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias Freegiving.Repo
alias Freegiving.Accounts.{User, UserToken, UserNotifier}
## Database getters
@doc """
Gets a user by email.
## Examples
iex> get_user_by_email("foo@example.com")... | 25.551351 | 116 | 0.662259 |
4a59f9db79694d6632ac9573435c7f961700ff95 | 409 | exs | Elixir | priv/repo/migrations/20200217160210_add_webhooks.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 6 | 2021-11-17T21:10:49.000Z | 2022-02-16T19:45:28.000Z | priv/repo/migrations/20200217160210_add_webhooks.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | 18 | 2021-11-25T04:31:06.000Z | 2022-03-27T04:54:00.000Z | priv/repo/migrations/20200217160210_add_webhooks.exs | pluralsh/console | 38a446ce1bc2f7bc3e904fcacb102d3d57835ada | [
"Apache-2.0"
] | null | null | null | defmodule Watchman.Repo.Migrations.AddWebhooks do
use Ecto.Migration
def change do
create table(:watchman_webhooks, primary_key: false) do
add :id, :uuid, primary_key: true
add :url, :string, null: false
add :type, :integer, null: false
add :health, :integer, null: false
... | 24.058824 | 59 | 0.652812 |
4a5a198849a72614dbcdd7c401b7a9973e360b7d | 123 | ex | Elixir | lib/nanocrawler/rpc_client/behaviour.ex | meltingice/nanocrawler-phoenix | 2477e8cb63a04d89eeda676c474e9b89c29da0e5 | [
"MIT"
] | 1 | 2020-04-19T07:48:46.000Z | 2020-04-19T07:48:46.000Z | lib/nanocrawler/rpc_client/behaviour.ex | meltingice/nanocrawler-phoenix | 2477e8cb63a04d89eeda676c474e9b89c29da0e5 | [
"MIT"
] | 2 | 2021-03-09T20:27:19.000Z | 2021-05-10T17:32:50.000Z | lib/nanocrawler/rpc_client/behaviour.ex | meltingice/nanocrawler-phoenix | 2477e8cb63a04d89eeda676c474e9b89c29da0e5 | [
"MIT"
] | null | null | null | defmodule Nanocrawler.RpcClient.Behaviour do
@callback rpc(String.t(), map()) :: {:ok, map()} | {:error, String.t()}
end
| 30.75 | 73 | 0.658537 |
4a5a232afe1fbb826d6f6def1098cd8c22110b14 | 863 | ex | Elixir | lib/oidc/utils/client.ex | tanguilp/oidc | 3a06cc72c88e7690cfee1ba35501fb06d2009756 | [
"Apache-2.0"
] | null | null | null | lib/oidc/utils/client.ex | tanguilp/oidc | 3a06cc72c88e7690cfee1ba35501fb06d2009756 | [
"Apache-2.0"
] | 5 | 2020-05-30T14:09:52.000Z | 2022-03-09T17:12:47.000Z | lib/oidc/utils/client.ex | YuriiZdyrko/oidc | 5587586a3ce00d43aa9df38052e95e17d8536033 | [
"Apache-2.0"
] | 3 | 2021-09-03T07:58:07.000Z | 2021-09-21T12:27:29.000Z | defmodule OIDC.Utils.Client do
alias OIDC.ClientConfig
defmodule JWKSRetrievalError do
defexception [:reason]
@impl true
def message(%{reqason: reason}),
do: "Could not retrieve the client JWKS (reason: #{inspect(reason)})"
end
@doc """
Returns the JWKs of a client
The `"jwks"` field o... | 23.972222 | 94 | 0.626883 |
4a5a23c76adc2f16a88314c83a423ebaeb544b2a | 202 | ex | Elixir | lib/eggman.ex | ohr486/eggman | 82eb614dab64aadaa556454b9c3c89ca9ed3c9b2 | [
"MIT"
] | 1 | 2020-01-13T20:50:40.000Z | 2020-01-13T20:50:40.000Z | lib/eggman.ex | ohr486/eggman | 82eb614dab64aadaa556454b9c3c89ca9ed3c9b2 | [
"MIT"
] | 25 | 2019-07-02T05:57:46.000Z | 2021-07-26T05:20:55.000Z | lib/eggman.ex | ohr486/eggman | 82eb614dab64aadaa556454b9c3c89ca9ed3c9b2 | [
"MIT"
] | null | null | null | defmodule Eggman do
use Application
def start(_type, _args) do
IO.puts "Eggman#start"
Eggman.Runtime.Sup.start_link
end
def stop(_state) do
IO.puts "Eggman#stop"
:ok
end
end
| 14.428571 | 33 | 0.673267 |
4a5a36b6c24893695303b13afbd42807645abb84 | 2,335 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/update_shape_properties_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/update_shape_properties_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/update_shape_properties_request.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... | 37.063492 | 131 | 0.722484 |
4a5a3707d881100ea7acb0683a0ff585450d4172 | 1,479 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/delete_banding_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/delete_banding_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/delete_banding_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 ... | 31.468085 | 101 | 0.741717 |
4a5a5c29cae27fc762dadc49f8311223d942db81 | 3,256 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/pivot_table.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/pivot_table.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/pivot_table.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 ... | 45.222222 | 178 | 0.69871 |
4a5a6da278848a1d0feecda4c548d96ba90db246 | 1,426 | ex | Elixir | config/dispatcher/dispatcher.ex | redpencilio/app-food-forest | cf5bae12bb4a91c34868e314a005aa8bc25274b6 | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | redpencilio/app-food-forest | cf5bae12bb4a91c34868e314a005aa8bc25274b6 | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | redpencilio/app-food-forest | cf5bae12bb4a91c34868e314a005aa8bc25274b6 | [
"MIT"
] | null | null | null | defmodule Dispatcher do
use Matcher
define_accept_types [
json: [ "application/json", "application/vnd.api+json" ],
html: [ "text/html", "application/xhtml+html" ],
sparql: [ "application/sparql-results+json" ],
any: [ "*/*" ]
]
define_layers [ :static, :sparql, :api, :frontend_fallback, :not_... | 27.960784 | 78 | 0.617812 |
4a5a8784f0ce3ee03964354b4b3c852301bf6dc7 | 286 | exs | Elixir | farmbot_ext/test/farmbot_ext/api_fetcher_test.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_ext/test/farmbot_ext/api_fetcher_test.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_ext/test/farmbot_ext/api_fetcher_test.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | defmodule FarmbotExt.APIFetcherTest do
require Helpers
use ExUnit.Case, async: false
use Mimic
setup :verify_on_exit!
alias FarmbotExt.APIFetcher
test "client" do
Helpers.use_fake_jwt()
%module{} = APIFetcher.client()
assert module == Tesla.Client
end
end
| 16.823529 | 38 | 0.72028 |
4a5abb2d55786927f90d4181cb13b09b85a92ea1 | 103 | exs | Elixir | config/config.exs | skygroup2/hexate | 53f5d9cdaf16ee12a8096ea9c005765fc3338c8f | [
"MIT"
] | 26 | 2015-04-22T21:33:59.000Z | 2022-01-31T21:02:01.000Z | config/config.exs | skygroup2/hexate | 53f5d9cdaf16ee12a8096ea9c005765fc3338c8f | [
"MIT"
] | 3 | 2015-01-02T21:52:42.000Z | 2018-02-11T15:42:11.000Z | config/config.exs | skygroup2/hexate | 53f5d9cdaf16ee12a8096ea9c005765fc3338c8f | [
"MIT"
] | 7 | 2016-02-10T20:24:52.000Z | 2021-07-26T23:55:15.000Z | use Mix.Config
if Mix.env == :dev do
config :mix_test_watch, tasks: ~w(test dogma), clear: true
end
| 17.166667 | 60 | 0.699029 |
4a5acfbbd8a7f6eff39ba371836686f3be8133b1 | 2,388 | ex | Elixir | clients/chrome_management/lib/google_api/chrome_management/v1/model/google_rpc_status.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/chrome_management/lib/google_api/chrome_management/v1/model/google_rpc_status.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/chrome_management/lib/google_api/chrome_management/v1/model/google_rpc_status.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.056604 | 427 | 0.726549 |
4a5aeb4780e1f8ddb9b659c781b5f896111539e9 | 806 | exs | Elixir | mix.exs | isaacpinheiro/cpf_validator | c346aa6861872d645b72cb74c700744224592e7e | [
"Apache-2.0"
] | null | null | null | mix.exs | isaacpinheiro/cpf_validator | c346aa6861872d645b72cb74c700744224592e7e | [
"Apache-2.0"
] | null | null | null | mix.exs | isaacpinheiro/cpf_validator | c346aa6861872d645b72cb74c700744224592e7e | [
"Apache-2.0"
] | null | null | null | defmodule CpfValidator.Mixfile do
use Mix.Project
def project do
[app: :cpf_validator,
version: "0.0.1",
elixir: "~> 1.3-dev",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compil... | 22.388889 | 77 | 0.588089 |
4a5af956a4da0f9839583ca59abe8e98f9e16003 | 4,787 | ex | Elixir | lib/amqp/exchange.ex | michaelklishin/elixir-amqp | 249c2b05069957e76c5c72cc6b42daaadf1ecee9 | [
"MIT"
] | null | null | null | lib/amqp/exchange.ex | michaelklishin/elixir-amqp | 249c2b05069957e76c5c72cc6b42daaadf1ecee9 | [
"MIT"
] | null | null | null | lib/amqp/exchange.ex | michaelklishin/elixir-amqp | 249c2b05069957e76c5c72cc6b42daaadf1ecee9 | [
"MIT"
] | 1 | 2020-04-27T18:06:52.000Z | 2020-04-27T18:06:52.000Z | defmodule AMQP.Exchange do
@moduledoc """
Functions to operate on Exchanges.
"""
import AMQP.Core
alias AMQP.{Basic, Channel}
@doc """
Declares an Exchange. The default Exchange type is `direct`.
AMQP 0-9-1 brokers provide four pre-declared exchanges:
* Direct exchange: (empty string) or `amq.d... | 37.692913 | 204 | 0.620848 |
4a5afa6c96e029bc255af46750a86f4d1047a587 | 165 | exs | Elixir | priv/repo/migrations/20201220111742_add_order_totasks.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | priv/repo/migrations/20201220111742_add_order_totasks.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | priv/repo/migrations/20201220111742_add_order_totasks.exs | roi-levoso/erflow | e8683fd93720703ea706af8f2317376dba3b401f | [
"MIT"
] | null | null | null | defmodule Erflow.Repo.Migrations.AddOrderTotasks do
use Ecto.Migration
def change do
alter table(:tasks) do
add :priority, :integer
end
end
end
| 16.5 | 51 | 0.709091 |
4a5b0b6267296cdf1ae1f17434b906894da38a59 | 28,831 | ex | Elixir | lib/livebook/session.ex | keywire/livebook | f22bf2a21d077e4127829ebe5b6477390f9ae283 | [
"Apache-2.0"
] | null | null | null | lib/livebook/session.ex | keywire/livebook | f22bf2a21d077e4127829ebe5b6477390f9ae283 | [
"Apache-2.0"
] | null | null | null | lib/livebook/session.ex | keywire/livebook | f22bf2a21d077e4127829ebe5b6477390f9ae283 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Session do
@moduledoc false
# Server corresponding to a single notebook session.
#
# The process keeps the current notebook state and serves
# as a source of truth that multiple clients talk to.
# Receives update requests from the clients and notifies
# them of any changes applied to t... | 31.134989 | 98 | 0.690264 |
4a5b1c78f78a79d644fe1fdc505316d44ba3a128 | 454 | ex | Elixir | lib/reddit_wrapper/api/subreddits/subreddits.ex | barons03/reddit_wrapper | a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df | [
"MIT"
] | 1 | 2018-11-26T21:40:40.000Z | 2018-11-26T21:40:40.000Z | lib/reddit_wrapper/api/subreddits/subreddits.ex | barons03/reddit_wrapper | a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df | [
"MIT"
] | null | null | null | lib/reddit_wrapper/api/subreddits/subreddits.ex | barons03/reddit_wrapper | a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df | [
"MIT"
] | null | null | null | defmodule RedditWrapper.Subreddits do
alias RedditWrapper.Http.Requester
alias RedditWrapper.Structs.Subreddit
alias RedditWrapper.Common.DataHandler
def default(params \\ %{}) do
Requester.request("/subreddits/default.json", :get, params)
|> DataHandler.handle(Subreddit, :list)
end
def popular(pa... | 28.375 | 63 | 0.729075 |
4a5b42d7a2197a6ce91e578f2ba09198e392b389 | 809 | exs | Elixir | example/ex_config_simple/config/config.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | example/ex_config_simple/config/config.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | example/ex_config_simple/config/config.exs | sega-yarkin/ex_config | bcb160c2414b08a59a5a5253bee0a8fee296cc3e | [
"MIT"
] | null | null | null | use Mix.Config
alias ExConfig.Source.System
config :ex_config_simple,
auth_enabled: {System, name: "AUTH_ENABLED"},
request_timeout: 20_000,
server_id: {System, name: ["INSTANCE_ID", "SERVER_ID"]},
main_color: "red",
extra_colors: "0x264653,0x2a9d8f,0xe9c46a"
config :ex_config_simple, :storage,
type: "nf... | 23.114286 | 58 | 0.700865 |
4a5b4fb409e5d236ae166a607270e79b4361c813 | 10,435 | exs | Elixir | test/json_schema_test_suite/draft7/unique_items_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 54 | 2019-03-10T19:51:07.000Z | 2021-12-23T07:31:09.000Z | test/json_schema_test_suite/draft7/unique_items_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 36 | 2018-05-20T09:13:20.000Z | 2021-03-14T15:22:03.000Z | test/json_schema_test_suite/draft7/unique_items_test.exs | hrzndhrn/json_xema | 955eab7b0919d144b38364164d90275201c89474 | [
"MIT"
] | 3 | 2019-04-12T09:08:51.000Z | 2019-12-04T01:23:56.000Z | defmodule JsonSchemaTestSuite.Draft7.UniqueItemsTest do
use ExUnit.Case
import JsonXema, only: [valid?: 2]
describe ~s|uniqueItems validation| do
setup do
%{schema: JsonXema.new(%{"uniqueItems" => true})}
end
test ~s|unique array of integers is valid|, %{schema: schema} do
assert valid?... | 31.056548 | 92 | 0.559655 |
4a5b6d4adca8df22a52bb82f496115fa08ac3f5a | 1,523 | ex | Elixir | lib/shorten_web.ex | albydarned/shorten | af4f870dbb0f9c3b0699712cc27370e83ed3a730 | [
"MIT"
] | 3 | 2018-09-14T16:16:11.000Z | 2019-07-12T22:25:50.000Z | lib/shorten_web.ex | albydarned/shorten | af4f870dbb0f9c3b0699712cc27370e83ed3a730 | [
"MIT"
] | null | null | null | lib/shorten_web.ex | albydarned/shorten | af4f870dbb0f9c3b0699712cc27370e83ed3a730 | [
"MIT"
] | 1 | 2019-07-12T22:25:53.000Z | 2019-07-12T22:25:53.000Z | defmodule ShortenWeb 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 ShortenWeb, :controller
use ShortenWeb, :view
The definitions below will be executed for every view,
controller, ... | 23.430769 | 69 | 0.689429 |
4a5b7c71cdde649a315f593e5c1f57596cebac49 | 118 | exs | Elixir | firstproject/hello_mix/test/hello_mix_test.exs | chuck1991/ElixirBasics | 3ffeca38d91e52c2aae6701d89c77158d5c5b4ec | [
"Apache-2.0"
] | null | null | null | firstproject/hello_mix/test/hello_mix_test.exs | chuck1991/ElixirBasics | 3ffeca38d91e52c2aae6701d89c77158d5c5b4ec | [
"Apache-2.0"
] | null | null | null | firstproject/hello_mix/test/hello_mix_test.exs | chuck1991/ElixirBasics | 3ffeca38d91e52c2aae6701d89c77158d5c5b4ec | [
"Apache-2.0"
] | null | null | null | defmodule HelloMixTest do
use ExUnit.Case
doctest HelloMix
test "the truth" do
assert 1 + 1 == 2
end
end
| 13.111111 | 25 | 0.677966 |
4a5b7d847d74699e6ae5b5f73aecad6b57f94ded | 329 | ex | Elixir | lib/socializer_web/router.ex | adam-h/socializer | 22bbb34a6e707af9cf608c5eeb6189d1f067a95b | [
"MIT"
] | 311 | 2019-04-21T22:15:08.000Z | 2022-01-23T14:07:03.000Z | lib/socializer_web/router.ex | adam-h/socializer | 22bbb34a6e707af9cf608c5eeb6189d1f067a95b | [
"MIT"
] | 9 | 2020-09-07T09:38:58.000Z | 2022-02-26T18:07:44.000Z | lib/socializer_web/router.ex | adam-h/socializer | 22bbb34a6e707af9cf608c5eeb6189d1f067a95b | [
"MIT"
] | 49 | 2019-04-22T01:29:50.000Z | 2022-03-23T04:34:35.000Z | defmodule SocializerWeb.Router do
use Phoenix.Router
pipeline :api do
plug SocializerWeb.Context
plug :accepts, ["json"]
end
scope "/" do
pipe_through :api
forward "/graphiql", Absinthe.Plug.GraphiQL, schema: SocializerWeb.Schema
forward "/", Absinthe.Plug, schema: SocializerWeb.Schema
... | 19.352941 | 77 | 0.708207 |
4a5b9f072e852072a67d45a9b7c90a0f08753d01 | 656 | ex | Elixir | solomon/web/services/jwt_auth.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 10 | 2018-04-12T22:29:52.000Z | 2021-10-18T17:07:45.000Z | solomon/web/services/jwt_auth.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | null | null | null | solomon/web/services/jwt_auth.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 1 | 2018-07-06T18:42:05.000Z | 2018-07-06T18:42:05.000Z | defmodule Solomon.JWTAuth do
alias JsonWebToken.Algorithm.RsaUtil
def sign(claims) do
JsonWebToken.sign(claims, sign_opts)
end
def verify(token) do
JsonWebToken.verify(token, verify_opts)
end
defp sign_opts, do: opts(:sign)
defp verify_opts, do: opts(:verify)
defp opts(action) do
alg = "... | 25.230769 | 78 | 0.695122 |
4a5bb559a720983b490d7db30059ee261c176cd4 | 7,560 | exs | Elixir | test/plug/static_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | test/plug/static_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | test/plug/static_test.exs | gjaldon/plug | bfe88530b429c7b9b29b69b737772ef7c6aa2f6b | [
"Apache-2.0"
] | null | null | null | defmodule Plug.StaticTest do
use ExUnit.Case, async: true
use Plug.Test
defmodule MyPlug do
use Plug.Builder
plug Plug.Static,
at: "/public",
from: Path.expand("..", __DIR__),
gzip: true,
headers: %{"x-custom" => "x-value"}
plug :passthrough
defp passthrough(conn, _), d... | 33.6 | 92 | 0.62791 |
4a5bdaab7a3d4b3f8ec03a7bf1f203649e6b644a | 7,796 | ex | Elixir | lib/trans.ex | crbelaus/trans | 6150d309dd2116c6838a5bb051dca5b171e681cf | [
"Apache-2.0"
] | 108 | 2018-08-24T19:47:59.000Z | 2022-03-24T13:15:42.000Z | lib/trans.ex | crbelaus/trans | 6150d309dd2116c6838a5bb051dca5b171e681cf | [
"Apache-2.0"
] | 20 | 2018-10-09T18:32:37.000Z | 2022-03-19T08:46:16.000Z | lib/trans.ex | crbelaus/trans | 6150d309dd2116c6838a5bb051dca5b171e681cf | [
"Apache-2.0"
] | 13 | 2018-10-09T18:30:16.000Z | 2022-01-26T23:37:20.000Z | defmodule Trans do
@moduledoc """
Manage translations embedded into structs.
Although it can be used with any struct **`Trans` shines when paired with an `Ecto.Schema`**. It
allows you to keep the translations into a field of the schema and avoids requiring extra tables
for translation storage and complex _j... | 33.316239 | 131 | 0.694715 |
4a5bfd3e7bc2ff18609c632e64874a9e984d796e | 498 | ex | Elixir | lib/bitpal_factory/factorey_helpers.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 5 | 2021-05-04T21:28:00.000Z | 2021-12-01T11:19:48.000Z | lib/bitpal_factory/factorey_helpers.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 71 | 2021-04-21T05:48:49.000Z | 2022-03-23T06:30:37.000Z | lib/bitpal_factory/factorey_helpers.ex | bitpal/bitpal | 0e10eeaacf7a65b23945cfb95e4dbda8bffd4590 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-25T10:35:41.000Z | 2021-04-25T10:35:41.000Z | defmodule BitPalFactory.FactoryHelpers do
alias BitPalFactory.Sequencer
@spec sequence(String.t()) :: String.t()
def sequence(name) when is_binary(name) do
Sequencer.next(name, &(name <> to_string(&1)))
end
@spec sequence(term, (integer -> term)) :: term
def sequence(name, formatter) do
Sequencer.... | 23.714286 | 51 | 0.668675 |
4a5c0dadfb7740a7916226c4999fc943fe529aaf | 2,664 | ex | Elixir | lib/absinthe/schema/notation/scope.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | lib/absinthe/schema/notation/scope.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/schema/notation/scope.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Schema.Notation.Scope do
@moduledoc false
@stack :absinthe_notation_scopes
defstruct name: nil, recordings: [], attrs: []
use Absinthe.Type.Fetch
def open(name, mod, attrs \\ []) do
Module.put_attribute(mod, @stack, [%__MODULE__{name: name, attrs: attrs} | on(mod)])
end
def cl... | 22.2 | 88 | 0.593844 |
4a5c214b80953524e55d4d5141cc07d494539ba4 | 308 | ex | Elixir | lib/mix_audit/advisory.ex | wolcanism/mix_audit | 5217f4be56519dd67dba0084929d1ed50517bc18 | [
"BSD-3-Clause"
] | 173 | 2020-03-04T14:04:46.000Z | 2022-03-26T21:50:27.000Z | lib/mix_audit/advisory.ex | wolcanism/mix_audit | 5217f4be56519dd67dba0084929d1ed50517bc18 | [
"BSD-3-Clause"
] | 5 | 2020-03-09T17:04:19.000Z | 2021-12-29T17:38:20.000Z | lib/mix_audit/advisory.ex | wolcanism/mix_audit | 5217f4be56519dd67dba0084929d1ed50517bc18 | [
"BSD-3-Clause"
] | 6 | 2020-03-11T21:43:48.000Z | 2021-12-21T19:20:48.000Z | defmodule MixAudit.Advisory do
@derive Jason.Encoder
defstruct id: nil,
package: nil,
disclosure_date: nil,
cve: nil,
url: nil,
title: nil,
description: nil,
patched_versions: [],
unaffected_versions: []
end
| 23.692308 | 35 | 0.516234 |
4a5c8b0b1aeeb981f0dfd6bd2b8e2e99f3a47a3f | 527 | exs | Elixir | test/shenu/message/color_test.exs | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 3 | 2016-06-19T00:21:54.000Z | 2021-09-28T22:04:07.000Z | test/shenu/message/color_test.exs | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | null | null | null | test/shenu/message/color_test.exs | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 1 | 2018-12-06T22:51:26.000Z | 2018-12-06T22:51:26.000Z | defmodule Test.Shenu.Message.Color do
use Test.Shenu.Message.Case
test "default schema" do
create_parser()
|> parse(%{"r" => 255, "g" => 255, "b" => 255, "a" => 0.2})
|> assert_message(%Color{r: 255, g: 255, b: 255, a: 0.2})
end
test "default schema error" do
create_parser()
|> parse(%{"fo... | 23.954545 | 63 | 0.56926 |
4a5ccef958309a746d6477e435e98716074a0ccd | 44,636 | ex | Elixir | lib/phoenix_live_view/test/live_view_test.ex | ucwaldo/phoenix_live_view | aa192420dc3b3b4158bbc7582ce39cb149221170 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | ucwaldo/phoenix_live_view | aa192420dc3b3b4158bbc7582ce39cb149221170 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/test/live_view_test.ex | ucwaldo/phoenix_live_view | aa192420dc3b3b4158bbc7582ce39cb149221170 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest do
@moduledoc """
Conveniences for testing Phoenix LiveViews.
In LiveView tests, we interact with views via process
communication in substitution of a browser. Like a browser,
our test process receives messages about the rendered updates
from the view which can be asserted ag... | 31.8601 | 110 | 0.652366 |
4a5cd4dd6a216d16e26aef0510d071f8126f658e | 719 | ex | Elixir | lib/mix/tasks/bloodhound/delete.ex | optick-archive/bloodhound | 53d390195e0227544d4a09250c37e647a5674e59 | [
"MIT"
] | null | null | null | lib/mix/tasks/bloodhound/delete.ex | optick-archive/bloodhound | 53d390195e0227544d4a09250c37e647a5674e59 | [
"MIT"
] | null | null | null | lib/mix/tasks/bloodhound/delete.ex | optick-archive/bloodhound | 53d390195e0227544d4a09250c37e647a5674e59 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Bloodhound.Delete do
use Mix.Task
alias Bloodhound.Client
def run(options) do
{:ok, _} = Application.ensure_all_started :bloodhound
case options do
[] ->
Client.delete
index_name = Application.get_env :bloodhound, :index
Mix.shell.info [:green, "Deleted... | 28.76 | 77 | 0.638387 |
4a5cf0c2847b24c4418bae40e5dcc0fc95c01118 | 3,620 | ex | Elixir | apps/omg/lib/omg/output.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg/lib/omg/output.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg/lib/omg/output.ex | omgnetwork/omg-childchain-v1 | 1e2313029ece2282c22ce411edc078a17e6bba09 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 41.136364 | 117 | 0.705801 |
4a5d2d1983d323c78c2ed9b1a86da7b3daebb9d3 | 12,203 | ex | Elixir | lib/scenic/view_port/tables.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 1,716 | 2018-09-07T21:55:43.000Z | 2022-03-31T16:16:30.000Z | lib/scenic/view_port/tables.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 220 | 2018-09-08T01:28:00.000Z | 2022-03-22T03:55:17.000Z | lib/scenic/view_port/tables.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 137 | 2018-09-07T21:55:56.000Z | 2022-03-26T04:07:27.000Z | #
# Created by Boyd Multerer on 2018-04-13.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.ViewPort.Tables do
@moduledoc """
The Tables processes is a critical piece of Scenic.
It caches the graphs that have been pushed by the various scenes.
"""
use GenServer
alias Scenic.... | 32.3687 | 85 | 0.536425 |
4a5d4f25809035d460bd7ba03176817f618a4d1b | 4,247 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator_web_token_spec.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator_web_token_spec.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/administrator_web_token_spec.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 ... | 49.383721 | 237 | 0.750412 |
4a5d5b3b16dd9646f1144195bb012b41aee6737d | 50,501 | ex | Elixir | lib/phoenix/controller.ex | joshchernoff/phoenix | cd1541a8bc12cdb2501be6b08403558e82c5b72b | [
"MIT"
] | 1 | 2020-04-14T09:49:46.000Z | 2020-04-14T09:49:46.000Z | lib/phoenix/controller.ex | joshchernoff/phoenix | cd1541a8bc12cdb2501be6b08403558e82c5b72b | [
"MIT"
] | 1 | 2020-11-08T08:30:10.000Z | 2020-11-08T08:30:10.000Z | lib/phoenix/controller.ex | joshchernoff/phoenix | cd1541a8bc12cdb2501be6b08403558e82c5b72b | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller do
import Plug.Conn
alias Plug.Conn.AlreadySentError
require Logger
require Phoenix.Endpoint
@unsent [:unset, :set]
@moduledoc """
Controllers are used to group common functionality in the same
(pluggable) module.
For example, the route:
get "/users/:id", MyAppW... | 31.721734 | 137 | 0.673947 |
4a5d65695731cf19805a2cffc7f905169009490d | 492 | ex | Elixir | lib/timber/contexts/session_context.ex | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | lib/timber/contexts/session_context.ex | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | lib/timber/contexts/session_context.ex | montebrown/timber-elixir | 1e177cc426422be3617479143038f5882037752f | [
"0BSD"
] | null | null | null | defmodule Timber.Contexts.SessionContext do
@moduledoc """
The Session context tracks the current session. It it's a way to track users without the
need for authentication.
Note: Timber can automatically add context information about HTTP requests if
you use a `Plug` based framework through the `Timber.Integ... | 24.6 | 90 | 0.668699 |
4a5d661be5047d127ffd7d5bdb36f34ad9c7a12f | 2,259 | ex | Elixir | lib/gh_web.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | lib/gh_web.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | lib/gh_web.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | defmodule GhWeb 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 GhWeb, :controller
use GhWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep th... | 21.932039 | 81 | 0.670651 |
4a5d7d7a52e61c068bc604d7eb04e57b01468461 | 143 | ex | Elixir | lib/lavalex/message/destroy.ex | TeeSeal/lavalex | 6ce016bcc557189d3ea36ecaafae55d0d5399bd3 | [
"MIT"
] | null | null | null | lib/lavalex/message/destroy.ex | TeeSeal/lavalex | 6ce016bcc557189d3ea36ecaafae55d0d5399bd3 | [
"MIT"
] | null | null | null | lib/lavalex/message/destroy.ex | TeeSeal/lavalex | 6ce016bcc557189d3ea36ecaafae55d0d5399bd3 | [
"MIT"
] | null | null | null | defmodule Lavalex.Message.Destroy do
use Lavalex.Message
@enforce_keys [:guild_id]
defstruct [
:guild_id,
op: "destroy"
]
end
| 14.3 | 36 | 0.685315 |
4a5d8f550b26a7055d7ab5040a8ac5879280f4e2 | 1,897 | exs | Elixir | mix.exs | rerb/ueberauth_example | 1a08d578dfeaca5b77d213b1abbc53913f2a3b37 | [
"MIT"
] | 210 | 2015-11-19T01:54:04.000Z | 2021-11-14T18:14:57.000Z | mix.exs | rerb/ueberauth_example | 1a08d578dfeaca5b77d213b1abbc53913f2a3b37 | [
"MIT"
] | 63 | 2015-11-19T00:08:29.000Z | 2021-09-07T03:04:36.000Z | mix.exs | rerb/ueberauth_example | 1a08d578dfeaca5b77d213b1abbc53913f2a3b37 | [
"MIT"
] | 102 | 2015-11-20T11:47:12.000Z | 2022-03-23T11:10:38.000Z | defmodule UeberauthExample.MixProject do
use Mix.Project
def project do
[
app: :ueberauth_example,
version: "0.0.1",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: alia... | 27.492754 | 84 | 0.574591 |
4a5dcf8f6f1ca0b4058eedfd4e5dc0ed0511efe8 | 1,081 | ex | Elixir | lib/goncord.ex | herald-it/goncord.ex | 2f58706231a28caa067509c5df43f5c915c46320 | [
"MIT"
] | null | null | null | lib/goncord.ex | herald-it/goncord.ex | 2f58706231a28caa067509c5df43f5c915c46320 | [
"MIT"
] | 5 | 2017-03-31T06:48:29.000Z | 2018-12-20T03:40:59.000Z | lib/goncord.ex | herald-it/goncord.ex | 2f58706231a28caa067509c5df43f5c915c46320 | [
"MIT"
] | 1 | 2019-01-20T10:01:27.000Z | 2019-01-20T10:01:27.000Z | defmodule Goncord do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 32.757576 | 85 | 0.711378 |
4a5df8ee83dca15cfcb0ecd9bd9ec0ddfb89bac3 | 3,397 | ex | Elixir | Elixir/vercheckex/lib/vercheckex.ex | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | Elixir/vercheckex/lib/vercheckex.ex | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | Elixir/vercheckex/lib/vercheckex.ex | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | defmodule VercheckEx do
require HTTPoison
require Floki
require Timex
def fetch_content() do
receive do # メッセージ受信。{送り手のpid, url, type, インデックス}が来たら以下を実行。
{caller, url, type, i} ->
#IO.puts "URL = #{url}"
ret = HTTPoison.get!( url )
%HTTPoison.Response{status_code: 200, body: b... | 35.385417 | 88 | 0.596114 |
4a5e28306a747c5066bc9c049cb3a1aca7e6f9dd | 1,746 | ex | Elixir | clients/games/lib/google_api/games/v1/model/category.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/games/lib/google_api/games/v1/model/category.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/games/lib/google_api/games/v1/model/category.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.943396 | 151 | 0.706186 |
4a5e347747c75d182b54b967a47c7b792ff43aaf | 3,001 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/grpc_health_check.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/grpc_health_check.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/grpc_health_check.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.169231 | 244 | 0.733755 |
4a5e39bdb8d8c689a40bc56113778951e22f6676 | 1,279 | exs | Elixir | config/dev.exs | IvanOM/ices | cbda3f66a61a302033515312614925441a66409b | [
"Apache-2.0"
] | null | null | null | config/dev.exs | IvanOM/ices | cbda3f66a61a302033515312614925441a66409b | [
"Apache-2.0"
] | 1 | 2017-08-24T17:58:54.000Z | 2017-08-24T17:58:54.000Z | config/dev.exs | IvanOM/ices | cbda3f66a61a302033515312614925441a66409b | [
"Apache-2.0"
] | null | null | null | 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 :ices, Ices.Endpoint,
http: [port: 4000],
de... | 29.068182 | 73 | 0.688819 |
4a5e408173fe0aa98862c25ea5ce6008b0e7baf9 | 1,393 | exs | Elixir | lib/ex_unit/test/ex_unit/callbacks_test.exs | QuinnWilton/elixir | e42e3e55ca1561fe56b58d6f51c7b0faae6a7a1e | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/ex_unit/test/ex_unit/callbacks_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/test/ex_unit/callbacks_test.exs | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule ExUnit.CallbacksTest do
use ExUnit.Case, async: true
setup_all do
{ :ok, [context: :setup_all] }
end
setup do
{ :ok, [initial_setup: true] }
end
setup context do
assert context[:initial_setup]
assert context[:context] == :setup_al... | 18.824324 | 82 | 0.66906 |
4a5e54f6623dac78aef16714048dc1a1e4da00a0 | 841 | ex | Elixir | lib/phantomchain/crypto/transactions/serialisers/multi_payment.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | lib/phantomchain/crypto/transactions/serialisers/multi_payment.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | lib/phantomchain/crypto/transactions/serialisers/multi_payment.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | defmodule PhantomChain.Crypto.Transactions.Serializers.MultiPayment do
alias PhantomChain.Crypto.Helpers.Base58Check
def serialize(bytes, transaction) do
payments_count = length(transaction.asset.payments)
bytes <>
<<payments_count::little-unsigned-integer-size(64)>> <>
serialize_payments(tran... | 27.129032 | 72 | 0.69679 |
4a5e614bbb25750054ab7f63e09eeaf364a823f3 | 832 | exs | Elixir | config/dev.exs | chrismccord/phorechat | 26c5b2f752f5c8e50d07d49b2b20d9341d8b2464 | [
"MIT"
] | 1 | 2021-01-19T05:40:52.000Z | 2021-01-19T05:40:52.000Z | config/dev.exs | chrismccord/phorechat | 26c5b2f752f5c8e50d07d49b2b20d9341d8b2464 | [
"MIT"
] | null | null | null | config/dev.exs | chrismccord/phorechat | 26c5b2f752f5c8e50d07d49b2b20d9341d8b2464 | [
"MIT"
] | 1 | 2015-10-02T15:58:09.000Z | 2015-10-02T15:58:09.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 :phorechat, Phorechat.Endpoint,
http: [port: 4... | 29.714286 | 63 | 0.703125 |
4a5e750f672fea92fe67d71a69c8e7b0421da024 | 7,262 | exs | Elixir | apps/andi/test/integration/andi_web/live/ingestion_live_view/finalize_form_test.exs | UrbanOS-Public/smartcitiesdata | c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd | [
"Apache-2.0"
] | 8 | 2021-10-31T18:45:02.000Z | 2022-03-05T18:33:08.000Z | apps/andi/test/integration/andi_web/live/ingestion_live_view/finalize_form_test.exs | UrbanOS-Public/smartcitiesdata | c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd | [
"Apache-2.0"
] | 7 | 2022-01-14T21:21:23.000Z | 2022-03-16T17:23:10.000Z | apps/andi/test/integration/andi_web/live/ingestion_live_view/finalize_form_test.exs | UrbanOS-Public/smartcitiesdata | c4f4d83fcd1bbae5f4d3f47a9b218f3d991a51cd | [
"Apache-2.0"
] | 1 | 2022-03-08T23:45:02.000Z | 2022-03-08T23:45:02.000Z | defmodule AndiWeb.IngestionLiveView.FinalizeFormTest do
use ExUnit.Case
use Andi.DataCase
use AndiWeb.Test.AuthConnCase.IntegrationCase
use Placebo
import Checkov
import Phoenix.LiveViewTest
import SmartCity.Event, only: [ingestion_update: 0, dataset_update: 0]
import SmartCity.TestHelper, only: [event... | 32.859729 | 93 | 0.658496 |
4a5eb69a0134457902f1e26811933da7f84db6b8 | 1,345 | ex | Elixir | tfl_demo/lib/tfl_demo_web/live/deep_lab3_live.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | tfl_demo/lib/tfl_demo_web/live/deep_lab3_live.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | tfl_demo/lib/tfl_demo_web/live/deep_lab3_live.ex | shoz-f/tfl_projects | 274db6b952e2f6042f7e3ab2ab2505f55a60de90 | [
"Apache-2.0"
] | null | null | null | defmodule TflDemoWeb.DeepLab3Live do
use TflDemoWeb, :live_view
import TflDemo, only: [init_file: 2, path_static: 1, unique_key: 1]
@target "/images/deeplab_src.jpg"
@applied "/images/deeplab_res.jpg"
@impl true
def mount(_params, _session, socket) do
deeplab3 = {@target, "/images/input_image.jpg"}
... | 26.9 | 102 | 0.643866 |
4a5ec824eb60fdd25f8087fc7a807af62bae9aaa | 589 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | testData/org/elixir_lang/parser_definition/matched_call_operation/matched_expression_parsing_test_case/EmptyBlock.ex | ArtemGordinsky/intellij-elixir | e2d9b4dfc65651b293d499043edeaad606cf5652 | [
"Apache-2.0"
] | null | null | null | (;) &one
(;) one \\ default
(;) one when guard
(;) one :: type
(;) one | new
(;) one = two
(;) one or two
(;) one || two
(;) one and two
(;) one && two
(;) one != two
(;) one < two
(;) one |> two
(;) one + two
(;) one / two
(;) one * two
(;) one ^^^ two
(;) !one
(;) not one
(;) One.Two
(;) One.two
(;) @one
(;) One Two
... | 11.78 | 22 | 0.393888 |
4a5f0805bdee6c29d1d9e1f492e99a5dd0472d07 | 3,185 | exs | Elixir | mix.exs | rizalgowandy/changelog.com | 3f8a474afc254ecf74a48c5f75083d84eec1d972 | [
"MIT"
] | 1 | 2020-09-04T03:25:40.000Z | 2020-09-04T03:25:40.000Z | mix.exs | rizalgowandy/changelog.com | 3f8a474afc254ecf74a48c5f75083d84eec1d972 | [
"MIT"
] | null | null | null | mix.exs | rizalgowandy/changelog.com | 3f8a474afc254ecf74a48c5f75083d84eec1d972 | [
"MIT"
] | null | null | null | defmodule Changelog.Mixfile do
use Mix.Project
Code.compile_file("config/secret_or_env.exs")
def project do
[
app: :changelog,
version: System.get_env("APP_VERSION", "0.0.1"),
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix] ++ Mix.compilers(),
... | 31.534653 | 92 | 0.530612 |
4a5f1307fe75db952dcf36730267eaebad605248 | 3,221 | exs | Elixir | test/phoenix/controller/logger_test.exs | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | test/phoenix/controller/logger_test.exs | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | test/phoenix/controller/logger_test.exs | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller.LoggerTest do
# This test case needs to be sync because we rely on
# log capture which is global.
use ExUnit.Case
use RouterHelper
defmodule LoggerController do
use Phoenix.Controller
plug :action
def index(conn, _params), do: text(conn, "index")
end
test "logs c... | 31.578431 | 127 | 0.596709 |
4a5f1bf8082ebc9e86d76c9921b21a287a1fd18f | 1,658 | ex | Elixir | project/gamenect/web/web.ex | daemonfire300/learning_phoenix | 0ab0cb1feacda4ec5c0ab0a5324835a150db22ab | [
"MIT"
] | null | null | null | project/gamenect/web/web.ex | daemonfire300/learning_phoenix | 0ab0cb1feacda4ec5c0ab0a5324835a150db22ab | [
"MIT"
] | null | null | null | project/gamenect/web/web.ex | daemonfire300/learning_phoenix | 0ab0cb1feacda4ec5c0ab0a5324835a150db22ab | [
"MIT"
] | null | null | null | defmodule Gamenect.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Gamenect.Web, :controller
use Gamenect.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them ... | 19.975904 | 88 | 0.669481 |
4a5f94a02b3a48abded13c1e7113688626e7926e | 874 | ex | Elixir | lib/shopiexrl/guards.ex | byjpr/ShopiexRL | fc2051dd9280c97208f5980ccfcce7d42525d5aa | [
"MIT"
] | 1 | 2019-03-07T11:31:03.000Z | 2019-03-07T11:31:03.000Z | lib/shopiexrl/guards.ex | byjpr/ShopiexRL | fc2051dd9280c97208f5980ccfcce7d42525d5aa | [
"MIT"
] | 29 | 2020-06-28T19:35:06.000Z | 2021-07-11T13:15:07.000Z | lib/shopiexrl/guards.ex | byjord/ShopiexRL | fc2051dd9280c97208f5980ccfcce7d42525d5aa | [
"MIT"
] | null | null | null | defmodule ShopiexRL.Guards do
@moduledoc """
Guards used in the ShopiexRL OTP application
"""
@doc """
Checks if `count` is greater than `cap`
"""
defmacro at_cap?(count, rate_cap) do
quote do
unquote(count) > unquote(rate_cap)
end
end
@doc """
Checks if `count` is less than `cap`
... | 19.863636 | 69 | 0.652174 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.