text:
ENV["PKG_CONFIG_PATH"] = "/Users/dc/anaconda/envs/python35/lib/pkgconfig"

using OpenCV
using Images, ImageView
using Cxx

# C++ OpenCV code
cxx"""

#include <opencv2/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>

#include <fstream>
#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <string>

using namespace std;
using namespace cv;
using namespace cv::dnn;

Net load_model(String caffe_model_txt, String caffe_model_bin) {

    Net net = dnn::readNetFromCaffe(caffe_model_txt, caffe_model_bin);
    return net;
}

void detect_objects(Mat img, Net net) {

    string CLASS_NAMES[] = {"background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor"};

    // prepare image for evaluation
    Mat scaled_image;
    resize(img, scaled_image, Size(300,300));
    scaled_image = blobFromImage(scaled_image, 0.007843, Size(300,300), Scalar(127.5, 127.5, 127.5), false);

    // run the network
    net.setInput(scaled_image, "data");
    Mat detection_out = net.forward("detection_out");
    Mat results(detection_out.size[2], detection_out.size[3], CV_32F, detection_out.ptr<float>());

    // draw bounding boxes if the probability is over a specific threshold
    float threshold = 0.5;
    for (int i = 0; i < results.rows; i++) {

        float prob = results.at<float>(i, 2);

        if (prob > threshold) {
            int class_idx = static_cast<int>(results.at<float>(i, 1));
            int xLeftBottom = static_cast<int>(results.at<float>(i, 3) * img.cols);
            int yLeftBottom = static_cast<int>(results.at<float>(i, 4) * img.rows);
            int xRightTop = static_cast<int>(results.at<float>(i, 5) * img.cols);
            int yRightTop = static_cast<int>(results.at<float>(i, 6) * img.rows);

            String label = CLASS_NAMES[class_idx] + ": " + std::to_string(prob);

            Rect bounding_box((int)xLeftBottom, (int)yLeftBottom, (int)(xRightTop - xLeftBottom), (int)(yRightTop - yLeftBottom));
            rectangle(img, bounding_box, Scalar(0, 255, 0), 2);
            putText(img, label, Point(xLeftBottom, yLeftBottom - 10), FONT_HERSHEY_SIMPLEX, 0.85, Scalar(255,255,255));
        }
    }
}

"""

# We will first download and store weights in the data folder
# source: https://github.com/opencv/opencv_extra/blob/master/testdata/dnn/download_models.py
caffemodel_path = joinpath("data", "MobileNetSSD_deploy.caffemodel")
if ~isfile(caffemodel_path) download("https://drive.google.com/uc?export=download&id=0B3gersZ2cHIxRm5PMWRoTkdHdHc", caffemodel_path) end

prototxt_path = joinpath("data", "MobileNetSSD_deploy.prototxt")
if ~isfile(prototxt_path) download("https://raw.githubusercontent.com/chuanqi305/MobileNet-SSD/master/MobileNetSSD_deploy.prototxt", prototxt_path) end

# create a bounding box around face and save results in the root folder
opencv_dnn_model = @cxx load_model(pointer(prototxt_path), pointer(caffemodel_path));

filename = joinpath(pwd(), "sample-images", "cat-3352842_640.jpg");
img_opencv = imread(filename);
@cxx detect_objects(img_opencv, opencv_dnn_model);
imwrite(joinpath(pwd(), "object-detection-1.jpg"), img_opencv)

filename = joinpath(pwd(), "sample-images", "bird-3183441_640.jpg");
img_opencv = imread(filename);
@cxx detect_objects(img_opencv, opencv_dnn_model);
imwrite(joinpath(pwd(), "object-detection-2.jpg"), img_opencv)

filename = joinpath(pwd(), "sample-images", "kittens-555822_640.jpg");
img_opencv = imread(filename);
@cxx detect_objects(img_opencv, opencv_dnn_model);
imwrite(joinpath(pwd(), "object-detection-3.jpg"), img_opencv)


text:
using Documenter, BetweenFlags

makedocs(
  sitename = "BetweenFlags.jl",
  doctest = false,
  strict = true,
  format = Documenter.HTML(
    prettyurls = get(ENV, "CI", nothing) == "true",
    canonical = "https://charleskawczynski.github.io/BetweenFlags.jl/stable/",
  ),
  clean = true,
  modules = [BetweenFlags],
  pages = Any[
  "Home" => "index.md",
  "API" => "api.md",
  ],
)

deploydocs(
           repo = "github.com/charleskawczynski/BetweenFlags.jl.git",
           target = "build",
           push_preview = true,
          )

ext: jl


text:
import HTTP
r=HTTP.request("GET","http://httpbin.org/ip";verbose=3)
println(r.status)
println(String(r.body))

max_stars_repo_name: Rratic/JuliaGuide

max_issues_repo_name: Rratic/JuliaGuide

max_forks_repo_name: Rratic/JuliaGuide


text:
#####
##### The LESbrary (so to speak)
#####

# mutable struct CaseMetaData{F, W, C, T}
#     filename :: F
#     with_wind_stress :: W
#     with_coriolis :: C
#     targets :: T
# end

# function CaseMetaData(; filename, with_wind_stress=true, with_coriolis=true, first=nothing, last=nothing, targets)
#    #targets = ...
#    metadata = CaseMetaData(filename, with_wind_stress, with_coriolis, targets)
#    return metadata
# end

# function stride_targets(metadata; stride=1)
#    first = metadata.targets[1]
#    last = metadata.targets[end]
#    new_targets = first:stride:last
#    return CaseMetaData(metadata.filename, metadata.with_wind_stress, metadata.with_coriolis, new_targets)
# end

# https://engaging-web.mit.edu/~alir/lesbrary/4DaySuite/
function FourDaySuite(directory)
   return OrderedDict(
                    "4d_free_convection" => (
                        filename = joinpath(directory, "free_convection/instantaneous_statistics.jld2"),
                        stressed = false,
                        rotating = true,
                           first = 13, # cut out the first 2 hours
                            last = nothing),

                    "4d_strong_wind" => (
                        filename = joinpath(directory, "strong_wind/instantaneous_statistics.jld2"),
                        stressed = true,
                        rotating = true,
                           first = 13,
                            last = nothing),

                    "4d_strong_wind_no_rotation" => (
                        filename = joinpath(directory, "strong_wind_no_rotation/instantaneous_statistics.jld2"),
                        stressed = true,
                        rotating = false,
                           first = 13,
                            last = nothing),

                     # This file is currently corrupted (on tartarus? on engaging?) and may need to be regenerated
                     # "4d_strong_wind_weak_cooling" => (
                     #    filename = joinpath(directory, "strong_wind_weak_cooling/instantaneous_statistics.jld2"),
                     #    stressed = true,
                     #    rotating = true,
                     #       first = 13,
                     #        last = nothing),

                     "4d_weak_wind_strong_cooling" => (
                        filename = joinpath(directory, "weak_wind_strong_cooling/instantaneous_statistics.jld2"),
                        stressed = true,
                        rotating = true,
                           first = 13,
                            last = nothing),
                 )
end

# https://engaging-web.mit.edu/~alir/lesbrary/2DaySuite/
function TwoDaySuite(directory)
      return OrderedDict(
                   "2d_free_convection" => (
                       filename = joinpath(directory, "free_convection/instantaneous_statistics.jld2"),
                       stressed = false,
                       rotating = true,
                          first = 13, # cut out the first 2 hours
                           last = nothing),

                   "2d_strong_wind" => (
                       filename = joinpath(directory, "strong_wind/instantaneous_statistics.jld2"),
                       stressed = true,
                       rotating = true,
                          first = 13,
                           last = nothing),

                   "2d_strong_wind_no_rotation" => (
                       filename = joinpath(directory, "strong_wind_no_rotation/instantaneous_statistics.jld2"),
                       stressed = true,
                       rotating = false,
                          first = 13,
                           last = nothing),

                    "2d_strong_wind_weak_cooling" => (
                       filename = joinpath(directory, "strong_wind_weak_cooling/instantaneous_statistics.jld2"),
                       stressed = true,
                       rotating = true,
                          first = 13,
                           last = nothing),

                    "2d_weak_wind_strong_cooling" => (
                       filename = joinpath(directory, "weak_wind_strong_cooling/instantaneous_statistics.jld2"),
                       stressed = true,
                       rotating = true,
                          first = 13,
                           last = nothing),
                )
end

# https://engaging-web.mit.edu/~alir/lesbrary/6DaySuite/
function SixDaySuite(directory)
   return OrderedDict(
                 "6d_free_convection" => (
                     filename = joinpath(directory, "free_convection/instantaneous_statistics.jld2"),
                     stressed = false,
                     rotating = true,
                        first = 13, # cut out the first 2 hours
                         last = nothing),

                 "6d_strong_wind" => (
                     filename = joinpath(directory, "strong_wind/instantaneous_statistics.jld2"),
                     stressed = true,
                     rotating = true,
                        first = 13,
                         last = nothing),

                 "6d_strong_wind_no_rotation" => (
                     filename = joinpath(directory, "strong_wind_no_rotation/instantaneous_statistics.jld2"),
                     stressed = true,
                     rotating = false,
                        first = 13,
                         last = nothing),

                  "6d_strong_wind_weak_cooling" => (
                     filename = joinpath(directory, "strong_wind_weak_cooling/instantaneous_statistics.jld2"),
                     stressed = true,
                     rotating = true,
                        first = 13,
                         last = nothing),

                  "6d_weak_wind_strong_cooling" => (
                     filename = joinpath(directory, "weak_wind_strong_cooling/instantaneous_statistics.jld2"),
                     stressed = true,
                     rotating = true,
                        first = 13,
                         last = nothing),
              )
end

function GeneralStrat(directory)
   return OrderedDict(
                   "general_strat_4" => (
                       filename = joinpath(directory, "general_strat_4/instantaneous_statistics.jld2"),
                       stressed = false,
                       rotating = true,
                          first = 37, # cut out the first 6 hours
                           last = 288), # 2 days -- mixed layer depth reaches about 75 meters

                   "general_strat_8" => (
                       filename = joinpath(directory, "general_strat_8/instantaneous_statistics.jld2"),
                       stressed = false,
                       rotating = true,
                          first = 13,
                           last = 648), # 4 days -- mixed layer depth reaches about 75 meters

                   "general_strat_16" => (
                       filename = joinpath(directory, "general_strat_16/instantaneous_statistics.jld2"),
                       stressed = false,
                       rotating = true,
                          first = 13,
                           last = nothing),

                    "general_strat_32" => (
                       filename = joinpath(directory, "general_strat_32/instantaneous_statistics.jld2"),
                       stressed = false,
                       rotating = true,
                          first = 13,
                           last = nothing),
                )
end


text:
using GeoPhyInv
using Test
using LinearAlgebra

# test for a arbit acoustic model
mgrid = [range(0.0, stop = 10.0, step = 0.05), range(0.0, stop = 10.0, step = 0.05)];

model = Medium(mgrid);
vpb = [2100.0, 2200.0];
rhob = [2100.0, 2300.0];
update!(model, [:vp, :rho], [vpb, rhob])
fill!(model)

nznx = prod(length.(model.mgrid))

for parameterization in [
    [:χKI, :χrhoI, :null],
    [:χKI, :null, :null],
    [:χvp, :χrho, :null],
    [:χvp, :null, :null],
]
    δx1 = randn(count(parameterization .≠ :null) * nznx)
    δxout1 = zero(δx1)

    copyto!(δxout1, δx1, model, parameterization)

    δxout2 = randn(size(δxout1))
    δx2 = zero(δx1)
    GeoPhyInv.pert_chainrule!(δx2, δxout2, model, parameterization)

    @test LinearAlgebra.dot(δxout2, δxout1) ≈ LinearAlgebra.dot(δx1, δx2)
end


text:
# This file was generated by the Julia Swagger Code Generator
# Do not modify this file directly. Modify the swagger specification instead.

struct SshPublicKeysApi <: SwaggerApi
    client::Swagger.Client
end

"""

Creates a new SSH public key resource.
Param: resourceGroupName::String (required)
Param: sshPublicKeyName::String (required)
Param: parameters::SshPublicKeyResource (required)
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: SshPublicKeyResource
"""
function _swaggerinternal_sshPublicKeysCreate(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, parameters, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "PUT", SshPublicKeyResource, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", ["azure_auth"], parameters)
    Swagger.set_param(_ctx.path, "resourceGroupName", resourceGroupName)  # type String
    Swagger.set_param(_ctx.path, "sshPublicKeyName", sshPublicKeyName)  # type String
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    return _ctx
end

function sshPublicKeysCreate(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, parameters, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysCreate(_api, resourceGroupName, sshPublicKeyName, parameters, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx)
end

function sshPublicKeysCreate(_api::SshPublicKeysApi, response_stream::Channel, resourceGroupName::String, sshPublicKeyName::String, parameters, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysCreate(_api, resourceGroupName, sshPublicKeyName, parameters, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx, response_stream)
end

"""

Delete an SSH public key.
Param: resourceGroupName::String (required)
Param: sshPublicKeyName::String (required)
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: Nothing
"""
function _swaggerinternal_sshPublicKeysDelete(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "DELETE", Nothing, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", ["azure_auth"])
    Swagger.set_param(_ctx.path, "resourceGroupName", resourceGroupName)  # type String
    Swagger.set_param(_ctx.path, "sshPublicKeyName", sshPublicKeyName)  # type String
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    return _ctx
end

function sshPublicKeysDelete(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysDelete(_api, resourceGroupName, sshPublicKeyName, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx)
end

function sshPublicKeysDelete(_api::SshPublicKeysApi, response_stream::Channel, resourceGroupName::String, sshPublicKeyName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysDelete(_api, resourceGroupName, sshPublicKeyName, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx, response_stream)
end

"""

Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource.
Param: resourceGroupName::String (required)
Param: sshPublicKeyName::String (required)
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: SshPublicKeyGenerateKeyPairResult
"""
function _swaggerinternal_sshPublicKeysGenerateKeyPair(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "POST", SshPublicKeyGenerateKeyPairResult, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", ["azure_auth"])
    Swagger.set_param(_ctx.path, "resourceGroupName", resourceGroupName)  # type String
    Swagger.set_param(_ctx.path, "sshPublicKeyName", sshPublicKeyName)  # type String
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    return _ctx
end

function sshPublicKeysGenerateKeyPair(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysGenerateKeyPair(_api, resourceGroupName, sshPublicKeyName, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx)
end

function sshPublicKeysGenerateKeyPair(_api::SshPublicKeysApi, response_stream::Channel, resourceGroupName::String, sshPublicKeyName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysGenerateKeyPair(_api, resourceGroupName, sshPublicKeyName, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx, response_stream)
end

"""

Retrieves information about an SSH public key.
Param: resourceGroupName::String (required)
Param: sshPublicKeyName::String (required)
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: SshPublicKeyResource
"""
function _swaggerinternal_sshPublicKeysGet(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "GET", SshPublicKeyResource, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", ["azure_auth"])
    Swagger.set_param(_ctx.path, "resourceGroupName", resourceGroupName)  # type String
    Swagger.set_param(_ctx.path, "sshPublicKeyName", sshPublicKeyName)  # type String
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    return _ctx
end

function sshPublicKeysGet(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysGet(_api, resourceGroupName, sshPublicKeyName, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx)
end

function sshPublicKeysGet(_api::SshPublicKeysApi, response_stream::Channel, resourceGroupName::String, sshPublicKeyName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysGet(_api, resourceGroupName, sshPublicKeyName, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx, response_stream)
end

"""

Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys.
Param: resourceGroupName::String (required)
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: SshPublicKeysGroupListResult
"""
function _swaggerinternal_sshPublicKeysListByResourceGroup(_api::SshPublicKeysApi, resourceGroupName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "GET", SshPublicKeysGroupListResult, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", ["azure_auth"])
    Swagger.set_param(_ctx.path, "resourceGroupName", resourceGroupName)  # type String
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    return _ctx
end

function sshPublicKeysListByResourceGroup(_api::SshPublicKeysApi, resourceGroupName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysListByResourceGroup(_api, resourceGroupName, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx)
end

function sshPublicKeysListByResourceGroup(_api::SshPublicKeysApi, response_stream::Channel, resourceGroupName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysListByResourceGroup(_api, resourceGroupName, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx, response_stream)
end

"""

Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys.
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: SshPublicKeysGroupListResult
"""
function _swaggerinternal_sshPublicKeysListBySubscription(_api::SshPublicKeysApi, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "GET", SshPublicKeysGroupListResult, "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", ["azure_auth"])
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    return _ctx
end

function sshPublicKeysListBySubscription(_api::SshPublicKeysApi, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysListBySubscription(_api, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx)
end

function sshPublicKeysListBySubscription(_api::SshPublicKeysApi, response_stream::Channel, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysListBySubscription(_api, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx, response_stream)
end

"""

Updates a new SSH public key resource.
Param: resourceGroupName::String (required)
Param: sshPublicKeyName::String (required)
Param: parameters::SshPublicKeyUpdateResource (required)
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: SshPublicKeyResource
"""
function _swaggerinternal_sshPublicKeysUpdate(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, parameters, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "PATCH", SshPublicKeyResource, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", ["azure_auth"], parameters)
    Swagger.set_param(_ctx.path, "resourceGroupName", resourceGroupName)  # type String
    Swagger.set_param(_ctx.path, "sshPublicKeyName", sshPublicKeyName)  # type String
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    return _ctx
end

function sshPublicKeysUpdate(_api::SshPublicKeysApi, resourceGroupName::String, sshPublicKeyName::String, parameters, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysUpdate(_api, resourceGroupName, sshPublicKeyName, parameters, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx)
end

function sshPublicKeysUpdate(_api::SshPublicKeysApi, response_stream::Channel, resourceGroupName::String, sshPublicKeyName::String, parameters, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = _swaggerinternal_sshPublicKeysUpdate(_api, resourceGroupName, sshPublicKeyName, parameters, api_version, subscriptionId; _mediaType=_mediaType)
    Swagger.exec(_ctx, response_stream)
end

export sshPublicKeysCreate, sshPublicKeysDelete, sshPublicKeysGenerateKeyPair, sshPublicKeysGet, sshPublicKeysListByResourceGroup, sshPublicKeysListBySubscription, sshPublicKeysUpdate


text:
##
# A bunch of methods that can be used to assist in map-reduce jobs

##
# generic reduce functions
function reduce_dicts(op::Function, result, results...)
    for d in results
        (nothing == d) && continue
        (nothing == result) && (result = similar(d))
        for (k,v) in d
            haskey(result, k) ? op(result[k],v) : (result[k] = v)
        end
    end
    result
end

##
# generic collect functions
collect_in_vector(results, rec) = (nothing == results) ? [rec] : push!(results, rec)
collect_in_set(results, rec) = (nothing == results) ? Set(rec) : add!(results, rec)
function collect_in_dict(op::Function, results, rec)
    (nothing == rec) && return results
    k,v = rec
    if(nothing == results)
        results = Dict{typeof(k),typeof(v)}()
        results[k] = v
        return results
    end
    !haskey(results, k) && (results[k]=v; return results)
    results[k] = op(v,results[k])
    results
end

##
# generic routine to filter records from map results that of list type
#
function find_rec(r::MapResultReader, iter_status, filter_fn::FuncNone=nothing)
    results = r.results
    ret_rec = nothing
    (nothing == results) && (return (ret_rec, true, iter_status))
    (nothing == iter_status) && (iter_status = start(results))

    while(!done(results, iter_status))
        ret_rec, iter_status = next(results, iter_status)
        ((nothing == filter_fn) || filter_fn(ret_rec)) && return (ret_rec, false, iter_status)
    end
    (nothing, true, iter_status)
end

##
# make a dataframe out of the whole block and pass that as a record to map
function find_rec(rdr::MapStreamInputReader, iter_status, t::Type{Matrix}, rec_sep::Char='\n', col_sep::Char=',')
    (iter_status != nothing) && return (nothing, true, iter_status)
    ios = get_stream(rdr)
    dlmarr = readdlm(ios, col_sep, rec_sep)
    (dlmarr, false, position(ios))
end

function find_rec(rdr::MapStreamInputReader, iter_status, t::Type{Vector}, rec_sep::Char='\n', col_sep::Char=',', filters::Tuple=())
    ios = get_stream(rdr)
    eof(ios) && return(nothing, true, iter_status)
    # TODO: use rec_sep, split into substrings, coltype support
    found = false
    splt = []
    i = 0
    while !found && !eof(ios)
        # TODO: check for eof!!
        l = rstrip(readline(ios))
        #logmsg("l($(i+=1))=$l")
        !isempty(filters) && isa(filters[1], AbstractString) && !startswith(l, filters[1]) && continue
        splt = split(l, col_sep)
        isempty(filters) && return (splt, false, position(ios))
        found = true
        for idx in 1:length(filters)
            f = filters[idx]
            (nothing == f) && continue
            isa(f, Regex) && ismatch(splt[idx], f) && continue
            isa(f, AbstractString) && (f == splt[idx]) && continue
            isa(f, Function) && f(splt[idx]) && continue
            found = false
            break
        end
    end
    (splt, false, position(ios))
end

max_stars_repo_name: tanmaykm/HadoopBlocks

max_issues_repo_name: tanmaykm/HadoopBlocks

max_forks_repo_name: tanmaykm/HadoopBlocks


text:
using Gadfly
using MLLibrary

println("Running Statistics Tests")
srand(123)
file = joinpath(Pkg.dir("MLLibrary"),"resources","datasets","abalone.data")
count=MLLibrary.DataParser.DataStream.getDataSetCount(file)
threshold=.1
total_runs = 5
num_runs= 1
run_increment = 10
runs_x = zeros(total_runs,1)
mean_y = zeros(total_runs,1)
std_y = zeros(total_runs,1)

for i=1:total_runs
  testset= zeros(Int,count,1)
  num_runs*=run_increment
  runs_x[i]=num_runs
  for run=1:num_runs
    testset[MLLibrary.DataSampling.ThresholdSampling.getThresholdTrainingSetIndicies(file,count,threshold)]+=1;
  end
  mean_y[i] = mean(testset)/num_runs
  std_y[i] = std(testset)/num_runs
end

p = plot(
  layer(
    x=runs_x,
    y=mean_y,
    Geom.line,
    Theme(default_color=colorant"blue")
  ),
  layer(
    x=runs_x,
    y=std_y,
    Geom.line,
    Theme(default_color=colorant"orange")
  ),
  Scale.x_log10,
  Guide.ylabel("Test Sample Statistic"),
  Guide.xlabel("Number of Runs"),
  Guide.title("Expected Value and Standard Deviation over Number of Runs"),
  Guide.manual_color_key("Legend", ["Mean", "Standard Deviation"], ["blue", "orange"])
)

draw(PNG(joinpath(Pkg.dir("MLLibrary"),"resources","paResources","Week1","ExpectedValuesvsRuns.png"), 800px, 600px), p)

max_stars_repo_name: ajermaky/CustomMLLibrary

max_issues_repo_name: ajermaky/CustomMLLibrary

max_forks_repo_name: ajermaky/CustomMLLibrary


text:
using Statistics,Random,LinearAlgebra,HDF5,JLD

function randb(rng::AbstractRNG,n::Int64, d::Int64, r::Float64=0.8, boundary::Union{Nothing,Bool}=nothing)
    if typeof(boundary) == Nothing
        return copy(rand(rng,d,n)')
    else
        @assert r>0 && r<1
        p = r^d
        if boundary
            N = ceil(Int, n/(1-p)*1.1)
            X = copy(rand(rng,d,N)')
            X = X[map(x->norm(x,Inf), eachslice(X, dims=1)).>r,:]
            X = X[1:n,:]
        else
            N = ceil(Int, n/p*1.1)
            X = copy(rand(rng,d,N)')
            X = X[map(x->norm(x,Inf), eachslice(X, dims=1)).<=r,:]
            X = X[1:n,:]
        end
        return X
    end
end

randb(n::Int64, d::Int64, r::Float64=0.8, boundary::Union{Nothing,Bool}=nothing) = randb(Random.default_rng(),n,d,r,boundary)

function generate_training_test_samples(func_type,ntrain,ntest,d,r,SNR,random_state =42;normalize=true)
    Random.seed!(random_state);
    xtrain = randb(ntrain, d, r, nothing)
    xtest = randb(ntest, d, r, nothing)
    xtest_bd = randb(ntest, d, r, true)
    xtest_int = randb(ntest, d, r, false)

    ytrain = zeros(ntrain);
    ytest = zeros(ntest);
    ytest_bd = zeros(ntest);
    ytest_int = zeros(ntest);

    if func_type == "A"
        ######## Type A ########
        ### phi(x) = norm(x,2)^2
        for (x,y) in zip([xtrain,xtest,xtest_bd,xtest_int],[ytrain,ytest,ytest_bd,ytest_int])
            y .= map(z->norm(z,2)^2, eachslice(x, dims=1))
        end
    elseif func_type == "B"
        ######## Type B ########
        ### phi(x) = max_j <a_j,x>
        a = 2 * rand(d,2*d) .- 1.
        for (x,y) in zip([xtrain,xtest,xtest_bd,xtest_int],[ytrain,ytest,ytest_bd,ytest_int])
            y .= map(z->maximum(a'*z), eachslice(x, dims=1))
        end
    elseif func_type == "C"
        ######## Type C ########
        ### phi(x) = norm(x,4)^4
        for (x,y) in zip([xtrain,xtest,xtest_bd,xtest_int],[ytrain,ytest,ytest_bd,ytest_int])
            y .= map(z->norm(z,4)^4, eachslice(x, dims=1))
        end
    elseif func_type == "D"
        ######## Type D ########
        ### phi(x) =  <a,x>
        a = 2*rand(d) .- 1
        for (x,y) in zip([xtrain,xtest,xtest_bd,xtest_int],[ytrain,ytest,ytest_bd,ytest_int])
            y .= map(z->dot(a,z), eachslice(x, dims=1))
        end
    end

    if normalize
        x_mean = mean(xtrain, dims = 1)
        x_norm = reshape(map(z->norm(z,2), eachslice(xtrain.-x_mean, dims=2)), (1,d))
        for x in [xtest, xtest_bd, xtest_int, xtrain]
            x .-= x_mean
            x ./= x_norm
        end
    end

    sigma = sqrt(var(ytrain)/SNR)
    for y in [ytest, ytest_bd, ytest_int, ytrain]
        y .+= sigma*randn(length(y))
    end

    if normalize
        y_mean = mean(ytrain)
        y_norm = norm(ytrain.-y_mean,2)
        for y in [ytest, ytest_bd, ytest_int, ytrain]
            y .-= y_mean
            y ./= y_norm
        end
    end

    return xtrain, ytrain, xtest, ytest, xtest_bd, ytest_bd, xtest_int, ytest_int
end

function load_dataset(fname)
    if endswith(fname, ".h5")
        file = h5open(fname, "r")
        xtrain = copy(read(file, "xtrain")["block0_values"]')
        xtest = copy(read(file, "xtest")["block0_values"]')
        xtest_bd = copy(read(file, "xtest_bd")["block0_values"]')
        xtest_int = copy(read(file, "xtest_int")["block0_values"]')
        ytrain = read(file, "ytrain")["values"]
        ytest = read(file, "ytest")["values"]
        ytest_bd = read(file, "ytest_bd")["values"]
        ytest_int = read(file, "ytest_int")["values"]
        close(file)
    elseif endswith(fname, ".jld")
        dict = load(fname)
        xtrain = dict["xtrain"]
        xtest = dict["xtest"]
        xtest_bd = dict["xtest_bd"]
        xtest_int = dict["xtest_int"]
        ytrain = dict["ytrain"]
        ytest = dict["ytest"]
        ytest_bd = dict["ytest_bd"]
        ytest_int = dict["ytest_int"]
    end

    return xtrain, ytrain, xtest, ytest, xtest_bd, ytest_bd, xtest_int, ytest_int
end


text:
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg

name = "libspatialite"
version = v"5.0.1"

# Collection of sources required to complete build
sources = [
    ArchiveSource("http://www.gaia-gis.it/gaia-sins/libspatialite-$(version).tar.gz", "eecbc94311c78012d059ebc0fae86ea5ef6eecb13303e6e82b3753c1b3409e98"),
    DirectorySource("./bundled")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/libspatialite-*

# Detection of MinGW and macOS is totally wrong: `target_alias` is empty.  We
# could use `host_alias` (why not `host`?), but we should do regex matching,
# which doesn't work very well with Alpine's (da)sh, easiest thing is to check
# `uname -s`, which is easier to test.
atomic_patch -p1 ../patches/configure-ac-system-detection.patch

update_configure_scripts
autoreconf -vi

if [[ ${target} == *-linux-musl* ]] || [[ ${target} == *-freebsd* ]]; then
    #help find sqlite.h header usually
    export CPPFLAGS="-I${includedir}"

elif [[ "${target}" == *-mingw* ]]; then

    atomic_patch -p1 ${WORKSPACE}/srcdir/patches/mingw-lowercase-include.patch

fi

./configure \
    --prefix=${prefix} \
    --build=${MACHTYPE} \
    --host=${target} \
    --includedir=${includedir} \
    --libdir=${libdir} \
    --enable-shared=yes \
    --enable-static=no \
    --enable-geocallbacks=yes \
    --enable-knn=yes \
    --enable-proj=yes \
    --enable-iconv=yes \
    --enable-freexl=no \
    --enable-epsg=yes \
    --enable-geos=yes \
    --enable-geosadvanced=yes \
    --enable-geosreentrant=yes \
    --enable-geos370=yes \
    --enable-gcp=no \
    --enable-rttopo=no \
    --enable-libxml2=yes \
    --enable-minizip=no \
    --enable-geopackage=yes \
    --enable-gcov=no \
    --enable-examples=no \
    --enable-module-only=no

make -j${nproc}
make install

if [[ "${target}" == *-darwin* ]]; then
    # I have no idea how they managed to get the extension wrong only for mod_spatialite,
    # but they did.  Let's rename everything manually, sigh.
    mv "${libdir}/mod_spatialite.7.so" "${libdir}/mod_spatialite.7.${dlext}"
    rm "${libdir}/mod_spatialite.so"
    ln -s "mod_spatialite.7.${dlext}" "${libdir}/mod_spatialite.${dlext}"
    sed -i "s/\.so/.${dlext}/g" ${libdir}/mod_spatialite.la
fi
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = expand_cxxstring_abis(supported_platforms())

# The products that we will ensure are always built
products = [
    LibraryProduct("mod_spatialite", :mod_spatialite),
    LibraryProduct("libspatialite", :libspatialite)
]

# Dependencies that must be installed before this package can be built
dependencies = [
    Dependency("SQLite_jll")
    Dependency(PackageSpec(name="GEOS_jll", uuid="d604d12d-fa86-5845-992e-78dc15976526"))
    Dependency(PackageSpec(name="PROJ_jll", uuid="58948b4f-47e0-5654-a9ad-f609743f8632"))
    Dependency(PackageSpec(name="Libiconv_jll", uuid="94ce4f54-9a6c-5748-9c1c-f9c7231a4531"))
    Dependency(PackageSpec(name="Zlib_jll", uuid="83775a58-1f1d-513f-b197-d71354ab007a"))
    Dependency(PackageSpec(name="XML2_jll", uuid="02c8fc9c-b97f-50b9-bbe4-9be30ff0a78a"))
]

# Build the tarballs, and possibly a `build.jl` as well.
#GEOS uses preferred of 6, so match that here
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", preferred_gcc_version = v"6")

max_stars_repo_name: plut/Yggdrasil

max_issues_repo_name: plut/Yggdrasil

max_forks_repo_name: plut/Yggdrasil


text:
# This file is auto-generated by AWSMetadata.jl
using AWS
using AWS.AWSServices: route_53_domains
using AWS.Compat
using AWS.UUIDs

"""
    accept_domain_transfer_from_another_aws_account(domain_name, password)
    accept_domain_transfer_from_another_aws_account(domain_name, password, params::Dict{String,<:Any})

Accepts the transfer of a domain from another AWS account to the current AWS account. You
initiate a transfer between AWS accounts using TransferDomainToAnotherAwsAccount.  Use
either ListOperations or GetOperationDetail to determine whether the operation succeeded.
GetOperationDetail provides additional information, for example, Domain Transfer from Aws
Account 111122223333 has been cancelled.

# Arguments
- `domain_name`: The name of the domain that was specified when another AWS account
  submitted a TransferDomainToAnotherAwsAccount request.
- `password`: The password that was returned by the TransferDomainToAnotherAwsAccount
  request.

"""
accept_domain_transfer_from_another_aws_account(DomainName, Password; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("AcceptDomainTransferFromAnotherAwsAccount", Dict{String, Any}("DomainName"=>DomainName, "Password"=>Password); aws_config=aws_config)
accept_domain_transfer_from_another_aws_account(DomainName, Password, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("AcceptDomainTransferFromAnotherAwsAccount", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName, "Password"=>Password), params)); aws_config=aws_config)

"""
    cancel_domain_transfer_to_another_aws_account(domain_name)
    cancel_domain_transfer_to_another_aws_account(domain_name, params::Dict{String,<:Any})

Cancels the transfer of a domain from the current AWS account to another AWS account. You
initiate a transfer between AWS accounts using TransferDomainToAnotherAwsAccount.   You
must cancel the transfer before the other AWS account accepts the transfer using
AcceptDomainTransferFromAnotherAwsAccount.  Use either ListOperations or GetOperationDetail
to determine whether the operation succeeded. GetOperationDetail provides additional
information, for example, Domain Transfer from Aws Account 111122223333 has been cancelled.

# Arguments
- `domain_name`: The name of the domain for which you want to cancel the transfer to
  another AWS account.

"""
cancel_domain_transfer_to_another_aws_account(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("CancelDomainTransferToAnotherAwsAccount", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
cancel_domain_transfer_to_another_aws_account(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("CancelDomainTransferToAnotherAwsAccount", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    check_domain_availability(domain_name)
    check_domain_availability(domain_name, params::Dict{String,<:Any})

This operation checks the availability of one domain name. Note that if the availability
status of a domain is pending, you must submit another request to determine the
availability of the domain name.

# Arguments
- `domain_name`: The name of the domain that you want to get availability for. The
  top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of
  supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route
  53 Developer Guide. The domain name can contain only the following characters:   Letters a
  through z. Domain names are not case sensitive.   Numbers 0 through 9.   Hyphen (-). You
  can't specify a hyphen at the beginning or end of a label.    Period (.) to separate the
  labels in the name, such as the . in example.com.   Internationalized domain names are not
  supported for some top-level domains. To determine whether the TLD that you want to use
  supports internationalized domain names, see Domains that You Can Register with Amazon
  Route 53. For more information, see Formatting Internationalized Domain Names.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"IdnLangCode"`: Reserved for future use.
"""
check_domain_availability(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("CheckDomainAvailability", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
check_domain_availability(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("CheckDomainAvailability", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    check_domain_transferability(domain_name)
    check_domain_transferability(domain_name, params::Dict{String,<:Any})

Checks whether a domain name can be transferred to Amazon Route 53.

# Arguments
- `domain_name`: The name of the domain that you want to transfer to Route 53. The
  top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of
  supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route
  53 Developer Guide. The domain name can contain only the following characters:   Letters a
  through z. Domain names are not case sensitive.   Numbers 0 through 9.   Hyphen (-). You
  can't specify a hyphen at the beginning or end of a label.    Period (.) to separate the
  labels in the name, such as the . in example.com.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"AuthCode"`: If the registrar for the top-level domain (TLD) requires an authorization
  code to transfer the domain, the code that you got from the current registrar for the
  domain.
"""
check_domain_transferability(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("CheckDomainTransferability", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
check_domain_transferability(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("CheckDomainTransferability", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    delete_tags_for_domain(domain_name, tags_to_delete)
    delete_tags_for_domain(domain_name, tags_to_delete, params::Dict{String,<:Any})

This operation deletes the specified tags for a domain. All tag operations are eventually
consistent; subsequent operations might not immediately represent all issued operations.

# Arguments
- `domain_name`: The domain for which you want to delete one or more tags.
- `tags_to_delete`: A list of tag keys to delete.

"""
delete_tags_for_domain(DomainName, TagsToDelete; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("DeleteTagsForDomain", Dict{String, Any}("DomainName"=>DomainName, "TagsToDelete"=>TagsToDelete); aws_config=aws_config)
delete_tags_for_domain(DomainName, TagsToDelete, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("DeleteTagsForDomain", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName, "TagsToDelete"=>TagsToDelete), params)); aws_config=aws_config)

"""
    disable_domain_auto_renew(domain_name)
    disable_domain_auto_renew(domain_name, params::Dict{String,<:Any})

This operation disables automatic renewal of domain registration for the specified domain.

# Arguments
- `domain_name`: The name of the domain that you want to disable automatic renewal for.

"""
disable_domain_auto_renew(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("DisableDomainAutoRenew", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
disable_domain_auto_renew(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("DisableDomainAutoRenew", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    disable_domain_transfer_lock(domain_name)
    disable_domain_transfer_lock(domain_name, params::Dict{String,<:Any})

This operation removes the transfer lock on the domain (specifically the
clientTransferProhibited status) to allow domain transfers. We recommend you refrain from
performing this action unless you intend to transfer the domain to a different registrar.
Successful submission returns an operation ID that you can use to track the progress and
completion of the action. If the request is not completed successfully, the domain
registrant will be notified by email.

# Arguments
- `domain_name`: The name of the domain that you want to remove the transfer lock for.

"""
disable_domain_transfer_lock(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("DisableDomainTransferLock", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
disable_domain_transfer_lock(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("DisableDomainTransferLock", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    enable_domain_auto_renew(domain_name)
    enable_domain_auto_renew(domain_name, params::Dict{String,<:Any})

This operation configures Amazon Route 53 to automatically renew the specified domain
before the domain registration expires. The cost of renewing your domain registration is
billed to your AWS account. The period during which you can renew a domain name varies by
TLD. For a list of TLDs and their renewal policies, see Domains That You Can Register with
Amazon Route 53 in the Amazon Route 53 Developer Guide. Route 53 requires that you renew
before the end of the renewal period so we can complete processing before the deadline.

# Arguments
- `domain_name`: The name of the domain that you want to enable automatic renewal for.

"""
enable_domain_auto_renew(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("EnableDomainAutoRenew", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
enable_domain_auto_renew(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("EnableDomainAutoRenew", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    enable_domain_transfer_lock(domain_name)
    enable_domain_transfer_lock(domain_name, params::Dict{String,<:Any})

This operation sets the transfer lock on the domain (specifically the
clientTransferProhibited status) to prevent domain transfers. Successful submission returns
an operation ID that you can use to track the progress and completion of the action. If the
request is not completed successfully, the domain registrant will be notified by email.

# Arguments
- `domain_name`: The name of the domain that you want to set the transfer lock for.

"""
enable_domain_transfer_lock(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("EnableDomainTransferLock", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
enable_domain_transfer_lock(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("EnableDomainTransferLock", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    get_contact_reachability_status()
    get_contact_reachability_status(params::Dict{String,<:Any})

For operations that require confirmation that the email address for the registrant contact
is valid, such as registering a new domain, this operation returns information about
whether the registrant contact has responded. If you want us to resend the email, use the
ResendContactReachabilityEmail operation.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"domainName"`: The name of the domain for which you want to know whether the registrant
  contact has confirmed that the email address is valid.
"""
get_contact_reachability_status(; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("GetContactReachabilityStatus"; aws_config=aws_config)
get_contact_reachability_status(params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("GetContactReachabilityStatus", params; aws_config=aws_config)

"""
    get_domain_detail(domain_name)
    get_domain_detail(domain_name, params::Dict{String,<:Any})

This operation returns detailed information about a specified domain that is associated
with the current AWS account. Contact information for the domain is also returned as part
of the output.

# Arguments
- `domain_name`: The name of the domain that you want to get detailed information about.

"""
get_domain_detail(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("GetDomainDetail", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
get_domain_detail(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("GetDomainDetail", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    get_domain_suggestions(domain_name, only_available, suggestion_count)
    get_domain_suggestions(domain_name, only_available, suggestion_count, params::Dict{String,<:Any})

The GetDomainSuggestions operation returns a list of suggested domain names.

# Arguments
- `domain_name`: A domain name that you want to use as the basis for a list of possible
  domain names. The top-level domain (TLD), such as .com, must be a TLD that Route 53
  supports. For a list of supported TLDs, see Domains that You Can Register with Amazon Route
  53 in the Amazon Route 53 Developer Guide. The domain name can contain only the following
  characters:   Letters a through z. Domain names are not case sensitive.   Numbers 0 through
  9.   Hyphen (-). You can't specify a hyphen at the beginning or end of a label.    Period
  (.) to separate the labels in the name, such as the . in example.com.   Internationalized
  domain names are not supported for some top-level domains. To determine whether the TLD
  that you want to use supports internationalized domain names, see Domains that You Can
  Register with Amazon Route 53.
- `only_available`: If OnlyAvailable is true, Route 53 returns only domain names that are
  available. If OnlyAvailable is false, Route 53 returns domain names without checking
  whether they're available to be registered. To determine whether the domain is available,
  you can call checkDomainAvailability for each suggestion.
- `suggestion_count`: The number of suggested domain names that you want Route 53 to
  return. Specify a value between 1 and 50.

"""
get_domain_suggestions(DomainName, OnlyAvailable, SuggestionCount; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("GetDomainSuggestions", Dict{String, Any}("DomainName"=>DomainName, "OnlyAvailable"=>OnlyAvailable, "SuggestionCount"=>SuggestionCount); aws_config=aws_config)
get_domain_suggestions(DomainName, OnlyAvailable, SuggestionCount, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("GetDomainSuggestions", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName, "OnlyAvailable"=>OnlyAvailable, "SuggestionCount"=>SuggestionCount), params)); aws_config=aws_config)

"""
    get_operation_detail(operation_id)
    get_operation_detail(operation_id, params::Dict{String,<:Any})

This operation returns the current status of an operation that is not completed.

# Arguments
- `operation_id`: The identifier for the operation for which you want to get the status.
  Route 53 returned the identifier in the response to the original request.

"""
get_operation_detail(OperationId; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("GetOperationDetail", Dict{String, Any}("OperationId"=>OperationId); aws_config=aws_config)
get_operation_detail(OperationId, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("GetOperationDetail", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("OperationId"=>OperationId), params)); aws_config=aws_config)

"""
    list_domains()
    list_domains(params::Dict{String,<:Any})

This operation returns all the domain names registered with Amazon Route 53 for the current
AWS account.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"Marker"`: For an initial request for a list of domains, omit this element. If the
  number of domains that are associated with the current AWS account is greater than the
  value that you specified for MaxItems, you can use Marker to return additional domains. Get
  the value of NextPageMarker from the previous response, and submit another request that
  includes the value of NextPageMarker in the Marker element. Constraints: The marker must
  match the value specified in the previous request.
- `"MaxItems"`: Number of domains to be returned. Default: 20
"""
list_domains(; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ListDomains"; aws_config=aws_config)
list_domains(params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ListDomains", params; aws_config=aws_config)

"""
    list_operations()
    list_operations(params::Dict{String,<:Any})

Returns information about all of the operations that return an operation ID and that have
ever been performed on domains that were registered by the current account.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"Marker"`: For an initial request for a list of operations, omit this element. If the
  number of operations that are not yet complete is greater than the value that you specified
  for MaxItems, you can use Marker to return additional operations. Get the value of
  NextPageMarker from the previous response, and submit another request that includes the
  value of NextPageMarker in the Marker element.
- `"MaxItems"`: Number of domains to be returned. Default: 20
- `"SubmittedSince"`: An optional parameter that lets you get information about all the
  operations that you submitted after a specified date and time. Specify the date and time in
  Unix time format and Coordinated Universal time (UTC).
"""
list_operations(; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ListOperations"; aws_config=aws_config)
list_operations(params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ListOperations", params; aws_config=aws_config)

"""
    list_tags_for_domain(domain_name)
    list_tags_for_domain(domain_name, params::Dict{String,<:Any})

This operation returns all of the tags that are associated with the specified domain. All
tag operations are eventually consistent; subsequent operations might not immediately
represent all issued operations.

# Arguments
- `domain_name`: The domain for which you want to get a list of tags.

"""
list_tags_for_domain(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ListTagsForDomain", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
list_tags_for_domain(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ListTagsForDomain", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    register_domain(admin_contact, domain_name, duration_in_years, registrant_contact, tech_contact)
    register_domain(admin_contact, domain_name, duration_in_years, registrant_contact, tech_contact, params::Dict{String,<:Any})

This operation registers a domain. Domains are registered either by Amazon Registrar (for
.com, .net, and .org domains) or by our registrar associate, Gandi (for all other domains).
For some top-level domains (TLDs), this operation requires extra parameters. When you
register a domain, Amazon Route 53 does the following:   Creates a Route 53 hosted zone
that has the same name as the domain. Route 53 assigns four name servers to your hosted
zone and automatically updates your domain registration with the names of these name
servers.   Enables autorenew, so your domain registration will renew automatically each
year. We'll notify you in advance of the renewal date so you can choose whether to renew
the registration.   Optionally enables privacy protection, so WHOIS queries return contact
information either for Amazon Registrar (for .com, .net, and .org domains) or for our
registrar associate, Gandi (for all other TLDs). If you don't enable privacy protection,
WHOIS queries return the information that you entered for the registrant, admin, and tech
contacts.   If registration is successful, returns an operation ID that you can use to
track the progress and completion of the action. If the request is not completed
successfully, the domain registrant is notified by email.   Charges your AWS account an
amount based on the top-level domain. For more information, see Amazon Route 53 Pricing.

# Arguments
- `admin_contact`: Provides detailed contact information. For information about the values
  that you specify for each element, see ContactDetail.
- `domain_name`: The domain name that you want to register. The top-level domain (TLD),
  such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see
  Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.
  The domain name can contain only the following characters:   Letters a through z. Domain
  names are not case sensitive.   Numbers 0 through 9.   Hyphen (-). You can't specify a
  hyphen at the beginning or end of a label.    Period (.) to separate the labels in the
  name, such as the . in example.com.   Internationalized domain names are not supported for
  some top-level domains. To determine whether the TLD that you want to use supports
  internationalized domain names, see Domains that You Can Register with Amazon Route 53. For
  more information, see Formatting Internationalized Domain Names.
- `duration_in_years`: The number of years that you want to register the domain for.
  Domains are registered for a minimum of one year. The maximum period depends on the
  top-level domain. For the range of valid values for your domain, see Domains that You Can
  Register with Amazon Route 53 in the Amazon Route 53 Developer Guide. Default: 1
- `registrant_contact`: Provides detailed contact information. For information about the
  values that you specify for each element, see ContactDetail.
- `tech_contact`: Provides detailed contact information. For information about the values
  that you specify for each element, see ContactDetail.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"AutoRenew"`: Indicates whether the domain will be automatically renewed (true) or not
  (false). Autorenewal only takes effect after the account is charged. Default: true
- `"IdnLangCode"`: Reserved for future use.
- `"PrivacyProtectAdminContact"`: Whether you want to conceal contact information from
  WHOIS queries. If you specify true, WHOIS (\"who is\") queries return contact information
  either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
  associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the
  information that you entered for the admin contact. Default: true
- `"PrivacyProtectRegistrantContact"`: Whether you want to conceal contact information from
  WHOIS queries. If you specify true, WHOIS (\"who is\") queries return contact information
  either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
  associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the
  information that you entered for the registrant contact (the domain owner). Default: true
- `"PrivacyProtectTechContact"`: Whether you want to conceal contact information from WHOIS
  queries. If you specify true, WHOIS (\"who is\") queries return contact information either
  for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate,
  Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that
  you entered for the technical contact. Default: true
"""
register_domain(AdminContact, DomainName, DurationInYears, RegistrantContact, TechContact; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("RegisterDomain", Dict{String, Any}("AdminContact"=>AdminContact, "DomainName"=>DomainName, "DurationInYears"=>DurationInYears, "RegistrantContact"=>RegistrantContact, "TechContact"=>TechContact); aws_config=aws_config)
register_domain(AdminContact, DomainName, DurationInYears, RegistrantContact, TechContact, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("RegisterDomain", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("AdminContact"=>AdminContact, "DomainName"=>DomainName, "DurationInYears"=>DurationInYears, "RegistrantContact"=>RegistrantContact, "TechContact"=>TechContact), params)); aws_config=aws_config)

"""
    reject_domain_transfer_from_another_aws_account(domain_name)
    reject_domain_transfer_from_another_aws_account(domain_name, params::Dict{String,<:Any})

Rejects the transfer of a domain from another AWS account to the current AWS account. You
initiate a transfer between AWS accounts using TransferDomainToAnotherAwsAccount.  Use
either ListOperations or GetOperationDetail to determine whether the operation succeeded.
GetOperationDetail provides additional information, for example, Domain Transfer from Aws
Account 111122223333 has been cancelled.

# Arguments
- `domain_name`: The name of the domain that was specified when another AWS account
  submitted a TransferDomainToAnotherAwsAccount request.

"""
reject_domain_transfer_from_another_aws_account(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("RejectDomainTransferFromAnotherAwsAccount", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
reject_domain_transfer_from_another_aws_account(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("RejectDomainTransferFromAnotherAwsAccount", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    renew_domain(current_expiry_year, domain_name)
    renew_domain(current_expiry_year, domain_name, params::Dict{String,<:Any})

This operation renews a domain for the specified number of years. The cost of renewing your
domain is billed to your AWS account. We recommend that you renew your domain several weeks
before the expiration date. Some TLD registries delete domains before the expiration date
if you haven't renewed far enough in advance. For more information about renewing domain
registration, see Renewing Registration for a Domain in the Amazon Route 53 Developer Guide.

# Arguments
- `current_expiry_year`: The year when the registration for the domain is set to expire.
  This value must match the current expiration date for the domain.
- `domain_name`: The name of the domain that you want to renew.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"DurationInYears"`: The number of years that you want to renew the domain for. The
  maximum number of years depends on the top-level domain. For the range of valid values for
  your domain, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53
  Developer Guide. Default: 1
"""
renew_domain(CurrentExpiryYear, DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("RenewDomain", Dict{String, Any}("CurrentExpiryYear"=>CurrentExpiryYear, "DomainName"=>DomainName); aws_config=aws_config)
renew_domain(CurrentExpiryYear, DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("RenewDomain", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("CurrentExpiryYear"=>CurrentExpiryYear, "DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    resend_contact_reachability_email()
    resend_contact_reachability_email(params::Dict{String,<:Any})

For operations that require confirmation that the email address for the registrant contact
is valid, such as registering a new domain, this operation resends the confirmation email
to the current email address for the registrant contact.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"domainName"`: The name of the domain for which you want Route 53 to resend a
  confirmation email to the registrant contact.
"""
resend_contact_reachability_email(; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ResendContactReachabilityEmail"; aws_config=aws_config)
resend_contact_reachability_email(params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ResendContactReachabilityEmail", params; aws_config=aws_config)

"""
    retrieve_domain_auth_code(domain_name)
    retrieve_domain_auth_code(domain_name, params::Dict{String,<:Any})

This operation returns the AuthCode for the domain. To transfer a domain to another
registrar, you provide this value to the new registrar.

# Arguments
- `domain_name`: The name of the domain that you want to get an authorization code for.

"""
retrieve_domain_auth_code(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("RetrieveDomainAuthCode", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
retrieve_domain_auth_code(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("RetrieveDomainAuthCode", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    transfer_domain(admin_contact, domain_name, duration_in_years, registrant_contact, tech_contact)
    transfer_domain(admin_contact, domain_name, duration_in_years, registrant_contact, tech_contact, params::Dict{String,<:Any})

Transfers a domain from another registrar to Amazon Route 53. When the transfer is
complete, the domain is registered either with Amazon Registrar (for .com, .net, and .org
domains) or with our registrar associate, Gandi (for all other TLDs). For more information
about transferring domains, see the following topics:   For transfer requirements, a
detailed procedure, and information about viewing the status of a domain that you're
transferring to Route 53, see Transferring Registration for a Domain to Amazon Route 53 in
the Amazon Route 53 Developer Guide.   For information about how to transfer a domain from
one AWS account to another, see TransferDomainToAnotherAwsAccount.    For information about
how to transfer a domain to another domain registrar, see Transferring a Domain from Amazon
Route 53 to Another Registrar in the Amazon Route 53 Developer Guide.   If the registrar
for your domain is also the DNS service provider for the domain, we highly recommend that
you transfer your DNS service to Route 53 or to another DNS service provider before you
transfer your registration. Some registrars provide free DNS service when you purchase a
domain registration. When you transfer the registration, the previous registrar will not
renew your domain registration and could end your DNS service at any time.  If the
registrar for your domain is also the DNS service provider for the domain and you don't
transfer DNS service to another provider, your website, email, and the web applications
associated with the domain might become unavailable.  If the transfer is successful, this
method returns an operation ID that you can use to track the progress and completion of the
action. If the transfer doesn't complete successfully, the domain registrant will be
notified by email.

# Arguments
- `admin_contact`: Provides detailed contact information.
- `domain_name`: The name of the domain that you want to transfer to Route 53. The
  top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of
  supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route
  53 Developer Guide. The domain name can contain only the following characters:   Letters a
  through z. Domain names are not case sensitive.   Numbers 0 through 9.   Hyphen (-). You
  can't specify a hyphen at the beginning or end of a label.    Period (.) to separate the
  labels in the name, such as the . in example.com.
- `duration_in_years`: The number of years that you want to register the domain for.
  Domains are registered for a minimum of one year. The maximum period depends on the
  top-level domain. Default: 1
- `registrant_contact`: Provides detailed contact information.
- `tech_contact`: Provides detailed contact information.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"AuthCode"`: The authorization code for the domain. You get this value from the current
  registrar.
- `"AutoRenew"`: Indicates whether the domain will be automatically renewed (true) or not
  (false). Autorenewal only takes effect after the account is charged. Default: true
- `"IdnLangCode"`: Reserved for future use.
- `"Nameservers"`: Contains details for the host and glue IP addresses.
- `"PrivacyProtectAdminContact"`: Whether you want to conceal contact information from
  WHOIS queries. If you specify true, WHOIS (\"who is\") queries return contact information
  either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
  associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the
  information that you entered for the admin contact. Default: true
- `"PrivacyProtectRegistrantContact"`: Whether you want to conceal contact information from
  WHOIS queries. If you specify true, WHOIS (\"who is\") queries return contact information
  either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
  associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the
  information that you entered for the registrant contact (domain owner). Default: true
- `"PrivacyProtectTechContact"`: Whether you want to conceal contact information from WHOIS
  queries. If you specify true, WHOIS (\"who is\") queries return contact information either
  for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate,
  Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that
  you entered for the technical contact. Default: true
"""
transfer_domain(AdminContact, DomainName, DurationInYears, RegistrantContact, TechContact; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("TransferDomain", Dict{String, Any}("AdminContact"=>AdminContact, "DomainName"=>DomainName, "DurationInYears"=>DurationInYears, "RegistrantContact"=>RegistrantContact, "TechContact"=>TechContact); aws_config=aws_config)
transfer_domain(AdminContact, DomainName, DurationInYears, RegistrantContact, TechContact, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("TransferDomain", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("AdminContact"=>AdminContact, "DomainName"=>DomainName, "DurationInYears"=>DurationInYears, "RegistrantContact"=>RegistrantContact, "TechContact"=>TechContact), params)); aws_config=aws_config)

"""
    transfer_domain_to_another_aws_account(account_id, domain_name)
    transfer_domain_to_another_aws_account(account_id, domain_name, params::Dict{String,<:Any})

Transfers a domain from the current AWS account to another AWS account. Note the following:
  The AWS account that you're transferring the domain to must accept the transfer. If the
other account doesn't accept the transfer within 3 days, we cancel the transfer. See
AcceptDomainTransferFromAnotherAwsAccount.    You can cancel the transfer before the other
account accepts it. See CancelDomainTransferToAnotherAwsAccount.    The other account can
reject the transfer. See RejectDomainTransferFromAnotherAwsAccount.     When you transfer a
domain from one AWS account to another, Route 53 doesn't transfer the hosted zone that is
associated with the domain. DNS resolution isn't affected if the domain and the hosted zone
are owned by separate accounts, so transferring the hosted zone is optional. For
information about transferring the hosted zone to another AWS account, see Migrating a
Hosted Zone to a Different AWS Account in the Amazon Route 53 Developer Guide.  Use either
ListOperations or GetOperationDetail to determine whether the operation succeeded.
GetOperationDetail provides additional information, for example, Domain Transfer from Aws
Account 111122223333 has been cancelled.

# Arguments
- `account_id`: The account ID of the AWS account that you want to transfer the domain to,
  for example, 111122223333.
- `domain_name`: The name of the domain that you want to transfer from the current AWS
  account to another account.

"""
transfer_domain_to_another_aws_account(AccountId, DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("TransferDomainToAnotherAwsAccount", Dict{String, Any}("AccountId"=>AccountId, "DomainName"=>DomainName); aws_config=aws_config)
transfer_domain_to_another_aws_account(AccountId, DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("TransferDomainToAnotherAwsAccount", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("AccountId"=>AccountId, "DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    update_domain_contact(domain_name)
    update_domain_contact(domain_name, params::Dict{String,<:Any})

This operation updates the contact information for a particular domain. You must specify
information for at least one contact: registrant, administrator, or technical. If the
update is successful, this method returns an operation ID that you can use to track the
progress and completion of the action. If the request is not completed successfully, the
domain registrant will be notified by email.

# Arguments
- `domain_name`: The name of the domain that you want to update contact information for.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"AdminContact"`: Provides detailed contact information.
- `"RegistrantContact"`: Provides detailed contact information.
- `"TechContact"`: Provides detailed contact information.
"""
update_domain_contact(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("UpdateDomainContact", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
update_domain_contact(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("UpdateDomainContact", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    update_domain_contact_privacy(domain_name)
    update_domain_contact_privacy(domain_name, params::Dict{String,<:Any})

This operation updates the specified domain contact's privacy setting. When privacy
protection is enabled, contact information such as email address is replaced either with
contact information for Amazon Registrar (for .com, .net, and .org domains) or with contact
information for our registrar associate, Gandi. This operation affects only the contact
information for the specified contact type (registrant, administrator, or tech). If the
request succeeds, Amazon Route 53 returns an operation ID that you can use with
GetOperationDetail to track the progress and completion of the action. If the request
doesn't complete successfully, the domain registrant will be notified by email.  By
disabling the privacy service via API, you consent to the publication of the contact
information provided for this domain via the public WHOIS database. You certify that you
are the registrant of this domain name and have the authority to make this decision. You
may withdraw your consent at any time by enabling privacy protection using either
UpdateDomainContactPrivacy or the Route 53 console. Enabling privacy protection removes the
contact information provided for this domain from the WHOIS database. For more information
on our privacy practices, see https://aws.amazon.com/privacy/.

# Arguments
- `domain_name`: The name of the domain that you want to update the privacy setting for.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"AdminPrivacy"`: Whether you want to conceal contact information from WHOIS queries. If
  you specify true, WHOIS (\"who is\") queries return contact information either for Amazon
  Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all
  other TLDs). If you specify false, WHOIS queries return the information that you entered
  for the admin contact.
- `"RegistrantPrivacy"`: Whether you want to conceal contact information from WHOIS
  queries. If you specify true, WHOIS (\"who is\") queries return contact information either
  for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate,
  Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that
  you entered for the registrant contact (domain owner).
- `"TechPrivacy"`: Whether you want to conceal contact information from WHOIS queries. If
  you specify true, WHOIS (\"who is\") queries return contact information either for Amazon
  Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all
  other TLDs). If you specify false, WHOIS queries return the information that you entered
  for the technical contact.
"""
update_domain_contact_privacy(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("UpdateDomainContactPrivacy", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
update_domain_contact_privacy(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("UpdateDomainContactPrivacy", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    update_domain_nameservers(domain_name, nameservers)
    update_domain_nameservers(domain_name, nameservers, params::Dict{String,<:Any})

This operation replaces the current set of name servers for the domain with the specified
set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name
servers in the delegation set for the hosted zone for the domain. If successful, this
operation returns an operation ID that you can use to track the progress and completion of
the action. If the request is not completed successfully, the domain registrant will be
notified by email.

# Arguments
- `domain_name`: The name of the domain that you want to change name servers for.
- `nameservers`: A list of new name servers for the domain.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"FIAuthKey"`: The authorization key for .fi domains
"""
update_domain_nameservers(DomainName, Nameservers; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("UpdateDomainNameservers", Dict{String, Any}("DomainName"=>DomainName, "Nameservers"=>Nameservers); aws_config=aws_config)
update_domain_nameservers(DomainName, Nameservers, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("UpdateDomainNameservers", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName, "Nameservers"=>Nameservers), params)); aws_config=aws_config)

"""
    update_tags_for_domain(domain_name)
    update_tags_for_domain(domain_name, params::Dict{String,<:Any})

This operation adds or updates tags for a specified domain. All tag operations are
eventually consistent; subsequent operations might not immediately represent all issued
operations.

# Arguments
- `domain_name`: The domain for which you want to add or update tags.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"TagsToUpdate"`: A list of the tag keys and values that you want to add or update. If
  you specify a key that already exists, the corresponding value will be replaced.
"""
update_tags_for_domain(DomainName; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("UpdateTagsForDomain", Dict{String, Any}("DomainName"=>DomainName); aws_config=aws_config)
update_tags_for_domain(DomainName, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("UpdateTagsForDomain", Dict{String, Any}(mergewith(_merge, Dict{String, Any}("DomainName"=>DomainName), params)); aws_config=aws_config)

"""
    view_billing()
    view_billing(params::Dict{String,<:Any})

Returns all the domain-related billing records for the current AWS account for a specified
period

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"End"`: The end date and time for the time period for which you want a list of billing
  records. Specify the date and time in Unix time format and Coordinated Universal time (UTC).
- `"Marker"`: For an initial request for a list of billing records, omit this element. If
  the number of billing records that are associated with the current AWS account during the
  specified period is greater than the value that you specified for MaxItems, you can use
  Marker to return additional billing records. Get the value of NextPageMarker from the
  previous response, and submit another request that includes the value of NextPageMarker in
  the Marker element.  Constraints: The marker must match the value of NextPageMarker that
  was returned in the previous response.
- `"MaxItems"`: The number of billing records to be returned. Default: 20
- `"Start"`: The beginning date and time for the time period for which you want a list of
  billing records. Specify the date and time in Unix time format and Coordinated Universal
  time (UTC).
"""
view_billing(; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ViewBilling"; aws_config=aws_config)
view_billing(params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()) = route_53_domains("ViewBilling", params; aws_config=aws_config)


text:
module HolidayCalendars
import RDates

include("rules.jl")

const CALENDARS = RDates.SimpleCalendarManager()
RDates.setcachedcalendar!(CALENDARS, "WEEKEND", RDates.WeekendCalendar())

include("calendars/unitedkingdom.jl")
include("calendars/unitedstates.jl")
include("calendars/target.jl")

export CALENDARS

end # module


text:
__precompile__()
module ModelingBase

export fit, predict

"""
    fit(modeltype, features, args...; kwargs...)
"""
function fit end

"""
    predict(model, features, args...; kwargs...)
"""
function predict end

end


text:
module JuliaProject

include("doubler.jl")

end