text:
<?php
function testEvalExpressionHasExpectedEndColumn()
{
    echo eval(
        "return
            'echo';"
                )
    . "foo";
}

testEvalExpressionHasExpectedEndColumn();


text:
/* ---------------------------------------------------------------------------- */
/*                  Atmel Microcontroller Software Support                      */
/*                       SAM Software Package License                           */
/* ---------------------------------------------------------------------------- */
/* Copyright (c) 2015, Atmel Corporation                                        */
/*                                                                              */
/* All rights reserved.                                                         */
/*                                                                              */
/* Redistribution and use in source and binary forms, with or without           */
/* modification, are permitted provided that the following condition is met:    */
/*                                                                              */
/* - Redistributions of source code must retain the above copyright notice,     */
/* this list of conditions and the disclaimer below.                            */
/*                                                                              */
/* Atmel's name may not be used to endorse or promote products derived from     */
/* this software without specific prior written permission.                     */
/*                                                                              */
/* DISCLAIMER:  THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR   */
/* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE   */
/* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,      */
/* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,  */
/* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF    */
/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING         */
/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
/* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                           */
/* ---------------------------------------------------------------------------- */

#ifndef _SAMG55_TWI0_INSTANCE_
#define _SAMG55_TWI0_INSTANCE_

/* ========== Register definition for TWI0 peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  #define REG_TWI0_CR                     (0x4000C600U) /**< \brief (TWI0) TWI Control Register */
  #define REG_TWI0_MMR                    (0x4000C604U) /**< \brief (TWI0) TWI Master Mode Register */
  #define REG_TWI0_SMR                    (0x4000C608U) /**< \brief (TWI0) TWI Slave Mode Register */
  #define REG_TWI0_IADR                   (0x4000C60CU) /**< \brief (TWI0) TWI Internal Address Register */
  #define REG_TWI0_CWGR                   (0x4000C610U) /**< \brief (TWI0) TWI Clock Waveform Generator Register */
  #define REG_TWI0_SR                     (0x4000C620U) /**< \brief (TWI0) TWI Status Register */
  #define REG_TWI0_IER                    (0x4000C624U) /**< \brief (TWI0) TWI Interrupt Enable Register */
  #define REG_TWI0_IDR                    (0x4000C628U) /**< \brief (TWI0) TWI Interrupt Disable Register */
  #define REG_TWI0_IMR                    (0x4000C62CU) /**< \brief (TWI0) TWI Interrupt Mask Register */
  #define REG_TWI0_RHR                    (0x4000C630U) /**< \brief (TWI0) TWI Receive Holding Register */
  #define REG_TWI0_THR                    (0x4000C634U) /**< \brief (TWI0) TWI Transmit Holding Register */
  #define REG_TWI0_SMBTR                  (0x4000C638U) /**< \brief (TWI0) TWI SMBus Timing Register */
  #define REG_TWI0_ACR                    (0x4000C640U) /**< \brief (TWI0) TWI Alternative Command Register */
  #define REG_TWI0_FILTR                  (0x4000C644U) /**< \brief (TWI0) TWI Filter Register */
  #define REG_TWI0_SWMR                   (0x4000C64CU) /**< \brief (TWI0) TWI SleepWalking Matching Register */
  #define REG_TWI0_WPMR                   (0x4000C6E4U) /**< \brief (TWI0) TWI Write Protection Mode Register */
  #define REG_TWI0_WPSR                   (0x4000C6E8U) /**< \brief (TWI0) TWI Write Protection Status Register */
  #define REG_TWI0_RPR                    (0x4000C700U) /**< \brief (TWI0) Receive Pointer Register */
  #define REG_TWI0_RCR                    (0x4000C704U) /**< \brief (TWI0) Receive Counter Register */
  #define REG_TWI0_TPR                    (0x4000C708U) /**< \brief (TWI0) Transmit Pointer Register */
  #define REG_TWI0_TCR                    (0x4000C70CU) /**< \brief (TWI0) Transmit Counter Register */
  #define REG_TWI0_RNPR                   (0x4000C710U) /**< \brief (TWI0) Receive Next Pointer Register */
  #define REG_TWI0_RNCR                   (0x4000C714U) /**< \brief (TWI0) Receive Next Counter Register */
  #define REG_TWI0_TNPR                   (0x4000C718U) /**< \brief (TWI0) Transmit Next Pointer Register */
  #define REG_TWI0_TNCR                   (0x4000C71CU) /**< \brief (TWI0) Transmit Next Counter Register */
  #define REG_TWI0_PTCR                   (0x4000C720U) /**< \brief (TWI0) Transfer Control Register */
  #define REG_TWI0_PTSR                   (0x4000C724U) /**< \brief (TWI0) Transfer Status Register */
#else
  #define REG_TWI0_CR    (*(__O  uint32_t*)0x4000C600U) /**< \brief (TWI0) TWI Control Register */
  #define REG_TWI0_MMR   (*(__IO uint32_t*)0x4000C604U) /**< \brief (TWI0) TWI Master Mode Register */
  #define REG_TWI0_SMR   (*(__IO uint32_t*)0x4000C608U) /**< \brief (TWI0) TWI Slave Mode Register */
  #define REG_TWI0_IADR  (*(__IO uint32_t*)0x4000C60CU) /**< \brief (TWI0) TWI Internal Address Register */
  #define REG_TWI0_CWGR  (*(__IO uint32_t*)0x4000C610U) /**< \brief (TWI0) TWI Clock Waveform Generator Register */
  #define REG_TWI0_SR    (*(__I  uint32_t*)0x4000C620U) /**< \brief (TWI0) TWI Status Register */
  #define REG_TWI0_IER   (*(__O  uint32_t*)0x4000C624U) /**< \brief (TWI0) TWI Interrupt Enable Register */
  #define REG_TWI0_IDR   (*(__O  uint32_t*)0x4000C628U) /**< \brief (TWI0) TWI Interrupt Disable Register */
  #define REG_TWI0_IMR   (*(__I  uint32_t*)0x4000C62CU) /**< \brief (TWI0) TWI Interrupt Mask Register */
  #define REG_TWI0_RHR   (*(__I  uint32_t*)0x4000C630U) /**< \brief (TWI0) TWI Receive Holding Register */
  #define REG_TWI0_THR   (*(__O  uint32_t*)0x4000C634U) /**< \brief (TWI0) TWI Transmit Holding Register */
  #define REG_TWI0_SMBTR (*(__IO uint32_t*)0x4000C638U) /**< \brief (TWI0) TWI SMBus Timing Register */
  #define REG_TWI0_ACR   (*(__IO uint32_t*)0x4000C640U) /**< \brief (TWI0) TWI Alternative Command Register */
  #define REG_TWI0_FILTR (*(__IO uint32_t*)0x4000C644U) /**< \brief (TWI0) TWI Filter Register */
  #define REG_TWI0_SWMR  (*(__IO uint32_t*)0x4000C64CU) /**< \brief (TWI0) TWI SleepWalking Matching Register */
  #define REG_TWI0_WPMR  (*(__IO uint32_t*)0x4000C6E4U) /**< \brief (TWI0) TWI Write Protection Mode Register */
  #define REG_TWI0_WPSR  (*(__I  uint32_t*)0x4000C6E8U) /**< \brief (TWI0) TWI Write Protection Status Register */
  #define REG_TWI0_RPR   (*(__IO uint32_t*)0x4000C700U) /**< \brief (TWI0) Receive Pointer Register */
  #define REG_TWI0_RCR   (*(__IO uint32_t*)0x4000C704U) /**< \brief (TWI0) Receive Counter Register */
  #define REG_TWI0_TPR   (*(__IO uint32_t*)0x4000C708U) /**< \brief (TWI0) Transmit Pointer Register */
  #define REG_TWI0_TCR   (*(__IO uint32_t*)0x4000C70CU) /**< \brief (TWI0) Transmit Counter Register */
  #define REG_TWI0_RNPR  (*(__IO uint32_t*)0x4000C710U) /**< \brief (TWI0) Receive Next Pointer Register */
  #define REG_TWI0_RNCR  (*(__IO uint32_t*)0x4000C714U) /**< \brief (TWI0) Receive Next Counter Register */
  #define REG_TWI0_TNPR  (*(__IO uint32_t*)0x4000C718U) /**< \brief (TWI0) Transmit Next Pointer Register */
  #define REG_TWI0_TNCR  (*(__IO uint32_t*)0x4000C71CU) /**< \brief (TWI0) Transmit Next Counter Register */
  #define REG_TWI0_PTCR  (*(__O  uint32_t*)0x4000C720U) /**< \brief (TWI0) Transfer Control Register */
  #define REG_TWI0_PTSR  (*(__I  uint32_t*)0x4000C724U) /**< \brief (TWI0) Transfer Status Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */

#endif /* _SAMG55_TWI0_INSTANCE_ */

redpajama_set_name: RedPajamaGithub


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameOfIntervals
{
    class GameOfIntervals
    {
        static void Main(string[] args)
        {
            var courses = int.Parse(Console.ReadLine());
            var points = 0.0;
            var result = 0.0;
            var firstCounter = 0.0;
            var secondCounter = 0.0;
            var thirdCounter = 0.0;
            var forthCounter = 0.0;
            var fifthCounter = 0.0;
            var sixthCounter = 0.0;

            for (int i = 0; i < courses; i++)
            {
                var number = int.Parse(Console.ReadLine());
                points = 0;

                if (number < 0 || number > 50)
                {
                    result /= 2;
                    sixthCounter++;
                }
                else if (number <= 9)
                {
                    points = 0.2 * number;
                    firstCounter++;
                }
                else if (number <=19)
                {
                    points = 0.3 * number;
                    secondCounter++;
                }
                else if (number <= 29 )
                {
                    points = 0.4 * number;
                    thirdCounter++;
                }
                else if (number <= 39)
                {
                    points = 50;
                    forthCounter++;
                }
                else
                {
                    points = 100;
                    fifthCounter++;
                }
                result += points;
            }
            Console.WriteLine("{0:f2}", result);
            Console.WriteLine("From 0 to 9: {0:f2}%", firstCounter / courses * 100);
            Console.WriteLine("From 10 to 19: {0:f2}%", secondCounter / courses * 100);
            Console.WriteLine("From 20 to 29: {0:f2}%", thirdCounter / courses * 100);
            Console.WriteLine("From 30 to 39: {0:f2}%", forthCounter / courses * 100);
            Console.WriteLine("From 40 to 50: {0:f2}%", fifthCounter / courses * 100);
            Console.WriteLine("Invalid numbers: {0:f2}%", sixthCounter / courses * 100);
        }
    }
}


text:
require 'test_helper'

class DiagramsControllerTest < ActionController::TestCase
  setup do
    @diagram = diagrams(:one)
  end

  test "should get index" do
    get :index
    assert_response :success
    assert_not_nil assigns(:diagrams)
  end

  test "should get new" do
    get :new
    assert_response :success
  end

  test "should create diagram" do
    assert_difference('Diagram.count') do
      post :create, diagram: { index: @diagram.index }
    end

    assert_redirected_to diagram_path(assigns(:diagram))
  end

  test "should show diagram" do
    get :show, id: @diagram
    assert_response :success
  end

  test "should get edit" do
    get :edit, id: @diagram
    assert_response :success
  end

  test "should update diagram" do
    patch :update, id: @diagram, diagram: { index: @diagram.index }
    assert_redirected_to diagram_path(assigns(:diagram))
  end

  test "should destroy diagram" do
    assert_difference('Diagram.count', -1) do
      delete :destroy, id: @diagram
    end

    assert_redirected_to diagrams_path
  end
end


text:
package org.jaxen.expr;

/**
 * Represents an XPath string literal. This is production 29 in the
 * XPath 1.0 specification:
 *
 *
[29] Literal ::= '"' [^"]* '"'
 *               | "'" [^']* "'"

 *
 */
public interface LiteralExpr extends Expr
{
    /**
     * Returns the contents of the string literal, not including the
     * quote marks.
     *
     * @return the contents of the string literal
     */
    public String getLiteral();
}


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.security.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.security.models.AlertSimulatorBundlesRequestProperties;
import com.azure.resourcemanager.security.models.AlertSimulatorRequestBody;
import com.azure.resourcemanager.security.models.BundleType;
import java.util.Arrays;

/** Samples for Alerts Simulate. */
public final class AlertsSimulateSamples {
    /*
     * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2022-01-01/examples/Alerts/SimulateAlerts_example.json
     */
    /**
     * Sample code: Simulate security alerts on a subscription.
     *
     * @param manager Entry point to SecurityManager.
     */
    public static void simulateSecurityAlertsOnASubscription(
        com.azure.resourcemanager.security.SecurityManager manager) {
        manager
            .alerts()
            .simulate(
                "centralus",
                new AlertSimulatorRequestBody()
                    .withProperties(
                        new AlertSimulatorBundlesRequestProperties()
                            .withBundles(
                                Arrays
                                    .asList(
                                        BundleType.APP_SERVICES,
                                        BundleType.DNS,
                                        BundleType.KEY_VAULTS,
                                        BundleType.KUBERNETES_SERVICE,
                                        BundleType.RESOURCE_MANAGER,
                                        BundleType.SQL_SERVERS,
                                        BundleType.STORAGE_ACCOUNTS,
                                        BundleType.VIRTUAL_MACHINES,
                                        BundleType.COSMOS_DBS))),
                Context.NONE);
    }
}


text:
# Makefile.in generated by automake 1.10.1 from Makefile.am.
# source/SoundTouch/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

pkgdatadir = $(datadir)/soundtouch
pkglibdir = $(libdir)/soundtouch
pkgincludedir = $(includedir)/soundtouch
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = x86_64-unknown-linux-gnu
host_triplet = x86_64-unknown-linux-gnu
DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
	$(srcdir)/Makefile.in $(top_srcdir)/config/am_include.mk
subdir = source/SoundTouch
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/include/soundtouch_config.h
CONFIG_CLEAN_FILES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    *) f=$$p;; \
  esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(libdir)"
libLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(lib_LTLIBRARIES)
libSoundTouch_la_LIBADD =
am_libSoundTouch_la_OBJECTS = AAFilter.lo FIRFilter.lo \
	FIFOSampleBuffer.lo mmx_optimized.lo sse_optimized.lo \
	RateTransposer.lo SoundTouch.lo TDStretch.lo \
	cpu_detect_x86_gcc.lo BPMDetect.lo PeakFinder.lo
libSoundTouch_la_OBJECTS = $(am_libSoundTouch_la_OBJECTS)
DEFAULT_INCLUDES = -I. -I$(top_builddir)/include
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
am__depfiles_maybe = depfiles
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
	--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
	--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
	$(LDFLAGS) -o $@
SOURCES = $(libSoundTouch_la_SOURCES)
DIST_SOURCES = $(libSoundTouch_la_SOURCES)
HEADERS = $(noinst_HEADERS)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /home/cantovario/source/libraries/soundtouch/config/missing --run aclocal-1.10
AMTAR = ${SHELL} /home/cantovario/source/libraries/soundtouch/config/missing --run tar
AR = ar
AUTOCONF = ${SHELL} /home/cantovario/source/libraries/soundtouch/config/missing --run autoconf
AUTOHEADER = ${SHELL} /home/cantovario/source/libraries/soundtouch/config/missing --run autoheader
AUTOMAKE = ${SHELL} /home/cantovario/source/libraries/soundtouch/config/missing --run automake-1.10
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2
CPP = gcc -E
CPPFLAGS =
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DSYMUTIL =
ECHO = echo
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EXEEXT =
F77 = gfortran
FFLAGS = -g -O2
GREP = /bin/grep
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LDFLAGS =
LIBOBJS =
LIBS = -lm
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
LTLIBOBJS =
MAKEINFO = ${SHELL} /home/cantovario/source/libraries/soundtouch/config/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
NMEDIT =
OBJEXT = o
PACKAGE = soundtouch
PACKAGE_BUGREPORT = http://www.surina.net/soundtouch
PACKAGE_NAME = SoundTouch
PACKAGE_STRING = SoundTouch 1.4.0
PACKAGE_TARNAME = soundtouch
PACKAGE_VERSION = 1.4.0
PATH_SEPARATOR = :
RANLIB = ranlib
SED = /bin/sed
SET_MAKE =
SHELL = /bin/sh
STRIP = strip
VERSION = 1.4.0
abs_builddir = /home/cantovario/source/libraries/soundtouch/source/SoundTouch
abs_srcdir = /home/cantovario/source/libraries/soundtouch/source/SoundTouch
abs_top_builddir = /home/cantovario/source/libraries/soundtouch
abs_top_srcdir = /home/cantovario/source/libraries/soundtouch
ac_ct_CC = gcc
ac_ct_CXX = g++
ac_ct_F77 = gfortran
am__include = include
am__leading_dot = .
am__quote =
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = x86_64-unknown-linux-gnu
build_alias =
build_cpu = x86_64
build_os = linux-gnu
build_vendor = unknown
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = x86_64-unknown-linux-gnu
host_alias =
host_cpu = x86_64
host_os = linux-gnu
host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = $(SHELL) /home/cantovario/source/libraries/soundtouch/config/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /usr/local
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_builddir = ../..
top_srcdir = ../..
INCLUDES = -I$(top_srcdir)/include

# doc directory
pkgdocdir = $(prefix)/doc/soundtouch

# set to something if you want other stuff to be included in the distribution tarball
EXTRA_DIST = 3dnow_win.cpp cpu_detect_x86_win.cpp SoundTouch.dsp SoundTouch.dsw SoundTouch.sln SoundTouch.vcproj
noinst_HEADERS = AAFilter.h cpu_detect.h cpu_detect_x86_gcc.cpp FIRFilter.h RateTransposer.h TDStretch.h PeakFinder.h
lib_LTLIBRARIES = libSoundTouch.la
#
libSoundTouch_la_SOURCES = AAFilter.cpp FIRFilter.cpp FIFOSampleBuffer.cpp mmx_optimized.cpp sse_optimized.cpp RateTransposer.cpp SoundTouch.cpp TDStretch.cpp cpu_detect_x86_gcc.cpp BPMDetect.cpp PeakFinder.cpp

# Note by authore: '-msse2' might not work in non-X86 compilations. If someone can
# fix this script to automatically check for CPU architecture, please submit a patch
# to me.
AM_CXXFLAGS = -O3 -msse2 -fcheck-new -I../../include
all: all-am

.SUFFIXES:
.SUFFIXES: .cpp .lo .o .obj
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am $(top_srcdir)/config/am_include.mk $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
		&& exit 0; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  source/SoundTouch/Makefile'; \
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --foreign  source/SoundTouch/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure:  $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
	@$(NORMAL_INSTALL)
	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  if test -f $$p; then \
	    f=$(am__strip_dir) \
	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
	  else :; fi; \
	done

uninstall-libLTLIBRARIES:
	@$(NORMAL_UNINSTALL)
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  p=$(am__strip_dir) \
	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
	done

clean-libLTLIBRARIES:
	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
	  test "$$dir" != "$$p" || dir=.; \
	  echo "rm -f \"$${dir}/so_locations\""; \
	  rm -f "$${dir}/so_locations"; \
	done
libSoundTouch.la: $(libSoundTouch_la_OBJECTS) $(libSoundTouch_la_DEPENDENCIES)
	$(CXXLINK) -rpath $(libdir) $(libSoundTouch_la_OBJECTS) $(libSoundTouch_la_LIBADD) $(LIBS)

mostlyclean-compile:
	-rm -f *.$(OBJEXT)

distclean-compile:
	-rm -f *.tab.c

include ./$(DEPDIR)/AAFilter.Plo
include ./$(DEPDIR)/BPMDetect.Plo
include ./$(DEPDIR)/FIFOSampleBuffer.Plo
include ./$(DEPDIR)/FIRFilter.Plo
include ./$(DEPDIR)/PeakFinder.Plo
include ./$(DEPDIR)/RateTransposer.Plo
include ./$(DEPDIR)/SoundTouch.Plo
include ./$(DEPDIR)/TDStretch.Plo
include ./$(DEPDIR)/cpu_detect_x86_gcc.Plo
include ./$(DEPDIR)/mmx_optimized.Plo
include ./$(DEPDIR)/sse_optimized.Plo

.cpp.o:
	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
#	source='$<' object='$@' libtool=no \
#	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
#	$(CXXCOMPILE) -c -o $@ $<

.cpp.obj:
	$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
#	source='$<' object='$@' libtool=no \
#	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
#	$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`

.cpp.lo:
	$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
#	source='$<' object='$@' libtool=yes \
#	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
#	$(LTCXXCOMPILE) -c -o $@ $<

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
	mkid -fID $$unique
tags: TAGS

TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
	  test -n "$$unique" || unique=$$empty_fix; \
	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
	    $$tags $$unique; \
	fi
ctags: CTAGS
CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
	test -z "$(CTAGS_ARGS)$$tags$$unique" \
	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
	     $$tags $$unique

GTAGS:
	here=`$(am__cd) $(top_builddir) && pwd` \
	  && cd $(top_srcdir) \
	  && gtags -i $(GTAGS_ARGS) $$here

distclean-tags:
	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags

distdir: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
	    fi; \
	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
installdirs:
	for dir in "$(DESTDIR)$(libdir)"; do \
	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
	done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
	mostlyclean-am

distclean: distclean-am
	-rm -rf ./$(DEPDIR)
	-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
	distclean-tags

dvi: dvi-am

dvi-am:

html: html-am

info: info-am

info-am:

install-data-am:

install-dvi: install-dvi-am

install-exec-am: install-libLTLIBRARIES

install-html: install-html-am

install-info: install-info-am

install-man:

install-pdf: install-pdf-am

install-ps: install-ps-am

installcheck-am:

maintainer-clean: maintainer-clean-am
	-rm -rf ./$(DEPDIR)
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-compile mostlyclean-generic \
	mostlyclean-libtool

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am: uninstall-libLTLIBRARIES

.MAKE: install-am install-strip

.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
	clean-libLTLIBRARIES clean-libtool ctags distclean \
	distclean-compile distclean-generic distclean-libtool \
	distclean-tags distdir dvi dvi-am html html-am info info-am \
	install install-am install-data install-data-am install-dvi \
	install-dvi-am install-exec install-exec-am install-html \
	install-html-am install-info install-info-am \
	install-libLTLIBRARIES install-man install-pdf install-pdf-am \
	install-ps install-ps-am install-strip installcheck \
	installcheck-am installdirs maintainer-clean \
	maintainer-clean-generic mostlyclean mostlyclean-compile \
	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
	tags uninstall uninstall-am uninstall-libLTLIBRARIES

# other linking flags to add
# noinst_LTLIBRARIES = libSoundTouchOpt.la
# libSoundTouch_la_LIBADD = libSoundTouchOpt.la
# libSoundTouchOpt_la_SOURCES = mmx_optimized.cpp sse_optimized.cpp
# libSoundTouchOpt_la_CXXFLAGS = -O3 -msse2 -fcheck-new -I../../include
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:


text:
package backtype.storm.serialization.types;

import java.util.HashMap;
import java.util.Map;

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.serializers.MapSerializer;

public class HashMapSerializer extends MapSerializer {
  @Override
  @SuppressWarnings("rawtypes") // extending kryo class signature that takes Map
  public Map<String, Object> create(Kryo kryo, Input input, Class<Map> type) {
    return new HashMap<String, Object>();
  }
}


text:
  <title>Facebook Friend Exporter</title>
  <link rel="stylesheet" type="text/css" href="/css/controller.css">

    Hi!

Couple of questions for you.

Does Facebook own your friends?

Do you think Facebook owns the data about your friends, such as their
          email, their website, their IM name, etc. that they made public for you
          to see?

Do you think your Facebook friends would mind if you, oh, we don't know,
          decided one day to email them, or visit their website? How about add them
          to your address book on your phone?

      If you answered "no" to the above questions, we can help you get your friends'
      contact info out of Facebook. We can export the info to your Google Contacts
      (GMail), among other things!

      Finally, this extension is open source. You can fork it now on GitHub!

        https://github.com/mohamedmansour/fb-exporter

      THIS CHROME EXTENSION IS NOT AFFILIATED WITH GOOGLE OR FACEBOOK. HERE IS A LINK
      TO THE FACEBOOK TERMS OF SERVICE.

      <input type="checkbox" id="tos">I have read the Terms of Service.
      <button class="tos-guarded continue1" disabled="true">Let's get started!</button>

 Fetching friend list... done.  See below.

 These are all the frends that will be exported,
        <button id="start-crunching">let's start!</button>
        <button id="delete-cache">delete cache!</button>

 Fetching friend details... this could take a while, especially if you're
        really popular!

 IMPORTANT: Please don't touch your Facebook tab
    until we're done, thanks!  If you really must have your
    Facebook fix right now, here you go (this will open in a new window).

All done!  Please check the list below. Uncheck the friends you want to skip.

Now the fun part!  Pick an export button below, and we'll get started
       copying your friend data there!

        <input type="image" src="/img/gmail-logo.jpg" id="export-to-gmail" width="60" />
        This will log you into your GMail account, and import your Facebook friend data
        into your Contacts.  We'll create a group in your GMail contacts called
        "Imported from Facebook" and we'll avoid
        duplicating any existing contacts.

        <input type="image" src="/img/csv-icon.gif" id="export-to-csv" />
        This will export your contacts as a CSV file.

      <button id="btnLog">View log</button>

    <textarea id="log"></textarea>

Processed

Success

Failed

Cached

NOTICE

You are logged off the mobile site. The mobile site is where we
           check your friends info. Please log back in and restart the process.
           The steps to follow are mentioned below:

Log into http://m.facebook.com

Close this window

Visit http://facebook.com

Click on the "Export Friends" and resume the process!


text:
When no Remote Apps are published, the Session Collection is of type "Remote Desktop" which basically means that only full desktop is published. As soon as you have successfully published your first Remote App, the Session Collection is changes to type "Remote App Programs" and the full desktop is no longer published.

## RemoteApp

You can install a program on the RD Session Host server just like you would install the program on a local desktop. Ensure, however, that you install the program for all users and that all components of the program are installed locally on the RD Session Host server.

In Server Manager, click Remote Desktop Services > Collections > **Your Collection**.
![Collection Path](./images/CollectionDemosRemoteApp.PNG)

Click Task > Publish RemoteApp programs
![Publish RemoteApp programs](./images/RemoteAppPrograms.PNG)
Follow the wizard selecting suitable programs that will be published. After the wizard is finished, we have the RemoteApps available in RD WebAccess.

if you want to know more..
[Publish RemoteApp programs](https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-create-collection#publish-remoteapp-programs)
[Publishing RemoteApps in Windows Server 2012](https://social.technet.microsoft.com/wiki/contents/articles/10817.publishing-remoteapps-in-windows-server-2012.aspx)


text:
require 'carmen'

module Formulate
  class FormBuilder < ActionView::Helpers::FormBuilder
    def errors
      if (errors = errors_on(:base)).any?
        header = I18n.t('errors.template.header', count: errors.length)

        @template.capture_haml do
          @template.haml_tag(:fieldset, class: 'errors') do
            @template.haml_tag(:legend, header)

            @template.haml_tag(:ul, class: 'errors') do
              errors.each { |message| @template.haml_tag(:li, message) }
            end
          end
        end
      end
    end

    def fieldset(options={}, &block)
      legend = options.delete(:legend)

      @template.capture_haml do
        @template.haml_tag(:fieldset, options) do
          @template.haml_tag(:legend, legend) if legend
          yield(self)
        end
      end
    end

    def section(options={}, &block)
      options[:class] = "#{options[:class]} section".strip

      @template.capture_haml do
        @template.haml_tag(:div, options) { yield(self) }
      end
    end

    def input(method, options={}, &block)
      type = options.delete(:type)
      label = options.delete(:label)
      prefix = options.delete(:prefix)
      suffix = options.delete(:suffix)
      instructions = options.delete(:instructions)
      errors = errors_on(method)

      classes = ['field']
      classes << (options[:required] ? 'required' : 'optional')
      classes << 'checkbox' if type == :check_box
      classes << 'radio' if type == :radio_button
      classes << 'error' if errors.any?
      classes << options.delete(:class) if options[:class]
      classes.uniq!

      if options[:placeholder] == true
        options[:placeholder] = object.class.human_attribute_name(method)
      end

      input = case type
        when :check_box
          checked_value = options.delete(:checked_value)
          unchecked_value = options.delete(:unchecked_value)
          checked_value = '1' if unchecked_value && checked_value.blank?
          arguments = [options, checked_value, unchecked_value].compact
          send(type, method, *arguments)
        when :radio_button
          value = options.delete(:value)
          object_method = method
          method = "#{method.to_s.gsub(/\?$/, '')}_#{value.gsub(/\s/, '_')}".downcase
          send(type, object_method, value, options)
       when :date_select
          @template.capture_haml do
            @template.haml_tag(:div, input, class: 'group')
          end
        when :collection_select
          collection = options.delete(:collection)
          value_method = options.delete(:value_method)
          text_method = options.delete(:text_method)
          html_options = options.delete(:html) || {}
          send(type, method, collection, value_method, text_method, options, html_options)
        when :time_zone_select
          priority_zones = options.delete(:priority_zones)
          send(type, method, priority_zones, options)
        when :state_select
          country = options.delete(:country) || Carmen.default_country
          html_options = options.delete(:html) || {}
          send(type, method, country, options, html_options)
        when :country_select
          priority_countries = options.delete(:priority_countries)
          html_options = options.delete(:html) || {}
          send(type, method, priority_countries, options, html_options)
        else
          send(type, method, options)
      end unless block_given?

      label = label != false ? label(method, label) : nil
      markup = [label, prefix, input, suffix].compact
      markup.reverse! if type.in?([:check_box, :radio_button])

      markup << @template.capture_haml do
        yield(object.send(method)) if block_given?
        errors_list(errors)
        instructions(instructions)
      end

      @template.capture_haml do
        @template.haml_tag(:div, class: classes.join(' ')) do
          @template.haml_concat(markup.join)
        end
      end
    end

    alias_method :hidden, :hidden_field

    def text(method, options={}, &block)
      input(method, options.merge(type: :text_field), &block)
    end

    def email(method, options={}, &block)
      input(method, options.merge(type: :email_field), &block)
    end

    def number(method, options={}, &block)
      input(method, options.merge(type: :number_field), &block)
    end

    def password(method, options={}, &block)
      input(method, options.merge(type: :password_field), &block)
    end

    def area(method, options={}, &block)
      input(method, options.merge(type: :text_area), &block)
    end

    def checkbox(method, options={}, &block)
      input(method, options.merge(type: :check_box), &block)
    end

    def radio(method, options={}, &block)
      input(method, options.merge(type: :radio_button), &block)
    end

    def file(method, options={}, &block)
      input(method, options.merge(type: :file_field), &block)
    end

    def select(*args, &block)
      method = args.shift
      options = args.extract_options!

      options[:collection] = args[0]
      options[:value_method] = args[1]
      options[:text_method] = args[2]
      input(method, options.merge(type: :collection_select), &block)
    end

    def date(method, options={}, &block)
      input(method, options.merge(type: :date_select), &block)
    end

    def time(method, options={}, &block)
      input(method, options.merge(type: :time_select), &block)
    end

    def date_time(method, options={}, &block)
      input(method, options.merge(type: :datetime_select), &block)
    end

    def state(method, options={}, &block)
      input(method, options.merge(type: :state_select), &block)
    end

    def country(method, options={}, &block)
      input(method, options.merge(type: :country_select), &block)
    end

    def expiration(method, options={}, &block)
      options.reverse_merge!(add_month_numbers: true, discard_day: true, order: [:month, :year], start_year: Date.today.year, prompt: '')
      input(method, options.merge(type: :date_select), &block)
    end

    def time_zone(method, options, &block)
      input(method, options.merge(type: :time_zone_select), &block)
    end

    def instructions(text_or_nil_with_block=nil, &block)
      if text_or_nil_with_block
        content = text_or_nil_with_block || @template.capture_haml(&block)
        @template.haml_tag(:p, content, class: 'instructions')
      end
    end

    def submit(value, options={}, &block)
      @template.capture_haml do
        @template.haml_tag(:div, class: 'submit') do
          @template.haml_concat(super(value, options))
          yield(self) if block_given?
        end
      end
    end

    def errors_on(method)
      object.respond_to?(:errors) ? object.errors[method] : []
    end
    private :errors_on

    def errors_list(errors)
      if errors.any?
        error_messages = "#{errors.to_sentence.capitalize}."
        @template.haml_tag(:p, error_messages, class: 'errors')
      end
    end
    private :errors_list
  end
end


text:
# frozen_string_literal: true

# Copyright 2020 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
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!

module Google
  module Cloud
    module Security
      module PrivateCA
        module V1beta1
          # Request message for {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#create_certificate CertificateAuthorityService.CreateCertificate}.
          # @!attribute [rw] parent
          #   @return [::String]
          #     Required. The resource name of the location and {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}
          #     associated with the {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate}, in the format
          #     `projects/*/locations/*/certificateAuthorities/*`.
          # @!attribute [rw] certificate_id
          #   @return [::String]
          #     Optional. It must be unique within a location and match the regular
          #     expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the Enterprise {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::Tier CertificateAuthority.Tier},
          #     but is optional and its value is ignored otherwise.
          # @!attribute [rw] certificate
          #   @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
          #     Required. A {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate} with initial field values.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class CreateCertificateRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#get_certificate CertificateAuthorityService.GetCertificate}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate#name name} of the {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate} to get.
          class GetCertificateRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#list_certificates CertificateAuthorityService.ListCertificates}.
          # @!attribute [rw] parent
          #   @return [::String]
          #     Required. The resource name of the location associated with the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates}, in the format
          #     `projects/*/locations/*/certificateauthorities/*`.
          # @!attribute [rw] page_size
          #   @return [::Integer]
          #     Optional. Limit on the number of
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates} to include in the
          #     response. Further {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates} can subsequently be obtained
          #     by including the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse#next_page_token ListCertificatesResponse.next_page_token} in a subsequent
          #     request. If unspecified, the server will pick an appropriate default.
          # @!attribute [rw] page_token
          #   @return [::String]
          #     Optional. Pagination token, returned earlier via
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse#next_page_token ListCertificatesResponse.next_page_token}.
          # @!attribute [rw] filter
          #   @return [::String]
          #     Optional. Only include resources that match the filter in the response. For details
          #     on supported filters and syntax, see [Certificates Filtering
          #     documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
          # @!attribute [rw] order_by
          #   @return [::String]
          #     Optional. Specify how the results should be sorted. For details on supported fields
          #     and syntax, see [Certificates Sorting
          #     documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
          class ListCertificatesRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Response message for {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#list_certificates CertificateAuthorityService.ListCertificates}.
          # @!attribute [rw] certificates
          #   @return [::Array<::Google::Cloud::Security::PrivateCA::V1beta1::Certificate>]
          #     The list of {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates}.
          # @!attribute [rw] next_page_token
          #   @return [::String]
          #     A token to retrieve next page of results. Pass this value in
          #     [ListCertificatesRequest.next_page_token][] to retrieve the
          #     next page of results.
          # @!attribute [rw] unreachable
          #   @return [::Array<::String>]
          #     A list of locations (e.g. "us-west1") that could not be reached.
          class ListCertificatesResponse
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#revoke_certificate CertificateAuthorityService.RevokeCertificate}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate} in the
          #     format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
          # @!attribute [rw] reason
          #   @return [::Google::Cloud::Security::PrivateCA::V1beta1::RevocationReason]
          #     Required. The {::Google::Cloud::Security::PrivateCA::V1beta1::RevocationReason RevocationReason} for revoking this certificate.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class RevokeCertificateRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#update_certificate CertificateAuthorityService.UpdateCertificate}.
          # @!attribute [rw] certificate
          #   @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
          #     Required. {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate} with updated values.
          # @!attribute [rw] update_mask
          #   @return [::Google::Protobuf::FieldMask]
          #     Required. A list of fields to be updated in this request.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class UpdateCertificateRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#activate_certificate_authority CertificateAuthorityService.ActivateCertificateAuthority}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
          #     format `projects/*/locations/*/certificateAuthorities/*`.
          # @!attribute [rw] pem_ca_certificate
          #   @return [::String]
          #     Required. The signed CA certificate issued from
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse#pem_csr FetchCertificateAuthorityCsrResponse.pem_csr}.
          # @!attribute [rw] subordinate_config
          #   @return [::Google::Cloud::Security::PrivateCA::V1beta1::SubordinateConfig]
          #     Required. Must include information about the issuer of 'pem_ca_certificate', and any
          #     further issuers until the self-signed CA.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class ActivateCertificateAuthorityRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#create_certificate_authority CertificateAuthorityService.CreateCertificateAuthority}.
          # @!attribute [rw] parent
          #   @return [::String]
          #     Required. The resource name of the location associated with the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities}, in the format
          #     `projects/*/locations/*`.
          # @!attribute [rw] certificate_authority_id
          #   @return [::String]
          #     Required. It must be unique within a location and match the regular
          #     expression `[a-zA-Z0-9_-]{1,63}`
          # @!attribute [rw] certificate_authority
          #   @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority]
          #     Required. A {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} with initial field values.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class CreateCertificateAuthorityRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#disable_certificate_authority CertificateAuthorityService.DisableCertificateAuthority}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
          #     format `projects/*/locations/*/certificateAuthorities/*`.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class DisableCertificateAuthorityRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#enable_certificate_authority CertificateAuthorityService.EnableCertificateAuthority}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
          #     format `projects/*/locations/*/certificateAuthorities/*`.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class EnableCertificateAuthorityRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#fetch_certificate_authority_csr CertificateAuthorityService.FetchCertificateAuthorityCsr}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
          #     format `projects/*/locations/*/certificateAuthorities/*`.
          class FetchCertificateAuthorityCsrRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Response message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#fetch_certificate_authority_csr CertificateAuthorityService.FetchCertificateAuthorityCsr}.
          # @!attribute [r] pem_csr
          #   @return [::String]
          #     Output only. The PEM-encoded signed certificate signing request (CSR).
          class FetchCertificateAuthorityCsrResponse
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#get_certificate_authority CertificateAuthorityService.GetCertificateAuthority}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority#name name} of the {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} to
          #     get.
          class GetCertificateAuthorityRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#list_certificate_authorities CertificateAuthorityService.ListCertificateAuthorities}.
          # @!attribute [rw] parent
          #   @return [::String]
          #     Required. The resource name of the location associated with the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities}, in the format
          #     `projects/*/locations/*`.
          # @!attribute [rw] page_size
          #   @return [::Integer]
          #     Optional. Limit on the number of {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities} to
          #     include in the response.
          #     Further {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities} can subsequently be
          #     obtained by including the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse#next_page_token ListCertificateAuthoritiesResponse.next_page_token} in a subsequent
          #     request. If unspecified, the server will pick an appropriate default.
          # @!attribute [rw] page_token
          #   @return [::String]
          #     Optional. Pagination token, returned earlier via
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse#next_page_token ListCertificateAuthoritiesResponse.next_page_token}.
          # @!attribute [rw] filter
          #   @return [::String]
          #     Optional. Only include resources that match the filter in the response.
          # @!attribute [rw] order_by
          #   @return [::String]
          #     Optional. Specify how the results should be sorted.
          class ListCertificateAuthoritiesRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Response message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#list_certificate_authorities CertificateAuthorityService.ListCertificateAuthorities}.
          # @!attribute [rw] certificate_authorities
          #   @return [::Array<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority>]
          #     The list of {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities}.
          # @!attribute [rw] next_page_token
          #   @return [::String]
          #     A token to retrieve next page of results. Pass this value in
          #     [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
          #     page of results.
          # @!attribute [rw] unreachable
          #   @return [::Array<::String>]
          #     A list of locations (e.g. "us-west1") that could not be reached.
          class ListCertificateAuthoritiesResponse
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#restore_certificate_authority CertificateAuthorityService.RestoreCertificateAuthority}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
          #     format `projects/*/locations/*/certificateAuthorities/*`.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class RestoreCertificateAuthorityRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#schedule_delete_certificate_authority CertificateAuthorityService.ScheduleDeleteCertificateAuthority}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
          #     format `projects/*/locations/*/certificateAuthorities/*`.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class ScheduleDeleteCertificateAuthorityRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#update_certificate_authority CertificateAuthorityService.UpdateCertificateAuthority}.
          # @!attribute [rw] certificate_authority
          #   @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority]
          #     Required. {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} with updated values.
          # @!attribute [rw] update_mask
          #   @return [::Google::Protobuf::FieldMask]
          #     Required. A list of fields to be updated in this request.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class UpdateCertificateAuthorityRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#get_certificate_revocation_list CertificateAuthorityService.GetCertificateRevocationList}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList#name name} of the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationList} to get.
          class GetCertificateRevocationListRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#list_certificate_revocation_lists CertificateAuthorityService.ListCertificateRevocationLists}.
          # @!attribute [rw] parent
          #   @return [::String]
          #     Required. The resource name of the location associated with the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationLists}, in the format
          #     `projects/*/locations/*/certificateauthorities/*`.
          # @!attribute [rw] page_size
          #   @return [::Integer]
          #     Optional. Limit on the number of
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationLists} to include in the
          #     response. Further {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationLists}
          #     can subsequently be obtained by including the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse#next_page_token ListCertificateRevocationListsResponse.next_page_token} in a subsequent
          #     request. If unspecified, the server will pick an appropriate default.
          # @!attribute [rw] page_token
          #   @return [::String]
          #     Optional. Pagination token, returned earlier via
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse#next_page_token ListCertificateRevocationListsResponse.next_page_token}.
          # @!attribute [rw] filter
          #   @return [::String]
          #     Optional. Only include resources that match the filter in the response.
          # @!attribute [rw] order_by
          #   @return [::String]
          #     Optional. Specify how the results should be sorted.
          class ListCertificateRevocationListsRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Response message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#list_certificate_revocation_lists CertificateAuthorityService.ListCertificateRevocationLists}.
          # @!attribute [rw] certificate_revocation_lists
          #   @return [::Array<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList>]
          #     The list of {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationLists}.
          # @!attribute [rw] next_page_token
          #   @return [::String]
          #     A token to retrieve next page of results. Pass this value in
          #     [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
          #     next page of results.
          # @!attribute [rw] unreachable
          #   @return [::Array<::String>]
          #     A list of locations (e.g. "us-west1") that could not be reached.
          class ListCertificateRevocationListsResponse
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#update_certificate_revocation_list CertificateAuthorityService.UpdateCertificateRevocationList}.
          # @!attribute [rw] certificate_revocation_list
          #   @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList]
          #     Required. {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationList} with updated values.
          # @!attribute [rw] update_mask
          #   @return [::Google::Protobuf::FieldMask]
          #     Required. A list of fields to be updated in this request.
          # @!attribute [rw] request_id
          #   @return [::String]
          #     Optional. An ID to identify requests. Specify a unique request ID so that if you must
          #     retry your request, the server will know to ignore the request if it has
          #     already been completed. The server will guarantee that for at least 60
          #     minutes since the first request.
          #
          #     For example, consider a situation where you make an initial request and t
          #     he request times out. If you make the request again with the same request
          #     ID, the server can check if original operation with the same request ID
          #     was received, and if so, will ignore the second request. This prevents
          #     clients from accidentally creating duplicate commitments.
          #
          #     The request ID must be a valid UUID with the exception that zero UUID is
          #     not supported (00000000-0000-0000-0000-000000000000).
          class UpdateCertificateRevocationListRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#get_reusable_config CertificateAuthorityService.GetReusableConfig}.
          # @!attribute [rw] name
          #   @return [::String]
          #     Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.
          class GetReusableConfigRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Request message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#list_reusable_configs CertificateAuthorityService.ListReusableConfigs}.
          # @!attribute [rw] parent
          #   @return [::String]
          #     Required. The resource name of the location associated with the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfigs}, in the format
          #     `projects/*/locations/*`.
          # @!attribute [rw] page_size
          #   @return [::Integer]
          #     Optional. Limit on the number of
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfigs} to include in the response.
          #     Further {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfigs} can subsequently be
          #     obtained by including the
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse#next_page_token ListReusableConfigsResponse.next_page_token} in a subsequent request. If
          #     unspecified, the server will pick an appropriate default.
          # @!attribute [rw] page_token
          #   @return [::String]
          #     Optional. Pagination token, returned earlier via
          #     {::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse#next_page_token ListReusableConfigsResponse.next_page_token}.
          # @!attribute [rw] filter
          #   @return [::String]
          #     Optional. Only include resources that match the filter in the response.
          # @!attribute [rw] order_by
          #   @return [::String]
          #     Optional. Specify how the results should be sorted.
          class ListReusableConfigsRequest
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Response message for
          # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#list_reusable_configs CertificateAuthorityService.ListReusableConfigs}.
          # @!attribute [rw] reusable_configs
          #   @return [::Array<::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig>]
          #     The list of {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfigs}.
          # @!attribute [rw] next_page_token
          #   @return [::String]
          #     A token to retrieve next page of results. Pass this value in
          #     [ListReusableConfigsRequest.next_page_token][] to retrieve
          #     the next page of results.
          # @!attribute [rw] unreachable
          #   @return [::Array<::String>]
          #     A list of locations (e.g. "us-west1") that could not be reached.
          class ListReusableConfigsResponse
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # Represents the metadata of the long-running operation.
          # @!attribute [r] create_time
          #   @return [::Google::Protobuf::Timestamp]
          #     Output only. The time the operation was created.
          # @!attribute [r] end_time
          #   @return [::Google::Protobuf::Timestamp]
          #     Output only. The time the operation finished running.
          # @!attribute [r] target
          #   @return [::String]
          #     Output only. Server-defined resource path for the target of the operation.
          # @!attribute [r] verb
          #   @return [::String]
          #     Output only. Name of the verb executed by the operation.
          # @!attribute [r] status_message
          #   @return [::String]
          #     Output only. Human-readable status of the operation, if any.
          # @!attribute [r] requested_cancellation
          #   @return [::Boolean]
          #     Output only. Identifies whether the user has requested cancellation
          #     of the operation. Operations that have successfully been cancelled
          #     have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
          #     corresponding to `Code.CANCELLED`.
          # @!attribute [r] api_version
          #   @return [::String]
          #     Output only. API version used to start the operation.
          class OperationMetadata
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end
        end
      end
    end
  end
end


text:
package com.sunny.brand.model;

import java.io.Serializable;

/**
 * ContentModel
 *
 * @author sunny
 * @version 1.0.0
 * @since 2018-05-23
 */
public class ContentModel implements Serializable {

    private String title;

    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

}


text:
@interface KDTree ()

@property (nonatomic) KDTreeNode *root;
@property (nonatomic, readwrite) NSSet *annotations;

@end

@implementation KDTree

- (id)initWithAnnotations:(NSArray *)annotations {

    self = [super init];

    if (self == nil) return nil;

    self.annotations = [NSSet setWithArray:annotations];
    self.root = [self buildTree:annotations level:0 mapRect:MKMapRectWorld];

    return self;
}

#pragma mark - Search

- (NSArray *)annotationsInMapRect:(MKMapRect)rect {

    NSMutableArray *result = [NSMutableArray array];

    [self doSearchInMapRect:rect
         mutableAnnotations:result
                    curNode:self.root
                   curLevel:0];

    return result;
}

- (NSArray *)annotationsInMapRect:(MKMapRect)rect withRespectToCentroids:(NSMutableArray *)centroids {

    NSMutableArray *result = [NSMutableArray array];

    for (Centroid *centroid in centroids) {
        [centroid invalidateAccumulatedData];
    }

    [self doSearchInMapRect:rect
         mutableAnnotations:result
                    curNode:self.root
                   curLevel:0
     withRespectToCentroids:centroids
     andIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, centroids.count)]];

    [centroids enumerateObjectsUsingBlock:^(Centroid *centroid, NSUInteger idx, BOOL *stop) {
        [centroid calculateLocationBasedOnAccumulatedData];
    }];

    return result;
}

- (void)doSearchInMapRect:(MKMapRect)mapRect
       mutableAnnotations:(NSMutableArray *)annotations
                  curNode:(KDTreeNode *)curNode
                 curLevel:(NSInteger)level
   withRespectToCentroids:(NSMutableArray *)centroids
               andIndexes:(NSIndexSet *)indexes {

    NSParameterAssert(curNode);

    if (MKMapRectIntersectsRect(mapRect, curNode.mapRect) == NO) {
        return;
    }

    if (curNode.annotation) {
        NSAssert(curNode.numberOfAnnotations == 1, nil);

        __block CLLocationDistance minimalSquaredDistance = DBL_MAX;
        __block NSUInteger bestCenterIndex = NSNotFound;

        [centroids enumerateObjectsAtIndexes:indexes options:0 usingBlock:^(Centroid *centroid, NSUInteger idx, BOOL *stop) {
            double centroidX = centroid.mapPoint.x;
            double centroidY = centroid.mapPoint.y;

            double squaredCentroidX = centroid.squaredMapPoint.x;
            double squaredCentroidY = centroid.squaredMapPoint.y;

            double curNodeX = curNode.medianMapPoint.x;
            double curNodeY = curNode.medianMapPoint.y;

            double squaredCurNodeX = curNode.squaredMedianMapPoint.x;
            double squaredCurNodeY = curNode.squaredMedianMapPoint.y;

            //CLLocationDistance squaredDistanceBeetweenCenterAndPoint = pow(centroidX - curNodeX, 2) + pow(centroidY - curNodeY, 2);

            CLLocationDistance squaredDistanceBeetweenCenterAndPoint =
                squaredCentroidX + squaredCurNodeX + squaredCentroidY + squaredCurNodeY -
                2 * (centroidX * curNodeX + centroidY * curNodeY);

            if (squaredDistanceBeetweenCenterAndPoint < minimalSquaredDistance) {
                minimalSquaredDistance = squaredDistanceBeetweenCenterAndPoint;
                bestCenterIndex = idx;
            }
        }];

        if (bestCenterIndex != NSNotFound) {
            Centroid *bestCentroidFound = [centroids objectAtIndex:bestCenterIndex];

            bestCentroidFound.sumOfMapPoints = MKMapPointMake(bestCentroidFound.sumOfMapPoints.x + curNode.medianMapPoint.x, bestCentroidFound.sumOfMapPoints.y + curNode.medianMapPoint.y);

            bestCentroidFound.numberOfAnnotations++;
        } else {
            abort();
        }

        return;
    }

    if (indexes.count == 0) {
        return;
        //abort();

    }

    else if (indexes.count == 1) {
        Centroid *theOnlyCentroid = [centroids objectAtIndex:indexes.firstIndex];

        theOnlyCentroid.sumOfMapPoints = MKMapPointMake(theOnlyCentroid.sumOfMapPoints.x + curNode.sumOfMapPoints.x, theOnlyCentroid.sumOfMapPoints.y + curNode.sumOfMapPoints.y);

        theOnlyCentroid.numberOfAnnotations += curNode.numberOfAnnotations;

        return;
    }

    __block CLLocationDistance minimalSquaredDistanceBeetweenNodeAndCentroid = DBL_MAX;
    __block NSUInteger candidateCentroidIndex = NSNotFound;

    [centroids enumerateObjectsAtIndexes:indexes options:0 usingBlock:^(Centroid *centroid, NSUInteger centroidIndex, BOOL *stop) {
        CLLocationDistance distanceBeetweenNodeAndCentroid = MKMapRectSquaredDistanceToMapPoint(curNode.mapRect, centroid.mapPoint);

        if (distanceBeetweenNodeAndCentroid == 0) {
            if (minimalSquaredDistanceBeetweenNodeAndCentroid == 0) {
                *stop = YES;
                candidateCentroidIndex = NSNotFound;

                return;
            } else {
                minimalSquaredDistanceBeetweenNodeAndCentroid = 0;
            }
        }

        // TODO check one center exist!
        else if (minimalSquaredDistanceBeetweenNodeAndCentroid > distanceBeetweenNodeAndCentroid) {
            minimalSquaredDistanceBeetweenNodeAndCentroid = distanceBeetweenNodeAndCentroid;
            candidateCentroidIndex = centroidIndex;
        }
    }];

    NSMutableIndexSet *indexesForChildrenLeaves = [indexes mutableCopy];

    if (candidateCentroidIndex != NSNotFound) {
        Centroid *candidateCentroid = [centroids objectAtIndex:candidateCentroidIndex];

        __block BOOL candidateCentroidDominatesAllOtherCentroids = YES;

        [centroids enumerateObjectsAtIndexes:indexes options:0 usingBlock:^(Centroid *centroid, NSUInteger centroidIndex, BOOL *stop) {
            if (centroidIndex == candidateCentroidIndex) {
                return;
            }

            MKMapPoint firstDecisionLinePoint = MKMapPointMake((candidateCentroid.mapPoint.x + centroid.mapPoint.x) / 2, (candidateCentroid.mapPoint.y + centroid.mapPoint.y) / 2);

            double decisionLineSlope = -1 * (centroid.mapPoint.x - candidateCentroid.mapPoint.x) * (centroid.mapPoint.y - candidateCentroid.mapPoint.y);

            double b = firstDecisionLinePoint.y - decisionLineSlope * firstDecisionLinePoint.x;

            MKMapPoint secondDecisionLinePoint = MKMapPointMake(0, b);

            MKMapLine decisionLine = MKMapLineMake(firstDecisionLinePoint, secondDecisionLinePoint);

            if (MKMapLineIntersectsRect(decisionLine, curNode.mapRect)) {
                candidateCentroidDominatesAllOtherCentroids = NO;

                //*stop = YES; //?
            } else {
                [indexesForChildrenLeaves removeIndex:centroidIndex];
            }
        }];

        if (candidateCentroidDominatesAllOtherCentroids) {
            candidateCentroid.numberOfAnnotations += curNode.numberOfAnnotations;

            candidateCentroid.sumOfMapPoints = MKMapPointMake(
                                                              candidateCentroid.sumOfMapPoints.x + curNode.sumOfMapPoints.x,
                                                              candidateCentroid.sumOfMapPoints.y + curNode.sumOfMapPoints.y
                                                              );

            return;
        }
    }

    [self doSearchInMapRect:mapRect mutableAnnotations:annotations curNode:curNode.left curLevel:(level + 1) withRespectToCentroids:centroids andIndexes:indexesForChildrenLeaves];

    [self doSearchInMapRect:mapRect mutableAnnotations:annotations curNode:curNode.right curLevel:(level + 1) withRespectToCentroids:centroids andIndexes:indexesForChildrenLeaves];
}

- (void)doSearchInMapRect:(MKMapRect)mapRect
       mutableAnnotations:(NSMutableArray *)annotations
                  curNode:(KDTreeNode *)curNode
                 curLevel:(NSInteger)level {

    if (curNode == nil) {
        abort();
    }

    if (curNode.annotation) {
        if (MKMapRectContainsPoint(mapRect, MKMapPointForCoordinate(curNode.annotation.coordinate))) {
            [annotations addObject:curNode.annotation];
        }

        return;
    }

    MKMapPoint mapPoint = curNode.medianMapPoint;

    BOOL useY = (BOOL)(level % 2);

    float val = (useY ? mapPoint.y : mapPoint.x);
    float minVal = (useY ? MKMapRectGetMinY(mapRect) : MKMapRectGetMinX(mapRect));
    float maxVal = (useY ? MKMapRectGetMaxY(mapRect) : MKMapRectGetMaxX(mapRect));

    if (maxVal < val) {
        [self doSearchInMapRect:mapRect
             mutableAnnotations:annotations
                        curNode:curNode.left
                       curLevel:(level + 1)];
    }

    else if (minVal > val){
        [self doSearchInMapRect:mapRect
             mutableAnnotations:annotations
                        curNode:curNode.right
                       curLevel:(level + 1)];
    }

    else {

        [self doSearchInMapRect:mapRect
             mutableAnnotations:annotations
                        curNode:curNode.left
                       curLevel:(level + 1)];

        [self doSearchInMapRect:mapRect
             mutableAnnotations:annotations
                        curNode:curNode.right
                       curLevel:(level + 1)];
    }

}

- (KDTreeNode *)buildTree:(NSArray *)annotations level:(NSInteger)curLevel mapRect:(MKMapRect)mapRect {
    NSInteger count = [annotations count];

    if (count == 0) {
        abort();
    }

    KDTreeNode *treeNode = [[KDTreeNode alloc] init];
    treeNode.numberOfAnnotations = count;

    if (count == 1) {
        treeNode.annotation = [annotations firstObject];
        treeNode.medianMapPoint = MKMapPointForCoordinate(treeNode.annotation.coordinate);
        treeNode.squaredMedianMapPoint = MKMapPointMake(pow(treeNode.medianMapPoint.x, 2), pow(treeNode.medianMapPoint.y, 2));

        treeNode.mapRect = [self mapRectThatFitsAnnotations:@[ treeNode.annotation ]];

        return treeNode;
    }

    BOOL sortY = (BOOL)(curLevel % 2);

    NSArray *sortedAnnotations = [self sortedAnnotations:annotations sortY:sortY];

    MKMapRect treeNodeRect = mapRect;

    if (curLevel == 0) {
        treeNodeRect = [self mapRectThatFitsAnnotations:sortedAnnotations];
    }

    treeNode.mapRect = treeNodeRect;

    if (MKMapRectContainsRect(mapRect, treeNode.mapRect) == NO) {
        abort();
    }

    // Median map point
    NSInteger medianIdx = [sortedAnnotations count] / 2;
    CLLocation *medianAnnotation = [sortedAnnotations objectAtIndex:medianIdx];

    // medianMapPoint for not-end leaves are not used now
    //treeNode.medianMapPoint = MKMapPointForCoordinate(medianAnnotation.coordinate);

    NSArray *leftAnnotations = [sortedAnnotations subarrayWithRange:NSMakeRange(0, medianIdx)];
    NSArray *rightAnnotations = [sortedAnnotations subarrayWithRange:NSMakeRange(medianIdx, count - medianIdx)];

    NSAssert([leftAnnotations containsObject:medianAnnotation] == NO, nil);
    NSAssert([rightAnnotations containsObject:medianAnnotation], nil);

    MKMapRect leftLeaveMapRect = [self mapRectThatFitsAnnotations:leftAnnotations];
    MKMapRect rightLeaveMapRect = [self mapRectThatFitsAnnotations:rightAnnotations];

    NSAssert(MKMapRectContainsRect(mapRect, leftLeaveMapRect), nil);
    NSAssert(MKMapRectContainsRect(mapRect, rightLeaveMapRect), nil);

    treeNode.left = [self buildTree:leftAnnotations level:(curLevel + 1) mapRect:leftLeaveMapRect];
    treeNode.right = [self buildTree:rightAnnotations level:(curLevel + 1) mapRect:rightLeaveMapRect];

    __block MKMapPoint sumOfMapPoints = MKMapPointMake(0, 0);

    [sortedAnnotations enumerateObjectsUsingBlock:^(CLLocation *annotation, NSUInteger idx, BOOL *stop) {
        sumOfMapPoints.x += MKMapPointForCoordinate(annotation.coordinate).x;
        sumOfMapPoints.y += MKMapPointForCoordinate(annotation.coordinate).y;
    }];

    treeNode.sumOfMapPoints = sumOfMapPoints;
    treeNode.numberOfAnnotations = count;

    return treeNode;
}

- (MKMapRect)mapRectThatFitsAnnotations:(NSArray *)annotations {
    MKMapRect fitRect = MKMapRectNull;

    for (id <MKAnnotation> annotation in annotations) {
        MKMapPoint annotationPoint = MKMapPointForCoordinate(annotation.coordinate);
        MKMapRect pointRect = MKMapRectMake(annotationPoint.x, annotationPoint.y, 0.1, 0.1);

        fitRect = MKMapRectUnion(fitRect, pointRect);
    }
    return fitRect;
}

- (NSArray *)sortedAnnotations:(NSArray *)annotations sortY:(BOOL)sortY {

    return [annotations sortedArrayUsingComparator:^NSComparisonResult(id<MKAnnotation> a1, id<MKAnnotation> a2) {

        MKMapPoint p1 = MKMapPointForCoordinate([a1 coordinate]);
        MKMapPoint p2 = MKMapPointForCoordinate([a2 coordinate]);

        float val1 = (sortY ? p1.y : p1.x);
        float val2 = (sortY ? p2.y : p2.x);

        if(val1 > val2){
            return NSOrderedDescending;
        }
        else if(val1 < val2){
            return NSOrderedAscending;
        }
        else {
            return NSOrderedSame;
        }

    }];

}

@end
//        CLLocation *minimalLocation = [sortedAnnotations firstObject];
//        CLLocation *maximalLocation = [sortedAnnotations lastObject];


text:
@implementation ClassNameTableViewHelper
@synthesize modeler = _modeler;
@synthesize delegate = _delegate;

// The only essential/required tableview dataSource method
- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView {
    return [[[self.modeler parsedDictionary] allKeys] count];
}

// This method is optional if you use bindings to provide the data
- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
    // Group our "model" object, which is a dictionary
    NSArray *keysArray = [[self.modeler parsedDictionary ] allKeys];
    ClassBaseObject *object = (ClassBaseObject *)[[self.modeler parsedDictionary] objectForKey:[keysArray objectAtIndex:row]];
    // In IB the tableColumn has the identifier set to the same string as the keys in our dictionary
    NSString *identifier = [tableColumn identifier];

    NSTextField *textField = [tableView makeViewWithIdentifier:identifier owner:self];
    NSString *sizeString = [NSString stringWithFormat:@"%@ : %@", object.className, object.baseClass];
    textField.objectValue = sizeString;
    return textField;
}

- (void)tableViewSelectionDidChange:(NSNotification *)notification
{
    if([self.delegate conformsToProtocol:@protocol(TableSelectionChangeDelegate)]) {
        [self.delegate tableDidChangeSelection:[notification object]];
    }
}

@end