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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4af05ce01826d871c72d3380a710e285c7f6aa75 | 1,109 | ex | Elixir | lib/address.ex | SparkPost/elixir-sparkpost | cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5 | [
"Apache-2.0"
] | 47 | 2016-01-30T07:24:10.000Z | 2021-05-29T13:47:49.000Z | lib/address.ex | SparkPost/elixir-sparkpost | cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5 | [
"Apache-2.0"
] | 48 | 2016-01-21T22:11:14.000Z | 2020-10-12T06:13:50.000Z | lib/address.ex | SparkPost/elixir-sparkpost | cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5 | [
"Apache-2.0"
] | 12 | 2016-02-27T23:04:13.000Z | 2018-05-03T15:34:04.000Z | defmodule SparkPost.Address do
@moduledoc """
An long-form email address with both name and address parts.
e.g.: Sparky McSparkPost <sparky@sparkpost.com>
Designed for use in:
- `%SparkPost.Content.Inline{from: ...}`
- `%SparkPost.Recipient.address{from: ...}`
"""
defstruct name: nil, email: :requi... | 27.04878 | 86 | 0.620379 |
4af08b7d78aa46ed6c41cff0f5b77c51df6c2508 | 93 | exs | Elixir | test/test_helper.exs | CharlesOkwuagwu/dbg | 76bbe5069fa7d6b566fe4c60d31b86e4544d03d5 | [
"Apache-2.0"
] | 142 | 2015-01-11T19:27:48.000Z | 2021-10-30T03:56:12.000Z | test/test_helper.exs | CharlesOkwuagwu/dbg | 76bbe5069fa7d6b566fe4c60d31b86e4544d03d5 | [
"Apache-2.0"
] | 9 | 2015-05-09T18:41:29.000Z | 2019-03-02T19:09:20.000Z | test/test_helper.exs | CharlesOkwuagwu/dbg | 76bbe5069fa7d6b566fe4c60d31b86e4544d03d5 | [
"Apache-2.0"
] | 13 | 2015-05-09T17:08:53.000Z | 2018-01-24T12:07:52.000Z | if Node.alive?() do
ExUnit.start([exclude: [distributed: true]])
else
ExUnit.start()
end
| 15.5 | 46 | 0.688172 |
4af094e8fbe7aa29b453f8f98fd2a37c875d3ec9 | 1,141 | ex | Elixir | kousa/lib/routes/dev.ex | overlisted/dogehouse | fe53538aae829831cb0b04bee09fd24ed96ad097 | [
"MIT"
] | 1 | 2021-04-19T19:02:21.000Z | 2021-04-19T19:02:21.000Z | kousa/lib/routes/dev.ex | overlisted/dogehouse | fe53538aae829831cb0b04bee09fd24ed96ad097 | [
"MIT"
] | null | null | null | kousa/lib/routes/dev.ex | overlisted/dogehouse | fe53538aae829831cb0b04bee09fd24ed96ad097 | [
"MIT"
] | null | null | null | defmodule Kousa.Dev do
import Plug.Conn
use Plug.Router
plug(:match)
plug(:dispatch)
get "/test-info" do
if Application.fetch_env!(:kousa, :env) != :dev do
conn
|> put_resp_content_type("application/json")
|> send_resp(400, Poison.encode!(%{"error" => "no"}))
else
username =... | 27.166667 | 126 | 0.531113 |
4af0cd41e5eac051f2c8ef679840e013f9411075 | 157 | ex | Elixir | test/support/auth/test_identity_service.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | test/support/auth/test_identity_service.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | test/support/auth/test_identity_service.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule PotionxTest.IdentityService do
use Potionx.Auth.IdentityService, [
repo: PotionxTest.Repo,
identity_schema: PotionxTest.Identity
]
end
| 22.428571 | 41 | 0.77707 |
4af0d5ff21e3d2b14644a8fae9de5b2b378c932e | 59,969 | ex | Elixir | lib/plug/conn.ex | zodiake/plug | b0b858db59ff12251781afe0554fb0f0bc469a8b | [
"Apache-2.0"
] | 1,218 | 2017-07-14T15:13:32.000Z | 2022-03-30T16:42:42.000Z | lib/plug/conn.ex | Thanathon1123/plug | 2f1ccae8aa24425dd63240b0a762c0d713e9991a | [
"Apache-2.0"
] | 502 | 2017-07-19T15:36:44.000Z | 2022-03-31T06:47:36.000Z | lib/plug/conn.ex | Thanathon1123/plug | 2f1ccae8aa24425dd63240b0a762c0d713e9991a | [
"Apache-2.0"
] | 376 | 2017-07-17T15:47:55.000Z | 2022-03-23T19:24:30.000Z | alias Plug.Conn.Unfetched
defmodule Plug.Conn do
@moduledoc """
The Plug connection.
This module defines a struct and the main functions for working with
requests and responses in an HTTP connection.
Note request headers are normalized to lowercase and response
headers are expected to have lowercase keys... | 33.18705 | 125 | 0.669463 |
4af0ee69531813022fb767a34ef3a9b7b5c391e6 | 1,425 | exs | Elixir | test/webdriver/remote_session_test.exs | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 104 | 2015-02-11T02:57:53.000Z | 2022-01-12T14:28:12.000Z | test/webdriver/remote_session_test.exs | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 3 | 2015-07-23T18:48:11.000Z | 2016-10-12T14:28:43.000Z | test/webdriver/remote_session_test.exs | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 28 | 2015-01-09T22:05:27.000Z | 2021-04-29T13:55:13.000Z | Code.require_file "../test_helper.exs", __DIR__
Code.require_file "test_server.exs", __DIR__
defmodule WebDriverRemoteSessionTest do
use ExUnit.Case
setup_all do
:os.cmd 'phantomjs --webdriver=localhost:5555 &'
on_exit fn ->
:os.cmd 'killall phantomjs'
end
{:ok, []}
end
setup do
on_e... | 33.139535 | 83 | 0.701754 |
4af0f3a9eed6f432e090cdd074d2d6d369dadc90 | 623 | ex | Elixir | lib/postgrex/extensions/int8.ex | enter-haken/postgrex | fb3438d4e6a56db81ddd0d578cdfc0484909c233 | [
"Apache-2.0"
] | 681 | 2016-06-16T12:28:22.000Z | 2022-03-30T08:48:42.000Z | deps/postgrex/lib/postgrex/extensions/int8.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 383 | 2016-06-17T14:49:41.000Z | 2022-03-21T18:13:19.000Z | deps/postgrex/lib/postgrex/extensions/int8.ex | adrianomota/blog | ef3b2d2ed54f038368ead8234d76c18983caa75b | [
"MIT"
] | 234 | 2016-06-16T16:14:47.000Z | 2022-03-03T00:43:59.000Z | defmodule Postgrex.Extensions.Int8 do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "int8send"
@int8_range -9_223_372_036_854_775_808..9_223_372_036_854_775_807
def encode(_) do
range = Macro.escape(@int8_range)
quote location: :keep do
int when... | 23.961538 | 88 | 0.683788 |
4af0fb4c551e6a7aa30f6e7627feab36c64e76a5 | 750 | ex | Elixir | lib/platform/accounts/user_from_google_auth.ex | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 17 | 2017-11-14T14:03:18.000Z | 2021-12-10T04:18:48.000Z | lib/platform/accounts/user_from_google_auth.ex | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 21 | 2017-11-19T13:38:07.000Z | 2022-02-10T00:11:14.000Z | lib/platform/accounts/user_from_google_auth.ex | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 2 | 2019-09-03T03:32:13.000Z | 2021-02-23T21:52:57.000Z | defmodule Platform.Accounts.UserFromGoogleAuth do
@moduledoc """
Retrieve the user information from an auth request
"""
alias Ueberauth.Auth
alias Platform.Accounts
@behaviour Platform.Accounts.UserFromAuth
def find_or_create(%Auth{provider: :google} = auth) do
changes = %{
google_uid: auth.ui... | 21.428571 | 57 | 0.665333 |
4af14be0ca70785cdff207b0ac32a93421a246ce | 1,149 | ex | Elixir | lib/elixirdo/typeclass/monad.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | lib/elixirdo/typeclass/monad.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | 5 | 2018-07-20T12:36:25.000Z | 2018-08-01T04:55:46.000Z | lib/elixirdo/typeclass/monad.ex | slepher/elixirdo | 9417f275f1c908f9144e93325e6c52717896058f | [
"Xnet",
"X11"
] | null | null | null | defmodule Elixirdo.Typeclass.Monad do
use Elixirdo.Base
use Elixirdo.Expand
alias Elixirdo.Typeclass.Applicative
@type m(_m, _a) :: any()
defmacro __using__(opts) do
quote do
use Elixirdo.Typeclass.Applicative, unquote(opts)
use Elixirdo.Notation.Do
alias Elixirdo.Typeclass.Monad
... | 22.98 | 73 | 0.557876 |
4af15d447df29a7ff001428e96727e51a1c2d0ff | 1,125 | exs | Elixir | installer/templates/new/config/config.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | installer/templates/new/config/config.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | null | null | null | installer/templates/new/config/config.exs | raspo/phoenix | 438b74255e7a4d68b4eaf1a295d0fcd201c71421 | [
"MIT"
] | 1 | 2020-02-08T16:23:00.000Z | 2020-02-08T16:23:00.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
<%= if namespaced? or ecto do %># General application configuration
config :<%= app_n... | 38.793103 | 103 | 0.686222 |
4af16453a0a0848da0091faa1c8c49371fe686e3 | 130 | exs | Elixir | .formatter.exs | szTheory/abnf_parsec | b3111d517e852244233b4518eeb8e1434da3ce5e | [
"MIT"
] | 214 | 2021-01-14T17:13:54.000Z | 2022-03-21T03:11:13.000Z | .formatter.exs | szTheory/abnf_parsec | b3111d517e852244233b4518eeb8e1434da3ce5e | [
"MIT"
] | 11 | 2021-01-15T09:16:37.000Z | 2022-02-27T16:16:28.000Z | .formatter.exs | szTheory/abnf_parsec | b3111d517e852244233b4518eeb8e1434da3ce5e | [
"MIT"
] | 11 | 2021-01-15T00:57:40.000Z | 2021-09-27T05:47:10.000Z | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
import_deps: [:nimble_parsec]
]
| 21.666667 | 70 | 0.6 |
4af16911204945c478f7cb3ccab7653e6b769a3b | 1,827 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/elections_query_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/civic_info/lib/google_api/civic_info/v2/model/elections_query_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/civic_info/lib/google_api/civic_info/v2/model/elections_query_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.54 | 184 | 0.737822 |
4af1b337b2168296d6bffd82167dad17f5985ae0 | 1,906 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/primary_step.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/primary_step.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/primary_step.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... | 35.962264 | 164 | 0.741868 |
4af1c567092b1625abeef102c79d5e4d2723960c | 1,306 | exs | Elixir | test/view_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 1,047 | 2016-05-11T16:09:29.000Z | 2022-03-29T17:17:26.000Z | test/view_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 132 | 2016-10-28T19:44:26.000Z | 2020-12-06T21:16:53.000Z | test/view_test.exs | bougueil/kitto | a2b5fb10e632e9ee05dce2644193fd35eaa1938e | [
"MIT"
] | 70 | 2016-10-26T00:11:05.000Z | 2022-01-02T21:43:06.000Z | defmodule Kitto.ViewTest do
use ExUnit.Case, async: true
use Plug.Test
describe ".render/1" do
test "renders layout with the given assigns" do
html = "<div class=\"layout blue\"><h1>Hello from kitto</h1>\n\n</div>\n"
assert Kitto.View.render("sample", color: "blue") == html
end
test "re... | 31.095238 | 80 | 0.635528 |
4af1db66c479e146cb2f8ddddc1658912ce592ed | 1,001 | ex | Elixir | lib/phxpay/application.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | lib/phxpay/application.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | lib/phxpay/application.ex | ramonlimaramos/phxpay | accf0ada9581a8f8f396849fdfe10e1a1c4ae2af | [
"MIT"
] | null | null | null | defmodule Phxpay.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
Phxpay.Repo,
# Start the Telemetry supervisor
PhxpayWeb... | 28.6 | 64 | 0.699301 |
4af1ef490b658a0626044299134cd6b0baf134a4 | 1,957 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/ssl_certificates_scoped_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/ssl_certificates_scoped_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/ssl_certificates_scoped_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.14 | 199 | 0.754216 |
4af2008f2912a7169f95ed483bb9cad3f207f1d4 | 1,141 | ex | Elixir | test/support/channel_case.ex | TKW25/yahoo-wrapper | 48e9a55b0a96ea0c7131ae408c9a35c5f6bb2382 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | TKW25/yahoo-wrapper | 48e9a55b0a96ea0c7131ae408c9a35c5f6bb2382 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | TKW25/yahoo-wrapper | 48e9a55b0a96ea0c7131ae408c9a35c5f6bb2382 | [
"MIT"
] | null | null | null | defmodule YahooWrapperWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case intera... | 27.829268 | 74 | 0.734443 |
4af21e8f8d0af94d324caf209b65e72da6eda42e | 2,622 | exs | Elixir | day4/test/day4_test.exs | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | day4/test/day4_test.exs | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | day4/test/day4_test.exs | carlism/aoc_2020 | 5ffdba5d41d243562fa448a92ff02900354956bb | [
"MIT"
] | null | null | null | defmodule Day4Test do
use ExUnit.Case
doctest Day4
test "parses the input" do
data = Day4.parse_file("test/data/test_input.txt")
assert Enum.count(data) == 4
end
test "parses the input into list of tuples" do
data = Day4.parse_file("test/data/test_input.txt")
assert Enum.at(data, 0) == [
... | 31.214286 | 82 | 0.58238 |
4af240ff9cbfacdb6f6208759cf53f073ccb5575 | 477 | ex | Elixir | apps/collabex/lib/collabex/in_memory_event_store/supervisor.ex | mugimaru73/collabex | 69bac8058d6ee1a70620488e802d30a34eaebfb4 | [
"MIT"
] | null | null | null | apps/collabex/lib/collabex/in_memory_event_store/supervisor.ex | mugimaru73/collabex | 69bac8058d6ee1a70620488e802d30a34eaebfb4 | [
"MIT"
] | 2 | 2021-03-10T20:18:59.000Z | 2021-05-11T16:07:46.000Z | apps/collabex/lib/collabex/in_memory_event_store/supervisor.ex | mugimaru/collabex | 69bac8058d6ee1a70620488e802d30a34eaebfb4 | [
"MIT"
] | null | null | null | defmodule Collabex.InMemoryEventStore.Supervisor do
use Supervisor
def start_link(args) do
Supervisor.start_link(__MODULE__, args, name: __MODULE__)
end
def init(args) do
registry_name = Keyword.get(args, :registry_name, Collabex.InMemoryEventStore.Registry)
children = [
{Registry, keys: :u... | 25.105263 | 91 | 0.731656 |
4af2d2d57f7914e620d37f15fd47d9405f4d36fb | 3,438 | ex | Elixir | lib/channel/ui/server.ex | kalouantonis/client | b2b1e272d91eda1179055cae9459ab3341db64f6 | [
"Apache-2.0"
] | 1 | 2017-11-02T17:58:24.000Z | 2017-11-02T17:58:24.000Z | lib/channel/ui/server.ex | kalouantonis/client | b2b1e272d91eda1179055cae9459ab3341db64f6 | [
"Apache-2.0"
] | 1 | 2017-10-17T16:54:10.000Z | 2017-10-17T16:54:10.000Z | lib/channel/ui/server.ex | kalouantonis/client | b2b1e272d91eda1179055cae9459ab3341db64f6 | [
"Apache-2.0"
] | null | null | null | defmodule Channel.UI.Server do
@behaviour :wx_object
require Logger
############################################################
# Client
############################################################
def start_link do
:wx_object.start_link(__MODULE__, [], [])
end
def stop(wx_server) do
:wx_obj... | 25.279412 | 69 | 0.588133 |
4af2d3cbff1f5d64580be89b075ac7b28b012a16 | 80 | ex | Elixir | lib/honest_chat_web/views/user_reset_password_view.ex | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | 3 | 2021-11-19T07:18:30.000Z | 2021-12-23T22:19:48.000Z | lib/honest_chat_web/views/user_reset_password_view.ex | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | lib/honest_chat_web/views/user_reset_password_view.ex | noozo/honest_chat | b3c45f72fd9c579404d05ce308eb13a0a2997760 | [
"Apache-2.0"
] | null | null | null | defmodule HonestChatWeb.UserResetPasswordView do
use HonestChatWeb, :view
end
| 20 | 48 | 0.85 |
4af2eaba841028a58b56909c104e55b8ee7d3827 | 4,220 | exs | Elixir | test/pie_test.exs | msramos/pie | 895df4ae5f3be1e6c637cca4b831b2184b160fb6 | [
"MIT"
] | 7 | 2020-10-05T20:44:38.000Z | 2020-10-07T23:53:06.000Z | test/pie_test.exs | msramos/pie | 895df4ae5f3be1e6c637cca4b831b2184b160fb6 | [
"MIT"
] | null | null | null | test/pie_test.exs | msramos/pie | 895df4ae5f3be1e6c637cca4b831b2184b160fb6 | [
"MIT"
] | null | null | null | defmodule PieTest do
use ExUnit.Case
doctest Pie
alias Pie.Pipeline
alias Pie.Pipeline.Step
alias Pie.State
alias Pie.State.Update
@sut Pie
describe "wrap_state/eval_state" do
test "a succesful pipeline returns an ok tuple" do
result =
10
|> @sut.wrap_state()
|> add(... | 28.133333 | 94 | 0.519194 |
4af2f050817692941fa06c92b55771eab4fdab84 | 27,918 | ex | Elixir | lib/aws/app_mesh.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/app_mesh.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/app_mesh.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.AppMesh do
@moduledoc """
AWS App Mesh is a service mesh based on the Envoy proxy that makes it easy
to monitor and
control microservices. App Mesh standardizes how your microservices
c... | 31.368539 | 155 | 0.664159 |
4af311b667980ed021029047c928502e5b7d4c2b | 625 | ex | Elixir | lib/scenic/primitive/style/paint/draw/box_gradient.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/paint/draw/box_gradient.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/paint/draw/box_gradient.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 6/4/18.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Style.Paint.BoxGradient do
alias Scenic.Primitive.Style.Paint.Color
# --------------------------------------------------------
def normalize({x, y, w, h, radius, feather, color_start,... | 25 | 100 | 0.5856 |
4af313fdac9c1643e3a184c3ba279d05b0fee188 | 4,312 | exs | Elixir | test/type_check/builtin_test.exs | baldwindavid/elixir-type_check | af07e2b4830202e8e7ff92ea986136bfef72556f | [
"MIT"
] | null | null | null | test/type_check/builtin_test.exs | baldwindavid/elixir-type_check | af07e2b4830202e8e7ff92ea986136bfef72556f | [
"MIT"
] | null | null | null | test/type_check/builtin_test.exs | baldwindavid/elixir-type_check | af07e2b4830202e8e7ff92ea986136bfef72556f | [
"MIT"
] | null | null | null | defmodule TypeCheck.BuiltinTest do
use ExUnit.Case, async: true
use ExUnitProperties
import StreamData, only: []
require TypeCheck
import TypeCheck.Builtin
doctest TypeCheck.Builtin
describe "builtin types adhere to their problem_tuple result types." do
possibilities = %{
quote do
any... | 31.021583 | 108 | 0.586039 |
4af32bb364bb45121458e0b56200ee5f35c4677b | 84 | exs | Elixir | test/views/layout_view_test.exs | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | 2 | 2017-08-28T12:20:28.000Z | 2017-08-29T18:50:36.000Z | test/views/layout_view_test.exs | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | null | null | null | defmodule EnhancedMap.LayoutViewTest do
use EnhancedMap.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
4af331480c2782bbf518fb82a0b664b82fba887b | 7,171 | ex | Elixir | lib/platform/speech/aws/polly.ex | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 17 | 2017-11-14T14:03:18.000Z | 2021-12-10T04:18:48.000Z | lib/platform/speech/aws/polly.ex | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 21 | 2017-11-19T13:38:07.000Z | 2022-02-10T00:11:14.000Z | lib/platform/speech/aws/polly.ex | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 2 | 2019-09-03T03:32:13.000Z | 2021-02-23T21:52:57.000Z | defmodule Platform.Speech.AWS.Polly do
@moduledoc """
The Speech context
"""
@behaviour Platform.SpeechAPI
alias Platform.Speech.AWS.Voice
@regex_ssml ~r/(<speak>[\s\S]*?<\/speak>)/
def get_speech(%{"language_key" => language_key, "voice_gender" => voice_gender, "text" => text}) do
voice = Voice.g... | 28.915323 | 333 | 0.652071 |
4af33437b796ba75f1b9f4e36eedb88d51d9d2cf | 91 | ex | Elixir | lib/multiple_products_web/views/user_confirmation_view.ex | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | lib/multiple_products_web/views/user_confirmation_view.ex | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | lib/multiple_products_web/views/user_confirmation_view.ex | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | defmodule MultipleProductsWeb.UserConfirmationView do
use MultipleProductsWeb, :view
end
| 22.75 | 53 | 0.868132 |
4af3385e9c6672ab84f8b7c4ea1271ef4087ad51 | 1,923 | ex | Elixir | lib/grizzly/zwave/commands/node_remove_status.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/zwave/commands/node_remove_status.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/zwave/commands/node_remove_status.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.ZWave.Commands.NodeRemoveStatus do
@moduledoc """
Z-Wave command for NODE_REMOVE_STATUS
This command is useful to respond to a `Grizzly.ZWave.Commands.NodeRemove`
command.
Params:
* `:seq_number` - the sequence number from the original node remove command
* `:status` - the status ... | 27.869565 | 89 | 0.677587 |
4af37e3830744c45b7229af4e664eb24b7320bbf | 8,356 | ex | Elixir | lib/paginator.ex | van-mronov/paginator | 538f3a3fc021d9337fcc8914c969ed983970ebb9 | [
"MIT"
] | null | null | null | lib/paginator.ex | van-mronov/paginator | 538f3a3fc021d9337fcc8914c969ed983970ebb9 | [
"MIT"
] | null | null | null | lib/paginator.ex | van-mronov/paginator | 538f3a3fc021d9337fcc8914c969ed983970ebb9 | [
"MIT"
] | 1 | 2019-04-02T09:21:57.000Z | 2019-04-02T09:21:57.000Z | defmodule Paginator do
@moduledoc """
Defines a paginator.
This module adds a `paginate/3` function to your `Ecto.Repo` so that you can
paginate through results using opaque cursors.
## Usage
defmodule MyApp.Repo do
use Ecto.Repo, otp_app: :my_app
use Paginator
end
## Options... | 32.387597 | 158 | 0.681786 |
4af38f9c40e5f7e3f9d55187a2168830744235b7 | 152 | ex | Elixir | lib/geolix/application.ex | tcitworld/geolix | e5afe54efe664b1cd0617fcaedae8d9e9e5d977a | [
"Apache-2.0"
] | null | null | null | lib/geolix/application.ex | tcitworld/geolix | e5afe54efe664b1cd0617fcaedae8d9e9e5d977a | [
"Apache-2.0"
] | null | null | null | lib/geolix/application.ex | tcitworld/geolix | e5afe54efe664b1cd0617fcaedae8d9e9e5d977a | [
"Apache-2.0"
] | null | null | null | defmodule Geolix.Application do
@moduledoc false
use Application
@doc false
def start(_type, _args), do: Geolix.Supervisor.start_link([])
end
| 16.888889 | 63 | 0.743421 |
4af3f68216d21ac2f888626518bab41620cf162c | 975 | ex | Elixir | lib/http/mint/http_response.ex | aptinio/tz | 8b6a243c58c451e92f8d1b56f62c3ad6885f8eae | [
"Apache-2.0"
] | 66 | 2020-02-24T07:44:18.000Z | 2022-03-30T00:39:54.000Z | lib/http/mint/http_response.ex | aptinio/tz | 8b6a243c58c451e92f8d1b56f62c3ad6885f8eae | [
"Apache-2.0"
] | 9 | 2020-03-28T07:17:56.000Z | 2021-10-11T13:07:05.000Z | lib/http/mint/http_response.ex | aptinio/tz | 8b6a243c58c451e92f8d1b56f62c3ad6885f8eae | [
"Apache-2.0"
] | 8 | 2020-02-25T04:40:28.000Z | 2021-10-10T12:19:18.000Z | if Code.ensure_loaded?(Mint.HTTP) do
defmodule Tz.HTTP.Mint.HTTPResponse do
@moduledoc false
defstruct status_code: nil, headers: nil, body: [], complete?: false
def parse([{:status, _, status_code} | mint_messages], %__MODULE__{} = http_response) do
parse(mint_messages, %{http_response | status_c... | 31.451613 | 92 | 0.645128 |
4af3fbf25fbf1b345f1b316b898f16cdf0984a46 | 3,069 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_product.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_product.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_product.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 46.5 | 485 | 0.743565 |
4af3ff47023b1dd3fd5f99216c880b0e6ef5a766 | 2,058 | exs | Elixir | deps/phoenix/mix.exs | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/mix.exs | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/phoenix/mix.exs | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Phoenix.Mixfile do
use Mix.Project
@version "1.2.1"
def project do
[app: :phoenix,
version: @version,
elixir: "~> 1.2",
deps: deps(),
package: package(),
# Because we define protocols on the fly to test
# Phoenix.Param, we need to disable consolidation
# for the... | 31.181818 | 96 | 0.588921 |
4af431861cc0776d524b9d38cbdbfe71a148dbe9 | 18,656 | ex | Elixir | lib/ex_unit/lib/ex_unit/doc_test.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/doc_test.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/doc_test.ex | gabrielelana/elixir | 7e78113f925d438568b7efa8eaded5ae43dce4b1 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.DocTest do
@moduledoc """
ExUnit.DocTest implements functionality similar to [Python's
doctest](https://docs.python.org/2/library/doctest.html).
In a nutshell, it allows us to generate tests from the code
examples existing in a module/function/macro's documentation.
In order to do that, on... | 32.787346 | 168 | 0.642581 |
4af452dc20b6561f4eba997e89210507e91449ef | 1,300 | exs | Elixir | admin/config/dev.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | admin/config/dev.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"MIT"
] | null | null | null | admin/config/dev.exs | shipperizer/symmetrical-octo-parakeet | 6c9c428898d3529c04d872fec8f099456cc54633 | [
"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 :admin, Admin.Endpoint,
http: [port: 4000],
... | 28.888889 | 73 | 0.689231 |
4af4611270544faecff28c356fe3eba4515581f1 | 1,831 | ex | Elixir | lib/nudge_api_web/telemetry.ex | feelja-tech/feelja-api | 03ce15430460cf2dac24a7740242c7e5ac5c5804 | [
"MIT"
] | null | null | null | lib/nudge_api_web/telemetry.ex | feelja-tech/feelja-api | 03ce15430460cf2dac24a7740242c7e5ac5c5804 | [
"MIT"
] | null | null | null | lib/nudge_api_web/telemetry.ex | feelja-tech/feelja-api | 03ce15430460cf2dac24a7740242c7e5ac5c5804 | [
"MIT"
] | null | null | null | defmodule NudgeApiWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn... | 32.696429 | 86 | 0.673949 |
4af47702d486e4b37210096d19dc282bf4d215a0 | 502 | ex | Elixir | products/lib/products_web/schema.ex | DivvyPayHQ/federation_poc | 74839abf7d3eb8e3029468bbe4d335d7b240da97 | [
"MIT"
] | 2 | 2021-09-21T13:36:49.000Z | 2021-09-25T13:17:40.000Z | products/lib/products_web/schema.ex | DivvyPayHQ/federation_poc | 74839abf7d3eb8e3029468bbe4d335d7b240da97 | [
"MIT"
] | null | null | null | products/lib/products_web/schema.ex | DivvyPayHQ/federation_poc | 74839abf7d3eb8e3029468bbe4d335d7b240da97 | [
"MIT"
] | null | null | null | defmodule ProductsWeb.Schema do
use Absinthe.Schema
use Absinthe.Federation.Schema
query do
extends()
field :product, :product do
arg(:upc, non_null(:string))
resolve(&resolve_product_by_upc/2)
end
end
object :product do
key_fields("upc")
field(:upc, non_null(:string))
f... | 20.916667 | 61 | 0.655378 |
4af4c4ebee746f6bf8f37e0caf0baaf1d5be6f58 | 1,055 | exs | Elixir | config/config.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | config/config.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | config/config.exs | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :buy_the_food,
ecto_repos: [BuyTheFood.... | 32.96875 | 88 | 0.776303 |
4af4cba3b0306e627293b86f94e21d4974224401 | 5,103 | exs | Elixir | config/releases.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | config/releases.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | config/releases.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
import Config
# Database Configuration
database_url =
System.get_env("DATABASE_URL") |... | 31.306748 | 79 | 0.770331 |
4af4d6f8d2305eac0b595c4493f1deca84cdc523 | 2,815 | ex | Elixir | lib/nebulex_redis_adapter/client_cluster.ex | bjyoungblood/nebulex_redis_adapter | 8ecf19f91d1d332c39e3507831fbfabc800fcf2b | [
"MIT"
] | 20 | 2018-09-02T15:14:44.000Z | 2021-12-10T16:40:56.000Z | lib/nebulex_redis_adapter/client_cluster.ex | bjyoungblood/nebulex_redis_adapter | 8ecf19f91d1d332c39e3507831fbfabc800fcf2b | [
"MIT"
] | 23 | 2018-10-26T19:49:11.000Z | 2022-03-23T22:37:25.000Z | lib/nebulex_redis_adapter/client_cluster.ex | bjyoungblood/nebulex_redis_adapter | 8ecf19f91d1d332c39e3507831fbfabc800fcf2b | [
"MIT"
] | 17 | 2018-11-06T00:19:03.000Z | 2021-11-19T09:46:06.000Z | defmodule NebulexRedisAdapter.ClientCluster do
# Client-side Cluster
@moduledoc false
alias NebulexRedisAdapter.ClientCluster.Supervisor, as: ClusterSupervisor
alias NebulexRedisAdapter.{Connection, Pool}
@type hash_slot :: {:"$hash_slot", term}
@type node_entry :: {node_name :: atom, pool_size :: pos_int... | 27.871287 | 98 | 0.624156 |
4af4ebb84d82f0a0e5bb2ddb4a1718527d39ef4f | 2,294 | ex | Elixir | clients/chat/lib/google_api/chat/v1/model/widget_markup.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/widget_markup.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/chat/lib/google_api/chat/v1/model/widget_markup.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... | 40.245614 | 154 | 0.712729 |
4af4f938e351c3de1270b00e9d0e935d09bbc83d | 6,861 | ex | Elixir | lib/eth/query.ex | jchayan/eth | 42a3bb8026522d5bf02d44ddabf4dff177ef28a4 | [
"MIT"
] | null | null | null | lib/eth/query.ex | jchayan/eth | 42a3bb8026522d5bf02d44ddabf4dff177ef28a4 | [
"MIT"
] | null | null | null | lib/eth/query.ex | jchayan/eth | 42a3bb8026522d5bf02d44ddabf4dff177ef28a4 | [
"MIT"
] | null | null | null | defmodule ETH.Query do
import ETH.Utils
alias Ethereumex.HttpClient
def block_number do
case HttpClient.eth_block_number() do
{:ok, hex_block_number} -> {:ok, convert_to_number(hex_block_number)}
error -> error
end
end
def block_number! do
{:ok, hex_block_number} = HttpClient.eth_blo... | 27.118577 | 95 | 0.6518 |
4af5110bdd0d4a57efc3441abb5764acb2364cad | 535 | ex | Elixir | lib/fomantic_ui/views/error_view.ex | easink/fomantic_ui | 069e3d9f8bf6859223d35d8e14e97d9e0fb03848 | [
"Apache-2.0"
] | null | null | null | lib/fomantic_ui/views/error_view.ex | easink/fomantic_ui | 069e3d9f8bf6859223d35d8e14e97d9e0fb03848 | [
"Apache-2.0"
] | null | null | null | lib/fomantic_ui/views/error_view.ex | easink/fomantic_ui | 069e3d9f8bf6859223d35d8e14e97d9e0fb03848 | [
"Apache-2.0"
] | null | null | null | defmodule FomanticUI.ErrorView do
use FomanticUI, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message from... | 31.470588 | 83 | 0.719626 |
4af53d98851043e91455fff5e99ba64131615d70 | 5,742 | ex | Elixir | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_account_report.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_account_report.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/local_services/lib/google_api/local_services/v1/model/google_ads_homeservices_localservices_v1_account_report.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... | 54.169811 | 292 | 0.718739 |
4af582b094fbe226aa5b0e61e51befbbba8712ba | 1,910 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/iam_policy_analysis_state.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/iam_policy_analysis_state.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/iam_policy_analysis_state.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... | 38.2 | 347 | 0.739267 |
4af5a1bdd6c2d16bf5352e8489dfa8ef4e6c10b6 | 1,805 | ex | Elixir | test/support/fake_swoosh_mailer.ex | krainboltgreene/boom | 50be3bfe78708e52be6ba3aec3982dcd71bdabb2 | [
"MIT"
] | null | null | null | test/support/fake_swoosh_mailer.ex | krainboltgreene/boom | 50be3bfe78708e52be6ba3aec3982dcd71bdabb2 | [
"MIT"
] | null | null | null | test/support/fake_swoosh_mailer.ex | krainboltgreene/boom | 50be3bfe78708e52be6ba3aec3982dcd71bdabb2 | [
"MIT"
] | null | null | null | defmodule Support.SwooshFakeMailer do
@moduledoc false
# Overrides the Swoosh `deliver!/1` function.
#
# Instead of sending an email it puts the fields in a mailbox so they can be
# received in the test.
#
# Swoosh does include Swoosh.Adapters.Test, but its behaviour seems unreliable
# in our case beca... | 39.23913 | 80 | 0.686981 |
4af5b6c79123a86840b6d6c2aa43b0262331f41e | 300 | ex | Elixir | lib/small_url_web/views/link_analytics_view.ex | AlexJuca/small-url | 25f4828ac3566a435b15e6b9581e1e1e508d6650 | [
"Apache-2.0"
] | 7 | 2021-06-28T14:43:10.000Z | 2021-09-21T21:00:30.000Z | lib/small_url_web/views/link_analytics_view.ex | AlexJuca/small-url | 25f4828ac3566a435b15e6b9581e1e1e508d6650 | [
"Apache-2.0"
] | 2 | 2021-06-30T21:43:06.000Z | 2021-07-01T16:40:10.000Z | lib/small_url_web/views/link_analytics_view.ex | AlexJuca/small-url | 25f4828ac3566a435b15e6b9581e1e1e508d6650 | [
"Apache-2.0"
] | null | null | null | defmodule SmallUrlWeb.LinkAnalyticsView do
use SmallUrlWeb, :view
def render("analytics.json", %{link_info: link}) do
%{
:clicks => link.clicks,
:last_click_date => link.last_click_date,
:last_30_days => [Enum.map(link.last_30_days, fn click -> click end)]
}
end
end
| 25 | 75 | 0.666667 |
4af5bd686d3e8d7f1a61d35f2d7535a66ec69851 | 1,706 | ex | Elixir | lib/exhal/collection.ex | comverge/exhal | baae4bfc26ac3a48c630d8f35f8da44d8084d9f4 | [
"MIT"
] | null | null | null | lib/exhal/collection.ex | comverge/exhal | baae4bfc26ac3a48c630d8f35f8da44d8084d9f4 | [
"MIT"
] | null | null | null | lib/exhal/collection.ex | comverge/exhal | baae4bfc26ac3a48c630d8f35f8da44d8084d9f4 | [
"MIT"
] | null | null | null | defmodule ExHal.Collection do
@moduledoc """
Utility functions for dealing with RFC 6473 collections
"""
alias ExHal.Document
alias ExHal.ResponseHeader
@doc """
Returns a stream that iterates over the collection represented by `a_doc`.
Iteration halts when there is no further `next` link to follow.
... | 27.967213 | 91 | 0.609027 |
4af5c1f65956c94b624fa64ea3997460dc94e45a | 1,408 | ex | Elixir | lib/juntos/accounts/repos/authorization_repo.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 1 | 2019-11-15T15:39:24.000Z | 2019-11-15T15:39:24.000Z | lib/juntos/accounts/repos/authorization_repo.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | 166 | 2020-06-30T16:07:48.000Z | 2021-11-25T00:02:24.000Z | lib/juntos/accounts/repos/authorization_repo.ex | elixir-berlin/juntos | 64dd05888f357cf0c74da11d1eda69bab7f38e95 | [
"MIT"
] | null | null | null | defmodule Juntos.Accounts.AuthorizationRepo do
@moduledoc """
Collection of queries for `Juntos.Accounts.Authorization` schema
"""
import Ecto.Query
alias Juntos.Accounts.Authorization
alias Juntos.Repo
@doc """
Creates an authorization
"""
def create(params) do
%Authorization{}
|> Authoriz... | 23.466667 | 85 | 0.651278 |
4af5d387932257b9be902b019d6ac8d1369b5473 | 144 | ex | Elixir | server/web/controllers/APIController.ex | nii236/niiapi | 8d574cc95743dddb731ff8a2b704e14f063b24a5 | [
"WTFPL"
] | null | null | null | server/web/controllers/APIController.ex | nii236/niiapi | 8d574cc95743dddb731ff8a2b704e14f063b24a5 | [
"WTFPL"
] | null | null | null | server/web/controllers/APIController.ex | nii236/niiapi | 8d574cc95743dddb731ff8a2b704e14f063b24a5 | [
"WTFPL"
] | null | null | null | defmodule NiiAPI.APIController do
use NiiAPI.Web, :controller
def index(conn, _params) do
conn
|> json(%{success: true})
end
end
| 16 | 33 | 0.680556 |
4af5ea3962f5131aea319274dc6b2bccedaefae1 | 563 | ex | Elixir | test/support/noop_runtime.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | test/support/noop_runtime.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | test/support/noop_runtime.ex | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.NoopRuntime do
@moduledoc false
# A runtime that doesn't do any actual evaluation,
# thus not requiring any underlying resources.
defstruct []
def new(), do: %__MODULE__{}
defimpl Livebook.Runtime do
def connect(_), do: :ok
def disconnect(_), do: :ok
def evaluate_c... | 26.809524 | 67 | 0.655417 |
4af5ed82c03340bc85093344b744fe59596e3f26 | 284 | exs | Elixir | test/options_tracker_web/views/layout_view_test.exs | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 12 | 2020-06-25T17:25:15.000Z | 2021-09-30T20:13:33.000Z | test/options_tracker_web/views/layout_view_test.exs | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 5 | 2020-08-05T03:12:31.000Z | 2021-07-15T04:59:03.000Z | test/options_tracker_web/views/layout_view_test.exs | mgwidmann/options_tracker | 5520f88a9a5873842a63a23d4bcc5da82a51feba | [
"MIT"
] | 2 | 2021-07-03T17:20:15.000Z | 2021-09-01T15:38:58.000Z | defmodule OptionsTrackerWeb.LayoutViewTest do
use OptionsTrackerWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 31.555556 | 65 | 0.778169 |
4af6150576ba3028af2ecbe54837ce0d473e32c8 | 1,019 | ex | Elixir | test/support/channel_case.ex | SylvainBigonneau/FindAFluff | c88c18cc085254e15445312f41b06b826449b251 | [
"MIT"
] | 1 | 2018-06-03T15:37:23.000Z | 2018-06-03T15:37:23.000Z | test/support/channel_case.ex | SylvainBigonneau/FindAFluff | c88c18cc085254e15445312f41b06b826449b251 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | SylvainBigonneau/FindAFluff | c88c18cc085254e15445312f41b06b826449b251 | [
"MIT"
] | null | null | null | defmodule FindAFluffWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it canno... | 23.159091 | 72 | 0.706575 |
4af64cb10e9ca460462db19749f598cd13464d76 | 29,129 | ex | Elixir | apps/aecore/lib/aecore/sync/sync.ex | gspasov/dogs-blockchain | 884c14cfc98de2c3793a204da069630d090bbc90 | [
"0BSD"
] | null | null | null | apps/aecore/lib/aecore/sync/sync.ex | gspasov/dogs-blockchain | 884c14cfc98de2c3793a204da069630d090bbc90 | [
"0BSD"
] | 2 | 2018-10-01T16:46:26.000Z | 2018-10-01T19:45:42.000Z | apps/aecore/lib/aecore/sync/sync.ex | gspasov/dogs-blockchain | 884c14cfc98de2c3793a204da069630d090bbc90 | [
"0BSD"
] | null | null | null | defmodule Aecore.Sync.Sync do
@moduledoc """
Handle the Sync functionality between different nodes.
Syncing with every new node starts a worker that it's going to execute its job.
In other words sync until the biggest remote hash,
starting from the agreed height -> the point at which we agree on the header ha... | 32.619261 | 106 | 0.625837 |
4af66239027ebd24d6be1e736a83f854d5319e47 | 121 | exs | Elixir | test/resx/resource/reference.integrity_test.exs | ScrimpyCat/Resx | b7ed996a6202ecaa6e411ebd989198e16d97719d | [
"BSD-2-Clause"
] | null | null | null | test/resx/resource/reference.integrity_test.exs | ScrimpyCat/Resx | b7ed996a6202ecaa6e411ebd989198e16d97719d | [
"BSD-2-Clause"
] | null | null | null | test/resx/resource/reference.integrity_test.exs | ScrimpyCat/Resx | b7ed996a6202ecaa6e411ebd989198e16d97719d | [
"BSD-2-Clause"
] | null | null | null | defmodule Resx.Resource.Reference.IntegrityTest do
use ExUnit.Case
doctest Resx.Resource.Reference.Integrity
end
| 24.2 | 50 | 0.809917 |
4af66e5fc2682a6f86d85bf7f02b362c44a34184 | 1,369 | ex | Elixir | lib/web_driver_client/w3c_wire_protocol_client/commands/fetch_server_status.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | lib/web_driver_client/w3c_wire_protocol_client/commands/fetch_server_status.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | lib/web_driver_client/w3c_wire_protocol_client/commands/fetch_server_status.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.W3CWireProtocolClient.Commands.FetchServerStatus do
@moduledoc false
alias WebDriverClient.Config
alias WebDriverClient.ConnectionError
alias WebDriverClient.HTTPResponse
alias WebDriverClient.W3CWireProtocolClient.ResponseParser
alias WebDriverClient.W3CWireProtocolClient.ServerS... | 37 | 94 | 0.741417 |
4af6a5b95ec41c485bf09e8e5d3dc5a00c3fbd2b | 3,131 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/my_sql_replica_configuration.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/my_sql_replica_configuration.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/my_sql_replica_configuration.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... | 47.439394 | 396 | 0.752795 |
4af6b5325fa1fce0628c466b31709e5cc4c3b68c | 59,385 | ex | Elixir | lib/google_api/storage/v1/api/objects.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/api/objects.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | null | null | null | lib/google_api/storage/v1/api/objects.ex | albert-io/elixir-google-api-storage | 302144ec2c1261104d1a20942482796b2fc0905f | [
"Apache-2.0"
] | 1 | 2019-04-17T05:52:55.000Z | 2019-04-17T05:52:55.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... | 60.228195 | 520 | 0.703915 |
4af6c54618cbb38a9af560690b15d9af9374b6b2 | 1,832 | exs | Elixir | mix.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | mix.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | 2 | 2021-03-10T17:42:11.000Z | 2021-05-11T13:38:31.000Z | mix.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | defmodule SdoPhoenix.MixProject do
use Mix.Project
def project do
[
app: :sdo_phoenix,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases... | 27.757576 | 84 | 0.581878 |
4af6e619ba7e8949636325a3761cdf52301d2ac2 | 1,924 | ex | Elixir | lib/day03.ex | Lakret/aoc2018 | a09bfe7b9bc5faaada4a411d4d666f0626cd6562 | [
"MIT"
] | 1 | 2021-04-21T16:16:59.000Z | 2021-04-21T16:16:59.000Z | lib/day03.ex | Lakret/aoc2018 | a09bfe7b9bc5faaada4a411d4d666f0626cd6562 | [
"MIT"
] | null | null | null | lib/day03.ex | Lakret/aoc2018 | a09bfe7b9bc5faaada4a411d4d666f0626cd6562 | [
"MIT"
] | null | null | null | defmodule Day03 do
use Aoc2018
defmodule Claim do
@enforce_keys [:id, :left, :top, :width, :height]
defstruct [:id, :left, :top, :width, :height]
@claim_regex ~r/#(?<id>\d+) @ (?<left>\d+),(?<top>\d+): (?<width>\d+)x(?<height>\d+)/
def parse_claim(claim) do
with captured = %{} <- Regex.name... | 30.0625 | 105 | 0.592516 |
4af74207ca0ac87b316e12a41e014cda52b09ac3 | 2,433 | ex | Elixir | apps/neoprice/lib/neoprice/cryptocompare/api.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2021-02-23T02:55:26.000Z | 2021-02-23T02:55:26.000Z | apps/neoprice/lib/neoprice/cryptocompare/api.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | null | null | null | apps/neoprice/lib/neoprice/cryptocompare/api.ex | cc1776/neo-scan | 49fc9256f5c7ed4e0a7cd43513b27ba5d9d4f287 | [
"MIT"
] | 1 | 2019-10-16T21:37:31.000Z | 2019-10-16T21:37:31.000Z | defmodule Neoprice.Cryptocompare.Api do
@moduledoc false
require Logger
@url "min-api.cryptocompare.com"
@app_name Application.get_env(:neo_price, :app_name, "neoscan")
def last_price(from_symbol, to_symbol) do
params = "fsym=#{from_symbol}&tsyms=#{to_symbol}"
url = "https://" <> @url <> "/data/pri... | 26.736264 | 84 | 0.593506 |
4af74737417fd730335f4165abf0d38ee9060d84 | 1,297 | ex | Elixir | lib/webapp_web/controllers/admin/ip_pool_controller.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 12 | 2019-07-02T14:30:06.000Z | 2022-03-12T08:22:18.000Z | lib/webapp_web/controllers/admin/ip_pool_controller.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | 9 | 2020-03-16T20:10:50.000Z | 2021-06-17T17:45:44.000Z | lib/webapp_web/controllers/admin/ip_pool_controller.ex | runhyve/webapp | 434b074f98c1ebac657b56062c1c1a54e683dea1 | [
"BSD-2-Clause"
] | null | null | null | defmodule WebappWeb.Admin.Ip_poolController do
use WebappWeb, :controller
alias Webapp.{
Networks,
Networks.Ip_pool,
Networks.Ipv4
}
plug :load_and_authorize_resource,
model: Ip_pool,
non_id_actions: [:index, :create, :new],
preload: [:network, ipv4: {Ipv4.preload_ordered, :machine}]
... | 28.195652 | 74 | 0.673092 |
4af767e682bd856c8d05a12846fb491fb30d5614 | 107 | ex | Elixir | lib/ash_json_api/paginator.ex | TheFirstAvenger/ash_json_api | 763b63f6e9a4a1fbb9d83229f085a1e37c41d659 | [
"MIT"
] | null | null | null | lib/ash_json_api/paginator.ex | TheFirstAvenger/ash_json_api | 763b63f6e9a4a1fbb9d83229f085a1e37c41d659 | [
"MIT"
] | null | null | null | lib/ash_json_api/paginator.ex | TheFirstAvenger/ash_json_api | 763b63f6e9a4a1fbb9d83229f085a1e37c41d659 | [
"MIT"
] | null | null | null | defmodule AshJsonApi.Paginator do
@moduledoc false
defstruct [:limit, :results, :total, offset: 0]
end
| 21.4 | 49 | 0.747664 |
4af76e32084b798b9389c4aa7ccba402e744723a | 577 | exs | Elixir | implements/word-count/example.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | implements/word-count/example.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | 1 | 2018-06-19T18:59:41.000Z | 2018-06-19T18:59:41.000Z | implements/word-count/example.exs | MickeyOoh/Exercises | 3b34e7fdab4a09e0269d20c68531b4fb75bb7f16 | [
"MIT"
] | null | null | null | defmodule Words do
@ascii_punctuation ~r/!|"|\#|\$|%|&|'|\(|\)|\*|\+|,|\.|\/|:|;|<|=|>|\?|@|\[|\\|]|\^|_|`|\{|\||}|~/
def count(sentence) do
sentence
|> String.downcase()
|> remove_punctuation
|> to_words
|> summarize
end
defp remove_punctuation(string) do
String.replace(string, @ascii... | 23.08 | 100 | 0.580589 |
4af7874526d2bc7fdb244c4939a753fd9cb03449 | 3,720 | ex | Elixir | lib/battle_box/game.ex | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | lib/battle_box/game.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | lib/battle_box/game.ex | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBox.Game do
defmodule GameType do
use Ecto.Type
import BattleBox.InstalledGames
def type, do: :string
for game <- installed_games() do
def cast(unquote("#{game.name}")), do: {:ok, unquote(game)}
def cast(unquote(game)), do: {:ok, unquote(game)}
def load(unquote("#{g... | 24.966443 | 84 | 0.627957 |
4af7ae8042428f5d99c329d9582c6382bf11a51f | 1,801 | ex | Elixir | lib/autox.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | null | null | null | lib/autox.ex | autoxjs/autox-phoenix | 6446f4487e3af28955f6560973cff6add34be4d4 | [
"MIT"
] | 20 | 2016-04-05T06:28:58.000Z | 2016-05-12T15:45:37.000Z | lib/autox.ex | foxnewsnetwork/autox | 66ea3f0f7ba8b3f9e910984a2ed3cdf0ef5ef29a | [
"MIT"
] | null | null | null | defmodule Autox do
@moduledoc """
Use autox to rapidly scaffold and build most of the back-end and data-side
front-end of an emberjs on phoenix application
## HowTo:
Requirements: you'll need both phoenix and ember-cli installed
Step 1. create an ember-addon
```sh
ember addon backend
cd backend
``... | 26.485294 | 92 | 0.711827 |
4af7ea3d99a169300c8309b15088324b6b30f2c7 | 2,294 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/dropped_labels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/dropped_labels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/dropped_labels.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 47.791667 | 800 | 0.767219 |
4af837b560fd4a64f571d7c8e763643c49d97653 | 1,945 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/get_policy_options.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/get_policy_options.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/get_policy_options.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... | 41.382979 | 541 | 0.767095 |
4af8463642164424d34fb60d6323f127629d2e39 | 2,929 | ex | Elixir | lib/docusign/model/tab_group.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/tab_group.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/tab_group.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.TabGroup do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:childTabLabels,
:childTabLabelsMetadata,
... | 37.551282 | 97 | 0.696825 |
4af85546862fd13bbaf61784e0cb6411acc266c1 | 173 | exs | Elixir | test/test_helper.exs | clangley/cronex | 32992311abb1f444dcd86f75cc4d8ad41dbb2b0a | [
"MIT"
] | 45 | 2016-11-03T11:00:33.000Z | 2021-02-03T14:59:58.000Z | test/test_helper.exs | clangley/cronex | 32992311abb1f444dcd86f75cc4d8ad41dbb2b0a | [
"MIT"
] | 19 | 2017-09-25T17:13:00.000Z | 2020-07-08T22:53:24.000Z | test/test_helper.exs | clangley/cronex | 32992311abb1f444dcd86f75cc4d8ad41dbb2b0a | [
"MIT"
] | 18 | 2017-01-20T22:00:45.000Z | 2021-06-16T12:47:53.000Z | Cronex.Test.DateTime.start_link()
Application.put_env(:cronex, :date_time_provider, Cronex.Test.DateTime)
Application.put_env(:cronex, :ping_interval, 100)
ExUnit.start()
| 24.714286 | 71 | 0.803468 |
4af85f0ac2ed2b5c46d991cef3f59718b1a4e26c | 1,182 | ex | Elixir | elixir/test/support/factory.ex | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/test/support/factory.ex | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | elixir/test/support/factory.ex | kellyfelkins/web-homework | b204866bd0a6908efa05ef8f5772b9fa926dbf02 | [
"MIT"
] | null | null | null | defmodule Homework.Factory do
use ExMachina.Ecto, repo: Homework.Repo
def transaction_factory do
credit = Enum.random([true, false])
debit = !credit
merchant = build(:merchant)
user = build(:user)
company = build(:company)
%Homework.Transactions.Transaction{
amount: Enum.random(1..10... | 24.122449 | 70 | 0.659052 |
4af8781ab83afd96bef35336f5959f4a42a9ed58 | 3,549 | exs | Elixir | apps/heroes_server/test/game/board_test.exs | miquecg/heroes-board-game | 2e8745c7577060a7fc80ad1e4c38c2c507a8c488 | [
"MIT"
] | 2 | 2020-04-09T06:42:15.000Z | 2022-03-03T15:52:38.000Z | apps/heroes_server/test/game/board_test.exs | miquecg/heroes-board-game | 2e8745c7577060a7fc80ad1e4c38c2c507a8c488 | [
"MIT"
] | 5 | 2020-04-28T16:05:46.000Z | 2021-01-03T14:08:19.000Z | apps/heroes_server/test/game/board_test.exs | miquecg/heroes-board-game | 2e8745c7577060a7fc80ad1e4c38c2c507a8c488 | [
"MIT"
] | null | null | null | defmodule Game.BoardTest do
use ExUnit.Case, async: true
alias Game.Board
alias GameError.BadSize
@board_3x2 GameBoards.Test3x2
@board_4x3_w5 GameBoards.Test4x3w5
@board_4x4 GameBoards.Test4x4
@board_4x4_w2 GameBoards.Test4x4w2
test "Board struct creation with required and optional parameters" do
... | 25.35 | 89 | 0.493378 |
4af89964e245073c68023e9ee76d8a6a74cf0d03 | 1,542 | ex | Elixir | lib/requiem/connection_state.ex | 5ebec/requiem | dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a | [
"MIT"
] | 37 | 2021-01-06T05:47:49.000Z | 2022-03-24T11:07:00.000Z | lib/requiem/connection_state.ex | 5ebec/requiem | dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a | [
"MIT"
] | null | null | null | lib/requiem/connection_state.ex | 5ebec/requiem | dee0638c9c68e13b194fd8e45c9e4fd1b4e3207a | [
"MIT"
] | 2 | 2021-01-06T06:28:44.000Z | 2022-03-07T10:04:34.000Z | defmodule Requiem.ConnectionState do
@type t :: %__MODULE__{
address: Requiem.Address.t(),
dcid: binary,
scid: binary,
odcid: binary,
stream_id_pod: non_neg_integer,
trapping_pids: MapSet.t()
}
defstruct address: nil,
dcid: "",
... | 28.036364 | 77 | 0.614137 |
4af89b97d21659534fd8fcbdf2ff8c160fdb9808 | 9,355 | exs | Elixir | test/integration_component_test.exs | feng19/elixir_wechat | 5ae052476f27abf85da484b902347042c097b150 | [
"MIT"
] | null | null | null | test/integration_component_test.exs | feng19/elixir_wechat | 5ae052476f27abf85da484b902347042c097b150 | [
"MIT"
] | null | null | null | test/integration_component_test.exs | feng19/elixir_wechat | 5ae052476f27abf85da484b902347042c097b150 | [
"MIT"
] | null | null | null | defmodule WeChat.Component.IntegrationTest do
use ExUnit.Case
@component_appid System.fetch_env!("TEST_COMPONENT_APPID")
@authorizer_appid System.fetch_env!("TEST_COMMON_APPID")
@test_openid System.fetch_env!("TEST_OPENID")
defp get_user_info(openid \\ @test_openid) do
{:ok, response} =
TestCompon... | 31.392617 | 179 | 0.659006 |
4af8cd5b49b75c115418b9e6ff87b3c9c444d91d | 945 | ex | Elixir | test/support/channel_case.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 15 | 2018-12-26T10:31:16.000Z | 2020-12-01T09:27:01.000Z | test/support/channel_case.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 267 | 2018-12-26T07:46:17.000Z | 2020-04-04T17:05:47.000Z | test/support/channel_case.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 1 | 2019-07-12T13:53:25.000Z | 2019-07-12T13:53:25.000Z | defmodule Co2OffsetWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts... | 23.625 | 59 | 0.714286 |
4af8d36ac590836e02dda75d3deaa5e8dd15344a | 183 | exs | Elixir | config/dev.exs | pdgonzalez872/nerves_hub_cli | 0554bcb5931dee5effccd4359129ca7ee704884e | [
"Apache-2.0"
] | null | null | null | config/dev.exs | pdgonzalez872/nerves_hub_cli | 0554bcb5931dee5effccd4359129ca7ee704884e | [
"Apache-2.0"
] | null | null | null | config/dev.exs | pdgonzalez872/nerves_hub_cli | 0554bcb5931dee5effccd4359129ca7ee704884e | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :nerves_hub_cli,
home_dir: Path.expand(".nerves-hub"),
ca_certs: Path.expand("test/fixtures")
config :nerves_hub_user_api,
host: "0.0.0.0",
port: 4002
| 18.3 | 40 | 0.710383 |
4af8ea2c52403e6fbc8c322d844898fe0a2364cb | 994 | exs | Elixir | apps/hefty/priv/repo/migrations/20190430104530_create_trade_events.exs | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | apps/hefty/priv/repo/migrations/20190430104530_create_trade_events.exs | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | apps/hefty/priv/repo/migrations/20190430104530_create_trade_events.exs | Soimil/Igthorn | 6187a94d7a75a28f3c42b357fa7cc211cfe4bafe | [
"MIT"
] | null | null | null | defmodule Hefty.Repo.Migrations.CreateTradeEvents do
use Ecto.Migration
# State as of 30/04
# {
# "e": "trade", // Event type
# "E": 123456789, // Event time
# "s": "BNBBTC", // Symbol
# "t": 12345, // Trade ID
# "p": "0.001", // Price
# "q": "100", // Quantity
... | 26.864865 | 57 | 0.531187 |
4af909b75829d77c6b39561fa0c8fde4adbf542f | 3,105 | ex | Elixir | clients/content/lib/google_api/content/v21/model/pos_sale.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pos_sale.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/pos_sale.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... | 41.959459 | 196 | 0.673752 |
4af90f618ecef5b22dcc993de309a75541eb7ed8 | 2,051 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/model/check_upgrade_response.ex | read-with-simbi/elixir-google-api | 2f4cefa653dff06c59391189fc7783ca096c51e5 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/check_upgrade_response.ex | read-with-simbi/elixir-google-api | 2f4cefa653dff06c59391189fc7783ca096c51e5 | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1beta1/model/check_upgrade_response.ex | read-with-simbi/elixir-google-api | 2f4cefa653dff06c59391189fc7783ca096c51e5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.698113 | 180 | 0.740614 |
4af97ed729f0fed80c64e42b4bf8ce99918ec7a7 | 7,415 | ex | Elixir | lib/expo/plural_forms/parser.ex | jshmrtn/expo | 98459ed26833c1b05348bb80a66e78fc6d2e488d | [
"Apache-2.0"
] | 2 | 2022-03-31T21:12:35.000Z | 2022-03-31T21:44:59.000Z | lib/expo/plural_forms/parser.ex | jshmrtn/expo | 98459ed26833c1b05348bb80a66e78fc6d2e488d | [
"Apache-2.0"
] | 13 | 2022-03-30T17:41:25.000Z | 2022-03-31T23:35:49.000Z | lib/expo/plural_forms/parser.ex | jshmrtn/expo | 98459ed26833c1b05348bb80a66e78fc6d2e488d | [
"Apache-2.0"
] | null | null | null | # credo:disable-for-this-file Credo.Check.Refactor.PipeChainStart
defmodule Expo.PluralForms.Parser do
@moduledoc false
# This parses is extrapolated from prior work of Stefan Lapels:
# https://github.com/slapers/ex_sel
import NimbleParsec
alias Expo.PluralForms
#
# Basics
#
optional_whitespace =... | 30.142276 | 139 | 0.573297 |
4af9857b8fb28f8b0d821250b138f5d26c95838e | 212 | exs | Elixir | web_finngen_r8/priv/repo/migrations/20190322091816_create_icd10s.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/priv/repo/migrations/20190322091816_create_icd10s.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | web_finngen_r8/priv/repo/migrations/20190322091816_create_icd10s.exs | vincent-octo/risteys | 5bb1e70b78988770048b91b42fad025faf98d84a | [
"MIT"
] | null | null | null | defmodule Risteys.Repo.Migrations.CreateIcd10s do
use Ecto.Migration
def change do
create table(:icd10s) do
add :code, :string
add :description, :string
timestamps()
end
end
end
| 16.307692 | 49 | 0.669811 |
4af99ad27613c4bfaf476b74f679add5095a6262 | 16,408 | ex | Elixir | lib/serum/plugin.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | null | null | null | lib/serum/plugin.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | null | null | null | lib/serum/plugin.ex | afontaine/Serum | f2c410d086c235332e047afdc6a3c6e6c6f6fca8 | [
"MIT"
] | null | null | null | defmodule Serum.Plugin do
@moduledoc """
A behaviour that all Serum plugin module must implement.
This module allows experienced Serum users and developers to make their own
Serum plugins which can extend the functionality of Serum.
A Serum plugin can...
- Alter contents of input or output files,
- Exe... | 27.346667 | 97 | 0.64822 |
4af9c5a36ec1f2cdb743341c8bfd09adee9529ab | 64 | ex | Elixir | lib/reserva_web/views/subject_view.ex | AminArria/reserva | 13faef72927aeb84d456f080d65249b8ef50180e | [
"MIT"
] | null | null | null | lib/reserva_web/views/subject_view.ex | AminArria/reserva | 13faef72927aeb84d456f080d65249b8ef50180e | [
"MIT"
] | 2 | 2021-03-09T00:49:12.000Z | 2021-05-08T03:13:05.000Z | lib/reserva_web/views/subject_view.ex | AminArria/reserva | 13faef72927aeb84d456f080d65249b8ef50180e | [
"MIT"
] | null | null | null | defmodule ReservaWeb.SubjectView do
use ReservaWeb, :view
end
| 16 | 35 | 0.8125 |
4afa2420401d9870e55ad41471af2ab725416231 | 1,096 | ex | Elixir | github_events/lib/github_events/cli.ex | dingziran/learn_elixir | 6b1c608a566e66e250c8c707fc0e4ae1572efaa2 | [
"MIT"
] | 1 | 2015-11-02T23:31:36.000Z | 2015-11-02T23:31:36.000Z | github_events/lib/github_events/cli.ex | dingziran/learn_elixir | 6b1c608a566e66e250c8c707fc0e4ae1572efaa2 | [
"MIT"
] | null | null | null | github_events/lib/github_events/cli.ex | dingziran/learn_elixir | 6b1c608a566e66e250c8c707fc0e4ae1572efaa2 | [
"MIT"
] | null | null | null | defmodule Github_events.CLI do
@default_count 4
@moduledoc """
Handle the command line parsing and the dispatch to the various functions that end up generating a table of the last _n_ events in a github project
"""
def run(argv) do
argv
|> parse_args
|> process
end
def process(:help) do
IO.puts... | 26.731707 | 148 | 0.657847 |
4afa3fc1c4fc16a71a54278d2918502cadb0392b | 2,024 | exs | Elixir | config/prod.exs | paulanthonywilson/binary-websockets-example | 8aa013a8e2050ee2aaaf96de5c41c15cf1a06521 | [
"MIT"
] | 4 | 2021-02-22T04:05:29.000Z | 2022-01-25T18:03:04.000Z | config/prod.exs | paulanthonywilson/binary-websockets-example | 8aa013a8e2050ee2aaaf96de5c41c15cf1a06521 | [
"MIT"
] | null | null | null | config/prod.exs | paulanthonywilson/binary-websockets-example | 8aa013a8e2050ee2aaaf96de5c41c15cf1a06521 | [
"MIT"
] | 1 | 2021-12-16T15:45:43.000Z | 2021-12-16T15:45:43.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.142857 | 66 | 0.716403 |
4afac3687425b800234230e957f57cc6966404c2 | 135 | exs | Elixir | apps/bank/config/config.exs | gusaiani/acme-bank-clone | 4ebd638c56a3f5360bccff68aa6d321bb25bf2cd | [
"MIT"
] | 776 | 2016-07-16T14:24:37.000Z | 2022-03-07T17:05:11.000Z | apps/bank/config/config.exs | fercho1224/devops | 81a352d857e190963d9f045d73c91f3c36a12064 | [
"MIT"
] | 19 | 2016-09-03T15:06:57.000Z | 2021-12-10T10:04:05.000Z | apps/bank/config/config.exs | fercho1224/devops | 81a352d857e190963d9f045d73c91f3c36a12064 | [
"MIT"
] | 130 | 2016-09-03T19:44:27.000Z | 2022-01-16T12:27:54.000Z | use Mix.Config
## Logger
config :logger, level: :debug
## Repo
config :bank, ecto_repos: [Bank.Repo]
import_config "#{Mix.env}.exs"
| 13.5 | 37 | 0.696296 |
4afac4687c9f1227107c5c98edd5e520caedc911 | 93 | exs | Elixir | apps/gingerbread_shop_api/test/gingerbread_shop.api_test.exs | ScrimpyCat/gingerbread_shop | ce01f5599fd1d39c79df461373c8f4f73bc144f2 | [
"BSD-2-Clause"
] | null | null | null | apps/gingerbread_shop_api/test/gingerbread_shop.api_test.exs | ScrimpyCat/gingerbread_shop | ce01f5599fd1d39c79df461373c8f4f73bc144f2 | [
"BSD-2-Clause"
] | null | null | null | apps/gingerbread_shop_api/test/gingerbread_shop.api_test.exs | ScrimpyCat/gingerbread_shop | ce01f5599fd1d39c79df461373c8f4f73bc144f2 | [
"BSD-2-Clause"
] | null | null | null | defmodule GingerbreadShop.APITest do
use ExUnit.Case
doctest GingerbreadShop.API
end
| 18.6 | 36 | 0.795699 |
4afadd96d8807e5de6e1c4705cad963a5c780aee | 159 | ex | Elixir | lib/oembed/resources/rich.ex | byoungdale/elixir-oembed | 4ac75443242fea8094e9633f7656135fa42fab5f | [
"MIT"
] | 35 | 2017-02-28T12:38:02.000Z | 2022-02-08T06:00:26.000Z | lib/oembed/resources/rich.ex | byoungdale/elixir-oembed | 4ac75443242fea8094e9633f7656135fa42fab5f | [
"MIT"
] | 27 | 2017-02-25T18:04:33.000Z | 2021-12-23T12:42:51.000Z | lib/oembed/resources/rich.ex | byoungdale/elixir-oembed | 4ac75443242fea8094e9633f7656135fa42fab5f | [
"MIT"
] | 11 | 2017-05-25T22:41:06.000Z | 2021-07-09T02:30:18.000Z | defmodule OEmbed.Rich do
@moduledoc """
oEmbed Rich resource.
"""
@keys [type: "rich", html: nil, width: nil, height: nil]
use OEmbed.Resource
end
| 15.9 | 58 | 0.654088 |
4afafb24d18fbec47cf3fb96adad1a71ed9b6320 | 86 | exs | Elixir | test/views/layout_view_test.exs | davidgrupp/Bucket-Island | 674bf0f8029a22b56fc245d8927561dca2d3cd0a | [
"Apache-2.0"
] | 1 | 2017-09-03T17:41:28.000Z | 2017-09-03T17:41:28.000Z | test/views/layout_view_test.exs | davidgrupp/Bucket-Island | 674bf0f8029a22b56fc245d8927561dca2d3cd0a | [
"Apache-2.0"
] | null | null | null | test/views/layout_view_test.exs | davidgrupp/Bucket-Island | 674bf0f8029a22b56fc245d8927561dca2d3cd0a | [
"Apache-2.0"
] | null | null | null | defmodule BucketIsland.LayoutViewTest do
use BucketIsland.ConnCase, async: true
end
| 21.5 | 40 | 0.837209 |
4afb01bc517e6f5ae8f2187d9410b6aacce4b611 | 1,676 | exs | Elixir | test/test_helper.exs | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | test/test_helper.exs | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | test/test_helper.exs | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | Application.put_env(:phoenix_live_dashboard, Phoenix.LiveDashboardTest.Endpoint,
url: [host: "localhost", port: 4000],
secret_key_base: "Hu4qQN3iKzTV4fJxhorPQlA/osH9fAMtbtjVS58PFgfw3ja5Z18Q/WSNR9wP4OfW",
live_view: [signing_salt: "hMegieSe"],
render_errors: [view: Phoenix.LiveDashboardTest.ErrorView],
check_o... | 26.603175 | 86 | 0.765513 |
4afb271bf0cd498a1ba6654fb8cdee187a687308 | 1,483 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/gcs_source.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/gcs_source.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/gcs_source.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... | 31.553191 | 185 | 0.733648 |
4afb31c8a05fda16e91d7cb4ec45bc81bbd4c84b | 3,067 | ex | Elixir | lib/mix/mix_utils.ex | dipth/coherence | 64ad450c5d8d020172875c4bf52f2bbdaa6e59de | [
"MIT"
] | null | null | null | lib/mix/mix_utils.ex | dipth/coherence | 64ad450c5d8d020172875c4bf52f2bbdaa6e59de | [
"MIT"
] | null | null | null | lib/mix/mix_utils.ex | dipth/coherence | 64ad450c5d8d020172875c4bf52f2bbdaa6e59de | [
"MIT"
] | null | null | null | defmodule Coherence.Mix.Utils do
@moduledoc false
@dialyzer [
{:nowarn_function, raise_option_errors: 1},
]
@spec rm_dir!(String.t) :: any
def rm_dir!(dir) do
if File.dir? dir do
File.rm_rf dir
end
end
@spec rm!(String.t) :: any
def rm!(file) do
if File.exists? file do
Fil... | 24.934959 | 77 | 0.587545 |
4afb647b221b1367412fa4d507c7b1df8984079d | 1,902 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/managed_configurations_settings_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/managed_configurations_settings_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/managed_configurations_settings_list_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.964286 | 248 | 0.763933 |
4afb68d5464ebf92690b7387abe86b86a71f83cf | 936 | exs | Elixir | src/myapp/apps/services/config/config.exs | ecamacho/elixir_at_work | c8e4c604c925455b4794931c2b9c15ef3774005f | [
"MIT"
] | null | null | null | src/myapp/apps/services/config/config.exs | ecamacho/elixir_at_work | c8e4c604c925455b4794931c2b9c15ef3774005f | [
"MIT"
] | null | null | null | src/myapp/apps/services/config/config.exs | ecamacho/elixir_at_work | c8e4c604c925455b4794931c2b9c15ef3774005f | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :services,
ecto_repos: [Services.Repo]
... | 33.428571 | 86 | 0.762821 |
4afbd11647e167c165bc44a0125175f6a8d30c92 | 655 | ex | Elixir | lib/colonel_kurtz/config.ex | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | 1 | 2020-05-20T18:31:40.000Z | 2020-05-20T18:31:40.000Z | lib/colonel_kurtz/config.ex | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | 11 | 2020-05-06T13:32:43.000Z | 2020-05-15T19:18:39.000Z | lib/colonel_kurtz/config.ex | vigetlabs/colonel_kurtz_ex | ed18e447657191090c9164580948bc8288c49cc7 | [
"MIT"
] | null | null | null | defmodule ColonelKurtz.Config do
@moduledoc false
@type t :: [
block_types: module,
block_views: module
]
alias ColonelKurtz.Config
@spec fetch_config :: {:ok, Config.t()} | {:error, :missing_config}
def fetch_config do
case Application.fetch_env(:colonel_kurtz_ex, ColonelKur... | 25.192308 | 79 | 0.636641 |
4afbf2a4e909aa70e392a5cf92d165712e0c3454 | 1,670 | ex | Elixir | lib/postgres_sync_file_fdw_web.ex | floriank/postgres_sync_fiel_fdw | 729e4e709c952755d1b89c6d6e66cdc0981f8352 | [
"MIT"
] | 1 | 2018-07-16T04:22:27.000Z | 2018-07-16T04:22:27.000Z | lib/postgres_sync_file_fdw_web.ex | floriank/postgres_sync_fiel_fdw | 729e4e709c952755d1b89c6d6e66cdc0981f8352 | [
"MIT"
] | null | null | null | lib/postgres_sync_file_fdw_web.ex | floriank/postgres_sync_fiel_fdw | 729e4e709c952755d1b89c6d6e66cdc0981f8352 | [
"MIT"
] | null | null | null | defmodule PostgresSyncFileFdwWeb 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 PostgresSyncFileFdwWeb, :controller
use PostgresSyncFileFdwWeb, :view
The definitions below will be exe... | 25.692308 | 73 | 0.716766 |
4afbfc2a2e93b81b34dfc873578898948e4d2c6e | 2,239 | exs | Elixir | config/prod.exs | adamniedzielski/etag_tracker | a325a05ec48efaca67f60e1db865ba16349f0de7 | [
"MIT"
] | null | null | null | config/prod.exs | adamniedzielski/etag_tracker | a325a05ec48efaca67f60e1db865ba16349f0de7 | [
"MIT"
] | null | null | null | config/prod.exs | adamniedzielski/etag_tracker | a325a05ec48efaca67f60e1db865ba16349f0de7 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.924242 | 72 | 0.718624 |
4afc18e1f6b345067db7b20411ef1eae2431a147 | 4,224 | ex | Elixir | lib/quantum/normalizer.ex | kianmeng/quantum-core | 24997fb649d778f654c1adad0006f7ad529a1184 | [
"Apache-2.0"
] | 1,092 | 2018-03-23T02:29:33.000Z | 2022-03-30T19:17:30.000Z | lib/quantum/normalizer.ex | kianmeng/quantum-core | 24997fb649d778f654c1adad0006f7ad529a1184 | [
"Apache-2.0"
] | 168 | 2018-03-22T12:52:28.000Z | 2022-03-19T22:49:17.000Z | lib/quantum/normalizer.ex | kianmeng/quantum-core | 24997fb649d778f654c1adad0006f7ad529a1184 | [
"Apache-2.0"
] | 79 | 2018-03-22T12:50:24.000Z | 2022-03-07T08:40:50.000Z | defmodule Quantum.Normalizer do
@moduledoc false
# Normalize Config values into a `Quantum.Job`.
alias Crontab.CronExpression
alias Crontab.CronExpression.Parser, as: CronExpressionParser
alias Quantum.{
Job,
RunStrategy.NodeList
}
@type config_short_notation :: {config_schedule, config_task}
... | 32 | 89 | 0.69839 |
4afc43e3448628ea9420274767d02d24c492cff7 | 1,149 | ex | Elixir | apps/discordbot/lib/discordbot/model/message_application.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 4 | 2018-11-19T06:10:52.000Z | 2022-02-03T01:50:23.000Z | apps/discordbot/lib/discordbot/model/message_application.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | 254 | 2018-11-19T06:08:51.000Z | 2021-07-22T13:47:26.000Z | apps/discordbot/lib/discordbot/model/message_application.ex | alexweav/discordbot | 1ee138f7c42a6901ab769e2ce59a6878bf603290 | [
"MIT"
] | null | null | null | defmodule DiscordBot.Model.MessageApplication do
@derive [Poison.Encoder]
@moduledoc """
Represents message info which originated from an external application.
"""
use DiscordBot.Model.Serializable
alias DiscordBot.Model.Serializable
defstruct [
:id,
:cover_image,
:description,
:icon,
... | 18.836066 | 72 | 0.611836 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.