/*
 * Copyright © 2017 Apple Inc. All rights reserved.
 */

/*!
 * @file NEHotspotConfigurationManager.h
 *
 * @discussion
 *   The NEHotspotConfigurationManager interface allows an application to
 *   configure Wi-Fi networks.
 *   An application can use NEHotspotConfiguration API to configure
 *   Open, WEP, WPA/WPA2 Personal, WPA/WPA2 Enterprise and Hotspot 2.0 Wi-Fi networks.
 *
 *   An application that needs access to the NEHotspotConfiguration API must have
 *   the “com.apple.developer.networking.HotspotConfiguration” entitlement.
 *
 *
 * @ignorefuncmacro NS_OPTIONS
 * @ignorefuncmacro NS_ENUM
 */

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/*!
 * @typedef NEHotspotConfigurationEAPType
 * @abstract EAP Type.
 * @const NEHotspotConfigurationEAPTypeTLS EAP-TLS.
 * @const NEHotspotConfigurationEAPTypeTTLS TTLS.
 * @const NEHotspotConfigurationEAPTypePEAP PEAP.
 * @const NEHotspotConfigurationEAPTypeFAST EAP-FAST.
 */
typedef NS_ENUM(NSInteger, NEHotspotConfigurationEAPType) {
	NEHotspotConfigurationEAPTypeEAPTLS = 13,
	NEHotspotConfigurationEAPTypeEAPTTLS = 21,
	NEHotspotConfigurationEAPTypeEAPPEAP = 25,
	NEHotspotConfigurationEAPTypeEAPFAST = 43
} API_AVAILABLE(ios(11.0)) NS_SWIFT_NAME(NEHotspotEAPSettings.EAPType);

/*!
 * @typedef NEHotspotConfigurationEAPTTLSInnerAuthenticationType
 * @abstract TTLS Inner Authentication Type.
 * @const NEHotspotConfigurationEAPTTLSInnerAuthenticationPAP PAP.
 * @const NEHotspotConfigurationEAPTTLSInnerAuthenticationCHAP CHAP.
 * @const NEHotspotConfigurationEAPTTLSInnerAuthenticationMSCHAP MSCHAP.
 * @const NEHotspotConfigurationEAPTTLSInnerAuthenticationMSCHAPv2 MSCHAPv2.
 * @const NEHotspotConfigurationEAPTTLSInnerAuthenticationEAP EAP (Default).
 */
typedef NS_ENUM(NSInteger, NEHotspotConfigurationTTLSInnerAuthenticationType) {
	NEHotspotConfigurationEAPTTLSInnerAuthenticationPAP = 0,
	NEHotspotConfigurationEAPTTLSInnerAuthenticationCHAP = 1,
	NEHotspotConfigurationEAPTTLSInnerAuthenticationMSCHAP = 2,
	NEHotspotConfigurationEAPTTLSInnerAuthenticationMSCHAPv2 = 3,
	NEHotspotConfigurationEAPTTLSInnerAuthenticationEAP = 4
} API_AVAILABLE(ios(11.0)) NS_SWIFT_NAME(NEHotspotEAPSettings.TTLSInnerAuthenticationType);

/*!
 * @typedef NEHotspotConfigurationEAPTLSVersion
 * @abstract TLS version to use during TLS handshke.
 * @const NEHotspotConfigurationEAPTLSVersion_1_0 TLS version 1.0.
 * @const NEHotspotConfigurationEAPTLSVersion_1_1 TLS version 1.1.
 * @const NEHotspotConfigurationEAPTLSVersion_1_1 TLS version 1.2 (Default).
 */
typedef NS_ENUM(NSInteger, NEHotspotConfigurationEAPTLSVersion) {
	NEHotspotConfigurationEAPTLSVersion_1_0 = 0,
	NEHotspotConfigurationEAPTLSVersion_1_1 = 1,
	NEHotspotConfigurationEAPTLSVersion_1_2 = 2,
} API_AVAILABLE(ios(11.0)) NS_SWIFT_NAME(NEHotspotEAPSettings.TLSVersion);

/*!
 * @interface NEHotspotHS20Settings
 * @discussion
 *   NEHotspotHS20Settings class provides a set of properties that are required
 *   to discover and negotiate Hotspot 2.0 Wi-Fi networks.
 */
API_AVAILABLE(ios(11.0))
@interface NEHotspotHS20Settings : NSObject <NSCopying,NSSecureCoding>

/*!
 * @property domainName
 * @discussion Domain Name of Legacy Hotspot or Hotspot 2.0 Wi-Fi Network.
 *   This Domain Name is used for Wi-Fi Hotspot 2.0 negotiation.
 */
@property (nonnull, readonly) NSString *domainName API_AVAILABLE(ios(11.0));

/*!
 * @property roamingEnabled
 * @discussion If set to YES, allows connection to networks of roaming service
 *   providers. Defaults to NO.
 */
@property (getter=isRoamingEnabled) BOOL roamingEnabled API_AVAILABLE(ios(11.0));

/*!
 * @property roamingConsortiumOIs
 * @discussion Array of Roaming Consortium Organization Identifiers used
 *   for Wi-Fi Hotspot 2.0 negotiation.
 */
@property (copy) NSArray<NSString *> *roamingConsortiumOIs;

/*!
 * @property naiRealmNames
 * @discussion Array of Network Access Identifier Realm names used for
 *   Wi-Fi Hotspot 2.0 negotiation.
 */
@property (copy) NSArray<NSString *> *naiRealmNames;

/*!
 * @property MCCAndMNCs
 * @discussion Array of Mobile Country Code (MCC)/Mobile Network Code (MNC)
 *   pairs used for Wi-Fi Hotspot 2.0 negotiation. Each string must contain
 *   exactly six digits.
 */
@property (copy) NSArray<NSString *> *MCCAndMNCs;

/*!
 * @method initWithDomainName:roamingEnabled
 * @discussion
 *   A designated initializer to instantiate a new NEHotspotHSSettings object.
 *   This initializer is used to configure Legacy Hotspot or HS2.0 Wi-Fi Networks.
 *
 * @param domainName The domain name of HS2.0 Wi-Fi Network
 * @param roamingEnabled If YES, allows connections to networks of roaming service providers.
 */
- (instancetype)initWithDomainName:(NSString *)domainName
						   roamingEnabled:(BOOL)roamingEnabled API_AVAILABLE(ios(11.0));

@end

/*!
 * @interface NEHotspotEAPSettings
 * @discussion
 *   NEHotspotEAPSettings class provides a set of properties that are required
 *   to configure a WPA/WPA2 Enterprise or Hotspot 2.0 Wi-Fi networks.
 */
API_AVAILABLE(ios(11.0))
@interface NEHotspotEAPSettings : NSObject <NSCopying,NSSecureCoding>

/*!
 * @property supportedEAPTypes
 * @discussion Array of supported EAP Types. Refer to NEHotspotConfigurationEAPType
 *   for valid values.
 */
@property (copy) NSArray<NSNumber *> *supportedEAPTypes API_AVAILABLE(ios(11.0));

/*!
 * @property username
 * @discussion A UTF-8 encoded string containing username component of the user authentication
 *   credentials. Length of this property must be between 1 and 253 characters.
 */
@property (copy) NSString *username API_AVAILABLE(ios(11.0));

/*!
 * @property outerIdentity
 * @discussion Identity string to be used in EAP-Response/Identity of the outer phase. This key is only
 *   relevant to TTLS, PEAP, and EAP-FAST.
 */
@property (copy) NSString *outerIdentity API_AVAILABLE(ios(11.0));

/*!
 * @property ttlsInnerAuthentication
 * @discussion Specifies the inner authentication used by the TTLS module.
 *   Possible values are PAP, CHAP, MSCHAP, MSCHAPv2, and EAP. Defaults to EAP.
 */
@property NEHotspotConfigurationTTLSInnerAuthenticationType ttlsInnerAuthenticationType API_AVAILABLE(ios(11.0));

/*!
 * @property password
 * @discussion The password component of the 802.1X authentication credential.
 *   Length of this property must be between 1 and 64 characters.
 */
@property (copy) NSString *password API_AVAILABLE(ios(11.0));

/*!
 * @property trustedServerNames
 * @discussion Array of server certificate common names that will be used to verify server's certificate.
 *   The string could have wildcards to specify the name, such as "*.mycompany.net". If a server presents
 *   a certificate with DNSName or Common Name that isn't in this list, it won't be trusted.
 */
@property (copy) NSArray<NSString *> *trustedServerNames API_AVAILABLE(ios(11.0));

/*!
 * @property isTLSClientCertificateRequired
 * @discussion If YES, supports two-factor authentication for EAP-TTLS, PEAP, or EAP-FAST.
 *   If NO, allows for zero-factor authentication for EAP-TLS. The default is YES for EAP-TLS,
 *   and NO for other EAP types.
 */
@property (getter=isTLSClientCertificateRequired) BOOL tlsClientCertificateRequired API_AVAILABLE(ios(11.0));

/*!
 * @property preferredTLSVersion
 * @discussion TLS version to use during the TLS handshake.
 *   Default value is NEHotspotConfigurationEAPTLSVersion_1_2.
 */
@property NEHotspotConfigurationEAPTLSVersion preferredTLSVersion API_AVAILABLE(ios(11.0));

/*!
 * @method setIdentity
 * @discussion Setter to configure the EAP peer identity. The application needs to store
 * this identity in keychain access group "$(TeamIdentifierPrefix)com.apple.networkextensionsharing".
 * The API uses SecItemCopyMatching to obtain persistent reference for this identity from application's
 * keychain and uses that at the time of EAP authentication.
 * This property is mandatory when EAP-TLS is desired or tlsClientCertificateRequired is set to YES.
 *
 * @param identity The identity of the EAP Peer. This is a SecIdentityRef object that contains
 * a SecKeyRef object and an associated SecCertificateRef object.
 * @result returns NO if the parameter is not an object of SecIdentityRef type or if the persistent reference
 * is not found in the application's keychain else returns YES.
 *
 */
- (BOOL) setIdentity:(SecIdentityRef) identity;

/*!
 * @method setTrustedServerCertificates
 * @discussion Setter to configure an array of trusted server certificates used for trust evaluation of
 * the server certificate.
 *
 * @param certificates Each value in the array is a SecCertificateRef object. Application needs to store
 * the certificates in keychain access group "$(TeamIdentifierPrefix)com.apple.networkextensionsharing".
 * The API uses SecItemCopyMatching to obtain persistent reference for each certificate from application's
 * keychain and uses that at the time os EAP authentication.
 * Number of elements in the array cannot be more than 10.
 *
 * @result returns NO if any element in the array is not an object of type SecCertificateRef or if API
 * fails to find persistent reference for each element from the application's keychain else return YES.
 */
- (BOOL) setTrustedServerCertificates:(NSArray *) certificates;

@end

/*!
 * @interface NEHotspotConfiguration
 * @discussion
 *   The NEHotspotConfiguration class represents set of properties that are required
 *   to configure a Wi-Fi Network.
 */
API_AVAILABLE(ios(11.0))
@interface NEHotspotConfiguration : NSObject <NSCopying,NSSecureCoding>

/*!
 * @property SSID
 * @discussion SSID of the Wi-Fi Network.
 */
@property (readonly) NSString * SSID API_AVAILABLE(ios(11.0));

/*!
 * @property joinOnce
 * @discussion if set to YES the configuration will not be persisted. Default is NO.
 */
@property BOOL joinOnce API_AVAILABLE(ios(11.0));

/*!
 * @property lifeTimeInDays
 * @discussion The lifetime of the configuration in days. The configuration is stored for the
 *   number of days specified by this property. The minimum value is 1 day and maximum value is 365 days.
 *   A configuration does not get deleted automatically if this property is not set or set to an invalid value.
 *   This property does not apply to Enterprise and HS2.0 networks.
 */
@property (copy) NSNumber * lifeTimeInDays API_AVAILABLE(ios(11.0));

/*!
 * @method initWithSSID:
 * @discussion
 *   A designated initializer to instantiate a new NEHotspotConfiguration object.
 *   This initializer is used to configure open Wi-Fi Networks.
 *
 * @param SSID The SSID of the Open Wi-Fi Network.
 *   Length of SSID must be between 1 and 32 characters.
 */
- (instancetype)initWithSSID:(NSString *)SSID API_AVAILABLE(ios(11.0));

/*!
 * @method initWithSSID:passphrase:isWEP
 * @discussion
 *   A designated initializer to instantiate a new NEHotspotConfiguration object.
 *   This initializer is used configure either WEP or WPA/WPA2 Personal Wi-Fi Networks.
 *
 * @param SSID The SSID of the WEP or WPA/WPA2 Personal Wi-Fi Network
 * @param passphrase The passphrase credential.
 *   For WPA/WPA2 Personal networks: between 8 and 63 characters.
 *   For Static WEP(64bit)  : 10 Hex Digits
 *   For Static WEP(128bit) : 26 Hex Digits
 * @param isWEP YES specifies WEP Wi-Fi Network else WPA/WPA2 Personal Wi-Fi Network
 */
- (instancetype)initWithSSID:(NSString *)SSID
					  passphrase:(NSString *)passphrase isWEP:(BOOL)isWEP API_AVAILABLE(ios(11.0));

/*!
 * @method initWithSSID:eapSettings
 * @discussion
 *   A designated initializer to instantiate a new NEHotspotConfiguration object.
 *   This initializer is used configure WPA/WPA2 Enterprise Wi-Fi Networks.
 *
 * @param SSID The SSID of WPA/WPA2 Enterprise Wi-Fi Network
 * @param eapSettings EAP configuration
 */
- (instancetype)initWithSSID:(NSString *)SSID
					  eapSettings:(NEHotspotEAPSettings *)eapSettings API_AVAILABLE(ios(11.0));

/*!
 * @method initWithHS20Settings:eapSettings
 * @discussion
 *   A designated initializer to instantiate a new NEHotspotConfiguration object.
 *   This initializer is used configure HS2.0 Wi-Fi Networks.
 *
 * @param hs20Settings Hotspot 2.0 configuration
 * @param eapSettings EAP configuration
 */
- (instancetype)initWithHS20Settings:(NEHotspotHS20Settings *)hs20Settings
						eapSettings:(NEHotspotEAPSettings *)eapSettings API_AVAILABLE(ios(11.0));

@end

/*!
 * @typedef NEHotspotConfigurationError
 * @abstract Hotspot Configuration error codes
 * @const NEHotspotConfigurationErrorInvalid The Wi-Fi configuration is invalid
 * @const NEHotspotConfigurationErrorInvalidSSID The given SSID string is invalid.
 * @const NEHotspotConfigurationErrorInvalidWPAPassphrase The given WPA/WPA2 Personal passphrase is invalid.
 * @const NEHotspotConfigurationErrorInvalidWEPPassphrase The given WEP passphrase is invalid.
 * @const NEHotspotConfigurationErrorInvalidEAPSettings  Invalid EAP Settings.
 * @const NEHotspotConfigurationErrorInvalidHS20Settings Invalid Hotspot 2.0 Settings.
 * @const NEHotspotConfigurationErrorInvalidHS20DomainName The given Hotspot 2.0 domain name is invalid.
 * @const NEHotspotConfigurationErrorUserDenied Failed to get the user's approval to add a new configuration.
 * @const NEHotspotConfigurationErrorInternal An internal error was encountered.
 * @const NEHotspotConfigurationErrorPending Previous request by the calling application is pending.
 * @const NEHotspotConfigurationErrorSystemConfiguration The calling application cannot modify the System(MDM/Carrier) configuration.
 * @const NEHotspotConfigurationErrorUnknown An unknown configuration error occurred.
 * @const NEHotspotConfigurationErrorJoinOnceNotSupported JoinOnce option is not support for EAP configuration.
 * @const NEHotspotConfigurationErrorAlreadyAssociated Wi-Fi is already associated.
 * @const NEHotspotConfigurationErrorApplicationIsNotInForeground The application is not in the foreground.
 */
typedef NS_ENUM(NSInteger, NEHotspotConfigurationError) {
	NEHotspotConfigurationErrorInvalid 				= 0,
	NEHotspotConfigurationErrorInvalidSSID 				= 1,
	NEHotspotConfigurationErrorInvalidWPAPassphrase 		= 2,
	NEHotspotConfigurationErrorInvalidWEPPassphrase 		= 3,
	NEHotspotConfigurationErrorInvalidEAPSettings 			= 4,
	NEHotspotConfigurationErrorInvalidHS20Settings 			= 5,
	NEHotspotConfigurationErrorInvalidHS20DomainName 		= 6,
	NEHotspotConfigurationErrorUserDenied 				= 7,
	NEHotspotConfigurationErrorInternal 				= 8,
	NEHotspotConfigurationErrorPending 				= 9,
	NEHotspotConfigurationErrorSystemConfiguration 			= 10,
	NEHotspotConfigurationErrorUnknown 				= 11,
	NEHotspotConfigurationErrorJoinOnceNotSupported 		= 12,
	NEHotspotConfigurationErrorAlreadyAssociated 			= 13,
	NEHotspotConfigurationErrorApplicationIsNotInForeground 	= 14
} API_AVAILABLE(ios(11.0));

/*!
 * @interface NEHotspotConfigurationManager
 * @discussion
 *   The NEHotspotConfigurationManager class allows an application to
 *   Add/Update/Remove Wi-Fi Network Configuraton.
 */
API_AVAILABLE(ios(11.0))
@interface NEHotspotConfigurationManager : NSObject

@property (class, readonly, strong) NEHotspotConfigurationManager *sharedManager;

/*!
 * @method applyConfiguration:
 * @discussion This function adds or updates a Wi-Fi network configuration.
 * @param configuration NEHotspotConfiguration object containing the Wi-Fi network configuration.
 * @param completionHandler A block that will be called when add/update operation is completed.
 *   This could be nil if application does not intend to receive the result.
 *   The NSError passed to this block will be nil if the configuration is successfully stored, non-nil otherwise.
 *   If the configuration is found invalid or API encounters some other error then completionHandler is called
 *   with instance of NSError containing appropriate error code. This API attempts to join the Wi-Fi network
 *   if the configuration is successfully added or updated and the network is found nearby.
 *
 */
- (void)applyConfiguration:(NEHotspotConfiguration *)configuration
						completionHandler:(void (^ __nullable)(NSError * __nullable error))completionHandler API_AVAILABLE(ios(11.0));

/*!
 * @method removeConfigurationForSSID:
 * @discussion This function removes Wi-Fi configuration.
 *   If the joinOnce property was set to YES, invoking this method will disassociate from the Wi-Fi network
 *   after the configuration is removed.
 * @param SSID Wi-Fi SSID for which the configuration is to be deleted.
 */
- (void)removeConfigurationForSSID:(NSString *)SSID API_AVAILABLE(ios(11.0));

/*!
 * @method removeConfigurationForNetworkName:
 * @discussion This function removes Wi-Fi configuration.
 * @param domainName HS2.0 domainName for which the configuration is to be deleted.
 */
- (void)removeConfigurationForHS20DomainName:(NSString *)domainName API_AVAILABLE(ios(11.0));

/*!
 * @method getConfiguredSSIDsWithCompletionHandler:
 * @discussion This function returns array of SSIDs and HS2.0 Domain Names that the calling application has configured.
 *   It returns nil if there are no networks configurred by the calling application.
 */
- (void)getConfiguredSSIDsWithCompletionHandler:(void (^)(NSArray<NSString *> *))completionHandler API_AVAILABLE(ios(11.0));

@end

NS_ASSUME_NONNULL_END

{'repo_name': 'theos/sdks', 'stars': '275', 'repo_language': 'Objective-C', 'file_name': 'TextInput_cs.tbd', 'mime_type': 'text/plain', 'hash': 8955189881471897933, 'source_dataset': 'data'}


# FAQ

## The container doesn't start!

Verify that the port is not already used (typically, by another container). You may do so by running `docker ps | grep PORTNUMBER`

## How do I setup user accounts?

The standalone registry does not provide account management. For simple
access control, you can set up an nginx or Apache frontend with basic
auth enabled (see the [advanced documentation](ADVANCED.md) for more about that).

## How do I report a bug?

Please insert the following into your bug report:

 * your registry version
 * specify how you are using your registry (container or pip)
 * specify what storage backend you use
 * restart your registry with the `DEBUG=true` environment variable set, and copy the output of `curl https://myregistry/_ping`
 * possibly copy any stack trace that you have

Please, no "this happens to me as well" comments on tickets - not helpful.

On the other hand, if you do have any useful information to provide, by all means do.

Also see [debugging](DEBUGGING.md) for more indepth information about troubleshooting and performance testing.

{'repo_name': 'docker-archive/docker-registry', 'stars': '2864', 'repo_language': 'Python', 'file_name': 'main.txt', 'mime_type': 'text/plain', 'hash': 2826520531226454683, 'source_dataset': 'data'}


//===-- RegisterContextFreeBSD_x86_64.h -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef liblldb_RegisterContextFreeBSD_x86_64_H_
#define liblldb_RegisterContextFreeBSD_x86_64_H_

#include "RegisterInfoInterface.h"

class RegisterContextFreeBSD_x86_64
    : public lldb_private::RegisterInfoInterface {
public:
  RegisterContextFreeBSD_x86_64(const lldb_private::ArchSpec &target_arch);

  size_t GetGPRSize() const override;

  const lldb_private::RegisterInfo *GetRegisterInfo() const override;

  uint32_t GetRegisterCount() const override;

private:
  const lldb_private::RegisterInfo *m_register_info_p;
  const uint32_t m_register_count;
};

#endif

{'repo_name': 'llvm-mirror/lldb', 'stars': '405', 'repo_language': 'C++', 'file_name': 'test_assertions.py', 'mime_type': 'text/x-python', 'hash': -1052123420762949373, 'source_dataset': 'data'}


<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:focusableInTouchMode="true"
                android:paddingBottom="@dimen/activity_vertical_margin"
                android:paddingLeft="@dimen/activity_horizontal_margin"
                android:paddingRight="@dimen/activity_horizontal_margin"
                tools:context="com.gotenna.sdk.sample.messages.BroadcastMessagesActivity">

    <ListView
        android:id="@+id/messagesListView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/bottomLayout"
        android:divider="@null"
        android:stackFromBottom="true"
        android:transcriptMode="alwaysScroll"
        tools:listitem="@layout/cell_chat_mine">

    </ListView>

    <RelativeLayout
        android:id="@+id/bottomLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true">

        <EditText
            android:id="@+id/sendMessageEditText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toLeftOf="@+id/sendButton"
            android:imeOptions="actionDone"
            android:inputType="textAutoComplete|textCapSentences" />

        <Button
            android:id="@+id/sendButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:onClick="onSendMessageButtonClicked"
            android:text="@string/send_button_text" />

    </RelativeLayout>

</RelativeLayout>

{'repo_name': 'gotenna/PublicSDK', 'stars': '117', 'repo_language': 'HTML', 'file_name': 'sampleGateway.py', 'mime_type': 'text/x-python', 'hash': -948287054894904134, 'source_dataset': 'data'}


// Copyright 2017 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 !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris

package socket

type cmsghdr struct{}

const sizeofCmsghdr = 0

func (h *cmsghdr) len() int { return 0 }
func (h *cmsghdr) lvl() int { return 0 }
func (h *cmsghdr) typ() int { return 0 }

func (h *cmsghdr) set(l, lvl, typ int) {}

{'repo_name': 'ysrc/yulong-hids', 'stars': '1749', 'repo_language': 'Go', 'file_name': 'mongo.go', 'mime_type': 'text/plain', 'hash': -2234547533635468194, 'source_dataset': 'data'}


/*******************************************************************************
 * You may amend and distribute as you like, but don't remove this header!
 *
 * EPPlus provides server-side generation of Excel 2007/2010 spreadsheets.
 * See https://github.com/JanKallman/EPPlus for details.
 *
 * Copyright (C) 2011  Jan Källman
 *
 * This library 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 2.1 of the License, or (at your option) any later version.

 * This library 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 Lesser General Public License for more details.
 *
 * The GNU Lesser General Public License can be viewed at http://www.opensource.org/licenses/lgpl-license.php
 * If you unfamiliar with this license or have questions about it, here is an http://www.gnu.org/licenses/gpl-faq.html
 *
 * All code and executables are provided "as is" with no warranty either express or implied.
 * The author accepts no liability for any damage or loss of business that this product may cause.
 *
 * Code change notes:
 *
 * Author          Change						                  Date
 * ******************************************************************************
 * Eyal Seagull    Conditional Formatting Adaption    2012-04-03
 *******************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using OfficeOpenXml.ConditionalFormatting;

namespace OfficeOpenXml.ConditionalFormatting.Contracts
{
  /// <summary>
  /// IExcelConditionalFormattingDuplicateValues
  /// </summary>
  public interface IExcelConditionalFormattingDuplicateValues
    : IExcelConditionalFormattingRule
  {
    #region Public Properties
    #endregion Public Properties
  }
}

{'repo_name': 'jarjin/FinalFramework', 'stars': '359', 'repo_language': 'C#', 'file_name': 'addressbook.proto', 'mime_type': 'text/plain', 'hash': -5503012209241558634, 'source_dataset': 'data'}


'use strict';

module.exports = {
	'#':         require('./#'),
	escape:      require('./escape'),
	isRegExp:    require('./is-reg-exp'),
	validRegExp: require('./valid-reg-exp')
};

{'repo_name': 'silklabs/silk', 'stars': '160', 'repo_language': 'JavaScript', 'file_name': 'silk-wifi.js.flow', 'mime_type': 'text/x-java', 'hash': -4219291828642395573, 'source_dataset': 'data'}


/*
 * Copyright 2017 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: Christian König
 */
#ifndef __AMDGPU_MN_H__
#define __AMDGPU_MN_H__

#include <linux/types.h>
#include <linux/hmm.h>
#include <linux/rwsem.h>
#include <linux/workqueue.h>
#include <linux/interval_tree.h>

enum amdgpu_mn_type {
	AMDGPU_MN_TYPE_GFX,
	AMDGPU_MN_TYPE_HSA,
};

/**
 * struct amdgpu_mn
 *
 * @adev: amdgpu device pointer
 * @mm: process address space
 * @type: type of MMU notifier
 * @work: destruction work item
 * @node: hash table node to find structure by adev and mn
 * @lock: rw semaphore protecting the notifier nodes
 * @objects: interval tree containing amdgpu_mn_nodes
 * @mirror: HMM mirror function support
 *
 * Data for each amdgpu device and process address space.
 */
struct amdgpu_mn {
	/* constant after initialisation */
	struct amdgpu_device	*adev;
	struct mm_struct	*mm;
	enum amdgpu_mn_type	type;

	/* only used on destruction */
	struct work_struct	work;

	/* protected by adev->mn_lock */
	struct hlist_node	node;

	/* objects protected by lock */
	struct rw_semaphore	lock;
	struct rb_root_cached	objects;

#ifdef CONFIG_HMM_MIRROR
	/* HMM mirror */
	struct hmm_mirror	mirror;
#endif
};

#if defined(CONFIG_HMM_MIRROR)
void amdgpu_mn_lock(struct amdgpu_mn *mn);
void amdgpu_mn_unlock(struct amdgpu_mn *mn);
struct amdgpu_mn *amdgpu_mn_get(struct amdgpu_device *adev,
				enum amdgpu_mn_type type);
int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr);
void amdgpu_mn_unregister(struct amdgpu_bo *bo);
void amdgpu_hmm_init_range(struct hmm_range *range);
#else
static inline void amdgpu_mn_lock(struct amdgpu_mn *mn) {}
static inline void amdgpu_mn_unlock(struct amdgpu_mn *mn) {}
static inline struct amdgpu_mn *amdgpu_mn_get(struct amdgpu_device *adev,
					      enum amdgpu_mn_type type)
{
	return NULL;
}
static inline int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr)
{
	DRM_WARN_ONCE("HMM_MIRROR kernel config option is not enabled, "
		      "add CONFIG_ZONE_DEVICE=y in config file to fix this\n");
	return -ENODEV;
}
static inline void amdgpu_mn_unregister(struct amdgpu_bo *bo) {}
#endif

#endif

{'repo_name': 'google/ktsan', 'stars': '551', 'repo_language': 'C', 'file_name': 'irqsrcs_thm_9_0.h', 'mime_type': 'text/x-c', 'hash': 3097451586956987791, 'source_dataset': 'data'}


/*
* 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.
*/

'use strict';

const FabricConnector = require('./fabric-connector');

/**
 * Constructs a Fabric connector.
 * @param {number} workerIndex The zero-based index of the worker who wants to create an connector instance. -1 for the manager process.
 * @return {Promise<ConnectorBase>} The initialized connector instance.
 * @async
 */
async function connectorFactory(workerIndex) {
    const connector = new FabricConnector(workerIndex, 'fabric');

    // the manager process explicitly calls "init"
    if (workerIndex > -1) {
        await connector.init(true);
    }

    return connector;
}

module.exports.ConnectorFactory = connectorFactory;

{'repo_name': 'hyperledger/caliper', 'stars': '393', 'repo_language': 'JavaScript', 'file_name': 'checks-and-unit-tests.sh', 'mime_type': 'text/x-shellscript', 'hash': -801925228049157863, 'source_dataset': 'data'}


var api = require('../'),
  assert = require('assert'),
  _ = require('underscore');

describe('mapshaper-union.js', function () {

  it('union of two polygons with identical fields adds disambiguating suffixes', function(done) {
    var fileA = 'test/data/features/union/polygonA.json';
    var fileB = 'test/data/features/union/polygonB.json';
    var cmd = `-i ${fileA} ${fileB} combine-files -union name=merged -o`;
    api.applyCommands(cmd, {}, function(err, out) {
      var features = JSON.parse(out['merged.json']).features;
      var records = _.pluck(features, 'properties');
      assert.deepEqual(records, [
        { name_2: null, value_2: null, name_1: 'A', value_1: 4 },
        { name_2: 'B', value_2: 8, name_1: 'A', value_1: 4 },
        { name_2: 'B', value_2: 8, name_1: null, value_1: null }
      ]);
      done();
    });
  });

  it('fields= option selects fields to retain', function(done) {
    var fileA = 'test/data/features/union/polygonA.json';
    var fileB = 'test/data/features/union/polygonB.json';
    var cmd = `-i ${fileA} ${fileB} combine-files -union fields=name name=merged -o`;
    api.applyCommands(cmd, {}, function(err, out) {
      var features = JSON.parse(out['merged.json']).features;
      var records = _.pluck(features, 'properties');
      assert.deepEqual(records, [
        { name_2: null, name_1: 'A'},
        { name_2: 'B', name_1: 'A'},
        { name_2: 'B', name_1: null}
      ]);
      done();
    });
  });

  it('union of three polygons with identical fields', function(done) {
    var fileA = 'test/data/features/union/polygonA.json';
    var fileB = 'test/data/features/union/polygonB.json';
    var fileC = 'test/data/features/union/polygonC.json';
    var cmd = `-i ${fileA} ${fileB} ${fileC} combine-files -union name=merged -o`;
    api.applyCommands(cmd, {}, function(err, out) {
      var features = JSON.parse(out['merged.json']).features;
      var records = _.pluck(features, 'properties');
      assert.deepEqual(records, [
        { name_2: null, value_2: null, name_1: 'A', value_1: 4, name_3: null, value_3: null },
        { name_2: 'B', value_2: 8, name_1: 'A', value_1: 4, name_3: null, value_3: null  },
        { name_2: 'B', value_2: 8, name_1: null, value_1: null, name_3: null, value_3: null  },
        { name_2: 'B', value_2: 8, name_1: null, value_1: null, name_3: 'C', value_3: 0  },
        { name_2: null, value_2: null, name_1: null, value_1: null, name_3: 'C', value_3: 0  }
      ]);
      done();
    });
  });

  it('union of two polygons with different fields preserves field names', function(done) {
    var fileA = 'test/data/features/union/polygonA.json';
    var fileB = 'test/data/features/union/polygonB.json';
    var cmd = `-i ${fileA} -rename-fields nameA=name,valueA=value -i ${fileB} -union target=* name=merged -o`;
    api.applyCommands(cmd, {}, function(err, out) {
      var features = JSON.parse(out['merged.json']).features;
      var records = _.pluck(features, 'properties');
      assert.deepEqual(records, [
        { name: null, value: null, nameA: 'A', valueA: 4 },
        { name: 'B', value: 8, nameA: 'A', valueA: 4 },
        { name: 'B', value: 8, nameA: null, valueA: null }
      ]);
      done();
    });
  });

  it('union with a no-data layer works; default layer name is "union"', function(done) {
    var fileA = 'test/data/features/union/polygonA.json';
    var geomB = {
      type: 'Polygon',
      coordinates: [[[1, 1], [2, 2], [3, 1], [2, 0], [1, 1]]]
    }
    var cmd = `-i polygonB.json -i ${fileA} -union target=polygonA,polygonB -o`;
    api.applyCommands(cmd, {'polygonB.json': geomB}, function(err, out) {
      var features = JSON.parse(out['union.json']).features;
      var records = _.pluck(features, 'properties');
      assert.deepEqual(records, [
        { name: 'A', value: 4 },
        { name: 'A', value: 4 },
        { name: null, value: null }
      ]);
      done();
    });
  })
});

{'repo_name': 'mbloch/mapshaper', 'stars': '2318', 'repo_language': 'JavaScript', 'file_name': 'nad27', 'mime_type': 'text/plain', 'hash': 1990112568749344816, 'source_dataset': 'data'}


// Copyright (C) 2011 Zimin A.V.
//
// 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.

/**
 * @fileoverview
 * Registers a language handler for the Nemerle language.
 * http://nemerle.org
 * @author Zimin A.V.
 */
(function () {
  // http://nemerle.org/wiki/index.php?title=Base_keywords
  var keywords = 'abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|'
         + 'fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|'
         + 'null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|'
         + 'syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|'
         + 'assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|'
         + 'otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield';

  PR['registerLangHandler'](PR['createSimpleLexer'](
      // shortcutStylePatterns
      [
        [PR['PR_STRING'], /^(?:\'(?:[^\\\'\r\n]|\\.)*\'|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, '"'],
        [PR['PR_COMMENT'], /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/, null, '#'],
        [PR['PR_PLAIN'], /^\s+/, null, ' \r\n\t\xA0']
      ],
      // fallthroughStylePatterns
      [
        [PR['PR_STRING'], /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null],
        [PR['PR_STRING'], /^<#(?:[^#>])*(?:#>|$)/, null],
        [PR['PR_STRING'], /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, null],
        [PR['PR_COMMENT'], /^\/\/[^\r\n]*/, null],
        [PR['PR_COMMENT'], /^\/\*[\s\S]*?(?:\*\/|$)/, null],
        [PR['PR_KEYWORD'], new RegExp('^(?:' + keywords + ')\\b'), null],
        [PR['PR_TYPE'], /^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/, null],
        [PR['PR_LITERAL'], /^@[a-z_$][a-z_$@0-9]*/i, null],
        [PR['PR_TYPE'], /^@[A-Z]+[a-z][A-Za-z_$@0-9]*/, null],
        [PR['PR_PLAIN'], /^'?[A-Za-z_$][a-z_$@0-9]*/i, null],
        [PR['PR_LITERAL'], new RegExp(
             '^(?:'
  // A hex number
             + '0x[a-f0-9]+'
  // or an octal or decimal number,
             + '|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)'
  // possibly in scientific notation
             + '(?:e[+\\-]?\\d+)?'
             + ')'
  // with an optional modifier like UL for unsigned long
             + '[a-z]*', 'i'), null, '0123456789'],

        [PR['PR_PUNCTUATION'], /^.[^\s\w\.$@\'\"\`\/\#]*/, null]
      ]),
      ['n', 'nemerle']);
})();

{'repo_name': 'afourmy/flask-gentelella', 'stars': '478', 'repo_language': 'HTML', 'file_name': 'default.js', 'mime_type': 'text/plain', 'hash': 5767916863450872922, 'source_dataset': 'data'}


use super::*;
use crate::{
    config::*,
    models::{
        dockarea::DockArea, rect::Rect, screen::Screen, windowwrapper::WindowWrapper, Direction,
    },
    xlibwrapper::{
        util::{Position, Size},
        xlibmodels::*,
    },
};

#[derive(Debug, Clone)]
pub struct Floating {
    pub layout_type: LayoutTag,
}

impl Default for Floating {
    fn default() -> Self {
        Self {
            layout_type: LayoutTag::Floating,
        }
    }
}

impl std::fmt::Display for Floating {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        write!(f, "{}", self.layout_type)
    }
}

impl Layout for Floating {
    fn get_type(&self) -> LayoutTag {
        self.layout_type
    }

    fn place_window(
        &mut self,
        dock_area: &DockArea,
        screen: &Screen,
        w: Window,
        windows: Vec<&WindowWrapper>,
    ) -> Vec<(Window, Rect)> {
        let new_size = Size {
            width: (screen.width / 10) * 8,
            height: (screen.height / 10) * 6,
        };

        let dw = (screen.width - new_size.width as i32) / 2;
        let mut dh = (screen.height - new_size.height as i32) / 2;

        if let Some(dock_rect) = dock_area.as_rect(&screen) {
            dh =
                ((screen.height + dock_rect.get_size().height as i32) - new_size.height as i32) / 2;
        }
        let new_pos = Position {
            x: screen.x + dw,
            y: screen.y + dh,
        };

        vec![(w, Rect::new(new_pos, new_size))]
    }

    fn place_window_relative(
        &self,
        dock_area: &DockArea,
        screen: &Screen,
        w: Window,
        ww: &WindowWrapper,
    ) -> (Size, Position) {
        unimplemented!();
    }

    fn move_window(
        &self,
        screen: &Screen,
        dock_area: &DockArea,
        w: Window,
        respect_dock: bool,
        x: i32,
        y: i32,
    ) -> (Position, Position) {
        let mut y = y;
        match dock_area.as_rect(&screen) {
            Some(dock) if respect_dock => {
                if y < dock.get_size().height as i32 {
                    y = dock.get_size().height as i32 - CONFIG.border_width;
                }
            }
            Some(_) | None => {}
        }

        (
            Position { x, y },
            Position {
                x: x + CONFIG.border_width,
                y: y + CONFIG.decoration_height + CONFIG.border_width,
            },
        )
    }

    fn reorder(
        &mut self,
        focus: Window,
        screen: &Screen,
        dock_area: &DockArea,
        windows: Vec<WindowWrapper>,
    ) -> Vec<(Window, Rect)> {
        let space_rect = match dock_area.as_rect(screen) {
            Some(dock) => Rect::new(
                Position {
                    x: screen.x,
                    y: screen.y + dock.get_size().height,
                },
                Size {
                    width: screen.width,
                    height: screen.height - dock.get_size().height,
                },
            ),
            None => {
                let rect_tuple: (Position, Size) = screen.clone().into();
                Rect::new(rect_tuple.0, rect_tuple.1)
            }
        };

        let win_size_x = (space_rect.get_size().width / 2) - 2 * CONFIG.border_width;
        let win_size_y = (space_rect.get_size().height / 2) - 2 * CONFIG.border_width;

        let center_win_pos = Position {
            x: space_rect.get_position().x + (space_rect.get_size().width / 2) - (win_size_x / 2),
            y: space_rect.get_position().y + (space_rect.get_size().height / 2) - (win_size_y / 2),
        };

        let step_size_x = (space_rect.get_position().x - center_win_pos.x).abs()
            / if !windows.is_empty() {
                windows.len() as i32
            } else {
                1
            };
        let step_size_y = (space_rect.get_position().y - center_win_pos.y).abs()
            / if !windows.is_empty() {
                windows.len() as i32
            } else {
                1
            };

        windows
            .iter()
            .rev()
            .enumerate()
            .map(|(index, win)| {
                let pos = Position {
                    x: center_win_pos.x - (index as i32 * step_size_x),
                    y: center_win_pos.y - (index as i32 * step_size_y),
                };
                let size = Size {
                    width: win_size_x,
                    height: win_size_y,
                };
                (win.window(), Rect::new(pos, size))
            })
            .collect::<Vec<(Window, Rect)>>()
    }

    fn shift_window(
        &self,
        screen: &Screen,
        ww: &WindowWrapper,
        dock_area: &DockArea,
        w: Window,
        direction: Direction,
    ) -> Vec<WindowWrapper> {
        let origin = Position {
            x: screen.x,
            y: screen.y,
        };
        match direction {
            Direction::North => {
                let pos = self
                    .move_window(&screen, &dock_area, w, true, screen.x, screen.y)
                    .0;
                let mut size = Size {
                    width: screen.width - 2 * CONFIG.border_width,
                    height: (screen.height) / 2 - 2 * CONFIG.border_width,
                };
                if let Some(dock) = dock_area.as_rect(&screen) {
                    size.height -= dock.get_size().height / 2
                }
                vec![WindowWrapper {
                    window_rect: Rect::new(pos, size),
                    ..ww.clone()
                }]
            }
            Direction::NorthEast => {
                let pos = self
                    .move_window(
                        &screen,
                        &dock_area,
                        w,
                        true,
                        screen.x + screen.width / 2,
                        screen.y,
                    )
                    .0;
                let mut size = Size {
                    width: (screen.width / 2) - 2 * CONFIG.border_width,
                    height: (screen.height) / 2 - 2 * CONFIG.border_width,
                };
                if let Some(dock) = dock_area.as_rect(&screen) {
                    size.height -= dock.get_size().height / 2
                }
                vec![WindowWrapper {
                    window_rect: Rect::new(pos, size),
                    ..ww.clone()
                }]
            }
            Direction::East => {
                let pos = self
                    .move_window(
                        &screen,
                        &dock_area,
                        w,
                        true,
                        screen.x + screen.width / 2,
                        screen.y,
                    )
                    .0;
                let mut size = Size {
                    width: (screen.width) / 2 - 2 * CONFIG.border_width,
                    height: screen.height - CONFIG.border_width,
                };
                if let Some(dock) = dock_area.as_rect(&screen) {
                    size.height -= dock.get_size().height;
                }
                vec![WindowWrapper {
                    window_rect: Rect::new(pos, size),
                    ..ww.clone()
                }]
            }
            Direction::SouthEast => {
                let mut pos = self
                    .move_window(
                        &screen,
                        &dock_area,
                        w,
                        true,
                        screen.x + screen.width / 2,
                        screen.height / 2,
                    )
                    .0;
                let mut size = Size {
                    width: (screen.width) / 2 - 2 * CONFIG.border_width,
                    height: (screen.height) / 2 - 2 * CONFIG.border_width,
                };
                if let Some(dock) = dock_area.as_rect(&screen) {
                    let offset = dock.get_size().height / 2;
                    size.height -= offset;
                    pos.y += offset as i32;
                }
                vec![WindowWrapper {
                    window_rect: Rect::new(pos, size),
                    ..ww.clone()
                }]
            }
            Direction::South => {
                let mut pos = self
                    .move_window(&screen, &dock_area, w, true, screen.x, screen.height / 2)
                    .0;
                let mut size = Size {
                    width: screen.width - 2 * CONFIG.border_width,
                    height: (screen.height) / 2 - 2 * CONFIG.border_width,
                };
                if let Some(dock) = dock_area.as_rect(&screen) {
                    let offset = dock.get_size().height / 2;
                    size.height -= offset;
                    pos.y += offset as i32;
                }
                vec![WindowWrapper {
                    window_rect: Rect::new(pos, size),
                    ..ww.clone()
                }]
            }
            Direction::SouthWest => {
                let mut pos = self
                    .move_window(&screen, &dock_area, w, true, screen.x, screen.height / 2)
                    .0;
                let mut size = Size {
                    width: (screen.width / 2) - 2 * CONFIG.border_width,
                    height: (screen.height / 2) - 2 * CONFIG.border_width,
                };
                if let Some(dock) = dock_area.as_rect(&screen) {
                    let offset = dock.get_size().height / 2;
                    size.height -= offset;
                    pos.y += offset as i32;
                }
                vec![WindowWrapper {
                    window_rect: Rect::new(pos, size),
                    ..ww.clone()
                }]
            }
            Direction::West => {
                let pos = self
                    .move_window(&screen, &dock_area, w, true, screen.x, screen.y)
                    .0;
                let mut size = Size {
                    width: (screen.width) / 2 - 2 * CONFIG.border_width,
                    height: (screen.height) - CONFIG.border_width,
                };
                if let Some(dock) = dock_area.as_rect(&screen) {
                    size.height -= dock.get_size().height;
                }
                vec![WindowWrapper {
                    window_rect: Rect::new(pos, size),
                    ..ww.clone()
                }]
            }
            Direction::NorthWest => {
                let pos = self
                    .move_window(&screen, &dock_area, w, true, screen.x, screen.y)
                    .0;
                let mut size = Size {
                    width: (screen.width / 2) - 2 * CONFIG.border_width,
                    height: (screen.height) / 2 - 2 * CONFIG.border_width,
                };
                if let Some(dock) = dock_area.as_rect(&screen) {
                    size.height -= dock.get_size().height / 2
                }
                vec![WindowWrapper {
                    window_rect: Rect::new(pos, size),
                    ..ww.clone()
                }]
            }
        }
    }
}

{'repo_name': 'AdaShoelace/hadlock', 'stars': '106', 'repo_language': 'Rust', 'file_name': 'build.sh', 'mime_type': 'text/x-shellscript', 'hash': 1890695122663037440, 'source_dataset': 'data'}


<link href="{{basePath}}client/modules/crm/css/fullcalendar.css" rel="stylesheet">
<link href="{{basePath}}client/modules/crm/css/fullcalendar.print.css" rel="stylesheet" media="print">

{{#if header}}

            <button class="btn btn-text btn-icon" data-action="prev"></button>
            <button class="btn btn-text btn-icon" data-action="next"></button>

        <button class="btn btn-text strong" data-action="today" title="{{todayLabel}}">
            {{todayLabel}}{{todayLabelShort}}
        </button>

        <button class="btn btn-text{{#unless isCustomView}} hidden{{/unless}} btn-icon" data-action="editCustomView" title="{{translate 'Edit'}}"></button>

            {{{modeButtons}}}

{{/if}}

{'repo_name': 'espocrm/espocrm', 'stars': '633', 'repo_language': 'PHP', 'file_name': 'po.js', 'mime_type': 'text/x-c++', 'hash': -3398478748973486825, 'source_dataset': 'data'}


last-generated=2018-06-24
statistics-fmu-dependencies=
{
  "Derivatives": {},
  "InitialUnknowns": {
    "QGaiLat_flow": [],
    "QGaiRad_flow": [],
    "QGaiSenCon_flow": [],
    "fluPor[1].forward.C[1]": [],
    "fluPor[1].forward.C[2]": [],
    "fluPor[1].forward.C[3]": [],
    "fluPor[1].forward.T": [],
    "fluPor[1].m_flow": [],
    "fluPor[2].forward.C[1]": [],
    "fluPor[2].forward.C[2]": [],
    "fluPor[2].forward.C[3]": [],
    "fluPor[2].forward.T": [],
    "fluPor[2].m_flow": []
  },
  "Outputs": {
    "QGaiLat_flow": [],
    "QGaiRad_flow": [],
    "QGaiSenCon_flow": [],
    "fluPor[1].forward.C[1]": [],
    "fluPor[1].forward.C[2]": [],
    "fluPor[1].forward.C[3]": [],
    "fluPor[1].forward.T": [],
    "fluPor[1].m_flow": [],
    "fluPor[2].forward.C[1]": [],
    "fluPor[2].forward.C[2]": [],
    "fluPor[2].forward.C[3]": [],
    "fluPor[2].forward.T": [],
    "fluPor[2].m_flow": []
  }
}

{'repo_name': 'lbl-srg/modelica-buildings', 'stars': '110', 'repo_language': 'Modelica', 'file_name': 'package.order', 'mime_type': 'text/plain', 'hash': -4013793378858471093, 'source_dataset': 'data'}


import React from 'react';
import { withRouter } from 'react-router';
import PageLayout from '@components/PageLayout';
import HorizontalSplit from '@components/HorizontalSplit';
import AboutSpeechOverview from '@components/AboutSpeechOverview';
import AboutSpeechDetails from '@components/AboutSpeechDetails';

class AboutPage extends React.Component {
  render () {
    return (
      <PageLayout
        pageTitle={'About'}
        pageUri={'about'}
      >
        <HorizontalSplit
          collapseOnMobile
          leftSide={<AboutSpeechOverview />}
          rightSide={<AboutSpeechDetails />}
        />
      </PageLayout>
    );
  }
}

export default withRouter(AboutPage);

{'repo_name': 'lbryio/spee.ch', 'stars': '163', 'repo_language': 'JavaScript', 'file_name': 'logo.handlebars', 'mime_type': 'text/plain', 'hash': -2746969255572343346, 'source_dataset': 'data'}


/**
 * Copyright (c) 2010-2020 Contributors to the openHAB project
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package org.openhab.binding.zwave.internal.converter.command;

import org.openhab.core.items.Item;
import org.openhab.core.library.types.DecimalType;

/**
 * Converts from {@link DecimalType} command to a Z-Wave value.
 *
 * @author Chris Jackson
 * @since 1.7.0
 */
public class IntegerCommandConverter extends ZWaveCommandConverter<DecimalType, Integer> {

    /**
     * {@inheritDoc}
     */
    @Override
    protected Integer convert(Item item, DecimalType command) {
        return command.intValue();
    }

}

{'repo_name': 'openhab/openhab1-addons', 'stars': '3482', 'repo_language': 'Java', 'file_name': 'header.txt', 'mime_type': 'text/plain', 'hash': 3415663472044359541, 'source_dataset': 'data'}


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Serialized Form (Jackson-dataformat-XML 2.4.0 API)</title>
<meta name="date" content="2014-06-02">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Serialized Form

Package com.fasterxml.jackson.dataformat.xml

Class com.fasterxml.jackson.dataformat.xml.JacksonXmlAnnotationIntrospector extends com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector implements Serializable

serialVersionUID:

1L

Serialized Fields

_cfgDefaultUseWrapper

boolean _cfgDefaultUseWrapper

Class com.fasterxml.jackson.dataformat.xml.JacksonXmlModule extends com.fasterxml.jackson.databind.module.SimpleModule implements Serializable

serialVersionUID:

1L

Serialized Fields

_cfgDefaultUseWrapper

boolean _cfgDefaultUseWrapper

Determination of whether indexed properties (arrays, Lists) that are not explicitly
 annotated (with JacksonXmlElementWrapper
 or equivalent) should default to using implicit wrapper (with same name as property) or not.
 If enabled, wrapping is used by default; if false, it is not.

 Note that JAXB annotation introspector always assumes "do not wrap by default".
 Jackson annotations have different default due to backwards compatibility.

Since:

2.1

_cfgNameForTextElement

String _cfgNameForTextElement

Name used for pseudo-property used for returning XML Text value (which does
 not have actual element name to use). Defaults to empty String, but
 may be changed for interoperability reasons: JAXB, for example, uses
 "value" as name.

Since:

2.1

Class com.fasterxml.jackson.dataformat.xml.XmlAnnotationIntrospector.Pair extends com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair implements Serializable

serialVersionUID:

1L

Serialized Fields

_xmlPrimary

XmlAnnotationIntrospector _xmlPrimary

_xmlSecondary

XmlAnnotationIntrospector _xmlSecondary

Class com.fasterxml.jackson.dataformat.xml.XmlFactory extends com.fasterxml.jackson.core.JsonFactory implements Serializable

serialVersionUID:

-2793875812715996133L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException

In addition to default serialization, which mostly works, need
 to handle case of XML factories, hence override.

Throws:

IOException

ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException

In addition to default serialization, which mostly works, need
 to handle case of XML factories, hence override.

Throws:

IOException

readResolve

protected Object readResolve()

Method that we need to override to actually make restoration go
 through constructors etc.

Serialized Fields

_xmlParserFeatures

int _xmlParserFeatures

_xmlGeneratorFeatures

int _xmlGeneratorFeatures

_cfgNameForTextElement

String _cfgNameForTextElement

Class com.fasterxml.jackson.dataformat.xml.XmlMapper extends com.fasterxml.jackson.databind.ObjectMapper implements Serializable

serialVersionUID:

-724333029147285918L

Serialized Fields

_xmlModule

JacksonXmlModule _xmlModule

Package com.fasterxml.jackson.dataformat.xml.deser

Class com.fasterxml.jackson.dataformat.xml.deser.WrapperHandlingDeserializer extends com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer implements Serializable

serialVersionUID:

1L

Serialized Fields

_namesToWrap

Set<E> _namesToWrap

(Simple) Names of properties, for which virtual wrapping is needed
 to compensate: these are so-called 'unwrapped' XML lists where property
 name is used for elements, and not as List markers.

Class com.fasterxml.jackson.dataformat.xml.deser.XmlBeanDeserializerModifier extends com.fasterxml.jackson.databind.deser.BeanDeserializerModifier implements Serializable

serialVersionUID:

1L

Serialized Fields

_cfgNameForTextValue

String _cfgNameForTextValue

Virtual name used for text segments.

Class com.fasterxml.jackson.dataformat.xml.deser.XmlTextDeserializer extends com.fasterxml.jackson.databind.deser.std.DelegatingDeserializer implements Serializable

serialVersionUID:

1L

Serialized Fields

_xmlTextPropertyIndex

int _xmlTextPropertyIndex

Property index of the "XML text property"; needed for finding actual
 property instance after resolution and contextualization: instance
 may change, but index will remain constant.

_xmlTextProperty

com.fasterxml.jackson.databind.deser.SettableBeanProperty _xmlTextProperty

Actual property that is indicated to be of type "XML Text" (and
 is the only element-valued property)

_valueInstantiator

com.fasterxml.jackson.databind.deser.ValueInstantiator _valueInstantiator

Package com.fasterxml.jackson.dataformat.xml.jaxb

Class com.fasterxml.jackson.dataformat.xml.jaxb.XmlJaxbAnnotationIntrospector extends com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector implements Serializable

serialVersionUID:

6477843393758275877L

Package com.fasterxml.jackson.dataformat.xml.ser

Class com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerModifier extends com.fasterxml.jackson.databind.ser.BeanSerializerModifier implements Serializable

serialVersionUID:

1L

Class com.fasterxml.jackson.dataformat.xml.ser.XmlSerializerProvider extends com.fasterxml.jackson.databind.ser.DefaultSerializerProvider implements Serializable

serialVersionUID:

-141838337907252911L

Serialized Fields

_rootNameLookup

XmlRootNameLookup _rootNameLookup

Package com.fasterxml.jackson.dataformat.xml.util

Class com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter extends Object implements Serializable

serialVersionUID:

-1811120944652457526L

Serialized Fields

_arrayIndenter

DefaultXmlPrettyPrinter.Indenter _arrayIndenter

By default, let's use only spaces to separate array values.

_objectIndenter

DefaultXmlPrettyPrinter.Indenter _objectIndenter

By default, let's use linefeed-adding indenter for separate
 object entries. We'll further configure indenter to use
 system-specific linefeeds, and 2 spaces per level (as opposed to,
 say, single tabs)

_spacesInObjectEntries

boolean _spacesInObjectEntries

By default we will add spaces around colons used to
 separate object fields and values.
 If disabled, will not use spaces around colon.

Class com.fasterxml.jackson.dataformat.xml.util.XmlRootNameLookup extends Object implements Serializable

serialVersionUID:

1L

Serialization Methods

readResolve

protected Object readResolve()

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Copyright © 2014 FasterXML. All Rights Reserved.

{'repo_name': 'FasterXML/jackson-dataformat-xml', 'stars': '406', 'repo_language': 'Java', 'file_name': 'JacksonXmlModule.html', 'mime_type': 'text/html', 'hash': -240902925927424010, 'source_dataset': 'data'}


// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all -external-defs-to-decls %s | %FileCheck %s

// CHECK: sil @no_op : $@convention(thin) () -> ()
sil public_external @no_op : $@convention(thin) () -> () {
bb0:
  %9999 = tuple()
  return %9999 : $()
}

{'repo_name': 'Polidea/SiriusObfuscator', 'stars': '376', 'repo_language': 'C++', 'file_name': 'xray-extract.cc', 'mime_type': 'text/x-c++', 'hash': -4918107092801964325, 'source_dataset': 'data'}


{'repo_name': 'yoyofx/NetCore_YOYOFx', 'stars': '262', 'repo_language': 'C', 'file_name': 'MockOwinRequest.cs', 'mime_type': 'text/plain', 'hash': 6364727683521498628, 'source_dataset': 'data'}


keywordCell
 enum charge cardNumber amount currency description token
floatCell
intCell
anyCell
cardNumberCell
 description The credit card number
 highlightScope constant.numeric
 examples 1111222233334444
amountCell
 description Amount to be charged in the specified currency.
 extends floatCell
 examples 9.99
 min 0
 max 99999
descriptionCell
 description Any text can go in the charge description.
 highlightScope string
 extends anyCell
 examples IceCream
tokenCell
 description A random token code generated by the hypothetical Arrow Company.
 highlightScope string
 examples sk_test_4eC39H
currencyCell
 enum usd cad jpy
 highlightScope constant.numeric
arrowNode
 description A demonstration prefix Tree Language showing how in the future Tree Notation will be used for simpler and more intelligent APIs.
 root
 inScope chargeNode
 catchAllNodeType errorNode
 javascript
  compile() {
   return this.toJsonSubset()
  }
errorNode
 baseNodeType errorNode
chargeNode
 inScope amountNode currencyNode descriptionNode cardNumberNode tokenNode
 description A credit card charge
 crux charge
 cells keywordCell
 javascript
  async execute() {
   const card = this.get("cardNumber")
   return `Successfully charged ${this.get("amount")} ${this.get("currency")} to card ${card.substr(card.length - 4, 4)}.`
  }
cardNumberNode
 crux cardNumber
 cells keywordCell cardNumberCell
 required
amountNode
 crux amount
 cells keywordCell amountCell
 required
currencyNode
 crux currency
 cells keywordCell currencyCell
 required
descriptionNode
 crux description
 cells keywordCell
 catchAllCellType descriptionCell
 required
tokenNode
 crux token
 cells keywordCell tokenCell

{'repo_name': 'treenotation/jtree', 'stars': '183', 'repo_language': 'JavaScript', 'file_name': 'javascript.js', 'mime_type': 'text/plain', 'hash': 3777610443056219383, 'source_dataset': 'data'}


/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/route53/Route53_EXPORTS.h>
#include <aws/route53/Route53Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/route53/model/RRType.h>
#include <utility>

namespace Aws
{
namespace Http
{
    class URI;
} //namespace Http
namespace Route53
{
namespace Model
{

  /**
   *
A complex type that contains the information about the request to list your
   * traffic policy instances.

See Also:
   AWS
   * API Reference

   */
  class AWS_ROUTE53_API ListTrafficPolicyInstancesByPolicyRequest : public Route53Request
  {
  public:
    ListTrafficPolicyInstancesByPolicyRequest();

    // Service request name is the Operation name which will send this request out,
    // each operation should has unique request name, so that we can get operation's name from this request.
    // Note: this is not true for response, multiple operations may have the same response name,
    // so we can not get operation's name from response.
    inline virtual const char* GetServiceRequestName() const override { return "ListTrafficPolicyInstancesByPolicy"; }

    Aws::String SerializePayload() const override;

    void AddQueryStringParameters(Aws::Http::URI& uri) const override;

    /**
     *
The ID of the traffic policy for which you want to list traffic policy
     * instances.

     */
    inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }

    /**
     *
The ID of the traffic policy for which you want to list traffic policy
     * instances.

     */
    inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }

    /**
     *
The ID of the traffic policy for which you want to list traffic policy
     * instances.

     */
    inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; }

    /**
     *
The ID of the traffic policy for which you want to list traffic policy
     * instances.

     */
    inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); }

    /**
     *
The ID of the traffic policy for which you want to list traffic policy
     * instances.

     */
    inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); }

    /**
     *
The ID of the traffic policy for which you want to list traffic policy
     * instances.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;}

    /**
     *
The ID of the traffic policy for which you want to list traffic policy
     * instances.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}

    /**
     *
The ID of the traffic policy for which you want to list traffic policy
     * instances.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}

    /**
     *
The version of the traffic policy for which you want to list traffic policy
     * instances. The version must be associated with the traffic policy that is
     * specified by TrafficPolicyId.

     */
    inline int GetTrafficPolicyVersion() const{ return m_trafficPolicyVersion; }

    /**
     *
The version of the traffic policy for which you want to list traffic policy
     * instances. The version must be associated with the traffic policy that is
     * specified by TrafficPolicyId.

     */
    inline bool TrafficPolicyVersionHasBeenSet() const { return m_trafficPolicyVersionHasBeenSet; }

    /**
     *
The version of the traffic policy for which you want to list traffic policy
     * instances. The version must be associated with the traffic policy that is
     * specified by TrafficPolicyId.

     */
    inline void SetTrafficPolicyVersion(int value) { m_trafficPolicyVersionHasBeenSet = true; m_trafficPolicyVersion = value; }

    /**
     *
The version of the traffic policy for which you want to list traffic policy
     * instances. The version must be associated with the traffic policy that is
     * specified by TrafficPolicyId.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithTrafficPolicyVersion(int value) { SetTrafficPolicyVersion(value); return *this;}

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of hostedzoneid, specify the value
     * of HostedZoneIdMarker from the previous response, which is the
     * hosted zone ID of the first traffic policy instance that Amazon Route 53 will
     * return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline const Aws::String& GetHostedZoneIdMarker() const{ return m_hostedZoneIdMarker; }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of hostedzoneid, specify the value
     * of HostedZoneIdMarker from the previous response, which is the
     * hosted zone ID of the first traffic policy instance that Amazon Route 53 will
     * return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline bool HostedZoneIdMarkerHasBeenSet() const { return m_hostedZoneIdMarkerHasBeenSet; }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of hostedzoneid, specify the value
     * of HostedZoneIdMarker from the previous response, which is the
     * hosted zone ID of the first traffic policy instance that Amazon Route 53 will
     * return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline void SetHostedZoneIdMarker(const Aws::String& value) { m_hostedZoneIdMarkerHasBeenSet = true; m_hostedZoneIdMarker = value; }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of hostedzoneid, specify the value
     * of HostedZoneIdMarker from the previous response, which is the
     * hosted zone ID of the first traffic policy instance that Amazon Route 53 will
     * return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline void SetHostedZoneIdMarker(Aws::String&& value) { m_hostedZoneIdMarkerHasBeenSet = true; m_hostedZoneIdMarker = std::move(value); }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of hostedzoneid, specify the value
     * of HostedZoneIdMarker from the previous response, which is the
     * hosted zone ID of the first traffic policy instance that Amazon Route 53 will
     * return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline void SetHostedZoneIdMarker(const char* value) { m_hostedZoneIdMarkerHasBeenSet = true; m_hostedZoneIdMarker.assign(value); }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of hostedzoneid, specify the value
     * of HostedZoneIdMarker from the previous response, which is the
     * hosted zone ID of the first traffic policy instance that Amazon Route 53 will
     * return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithHostedZoneIdMarker(const Aws::String& value) { SetHostedZoneIdMarker(value); return *this;}

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of hostedzoneid, specify the value
     * of HostedZoneIdMarker from the previous response, which is the
     * hosted zone ID of the first traffic policy instance that Amazon Route 53 will
     * return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithHostedZoneIdMarker(Aws::String&& value) { SetHostedZoneIdMarker(std::move(value)); return *this;}

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of hostedzoneid, specify the value
     * of HostedZoneIdMarker from the previous response, which is the
     * hosted zone ID of the first traffic policy instance that Amazon Route 53 will
     * return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithHostedZoneIdMarker(const char* value) { SetHostedZoneIdMarker(value); return *this;}

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancename, specify
     * the value of TrafficPolicyInstanceNameMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline const Aws::String& GetTrafficPolicyInstanceNameMarker() const{ return m_trafficPolicyInstanceNameMarker; }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancename, specify
     * the value of TrafficPolicyInstanceNameMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline bool TrafficPolicyInstanceNameMarkerHasBeenSet() const { return m_trafficPolicyInstanceNameMarkerHasBeenSet; }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancename, specify
     * the value of TrafficPolicyInstanceNameMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline void SetTrafficPolicyInstanceNameMarker(const Aws::String& value) { m_trafficPolicyInstanceNameMarkerHasBeenSet = true; m_trafficPolicyInstanceNameMarker = value; }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancename, specify
     * the value of TrafficPolicyInstanceNameMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline void SetTrafficPolicyInstanceNameMarker(Aws::String&& value) { m_trafficPolicyInstanceNameMarkerHasBeenSet = true; m_trafficPolicyInstanceNameMarker = std::move(value); }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancename, specify
     * the value of TrafficPolicyInstanceNameMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline void SetTrafficPolicyInstanceNameMarker(const char* value) { m_trafficPolicyInstanceNameMarkerHasBeenSet = true; m_trafficPolicyInstanceNameMarker.assign(value); }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancename, specify
     * the value of TrafficPolicyInstanceNameMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithTrafficPolicyInstanceNameMarker(const Aws::String& value) { SetTrafficPolicyInstanceNameMarker(value); return *this;}

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancename, specify
     * the value of TrafficPolicyInstanceNameMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithTrafficPolicyInstanceNameMarker(Aws::String&& value) { SetTrafficPolicyInstanceNameMarker(std::move(value)); return *this;}

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancename, specify
     * the value of TrafficPolicyInstanceNameMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithTrafficPolicyInstanceNameMarker(const char* value) { SetTrafficPolicyInstanceNameMarker(value); return *this;}

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancetype, specify
     * the value of TrafficPolicyInstanceTypeMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline const RRType& GetTrafficPolicyInstanceTypeMarker() const{ return m_trafficPolicyInstanceTypeMarker; }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancetype, specify
     * the value of TrafficPolicyInstanceTypeMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline bool TrafficPolicyInstanceTypeMarkerHasBeenSet() const { return m_trafficPolicyInstanceTypeMarkerHasBeenSet; }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancetype, specify
     * the value of TrafficPolicyInstanceTypeMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline void SetTrafficPolicyInstanceTypeMarker(const RRType& value) { m_trafficPolicyInstanceTypeMarkerHasBeenSet = true; m_trafficPolicyInstanceTypeMarker = value; }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancetype, specify
     * the value of TrafficPolicyInstanceTypeMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline void SetTrafficPolicyInstanceTypeMarker(RRType&& value) { m_trafficPolicyInstanceTypeMarkerHasBeenSet = true; m_trafficPolicyInstanceTypeMarker = std::move(value); }

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancetype, specify
     * the value of TrafficPolicyInstanceTypeMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithTrafficPolicyInstanceTypeMarker(const RRType& value) { SetTrafficPolicyInstanceTypeMarker(value); return *this;}

    /**
     *
If the value of IsTruncated in the previous response was
     * true, you have more traffic policy instances. To get more traffic
     * policy instances, submit another ListTrafficPolicyInstancesByPolicy
     * request.

For the value of trafficpolicyinstancetype, specify
     * the value of TrafficPolicyInstanceTypeMarker from the previous
     * response, which is the name of the first traffic policy instance that Amazon
     * Route 53 will return if you submit another request.

If the value of
     * IsTruncated in the previous response was false, there
     * are no more traffic policy instances to get.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithTrafficPolicyInstanceTypeMarker(RRType&& value) { SetTrafficPolicyInstanceTypeMarker(std::move(value)); return *this;}

    /**
     *
The maximum number of traffic policy instances to be included in the response
     * body for this request. If you have more than MaxItems traffic
     * policy instances, the value of the IsTruncated element in the
     * response is true, and the values of
     * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
     * and TrafficPolicyInstanceTypeMarker represent the first traffic
     * policy instance that Amazon Route 53 will return if you submit another
     * request.

     */
    inline const Aws::String& GetMaxItems() const{ return m_maxItems; }

    /**
     *
The maximum number of traffic policy instances to be included in the response
     * body for this request. If you have more than MaxItems traffic
     * policy instances, the value of the IsTruncated element in the
     * response is true, and the values of
     * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
     * and TrafficPolicyInstanceTypeMarker represent the first traffic
     * policy instance that Amazon Route 53 will return if you submit another
     * request.

     */
    inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }

    /**
     *
The maximum number of traffic policy instances to be included in the response
     * body for this request. If you have more than MaxItems traffic
     * policy instances, the value of the IsTruncated element in the
     * response is true, and the values of
     * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
     * and TrafficPolicyInstanceTypeMarker represent the first traffic
     * policy instance that Amazon Route 53 will return if you submit another
     * request.

     */
    inline void SetMaxItems(const Aws::String& value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }

    /**
     *
The maximum number of traffic policy instances to be included in the response
     * body for this request. If you have more than MaxItems traffic
     * policy instances, the value of the IsTruncated element in the
     * response is true, and the values of
     * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
     * and TrafficPolicyInstanceTypeMarker represent the first traffic
     * policy instance that Amazon Route 53 will return if you submit another
     * request.

     */
    inline void SetMaxItems(Aws::String&& value) { m_maxItemsHasBeenSet = true; m_maxItems = std::move(value); }

    /**
     *
The maximum number of traffic policy instances to be included in the response
     * body for this request. If you have more than MaxItems traffic
     * policy instances, the value of the IsTruncated element in the
     * response is true, and the values of
     * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
     * and TrafficPolicyInstanceTypeMarker represent the first traffic
     * policy instance that Amazon Route 53 will return if you submit another
     * request.

     */
    inline void SetMaxItems(const char* value) { m_maxItemsHasBeenSet = true; m_maxItems.assign(value); }

    /**
     *
The maximum number of traffic policy instances to be included in the response
     * body for this request. If you have more than MaxItems traffic
     * policy instances, the value of the IsTruncated element in the
     * response is true, and the values of
     * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
     * and TrafficPolicyInstanceTypeMarker represent the first traffic
     * policy instance that Amazon Route 53 will return if you submit another
     * request.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithMaxItems(const Aws::String& value) { SetMaxItems(value); return *this;}

    /**
     *
The maximum number of traffic policy instances to be included in the response
     * body for this request. If you have more than MaxItems traffic
     * policy instances, the value of the IsTruncated element in the
     * response is true, and the values of
     * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
     * and TrafficPolicyInstanceTypeMarker represent the first traffic
     * policy instance that Amazon Route 53 will return if you submit another
     * request.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithMaxItems(Aws::String&& value) { SetMaxItems(std::move(value)); return *this;}

    /**
     *
The maximum number of traffic policy instances to be included in the response
     * body for this request. If you have more than MaxItems traffic
     * policy instances, the value of the IsTruncated element in the
     * response is true, and the values of
     * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
     * and TrafficPolicyInstanceTypeMarker represent the first traffic
     * policy instance that Amazon Route 53 will return if you submit another
     * request.

     */
    inline ListTrafficPolicyInstancesByPolicyRequest& WithMaxItems(const char* value) { SetMaxItems(value); return *this;}

  private:

    Aws::String m_trafficPolicyId;
    bool m_trafficPolicyIdHasBeenSet;

    int m_trafficPolicyVersion;
    bool m_trafficPolicyVersionHasBeenSet;

    Aws::String m_hostedZoneIdMarker;
    bool m_hostedZoneIdMarkerHasBeenSet;

    Aws::String m_trafficPolicyInstanceNameMarker;
    bool m_trafficPolicyInstanceNameMarkerHasBeenSet;

    RRType m_trafficPolicyInstanceTypeMarker;
    bool m_trafficPolicyInstanceTypeMarkerHasBeenSet;

    Aws::String m_maxItems;
    bool m_maxItemsHasBeenSet;
  };

} // namespace Model
} // namespace Route53
} // namespace Aws

{'repo_name': 'aws/aws-sdk-cpp', 'stars': '1060', 'repo_language': 'C++', 'file_name': 'RunTests.cpp', 'mime_type': 'text/x-c', 'hash': 7414635114932621644, 'source_dataset': 'data'}