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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03b91660a71aaae44f855edafdf063578304a61c | 46,229 | exs | Elixir | lib/iex/test/iex/helpers_test.exs | ChezCrawford/elixir | 2701169b1e5d60da1a4cd71b41866cb29fc36d21 | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/helpers_test.exs | ChezCrawford/elixir | 2701169b1e5d60da1a4cd71b41866cb29fc36d21 | [
"Apache-2.0"
] | null | null | null | lib/iex/test/iex/helpers_test.exs | ChezCrawford/elixir | 2701169b1e5d60da1a4cd71b41866cb29fc36d21 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../test_helper.exs", __DIR__)
defmodule IEx.HelpersTest do
use IEx.Case
import IEx.Helpers
@compile {:no_warn_undefined, [:sample, Sample, Sample2]}
describe "whereami" do
test "is disabled by default" do
assert capture_iex("whereami()") =~ "Pry session is not currently enabled"... | 30.433838 | 120 | 0.561833 |
03b91adec2083409ef866b4d73579d05db5216ea | 10,115 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchase.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchase.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchase.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... | 67.433333 | 564 | 0.718735 |
03b92c7f415cc5c47124f1edce534ca6617e16ed | 3,022 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/marketplaceprivateauction.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/marketplaceprivateauction.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/api/marketplaceprivateauction.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... | 36.409639 | 170 | 0.694904 |
03b942f27507585d2bd6a2fbfc02946ddbb20f3f | 88 | exs | Elixir | test/web/views/page_view_test.exs | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | test/web/views/page_view_test.exs | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | test/web/views/page_view_test.exs | danjac/podcatcher | 748cf7419aebfff9216e7ff9353a5bdb46d3d7b1 | [
"MIT"
] | null | null | null | defmodule Podcatcher.Web.PageViewTest do
use Podcatcher.Web.ConnCase, async: true
end
| 22 | 42 | 0.818182 |
03b94ab12306c0f357421f01d05984e327157409 | 329 | ex | Elixir | lib/ex_trello/board_channel/supervisor.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | lib/ex_trello/board_channel/supervisor.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | lib/ex_trello/board_channel/supervisor.ex | KazuCocoa/ex_torello | 187d814094f79a3d99bca2746683804333d40dfe | [
"MIT"
] | null | null | null | defmodule ExTrello.BoardChannel.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
worker(ExTrello.BoardChannel.Monitor, [], restart: :temporary)
]
supervise(children, strategy: :simple_one_for_one)
... | 20.5625 | 68 | 0.714286 |
03b94e17b42efe8bbaf5bfac433d36ff94bd9ee4 | 135 | exs | Elixir | test/aba_cli_test.exs | jscheel42/aba_cli | c66c4921f970dbc8acea4f273d9802c978d2f123 | [
"MIT"
] | null | null | null | test/aba_cli_test.exs | jscheel42/aba_cli | c66c4921f970dbc8acea4f273d9802c978d2f123 | [
"MIT"
] | null | null | null | test/aba_cli_test.exs | jscheel42/aba_cli | c66c4921f970dbc8acea4f273d9802c978d2f123 | [
"MIT"
] | null | null | null | defmodule AbaCLITest do
use ExUnit.Case
doctest AbaCLI
test "greets the world" do
assert AbaCLI.hello() == :world
end
end
| 15 | 35 | 0.703704 |
03b95f76fce304e7e6ae6f165b993439255a805e | 457 | ex | Elixir | web/views/auth_view.ex | andreihod/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 2 | 2017-07-19T17:03:41.000Z | 2017-09-18T12:58:42.000Z | web/views/auth_view.ex | mateusfs/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 7 | 2017-07-18T23:32:45.000Z | 2017-08-18T01:09:11.000Z | web/views/auth_view.ex | mateusfs/cryptofolio-api | 063bfcf39a0b334204e6b6ef01990622a1f316af | [
"MIT"
] | 2 | 2017-08-03T19:55:21.000Z | 2018-07-01T19:54:22.000Z | defmodule Cryptofolio.AuthView do
use Cryptofolio.Web, :view
def render("show.json", %{user: user}) do
%{user: render_one(user, Cryptofolio.UserView, "user.json")}
end
def render("login.json", %{user: user, jwt: jwt, exp: exp}) do
%{
user: render_one(user, Cryptofolio.UserView, "user.json"),
... | 21.761905 | 66 | 0.617068 |
03b96b25909252b69651c399f14fba2f28b4c519 | 17,516 | ex | Elixir | lib/chain.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 8 | 2021-03-12T15:35:09.000Z | 2022-03-06T06:37:49.000Z | lib/chain.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 2 | 2021-03-12T15:34:40.000Z | 2022-02-03T10:05:01.000Z | lib/chain.ex | diodechain/diode_server | 1692788bd92cc17654965878abd059d13b5e236c | [
"Apache-2.0"
] | 5 | 2021-10-01T12:52:28.000Z | 2022-02-02T19:29:56.000Z | # Diode Server
# Copyright 2021 Diode
# Licensed under the Diode License, Version 1.1
defmodule Chain do
alias Chain.BlockCache, as: Block
alias Chain.Transaction
alias Model.ChainSql
use GenServer
defstruct peak: nil, by_hash: %{}, states: %{}
@type t :: %Chain{
peak: Chain.Block.t(),
... | 24.16 | 101 | 0.589632 |
03b97d3550addb51c1a0dd1f93478addca0e26d7 | 4,267 | exs | Elixir | test/batcher/message_test.exs | ansonlc/bors-ng | 524ae21a471e25c11bf02c87c9ad3f6cf997ac7d | [
"Apache-2.0"
] | null | null | null | test/batcher/message_test.exs | ansonlc/bors-ng | 524ae21a471e25c11bf02c87c9ad3f6cf997ac7d | [
"Apache-2.0"
] | null | null | null | test/batcher/message_test.exs | ansonlc/bors-ng | 524ae21a471e25c11bf02c87c9ad3f6cf997ac7d | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.Worker.BatcherMessageTest do
use ExUnit.Case, async: true
alias BorsNG.Worker.Batcher.Message
test "generate configuration problem message" do
expected_message = "# Configuration problem\nExample problem"
actual_message = Message.generate_message({:config, "Example problem"})
assert... | 28.446667 | 78 | 0.646356 |
03b9894028b7c2f5c081206c7d8b7f18f4af3f28 | 340 | exs | Elixir | config/test.exs | drewkerrigan/ecto_riak | 5e5e07864adc475d89d46c2469c23ad81201fa1d | [
"Apache-2.0"
] | 3 | 2016-07-28T14:26:38.000Z | 2017-10-24T14:14:37.000Z | config/test.exs | drewkerrigan/ecto_riak | 5e5e07864adc475d89d46c2469c23ad81201fa1d | [
"Apache-2.0"
] | null | null | null | config/test.exs | drewkerrigan/ecto_riak | 5e5e07864adc475d89d46c2469c23ad81201fa1d | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :ecto, EctoRiak.RiakTSRepo,
adapter: Ecto.Adapters.RiakTS,
pool: [
[host: '127.0.0.1', port: 8087]
]
config :ecto, EctoRiak.RiakKVRepo,
adapter: Ecto.Adapters.RiakKV,
host: "localhost",
port: 8087
config :ecto, EctoRiak.RiakDTRepo,
adapter: Ecto.Adapters.RiakDT,
host: "local... | 18.888889 | 35 | 0.691176 |
03b9b65965cc1a6d27f4d4732fb852ac20833cd6 | 617 | ex | Elixir | lib/utils/map.ex | coletiv/speakeasy | c7a0fe7d88ede6f26eaf0b6d30b8a562dd0a0636 | [
"MIT"
] | null | null | null | lib/utils/map.ex | coletiv/speakeasy | c7a0fe7d88ede6f26eaf0b6d30b8a562dd0a0636 | [
"MIT"
] | null | null | null | lib/utils/map.ex | coletiv/speakeasy | c7a0fe7d88ede6f26eaf0b6d30b8a562dd0a0636 | [
"MIT"
] | null | null | null | defmodule Speakeasy.Utils.Map do
@moduledoc """
Module for help with Map
"""
@doc """
Merge two maps deep
"""
def deep_merge(left, right) do
Map.merge(left, right, &deep_resolve/3)
end
# Key exists in both maps, and both values are maps as well.
# These can be merged recursively.
defp deep_r... | 23.730769 | 66 | 0.670989 |
03b9bea8af440aef7e917200133f104b762e0a98 | 8,302 | ex | Elixir | lib/terrasol/document.ex | mwmiller/terrasol | ea503c008c5b6a80c2fac24acc206ed1d17096a8 | [
"MIT"
] | 4 | 2021-06-27T17:27:33.000Z | 2021-07-25T03:42:07.000Z | lib/terrasol/document.ex | mwmiller/terrasol | ea503c008c5b6a80c2fac24acc206ed1d17096a8 | [
"MIT"
] | null | null | null | lib/terrasol/document.ex | mwmiller/terrasol | ea503c008c5b6a80c2fac24acc206ed1d17096a8 | [
"MIT"
] | null | null | null | defmodule Terrasol.Document do
@nul32 <<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0>>
@moduledoc """
Handling of the Earthstar document format and the resulting
`Terrasol.Document.t` structures
"""
@enforce_keys [
:author,
:content,
:... | 25.006024 | 98 | 0.581667 |
03b9dacc0328d85917708f2f6c91b9c4d574274c | 2,619 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/monitored_resource.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... | 48.5 | 598 | 0.74685 |
03ba24bcd8f9d2d8ab0079f3d7cc2c2628d5996e | 1,978 | ex | Elixir | test/support/job_test_helper.ex | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | 2 | 2020-12-03T18:09:00.000Z | 2021-01-17T22:44:50.000Z | test/support/job_test_helper.ex | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | null | null | null | test/support/job_test_helper.ex | carguero/carguero_task_bunny | e6f4346904433a5ffe3b3b256a97f348839ab514 | [
"MIT"
] | null | null | null | defmodule CargueroTaskBunny.JobTestHelper do
defmodule Tracer do
def performed(_), do: nil
end
defmodule RetryInterval do
def interval, do: 60_000
end
defmodule TestJob do
use CargueroTaskBunny.Job
def perform(payload) do
Tracer.performed(payload)
if payload["sleep"], do: :time... | 19.584158 | 96 | 0.561678 |
03ba2afb7644ab2810a9c216f8fec7f046ca82c6 | 1,480 | ex | Elixir | clients/connectors/lib/google_api/connectors/v1/model/secret.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/secret.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/secret.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... | 31.489362 | 163 | 0.732432 |
03ba4aa1e419196921849e0f921fd58126d25515 | 1,908 | ex | Elixir | lib/hexpm/accounts/email.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/accounts/email.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/accounts/email.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Accounts.Email do
use Hexpm.Web, :schema
@derive Hexpm.Web.Stale
@email_regex ~r"^.+@.+\..+$"
schema "emails" do
field :email, :string
field :verified, :boolean, default: false
field :primary, :boolean, default: false
field :public, :boolean, default: false
field :gravatar,... | 32.896552 | 98 | 0.688679 |
03ba6677191ad6a043bb6ab4f92031ed691a5cd8 | 1,992 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/external_protection_level_options.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/external_protection_level_options.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/external_protection_level_options.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... | 39.84 | 234 | 0.755522 |
03baac93d3bc9495338c17b07fb6e0ef9a5c4ce1 | 2,196 | exs | Elixir | test/ecto/query/builder/distinct_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/distinct_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/distinct_test.exs | dgvncsz0f/ecto | bae06fe650328cc1060c09fe889a2de9a10edb1b | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.DistinctTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder.Distinct
doctest Ecto.Query.Builder.Distinct
import Ecto.Query
describe "escape" do
test "handles expressions and params" do
assert {true, %{}} ==
escape(true, [x: 0], __ENV__)
... | 31.826087 | 100 | 0.572404 |
03babe4d61fbf1ca6cc4be16b2a2770fe82cd7aa | 485 | exs | Elixir | ch01/list_filter/test/list_filter_test.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ch01/list_filter/test/list_filter_test.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ch01/list_filter/test/list_filter_test.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | defmodule ListFilterTest do
use ExUnit.Case
describe "call/1" do
test "count the number of odd number for a given list" do
list1 = ["1", "3", "6", "43", "banana", "6", "abc"]
list2 = ["1", "6", "43"]
list3 = ["1"]
assert ListFilter.call(list1) == 3
assert ListFilter.call(list2) =... | 22.045455 | 61 | 0.56701 |
03bac931587b8a419ad27af768ddfb5fe64baf6e | 433 | exs | Elixir | examples/github/mix.exs | scrogson/revolver | 174f1049ba8beae65e53672b19d526bbba761a6d | [
"Apache-2.0"
] | 9 | 2015-07-26T13:27:16.000Z | 2017-04-02T11:18:46.000Z | examples/github/mix.exs | scrogson/revolver | 174f1049ba8beae65e53672b19d526bbba761a6d | [
"Apache-2.0"
] | 1 | 2016-08-16T02:48:37.000Z | 2016-08-16T03:44:19.000Z | examples/github/mix.exs | scrogson/revolver | 174f1049ba8beae65e53672b19d526bbba761a6d | [
"Apache-2.0"
] | null | null | null | defmodule GitHub.Mixfile do
use Mix.Project
def project do
[app: :github,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[applications: [:logger, :revolver, :hackney, :poison]]
end... | 18.826087 | 59 | 0.551963 |
03bad3ca62f37522589d99698136ce2b9fa32ab0 | 2,081 | ex | Elixir | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_versioning_v1main_workload_cjis_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_versioning_v1main_workload_cjis_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_versioning_v1main_workload_cjis_settings.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... | 35.271186 | 233 | 0.775589 |
03bad544a2ead3dc2d6e9a02be1daa4b4e825403 | 2,182 | exs | Elixir | config/prod.exs | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | 2 | 2017-10-25T14:21:36.000Z | 2018-08-24T17:49:51.000Z | config/prod.exs | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | 4 | 2017-10-18T01:36:16.000Z | 2018-03-20T20:07:41.000Z | config/prod.exs | cjonesy/helmsman | c839ce6a961baab7c789879ff52d5fb09d005254 | [
"MIT"
] | 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
# HelmsmanWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# D... | 33.569231 | 67 | 0.722731 |
03bb1ff3036ac48f43f888bea97372b4752a37fc | 2,140 | ex | Elixir | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/set_iam_policy_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query_connection/lib/google_api/big_query_connection/v1beta1/model/set_iam_policy_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... | 42.8 | 323 | 0.749533 |
03bb33bb94d5ce04d320fa08784659d4ef07ff31 | 1,341 | exs | Elixir | mix.exs | gorkemduman/goth | ba0b436eec1f4eb70428c60c273da367c66f675e | [
"MIT"
] | null | null | null | mix.exs | gorkemduman/goth | ba0b436eec1f4eb70428c60c273da367c66f675e | [
"MIT"
] | null | null | null | mix.exs | gorkemduman/goth | ba0b436eec1f4eb70428c60c273da367c66f675e | [
"MIT"
] | null | null | null | defmodule Goth.Mixfile do
use Mix.Project
@version "1.3.0-rc.2"
@source_url "https://github.com/peburrows/goth"
def project do
[
app: :goth,
version: @version,
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.10",
source_url: @source_url,
... | 22.728814 | 103 | 0.542133 |
03bb452c38a5c58405321e2db6709ccc8f4812c5 | 60,519 | ex | Elixir | clients/cloud_identity/lib/google_api/cloud_identity/v1/api/groups.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/api/groups.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/cloud_identity/lib/google_api/cloud_identity/v1/api/groups.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... | 51.027825 | 564 | 0.630942 |
03bb59bba23c0110e73711f3f9ac8dd4de9ad790 | 1,381 | exs | Elixir | mix.exs | Errol-Hassall-OVO/microsoft-graph-api | 087a5ce6e7b79712c79383d2dd75c7817779d750 | [
"MIT"
] | 2 | 2020-01-28T14:19:38.000Z | 2021-07-03T00:33:11.000Z | mix.exs | Errol-Hassall-OVO/microsoft-graph-api | 087a5ce6e7b79712c79383d2dd75c7817779d750 | [
"MIT"
] | null | null | null | mix.exs | Errol-Hassall-OVO/microsoft-graph-api | 087a5ce6e7b79712c79383d2dd75c7817779d750 | [
"MIT"
] | 2 | 2019-07-25T06:43:05.000Z | 2020-01-28T14:19:41.000Z | defmodule MicrosoftGraphApi.Mixfile do
use Mix.Project
def project do
[
app: :microsoft_graph_api,
version: "0.0.1",
elixir: "~> 1.7",
test_coverage: [tool: ExCoveralls],
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start... | 26.557692 | 65 | 0.559739 |
03bb611b1930d1c3c18fa42bd1a0222e8a2e4a59 | 1,001 | exs | Elixir | astreu/deps/uuid/mix.exs | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreu/deps/uuid/mix.exs | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | astreu/deps/uuid/mix.exs | wesleimp/Astreu | 4d430733e7ecc8b3eba8e27811a152aa2c6d79c1 | [
"Apache-2.0"
] | null | null | null | defmodule UUID.Mixfile do
use Mix.Project
@version "1.1.8"
def project do
[app: :uuid,
name: "UUID",
version: @version,
elixir: "~> 1.0",
docs: [extras: ["README.md", "CHANGELOG.md"],
main: "readme",
source_ref: "v#{@version}"],
source_url: "https://github.co... | 20.854167 | 65 | 0.56044 |
03bb7ed098c59d6d666b7ecd349195d6f85f263b | 13,160 | exs | Elixir | test/cizen/saga_test.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | test/cizen/saga_test.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | test/cizen/saga_test.exs | Hihaheho-Studios/Cizen | 09ba3c66aa11d0db913ffde804509bc7bef80db9 | [
"MIT"
] | null | null | null | defmodule Cizen.SagaTest do
use Cizen.SagaCase
doctest Cizen.Saga
alias Cizen.TestHelper
alias Cizen.TestSaga
import Cizen.TestHelper,
only: [
launch_test_saga: 0,
launch_test_saga: 1,
assert_condition: 2
]
alias Cizen.Dispatcher
alias Cizen.Saga
alias Cizen.SagaID
defmod... | 24.146789 | 87 | 0.585106 |
03bb9b4273709ae344d7e2320818462f96735f78 | 200 | ex | Elixir | backend/lib/aptamer_web/views/job_view.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | backend/lib/aptamer_web/views/job_view.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | 7 | 2019-02-08T18:28:49.000Z | 2022-02-12T06:44:59.000Z | backend/lib/aptamer_web/views/job_view.ex | ui-icts/aptamer-web | a28502c22a4e55ab1fbae8bbeaa6b11c9a477c06 | [
"MIT"
] | null | null | null | defmodule AptamerWeb.JobView do
use AptamerWeb, :view
use JaSerializer.PhoenixView
attributes([:status, :output, :inserted_at])
has_one(:file,
field: :file_id,
type: "files"
)
end
| 16.666667 | 46 | 0.695 |
03bbca71d5081ac44321ba21f7c3ae8ca0354ade | 2,521 | ex | Elixir | lib/estated/property.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | lib/estated/property.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | lib/estated/property.ex | jdav-dev/estated | a8476b803eff425b5b73517e7ea180bb7f8cc30b | [
"Apache-2.0"
] | null | null | null | defmodule Estated.Property do
@moduledoc "A property record."
@moduledoc since: "0.1.0"
alias Estated.Property.Address
alias Estated.Property.Assessment
alias Estated.Property.Deed
alias Estated.Property.MarketAssessment
alias Estated.Property.Metadata
alias Estated.Property.Owner
alias Estated.Prope... | 25.21 | 89 | 0.658072 |
03bbd6e919228cce790d871d0158dafa42882cb4 | 2,462 | exs | Elixir | mix.exs | manusajith/nebulex_redis_adapter | 0a29e6eaa5563ec2237e38ad9b88a476aaa8a26b | [
"MIT"
] | null | null | null | mix.exs | manusajith/nebulex_redis_adapter | 0a29e6eaa5563ec2237e38ad9b88a476aaa8a26b | [
"MIT"
] | null | null | null | mix.exs | manusajith/nebulex_redis_adapter | 0a29e6eaa5563ec2237e38ad9b88a476aaa8a26b | [
"MIT"
] | null | null | null | defmodule NebulexRedisAdapter.MixProject do
use Mix.Project
@version "1.1.1"
def project do
[
app: :nebulex_redis_adapter,
version: @version,
elixir: "~> 1.8",
deps: deps(),
# Docs
name: "NebulexRedisAdapter",
docs: docs(),
# Testing
test_coverage: [to... | 23.009346 | 81 | 0.555646 |
03bbe8c6b1f6158dbc333899c204e97456d0156d | 1,373 | exs | Elixir | test/load_page_test.exs | losvedir/ephemeral2-logs | 05dadbd514493f8509457bcb411bbdd9b92f4f3a | [
"MIT"
] | 2 | 2015-08-04T17:35:50.000Z | 2015-08-12T18:37:48.000Z | test/load_page_test.exs | losvedir/ephemeral2-logs | 05dadbd514493f8509457bcb411bbdd9b92f4f3a | [
"MIT"
] | null | null | null | test/load_page_test.exs | losvedir/ephemeral2-logs | 05dadbd514493f8509457bcb411bbdd9b92f4f3a | [
"MIT"
] | null | null | null | defmodule LoadPageTest do
use ExUnit.Case
test "header/0" do
"timestamp,connect,service,status"
end
test "parse_line/1" do
l1 = ~s(342 <158>1 2015-05-12T13:19:53.089058+00:00 heroku router - - at=info method=GET path="/2bbbf21959178ef2f935e90fc60e5b6e368d27514fe305ca7dcecc32c0134838" host=ephemeralp2p... | 76.277778 | 373 | 0.777859 |
03bc1245f871651724c4baabf0a5afa74ff6d41e | 2,445 | exs | Elixir | config/dev.exs | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | 1 | 2022-03-05T00:05:26.000Z | 2022-03-05T00:05:26.000Z | config/dev.exs | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | null | null | null | config/dev.exs | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | null | null | null | import Config
# Configure your database
config :akkad, Akkad.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "akkad_dev",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloading.
#
# T... | 31.346154 | 82 | 0.703885 |
03bc1cdfb40b898b038ab0f07a8a8e38a238a504 | 45 | exs | Elixir | learning/programming_elixir/stack/test/stack_test.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/programming_elixir/stack/test/stack_test.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/programming_elixir/stack/test/stack_test.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule StackTest do
use ExUnit.Case
end
| 11.25 | 22 | 0.8 |
03bc5c30c249767f62bbcf8f6e20d396a3da9179 | 289 | ex | Elixir | lib/xgps/gps_data.ex | mholtman/xgps | b660df067800d38658e13faa87dc60027425cf66 | [
"MIT"
] | 20 | 2016-12-05T18:34:36.000Z | 2021-12-21T13:32:44.000Z | lib/xgps/gps_data.ex | mholtman/xgps | b660df067800d38658e13faa87dc60027425cf66 | [
"MIT"
] | 1 | 2016-10-16T07:09:02.000Z | 2016-10-16T07:09:02.000Z | lib/xgps/gps_data.ex | mholtman/xgps | b660df067800d38658e13faa87dc60027425cf66 | [
"MIT"
] | 5 | 2017-03-04T00:18:50.000Z | 2021-01-15T12:26:54.000Z | defmodule XGPS.GpsData do
defstruct [
has_fix: false,
time: nil,
date: nil,
latitude: nil,
longitude: nil,
geoidheight: nil,
altitude: nil,
speed: nil,
angle: nil,
magvariation: nil,
hdop: nil,
fix_quality: nil,
satelites: nil
]
end
| 16.055556 | 25 | 0.595156 |
03bc6edfe53d94b952ae0fed34c2ef0a090f5db1 | 599 | exs | Elixir | elixir/animals/mix.exs | rusucosmin/til | 1687b89454b22e14c5c720f41199a5d2badf7db2 | [
"MIT"
] | 14 | 2016-02-19T22:14:31.000Z | 2022-02-06T21:59:46.000Z | elixir/animals/mix.exs | rusucosmin/til | 1687b89454b22e14c5c720f41199a5d2badf7db2 | [
"MIT"
] | null | null | null | elixir/animals/mix.exs | rusucosmin/til | 1687b89454b22e14c5c720f41199a5d2badf7db2 | [
"MIT"
] | 2 | 2020-01-07T11:27:26.000Z | 2022-02-06T21:59:54.000Z | defmodule Animals.MixProject do
use Mix.Project
def project do
[
app: :animals,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_app... | 19.966667 | 88 | 0.564274 |
03bc829b0dced703bbca5ecf47fe47af4f09c5cb | 142 | exs | Elixir | test/harald/hci/event/inquiry_complete_test.exs | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | 3 | 2020-08-07T02:09:09.000Z | 2020-08-28T12:25:48.000Z | test/harald/hci/event/inquiry_complete_test.exs | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | null | null | null | test/harald/hci/event/inquiry_complete_test.exs | smartrent/harald | 158a69bc2b70b3f51d67bd935d223a42a3633d68 | [
"MIT"
] | null | null | null | defmodule Harald.HCI.Event.InquiryCompleteTest do
use ExUnit.Case, async: true
doctest Harald.HCI.Event.InquiryComplete, import: true
end
| 28.4 | 56 | 0.809859 |
03bc8451b52377955f4d454b5bc6df2c7c31cdea | 6,438 | ex | Elixir | wasmcloud_host/lib/wasmcloud_host_web/live/components/start_actor_component.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | wasmcloud_host/lib/wasmcloud_host_web/live/components/start_actor_component.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | wasmcloud_host/lib/wasmcloud_host_web/live/components/start_actor_component.ex | adobe-platform/wasmcloud-otp | bcfcdf9814bc529e67c954eacabdc9a05c772cfa | [
"Apache-2.0"
] | null | null | null | defmodule StartActorComponent do
use Phoenix.LiveComponent
@max_actor_size 16_000_000
def mount(socket) do
{:ok,
socket
|> assign(:uploads, %{})
|> assign(:error_msg, nil)
|> allow_upload(:actor, accept: ~w(.wasm), max_entries: 1, max_file_size: @max_actor_size)}
end
def handle_even... | 33.185567 | 120 | 0.54722 |
03bd0c394bae1ebd54521c5c60f612f94b7f4e4a | 1,631 | ex | Elixir | lib/web/controllers/admin/race_controller.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/web/controllers/admin/race_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/web/controllers/admin/race_controller.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Web.Admin.RaceController do
use Web.AdminController
alias Web.Race
def index(conn, _params) do
races = Race.all()
conn
|> assign(:races, races)
|> render("index.html")
end
def show(conn, %{"id" => id}) do
race = Race.get(id)
conn
|> assign(:race, race)
|> render(... | 22.342466 | 91 | 0.554261 |
03bd1d861575e05f5ad58af6efc65fd20389fe2d | 24,298 | ex | Elixir | apps/language_server/lib/language_server/providers/completion.ex | princemaple/elixir-ls | d2e6788cc32ede3f9f2ef080c051a061ae4f4d63 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/providers/completion.ex | princemaple/elixir-ls | d2e6788cc32ede3f9f2ef080c051a061ae4f4d63 | [
"Apache-2.0"
] | null | null | null | apps/language_server/lib/language_server/providers/completion.ex | princemaple/elixir-ls | d2e6788cc32ede3f9f2ef080c051a061ae4f4d63 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.LanguageServer.Providers.Completion do
@moduledoc """
Auto-complete provider utilizing Elixir Sense
We use Elixir Sense to retrieve auto-complete suggestions based on the source file text and cursor
position, and then perform some additional processing on those suggestions to make them compa... | 27.864679 | 129 | 0.575438 |
03bd4b707d34825a334b6fc337513ee182a693fa | 1,618 | ex | Elixir | clients/qpx_express/lib/google_api/qpx_express/v1/model/aircraft_data.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/qpx_express/lib/google_api/qpx_express/v1/model/aircraft_data.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/qpx_express/lib/google_api/qpx_express/v1/model/aircraft_data.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... | 32.36 | 130 | 0.739802 |
03bd77417b8ff32cdbb2a3882e909e9944d8b57f | 1,663 | ex | Elixir | clients/prediction/lib/google_api/prediction/v16/model/analyze_data_description_numeric.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/prediction/lib/google_api/prediction/v16/model/analyze_data_description_numeric.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/prediction/lib/google_api/prediction/v16/model/analyze_data_description_numeric.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... | 33.26 | 107 | 0.750451 |
03bdc8dbb4cfa1b4204d083c81e8bc80293d9e0a | 351 | ex | Elixir | test/support/agent_of_change.ex | geometerio/euclid | 9a9e059ec77d87858ae7878df8d4d75dc01c57f8 | [
"MIT-0"
] | 4 | 2021-06-14T13:54:05.000Z | 2021-10-22T02:55:16.000Z | test/support/agent_of_change.ex | geometerio/euclid | 9a9e059ec77d87858ae7878df8d4d75dc01c57f8 | [
"MIT-0"
] | 3 | 2021-06-15T21:45:51.000Z | 2022-01-14T20:08:32.000Z | test/support/agent_of_change.ex | geometerio/euclid | 9a9e059ec77d87858ae7878df8d4d75dc01c57f8 | [
"MIT-0"
] | null | null | null | defmodule AgentOfChange do
use Agent
def start_link(_) do
Agent.start_link(fn -> 0 end, name: __MODULE__)
end
def get(), do: Agent.get(__MODULE__, fn state -> state end)
def add() do
value =
Agent.get_and_update(__MODULE__, fn value ->
value = value + 1
{value, value}
en... | 17.55 | 61 | 0.606838 |
03bddda45bc98eea9753a8f723894f20fdba7398 | 389 | ex | Elixir | test/support/factory.ex | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | null | null | null | test/support/factory.ex | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | null | null | null | test/support/factory.ex | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | null | null | null | defmodule Radiator.Factory do
use ExMachina.Ecto, repo: Radiator.Repo
def podcast_factory do
title = sequence(:title, &"My Podcast ##{&1}")
%Radiator.Directory.Podcast{
title: title
}
end
def episode_factory do
title = sequence(:title, &"Episode ##{&1}")
%Radiator.Directory.Episode... | 18.52381 | 50 | 0.637532 |
03bdec2b15dbe566733671977cd2da62cc2a2302 | 4,063 | ex | Elixir | lib/teslamate_web/live/car_live/summary.ex | gundalow/teslamate | 69b7c96284f2287393a5700d8a7afd797feb914a | [
"MIT"
] | 1 | 2019-10-14T20:49:45.000Z | 2019-10-14T20:49:45.000Z | lib/teslamate_web/live/car_live/summary.ex | gundalow/teslamate | 69b7c96284f2287393a5700d8a7afd797feb914a | [
"MIT"
] | null | null | null | lib/teslamate_web/live/car_live/summary.ex | gundalow/teslamate | 69b7c96284f2287393a5700d8a7afd797feb914a | [
"MIT"
] | 1 | 2019-12-03T20:40:02.000Z | 2019-12-03T20:40:02.000Z | defmodule TeslaMateWeb.CarLive.Summary do
use Phoenix.LiveView
import TeslaMateWeb.Gettext
alias TeslaMateWeb.CarView
alias TeslaMate.Vehicles.Vehicle.Summary
alias TeslaMate.Vehicles
@impl true
def mount(%{summary: %Summary{car: car} = summary, settings: settings}, socket) do
if connected?(socket)... | 31.015267 | 97 | 0.675117 |
03be09f3ce848158483d3db69eafc2e887ae231b | 403 | ex | Elixir | ex/loqui/lib/loqui/types.ex | NorthIsUp/loqui | 8d394a7951fd3a82d109becc1aebbd9e7ccc894a | [
"MIT"
] | 147 | 2017-10-02T18:16:52.000Z | 2020-03-16T03:26:40.000Z | ex/loqui/lib/loqui/types.ex | NorthIsUp/loqui | 8d394a7951fd3a82d109becc1aebbd9e7ccc894a | [
"MIT"
] | 14 | 2017-09-19T16:13:32.000Z | 2019-06-25T21:18:47.000Z | ex/loqui/lib/loqui/types.ex | NorthIsUp/loqui | 8d394a7951fd3a82d109becc1aebbd9e7ccc894a | [
"MIT"
] | 25 | 2017-10-01T20:10:31.000Z | 2020-03-19T14:00:20.000Z | defmodule Loqui.Types do
@moduledoc false
defmacro __using__(_) do
quote do
@doc false
defmacro uint8 do
quote do: unsigned - integer - size(8)
end
@doc false
defmacro uint16 do
quote do: unsigned - integer - size(16)
end
@doc false
defmacro uin... | 17.521739 | 47 | 0.580645 |
03be0a314c5fe56f974c291a688004febe51067a | 736 | ex | Elixir | ros/ros_lib/lib/enum/ros_order_source_enum.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_lib/lib/enum/ros_order_source_enum.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_lib/lib/enum/ros_order_source_enum.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.Lib.Enum.OrderSource do
@moduledoc false
@type t :: %__MODULE__{
service: Ros.Lib.Enum.Base.t,
telephone: Ros.Lib.Enum.Base.t,
online_takeaway: Ros.Lib.Enum.Base.t,
telephone_takeaway: Ros.Lib.Enum.Base.t
... | 43.294118 | 105 | 0.588315 |
03be16ab6f30c3f251aaa0c0579e2ed9d6aa2c43 | 8,353 | ex | Elixir | lib/ex_docker_build.ex | filipevarjao/ex_docker_build | a263de4dda38cc849de9496e1c2f47781024996f | [
"MIT"
] | null | null | null | lib/ex_docker_build.ex | filipevarjao/ex_docker_build | a263de4dda38cc849de9496e1c2f47781024996f | [
"MIT"
] | null | null | null | lib/ex_docker_build.ex | filipevarjao/ex_docker_build | a263de4dda38cc849de9496e1c2f47781024996f | [
"MIT"
] | null | null | null | defmodule ExDockerBuild do
require Logger
alias ExDockerBuild.Tar
alias ExDockerBuild.API.{Docker, DockerRemoteAPI}
@spec create_layer(map(), keyword()) :: {:ok, Docker.image_id()} | {:error, any()}
def create_layer(payload, opts \\ []) do
wait = Keyword.get(opts, :wait, false)
with {:ok, container... | 30.822878 | 96 | 0.593918 |
03be16e49e66a375235cec54b47c0a49e161c2e2 | 34 | ex | Elixir | lib/ueberauth_shopify.ex | ringofhealth/ueberauth_shopify | b7aebf005e2c9bb22a3476cb6f2f3ab523fb4ae4 | [
"MIT"
] | 3 | 2016-11-07T19:04:50.000Z | 2017-02-04T01:38:45.000Z | lib/ueberauth_shopify.ex | ringofhealth/ueberauth_shopify | b7aebf005e2c9bb22a3476cb6f2f3ab523fb4ae4 | [
"MIT"
] | 2 | 2017-04-03T18:43:55.000Z | 2020-01-16T16:53:58.000Z | lib/ueberauth_shopify.ex | ringofhealth/ueberauth_shopify | b7aebf005e2c9bb22a3476cb6f2f3ab523fb4ae4 | [
"MIT"
] | 8 | 2017-09-19T10:38:27.000Z | 2022-01-27T01:35:26.000Z | defmodule UeberauthShopify do
end
| 11.333333 | 29 | 0.882353 |
03be192078040a9210f434131aa32b08edef4c14 | 695 | ex | Elixir | lib/bandit/http2/frame/unknown.ex | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | 226 | 2020-05-18T09:36:32.000Z | 2022-03-30T00:25:51.000Z | lib/bandit/http2/frame/unknown.ex | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | 11 | 2021-10-11T13:48:24.000Z | 2022-03-05T20:18:11.000Z | lib/bandit/http2/frame/unknown.ex | moogle19/bandit | 610aebaac2ddf76d53faac109b07e519727affb6 | [
"MIT"
] | 7 | 2020-05-18T09:36:35.000Z | 2022-02-08T11:12:16.000Z | defmodule Bandit.HTTP2.Frame.Unknown do
@moduledoc false
alias Bandit.HTTP2.{Frame, Stream}
defstruct type: nil,
flags: nil,
stream_id: nil,
payload: nil
@typedoc "An HTTP/2 frame of unknown type"
@type t :: %__MODULE__{
type: Frame.frame_type(),
flag... | 27.8 | 98 | 0.615827 |
03be259b92108d4393807d9a40717c8671250bbc | 743 | exs | Elixir | test/brando_pages/pages/utils_test.exs | twined/brando_pages | cc9905bf9ab47fdcaef9588a056f19dc18f036a9 | [
"MIT"
] | null | null | null | test/brando_pages/pages/utils_test.exs | twined/brando_pages | cc9905bf9ab47fdcaef9588a056f19dc18f036a9 | [
"MIT"
] | null | null | null | test/brando_pages/pages/utils_test.exs | twined/brando_pages | cc9905bf9ab47fdcaef9588a056f19dc18f036a9 | [
"MIT"
] | null | null | null | defmodule Brando.Pages.UtilsTest do
use ExUnit.Case
use BrandoPages.ConnCase
use Plug.Test
use RouterHelper
alias BrandoPages.Factory
alias Brando.Pages.Utils
test "render_fragment invalid" do
{:safe, return} = Utils.render_fragment("invalid/key")
assert return =~ "Missing page fragment"
ass... | 25.62069 | 61 | 0.697174 |
03be3cc0aff94697add33e5ba4e0ccce6d6df8e2 | 1,274 | ex | Elixir | lib/brando_admin/components/form/input.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | lib/brando_admin/components/form/input.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | lib/brando_admin/components/form/input.ex | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule BrandoAdmin.Components.Form.Input do
use Surface.LiveComponent
use Phoenix.HTML
prop current_user, :any
prop form, :any
prop input, :any
prop blueprint, :any
prop uploads, :any
data component_module, :any
data component_opts, :any
data component_id, :string
def mount(socket) do
{:... | 21.233333 | 62 | 0.603611 |
03be43cec55ba0618e30cf195c3de4996506ae2d | 795 | exs | Elixir | config/test.exs | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | 2 | 2019-04-02T01:06:40.000Z | 2019-05-13T01:12:24.000Z | config/test.exs | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | 7 | 2018-12-27T12:33:38.000Z | 2021-03-08T22:31:14.000Z | config/test.exs | corybuecker/simple-budget | d86241ff712552267da87052120468b01d2b8f41 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :simple_budget, SimpleBudgetWeb.Endpoint,
http: [port: 4001],
server: false,
secret_key_base:
"SECRET_KEY_BASESECRET_KEY_BASESECRET_KEY_BASESECRET_KEY_BASESECRET_KEY_BASESECRET_KEY_BASE"
... | 28.392857 | 96 | 0.788679 |
03be7fef9351c389ad83d4305c8c1c54c38defb0 | 9,885 | ex | Elixir | lib/ex_saga/retry.ex | naramore/ex_saga | 66c6b64867f28a1bbfb8ec2b6a786469b5f84e47 | [
"MIT"
] | null | null | null | lib/ex_saga/retry.ex | naramore/ex_saga | 66c6b64867f28a1bbfb8ec2b6a786469b5f84e47 | [
"MIT"
] | 17 | 2019-02-06T03:51:03.000Z | 2019-10-22T10:15:48.000Z | lib/ex_saga/retry.ex | naramore/ex_saga | 66c6b64867f28a1bbfb8ec2b6a786469b5f84e47 | [
"MIT"
] | null | null | null | defmodule ExSaga.Retry do
@moduledoc """
"""
alias ExSaga.{DryRun, Event, Hook, Stage, Step, Stepable}
@typedoc """
"""
@type accumulator :: %{
:on_retry => module,
:hooks_left => [Hook.t()],
:retry_updates_left => [{Stage.full_name(), module}],
:update => retry_res... | 30.603715 | 119 | 0.616388 |
03be858b40522e90b0c36de70267d7608b7396c4 | 1,719 | ex | Elixir | lib/decompilerl.ex | aerosol/decompilerl | aa4b3e8e9fc3542ce6baf058dd2cfdb413b4bb81 | [
"WTFPL"
] | 27 | 2016-05-07T21:29:25.000Z | 2022-02-03T08:38:39.000Z | lib/decompilerl.ex | aerosol/decompilerl | aa4b3e8e9fc3542ce6baf058dd2cfdb413b4bb81 | [
"WTFPL"
] | 2 | 2017-05-18T23:17:02.000Z | 2018-01-24T22:55:00.000Z | lib/decompilerl.ex | aerosol/decompilerl | aa4b3e8e9fc3542ce6baf058dd2cfdb413b4bb81 | [
"WTFPL"
] | 4 | 2017-05-18T22:05:59.000Z | 2021-03-23T18:57:29.000Z | defmodule Decompilerl do
def decompile(module_or_path, opts \\ []) do
device = Keyword.get(opts, :device, :stdio)
skip_info? = Keyword.get(opts, :skip_info, false)
module_or_path
|> get_beam()
|> Enum.map(&do_decompile(&1, skip_info?))
|> write_to(device)
end
defp get_beam(module) when i... | 23.875 | 95 | 0.582897 |
03be8e74b7339237fb28eaa89b93c81e65180a82 | 2,118 | exs | Elixir | test/grizzly/command_class/sensor_multilevel/supported_get_sensor_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/sensor_multilevel/supported_get_sensor_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/sensor_multilevel/supported_get_sensor_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.SensorMultilevel.SupportedGetSensor.Test do
use ExUnit.Case, async: true
alias Grizzly.Packet
alias Grizzly.CommandClass.SensorMultilevel.SupportedGetSensor
describe "implements the Grizzly.Command behaviour" do
test "initializes command" do
assert {:ok, %SupportedGetS... | 33.619048 | 95 | 0.670916 |
03bea7ea473696fea4d2b41e82e45fa4b49f73bb | 6,818 | exs | Elixir | test/zoneinfo/time_zone_database_test.exs | wojtekmach/zoneinfo | 640de834203ef8288df6ad6b4ca2e95a0cf20710 | [
"Apache-2.0"
] | null | null | null | test/zoneinfo/time_zone_database_test.exs | wojtekmach/zoneinfo | 640de834203ef8288df6ad6b4ca2e95a0cf20710 | [
"Apache-2.0"
] | null | null | null | test/zoneinfo/time_zone_database_test.exs | wojtekmach/zoneinfo | 640de834203ef8288df6ad6b4ca2e95a0cf20710 | [
"Apache-2.0"
] | null | null | null | defmodule Zoneinfo.TimeZoneDatabaseTest do
use ExUnit.Case, async: true
import Zoneinfo.Utils
@truth Tz
# Set these to the range of times that are important
# Make sure that the Makefile generates tzif files that include range.
@earliest_time ~N[1940-01-02 00:00:00]
@latest_time ~N[2038-01-01 00:00:00]
... | 32.312796 | 92 | 0.669698 |
03beb7dc38958749600c8a29afddac339a805e0a | 2,182 | exs | Elixir | Phoenix_Sockets/example1/config/prod.exs | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 3 | 2019-10-28T21:02:55.000Z | 2020-10-01T02:29:37.000Z | Phoenix_Sockets/example1/config/prod.exs | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | null | null | null | Phoenix_Sockets/example1/config/prod.exs | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 4 | 2019-10-12T19:41:58.000Z | 2021-09-24T20:24:47.000Z | 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
# Example1Web.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# D... | 33.569231 | 67 | 0.722731 |
03bede9e89f09905dfc542cc6dd2172074428672 | 1,860 | ex | Elixir | clients/playable_locations/lib/google_api/playable_locations/v3/model/google_type_lat_lng.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/playable_locations/lib/google_api/playable_locations/v3/model/google_type_lat_lng.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/playable_locations/lib/google_api/playable_locations/v3/model/google_type_lat_lng.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.2 | 253 | 0.733333 |
03beefc66d759b8f72baf480728dabb82c612f6a | 3,422 | ex | Elixir | learning/programming_elixir/issues/lib/issues/table_formatter.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/programming_elixir/issues/lib/issues/table_formatter.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/programming_elixir/issues/lib/issues/table_formatter.ex | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule Issues.TableFormatter do
import Enum, only: [ each: 2, map: 2, map_join: 3, max: 1 ]
@doc """
Takes a list of row data, where each row is a Map, and a list of
headers. Prints a table to STDOUT of the data from each row
identified by each header. That is, each header identifies a column,
and thos... | 30.828829 | 83 | 0.634717 |
03bf6077023eb0dcac09b5b198bdfa2013bed791 | 1,992 | exs | Elixir | apps/omg_watcher_info/mix.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher_info/mix.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher_info/mix.exs | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | defmodule OMG.WatcherInfo.MixProject do
use Mix.Project
def project() do
[
app: :omg_watcher_info,
version: version(),
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.8",
elixi... | 28.869565 | 113 | 0.563253 |
03bf623e25ebda9e16947d4781a257f16f31e189 | 1,690 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_cancel_line_item_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_cancel_line_item_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/orders_cancel_line_item_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.8 | 159 | 0.731361 |
03bfc774a2929a5aeb89ebb563433054e053ea67 | 2,311 | ex | Elixir | lib/algae/free.ex | Naillik1/algae | cd47031ea151ab7880135f729bc0690cab579a20 | [
"MIT"
] | null | null | null | lib/algae/free.ex | Naillik1/algae | cd47031ea151ab7880135f729bc0690cab579a20 | [
"MIT"
] | 1 | 2019-03-09T17:15:56.000Z | 2019-03-09T17:15:56.000Z | lib/algae/free.ex | toraritte/algae | cd47031ea151ab7880135f729bc0690cab579a20 | [
"MIT"
] | null | null | null | defmodule Algae.Free do
@moduledoc """
A "free" structure that converts functors into monads by embedding them in
a special structure with all of the monadic heavy lifting done for you.
Similar to trees and lists, but with the ability to add a struct "tag",
at each level. Often used for DSLs, interpreters, o... | 20.27193 | 106 | 0.562527 |
03bfdc7eb1fd1f750e34d929b4f2edda69219c9e | 728 | ex | Elixir | lib/git_bisect_app_web/gettext.ex | bdubaut/git-bisect-talk | 5b8691935a4e73307d3099d8b1b3af7dddbc2904 | [
"MIT"
] | null | null | null | lib/git_bisect_app_web/gettext.ex | bdubaut/git-bisect-talk | 5b8691935a4e73307d3099d8b1b3af7dddbc2904 | [
"MIT"
] | null | null | null | lib/git_bisect_app_web/gettext.ex | bdubaut/git-bisect-talk | 5b8691935a4e73307d3099d8b1b3af7dddbc2904 | [
"MIT"
] | null | null | null | defmodule GitBisectAppWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import GitBisectAppWeb.Gettext
# Simple translation
gettext(... | 29.12 | 72 | 0.68544 |
03bfe8ccf549a49c07ed45c194adce00cb64bb9d | 2,180 | exs | Elixir | test/validations/acceptance_test.exs | Apelsinka223/vex | dfd399724f7950d91fe6d894bb5a02e3d27bfa24 | [
"MIT"
] | null | null | null | test/validations/acceptance_test.exs | Apelsinka223/vex | dfd399724f7950d91fe6d894bb5a02e3d27bfa24 | [
"MIT"
] | null | null | null | test/validations/acceptance_test.exs | Apelsinka223/vex | dfd399724f7950d91fe6d894bb5a02e3d27bfa24 | [
"MIT"
] | null | null | null | defmodule AcceptanceTestRecord do
defstruct accepts_terms: false
use Vex.Struct
validates :accepts_terms, acceptance: true
end
defmodule CustomAcceptanceTestRecord do
defstruct accepts_terms: false
use Vex.Struct
validates :accepts_terms, acceptance: [as: "yes"]
end
defmodule AcceptanceTest do
use ExU... | 40.37037 | 96 | 0.716514 |
03bfeac0f1998bc0e495dc08f3fd0b0832b390fe | 42 | ex | Elixir | imaas/lib/imaas.ex | Elonsoft/imaas | ba5eca1559d042822ba66786e8db53d2f988fb2f | [
"WTFPL"
] | 1 | 2020-07-27T15:50:30.000Z | 2020-07-27T15:50:30.000Z | imaas/lib/imaas.ex | Elonsoft/imaas | ba5eca1559d042822ba66786e8db53d2f988fb2f | [
"WTFPL"
] | null | null | null | imaas/lib/imaas.ex | Elonsoft/imaas | ba5eca1559d042822ba66786e8db53d2f988fb2f | [
"WTFPL"
] | null | null | null | defmodule Imaas do
@moduledoc false
end
| 10.5 | 18 | 0.785714 |
03bff2b90fe1147d326f54318e337969b3593a4c | 489 | ex | Elixir | lib/figgis_web/views/error_view.ex | jherdman/figgis | 4eae5d0fc48d550c3585c088ff5ac74d97efa7d4 | [
"MIT"
] | null | null | null | lib/figgis_web/views/error_view.ex | jherdman/figgis | 4eae5d0fc48d550c3585c088ff5ac74d97efa7d4 | [
"MIT"
] | null | null | null | lib/figgis_web/views/error_view.ex | jherdman/figgis | 4eae5d0fc48d550c3585c088ff5ac74d97efa7d4 | [
"MIT"
] | null | null | null | defmodule FiggisWeb.ErrorView do
use FiggisWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. ... | 28.764706 | 61 | 0.734151 |
03bff40c49e31f7824ab294d530df60173be6a2a | 1,271 | exs | Elixir | mix.exs | samhamilton/pinglix | ca78ffc5f23dfd7c7e2b12a86b7278178aa1b2b0 | [
"MIT"
] | 8 | 2015-11-11T08:40:46.000Z | 2020-01-13T22:24:45.000Z | mix.exs | samhamilton/pinglix | ca78ffc5f23dfd7c7e2b12a86b7278178aa1b2b0 | [
"MIT"
] | 10 | 2017-04-28T23:02:03.000Z | 2021-08-18T01:04:39.000Z | mix.exs | samhamilton/pinglix | ca78ffc5f23dfd7c7e2b12a86b7278178aa1b2b0 | [
"MIT"
] | 9 | 2017-04-27T16:20:50.000Z | 2021-09-03T02:59:50.000Z | defmodule Pinglix.Mixfile do
use Mix.Project
@source_url "https://github.com/pvdvreede/pinglix"
@version "1.1.4"
def project do
[
app: :pinglix,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: packag... | 21.542373 | 65 | 0.527144 |
03c04de8eeae1e99fd249a075f5901f519fd27a2 | 34,348 | ex | Elixir | lib/phoenix_live_view/helpers.ex | nTraum/phoenix_live_view | 62050eb995d13fb46976d2ff18c7a1dfa40eadfe | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | nTraum/phoenix_live_view | 62050eb995d13fb46976d2ff18c7a1dfa40eadfe | [
"MIT"
] | null | null | null | lib/phoenix_live_view/helpers.ex | nTraum/phoenix_live_view | 62050eb995d13fb46976d2ff18c7a1dfa40eadfe | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Helpers do
@moduledoc """
A collection of helpers to be imported into your views.
"""
# TODO: Convert all functions with the `live_` prefix to function components?
alias Phoenix.LiveView
alias Phoenix.LiveView.{Component, Socket, Static}
@doc """
Provides `~L` sigil with HT... | 31.569853 | 102 | 0.643793 |
03c07db6b194cc9cd310751fc81da5674685b73b | 873 | exs | Elixir | test/cog/models/group_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/models/group_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/models/group_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Models.Group.Test do
use Cog.ModelCase
alias Cog.Models.Group
test "names are required" do
changeset = Group.changeset(%Group{}, %{})
assert {:name, {"can't be blank", []}} in changeset.errors
end
test "names are unique" do
{:ok, _group} = Repo.insert Group.changeset(%Group{}, %{"... | 33.576923 | 91 | 0.656357 |
03c09d7ac9b05e34d99ea35b92d5ed341fd70385 | 219 | ex | Elixir | lib/pun_discord_bot.ex | sizumita/pun-discord-bot | 80c0c5231669ce1f691116756a46f6af6e0f07a7 | [
"MIT"
] | null | null | null | lib/pun_discord_bot.ex | sizumita/pun-discord-bot | 80c0c5231669ce1f691116756a46f6af6e0f07a7 | [
"MIT"
] | 6 | 2020-09-06T05:33:02.000Z | 2020-09-09T01:57:42.000Z | lib/pun_discord_bot.ex | sizumita/pun-discord-bot | 80c0c5231669ce1f691116756a46f6af6e0f07a7 | [
"MIT"
] | null | null | null | defmodule PunDiscordBot do
@moduledoc """
Documentation for `PunDiscordBot`.
"""
@doc """
Hello world.
## Examples
iex> PunDiscordBot.hello()
:world
"""
def hello do
:world
end
end
| 11.526316 | 36 | 0.593607 |
03c0aaddc956a528b84d389d1b7e9234358527a5 | 650 | exs | Elixir | phoenix/priv/repo/migrations/20171018091459_create_categories.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/priv/repo/migrations/20171018091459_create_categories.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/priv/repo/migrations/20171018091459_create_categories.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferien.Repo.Migrations.CreateCategories do
use Ecto.Migration
def change do
create table(:categories) do
add :name, :string
add :name_plural, :string
add :slug, :string
add :needs_exeat, :boolean, default: false, null: false
add :for_students, :boolean, default:... | 29.545455 | 63 | 0.684615 |
03c0bd6772663e73e9157123aaf5b2f756900586 | 4,402 | exs | Elixir | test/schemas/server/update_build_info_params_test.exs | Kintull/elidactyl | 9a051ed511ed92fa7578038784baa73288f1312b | [
"MIT"
] | 6 | 2020-04-28T21:38:40.000Z | 2022-02-13T01:04:10.000Z | test/schemas/server/update_build_info_params_test.exs | Kintull/elidactyl | 9a051ed511ed92fa7578038784baa73288f1312b | [
"MIT"
] | 1 | 2021-03-16T10:39:32.000Z | 2021-03-16T10:39:32.000Z | test/schemas/server/update_build_info_params_test.exs | Kintull/elidactyl | 9a051ed511ed92fa7578038784baa73288f1312b | [
"MIT"
] | null | null | null | defmodule Elidactyl.Schemas.Server.UpdateBuildInfoParamsTest do
use ExUnit.Case
use Elidactyl.ChangesetCase
alias Elidactyl.Schemas.Server.UpdateBuildInfoParams
import UpdateBuildInfoParams
@valid %{
allocation: 1,
memory: 512,
swap: 0,
disk: 200,
io: 500,
cpu: 0,
threads: nil,
... | 40.385321 | 84 | 0.638573 |
03c0d96743955bc91e01647e91ea9980e5204c0e | 1,092 | ex | Elixir | lib/membrane_element_tee/master.ex | membraneframework/membrane_element_tee | 580a4aa9b8b8b517e66c322bc0ff9d23757aaffb | [
"Apache-2.0"
] | null | null | null | lib/membrane_element_tee/master.ex | membraneframework/membrane_element_tee | 580a4aa9b8b8b517e66c322bc0ff9d23757aaffb | [
"Apache-2.0"
] | 3 | 2021-12-29T09:57:27.000Z | 2021-12-30T16:21:43.000Z | lib/membrane_element_tee/master.ex | membraneframework/membrane_element_tee | 580a4aa9b8b8b517e66c322bc0ff9d23757aaffb | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.Tee.Master do
use Membrane.Filter
@moduledoc """
Element for forwarding buffers to at least one output pad
It has one input pad `:input` and 2 output pads:
* `:master` - is a static pad which is always available and works in pull mode
* `:copy` - is a dynamic pad that can be lin... | 26.634146 | 112 | 0.67674 |
03c0fa9fca4832786292efdc2964317b983c69e1 | 2,517 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/colors.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/colors.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/colors.ex | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 43.396552 | 294 | 0.704013 |
03c106da6199e02fadfbee7b2fbd9163d15b53b9 | 289 | exs | Elixir | priv/repo/migrations/20190527022506_create_users.exs | joshddunn/loudspeaker-elixir | 9d2aba711c698e456f497cbfa10c18b0042c1831 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190527022506_create_users.exs | joshddunn/loudspeaker-elixir | 9d2aba711c698e456f497cbfa10c18b0042c1831 | [
"MIT"
] | null | null | null | priv/repo/migrations/20190527022506_create_users.exs | joshddunn/loudspeaker-elixir | 9d2aba711c698e456f497cbfa10c18b0042c1831 | [
"MIT"
] | null | null | null | defmodule Myapp.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :account_id, :string
add :jti, :string
add :token, :string
add :token_exp, :integer
timestamps()
end
end
end
| 17 | 46 | 0.629758 |
03c1208102687564e9e7666633a9ae86fe3ecd44 | 1,404 | exs | Elixir | mix.exs | vemperor/ecto_searcher | 4e9f368df6dd68623fd63d591abc2544e8a23d19 | [
"MIT"
] | 4 | 2019-08-06T19:31:53.000Z | 2020-11-18T23:49:49.000Z | mix.exs | ivalentinee/ecto_searcher | 4e9f368df6dd68623fd63d591abc2544e8a23d19 | [
"MIT"
] | null | null | null | mix.exs | ivalentinee/ecto_searcher | 4e9f368df6dd68623fd63d591abc2544e8a23d19 | [
"MIT"
] | null | null | null | defmodule EctoSearcher.MixProject do
use Mix.Project
def project do
[
app: :ecto_searcher,
version: "0.2.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
description: "Totally not an attempt to build Ransack-like search",
package: package(),
docs: docs(),... | 24.206897 | 74 | 0.580484 |
03c1472fa07adb040127dfca5d6456a466bde7c7 | 6,642 | exs | Elixir | test/plug/session_test.exs | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | test/plug/session_test.exs | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | test/plug/session_test.exs | tomciopp/plug | af7fba19e8bce208129d858b924c7a49b93beef1 | [
"Apache-2.0"
] | null | null | null | defmodule Plug.SessionTest do
use ExUnit.Case, async: true
use Plug.Test
alias Plug.ProcessStore
test "puts session cookie" do
conn = fetch_cookies(conn(:get, "/"))
opts = Plug.Session.init(store: ProcessStore, key: "foobar")
conn = conn |> Plug.Session.call(opts) |> fetch_session()
conn = sen... | 33.21 | 97 | 0.610961 |
03c1611208850ad5e1b743f1c76988dd75beaa91 | 190 | exs | Elixir | test/mimicron_test.exs | jcoder39/mimicron | 10a4de1ce26e8014445f060d3208e4d8ad2e24c9 | [
"MIT"
] | 1 | 2019-07-30T11:06:48.000Z | 2019-07-30T11:06:48.000Z | test/mimicron_test.exs | jcoder39/mimicron | 10a4de1ce26e8014445f060d3208e4d8ad2e24c9 | [
"MIT"
] | null | null | null | test/mimicron_test.exs | jcoder39/mimicron | 10a4de1ce26e8014445f060d3208e4d8ad2e24c9 | [
"MIT"
] | null | null | null | defmodule Usage do
use Mimicron
def sample, do: 1
end
defmodule MimicronTest do
use ExUnit.Case
doctest Mimicron
test "usage sample" do
assert Usage.sample() == 1
end
end
| 12.666667 | 30 | 0.705263 |
03c16aa08cd77791bc50b124275278a59c4dc82e | 73 | exs | Elixir | test/open_banking_test.exs | robmckinnon/open_banking_ex | d8a8cb7810c0748be886ee8c47b012fd1883a7b3 | [
"MIT"
] | null | null | null | test/open_banking_test.exs | robmckinnon/open_banking_ex | d8a8cb7810c0748be886ee8c47b012fd1883a7b3 | [
"MIT"
] | null | null | null | test/open_banking_test.exs | robmckinnon/open_banking_ex | d8a8cb7810c0748be886ee8c47b012fd1883a7b3 | [
"MIT"
] | null | null | null | defmodule OpenBankingTest do
use ExUnit.Case
doctest OpenBanking
end
| 14.6 | 28 | 0.821918 |
03c17a83626a1838390995be4659ca025903d508 | 2,480 | ex | Elixir | lib/logger/lib/logger/watcher.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-10-11T01:36:26.000Z | 2019-10-11T01:36:26.000Z | lib/logger/lib/logger/watcher.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | 1 | 2019-04-25T12:52:49.000Z | 2019-04-25T13:27:31.000Z | lib/logger/lib/logger/watcher.ex | andrewtimberlake/elixir | a1c4ffc897f9407fe7e739e20e697805fbbff810 | [
"Apache-2.0"
] | null | null | null | defmodule Logger.Watcher do
@moduledoc false
require Logger
use GenServer
# TODO: Once we remove :error_logger in Erlang/OTP 21+, there is no reason
# to pass the `mod` argument in, as we will only ever watch Logger handlers
@doc """
Starts a watcher server.
This is useful when there is a need to st... | 24.8 | 81 | 0.608871 |
03c181ce638e7fe332fea64b7f6354dd0657bb3c | 7,289 | ex | Elixir | apps/admin_api/lib/admin_api/v1/controllers/user_controller.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/controllers/user_controller.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/admin_api/lib/admin_api/v1/controllers/user_controller.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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... | 32.686099 | 89 | 0.640966 |
03c1a2517ad56a6adcaad64361df07efb7f63df8 | 17,593 | ex | Elixir | clients/drive/lib/google_api/drive/v3/api/drives.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/drives.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/api/drives.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.934726 | 368 | 0.632524 |
03c1e039157ab901e4224276c58c05ae1ea95e08 | 1,712 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/inventory_source_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/display_video/lib/google_api/display_video/v1/model/inventory_source_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/display_video/lib/google_api/display_video/v1/model/inventory_source_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.425532 | 293 | 0.758178 |
03c2140fd8bf185d41d25183e83848a5fd77ce8c | 468 | ex | Elixir | web/router.ex | lsimoneau/panda-ci | 24804b310eda9800a721e71e97bcb0304554517d | [
"MIT"
] | null | null | null | web/router.ex | lsimoneau/panda-ci | 24804b310eda9800a721e71e97bcb0304554517d | [
"MIT"
] | null | null | null | web/router.ex | lsimoneau/panda-ci | 24804b310eda9800a721e71e97bcb0304554517d | [
"MIT"
] | null | null | null | defmodule Panda.Router do
use Panda.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Panda do
pipe_through :browser # Use the default browser stack... | 18 | 57 | 0.655983 |
03c21c9b4f4271e16da8624fa0bbe09a8b18a340 | 739 | ex | Elixir | lib/chatter/post.ex | lucasmelin/Chatter | 023595dab54bc86d94062a61628c344fa5d7f56d | [
"MIT"
] | null | null | null | lib/chatter/post.ex | lucasmelin/Chatter | 023595dab54bc86d94062a61628c344fa5d7f56d | [
"MIT"
] | 1 | 2020-07-16T23:18:36.000Z | 2020-07-16T23:18:36.000Z | lib/chatter/post.ex | lucasmelin/Chatter | 023595dab54bc86d94062a61628c344fa5d7f56d | [
"MIT"
] | null | null | null | defmodule Chatter.Post do
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query
alias Chatter.{User, Comment, Repo}
schema "posts" do
field :body, :string
belongs_to :user, User
has_many :comments, Comment
timestamps()
end
def all do
Repo.all(
from p in __MODULE__,
... | 16.065217 | 43 | 0.622463 |
03c266f00c096fb4098750090cde2b9437c9df38 | 3,365 | ex | Elixir | lib/absinthe/type/enum.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 2 | 2021-04-22T23:45:04.000Z | 2021-05-07T01:01:15.000Z | lib/absinthe/type/enum.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | 1 | 2020-04-07T23:46:38.000Z | 2020-04-07T23:46:38.000Z | lib/absinthe/type/enum.ex | TheRealReal/absinthe | 6eae5bc36283e58f42d032b8afd90de3ad64f97b | [
"MIT"
] | null | null | null | defmodule Absinthe.Type.Enum do
@moduledoc """
Used to define an enum type, a special scalar that can only have a defined set
of values.
See the `t` type below for details and examples.
## Examples
Given a type defined as the following (see `Absinthe.Schema.Notation`):
```
@desc "The selected color ... | 31.157407 | 140 | 0.668945 |
03c276a3e2632be7c7238cf0e69e5e1962a7e727 | 2,126 | ex | Elixir | lib/swoosh/adapters/logger.ex | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 1,214 | 2016-03-21T16:56:42.000Z | 2022-03-31T19:10:11.000Z | lib/swoosh/adapters/logger.ex | craigp/swoosh | 83364b3e9029988e585d4cc0c4d5ec1ccfb4930a | [
"MIT"
] | 399 | 2016-03-21T23:11:32.000Z | 2022-03-04T10:52:28.000Z | lib/swoosh/adapters/logger.ex | nash-io/swoosh | 05c8676890da07403225c302f9a069fc7d221330 | [
"MIT"
] | 208 | 2016-03-21T21:12:11.000Z | 2022-03-04T06:35:33.000Z | defmodule Swoosh.Adapters.Logger do
@moduledoc ~S"""
An adapter that only logs email using Logger.
It can be useful in environment where you do not necessarily want to send real
emails (eg. staging environments) or in development.
By default it only prints the recipient of the email but you can print the fu... | 24.436782 | 81 | 0.636877 |
03c2a657ccd1fada2ff2e450458f243b837c2a67 | 336 | exs | Elixir | inverse_captcha/mix.exs | ChrisWilding/Advent-of-Code-2017 | 62284eec7a0e924230d82765d9ae17e52bc52ca8 | [
"Apache-2.0"
] | 1 | 2019-05-14T05:10:34.000Z | 2019-05-14T05:10:34.000Z | inverse_captcha/mix.exs | ChrisWilding/Advent-of-Code-2017 | 62284eec7a0e924230d82765d9ae17e52bc52ca8 | [
"Apache-2.0"
] | null | null | null | inverse_captcha/mix.exs | ChrisWilding/Advent-of-Code-2017 | 62284eec7a0e924230d82765d9ae17e52bc52ca8 | [
"Apache-2.0"
] | null | null | null | defmodule InverseCaptcha.Mixfile do
use Mix.Project
def project do
[
app: :inverse_captcha,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
... | 14 | 40 | 0.559524 |
03c2abaca38f2fc0a2e1b1497a550b75f096bfd4 | 5,122 | ex | Elixir | lib/documenter/api.ex | IanLuites/api_doc | b93ac8d82888c96bde7c55a08ec5716926976097 | [
"MIT"
] | 1 | 2020-01-12T03:41:03.000Z | 2020-01-12T03:41:03.000Z | lib/documenter/api.ex | IanLuites/api_doc | b93ac8d82888c96bde7c55a08ec5716926976097 | [
"MIT"
] | 1 | 2019-04-17T15:32:15.000Z | 2019-04-17T15:32:15.000Z | lib/documenter/api.ex | IanLuites/api_doc | b93ac8d82888c96bde7c55a08ec5716926976097 | [
"MIT"
] | null | null | null | defmodule APIDoc.APIDocumenter do
@moduledoc ~S"""
API Documenter.
Documents the main entry of the API.
The following annotations can be set:
- `@api` (string) name of the API.
- `@vsn` (string) version of the API.
- `@moduledoc` (string) API description. Supports markdown.
- `@contact` (stri... | 28.142857 | 98 | 0.612847 |
03c2b3403108edde732cab913b3f339f5c86cc57 | 711 | exs | Elixir | test/exception_test.exs | ktec/decorator | 2ceda1adc8beea7eb6d712034f9ae8d12ff3e46f | [
"MIT"
] | null | null | null | test/exception_test.exs | ktec/decorator | 2ceda1adc8beea7eb6d712034f9ae8d12ff3e46f | [
"MIT"
] | null | null | null | test/exception_test.exs | ktec/decorator | 2ceda1adc8beea7eb6d712034f9ae8d12ff3e46f | [
"MIT"
] | null | null | null | # two arguments
defmodule DecoratorTest.Fixture.ExceptionDecorator do
use Decorator.Define, test: 0
def test(body, _context) do
{:ok, body}
end
end
defmodule DecoratorTest.Fixture.ExceptionTestModule do
use DecoratorTest.Fixture.ExceptionDecorator
@decorate test()
def result(a) do
if a == :throw ... | 19.75 | 61 | 0.7173 |
03c30473c36cb2365c493eb18592410365859541 | 1,095 | exs | Elixir | test/todotin/router_user_test.exs | matin-nayob/todotin | 8f356118a7197ef9276ce3fa8437de1d03c356f9 | [
"Unlicense"
] | null | null | null | test/todotin/router_user_test.exs | matin-nayob/todotin | 8f356118a7197ef9276ce3fa8437de1d03c356f9 | [
"Unlicense"
] | null | null | null | test/todotin/router_user_test.exs | matin-nayob/todotin | 8f356118a7197ef9276ce3fa8437de1d03c356f9 | [
"Unlicense"
] | null | null | null | defmodule Todotin.Routers.UserTest do
use ExUnit.Case
use Plug.Test
alias Todotin.Router.Main
@opt Main.init([])
setup do
user = Todotin.Model.User.new("user.router@test.com", "User Router Test")
{:ok, user: user, user_id: user.user_id}
end
test "create user fail", context do
resp =
... | 19.909091 | 88 | 0.573516 |
03c32f79dcf44a923acabd9c444be29b9b9de31e | 191 | exs | Elixir | priv/repo/migrations/20170520194853_add_hidden_to_categories.exs | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 184 | 2015-11-23T20:51:50.000Z | 2022-03-30T01:01:39.000Z | priv/repo/migrations/20170520194853_add_hidden_to_categories.exs | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 15 | 2015-11-26T16:00:20.000Z | 2018-05-25T20:13:39.000Z | priv/repo/migrations/20170520194853_add_hidden_to_categories.exs | van-mronov/ex_money | 39010f02fd822657e3b5694e08b872bd2ab72c26 | [
"0BSD"
] | 21 | 2015-11-26T21:34:40.000Z | 2022-03-26T02:56:42.000Z | defmodule ExMoney.Repo.Migrations.AddHiddenToCategories do
use Ecto.Migration
def change do
alter table(:categories) do
add :hidden, :boolean, default: false
end
end
end
| 19.1 | 58 | 0.727749 |
03c33403fa01e1d50459678a896f3f88302d338f | 1,180 | exs | Elixir | test/test_helper.exs | Jcambass/phoenix_ecto | d0bed6522ef286feb14bd00019c406acf5670002 | [
"MIT"
] | 359 | 2015-03-06T17:03:53.000Z | 2022-03-24T19:24:44.000Z | test/test_helper.exs | Jcambass/phoenix_ecto | d0bed6522ef286feb14bd00019c406acf5670002 | [
"MIT"
] | 134 | 2015-03-14T01:19:51.000Z | 2022-03-31T11:44:51.000Z | test/test_helper.exs | Jcambass/phoenix_ecto | d0bed6522ef286feb14bd00019c406acf5670002 | [
"MIT"
] | 128 | 2015-03-12T00:05:54.000Z | 2022-03-31T11:11:50.000Z | defmodule Permalink do
use Ecto.Schema
embedded_schema do
field :url
end
def changeset(permalink, params) do
import Ecto.Changeset
permalink
|> cast(params, ~w(url)a)
|> validate_required(:url)
|> validate_length(:url, min: 3)
end
end
defmodule Comment do
use Ecto.Schema
schem... | 18.730159 | 59 | 0.685593 |
03c340c906b54121dbe98ae9dbaeae92cafa1124 | 599 | ex | Elixir | web/views/talk_view.ex | pbrudnick/pyconar-talks | f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e | [
"MIT"
] | null | null | null | web/views/talk_view.ex | pbrudnick/pyconar-talks | f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e | [
"MIT"
] | null | null | null | web/views/talk_view.ex | pbrudnick/pyconar-talks | f0b2fdff9cae7bd7558cb4fdc5e0048403bbde7e | [
"MIT"
] | null | null | null | defmodule PyconarTalks.TalkView do
use PyconarTalks.Web, :view
def render("index.json", %{talks: talks}) do
%{talks: render_many(talks, PyconarTalks.TalkView, "talk.json")}
end
def render("show.json", %{talk: talk}) do
%{talk: render_one(talk, PyconarTalks.TalkView, "talk.json")}
end
def render("... | 24.958333 | 68 | 0.641068 |
03c3b43a9a71f77cec704be73ec493c81a42a207 | 5,095 | ex | Elixir | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_workload.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_workload.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_workload.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... | 55.380435 | 494 | 0.735623 |
03c3bc2cbc36cc6e19bb7178a5c7e01f7b73cab6 | 295 | ex | Elixir | lib/still.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 202 | 2021-01-13T15:45:17.000Z | 2022-03-22T01:26:27.000Z | lib/still.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 55 | 2021-01-26T14:11:34.000Z | 2022-03-22T22:34:37.000Z | lib/still.ex | tomasz-tomczyk/still | 3f2fdb64c72244b789e14b31d514199f8adeb796 | [
"ISC"
] | 10 | 2021-02-04T21:14:41.000Z | 2022-03-20T10:12:59.000Z | defmodule Still do
@moduledoc false
@doc """
Registers a callback to be called synchronously after the compilation.
"""
defdelegate after_compile(fun), to: Still.Compiler.Compile
@doc """
Compiles the site.
"""
defdelegate compile(), to: Still.Compiler.Compile, as: :run
end
| 21.071429 | 72 | 0.705085 |
03c3d7bbaf6ae254a12b7bfd3be05ade65977b91 | 57,003 | ex | Elixir | lib/db_connection.ex | kianmeng/db_connection | 9752b8194f945c6a877e07c0eb8b7dbc41177f0d | [
"Apache-2.0"
] | 1 | 2021-02-24T13:06:18.000Z | 2021-02-24T13:06:18.000Z | lib/db_connection.ex | kianmeng/db_connection | 9752b8194f945c6a877e07c0eb8b7dbc41177f0d | [
"Apache-2.0"
] | null | null | null | lib/db_connection.ex | kianmeng/db_connection | 9752b8194f945c6a877e07c0eb8b7dbc41177f0d | [
"Apache-2.0"
] | null | null | null | defmodule DBConnection.Stream do
defstruct [:conn, :query, :params, :opts]
@type t :: %__MODULE__{conn: DBConnection.conn,
query: any,
params: any,
opts: Keyword.t}
end
defimpl Enumerable, for: DBConnection.Stream do
def count(_), do: {:... | 34.072325 | 102 | 0.647422 |
03c3dcb9017eef06027baf3471071a6a70670b20 | 2,614 | exs | Elixir | test/debug_test.exs | aruki-delivery/quaff | 3538bec660642398537488377d57f5212b44414a | [
"Apache-2.0"
] | null | null | null | test/debug_test.exs | aruki-delivery/quaff | 3538bec660642398537488377d57f5212b44414a | [
"Apache-2.0"
] | null | null | null | test/debug_test.exs | aruki-delivery/quaff | 3538bec660642398537488377d57f5212b44414a | [
"Apache-2.0"
] | 1 | 2019-12-03T15:46:32.000Z | 2019-12-03T15:46:32.000Z | defmodule Quaff.Debug.Test do
use ExUnit.Case
require Quaff.Debug
require Quaff
alias Quaff.Debug, as: Dbg
setup context do
if context[:debugger] do
:meck.new(:debugger)
:meck.expect(:debugger, :start, fn -> {:ok, self()} end)
end
if context[:int] do
:meck.new(:int)
:mec... | 21.252033 | 91 | 0.519128 |
03c3e125c8c4e6c1520b9176c81f9422df0deaf2 | 2,222 | ex | Elixir | lib/freegiving/fundraisers/gift_card.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving/fundraisers/gift_card.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | lib/freegiving/fundraisers/gift_card.ex | jfcloutier/freegiving | 2ab3821595996fc295c5b55515d6f60cbce05181 | [
"Unlicense"
] | null | null | null | defmodule Freegiving.Fundraisers.GiftCard do
use Ecto.Schema
import Ecto.Query
import Ecto.Changeset, warn: false
alias Freegiving.Fundraisers.{Fundraiser, Participant, CardRefill}
alias Freegiving.Repo
alias __MODULE__
# A gift card always belongs to a fundraiser and my also belong to a participant in t... | 30.861111 | 101 | 0.663366 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.