// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package unicode_test

import (
	"testing"
	. "unicode"
)

type T struct {
	rune   rune
	script string
}

// Hand-chosen tests from Unicode 5.1.0, 6.0.0, 6.2.0, 6.3.0, 7.0.0 and 8.0.0
// mostly to discover when new scripts and categories arise.
var inTest = []T{
	{0x11711, "Ahom"},
	{0x1e900, "Adlam"},
	{0x14646, "Anatolian_Hieroglyphs"},
	{0x06e2, "Arabic"},
	{0x0567, "Armenian"},
	{0x10b20, "Avestan"},
	{0x11c00, "Bhaiksuki"},
	{0x1b37, "Balinese"},
	{0xa6af, "Bamum"},
	{0x16ada, "Bassa_Vah"},
	{0x1be1, "Batak"},
	{0x09c2, "Bengali"},
	{0x3115, "Bopomofo"},
	{0x282d, "Braille"},
	{0x1a1a, "Buginese"},
	{0x1747, "Buhid"},
	{0x11011, "Brahmi"},
	{0x156d, "Canadian_Aboriginal"},
	{0x102a9, "Carian"},
	{0x10563, "Caucasian_Albanian"},
	{0x11111, "Chakma"},
	{0xaa4d, "Cham"},
	{0x13c2, "Cherokee"},
	{0x0020, "Common"},
	{0x1d4a5, "Common"},
	{0x2cfc, "Coptic"},
	{0x12420, "Cuneiform"},
	{0x1080c, "Cypriot"},
	{0xa663, "Cyrillic"},
	{0x10430, "Deseret"},
	{0x094a, "Devanagari"},
	{0x1BC00, "Duployan"},
	{0x13001, "Egyptian_Hieroglyphs"},
	{0x10500, "Elbasan"},
	{0x1271, "Ethiopic"},
	{0x10fc, "Georgian"},
	{0x2c40, "Glagolitic"},
	{0x10347, "Gothic"},
	{0x11303, "Grantha"},
	{0x03ae, "Greek"},
	{0x0abf, "Gujarati"},
	{0x0a24, "Gurmukhi"},
	{0x3028, "Han"},
	{0x11b8, "Hangul"},
	{0x1727, "Hanunoo"},
	{0x108FF, "Hatran"},
	{0x05a0, "Hebrew"},
	{0x3058, "Hiragana"},
	{0x10841, "Imperial_Aramaic"},
	{0x20e6, "Inherited"},
	{0x10b70, "Inscriptional_Pahlavi"},
	{0x10b5a, "Inscriptional_Parthian"},
	{0xa9d0, "Javanese"},
	{0x1109f, "Kaithi"},
	{0x0cbd, "Kannada"},
	{0x30a6, "Katakana"},
	{0xa928, "Kayah_Li"},
	{0x10a11, "Kharoshthi"},
	{0x17c6, "Khmer"},
	{0x11211, "Khojki"},
	{0x112df, "Khudawadi"},
	{0x0eaa, "Lao"},
	{0x1d79, "Latin"},
	{0x1c10, "Lepcha"},
	{0x1930, "Limbu"},
	{0x10755, "Linear_A"},
	{0x1003c, "Linear_B"},
	{0xa4e1, "Lisu"},
	{0x10290, "Lycian"},
	{0x10930, "Lydian"},
	{0x11173, "Mahajani"},
	{0x0d42, "Malayalam"},
	{0x0843, "Mandaic"},
	{0x10ac8, "Manichaean"},
	{0x11cB6, "Marchen"},
	{0xabd0, "Meetei_Mayek"},
	{0x1e800, "Mende_Kikakui"},
	{0x1099f, "Meroitic_Hieroglyphs"},
	{0x109a0, "Meroitic_Cursive"},
	{0x16f00, "Miao"},
	{0x11611, "Modi"},
	{0x1822, "Mongolian"},
	{0x16a60, "Mro"},
	{0x11293, "Multani"},
	{0x104c, "Myanmar"},
	{0x10880, "Nabataean"},
	{0x11400, "Newa"},
	{0x19c3, "New_Tai_Lue"},
	{0x07f8, "Nko"},
	{0x169b, "Ogham"},
	{0x1c6a, "Ol_Chiki"},
	{0x10C80, "Old_Hungarian"},
	{0x10310, "Old_Italic"},
	{0x10a80, "Old_North_Arabian"},
	{0x10350, "Old_Permic"},
	{0x103c9, "Old_Persian"},
	{0x10a6f, "Old_South_Arabian"},
	{0x10c20, "Old_Turkic"},
	{0x0b3e, "Oriya"},
	{0x104d9, "Osage"},
	{0x10491, "Osmanya"},
	{0x16b2b, "Pahawh_Hmong"},
	{0x10876, "Palmyrene"},
	{0x11ACE, "Pau_Cin_Hau"},
	{0xa860, "Phags_Pa"},
	{0x10918, "Phoenician"},
	{0x10baf, "Psalter_Pahlavi"},
	{0xa949, "Rejang"},
	{0x16c0, "Runic"},
	{0x081d, "Samaritan"},
	{0xa892, "Saurashtra"},
	{0x111a0, "Sharada"},
	{0x10463, "Shavian"},
	{0x115c1, "Siddham"},
	{0x1D920, "SignWriting"},
	{0x0dbd, "Sinhala"},
	{0x110d0, "Sora_Sompeng"},
	{0x1ba3, "Sundanese"},
	{0xa803, "Syloti_Nagri"},
	{0x070f, "Syriac"},
	{0x170f, "Tagalog"},
	{0x176f, "Tagbanwa"},
	{0x1972, "Tai_Le"},
	{0x1a62, "Tai_Tham"},
	{0xaadc, "Tai_Viet"},
	{0x116c9, "Takri"},
	{0x0bbf, "Tamil"},
	{0x17000, "Tangut"},
	{0x0c55, "Telugu"},
	{0x07a7, "Thaana"},
	{0x0e46, "Thai"},
	{0x0f36, "Tibetan"},
	{0x2d55, "Tifinagh"},
	{0x114d9, "Tirhuta"},
	{0x10388, "Ugaritic"},
	{0xa60e, "Vai"},
	{0x118ff, "Warang_Citi"},
	{0xa216, "Yi"},
}

var outTest = []T{ // not really worth being thorough
	{0x20, "Telugu"},
}

var inCategoryTest = []T{
	{0x0081, "Cc"},
	{0x200B, "Cf"},
	{0xf0000, "Co"},
	{0xdb80, "Cs"},
	{0x0236, "Ll"},
	{0x1d9d, "Lm"},
	{0x07cf, "Lo"},
	{0x1f8a, "Lt"},
	{0x03ff, "Lu"},
	{0x0bc1, "Mc"},
	{0x20df, "Me"},
	{0x07f0, "Mn"},
	{0x1bb2, "Nd"},
	{0x10147, "Nl"},
	{0x2478, "No"},
	{0xfe33, "Pc"},
	{0x2011, "Pd"},
	{0x301e, "Pe"},
	{0x2e03, "Pf"},
	{0x2e02, "Pi"},
	{0x0022, "Po"},
	{0x2770, "Ps"},
	{0x00a4, "Sc"},
	{0xa711, "Sk"},
	{0x25f9, "Sm"},
	{0x2108, "So"},
	{0x2028, "Zl"},
	{0x2029, "Zp"},
	{0x202f, "Zs"},
	// Unifieds.
	{0x04aa, "L"},
	{0x0009, "C"},
	{0x1712, "M"},
	{0x0031, "N"},
	{0x00bb, "P"},
	{0x00a2, "S"},
	{0x00a0, "Z"},
}

var inPropTest = []T{
	{0x0046, "ASCII_Hex_Digit"},
	{0x200F, "Bidi_Control"},
	{0x2212, "Dash"},
	{0xE0001, "Deprecated"},
	{0x00B7, "Diacritic"},
	{0x30FE, "Extender"},
	{0xFF46, "Hex_Digit"},
	{0x2E17, "Hyphen"},
	{0x2FFB, "IDS_Binary_Operator"},
	{0x2FF3, "IDS_Trinary_Operator"},
	{0xFA6A, "Ideographic"},
	{0x200D, "Join_Control"},
	{0x0EC4, "Logical_Order_Exception"},
	{0x2FFFF, "Noncharacter_Code_Point"},
	{0x065E, "Other_Alphabetic"},
	{0x2065, "Other_Default_Ignorable_Code_Point"},
	{0x0BD7, "Other_Grapheme_Extend"},
	{0x0387, "Other_ID_Continue"},
	{0x212E, "Other_ID_Start"},
	{0x2094, "Other_Lowercase"},
	{0x2040, "Other_Math"},
	{0x216F, "Other_Uppercase"},
	{0x0027, "Pattern_Syntax"},
	{0x0020, "Pattern_White_Space"},
	{0x06DD, "Prepended_Concatenation_Mark"},
	{0x300D, "Quotation_Mark"},
	{0x2EF3, "Radical"},
	{0x061F, "STerm"}, // Deprecated alias of Sentence_Terminal
	{0x061F, "Sentence_Terminal"},
	{0x2071, "Soft_Dotted"},
	{0x003A, "Terminal_Punctuation"},
	{0x9FC3, "Unified_Ideograph"},
	{0xFE0F, "Variation_Selector"},
	{0x0020, "White_Space"},
}

func TestScripts(t *testing.T) {
	notTested := make(map[string]bool)
	for k := range Scripts {
		notTested[k] = true
	}
	for _, test := range inTest {
		if _, ok := Scripts[test.script]; !ok {
			t.Fatal(test.script, "not a known script")
		}
		if !Is(Scripts[test.script], test.rune) {
			t.Errorf("IsScript(%U, %s) = false, want true", test.rune, test.script)
		}
		delete(notTested, test.script)
	}
	for _, test := range outTest {
		if Is(Scripts[test.script], test.rune) {
			t.Errorf("IsScript(%U, %s) = true, want false", test.rune, test.script)
		}
	}
	for k := range notTested {
		t.Error("script not tested:", k)
	}
}

func TestCategories(t *testing.T) {
	notTested := make(map[string]bool)
	for k := range Categories {
		notTested[k] = true
	}
	for _, test := range inCategoryTest {
		if _, ok := Categories[test.script]; !ok {
			t.Fatal(test.script, "not a known category")
		}
		if !Is(Categories[test.script], test.rune) {
			t.Errorf("IsCategory(%U, %s) = false, want true", test.rune, test.script)
		}
		delete(notTested, test.script)
	}
	for k := range notTested {
		t.Error("category not tested:", k)
	}
}

func TestProperties(t *testing.T) {
	notTested := make(map[string]bool)
	for k := range Properties {
		notTested[k] = true
	}
	for _, test := range inPropTest {
		if _, ok := Properties[test.script]; !ok {
			t.Fatal(test.script, "not a known prop")
		}
		if !Is(Properties[test.script], test.rune) {
			t.Errorf("IsCategory(%U, %s) = false, want true", test.rune, test.script)
		}
		delete(notTested, test.script)
	}
	for k := range notTested {
		t.Error("property not tested:", k)
	}
}


module Main where

data Inf = Nil | Int :* Inf

main
  = putStrLn $ show (f (1 :* (2 :* ( 3 :* Nil))))

f :: Inf -> Int
f Nil = 0
f (a :* b) = a


<?php

/*
  +---------------------------------------------------------------------------+
  | Revive Adserver                                                           |
  | http://www.revive-adserver.com                                            |
  |                                                                           |
  | Copyright: See the COPYRIGHT.txt file.                                    |
  | License: GPLv2 or later, see the LICENSE.txt file.                        |
  +---------------------------------------------------------------------------+
 */

/** status messages * */
$GLOBALS['strInstallStatusRecovery'] = 'Recuperando Revive Adserver %s';
$GLOBALS['strInstallStatusInstall'] = 'Instalando Revive Adserver %s';
$GLOBALS['strInstallStatusUpgrade'] = 'Atualizando para Revive Adserver %s';
$GLOBALS['strInstallStatusUpToDate'] = 'Detectado Revive Adserver %s';

/** welcome step * */
$GLOBALS['strWelcomeTitle'] = "Bem-vindo ao {$PRODUCT_NAME}";
$GLOBALS['strInstallIntro'] = "Obrigado por escolher {$PRODUCT_NAME}. Este assistente irá guiá-lo através do processo de instalação {$PRODUCT_NAME}.";
$GLOBALS['strUpgradeIntro'] = "Obrigado por escolher {$PRODUCT_NAME}. Este assistente irá guiá-lo através do processo de atualização {$PRODUCT_NAME}.";
$GLOBALS['strInstallerHelpIntro'] = "Para ajudá-lo com o processo de instalação do {$PRODUCT_NAME}, por favor, consulte a  documentação.";
$GLOBALS['strTermsIntro'] = "{$PRODUCT_NAME} é distribuído livremente sob uma licença Open Source, a GNU General Public License. Por favor, leia e concorde com os seguintes documentos para continuar a instalação.";

/** check step * */
$GLOBALS['strSystemCheck'] = "Verificação do sistema";
$GLOBALS['strSystemCheckIntro'] = "O assistente de instação efetuou uma verificação de suas configurações de servidor web para assegurar que o processo de instalação pode ser concluído com sucesso.
Por favor verifique qualquer questões destacada para completar o processo de instalação.";

$GLOBALS['strAppCheckDbIntegrityError'] = "Nós detectamos problemas de integridade com seu banco de dados. Isto significa que o layout de seu banco de dados                                                    está diferente do que esperamos que seja. Isto pode ser devido a personalização de seu banco de dados.";

$GLOBALS['strSyscheckProgressMessage'] = "Verificando parâmetros do sistema...";
$GLOBALS['strError'] = "Erro";
$GLOBALS['strWarning'] = "Alerta";
$GLOBALS['strOK'] = "OK";
$GLOBALS['strSyscheckName'] = "Verificar nome";
$GLOBALS['strSyscheckValue'] = "Valor atual";
$GLOBALS['strSyscheckStatus'] = "Estado";

/** admin login step * */

/** database step * */
$GLOBALS['strDbProgressMessageInstall'] = 'Instalando o banco de dados...';
$GLOBALS['strDbProgressMessageUpgrade'] = 'Atualizando o banco de dados...';
$GLOBALS['strDbSeeMoreFields'] = 'Ver mais campos de banco de dados...';
$GLOBALS['strDBInstallSuccess'] = "Banco de dados criado com sucesso";
$GLOBALS['strDBUpgradeSuccess'] = "Banco de dados atualizado com sucesso";

$GLOBALS['strDetectedVersion'] = "Versão {$PRODUCT_NAME} detectada";

/** config step * */
$GLOBALS['strPreviousInstallTitle'] = "Instalação anterior";

/** jobs step * */
$GLOBALS['strJobsProgressInstallMessage'] = "Executando tarefas de instalação...";
$GLOBALS['strJobsProgressUpgradeMessage'] = "Executando tarefas de atualização...";

$GLOBALS['strPluginTaskChecking'] = "Verificando Plugin {$PRODUCT_NAME}";
$GLOBALS['strPluginTaskInstalling'] = "Instalando Plugin {$PRODUCT_NAME}";
$GLOBALS['strPostInstallTaskRunning'] = "Executando tarefas";

/** finish step * */
$GLOBALS['strFinishInstallTitle'] = "Sua instalação {$PRODUCT_NAME} está completa.";
$GLOBALS['strFinishUpgradeWithErrorsTitle'] = "Sua atualização {$PRODUCT_NAME} está completa. Por favor, verifique as questões destacadas.";
$GLOBALS['strFinishUpgradeTitle'] = "Sua atualização {$PRODUCT_NAME} está completa.";
$GLOBALS['strFinishInstallWithErrorsTitle'] = "Sua instalação {$PRODUCT_NAME} está completa. Por favor, verifique as questões destacadas.";
$GLOBALS['strPluginInstallFailed'] = "Falha na instalação do plugin \"%s\":";
$GLOBALS['strTaskInstallFailed'] = "Ocorreu um erro ao executar a tarefa de instalação \"%s\":";
$GLOBALS['strContinueToLogin'] = "Clique \"Continuar\" para logar em sua instância de {$PRODUCT_NAME}.";


//  Estimote Fleet Management SDK
//  Copyright (c) 2015 Estimote. All rights reserved.

#import <Foundation/Foundation.h>
#import "ESTSettingReadWrite.h"

#define ESTSettingEstimoteTLMPowerErrorDomain @"ESTSettingEstimoteTLMPowerErrorDomain"

/**
 *  Describes Estimote Telemetry Power validation error.
 */
typedef NS_ENUM(NSUInteger, ESTSettingEstimoteTLMPowerError) {
    /**
     *  Provided value does not belong to the ESTEstimoteTLMPower enum.
     */
    ESTSettingEstimoteTLMPowerErrorValueNotAllowed = 1
};

@class ESTSettingEstimoteTLMPower;

NS_ASSUME_NONNULL_BEGIN

/**
 *  Block used as a result of read/write setting Power operation for Estimote Telemetry packet.
 *
 *  @param powerSetting Power setting carrying value.
 *  @param error Operation error. No error means success.
 */
typedef void(^ESTSettingEstimoteTLMPowerCompletionBlock)(ESTSettingEstimoteTLMPower * _Nullable powerSetting, NSError * _Nullable error);

/**
 *  Available Tx Power levels for Estimote Telemetry packet.
 *  @see ESTBeaconPower
 */
typedef NS_ENUM(int8_t, ESTEstimoteTLMPower)
{
    ESTEstimoteTLMPowerLevel1  = -30,
    ESTEstimoteTLMPowerLevel1A = -40, // use this instead of -30 for nRF52-based beacons (e.g., G1.8 and later, F3.3 and later)
    ESTEstimoteTLMPowerLevel2  = -20,
    ESTEstimoteTLMPowerLevel3  = -16,
    ESTEstimoteTLMPowerLevel4  = -12,
    ESTEstimoteTLMPowerLevel5  =  -8,
    ESTEstimoteTLMPowerLevel6  =  -4,
    ESTEstimoteTLMPowerLevel7  =   0,
    ESTEstimoteTLMPowerLevel8  =   4,
    ESTEstimoteTLMPowerLevel9  =  10, // for Location Beacons with long-range support (e.g., F3.3 and later)
    ESTEstimoteTLMPowerLevel9A =  20  // +20 replaced +10 in Location Beacons I1.2 (i.e., with UWB)
};

/**
 *  ESTSettingEstimoteTLMPower represents Estimote Telemetry Power value.
 */
@interface ESTSettingEstimoteTLMPower : ESTSettingReadWrite <NSCopying>

/**
 *  Designated initializer. Validates provided value internally with +validationErrorForValue:.
 *
 *  @see +[ESTSettingEstimoteTLMPower validationErrorForValue:]
 *
 *  @param power Estimote Telemetry Power value.
 *
 *  @return Initialized object. Returns nil if validation fails.
 */
- (instancetype _Nullable)initWithValue:(ESTEstimoteTLMPower)power;

/**
 *  Returns current value of Estimote Telemetry Power setting.
 *
 *  @return Estimote Telemetry Power value.
 */
- (ESTEstimoteTLMPower)getValue;

/**
 *  Method allows to read value of initialized Estimote Telemetry Power setting object.
 *
 *  @param completion Block to be invoked when operation is complete.
 */
- (void)readValueWithCompletion:(ESTSettingEstimoteTLMPowerCompletionBlock)completion;

/**
 *  Method allows to create write operation from already initialized Estimote Telemetry Power setting object.
 *  Value provided during initialization will be used as a desired value.
 *
 *  @param power Power value to be written to the device.
 *  @param completion Block to be invoked when operation is complete.
 */
- (void)writeValue:(ESTEstimoteTLMPower)power completion:(ESTSettingEstimoteTLMPowerCompletionBlock)completion;

/**
 *  Method checks if provided value is allowed. Returns nil if validation passes.
 *
 *  @param power Power value.
 *
 *  @return Error object describing why validation failed. Nil if validation passes.
 */
+ (NSError * _Nullable)validationErrorForValue:(ESTEstimoteTLMPower)power;

@end

NS_ASSUME_NONNULL_END


MultiVision

"Extreme Tech Training"


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
    </dependencies>
    <scenes>
        <!--View Controller-->
        <scene sceneID="EHf-IW-A2E">
            <objects>
                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
                        <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                    </view>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="53" y="375"/>
        </scene>
    </scenes>
</document>


<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{E626BD6E-BF38-4EB7-A128-5CA6F40EF557}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>OnTopReplica</RootNamespace>
    <AssemblyName>OnTopReplica</AssemblyName>
    <TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <ApplicationIcon>new-flat-icon.ico</ApplicationIcon>
    <IsWebBootstrapper>false</IsWebBootstrapper>
    <GenerateManifests>false</GenerateManifests>
    <TargetZone>Internet</TargetZone>
    <StartupObject>OnTopReplica.Program</StartupObject>
    <ExcludedPermissions>
    </ExcludedPermissions>
    <SignAssembly>false</SignAssembly>
    <ManifestCertificateThumbprint>A305A505E19CF40E069521C80C13AB3C900EDB7C</ManifestCertificateThumbprint>
    <ManifestKeyFile>OnTopReplica_1_TemporaryKey.pfx</ManifestKeyFile>
    <SignManifests>false</SignManifests>
    <TargetFrameworkSubset>
    </TargetFrameworkSubset>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>3.5</OldToolsVersion>
    <UpgradeBackupLocation />
    <TargetFrameworkProfile>
    </TargetFrameworkProfile>
    <PublishUrl>publish\</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Disk</InstallFrom>
    <UpdateEnabled>true</UpdateEnabled>
    <UpdateMode>Background</UpdateMode>
    <UpdateInterval>1</UpdateInterval>
    <UpdateIntervalUnits>Weeks</UpdateIntervalUnits>
    <UpdatePeriodically>true</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <MapFileExtensions>true</MapFileExtensions>
    <UpdateUrl>http://www.klopfenstein.net/public/Uploads/ontopreplica/</UpdateUrl>
    <SupportUrl>http://www.klopfenstein.net/lorenz.aspx/ontopreplica</SupportUrl>
    <TargetCulture>en</TargetCulture>
    <ProductName>OnTopReplica</ProductName>
    <PublisherName>Lorenz Cuno Klopfenstein</PublisherName>
    <CreateWebPageOnPublish>true</CreateWebPageOnPublish>
    <WebPage>publish.htm</WebPage>
    <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
    <ApplicationRevision>0</ApplicationRevision>
    <ApplicationVersion>3.5.1.%2a</ApplicationVersion>
    <UseApplicationTrust>false</UseApplicationTrust>
    <PublishWizardCompleted>true</PublishWizardCompleted>
    <BootstrapperEnabled>true</BootstrapperEnabled>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>
    </DocumentationFile>
    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
    <UseVSHostingProcess>true</UseVSHostingProcess>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>
    </DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>
    </DocumentationFile>
    <DebugSymbols>true</DebugSymbols>
    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup />
  <PropertyGroup />
  <PropertyGroup />
  <PropertyGroup />
  <PropertyGroup />
  <PropertyGroup />
  <PropertyGroup>
    <ApplicationManifest>OnTopReplica.exe.manifest</ApplicationManifest>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="WindowsFormsAero, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
      <HintPath>..\packages\Windows-Forms-Aero.3.0.1\lib\net461\WindowsFormsAero.dll</HintPath>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="AppPaths.cs" />
    <Compile Include="AppStrings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>AppStrings.resx</DependentUpon>
    </Compile>
    <Compile Include="AspectRatioForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="CloneClickEventArgs.cs" />
    <Compile Include="CloseRequestEventArgs.cs" />
    <Compile Include="FullscreenFormManager.cs" />
    <Compile Include="FullscreenMode.cs" />
    <Compile Include="GeometryExtensions.cs" />
    <Compile Include="HotKeyTextBox.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="ImageComboBox.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="Log.cs" />
    <Compile Include="MainForm_Features.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MainForm_Gui.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MainForm_MenuEvents.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MainForm_ChildForms.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MessagePumpManager.cs" />
    <Compile Include="MessagePumpProcessors\FlashCloner.cs" />
    <Compile Include="MessagePumpProcessors\GroupSwitchManager.cs" />
    <Compile Include="IMessagePumpProcessor.cs" />
    <Compile Include="MessagePumpProcessors\BaseMessagePumpProcessor.cs" />
    <Compile Include="MessagePumpProcessors\ShellInterceptProcessor.cs" />
    <Compile Include="MessagePumpProcessors\WindowKeeper.cs" />
    <Compile Include="Native\ErrorMethods.cs" />
    <Compile Include="Native\FilesystemMethods.cs" />
    <Compile Include="Native\HookMethods.cs" />
    <Compile Include="Native\HotKeyMethods.cs" />
    <Compile Include="Native\HT.cs" />
    <Compile Include="Platforms\DebugPlatform.cs" />
    <Compile Include="Platforms\WindowsEight.cs" />
    <Compile Include="PluginRegionLocator.cs" />
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
      <DependentUpon>Settings.settings</DependentUpon>
    </Compile>
    <Compile Include="Shell.cs" />
    <Compile Include="SidePanelContainer.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="SidePanelContainer.Designer.cs">
      <DependentUpon>SidePanelContainer.cs</DependentUpon>
    </Compile>
    <Compile Include="SidePanels\AboutPanel.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="SidePanels\AboutPanel.Designer.cs">
      <DependentUpon>AboutPanel.cs</DependentUpon>
    </Compile>
    <Compile Include="SidePanels\AboutPanelContents.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="SidePanels\AboutPanelContents.Designer.cs">
      <DependentUpon>AboutPanelContents.cs</DependentUpon>
    </Compile>
    <Compile Include="SidePanels\OptionsPanel.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="SidePanels\OptionsPanel.Designer.cs">
      <DependentUpon>OptionsPanel.cs</DependentUpon>
    </Compile>
    <Compile Include="SidePanels\GroupSwitchPanel.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="SidePanels\GroupSwitchPanel.Designer.cs">
      <DependentUpon>GroupSwitchPanel.cs</DependentUpon>
    </Compile>
    <Compile Include="StartupOptions\FourValueTypeConverter.cs" />
    <Compile Include="StartupOptions\PaddingConverter.cs" />
    <Compile Include="Strings.zh-TW.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.zh-TW.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.zh.Designer.cs">
      <DependentUpon>Strings.zh.resx</DependentUpon>
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
    </Compile>
    <Compile Include="Strings.cs.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.cs.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.da.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.da.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.de.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.de.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.es.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.es.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.fi.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.fi.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.it.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.it.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.no.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.no.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.pl.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.pl.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.pt-BR.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.pt-BR.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.pt.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.pt.resx</DependentUpon>
    </Compile>
    <Compile Include="Strings.ru.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Strings.ru.resx</DependentUpon>
    </Compile>
    <Compile Include="ThumbnailRegion.cs" />
    <Compile Include="WindowListMenuManager.cs" />
    <Compile Include="WindowSeekers\BaseWindowSeeker.cs" />
    <Compile Include="WindowSeekers\ByClassWindowSeeker.cs" />
    <Compile Include="WindowSeekers\ByTitleWindowSeeker.cs" />
    <Compile Include="WindowSeekers\IWindowSeeker.cs" />
    <Compile Include="WindowSeekers\PointBasedWindowSeeker.cs" />
    <Compile Include="WindowSeekers\RestoreWindowSeeker.cs" />
    <Compile Include="WindowSeekers\TaskWindowSeeker.cs" />
    <Compile Include="WindowsFormsExtensions.cs" />
    <EmbeddedResource Include="AppStrings.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>AppStrings.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="SidePanelContainer.resx">
      <DependentUpon>SidePanelContainer.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="SidePanels\AboutPanel.resx">
      <DependentUpon>AboutPanel.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="SidePanels\AboutPanelContents.resx">
      <DependentUpon>AboutPanelContents.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.ja-JP.resx" />
    <EmbeddedResource Include="Strings.zh-TW.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.zh-TW.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.zh.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.zh.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.pl.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.pl.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.ru.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.ru.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <None Include="Native\ITaskBarList.cs" />
    <Compile Include="Native\InputMethods.cs" />
    <Compile Include="Native\MessagingMethods.cs" />
    <Compile Include="Native\MK.cs" />
    <Compile Include="Native\Point.cs" />
    <Compile Include="Native\Rectangle.cs" />
    <Compile Include="Native\VirtualKeyState.cs" />
    <Compile Include="Native\WindowManagerMethods.cs" />
    <Compile Include="Native\WindowMethods.cs" />
    <Compile Include="Native\WM.cs" />
    <Compile Include="Native\WMSZ.cs" />
    <Compile Include="NDesk\Options\Options.cs" />
    <Compile Include="NotificationIcon.cs" />
    <Compile Include="ScreenPosition.cs" />
    <Compile Include="SidePanel.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="StartupOptions\CliStatus.cs" />
    <Compile Include="StartupOptions\CommandLineReportForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="StartupOptions\CommandLineReportForm.Designer.cs">
      <DependentUpon>CommandLineReportForm.cs</DependentUpon>
    </Compile>
    <Compile Include="StartupOptions\RectangleConverter.cs" />
    <Compile Include="StartupOptions\Factory.cs" />
    <Compile Include="StartupOptions\Options.cs" />
    <Compile Include="StartupOptions\ScreenPositionConverter.cs" />
    <Compile Include="StartupOptions\SizeConverter.cs" />
    <Compile Include="StoredRegionComparer.cs" />
    <Compile Include="Native\WindowsSevenMethods.cs" />
    <None Include="Native\CommonControls.cs" />
    <Compile Include="MessagePumpProcessors\HotKeyManager.cs" />
    <Compile Include="PlatformSupport.cs" />
    <Compile Include="Platforms\Other.cs" />
    <Compile Include="Platforms\WindowsSeven.cs" />
    <Compile Include="Platforms\WindowsVista.cs" />
    <Compile Include="Platforms\WindowsXp.cs" />
    <Compile Include="FocusedTextBox.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="MainForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MainForm.Designer.cs">
      <DependentUpon>MainForm.cs</DependentUpon>
    </Compile>
    <Compile Include="NativeToolStripRenderer.cs" />
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="SidePanels\GroupSwitchPanel.resx">
      <DependentUpon>GroupSwitchPanel.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="SidePanels\OptionsPanel.resx">
      <DependentUpon>OptionsPanel.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="StartupOptions\CommandLineReportForm.resx">
      <DependentUpon>CommandLineReportForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.cs.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.cs.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.da.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.da.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.de.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.de.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.es.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.es.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.fi.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.fi.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.it.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.it.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="MainForm.resx">
      <DependentUpon>MainForm.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="SidePanels\RegionPanel.resx">
      <DependentUpon>RegionPanel.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.no.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.no.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.pt-BR.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.pt-BR.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Include="Strings.pt.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Strings.pt.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <None Include="OnTopReplica.exe.manifest" />
    <None Include="packages.config" />
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="SidePanels\RegionPanel.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="SidePanels\RegionPanel.Designer.cs">
      <DependentUpon>RegionPanel.cs</DependentUpon>
    </Compile>
    <Compile Include="StoredRegion.cs" />
    <Compile Include="StoredRegionArray.cs" />
    <Compile Include="ThumbnailPanel.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="Update\UpdateCheckCompletedEventArgs.cs" />
    <Compile Include="Update\UpdateInformation.cs" />
    <Compile Include="Update\UpdateManager.cs" />
    <Compile Include="Win32Helper.cs" />
    <Compile Include="WindowHandle.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Assets\windows.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Assets\window16.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Assets\window_border16.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Assets\window_opacity16.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Assets\window_multiple16.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Assets\reduce.png" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Assets\flag_taiwan.png" />
    <Content Include="Assets\flag_brazil.png" />
    <Content Include="new-flat-icon.ico" />
    <None Include="Assets\flag_china.png" />
    <None Include="Resources\new-flat-logo-64.png" />
    <None Include="Resources\new-flat-icon.ico" />
    <None Include="Resources\help.png" />
    <None Include="Resources\minimize.png" />
    <None Include="LICENSE.txt">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
    <None Include="CREDITS.txt">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
    <None Include="Assets\fullscreen.png" />
    <None Include="Assets\clickforwarding.png" />
    <None Include="Assets\groupmode.png" />
    <None Include="Assets\pos_center.png" />
    <None Include="Assets\flag_spanish.png" />
    <None Include="Assets\flag_poland.png" />
    <None Include="Assets\flag_germany.png" />
    <Content Include="Assets\xiao_arrow.png" />
    <None Include="Assets\xiao_help.png" />
    <None Include="Assets\window_opacity_new.png" />
    <None Include="Assets\xiao_wrench.png" />
    <None Include="Assets\xiao_delete.png" />
    <None Include="Assets\xiao_add.png" />
    <None Include="Assets\xiao_ok.png" />
    <None Include="Assets\flag_danish.png" />
    <None Include="Assets\newicon.png" />
    <None Include="Assets\regions_new.png" />
    <None Include="Assets\desktop.png" />
    <None Include="Assets\list.png" />
    <Content Include="Assets\icon-new.ico" />
    <Content Include="Assets\screenshot-icon.ico" />
    <Content Include="Assets\window_multiple16.ico" />
  </ItemGroup>
  <ItemGroup>
    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
      <Visible>False</Visible>
      <ProductName>.NET Framework 2.0 %28x86%29</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.0 %28x86%29</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
  </ItemGroup>
  <ItemGroup>
    <None Include="app.config" />
    <None Include="Assets\back.png" />
    <None Include="Assets\arrow_down.png" />
    <None Include="Assets\arrow_up.png" />
    <None Include="Assets\component.png" />
    <None Include="Assets\flag_usa.png" />
    <None Include="Assets\flag_ita.png" />
    <None Include="Assets\flag_czech.png" />
    <Content Include="Assets\icon.ico" />
    <None Include="Assets\regions.png" />
    <None Include="Assets\x-oblique.png" />
    <None Include="Assets\xiao_up.png" />
    <None Include="Assets\xiao_down.png" />
    <None Include="Assets\pos_null.png" />
    <None Include="Assets\pos_topright.png" />
    <None Include="Assets\pos_topleft.png" />
    <None Include="Assets\pos_bottomright.png" />
    <None Include="Assets\pos_bottomleft.png" />
    <None Include="Assets\window_switch.png" />
    <None Include="Assets\icon.png" />
  </ItemGroup>
  <ItemGroup>
    <PublishFile Include="Assets\icon.ico">
      <Visible>False</Visible>
      <Group>
      </Group>
      <TargetPath>
      </TargetPath>
      <PublishState>Exclude</PublishState>
      <IncludeHash>True</IncludeHash>
      <FileType>File</FileType>
    </PublishFile>
    <PublishFile Include="Assets\screenshot-icon.ico">
      <Visible>False</Visible>
      <Group>
      </Group>
      <TargetPath>
      </TargetPath>
      <PublishState>Exclude</PublishState>
      <IncludeHash>True</IncludeHash>
      <FileType>File</FileType>
    </PublishFile>
    <PublishFile Include="Assets\window_multiple16.ico">
      <Visible>False</Visible>
      <Group>
      </Group>
      <TargetPath>
      </TargetPath>
      <PublishState>Exclude</PublishState>
      <IncludeHash>True</IncludeHash>
      <FileType>File</FileType>
    </PublishFile>
    <PublishFile Include="Assets\xiao_arrow.png">
      <Visible>False</Visible>
      <Group>
      </Group>
      <TargetPath>
      </TargetPath>
      <PublishState>Exclude</PublishState>
      <IncludeHash>True</IncludeHash>
      <FileType>File</FileType>
    </PublishFile>
    <PublishFile Include="cs\OnTopReplica.resources">
      <Visible>False</Visible>
      <Group>
      </Group>
      <TargetPath>
      </TargetPath>
      <PublishState>Include</PublishState>
      <IncludeHash>True</IncludeHash>
      <FileType>Satellite</FileType>
    </PublishFile>
    <PublishFile Include="da\OnTopReplica.resources">
      <Visible>False</Visible>
      <Group>
      </Group>
      <TargetPath>
      </TargetPath>
      <PublishState>Include</PublishState>
      <IncludeHash>True</IncludeHash>
      <FileType>Satellite</FileType>
    </PublishFile>
    <PublishFile Include="it\OnTopReplica.resources">
      <Visible>False</Visible>
      <Group>
      </Group>
      <TargetPath>
      </TargetPath>
      <PublishState>Include</PublishState>
      <IncludeHash>True</IncludeHash>
      <FileType>Satellite</FileType>
    </PublishFile>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <PropertyGroup>
    <PostBuildEvent>
    </PostBuildEvent>
  </PropertyGroup>
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>


<?php

/*
 *
 *  ____            _        _   __  __ _                  __  __ ____
 * |  _ \ ___   ___| | _____| |_|  \/  (_)_ __   ___      |  \/  |  _ \
 * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
 * |  __/ (_) | (__|   <  __/ |_| |  | | | | | |  __/_____| |  | |  __/
 * |_|   \___/ \___|_|\_\___|\__|_|  |_|_|_| |_|\___|     |_|  |_|_|
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * @author PocketMine Team
 * @link   http://www.pocketmine.net/
 *
 *
 */

namespace pocketmine\event\player;

use pocketmine\level\Position;
use pocketmine\Player;

/**
 * Called when a player is respawned (or first time spawned)
 */
class PlayerRespawnEvent extends PlayerEvent{
	public static $handlerList = null;

	/** @var Position */
	protected $position;

	/**
	 * @param Player   $player
	 * @param Position $position
	 */
	public function __construct(Player $player, Position $position){
		$this->player = $player;
		$this->position = $position;
	}

	/**
	 * @return Position
	 */
	public function getRespawnPosition(){
		return $this->position;
	}

	/**
	 * @param Position $position
	 */
	public function setRespawnPosition(Position $position){
		$this->position = $position;
	}
}


//=========================================================================
//  FORMATTEDPRINTER.H - part of
//
//                  OMNeT++/OMNEST
//           Discrete System Simulation in C++
//
//=========================================================================

/*--------------------------------------------------------------*
  Copyright (C) 2006-2017 OpenSim Ltd.

  This file is distributed WITHOUT ANY WARRANTY. See the file
  `license' for details on this and other legal matters.
*--------------------------------------------------------------*/

#ifndef __OMNETPP_COMMON_FORMATTEDPRINTER_H
#define __OMNETPP_COMMON_FORMATTEDPRINTER_H

#include "commondefs.h"

namespace omnetpp {
namespace common {

/**
 * Formatted printing to a stream. Primarily intended for
 * printing help in command-line tools.
 */
class COMMON_API FormattedPrinter
{
private:
    std::ostream& out;
    int margin = 80;
    int optionsWidth = 22;
    int columnSpacing = 2; // for tables
public:
    FormattedPrinter(std::ostream& out) : out(out) {}
    void setMargin(int n) {margin = n;}
    void setOptionsWidth(int n) {optionsWidth = n;}
    void line(const std::string& line = "");  // not wrapped, no blank line after
    void para(const std::string& paragraph); // wrapped, blank line after
    void indentPara(const std::string& paragraph); // indented, wrapped, blank line after
    void option(const std::string& option, const std::string& description);
    void table(const std::string& text, const std::vector<int>& userColumnWidths=std::vector<int>());
};

} // namespace common
} // namespace omnetpp

#endif


// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build !gccgo

#include "textflag.h"

//
// System call support for ARM64, FreeBSD
//

// Just jump to package syscall's implementation for all these functions.
// The runtime may know about them.

TEXT	·Syscall(SB),NOSPLIT,$0-56
	JMP	syscall·Syscall(SB)

TEXT	·Syscall6(SB),NOSPLIT,$0-80
	JMP	syscall·Syscall6(SB)

TEXT	·Syscall9(SB),NOSPLIT,$0-104
	JMP	syscall·Syscall9(SB)

TEXT ·RawSyscall(SB),NOSPLIT,$0-56
	JMP	syscall·RawSyscall(SB)

TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
	JMP	syscall·RawSyscall6(SB)


FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 80

FROM microsoft/dotnet:2.2-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/ApiGateways/Mobile.Bff.Shopping/aggregator
RUN dotnet restore -nowarn:msb3202,nu1503
RUN dotnet build --no-restore -c Release -o /app

FROM build AS publish
RUN dotnet publish --no-restore -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Mobile.Shopping.HttpAggregator.dll"]


<?php
/**
 * Smarty Internal Plugin Compile Object Function
 * Compiles code for registered objects as function
 *
 * @package    Smarty
 * @subpackage Compiler
 * @author     Uwe Tews
 */

/**
 * Smarty Internal Plugin Compile Object Function Class
 *
 * @package    Smarty
 * @subpackage Compiler
 */
class Smarty_Internal_Compile_Private_Object_Function extends Smarty_Internal_CompileBase
{
    /**
     * Attribute definition: Overwrites base class.
     *
     * @var array
     * @see Smarty_Internal_CompileBase
     */
    public $optional_attributes = array('_any');

    /**
     * Compiles code for the execution of function plugin
     *
     * @param  array                                       $args      array with attributes from parser
     * @param \Smarty_Internal_TemplateCompilerBase $compiler  compiler object
     * @param  array                                       $parameter array with compilation parameter
     * @param  string                                      $tag       name of function
     * @param  string                                      $method    name of method to call
     *
     * @return string compiled code
     */
    public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter, $tag, $method)
    {
        // check and get attributes
        $_attr = $this->getAttributes($compiler, $args);
        if ($_attr['nocache'] === true) {
            $compiler->tag_nocache = true;
        }
        unset($_attr['nocache']);
        $_assign = null;
        if (isset($_attr['assign'])) {
            $_assign = $_attr['assign'];
            unset($_attr['assign']);
        }
        // method or property ?
        if (method_exists($compiler->smarty->registered_objects[$tag][0], $method)) {
            // convert attributes into parameter array string
            if ($compiler->smarty->registered_objects[$tag][2]) {
                $_paramsArray = array();
                foreach ($_attr as $_key => $_value) {
                    if (is_int($_key)) {
                        $_paramsArray[] = "$_key=>$_value";
                    } else {
                        $_paramsArray[] = "'$_key'=>$_value";
                    }
                }
                $_params = 'array(' . implode(",", $_paramsArray) . ')';
                $return = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}({$_params},\$_smarty_tpl)";
            } else {
                $_params = implode(",", $_attr);
                $return = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}({$_params})";
            }
        } else {
            // object property
            $return = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}";
        }

        if (empty($_assign)) {
            // This tag does create output
            $compiler->has_output = true;
            $output = "<?php echo {$return};?>\n";
        } else {
            $output = "<?php \$_smarty_tpl->assign({$_assign},{$return});?>\n";
        }

        return $output;
    }
}


default: --require features features
pending: --require features features-pending
no_heckle: --require features features --exclude heckle


import JobView from './JobView'
import './JobView.scss'

export default JobView


/*
Copyright The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, 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.
*/

// Code generated by lister-gen. DO NOT EDIT.

package v1beta1

// EndpointSliceListerExpansion allows custom methods to be added to
// EndpointSliceLister.
type EndpointSliceListerExpansion interface{}

// EndpointSliceNamespaceListerExpansion allows custom methods to be added to
// EndpointSliceNamespaceLister.
type EndpointSliceNamespaceListerExpansion interface{}


github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e h1:LwyF2AFISC9nVbS6MgzsaQNSUsRXI49GS+YQ5KX/QH0=
golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=


// ***************************************************************************
// *
// * Copyright (C) 2013 International Business Machines
// * Corporation and others. All Rights Reserved.
// * Tool: org.unicode.cldr.icu.NewLdml2IcuConverter
// * Source File: <path>/common/main/fr_FR.xml
// *
// ***************************************************************************
fr_FR{
    Version{"2.0.82.45"}
}


syntax = "proto3";
package POGOProtos.Inventory;

enum InventoryUpgradeType {
	UPGRADE_UNSET = 0;
	INCREASE_ITEM_STORAGE = 1;
	INCREASE_POKEMON_STORAGE = 2;
}


let
  jupyterLibPath = ../../..;
  jupyter = import jupyterLibPath {};

  jupyterlabWithKernels = jupyter.jupyterlabWith {
      kernels = [ (jupyter.kernels.cKernelWith {name="basic";}) ];
  };
in
  jupyterlabWithKernels.env


require 'spec_helper'

#TODO tests could use a lot of DRYing up, maybe with shared example groups
RSpec.describe AttrJson::Record::QueryScopes do
  let(:klass) do
    Class.new(ActiveRecord::Base) do
      include AttrJson::Record
      include AttrJson::Record::QueryScopes

      self.table_name = "products"
      attr_json :str, :string
      attr_json :int, :integer
      attr_json :int_array, :integer, array: true
      attr_json :int_with_default, :integer, default: 5
    end
  end

  let(:instance) { klass.new }

  describe "searching for nil value" do
    it "finds value with nil" do
      instance.str = nil
      instance.save!

      result = klass.jsonb_contains(str: nil).last
      expect(result).to eq(instance)
    end

    # Don't really know if this is desirable or not, but it's
    # the most natural implementation, so we'll go with it for now.
    it "does not find value with no value set" do
      instance.save!

      result = klass.jsonb_contains(str: nil).last
      expect(result).to be_nil
    end
  end

  describe "#jsonb_contains" do
    [
      [:integer, 12, "12"],
      [:string, "12", 12],
      [:decimal, BigDecimal("10.01"), "10.0100"],
      [:boolean, true, "t"],
      [:date, Date.parse("2017-04-28"), "2017-04-28"],
      [:datetime, DateTime.parse("2017-04-04 04:45:00").to_time, "2017-04-04T04:45:00Z"],
      [:float, 45.45, "45.45"]
    ].each do |type, cast_value, uncast_value|
      describe "for primitive type #{type}" do
        let(:klass) do
          Class.new(ActiveRecord::Base) do
            include AttrJson::Record
            include AttrJson::Record::QueryScopes

            self.table_name = "products"
            attr_json :value, type
          end
        end
        it "can query with exact type" do
          instance.value = cast_value
          instance.save!

          result = klass.jsonb_contains(value: cast_value).last

          expect(result).to eq(instance)
        end
        it "can cast value for query" do
          instance.value = cast_value
          instance.save!

          result = klass.jsonb_contains(value: uncast_value).last

          expect(result).to eq(instance)
        end
      end
    end

    describe "array of primitives" do
      let(:klass) do
        Class.new(ActiveRecord::Base) do
          include AttrJson::Record
          include AttrJson::Record::QueryScopes

          self.table_name = "products"
          attr_json :value, :string, array: true
        end
      end
      before do
        instance.value = ["one", "two", "three"]
        instance.save!
      end
      it "matches any element in array with single arg query" do
        result = klass.jsonb_contains(value: "one").first
        expect(result).to eq(instance)
      end
      # this is kind of just what the natural implementation does, but
      # let's call it intentional?
      it "matches when ALL of array query match" do
        result = klass.jsonb_contains(value: ["one", "two"]).first
        expect(result).to eq(instance)
      end
      it "does not match with a non-matching element in query array" do
        result = klass.jsonb_contains(value: ["one", "nonexisting"]).first
        expect(result).to be_nil
      end
    end

    describe "multi-column query" do
      let(:klass) do
        Class.new(ActiveRecord::Base) do
          include AttrJson::Record
          include AttrJson::Record::QueryScopes

          self.table_name = "products"
          attr_json :str, :string
          attr_json :int, :integer
        end
      end
      it "boolean and's" do
        instance.str = "str"
        instance.int = 101
        instance.save!

        result = klass.jsonb_contains(str: "str", int: 101).last
        expect(result).to eq(instance)
      end
      it "can fail to find a record" do
        instance.str = "str"
        instance.int = 101
        instance.save!

        result = klass.jsonb_contains(str: "str", int: 901).last
        expect(result).to be_nil
      end
    end
  end

  describe "#not_jsonb_contains" do
    it 'generates a negated query' do
      query = klass.not_jsonb_contains(str: 'foo')

      expect(query.to_sql).to match(/WHERE \(?NOT \(products.json_attributes @> \('{"str":"foo"}'\)::jsonb\)/)
    end
  end

  describe "multiple container attributes" do
    # let's give em the same store key to make it really challenging?
    let(:klass) do
      Class.new(ActiveRecord::Base) do
        include AttrJson::Record
        include AttrJson::Record::QueryScopes

        self.table_name = "products"
        attr_json :str_attr_jsons, :string, store_key: "_str"
        attr_json :str_other_attributes, :string, store_key: "_str", container_attribute: "other_attributes"
      end
    end
    before do
      instance.str_attr_jsons = "j_value"
      instance.str_other_attributes = "o_value"
      instance.save!
    end
    it "still queries okay" do
      query = klass.jsonb_contains(str_attr_jsons: "j_value", str_other_attributes: "o_value")

      expect(query.to_sql).to include "products.json_attributes @> ('{\"_str\":\"j_value\"}'"
      expect(query.to_sql).to include "products.other_attributes @> ('{\"_str\":\"o_value\"}'"

      result = query.last
      expect(result).to eq(instance)
    end
  end

  describe "nested models" do
    # why not a crazy recursive one? I think we can do that.
    let(:model_class) do
      Class.new do
        include AttrJson::Model

        attr_json :str, :string
        attr_json :model, self.to_type
        attr_json :int_array, :integer, array: true
        attr_json :int_with_default, :integer, default: 5
        attr_json :datetime, :datetime
      end
    end
    let(:klass) do
      model_class_type = model_class.to_type
      Class.new(ActiveRecord::Base) do
        include AttrJson::Record
        include AttrJson::Record::QueryScopes

        self.table_name = "products"
        attr_json :model, model_class_type
        attr_json :int, :integer
      end
    end
    it "can create keypath query" do
      sql = klass.jsonb_contains("model.str" => "foo").to_sql
      expect(sql).to include "products.json_attributes @> ('{\"model\":{\"str\":\"foo\"}}')"
    end
    it "can find object" do
      instance.model = {}
      instance.model.str = "foo"
      instance.save!

      result = klass.jsonb_contains("model.str" => "foo").first
      expect(result).to eq(instance)
    end
    it "doesn't error on find if there's no hash at all model" do
      instance.save!
      # our casting is sometimes insisting on a {} there, we want to
      # to make sure it's really null in the db, and it doesn't complain
      # on our search.
      klass.update_all("json_attributes = null")
      # precondition for our test, sorry, hacky
      raw_result = ActiveRecord::Base.connection.execute("select json_attributes from #{klass.table_name} where id = #{instance.id}").first
      expect(raw_result["json_attributes"]).to be_nil

      expect(klass.jsonb_contains("model.str" => "foo").first).to be_nil
    end

    describe "double-nested model with array" do
      let(:lang_and_val_class) do
        Class.new do
          include AttrJson::Model

          attr_json :lang, :string, default: "en"
          attr_json :value, :string
        end
      end
      let(:some_labels_class) do
        lang_and_val_type = lang_and_val_class.to_type
        Class.new do
          include AttrJson::Model

          attr_json :hello, lang_and_val_type, array: true
        end
      end
      let(:klass) do
        some_labels_class_type = some_labels_class.to_type
        Class.new(ActiveRecord::Base) do
          self.table_name = "products"
          include AttrJson::Record
          include AttrJson::Record::QueryScopes

          attr_json :my_labels, some_labels_class_type
        end
      end
      before do
        instance.my_labels = {}
        instance.my_labels.hello = [{lang: 'en', value: 'hello'}, {lang: 'es', value: 'hola'}]
        instance.save!
      end

      describe ", complete key path" do
        let(:relation) { klass.jsonb_contains("my_labels.hello.lang" => "en") }

        it "generates query okay" do
          expect(relation.to_sql).to include "(products.json_attributes @> ('{\"my_labels\":{\"hello\":[{\"lang\":\"en\"}]}}')::jsonb)"
        end
        it "fetches" do
          expect(relation.count).to eq 1
          expect(relation.first).to eq(instance)
        end
      end

      describe ", hash value in query" do
        let(:relation) { klass.jsonb_contains("my_labels.hello" => {lang: "en"}) }

        it "generates query okay" do
          expect(relation.to_sql).to include "(products.json_attributes @> ('{\"my_labels\":{\"hello\":[{\"lang\":\"en\"}]}}')::jsonb)"
        end

        it "fetches" do
          expect(relation.count).to eq 1
          expect(relation.first).to eq(instance)
        end
      end

      describe "multiple query attributes" do
        let(:relation) { klass.jsonb_contains("my_labels.hello.lang" => "en", "my_labels.hello.value" => "hello") }

        # TODO. We need a custom deep_merge in query builder, bah.
        # Semantics are actually not entirely clear. Did the user mean
        # the same structure needs to have `{lang: 'en', {value: 'hello'}}`,
        # or were they asking for an object that might have one of those pairs
        # in one hash, and the other in another, in the array? I think the former
        # probably, use separate jsonb_contains calls for the latter.
        it "generates query okay" do
          expect(relation.to_sql).to include "(products.json_attributes @> ('{\"my_labels\":{\"hello\":[{\"lang\":\"en\",\"value\":\"hello\"}]}}')::jsonb)"
        end

        it "fetches" do
          expect(relation.count).to eq 1
          expect(relation.first).to eq(instance)
        end
      end

    end
  end
end


#include "tommath.h"
#ifdef BN_MP_AND_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
 *
 * LibTomMath is a library that provides multiple-precision
 * integer arithmetic as well as number theoretic functionality.
 *
 * The library was designed directly after the MPI library by
 * Michael Fromberger but has been written from scratch with
 * additional optimizations in place.
 *
 * The library is free for all purposes without any express
 * guarantee it works.
 *
 * Tom St Denis, tomstdenis@gmail.com, http://libtom.org
 */

/* AND two ints together */
int
mp_and (mp_int * a, mp_int * b, mp_int * c)
{
  int     res, ix, px;
  mp_int  t, *x;

  if (a->used > b->used) {
    if ((res = mp_init_copy (&t, a)) != MP_OKAY) {
      return res;
    }
    px = b->used;
    x = b;
  } else {
    if ((res = mp_init_copy (&t, b)) != MP_OKAY) {
      return res;
    }
    px = a->used;
    x = a;
  }

  for (ix = 0; ix < px; ix++) {
    t.dp[ix] &= x->dp[ix];
  }

  /* zero digits above the last from the smallest mp_int */
  for (; ix < t.used; ix++) {
    t.dp[ix] = 0;
  }

  mp_clamp (&t);
  mp_exch (c, &t);
  mp_clear (&t);
  return MP_OKAY;
}
#endif

/* $Source: /cvs/libtom/libtommath/bn_mp_and.c,v $ */
/* $Revision: 1.4 $ */
/* $Date: 2006/12/28 01:25:13 $ */


/*
 *  GRUB  --  GRand Unified Bootloader
 *  Copyright (C) 2011  Free Software Foundation, Inc.
 *
 *  GRUB is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  GRUB is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <grub/machine/ec.h>
#include <grub/machine/kernel.h>
#include <grub/machine/memory.h>
#include <grub/misc.h>
#include <grub/pci.h>
#include <grub/cs5536.h>
#include <grub/time.h>
#include <grub/term.h>
#include <grub/i18n.h>

void
grub_reboot (void)
{
  switch (grub_arch_machine)
    {
    case GRUB_ARCH_MACHINE_FULOONG2E:
      grub_outl (grub_inl (0xbfe00104) & ~4, 0xbfe00104);
      grub_outl (grub_inl (0xbfe00104) | 4, 0xbfe00104);
      break;
    case GRUB_ARCH_MACHINE_FULOONG2F:
      {
	grub_pci_device_t dev;
	if (!grub_cs5536_find (&dev))
	  break;
	grub_cs5536_write_msr (dev, GRUB_CS5536_MSR_DIVIL_RESET,
			       grub_cs5536_read_msr (dev,
						     GRUB_CS5536_MSR_DIVIL_RESET)
			       | 1);
	break;
      }
    case GRUB_ARCH_MACHINE_YEELOONG:
      grub_write_ec (GRUB_MACHINE_EC_COMMAND_REBOOT);
      break;
    case GRUB_ARCH_MACHINE_YEELOONG_3A:
      grub_millisleep (1);
      grub_outb (0x4e, GRUB_MACHINE_PCI_IO_BASE_3A | 0x66);
      grub_millisleep (1);
      grub_outb (1, GRUB_MACHINE_PCI_IO_BASE_3A | 0x62);
      grub_millisleep (5000);
    }
  grub_millisleep (1500);

  grub_puts_ (N_("Reboot failed"));
  grub_refresh ();
  while (1);
}


export const nxVersion = '*';

export const expressVersion = '4.17.1';
export const expressTypingsVersion = '4.17.0';


[[mapping-fields]]
== Metadata fields

Each document has metadata associated with it, such as the `_index`, mapping
<<mapping-type-field,`_type`>>, and `_id` metadata fields.  The behavior of
some of these metadata fields can be customized when a mapping type is created.

[discrete]
=== Identity metadata fields

[horizontal]
<<mapping-index-field,`_index`>>::

    The index to which the document belongs.

<<mapping-type-field,`_type`>>::

    The document's mapping type.

<<mapping-id-field,`_id`>>::

    The document's ID.

[discrete]
=== Document source metadata fields

<<mapping-source-field,`_source`>>::

    The original JSON representing the body of the document.

{plugins}/mapper-size.html[`_size`]::

    The size of the `_source` field in bytes, provided by the
    {plugins}/mapper-size.html[`mapper-size` plugin].

[discrete]
=== Indexing metadata fields

<<mapping-field-names-field,`_field_names`>>::

    All fields in the document which contain non-null values.

<<mapping-ignored-field,`_ignored`>>::

    All fields in the document that have been ignored at index time because of
    <<ignore-malformed,`ignore_malformed`>>.

[discrete]
=== Routing metadata field

<<mapping-routing-field,`_routing`>>::

    A custom routing value which routes a document to a particular shard.

[discrete]
=== Other metadata field

<<mapping-meta-field,`_meta`>>::

    Application specific metadata.

include::fields/field-names-field.asciidoc[]

include::fields/ignored-field.asciidoc[]

include::fields/id-field.asciidoc[]

include::fields/index-field.asciidoc[]

include::fields/meta-field.asciidoc[]

include::fields/routing-field.asciidoc[]

include::fields/source-field.asciidoc[]

include::fields/type-field.asciidoc[]


#!/usr/bin/env python3

from __future__ import print_function
import sys
import subprocess
from colorama import *
from argparse import *

init()

parser = ArgumentParser(description="compile c/c++ into llvm IR")
parser.add_argument("file", metavar="FILE", action="store", help="FILE to be proprecessed")
parser.add_argument("-compiler", default="clang", help="llvm compatible compiler(default: clang)")
parser.add_argument("-c", action="store_true", help="generate bitcode rather than IR")
parser.add_argument("--nostd", action="store_true", help="if in arglist, don't add -std=c99/-std=c++11")
parser.add_argument("-cs", action="store_true", help="when in arglist, -print-stats for compilation")
parser.add_argument("--cf",metavar="\"COMPILATION_FLAGS\"", help="extra compilation flags(string)")
parser.add_argument("--of", metavar="\"OPT_FLAGS\"", help="extra optimization flags(string)")
if len(sys.argv) == 1:
    parser.print_help()
    sys.exit(1)

args = parser.parse_args()
if args.file is None:
    print(Fore.RED, "file not specified, exit", file=sys.stderr)
    sys.exit(1)
inputfile=args.file
src_prefix, src_suffix = tuple(inputfile.rsplit('.', 1))
compiler_flags = [args.compiler, inputfile]

if src_suffix in ['cc', 'cpp', 'cxx']:
    compile_type = 'c++'
elif src_suffix == 'c':
    compile_type = 'c'

if compile_type == 'c':
    compiler_flags.extend(['-xc'])
    if not args.nostd:
        compiler_flags.append('-std=c99')
elif compile_type == 'c++':
    compiler_flags.extend(['-xc++'])
    if not args.nostd:
        compiler_flags.append('-std=c++11')

compiler_flags.extend(['-c', '-emit-llvm'])

if args.cs:
    compiler_flags.extend(['-Xclang', '-print-stats'])

if args.cf:
    compiler_flags.extend(args.cf.split())
else:
    compiler_flags.append('-O1')

compiler_flags.extend(['-o', '-'])

print(Style.BRIGHT, ' '.join(compiler_flags), Style.NORMAL)

opt_flags=['opt']

if args.of is None:
    opt_flags.extend(['-mem2reg', '-instnamer'])
else:
    opt_flags.extend(args.of.split())

if args.c:
    outfile=src_prefix+'.bc'
else:
    opt_flags.append('-S')
    outfile=src_prefix+'.ll'
opt_flags.extend(['-o', outfile])

print(Style.BRIGHT, ' '.join(opt_flags), Style.NORMAL)

try:
    p1 = subprocess.Popen(compiler_flags, stdout=subprocess.PIPE)
    p2 = subprocess.Popen(opt_flags, stdin=p1.stdout, stdout=subprocess.PIPE)
except Exception as e:
    print(Fore.RED, e, file=sys.stderr)
    exit(1)


# Defining a Mock Class #

## Mocking a Normal Class ##

Given
```
class Foo {
  ...
  virtual ~Foo();
  virtual int GetSize() const = 0;
  virtual string Describe(const char* name) = 0;
  virtual string Describe(int type) = 0;
  virtual bool Process(Bar elem, int count) = 0;
};
```
(note that `~Foo()` **must** be virtual) we can define its mock as
```
#include "gmock/gmock.h"

class MockFoo : public Foo {
  MOCK_CONST_METHOD0(GetSize, int());
  MOCK_METHOD1(Describe, string(const char* name));
  MOCK_METHOD1(Describe, string(int type));
  MOCK_METHOD2(Process, bool(Bar elem, int count));
};
```

To create a "nice" mock object which ignores all uninteresting calls,
or a "strict" mock object, which treats them as failures:
```
NiceMock<MockFoo> nice_foo;     // The type is a subclass of MockFoo.
StrictMock<MockFoo> strict_foo; // The type is a subclass of MockFoo.
```

## Mocking a Class Template ##

To mock
```
template <typename Elem>
class StackInterface {
 public:
  ...
  virtual ~StackInterface();
  virtual int GetSize() const = 0;
  virtual void Push(const Elem& x) = 0;
};
```
(note that `~StackInterface()` **must** be virtual) just append `_T` to the `MOCK_*` macros:
```
template <typename Elem>
class MockStack : public StackInterface<Elem> {
 public:
  ...
  MOCK_CONST_METHOD0_T(GetSize, int());
  MOCK_METHOD1_T(Push, void(const Elem& x));
};
```

## Specifying Calling Conventions for Mock Functions ##

If your mock function doesn't use the default calling convention, you
can specify it by appending `_WITH_CALLTYPE` to any of the macros
described in the previous two sections and supplying the calling
convention as the first argument to the macro. For example,
```
  MOCK_METHOD_1_WITH_CALLTYPE(STDMETHODCALLTYPE, Foo, bool(int n));
  MOCK_CONST_METHOD2_WITH_CALLTYPE(STDMETHODCALLTYPE, Bar, int(double x, double y));
```
where `STDMETHODCALLTYPE` is defined by `<objbase.h>` on Windows.

# Using Mocks in Tests #

The typical flow is:
  1. Import the Google Mock names you need to use. All Google Mock names are in the `testing` namespace unless they are macros or otherwise noted.
  1. Create the mock objects.
  1. Optionally, set the default actions of the mock objects.
  1. Set your expectations on the mock objects (How will they be called? What wil they do?).
  1. Exercise code that uses the mock objects; if necessary, check the result using [Google Test](../../googletest/) assertions.
  1. When a mock objects is destructed, Google Mock automatically verifies that all expectations on it have been satisfied.

Here is an example:
```
using ::testing::Return;                            // #1

TEST(BarTest, DoesThis) {
  MockFoo foo;                                    // #2

  ON_CALL(foo, GetSize())                         // #3
      .WillByDefault(Return(1));
  // ... other default actions ...

  EXPECT_CALL(foo, Describe(5))                   // #4
      .Times(3)
      .WillRepeatedly(Return("Category 5"));
  // ... other expectations ...

  EXPECT_EQ("good", MyProductionFunction(&foo));  // #5
}                                                 // #6
```

# Setting Default Actions #

Google Mock has a **built-in default action** for any function that
returns `void`, `bool`, a numeric value, or a pointer.

To customize the default action for functions with return type `T` globally:
```
using ::testing::DefaultValue;

// Sets the default value to be returned. T must be CopyConstructible.
DefaultValue<T>::Set(value);
// Sets a factory. Will be invoked on demand. T must be MoveConstructible.
//   T MakeT();
DefaultValue<T>::SetFactory(&MakeT);
// ... use the mocks ...
// Resets the default value.
DefaultValue<T>::Clear();
```

To customize the default action for a particular method, use `ON_CALL()`:
```
ON_CALL(mock_object, method(matchers))
    .With(multi_argument_matcher)  ?
    .WillByDefault(action);
```

# Setting Expectations #

`EXPECT_CALL()` sets **expectations** on a mock method (How will it be
called? What will it do?):
```
EXPECT_CALL(mock_object, method(matchers))
    .With(multi_argument_matcher)  ?
    .Times(cardinality)            ?
    .InSequence(sequences)         *
    .After(expectations)           *
    .WillOnce(action)              *
    .WillRepeatedly(action)        ?
    .RetiresOnSaturation();        ?
```

If `Times()` is omitted, the cardinality is assumed to be:

  * `Times(1)` when there is neither `WillOnce()` nor `WillRepeatedly()`;
  * `Times(n)` when there are `n WillOnce()`s but no `WillRepeatedly()`, where `n` >= 1; or
  * `Times(AtLeast(n))` when there are `n WillOnce()`s and a `WillRepeatedly()`, where `n` >= 0.

A method with no `EXPECT_CALL()` is free to be invoked _any number of times_, and the default action will be taken each time.

# Matchers #

A **matcher** matches a _single_ argument.  You can use it inside
`ON_CALL()` or `EXPECT_CALL()`, or use it to validate a value
directly:

| `EXPECT_THAT(value, matcher)` | Asserts that `value` matches `matcher`. |
|:------------------------------|:----------------------------------------|
| `ASSERT_THAT(value, matcher)` | The same as `EXPECT_THAT(value, matcher)`, except that it generates a **fatal** failure. |

Built-in matchers (where `argument` is the function argument) are
divided into several categories:

## Wildcard ##
|`_`|`argument` can be any value of the correct type.|
|:--|:-----------------------------------------------|
|`A<type>()` or `An<type>()`|`argument` can be any value of type `type`.     |

## Generic Comparison ##

|`Eq(value)` or `value`|`argument == value`|
|:---------------------|:------------------|
|`Ge(value)`           |`argument >= value`|
|`Gt(value)`           |`argument > value` |
|`Le(value)`           |`argument <= value`|
|`Lt(value)`           |`argument < value` |
|`Ne(value)`           |`argument != value`|
|`IsNull()`            |`argument` is a `NULL` pointer (raw or smart).|
|`NotNull()`           |`argument` is a non-null pointer (raw or smart).|
|`Ref(variable)`       |`argument` is a reference to `variable`.|
|`TypedEq<type>(value)`|`argument` has type `type` and is equal to `value`. You may need to use this instead of `Eq(value)` when the mock function is overloaded.|

Except `Ref()`, these matchers make a _copy_ of `value` in case it's
modified or destructed later. If the compiler complains that `value`
doesn't have a public copy constructor, try wrap it in `ByRef()`,
e.g. `Eq(ByRef(non_copyable_value))`. If you do that, make sure
`non_copyable_value` is not changed afterwards, or the meaning of your
matcher will be changed.

## Floating-Point Matchers ##

|`DoubleEq(a_double)`|`argument` is a `double` value approximately equal to `a_double`, treating two NaNs as unequal.|
|:-------------------|:----------------------------------------------------------------------------------------------|
|`FloatEq(a_float)`  |`argument` is a `float` value approximately equal to `a_float`, treating two NaNs as unequal.  |
|`NanSensitiveDoubleEq(a_double)`|`argument` is a `double` value approximately equal to `a_double`, treating two NaNs as equal.  |
|`NanSensitiveFloatEq(a_float)`|`argument` is a `float` value approximately equal to `a_float`, treating two NaNs as equal.    |

The above matchers use ULP-based comparison (the same as used in
[Google Test](../../googletest/)). They
automatically pick a reasonable error bound based on the absolute
value of the expected value.  `DoubleEq()` and `FloatEq()` conform to
the IEEE standard, which requires comparing two NaNs for equality to
return false. The `NanSensitive*` version instead treats two NaNs as
equal, which is often what a user wants.

|`DoubleNear(a_double, max_abs_error)`|`argument` is a `double` value close to `a_double` (absolute error <= `max_abs_error`), treating two NaNs as unequal.|
|:------------------------------------|:--------------------------------------------------------------------------------------------------------------------|
|`FloatNear(a_float, max_abs_error)`  |`argument` is a `float` value close to `a_float` (absolute error <= `max_abs_error`), treating two NaNs as unequal.  |
|`NanSensitiveDoubleNear(a_double, max_abs_error)`|`argument` is a `double` value close to `a_double` (absolute error <= `max_abs_error`), treating two NaNs as equal.  |
|`NanSensitiveFloatNear(a_float, max_abs_error)`|`argument` is a `float` value close to `a_float` (absolute error <= `max_abs_error`), treating two NaNs as equal.    |

## String Matchers ##

The `argument` can be either a C string or a C++ string object:

|`ContainsRegex(string)`|`argument` matches the given regular expression.|
|:----------------------|:-----------------------------------------------|
|`EndsWith(suffix)`     |`argument` ends with string `suffix`.           |
|`HasSubstr(string)`    |`argument` contains `string` as a sub-string.   |
|`MatchesRegex(string)` |`argument` matches the given regular expression with the match starting at the first character and ending at the last character.|
|`StartsWith(prefix)`   |`argument` starts with string `prefix`.         |
|`StrCaseEq(string)`    |`argument` is equal to `string`, ignoring case. |
|`StrCaseNe(string)`    |`argument` is not equal to `string`, ignoring case.|
|`StrEq(string)`        |`argument` is equal to `string`.                |
|`StrNe(string)`        |`argument` is not equal to `string`.            |

`ContainsRegex()` and `MatchesRegex()` use the regular expression
syntax defined
[here](../../googletest/docs/AdvancedGuide.md#regular-expression-syntax).
`StrCaseEq()`, `StrCaseNe()`, `StrEq()`, and `StrNe()` work for wide
strings as well.

## Container Matchers ##

Most STL-style containers support `==`, so you can use
`Eq(expected_container)` or simply `expected_container` to match a
container exactly.   If you want to write the elements in-line,
match them more flexibly, or get more informative messages, you can use:

| `ContainerEq(container)` | The same as `Eq(container)` except that the failure message also includes which elements are in one container but not the other. |
|:-------------------------|:---------------------------------------------------------------------------------------------------------------------------------|
| `Contains(e)`            | `argument` contains an element that matches `e`, which can be either a value or a matcher.                                       |
| `Each(e)`                | `argument` is a container where _every_ element matches `e`, which can be either a value or a matcher.                           |
| `ElementsAre(e0, e1, ..., en)` | `argument` has `n + 1` elements, where the i-th element matches `ei`, which can be a value or a matcher. 0 to 10 arguments are allowed. |
| `ElementsAreArray({ e0, e1, ..., en })`, `ElementsAreArray(array)`, or `ElementsAreArray(array, count)` | The same as `ElementsAre()` except that the expected element values/matchers come from an initializer list, STL-style container, or C-style array. |
| `IsEmpty()`              | `argument` is an empty container (`container.empty()`).                                                                          |
| `Pointwise(m, container)` | `argument` contains the same number of elements as in `container`, and for all i, (the i-th element in `argument`, the i-th element in `container`) match `m`, which is a matcher on 2-tuples. E.g. `Pointwise(Le(), upper_bounds)` verifies that each element in `argument` doesn't exceed the corresponding element in `upper_bounds`. See more detail below. |
| `SizeIs(m)`              | `argument` is a container whose size matches `m`. E.g. `SizeIs(2)` or `SizeIs(Lt(2))`.                                           |
| `UnorderedElementsAre(e0, e1, ..., en)` | `argument` has `n + 1` elements, and under some permutation each element matches an `ei` (for a different `i`), which can be a value or a matcher. 0 to 10 arguments are allowed. |
| `UnorderedElementsAreArray({ e0, e1, ..., en })`, `UnorderedElementsAreArray(array)`, or `UnorderedElementsAreArray(array, count)` | The same as `UnorderedElementsAre()` except that the expected element values/matchers come from an initializer list, STL-style container, or C-style array. |
| `WhenSorted(m)`          | When `argument` is sorted using the `<` operator, it matches container matcher `m`. E.g. `WhenSorted(UnorderedElementsAre(1, 2, 3))` verifies that `argument` contains elements `1`, `2`, and `3`, ignoring order. |
| `WhenSortedBy(comparator, m)` | The same as `WhenSorted(m)`, except that the given comparator instead of `<` is used to sort `argument`. E.g. `WhenSortedBy(std::greater<int>(), ElementsAre(3, 2, 1))`. |

Notes:

  * These matchers can also match:
    1. a native array passed by reference (e.g. in `Foo(const int (&a)[5])`), and
    1. an array passed as a pointer and a count (e.g. in `Bar(const T* buffer, int len)` -- see [Multi-argument Matchers](#Multiargument_Matchers.md)).
  * The array being matched may be multi-dimensional (i.e. its elements can be arrays).
  * `m` in `Pointwise(m, ...)` should be a matcher for `::testing::tuple<T, U>` where `T` and `U` are the element type of the actual container and the expected container, respectively. For example, to compare two `Foo` containers where `Foo` doesn't support `operator==` but has an `Equals()` method, one might write:

```
using ::testing::get;
MATCHER(FooEq, "") {
  return get<0>(arg).Equals(get<1>(arg));
}
...
EXPECT_THAT(actual_foos, Pointwise(FooEq(), expected_foos));
```

## Member Matchers ##

|`Field(&class::field, m)`|`argument.field` (or `argument->field` when `argument` is a plain pointer) matches matcher `m`, where `argument` is an object of type _class_.|
|:------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------|
|`Key(e)`                 |`argument.first` matches `e`, which can be either a value or a matcher. E.g. `Contains(Key(Le(5)))` can verify that a `map` contains a key `<= 5`.|
|`Pair(m1, m2)`           |`argument` is an `std::pair` whose `first` field matches `m1` and `second` field matches `m2`.                                                |
|`Property(&class::property, m)`|`argument.property()` (or `argument->property()` when `argument` is a plain pointer) matches matcher `m`, where `argument` is an object of type _class_.|

## Matching the Result of a Function or Functor ##

|`ResultOf(f, m)`|`f(argument)` matches matcher `m`, where `f` is a function or functor.|
|:---------------|:---------------------------------------------------------------------|

## Pointer Matchers ##

|`Pointee(m)`|`argument` (either a smart pointer or a raw pointer) points to a value that matches matcher `m`.|
|:-----------|:-----------------------------------------------------------------------------------------------|
|`WhenDynamicCastTo<T>(m)`| when `argument` is passed through `dynamic_cast<T>()`, it matches matcher `m`.                 |

## Multiargument Matchers ##

Technically, all matchers match a _single_ value. A "multi-argument"
matcher is just one that matches a _tuple_. The following matchers can
be used to match a tuple `(x, y)`:

|`Eq()`|`x == y`|
|:-----|:-------|
|`Ge()`|`x >= y`|
|`Gt()`|`x > y` |
|`Le()`|`x <= y`|
|`Lt()`|`x < y` |
|`Ne()`|`x != y`|

You can use the following selectors to pick a subset of the arguments
(or reorder them) to participate in the matching:

|`AllArgs(m)`|Equivalent to `m`. Useful as syntactic sugar in `.With(AllArgs(m))`.|
|:-----------|:-------------------------------------------------------------------|
|`Args<N1, N2, ..., Nk>(m)`|The tuple of the `k` selected (using 0-based indices) arguments matches `m`, e.g. `Args<1, 2>(Eq())`.|

## Composite Matchers ##

You can make a matcher from one or more other matchers:

|`AllOf(m1, m2, ..., mn)`|`argument` matches all of the matchers `m1` to `mn`.|
|:-----------------------|:---------------------------------------------------|
|`AnyOf(m1, m2, ..., mn)`|`argument` matches at least one of the matchers `m1` to `mn`.|
|`Not(m)`                |`argument` doesn't match matcher `m`.               |

## Adapters for Matchers ##

|`MatcherCast<T>(m)`|casts matcher `m` to type `Matcher<T>`.|
|:------------------|:--------------------------------------|
|`SafeMatcherCast<T>(m)`| [safely casts](CookBook.md#casting-matchers) matcher `m` to type `Matcher<T>`. |
|`Truly(predicate)` |`predicate(argument)` returns something considered by C++ to be true, where `predicate` is a function or functor.|

## Matchers as Predicates ##

|`Matches(m)(value)`|evaluates to `true` if `value` matches `m`. You can use `Matches(m)` alone as a unary functor.|
|:------------------|:---------------------------------------------------------------------------------------------|
|`ExplainMatchResult(m, value, result_listener)`|evaluates to `true` if `value` matches `m`, explaining the result to `result_listener`.       |
|`Value(value, m)`  |evaluates to `true` if `value` matches `m`.                                                   |

## Defining Matchers ##

| `MATCHER(IsEven, "") { return (arg % 2) == 0; }` | Defines a matcher `IsEven()` to match an even number. |
|:-------------------------------------------------|:------------------------------------------------------|
| `MATCHER_P(IsDivisibleBy, n, "") { *result_listener << "where the remainder is " << (arg % n); return (arg % n) == 0; }` | Defines a macher `IsDivisibleBy(n)` to match a number divisible by `n`. |
| `MATCHER_P2(IsBetween, a, b, std::string(negation ? "isn't" : "is") + " between " + PrintToString(a) + " and " + PrintToString(b)) { return a <= arg && arg <= b; }` | Defines a matcher `IsBetween(a, b)` to match a value in the range [`a`, `b`]. |

**Notes:**

  1. The `MATCHER*` macros cannot be used inside a function or class.
  1. The matcher body must be _purely functional_ (i.e. it cannot have any side effect, and the result must not depend on anything other than the value being matched and the matcher parameters).
  1. You can use `PrintToString(x)` to convert a value `x` of any type to a string.

## Matchers as Test Assertions ##

|`ASSERT_THAT(expression, m)`|Generates a [fatal failure](../../googletest/docs/Primer.md#assertions) if the value of `expression` doesn't match matcher `m`.|
|:---------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------|
|`EXPECT_THAT(expression, m)`|Generates a non-fatal failure if the value of `expression` doesn't match matcher `m`.                                                          |

# Actions #

**Actions** specify what a mock function should do when invoked.

## Returning a Value ##

|`Return()`|Return from a `void` mock function.|
|:---------|:----------------------------------|
|`Return(value)`|Return `value`. If the type of `value` is different to the mock function's return type, `value` is converted to the latter type <i>at the time the expectation is set</i>, not when the action is executed.|
|`ReturnArg<N>()`|Return the `N`-th (0-based) argument.|
|`ReturnNew<T>(a1, ..., ak)`|Return `new T(a1, ..., ak)`; a different object is created each time.|
|`ReturnNull()`|Return a null pointer.             |
|`ReturnPointee(ptr)`|Return the value pointed to by `ptr`.|
|`ReturnRef(variable)`|Return a reference to `variable`.  |
|`ReturnRefOfCopy(value)`|Return a reference to a copy of `value`; the copy lives as long as the action.|

## Side Effects ##

|`Assign(&variable, value)`|Assign `value` to variable.|
|:-------------------------|:--------------------------|
| `DeleteArg<N>()`         | Delete the `N`-th (0-based) argument, which must be a pointer. |
| `SaveArg<N>(pointer)`    | Save the `N`-th (0-based) argument to `*pointer`. |
| `SaveArgPointee<N>(pointer)` | Save the value pointed to by the `N`-th (0-based) argument to `*pointer`. |
| `SetArgReferee<N>(value)` |	Assign value to the variable referenced by the `N`-th (0-based) argument. |
|`SetArgPointee<N>(value)` |Assign `value` to the variable pointed by the `N`-th (0-based) argument.|
|`SetArgumentPointee<N>(value)`|Same as `SetArgPointee<N>(value)`. Deprecated. Will be removed in v1.7.0.|
|`SetArrayArgument<N>(first, last)`|Copies the elements in source range [`first`, `last`) to the array pointed to by the `N`-th (0-based) argument, which can be either a pointer or an iterator. The action does not take ownership of the elements in the source range.|
|`SetErrnoAndReturn(error, value)`|Set `errno` to `error` and return `value`.|
|`Throw(exception)`        |Throws the given exception, which can be any copyable value. Available since v1.1.0.|

## Using a Function or a Functor as an Action ##

|`Invoke(f)`|Invoke `f` with the arguments passed to the mock function, where `f` can be a global/static function or a functor.|
|:----------|:-----------------------------------------------------------------------------------------------------------------|
|`Invoke(object_pointer, &class::method)`|Invoke the {method on the object with the arguments passed to the mock function.                                  |
|`InvokeWithoutArgs(f)`|Invoke `f`, which can be a global/static function or a functor. `f` must take no arguments.                       |
|`InvokeWithoutArgs(object_pointer, &class::method)`|Invoke the method on the object, which takes no arguments.                                                        |
|`InvokeArgument<N>(arg1, arg2, ..., argk)`|Invoke the mock function's `N`-th (0-based) argument, which must be a function or a functor, with the `k` arguments.|

The return value of the invoked function is used as the return value
of the action.

When defining a function or functor to be used with `Invoke*()`, you can declare any unused parameters as `Unused`:
```
  double Distance(Unused, double x, double y) { return sqrt(x*x + y*y); }
  ...
  EXPECT_CALL(mock, Foo("Hi", _, _)).WillOnce(Invoke(Distance));
```

In `InvokeArgument<N>(...)`, if an argument needs to be passed by reference, wrap it inside `ByRef()`. For example,
```
  InvokeArgument<2>(5, string("Hi"), ByRef(foo))
```
calls the mock function's #2 argument, passing to it `5` and `string("Hi")` by value, and `foo` by reference.

## Default Action ##

|`DoDefault()`|Do the default action (specified by `ON_CALL()` or the built-in one).|
|:------------|:--------------------------------------------------------------------|

**Note:** due to technical reasons, `DoDefault()` cannot be used inside  a composite action - trying to do so will result in a run-time error.

## Composite Actions ##

|`DoAll(a1, a2, ..., an)`|Do all actions `a1` to `an` and return the result of `an` in each invocation. The first `n - 1` sub-actions must return void. |
|:-----------------------|:-----------------------------------------------------------------------------------------------------------------------------|
|`IgnoreResult(a)`       |Perform action `a` and ignore its result. `a` must not return void.                                                           |
|`WithArg<N>(a)`         |Pass the `N`-th (0-based) argument of the mock function to action `a` and perform it.                                         |
|`WithArgs<N1, N2, ..., Nk>(a)`|Pass the selected (0-based) arguments of the mock function to action `a` and perform it.                                      |
|`WithoutArgs(a)`        |Perform action `a` without any arguments.                                                                                |

## Defining Actions ##

| `ACTION(Sum) { return arg0 + arg1; }` | Defines an action `Sum()` to return the sum of the mock function's argument #0 and #1. |
|:--------------------------------------|:---------------------------------------------------------------------------------------|
| `ACTION_P(Plus, n) { return arg0 + n; }` | Defines an action `Plus(n)` to return the sum of the mock function's argument #0 and `n`. |
| `ACTION_Pk(Foo, p1, ..., pk) { statements; }` | Defines a parameterized action `Foo(p1, ..., pk)` to execute the given `statements`.   |

The `ACTION*` macros cannot be used inside a function or class.

# Cardinalities #

These are used in `Times()` to specify how many times a mock function will be called:

|`AnyNumber()`|The function can be called any number of times.|
|:------------|:----------------------------------------------|
|`AtLeast(n)` |The call is expected at least `n` times.       |
|`AtMost(n)`  |The call is expected at most `n` times.        |
|`Between(m, n)`|The call is expected between `m` and `n` (inclusive) times.|
|`Exactly(n) or n`|The call is expected exactly `n` times. In particular, the call should never happen when `n` is 0.|

# Expectation Order #

By default, the expectations can be matched in _any_ order.  If some
or all expectations must be matched in a given order, there are two
ways to specify it.  They can be used either independently or
together.

## The After Clause ##

```
using ::testing::Expectation;
...
Expectation init_x = EXPECT_CALL(foo, InitX());
Expectation init_y = EXPECT_CALL(foo, InitY());
EXPECT_CALL(foo, Bar())
    .After(init_x, init_y);
```
says that `Bar()` can be called only after both `InitX()` and
`InitY()` have been called.

If you don't know how many pre-requisites an expectation has when you
write it, you can use an `ExpectationSet` to collect them:

```
using ::testing::ExpectationSet;
...
ExpectationSet all_inits;
for (int i = 0; i < element_count; i++) {
  all_inits += EXPECT_CALL(foo, InitElement(i));
}
EXPECT_CALL(foo, Bar())
    .After(all_inits);
```
says that `Bar()` can be called only after all elements have been
initialized (but we don't care about which elements get initialized
before the others).

Modifying an `ExpectationSet` after using it in an `.After()` doesn't
affect the meaning of the `.After()`.

## Sequences ##

When you have a long chain of sequential expectations, it's easier to
specify the order using **sequences**, which don't require you to given
each expectation in the chain a different name.  <i>All expected<br>
calls</i> in the same sequence must occur in the order they are
specified.

```
using ::testing::Sequence;
Sequence s1, s2;
...
EXPECT_CALL(foo, Reset())
    .InSequence(s1, s2)
    .WillOnce(Return(true));
EXPECT_CALL(foo, GetSize())
    .InSequence(s1)
    .WillOnce(Return(1));
EXPECT_CALL(foo, Describe(A<const char*>()))
    .InSequence(s2)
    .WillOnce(Return("dummy"));
```
says that `Reset()` must be called before _both_ `GetSize()` _and_
`Describe()`, and the latter two can occur in any order.

To put many expectations in a sequence conveniently:
```
using ::testing::InSequence;
{
  InSequence dummy;

  EXPECT_CALL(...)...;
  EXPECT_CALL(...)...;
  ...
  EXPECT_CALL(...)...;
}
```
says that all expected calls in the scope of `dummy` must occur in
strict order. The name `dummy` is irrelevant.)

# Verifying and Resetting a Mock #

Google Mock will verify the expectations on a mock object when it is destructed, or you can do it earlier:
```
using ::testing::Mock;
...
// Verifies and removes the expectations on mock_obj;
// returns true iff successful.
Mock::VerifyAndClearExpectations(&mock_obj);
...
// Verifies and removes the expectations on mock_obj;
// also removes the default actions set by ON_CALL();
// returns true iff successful.
Mock::VerifyAndClear(&mock_obj);
```

You can also tell Google Mock that a mock object can be leaked and doesn't
need to be verified:
```
Mock::AllowLeak(&mock_obj);
```

# Mock Classes #

Google Mock defines a convenient mock class template
```
class MockFunction<R(A1, ..., An)> {
 public:
  MOCK_METHODn(Call, R(A1, ..., An));
};
```
See this [recipe](CookBook.md#using-check-points) for one application of it.

# Flags #

| `--gmock_catch_leaked_mocks=0` | Don't report leaked mock objects as failures. |
|:-------------------------------|:----------------------------------------------|
| `--gmock_verbose=LEVEL`        | Sets the default verbosity level (`info`, `warning`, or `error`) of Google Mock messages. |