text
stringlengths
7
99.5k
meta
dict
/// /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. /// /// Auto-generated by Stone, do not modify. /// #import <Foundation/Foundation.h> #import "DBSerializableProtocol.h" @class DBTEAMPOLICIESSharedFolderJoinPolicy; NS_ASSUME_NONNULL_BEGIN #pragma mark - API Object /// /// The `SharedFolderJoinPolicy` union. /// /// Policy governing which shared folders a team member can join. /// /// This class implements the `DBSerializable` protocol (serialize and /// deserialize instance methods), which is required for all Obj-C SDK API route /// objects. /// @interface DBTEAMPOLICIESSharedFolderJoinPolicy : NSObject <DBSerializable, NSCopying> #pragma mark - Instance fields /// The `DBTEAMPOLICIESSharedFolderJoinPolicyTag` enum type represents the /// possible tag states with which the `DBTEAMPOLICIESSharedFolderJoinPolicy` /// union can exist. typedef NS_CLOSED_ENUM(NSInteger, DBTEAMPOLICIESSharedFolderJoinPolicyTag){ /// Team members can only join folders shared by teammates. DBTEAMPOLICIESSharedFolderJoinPolicyFromTeamOnly, /// Team members can join any shared folder, including those shared by users /// outside the team. DBTEAMPOLICIESSharedFolderJoinPolicyFromAnyone, /// (no description). DBTEAMPOLICIESSharedFolderJoinPolicyOther, }; /// Represents the union's current tag state. @property (nonatomic, readonly) DBTEAMPOLICIESSharedFolderJoinPolicyTag tag; #pragma mark - Constructors /// /// Initializes union class with tag state of "from_team_only". /// /// Description of the "from_team_only" tag state: Team members can only join /// folders shared by teammates. /// /// @return An initialized instance. /// - (instancetype)initWithFromTeamOnly; /// /// Initializes union class with tag state of "from_anyone". /// /// Description of the "from_anyone" tag state: Team members can join any shared /// folder, including those shared by users outside the team. /// /// @return An initialized instance. /// - (instancetype)initWithFromAnyone; /// /// Initializes union class with tag state of "other". /// /// @return An initialized instance. /// - (instancetype)initWithOther; - (instancetype)init NS_UNAVAILABLE; #pragma mark - Tag state methods /// /// Retrieves whether the union's current tag state has value "from_team_only". /// /// @return Whether the union's current tag state has value "from_team_only". /// - (BOOL)isFromTeamOnly; /// /// Retrieves whether the union's current tag state has value "from_anyone". /// /// @return Whether the union's current tag state has value "from_anyone". /// - (BOOL)isFromAnyone; /// /// Retrieves whether the union's current tag state has value "other". /// /// @return Whether the union's current tag state has value "other". /// - (BOOL)isOther; /// /// Retrieves string value of union's current tag state. /// /// @return A human-readable string representing the union's current tag state. /// - (NSString *)tagName; @end #pragma mark - Serializer Object /// /// The serialization class for the `DBTEAMPOLICIESSharedFolderJoinPolicy` /// union. /// @interface DBTEAMPOLICIESSharedFolderJoinPolicySerializer : NSObject /// /// Serializes `DBTEAMPOLICIESSharedFolderJoinPolicy` instances. /// /// @param instance An instance of the `DBTEAMPOLICIESSharedFolderJoinPolicy` /// API object. /// /// @return A json-compatible dictionary representation of the /// `DBTEAMPOLICIESSharedFolderJoinPolicy` API object. /// + (nullable NSDictionary<NSString *, id> *)serialize:(DBTEAMPOLICIESSharedFolderJoinPolicy *)instance; /// /// Deserializes `DBTEAMPOLICIESSharedFolderJoinPolicy` instances. /// /// @param dict A json-compatible dictionary representation of the /// `DBTEAMPOLICIESSharedFolderJoinPolicy` API object. /// /// @return An instantiation of the `DBTEAMPOLICIESSharedFolderJoinPolicy` /// object. /// + (DBTEAMPOLICIESSharedFolderJoinPolicy *)deserialize:(NSDictionary<NSString *, id> *)dict; @end NS_ASSUME_NONNULL_END
{ "pile_set_name": "Github" }
/*********************************************************************** !!!!!! DO NOT MODIFY !!!!!! GacGen.exe Resource.xml This file is generated by Workflow compiler https://github.com/vczh-libraries ***********************************************************************/ #ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMOREFLECTION #define VCZH_WORKFLOW_COMPILER_GENERATED_DEMOREFLECTION #include "Demo.h" #ifndef VCZH_DEBUG_NO_REFLECTION #include "GacUIReflection.h" #endif #if defined( _MSC_VER) #pragma warning(push) #pragma warning(disable:4250) #elif defined(__GNUC__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wparentheses-equality" #elif defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wparentheses-equality" #endif /*********************************************************************** Reflection ***********************************************************************/ namespace vl { namespace reflection { namespace description { #ifndef VCZH_DEBUG_NO_REFLECTION DECL_TYPE_INFO(::demo::MainWindow) DECL_TYPE_INFO(::demo::MainWindowConstructor) #endif extern bool LoadDemoTypes(); } } } #if defined( _MSC_VER) #pragma warning(pop) #elif defined(__GNUC__) #pragma GCC diagnostic pop #elif defined(__clang__) #pragma clang diagnostic pop #endif #endif
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. */ package org.apache.stanbol.entityhub.web.reader; import java.io.IOException; import java.io.InputStream; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import javax.servlet.ServletContext; import javax.ws.rs.Consumes; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.Context; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import javax.ws.rs.ext.MessageBodyReader; import javax.ws.rs.ext.Provider; import org.apache.clerezza.commons.rdf.Graph; import org.apache.clerezza.commons.rdf.BlankNodeOrIRI; import org.apache.clerezza.commons.rdf.Triple; import org.apache.clerezza.commons.rdf.IRI; import org.apache.clerezza.rdf.core.serializedform.Parser; import org.apache.clerezza.rdf.core.serializedform.SupportedFormat; import org.apache.clerezza.rdf.core.serializedform.UnsupportedParsingFormatException; import org.apache.felix.scr.annotations.Component; import org.apache.felix.scr.annotations.Property; import org.apache.felix.scr.annotations.Reference; import org.apache.felix.scr.annotations.Service; import org.apache.stanbol.commons.indexedgraph.IndexedGraph; import org.apache.stanbol.entityhub.jersey.utils.JerseyUtils; import org.apache.stanbol.entityhub.jersey.utils.MessageBodyReaderUtils; import org.apache.stanbol.entityhub.jersey.utils.MessageBodyReaderUtils.RequestData; import org.apache.stanbol.entityhub.model.clerezza.RdfValueFactory; import org.apache.stanbol.entityhub.servicesapi.model.Representation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Provides support for reading Representation form Requests. This implementation * supports all RDF supports as well as {@link MediaType#APPLICATION_FORM_URLENCODED} * - in case the data are sent from an HTML form - and * {@link MediaType#MULTIPART_FORM_DATA} - mime encoded data. * In case of an HTML form the encoding need to be specified by the parameter * "encoding" for the entity data the parameters "entity" or "content" can be * used. * @author Rupert Westenthaler * */ @Component @Service(Object.class) @Property(name="javax.ws.rs", boolValue=true) @Provider @Consumes({ //First the data types directly supported for parsing representations MediaType.APPLICATION_JSON, SupportedFormat.N3, SupportedFormat.N_TRIPLE, SupportedFormat.RDF_XML, SupportedFormat.TURTLE, SupportedFormat.X_TURTLE, SupportedFormat.RDF_JSON, //finally this also supports sending the data as form and mime multipart MediaType.APPLICATION_FORM_URLENCODED, MediaType.MULTIPART_FORM_DATA}) public class RepresentationReader implements MessageBodyReader<Map<String,Representation>> { private static final Logger log = LoggerFactory.getLogger(RepresentationReader.class); public static final Set<String> supportedMediaTypes; private static final MediaType DEFAULT_ACCEPTED_MEDIA_TYPE = MediaType.TEXT_PLAIN_TYPE; static { Set<String> types = new HashSet<String>(); //ensure everything is lower case types.add(MediaType.APPLICATION_JSON.toLowerCase()); types.add(SupportedFormat.N3.toLowerCase()); types.add(SupportedFormat.N_TRIPLE.toLowerCase()); types.add(SupportedFormat.RDF_JSON.toLowerCase()); types.add(SupportedFormat.RDF_XML.toLowerCase()); types.add(SupportedFormat.TURTLE.toLowerCase()); types.add(SupportedFormat.X_TURTLE.toLowerCase()); supportedMediaTypes = Collections.unmodifiableSet(types); } @Reference private Parser parser; @Override public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { String mediaTypeWithoutParameter = mediaType.getType().toLowerCase()+'/'+ mediaType.getSubtype().toLowerCase(); log.debug("isreadable: [genericType: {}| mediaType {}]", genericType,mediaTypeWithoutParameter); //second the media type boolean mediaTypeOK = (//the MimeTypes of Representations supportedMediaTypes.contains(mediaTypeWithoutParameter) || //as well as URL encoded MediaType.APPLICATION_FORM_URLENCODED.equals(mediaTypeWithoutParameter) || //and mime multipart MediaType.MULTIPART_FORM_DATA.equals(mediaTypeWithoutParameter)); boolean typeOk = JerseyUtils.testParameterizedType(Map.class, new Class[]{String.class,Representation.class}, genericType); log.debug("type is {} for {} against Map<String,Representation>", typeOk ? "compatible" : "incompatible" ,genericType); return typeOk && mediaTypeOK; } @Override public Map<String,Representation> readFrom(Class<Map<String,Representation>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException { log.info("Read Representations from Request Data"); long start = System.currentTimeMillis(); //(1) get the charset and the acceptedMediaType String charset = "UTF-8"; if(mediaType.getParameters().containsKey("charset")){ charset = mediaType.getParameters().get("charset"); } MediaType acceptedMediaType = getAcceptedMediaType(httpHeaders); log.info("readFrom: mediaType {} | accepted {} | charset {}", new Object[]{mediaType,acceptedMediaType,charset}); // (2) read the Content from the request (this needs to deal with // MediaType.APPLICATION_FORM_URLENCODED_TYPE and // MediaType.MULTIPART_FORM_DATA_TYPE requests! RequestData content; if(mediaType.isCompatible(MediaType.APPLICATION_FORM_URLENCODED_TYPE)) { try { content = MessageBodyReaderUtils.formForm(entityStream, charset, "encoding",Arrays.asList("entity","content")); } catch (IllegalArgumentException e) { log.info("Bad Request: {}",e); throw new WebApplicationException( Response.status(Status.BAD_REQUEST).entity(e.toString()). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } if(content.getMediaType() == null){ String message = String.format( "Missing parameter %s used to specify the media type" + "(supported values: %s", "encoding",supportedMediaTypes); log.info("Bad Request: {}",message); throw new WebApplicationException( Response.status(Status.BAD_REQUEST).entity(message). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } if(!isSupported(content.getMediaType())){ String message = String.format( "Unsupported Content-Type specified by parameter " + "encoding=%s (supported: %s)", content.getMediaType().toString(),supportedMediaTypes); log.info("Bad Request: {}",message); throw new WebApplicationException( Response.status(Status.BAD_REQUEST). entity(message). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } } else if(mediaType.isCompatible(MediaType.MULTIPART_FORM_DATA_TYPE)){ log.info("read from MimeMultipart"); List<RequestData> contents; try { contents = MessageBodyReaderUtils.fromMultipart(entityStream, mediaType); } catch (IllegalArgumentException e) { log.info("Bad Request: {}",e.toString()); throw new WebApplicationException( Response.status(Status.BAD_REQUEST).entity(e.toString()). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } if(contents.isEmpty()){ String message = "Request does not contain any Mime BodyParts."; log.info("Bad Request: {}",message); throw new WebApplicationException( Response.status(Status.BAD_REQUEST).entity(message). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } else if(contents.size()>1){ //print warnings about ignored parts log.warn("{} Request contains more than one Parts: others than " + "the first will be ignored", MediaType.MULTIPART_FORM_DATA_TYPE); for(int i=1;i<contents.size();i++){ RequestData ignored = contents.get(i); log.warn(" ignore Content {}: Name {}| MediaType {}", new Object[] {i+1,ignored.getName(),ignored.getMediaType()}); } } content = contents.get(0); if(content.getMediaType() == null){ String message = String.format( "MediaType not specified for mime body part for file %s. " + "The media type must be one of the supported values: %s", content.getName(), supportedMediaTypes); log.info("Bad Request: {}",message); throw new WebApplicationException( Response.status(Status.BAD_REQUEST).entity(message). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } if(!isSupported(content.getMediaType())){ String message = String.format( "Unsupported Content-Type %s specified for mime body part " + "for file %s (supported: %s)", content.getMediaType(),content.getName(),supportedMediaTypes); log.info("Bad Request: {}",message); throw new WebApplicationException( Response.status(Status.BAD_REQUEST). entity(message). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } } else { content = new RequestData(mediaType, null, entityStream); } long readingCompleted = System.currentTimeMillis(); log.info(" ... reading request data {}ms",readingCompleted-start); Map<String,Representation> parsed = parseFromContent(content,acceptedMediaType); long parsingCompleted = System.currentTimeMillis(); log.info(" ... parsing data {}ms",parsingCompleted-readingCompleted); return parsed; } public Map<String,Representation> parseFromContent(RequestData content, MediaType acceptedMediaType){ // (3) Parse the Representtion(s) form the entity stream if(content.getMediaType().isCompatible(MediaType.APPLICATION_JSON_TYPE)){ //parse from json throw new UnsupportedOperationException("Parsing of JSON not yet implemented :("); } else if(isSupported(content.getMediaType())){ //from RDF serialisation RdfValueFactory valueFactory = RdfValueFactory.getInstance(); Map<String,Representation> representations = new HashMap<String,Representation>(); Set<BlankNodeOrIRI> processed = new HashSet<BlankNodeOrIRI>(); Graph graph = new IndexedGraph(); try { parser.parse(graph,content.getEntityStream(), content.getMediaType().toString()); } catch (UnsupportedParsingFormatException e) { //String acceptedMediaType = httpHeaders.getFirst("Accept"); //throw an internal server Error, because we check in //isReadable(..) for supported types and still we get here a //unsupported format -> therefore it looks like an configuration //error the server (e.g. a missing Bundle with the required bundle) String message = "Unable to create the Parser for the supported format" +content.getMediaType()+" ("+e+")"; log.error(message,e); throw new WebApplicationException( Response.status(Status.INTERNAL_SERVER_ERROR). entity(message). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } catch (RuntimeException e){ //NOTE: Clerezza seams not to provide specific exceptions on // parsing errors. Hence the catch for all RuntimeException String message = "Unable to parse the provided RDF data (format: " +content.getMediaType()+", message: "+e.getMessage()+")"; log.error(message,e); throw new WebApplicationException( Response.status(Status.BAD_REQUEST). entity(message). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } for(Iterator<Triple> st = graph.iterator();st.hasNext();){ BlankNodeOrIRI resource = st.next().getSubject(); if(resource instanceof IRI && processed.add(resource)){ //build a new representation representations.put(((IRI)resource).getUnicodeString(), valueFactory.createRdfRepresentation((IRI)resource, graph)); } } return representations; } else { //unsupported media type String message = String.format( "Parsed Content-Type '%s' is not one of the supported %s", content.getMediaType(),supportedMediaTypes); log.info("Bad Request: {}",message); throw new WebApplicationException( Response.status(Status.BAD_REQUEST). entity(message). header(HttpHeaders.ACCEPT, acceptedMediaType).build()); } } /** * Internally used to get the accepted media type used when returning * {@link WebApplicationException}s. * @param httpHeaders * @param acceptedMediaType * @return */ private static MediaType getAcceptedMediaType(MultivaluedMap<String,String> httpHeaders) { MediaType acceptedMediaType; String acceptedMediaTypeString = httpHeaders.getFirst("Accept"); if(acceptedMediaTypeString != null){ try { acceptedMediaType = MediaType.valueOf(acceptedMediaTypeString); if(acceptedMediaType.isWildcardType()){ acceptedMediaType = DEFAULT_ACCEPTED_MEDIA_TYPE; } } catch (IllegalArgumentException e) { acceptedMediaType = DEFAULT_ACCEPTED_MEDIA_TYPE; } } else { acceptedMediaType = DEFAULT_ACCEPTED_MEDIA_TYPE; } return acceptedMediaType; } /** * Converts the type and the subtype of the parsed media type to the * string representation as stored in {@link #supportedMediaTypes} and than * checks if the parsed media type is contained in this list. * @param mediaType the MediaType instance to check * @return <code>true</code> if the parsed media type is not * <code>null</code> and supported. */ private boolean isSupported(MediaType mediaType){ return mediaType == null ? false : supportedMediaTypes.contains( mediaType.getType().toLowerCase()+'/'+ mediaType.getSubtype().toLowerCase()); } }
{ "pile_set_name": "Github" }
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.vcs.impl import com.intellij.ProjectTopics import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.components.service import com.intellij.openapi.extensions.ExtensionNotApplicableException import com.intellij.openapi.module.Module import com.intellij.openapi.module.ModuleManager import com.intellij.openapi.project.ModuleListener import com.intellij.openapi.project.Project import com.intellij.openapi.project.rootManager import com.intellij.openapi.roots.ModuleRootEvent import com.intellij.openapi.roots.ModuleRootListener import com.intellij.openapi.startup.StartupActivity import com.intellij.openapi.vcs.AbstractVcs import com.intellij.openapi.vcs.ProjectLevelVcsManager import com.intellij.openapi.vcs.VcsDirectoryMapping import com.intellij.openapi.vfs.VirtualFile internal class ModuleVcsDetector(private val project: Project) { private val vcsManager by lazy(LazyThreadSafetyMode.NONE) { (ProjectLevelVcsManager.getInstance(project) as ProjectLevelVcsManagerImpl) } internal class MyPostStartUpActivity : StartupActivity.DumbAware { init { if (ApplicationManager.getApplication().isUnitTestMode) { throw ExtensionNotApplicableException.INSTANCE } } override fun runActivity(project: Project) { val vcsDetector = project.service<ModuleVcsDetector>() val listener = vcsDetector.MyModulesListener() val busConnection = project.messageBus.connect() busConnection.subscribe(ProjectTopics.MODULES, listener) busConnection.subscribe(ProjectTopics.PROJECT_ROOTS, listener) if (vcsDetector.vcsManager.needAutodetectMappings()) { vcsDetector.autoDetectVcsMappings(true) } } } private inner class MyModulesListener : ModuleRootListener, ModuleListener { private val myMappingsForRemovedModules: MutableList<VcsDirectoryMapping> = mutableListOf() override fun beforeRootsChange(event: ModuleRootEvent) { myMappingsForRemovedModules.clear() } override fun rootsChanged(event: ModuleRootEvent) { myMappingsForRemovedModules.forEach { mapping -> vcsManager.removeDirectoryMapping(mapping) } // the check calculates to true only before user has done any change to mappings, i.e. in case modules are detected/added automatically // on start etc (look inside) if (vcsManager.needAutodetectMappings()) { autoDetectVcsMappings(false) } } override fun moduleAdded(project: Project, module: Module) { myMappingsForRemovedModules.removeAll(getMappings(module)) autoDetectModuleVcsMapping(module) } override fun beforeModuleRemoved(project: Project, module: Module) { myMappingsForRemovedModules.addAll(getMappings(module)) } } private fun autoDetectVcsMappings(tryMapPieces: Boolean) { if (vcsManager.haveDefaultMapping() != null) return val usedVcses = mutableSetOf<AbstractVcs?>() val detectedRoots = mutableSetOf<Pair<VirtualFile, AbstractVcs>>() val roots = ModuleManager.getInstance(project).modules.flatMap { it.rootManager.contentRoots.asIterable() }.distinct() for (root in roots) { val moduleVcs = vcsManager.findVersioningVcs(root) if (moduleVcs != null) { detectedRoots.add(Pair(root, moduleVcs)) } usedVcses.add(moduleVcs) // put 'null' for unmapped module } val commonVcs = usedVcses.singleOrNull() if (commonVcs != null) { // Remove existing mappings that will duplicate added <Project> mapping. val rootPaths = roots.map { it.path }.toSet() val additionalMappings = vcsManager.directoryMappings.filter { it.directory !in rootPaths } vcsManager.setAutoDirectoryMappings(additionalMappings + VcsDirectoryMapping.createDefault(commonVcs.name)) } else if (tryMapPieces) { val newMappings = detectedRoots.map { (root, vcs) -> VcsDirectoryMapping(root.path, vcs.name) } vcsManager.setAutoDirectoryMappings(vcsManager.directoryMappings + newMappings) } } private fun autoDetectModuleVcsMapping(module: Module) { if (vcsManager.haveDefaultMapping() != null) return val newMappings = mutableListOf<VcsDirectoryMapping>() for (file in module.rootManager.contentRoots) { val vcs = vcsManager.findVersioningVcs(file) if (vcs != null && vcs !== vcsManager.getVcsFor(file)) { newMappings.add(VcsDirectoryMapping(file.path, vcs.name)) } } if (newMappings.isNotEmpty()) { vcsManager.setAutoDirectoryMappings(vcsManager.directoryMappings + newMappings) } } private fun getMappings(module: Module): List<VcsDirectoryMapping> { return module.rootManager.contentRoots .mapNotNull { root -> vcsManager.directoryMappings.firstOrNull { it.directory == root.path } } } }
{ "pile_set_name": "Github" }
/* * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ #import "SimpleDBMissingParameterException.h" @implementation SimpleDBMissingParameterException @synthesize boxUsage; -(id)initWithMessage:(NSString *)theMessage { if (self = [super initWithMessage:theMessage]) { } return self; } -(void)setPropertiesWithException:(AmazonServiceException *)theException { [super setPropertiesWithException:theException]; if ([theException.additionalFields valueForKey:@"BoxUsage"] != nil) { self.boxUsage = [AmazonSDKUtil convertStringToNumber:[theException.additionalFields valueForKey:@"BoxUsage"]]; } } -(NSString *)description { NSMutableString *buffer = [[NSMutableString alloc] initWithCapacity:256]; [buffer appendString:@"{"]; [buffer appendString:[[[NSString alloc] initWithFormat:@"BoxUsage: %@,", boxUsage] autorelease]]; [buffer appendString:[super description]]; [buffer appendString:@"}"]; return [buffer autorelease]; } -(void)dealloc { [boxUsage release]; [super dealloc]; } @end
{ "pile_set_name": "Github" }
package network // Copyright (c) Microsoft and contributors. All rights reserved. // // 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 Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" "net/http" ) // VpnSitesClient is the network Client type VpnSitesClient struct { BaseClient } // NewVpnSitesClient creates an instance of the VpnSitesClient client. func NewVpnSitesClient(subscriptionID string) VpnSitesClient { return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID) } // NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client. func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient { return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)} } // CreateOrUpdate creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. // Parameters: // resourceGroupName - the resource group name of the VpnSite. // vpnSiteName - the name of the VpnSite being created or updated. // vpnSiteParameters - parameters supplied to create or update VpnSite. func (client VpnSitesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters VpnSite) (result VpnSitesCreateOrUpdateFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.CreateOrUpdate") defer func() { sc := -1 if result.Response() != nil { sc = result.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() } req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, vpnSiteName, vpnSiteParameters) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "CreateOrUpdate", nil, "Failure preparing request") return } result, err = client.CreateOrUpdateSender(req) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } return } // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client VpnSitesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters VpnSite) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), "vpnSiteName": autorest.Encode("path", vpnSiteName), } const APIVersion = "2018-10-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", pathParameters), autorest.WithJSON(vpnSiteParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client VpnSitesClient) CreateOrUpdateSender(req *http.Request) (future VpnSitesCreateOrUpdateFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } future.Future, err = azure.NewFutureFromResponse(resp) return } // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client VpnSitesClient) CreateOrUpdateResponder(resp *http.Response) (result VpnSite, err error) { err = autorest.Respond( resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // Delete deletes a VpnSite. // Parameters: // resourceGroupName - the resource group name of the VpnSite. // vpnSiteName - the name of the VpnSite being deleted. func (client VpnSitesClient) Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result VpnSitesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.Delete") defer func() { sc := -1 if result.Response() != nil { sc = result.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() } req, err := client.DeletePreparer(ctx, resourceGroupName, vpnSiteName) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Delete", nil, "Failure preparing request") return } result, err = client.DeleteSender(req) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Delete", result.Response(), "Failure sending request") return } return } // DeletePreparer prepares the Delete request. func (client VpnSitesClient) DeletePreparer(ctx context.Context, resourceGroupName string, vpnSiteName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), "vpnSiteName": autorest.Encode("path", vpnSiteName), } const APIVersion = "2018-10-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client VpnSitesClient) DeleteSender(req *http.Request) (future VpnSitesDeleteFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } future.Future, err = azure.NewFutureFromResponse(resp) return } // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client VpnSitesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp return } // Get retrieves the details of a VPNsite. // Parameters: // resourceGroupName - the resource group name of the VpnSite. // vpnSiteName - the name of the VpnSite being retrieved. func (client VpnSitesClient) Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result VpnSite, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.Get") defer func() { sc := -1 if result.Response.Response != nil { sc = result.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } req, err := client.GetPreparer(ctx, resourceGroupName, vpnSiteName) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", nil, "Failure preparing request") return } resp, err := client.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure sending request") return } result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "Get", resp, "Failure responding to request") } return } // GetPreparer prepares the Get request. func (client VpnSitesClient) GetPreparer(ctx context.Context, resourceGroupName string, vpnSiteName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), "vpnSiteName": autorest.Encode("path", vpnSiteName), } const APIVersion = "2018-10-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client VpnSitesClient) GetSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client VpnSitesClient) GetResponder(resp *http.Response) (result VpnSite, err error) { err = autorest.Respond( resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // List lists all the VpnSites in a subscription. func (client VpnSitesClient) List(ctx context.Context) (result ListVpnSitesResultPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.List") defer func() { sc := -1 if result.lvsr.Response.Response != nil { sc = result.lvsr.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } result.fn = client.listNextResults req, err := client.ListPreparer(ctx) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.lvsr.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure sending request") return } result.lvsr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. func (client VpnSitesClient) ListPreparer(ctx context.Context) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2018-10-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client VpnSitesClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client VpnSitesClient) ListResponder(resp *http.Response) (result ListVpnSitesResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // listNextResults retrieves the next set of results, if any. func (client VpnSitesClient) listNextResults(ctx context.Context, lastResults ListVpnSitesResult) (result ListVpnSitesResult, err error) { req, err := lastResults.listVpnSitesResultPreparer(ctx) if err != nil { return result, autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return } resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} return result, autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client VpnSitesClient) ListComplete(ctx context.Context) (result ListVpnSitesResultIterator, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { sc = result.page.Response().Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } result.page, err = client.List(ctx) return } // ListByResourceGroup lists all the vpnSites in a resource group. // Parameters: // resourceGroupName - the resource group name of the VpnSite. func (client VpnSitesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListVpnSitesResultPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.ListByResourceGroup") defer func() { sc := -1 if result.lvsr.Response.Response != nil { sc = result.lvsr.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } result.fn = client.listByResourceGroupNextResults req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", nil, "Failure preparing request") return } resp, err := client.ListByResourceGroupSender(req) if err != nil { result.lvsr.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure sending request") return } result.lvsr, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "ListByResourceGroup", resp, "Failure responding to request") } return } // ListByResourceGroupPreparer prepares the ListByResourceGroup request. func (client VpnSitesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2018-10-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the // http.Response Body if it receives an error. func (client VpnSitesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always // closes the http.Response Body. func (client VpnSitesClient) ListByResourceGroupResponder(resp *http.Response) (result ListVpnSitesResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // listByResourceGroupNextResults retrieves the next set of results, if any. func (client VpnSitesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListVpnSitesResult) (result ListVpnSitesResult, err error) { req, err := lastResults.listVpnSitesResultPreparer(ctx) if err != nil { return result, autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") } if req == nil { return } resp, err := client.ListByResourceGroupSender(req) if err != nil { result.Response = autorest.Response{Response: resp} return result, autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") } result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") } return } // ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. func (client VpnSitesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListVpnSitesResultIterator, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.ListByResourceGroup") defer func() { sc := -1 if result.Response().Response.Response != nil { sc = result.page.Response().Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) return } // UpdateTags updates VpnSite tags. // Parameters: // resourceGroupName - the resource group name of the VpnSite. // vpnSiteName - the name of the VpnSite being updated. // vpnSiteParameters - parameters supplied to update VpnSite tags. func (client VpnSitesClient) UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters TagsObject) (result VpnSitesUpdateTagsFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.UpdateTags") defer func() { sc := -1 if result.Response() != nil { sc = result.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() } req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, vpnSiteName, vpnSiteParameters) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", nil, "Failure preparing request") return } result, err = client.UpdateTagsSender(req) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "UpdateTags", result.Response(), "Failure sending request") return } return } // UpdateTagsPreparer prepares the UpdateTags request. func (client VpnSitesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters TagsObject) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), "vpnSiteName": autorest.Encode("path", vpnSiteName), } const APIVersion = "2018-10-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", pathParameters), autorest.WithJSON(vpnSiteParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // UpdateTagsSender sends the UpdateTags request. The method will close the // http.Response Body if it receives an error. func (client VpnSitesClient) UpdateTagsSender(req *http.Request) (future VpnSitesUpdateTagsFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } future.Future, err = azure.NewFutureFromResponse(resp) return } // UpdateTagsResponder handles the response to the UpdateTags request. The method always // closes the http.Response Body. func (client VpnSitesClient) UpdateTagsResponder(resp *http.Response) (result VpnSite, err error) { err = autorest.Respond( resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return }
{ "pile_set_name": "Github" }
// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RegistrationViaAPIResponse The Response for Registration Flows via API // // swagger:model registrationViaApiResponse type RegistrationViaAPIResponse struct { // identity // Required: true Identity *Identity `json:"identity"` // session Session *Session `json:"session,omitempty"` // The Session Token // // This field is only set when the session hook is configured as a post-registration hook. // // A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization // Header: // // Authorization: bearer ${session-token} // // The session token is only issued for API flows, not for Browser flows! // Required: true SessionToken *string `json:"session_token"` } // Validate validates this registration via Api response func (m *RegistrationViaAPIResponse) Validate(formats strfmt.Registry) error { var res []error if err := m.validateIdentity(formats); err != nil { res = append(res, err) } if err := m.validateSession(formats); err != nil { res = append(res, err) } if err := m.validateSessionToken(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *RegistrationViaAPIResponse) validateIdentity(formats strfmt.Registry) error { if err := validate.Required("identity", "body", m.Identity); err != nil { return err } if m.Identity != nil { if err := m.Identity.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("identity") } return err } } return nil } func (m *RegistrationViaAPIResponse) validateSession(formats strfmt.Registry) error { if swag.IsZero(m.Session) { // not required return nil } if m.Session != nil { if err := m.Session.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("session") } return err } } return nil } func (m *RegistrationViaAPIResponse) validateSessionToken(formats strfmt.Registry) error { if err := validate.Required("session_token", "body", m.SessionToken); err != nil { return err } return nil } // MarshalBinary interface implementation func (m *RegistrationViaAPIResponse) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *RegistrationViaAPIResponse) UnmarshalBinary(b []byte) error { var res RegistrationViaAPIResponse if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }
{ "pile_set_name": "Github" }
/* * TupleTypeUtil.java * * This source file is part of the FoundationDB open source project * * Copyright 2015-2019 Apple Inc. and the FoundationDB project 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. */ package com.apple.foundationdb.record.metadata; import com.apple.foundationdb.record.provider.foundationdb.FDBRecordVersion; import com.apple.foundationdb.tuple.Tuple; import com.google.protobuf.ByteString; import com.google.protobuf.Descriptors; import com.google.protobuf.ProtocolMessageEnum; import javax.annotation.Nonnull; import javax.annotation.Nullable; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; /** * Utility class for dealing with {@link Tuple} types. In theory, these methods should live in * {@link com.apple.foundationdb.tuple.TupleHelpers TupleHelpers} except that they use some Protobuf specific things * like the {@link ByteString} class, and {@code TupleHelpers} is defined in the * <a href="https://javadoc.io/doc/org.foundationdb/fdb-extensions/">fdb-extensions</a> sub-project * which does not (and probably should not) take Protobuf as a dependency. */ class TupleTypeUtil { @Nonnull private static final BigInteger BIG_INT_MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE); @Nonnull private static final BigInteger BIG_INT_MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE); /** * Normalize a list of values so that it can be checked for equality with other lists sharing * the same {@link Tuple} representation. In other words, it should be the case that: * * <pre> {@code * toTupleEquivalentValue(list1).equals(toTupleEquivalentValue) * == Arrays.equals(Tuple.fromList(toTupleAppropriateList(list1)).pack(), Tuple.fromList(toTupleAppropriateList(list2)).pack()) * }</pre> * * <p> * for any two lists {@code list1} and {@code list2}. * </p> * * @param values the list of values to normalized * @return a new list containing the normalized elements of {@code values} */ @Nonnull static List<Object> toTupleEquivalentList(@Nonnull List<?> values) { List<Object> tupleEquivalentList = new ArrayList<>(values.size()); for (Object o : values) { tupleEquivalentList.add(toTupleEquivalentValue(o)); } return tupleEquivalentList; } /** * Normalize a value so that it compares equal to anything with the same {@link Tuple} representation. * The value that is returned cannot necessarily be packed by a {@code Tuple} (for example, * a <code>byte[]</code> is returned as a {@link ByteString}), but it does implement {@link Object#equals(Object)} * and {@link Object#hashCode()}, so the value can be used in hash-based data structures like * {@link java.util.HashSet HashSet}s and {@link java.util.HashMap HashMap}s. In other words, it should * bethe case that: * * <pre> {@code * Objects.equals(toTupleEquivalentValue(value1), toTupleEquivalentValue(value2)) * == Arrays.equals(Tuple.from(value1).pack(), Tuple.from(value2).pack()) * }</pre> * * <p> * for any two values {@code value1} and {@code value2}. * </p> * * <p> * This will only return {@code null} if {@link #toTupleAppropriateValue(Object)} would return {@code null} * on the same input. If the object is already in * </p> * * @param obj the value to normalize * @return a value that has the same representation when {@link Tuple}-encoded */ @Nullable static Object toTupleEquivalentValue(@Nullable Object obj) { if (obj == null || obj instanceof Key.Evaluated.NullStandin) { return null; } else if (obj instanceof List<?>) { List<?> list = (List<?>)obj; return toTupleEquivalentList(list); } else if (obj instanceof Tuple) { return toTupleEquivalentList(((Tuple)obj).getItems()); } else if (obj instanceof byte[]) { return ByteString.copyFrom((byte[]) obj); } else if ((obj instanceof Byte) || (obj instanceof Short) || (obj instanceof Integer)) { return ((Number)obj).longValue(); } else if (obj instanceof BigInteger) { BigInteger bigInt = (BigInteger)obj; if (bigInt.compareTo(BIG_INT_MIN_LONG) > 0 && bigInt.compareTo(BIG_INT_MAX_LONG) < 0) { return bigInt.longValue(); } else { return bigInt; } } else if (obj instanceof ProtocolMessageEnum) { return (long)((ProtocolMessageEnum)obj).getNumber(); } else if (obj instanceof Descriptors.EnumValueDescriptor) { return (long)((Descriptors.EnumValueDescriptor)obj).getNumber(); } else if (obj instanceof FDBRecordVersion) { return ((FDBRecordVersion)obj).toVersionstamp(false); } else { return obj; } } /** * Convert a list of values into items that can all be stored within a {@link Tuple}. * * @param values a list of values * @return a new list with {@link Tuple}-encodable versions of the elements of {@code values} */ @Nonnull static List<Object> toTupleAppropriateList(@Nonnull List<?> values) { List<Object> tupleAppropriateList = new ArrayList<>(values.size()); for (Object o : values) { tupleAppropriateList.add(toTupleAppropriateValue(o)); } return tupleAppropriateList; } /** * Convert a value into a type that can be stored within a {@link Tuple}. * * @param obj the value to convert * @return the value converted to some {@link Tuple}-encodable type */ @Nullable static Object toTupleAppropriateValue(@Nullable Object obj) { if (obj instanceof Key.Evaluated.NullStandin) { return null; } else if (obj instanceof ByteString) { return ((ByteString) obj).toByteArray(); } else if (obj instanceof List) { return toTupleAppropriateList((List<?>) obj); // Following two are both Internal.EnumLite, so could use that, too. } else if (obj instanceof ProtocolMessageEnum) { return ((ProtocolMessageEnum) obj).getNumber(); } else if (obj instanceof Descriptors.EnumValueDescriptor) { return ((Descriptors.EnumValueDescriptor) obj).getNumber(); } else if (obj instanceof FDBRecordVersion) { return ((FDBRecordVersion) obj).toVersionstamp(false); } else { return obj; } } private TupleTypeUtil() { } }
{ "pile_set_name": "Github" }
/* 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 client-gen. DO NOT EDIT. package v1 type JobExpansion interface{}
{ "pile_set_name": "Github" }
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by AsyncGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ using System.Collections.Generic; using NUnit.Framework; using NHibernate.Criterion; namespace NHibernate.Test.NHSpecificTest.NH2546 { using System.Threading.Tasks; [TestFixture] public class SetCommandParameterSizesFalseFixtureAsync : BugTestCase { protected override bool AppliesTo(Dialect.Dialect dialect) { return dialect is Dialect.MsSql2008Dialect; } protected override void OnSetUp() { using (ISession session = Sfi.OpenSession()) { session.Persist(new Student() { StringTypeWithLengthDefined = "Julian Maughan" }); session.Persist(new Student() { StringTypeWithLengthDefined = "Bill Clinton" }); session.Flush(); } } protected override void OnTearDown() { using (ISession session = Sfi.OpenSession()) { session.CreateQuery("delete from Student").ExecuteUpdate(); session.Flush(); } base.OnTearDown(); } [Test] public async Task LikeExpressionWithinDefinedTypeSizeAsync() { using (ISession session = Sfi.OpenSession()) { ICriteria criteria = session .CreateCriteria<Student>() .Add(Restrictions.Like("StringTypeWithLengthDefined", "Julian%")); IList<Student> list = await (criteria.ListAsync<Student>()); Assert.That(list.Count, Is.EqualTo(1)); } } [Test] public async Task LikeExpressionExceedsDefinedTypeSizeAsync() { // In this case we are forcing the usage of LikeExpression class where the length of the associated property is ignored using (ISession session = Sfi.OpenSession()) { ICriteria criteria = session .CreateCriteria<Student>() .Add(Restrictions.Like("StringTypeWithLengthDefined", "[a-z][a-z][a-z]ian%", MatchMode.Exact, null)); IList<Student> list = await (criteria.ListAsync<Student>()); Assert.That(list.Count, Is.EqualTo(1)); } } } }
{ "pile_set_name": "Github" }
/* Copyright 2019 Google Inc. All Rights Reserved. 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. ==============================================================================*/ import {Polygon} from '/lib/math/polygon2d.js'; import * as moduleInterface from '/lib/module_interface.js'; import * as moduleTicker from '/client/modules/module_ticker.js'; import * as network from '/client/network/network.js'; import * as peerNetwork from '/client/network/peer.js'; import {easyLog} from '/lib/log.js'; import assert from '/lib/assert.js'; import asset from '/client/asset/asset.js'; import conform from '/lib/conform.js'; import inject from '/lib/inject.js'; import * as stateManager from '/client/state/state_manager.js'; import {TitleCard} from '/client/title_card.js'; import * as time from '/client/util/time.js'; import {delay} from '/lib/promise.js'; function createNewContainer(name) { var newContainer = document.createElement('div'); newContainer.className = 'container'; newContainer.id = 't-' + time.now(); newContainer.setAttribute('moduleName', name); return newContainer; } export const FadeTransition = { start(container) { if (container) { container.style.opacity = 0.001; document.querySelector('#containers').appendChild(container); } }, async perform(oldModule, newModule, deadline) { if (newModule.name == '_empty') { // Fading out.. so fade *out* the *old* container. oldModule.container.style.transition = 'opacity ' + time.until(deadline).toFixed(0) + 'ms'; oldModule.container.style.opacity = 0.0; } else { newModule.container.style.transition = 'opacity ' + time.until(deadline).toFixed(0) + 'ms'; newModule.container.style.opacity = 1.0; } // TODO(applmak): Maybe wait until css says that the transition is done? await delay(time.until(deadline)); } } export class ClientModule { constructor(name, path, config, titleCard, deadline, geo, transition) { // The module name. this.name = name; // The path to the main file of this module. this.path = path; // The module config. this.config = config; // The title card instance for this module. this.titleCard = titleCard; // Absolute time when this module is supposed to be visible. Module will // actually be faded in by deadline + 5000ms. this.deadline = deadline; // The wall geometry. this.geo = geo; // The transition to use to transition to this module. this.transition = transition; // The dom container for the module's content. this.container = null; // Module class instance. this.instance = null; // Network instance for this module. this.network = null; } // Deserializes from the json serialized form of ModuleDef in the server. static deserialize(bits) { if (bits.module.name == '_empty') { return ClientModule.newEmptyModule(bits.time); } return new ClientModule( bits.module.name, bits.module.path, bits.module.config, new TitleCard(bits.module.credit), bits.time, new Polygon(bits.geo), FadeTransition, ); } static newEmptyModule(deadline = 0, transition = FadeTransition) { return new ClientModule( '_empty', '', {}, new TitleCard({}), deadline, new Polygon([{x: 0, y:0}]), transition ); } // Extracted out for testing purposes. static async loadPath(path) { return await import(path); } async instantiate() { this.container = createNewContainer(this.name); if (!this.path) { return; } const INSTANTIATION_ID = `${this.geo.extents.serialize()}-${this.deadline}`; this.network = network.forModule(INSTANTIATION_ID); let openNetwork = this.network.open(); this.stateManager = stateManager.forModule(network, INSTANTIATION_ID); const fakeEnv = { asset, debug: easyLog('wall:module:' + this.name), game: undefined, network: openNetwork, titleCard: this.titleCard.getModuleAPI(), state: this.stateManager.open(), wallGeometry: this.geo, peerNetwork, assert, }; try { const {load} = await ClientModule.loadPath(this.path); if (!load) { throw new Error(`${this.name} did not export a 'load' function!`); } const {client} = inject(load, fakeEnv); conform(client, moduleInterface.Client); this.instance = new client(this.config); } catch (e) { // something went very wrong. Wind everything down.! this.network.close(); this.network = null; throw e; } } // Returns true if module is still OK. async willBeShownSoon() { if (!this.path) { return; } // Prep the container for transition. // TODO(applmak): Move the transition smarts out of ClientModule. this.transition.start(this.container); try { await this.instance.willBeShownSoon(this.container, this.deadline); } catch(e) { this.dispose(); throw e; } } // Returns true if module is still OK. beginTransitionIn(deadline) { if (!this.path) { return; } moduleTicker.add(this.name, this.instance); try { this.instance.beginFadeIn(deadline); } catch (e) { this.dispose(); throw e; } } finishTransitionIn() { if (!this.path) { return; } this.titleCard.enter(); this.instance.finishFadeIn(); } beginTransitionOut(deadline) { if (!this.path) { return; } this.titleCard.exit(); this.instance.beginFadeOut(deadline); } finishTransitionOut() { if (!this.path) { return; } this.instance.finishFadeOut(); } async performTransition(otherModule, transitionFinishDeadline) { await this.transition.perform(otherModule, this, transitionFinishDeadline); } dispose() { if (this.container) { this.container.remove(); this.container = null; } if (!this.path) { return; } this.titleCard.exit(); // Just in case. moduleTicker.remove(this.instance); if (this.network) { this.stateManager.close(); this.stateManager = null; this.network.close(); this.network = null; } } }
{ "pile_set_name": "Github" }
// DO NOT EDIT. // // Generated by the Swift generator plugin for the protocol buffer compiler. // Source: google/protobuf/unittest_proto3_arena.proto // // For information on using the generated types, please see the documenation: // https://github.com/apple/swift-protobuf/ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import Foundation import SwiftProtobuf // If the compiler emits an error on this type, it is because this file // was generated by a version of the `protoc` Swift plug-in that is // incompatible with the version of SwiftProtobuf to which you are linking. // Please ensure that your are building against the same version of the API // that was used to generate this file. fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} typealias Version = _2 } enum Proto3ArenaUnittest_ForeignEnum: SwiftProtobuf.Enum { typealias RawValue = Int case foreignZero // = 0 case foreignFoo // = 4 case foreignBar // = 5 case foreignBaz // = 6 case UNRECOGNIZED(Int) init() { self = .foreignZero } init?(rawValue: Int) { switch rawValue { case 0: self = .foreignZero case 4: self = .foreignFoo case 5: self = .foreignBar case 6: self = .foreignBaz default: self = .UNRECOGNIZED(rawValue) } } var rawValue: Int { switch self { case .foreignZero: return 0 case .foreignFoo: return 4 case .foreignBar: return 5 case .foreignBaz: return 6 case .UNRECOGNIZED(let i): return i } } } #if swift(>=4.2) extension Proto3ArenaUnittest_ForeignEnum: CaseIterable { // The compiler won't synthesize support with the UNRECOGNIZED case. static var allCases: [Proto3ArenaUnittest_ForeignEnum] = [ .foreignZero, .foreignFoo, .foreignBar, .foreignBaz, ] } #endif // swift(>=4.2) /// This proto includes every type of field in both singular and repeated /// forms. struct Proto3ArenaUnittest_TestAllTypes { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. /// Singular var optionalInt32: Int32 { get {return _storage._optionalInt32} set {_uniqueStorage()._optionalInt32 = newValue} } var optionalInt64: Int64 { get {return _storage._optionalInt64} set {_uniqueStorage()._optionalInt64 = newValue} } var optionalUint32: UInt32 { get {return _storage._optionalUint32} set {_uniqueStorage()._optionalUint32 = newValue} } var optionalUint64: UInt64 { get {return _storage._optionalUint64} set {_uniqueStorage()._optionalUint64 = newValue} } var optionalSint32: Int32 { get {return _storage._optionalSint32} set {_uniqueStorage()._optionalSint32 = newValue} } var optionalSint64: Int64 { get {return _storage._optionalSint64} set {_uniqueStorage()._optionalSint64 = newValue} } var optionalFixed32: UInt32 { get {return _storage._optionalFixed32} set {_uniqueStorage()._optionalFixed32 = newValue} } var optionalFixed64: UInt64 { get {return _storage._optionalFixed64} set {_uniqueStorage()._optionalFixed64 = newValue} } var optionalSfixed32: Int32 { get {return _storage._optionalSfixed32} set {_uniqueStorage()._optionalSfixed32 = newValue} } var optionalSfixed64: Int64 { get {return _storage._optionalSfixed64} set {_uniqueStorage()._optionalSfixed64 = newValue} } var optionalFloat: Float { get {return _storage._optionalFloat} set {_uniqueStorage()._optionalFloat = newValue} } var optionalDouble: Double { get {return _storage._optionalDouble} set {_uniqueStorage()._optionalDouble = newValue} } var optionalBool: Bool { get {return _storage._optionalBool} set {_uniqueStorage()._optionalBool = newValue} } var optionalString: String { get {return _storage._optionalString} set {_uniqueStorage()._optionalString = newValue} } var optionalBytes: Data { get {return _storage._optionalBytes} set {_uniqueStorage()._optionalBytes = newValue} } var optionalNestedMessage: Proto3ArenaUnittest_TestAllTypes.NestedMessage { get {return _storage._optionalNestedMessage ?? Proto3ArenaUnittest_TestAllTypes.NestedMessage()} set {_uniqueStorage()._optionalNestedMessage = newValue} } /// Returns true if `optionalNestedMessage` has been explicitly set. var hasOptionalNestedMessage: Bool {return _storage._optionalNestedMessage != nil} /// Clears the value of `optionalNestedMessage`. Subsequent reads from it will return its default value. mutating func clearOptionalNestedMessage() {_uniqueStorage()._optionalNestedMessage = nil} var optionalForeignMessage: Proto3ArenaUnittest_ForeignMessage { get {return _storage._optionalForeignMessage ?? Proto3ArenaUnittest_ForeignMessage()} set {_uniqueStorage()._optionalForeignMessage = newValue} } /// Returns true if `optionalForeignMessage` has been explicitly set. var hasOptionalForeignMessage: Bool {return _storage._optionalForeignMessage != nil} /// Clears the value of `optionalForeignMessage`. Subsequent reads from it will return its default value. mutating func clearOptionalForeignMessage() {_uniqueStorage()._optionalForeignMessage = nil} var optionalImportMessage: ProtobufUnittestImport_ImportMessage { get {return _storage._optionalImportMessage ?? ProtobufUnittestImport_ImportMessage()} set {_uniqueStorage()._optionalImportMessage = newValue} } /// Returns true if `optionalImportMessage` has been explicitly set. var hasOptionalImportMessage: Bool {return _storage._optionalImportMessage != nil} /// Clears the value of `optionalImportMessage`. Subsequent reads from it will return its default value. mutating func clearOptionalImportMessage() {_uniqueStorage()._optionalImportMessage = nil} var optionalNestedEnum: Proto3ArenaUnittest_TestAllTypes.NestedEnum { get {return _storage._optionalNestedEnum} set {_uniqueStorage()._optionalNestedEnum = newValue} } var optionalForeignEnum: Proto3ArenaUnittest_ForeignEnum { get {return _storage._optionalForeignEnum} set {_uniqueStorage()._optionalForeignEnum = newValue} } var optionalStringPiece: String { get {return _storage._optionalStringPiece} set {_uniqueStorage()._optionalStringPiece = newValue} } var optionalCord: String { get {return _storage._optionalCord} set {_uniqueStorage()._optionalCord = newValue} } /// Defined in unittest_import_public.proto var optionalPublicImportMessage: ProtobufUnittestImport_PublicImportMessage { get {return _storage._optionalPublicImportMessage ?? ProtobufUnittestImport_PublicImportMessage()} set {_uniqueStorage()._optionalPublicImportMessage = newValue} } /// Returns true if `optionalPublicImportMessage` has been explicitly set. var hasOptionalPublicImportMessage: Bool {return _storage._optionalPublicImportMessage != nil} /// Clears the value of `optionalPublicImportMessage`. Subsequent reads from it will return its default value. mutating func clearOptionalPublicImportMessage() {_uniqueStorage()._optionalPublicImportMessage = nil} var optionalLazyMessage: Proto3ArenaUnittest_TestAllTypes.NestedMessage { get {return _storage._optionalLazyMessage ?? Proto3ArenaUnittest_TestAllTypes.NestedMessage()} set {_uniqueStorage()._optionalLazyMessage = newValue} } /// Returns true if `optionalLazyMessage` has been explicitly set. var hasOptionalLazyMessage: Bool {return _storage._optionalLazyMessage != nil} /// Clears the value of `optionalLazyMessage`. Subsequent reads from it will return its default value. mutating func clearOptionalLazyMessage() {_uniqueStorage()._optionalLazyMessage = nil} var optionalLazyImportMessage: ProtobufUnittestImport_ImportMessage { get {return _storage._optionalLazyImportMessage ?? ProtobufUnittestImport_ImportMessage()} set {_uniqueStorage()._optionalLazyImportMessage = newValue} } /// Returns true if `optionalLazyImportMessage` has been explicitly set. var hasOptionalLazyImportMessage: Bool {return _storage._optionalLazyImportMessage != nil} /// Clears the value of `optionalLazyImportMessage`. Subsequent reads from it will return its default value. mutating func clearOptionalLazyImportMessage() {_uniqueStorage()._optionalLazyImportMessage = nil} /// Repeated var repeatedInt32: [Int32] { get {return _storage._repeatedInt32} set {_uniqueStorage()._repeatedInt32 = newValue} } var repeatedInt64: [Int64] { get {return _storage._repeatedInt64} set {_uniqueStorage()._repeatedInt64 = newValue} } var repeatedUint32: [UInt32] { get {return _storage._repeatedUint32} set {_uniqueStorage()._repeatedUint32 = newValue} } var repeatedUint64: [UInt64] { get {return _storage._repeatedUint64} set {_uniqueStorage()._repeatedUint64 = newValue} } var repeatedSint32: [Int32] { get {return _storage._repeatedSint32} set {_uniqueStorage()._repeatedSint32 = newValue} } var repeatedSint64: [Int64] { get {return _storage._repeatedSint64} set {_uniqueStorage()._repeatedSint64 = newValue} } var repeatedFixed32: [UInt32] { get {return _storage._repeatedFixed32} set {_uniqueStorage()._repeatedFixed32 = newValue} } var repeatedFixed64: [UInt64] { get {return _storage._repeatedFixed64} set {_uniqueStorage()._repeatedFixed64 = newValue} } var repeatedSfixed32: [Int32] { get {return _storage._repeatedSfixed32} set {_uniqueStorage()._repeatedSfixed32 = newValue} } var repeatedSfixed64: [Int64] { get {return _storage._repeatedSfixed64} set {_uniqueStorage()._repeatedSfixed64 = newValue} } var repeatedFloat: [Float] { get {return _storage._repeatedFloat} set {_uniqueStorage()._repeatedFloat = newValue} } var repeatedDouble: [Double] { get {return _storage._repeatedDouble} set {_uniqueStorage()._repeatedDouble = newValue} } var repeatedBool: [Bool] { get {return _storage._repeatedBool} set {_uniqueStorage()._repeatedBool = newValue} } var repeatedString: [String] { get {return _storage._repeatedString} set {_uniqueStorage()._repeatedString = newValue} } var repeatedBytes: [Data] { get {return _storage._repeatedBytes} set {_uniqueStorage()._repeatedBytes = newValue} } var repeatedNestedMessage: [Proto3ArenaUnittest_TestAllTypes.NestedMessage] { get {return _storage._repeatedNestedMessage} set {_uniqueStorage()._repeatedNestedMessage = newValue} } var repeatedForeignMessage: [Proto3ArenaUnittest_ForeignMessage] { get {return _storage._repeatedForeignMessage} set {_uniqueStorage()._repeatedForeignMessage = newValue} } var repeatedImportMessage: [ProtobufUnittestImport_ImportMessage] { get {return _storage._repeatedImportMessage} set {_uniqueStorage()._repeatedImportMessage = newValue} } var repeatedNestedEnum: [Proto3ArenaUnittest_TestAllTypes.NestedEnum] { get {return _storage._repeatedNestedEnum} set {_uniqueStorage()._repeatedNestedEnum = newValue} } var repeatedForeignEnum: [Proto3ArenaUnittest_ForeignEnum] { get {return _storage._repeatedForeignEnum} set {_uniqueStorage()._repeatedForeignEnum = newValue} } var repeatedStringPiece: [String] { get {return _storage._repeatedStringPiece} set {_uniqueStorage()._repeatedStringPiece = newValue} } var repeatedCord: [String] { get {return _storage._repeatedCord} set {_uniqueStorage()._repeatedCord = newValue} } var repeatedLazyMessage: [Proto3ArenaUnittest_TestAllTypes.NestedMessage] { get {return _storage._repeatedLazyMessage} set {_uniqueStorage()._repeatedLazyMessage = newValue} } var oneofField: OneOf_OneofField? { get {return _storage._oneofField} set {_uniqueStorage()._oneofField = newValue} } var oneofUint32: UInt32 { get { if case .oneofUint32(let v)? = _storage._oneofField {return v} return 0 } set {_uniqueStorage()._oneofField = .oneofUint32(newValue)} } var oneofNestedMessage: Proto3ArenaUnittest_TestAllTypes.NestedMessage { get { if case .oneofNestedMessage(let v)? = _storage._oneofField {return v} return Proto3ArenaUnittest_TestAllTypes.NestedMessage() } set {_uniqueStorage()._oneofField = .oneofNestedMessage(newValue)} } var oneofString: String { get { if case .oneofString(let v)? = _storage._oneofField {return v} return String() } set {_uniqueStorage()._oneofField = .oneofString(newValue)} } var oneofBytes: Data { get { if case .oneofBytes(let v)? = _storage._oneofField {return v} return SwiftProtobuf.Internal.emptyData } set {_uniqueStorage()._oneofField = .oneofBytes(newValue)} } var unknownFields = SwiftProtobuf.UnknownStorage() enum OneOf_OneofField: Equatable { case oneofUint32(UInt32) case oneofNestedMessage(Proto3ArenaUnittest_TestAllTypes.NestedMessage) case oneofString(String) case oneofBytes(Data) #if !swift(>=4.1) static func ==(lhs: Proto3ArenaUnittest_TestAllTypes.OneOf_OneofField, rhs: Proto3ArenaUnittest_TestAllTypes.OneOf_OneofField) -> Bool { switch (lhs, rhs) { case (.oneofUint32(let l), .oneofUint32(let r)): return l == r case (.oneofNestedMessage(let l), .oneofNestedMessage(let r)): return l == r case (.oneofString(let l), .oneofString(let r)): return l == r case (.oneofBytes(let l), .oneofBytes(let r)): return l == r default: return false } } #endif } enum NestedEnum: SwiftProtobuf.Enum { typealias RawValue = Int case zero // = 0 case foo // = 1 case bar // = 2 case baz // = 3 /// Intentionally negative. case neg // = -1 case UNRECOGNIZED(Int) init() { self = .zero } init?(rawValue: Int) { switch rawValue { case -1: self = .neg case 0: self = .zero case 1: self = .foo case 2: self = .bar case 3: self = .baz default: self = .UNRECOGNIZED(rawValue) } } var rawValue: Int { switch self { case .neg: return -1 case .zero: return 0 case .foo: return 1 case .bar: return 2 case .baz: return 3 case .UNRECOGNIZED(let i): return i } } } struct NestedMessage { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. /// The field name "b" fails to compile in proto1 because it conflicts with /// a local variable named "b" in one of the generated methods. Doh. /// This file needs to compile in proto1 to test backwards-compatibility. var bb: Int32 = 0 var unknownFields = SwiftProtobuf.UnknownStorage() init() {} } init() {} fileprivate var _storage = _StorageClass.defaultInstance } #if swift(>=4.2) extension Proto3ArenaUnittest_TestAllTypes.NestedEnum: CaseIterable { // The compiler won't synthesize support with the UNRECOGNIZED case. static var allCases: [Proto3ArenaUnittest_TestAllTypes.NestedEnum] = [ .zero, .foo, .bar, .baz, .neg, ] } #endif // swift(>=4.2) struct Proto3ArenaUnittest_TestPackedTypes { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. var packedInt32: [Int32] = [] var packedInt64: [Int64] = [] var packedUint32: [UInt32] = [] var packedUint64: [UInt64] = [] var packedSint32: [Int32] = [] var packedSint64: [Int64] = [] var packedFixed32: [UInt32] = [] var packedFixed64: [UInt64] = [] var packedSfixed32: [Int32] = [] var packedSfixed64: [Int64] = [] var packedFloat: [Float] = [] var packedDouble: [Double] = [] var packedBool: [Bool] = [] var packedEnum: [Proto3ArenaUnittest_ForeignEnum] = [] var unknownFields = SwiftProtobuf.UnknownStorage() init() {} } /// Explicitly set packed to false struct Proto3ArenaUnittest_TestUnpackedTypes { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. var repeatedInt32: [Int32] = [] var repeatedInt64: [Int64] = [] var repeatedUint32: [UInt32] = [] var repeatedUint64: [UInt64] = [] var repeatedSint32: [Int32] = [] var repeatedSint64: [Int64] = [] var repeatedFixed32: [UInt32] = [] var repeatedFixed64: [UInt64] = [] var repeatedSfixed32: [Int32] = [] var repeatedSfixed64: [Int64] = [] var repeatedFloat: [Float] = [] var repeatedDouble: [Double] = [] var repeatedBool: [Bool] = [] var repeatedNestedEnum: [Proto3ArenaUnittest_TestAllTypes.NestedEnum] = [] var unknownFields = SwiftProtobuf.UnknownStorage() init() {} } /// This proto includes a recusively nested message. struct Proto3ArenaUnittest_NestedTestAllTypes { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. var child: Proto3ArenaUnittest_NestedTestAllTypes { get {return _storage._child ?? Proto3ArenaUnittest_NestedTestAllTypes()} set {_uniqueStorage()._child = newValue} } /// Returns true if `child` has been explicitly set. var hasChild: Bool {return _storage._child != nil} /// Clears the value of `child`. Subsequent reads from it will return its default value. mutating func clearChild() {_uniqueStorage()._child = nil} var payload: Proto3ArenaUnittest_TestAllTypes { get {return _storage._payload ?? Proto3ArenaUnittest_TestAllTypes()} set {_uniqueStorage()._payload = newValue} } /// Returns true if `payload` has been explicitly set. var hasPayload: Bool {return _storage._payload != nil} /// Clears the value of `payload`. Subsequent reads from it will return its default value. mutating func clearPayload() {_uniqueStorage()._payload = nil} var repeatedChild: [Proto3ArenaUnittest_NestedTestAllTypes] { get {return _storage._repeatedChild} set {_uniqueStorage()._repeatedChild = newValue} } var unknownFields = SwiftProtobuf.UnknownStorage() init() {} fileprivate var _storage = _StorageClass.defaultInstance } /// Define these after TestAllTypes to make sure the compiler can handle /// that. struct Proto3ArenaUnittest_ForeignMessage { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. var c: Int32 = 0 var unknownFields = SwiftProtobuf.UnknownStorage() init() {} } /// TestEmptyMessage is used to test behavior of unknown fields. struct Proto3ArenaUnittest_TestEmptyMessage { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. var unknownFields = SwiftProtobuf.UnknownStorage() init() {} } // MARK: - Code below here is support for the SwiftProtobuf runtime. fileprivate let _protobuf_package = "proto3_arena_unittest" extension Proto3ArenaUnittest_ForeignEnum: SwiftProtobuf._ProtoNameProviding { static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 0: .same(proto: "FOREIGN_ZERO"), 4: .same(proto: "FOREIGN_FOO"), 5: .same(proto: "FOREIGN_BAR"), 6: .same(proto: "FOREIGN_BAZ"), ] } extension Proto3ArenaUnittest_TestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { static let protoMessageName: String = _protobuf_package + ".TestAllTypes" static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .standard(proto: "optional_int32"), 2: .standard(proto: "optional_int64"), 3: .standard(proto: "optional_uint32"), 4: .standard(proto: "optional_uint64"), 5: .standard(proto: "optional_sint32"), 6: .standard(proto: "optional_sint64"), 7: .standard(proto: "optional_fixed32"), 8: .standard(proto: "optional_fixed64"), 9: .standard(proto: "optional_sfixed32"), 10: .standard(proto: "optional_sfixed64"), 11: .standard(proto: "optional_float"), 12: .standard(proto: "optional_double"), 13: .standard(proto: "optional_bool"), 14: .standard(proto: "optional_string"), 15: .standard(proto: "optional_bytes"), 18: .standard(proto: "optional_nested_message"), 19: .standard(proto: "optional_foreign_message"), 20: .standard(proto: "optional_import_message"), 21: .standard(proto: "optional_nested_enum"), 22: .standard(proto: "optional_foreign_enum"), 24: .standard(proto: "optional_string_piece"), 25: .standard(proto: "optional_cord"), 26: .standard(proto: "optional_public_import_message"), 27: .standard(proto: "optional_lazy_message"), 115: .standard(proto: "optional_lazy_import_message"), 31: .standard(proto: "repeated_int32"), 32: .standard(proto: "repeated_int64"), 33: .standard(proto: "repeated_uint32"), 34: .standard(proto: "repeated_uint64"), 35: .standard(proto: "repeated_sint32"), 36: .standard(proto: "repeated_sint64"), 37: .standard(proto: "repeated_fixed32"), 38: .standard(proto: "repeated_fixed64"), 39: .standard(proto: "repeated_sfixed32"), 40: .standard(proto: "repeated_sfixed64"), 41: .standard(proto: "repeated_float"), 42: .standard(proto: "repeated_double"), 43: .standard(proto: "repeated_bool"), 44: .standard(proto: "repeated_string"), 45: .standard(proto: "repeated_bytes"), 48: .standard(proto: "repeated_nested_message"), 49: .standard(proto: "repeated_foreign_message"), 50: .standard(proto: "repeated_import_message"), 51: .standard(proto: "repeated_nested_enum"), 52: .standard(proto: "repeated_foreign_enum"), 54: .standard(proto: "repeated_string_piece"), 55: .standard(proto: "repeated_cord"), 57: .standard(proto: "repeated_lazy_message"), 111: .standard(proto: "oneof_uint32"), 112: .standard(proto: "oneof_nested_message"), 113: .standard(proto: "oneof_string"), 114: .standard(proto: "oneof_bytes"), ] fileprivate class _StorageClass { var _optionalInt32: Int32 = 0 var _optionalInt64: Int64 = 0 var _optionalUint32: UInt32 = 0 var _optionalUint64: UInt64 = 0 var _optionalSint32: Int32 = 0 var _optionalSint64: Int64 = 0 var _optionalFixed32: UInt32 = 0 var _optionalFixed64: UInt64 = 0 var _optionalSfixed32: Int32 = 0 var _optionalSfixed64: Int64 = 0 var _optionalFloat: Float = 0 var _optionalDouble: Double = 0 var _optionalBool: Bool = false var _optionalString: String = String() var _optionalBytes: Data = SwiftProtobuf.Internal.emptyData var _optionalNestedMessage: Proto3ArenaUnittest_TestAllTypes.NestedMessage? = nil var _optionalForeignMessage: Proto3ArenaUnittest_ForeignMessage? = nil var _optionalImportMessage: ProtobufUnittestImport_ImportMessage? = nil var _optionalNestedEnum: Proto3ArenaUnittest_TestAllTypes.NestedEnum = .zero var _optionalForeignEnum: Proto3ArenaUnittest_ForeignEnum = .foreignZero var _optionalStringPiece: String = String() var _optionalCord: String = String() var _optionalPublicImportMessage: ProtobufUnittestImport_PublicImportMessage? = nil var _optionalLazyMessage: Proto3ArenaUnittest_TestAllTypes.NestedMessage? = nil var _optionalLazyImportMessage: ProtobufUnittestImport_ImportMessage? = nil var _repeatedInt32: [Int32] = [] var _repeatedInt64: [Int64] = [] var _repeatedUint32: [UInt32] = [] var _repeatedUint64: [UInt64] = [] var _repeatedSint32: [Int32] = [] var _repeatedSint64: [Int64] = [] var _repeatedFixed32: [UInt32] = [] var _repeatedFixed64: [UInt64] = [] var _repeatedSfixed32: [Int32] = [] var _repeatedSfixed64: [Int64] = [] var _repeatedFloat: [Float] = [] var _repeatedDouble: [Double] = [] var _repeatedBool: [Bool] = [] var _repeatedString: [String] = [] var _repeatedBytes: [Data] = [] var _repeatedNestedMessage: [Proto3ArenaUnittest_TestAllTypes.NestedMessage] = [] var _repeatedForeignMessage: [Proto3ArenaUnittest_ForeignMessage] = [] var _repeatedImportMessage: [ProtobufUnittestImport_ImportMessage] = [] var _repeatedNestedEnum: [Proto3ArenaUnittest_TestAllTypes.NestedEnum] = [] var _repeatedForeignEnum: [Proto3ArenaUnittest_ForeignEnum] = [] var _repeatedStringPiece: [String] = [] var _repeatedCord: [String] = [] var _repeatedLazyMessage: [Proto3ArenaUnittest_TestAllTypes.NestedMessage] = [] var _oneofField: Proto3ArenaUnittest_TestAllTypes.OneOf_OneofField? static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { _optionalInt32 = source._optionalInt32 _optionalInt64 = source._optionalInt64 _optionalUint32 = source._optionalUint32 _optionalUint64 = source._optionalUint64 _optionalSint32 = source._optionalSint32 _optionalSint64 = source._optionalSint64 _optionalFixed32 = source._optionalFixed32 _optionalFixed64 = source._optionalFixed64 _optionalSfixed32 = source._optionalSfixed32 _optionalSfixed64 = source._optionalSfixed64 _optionalFloat = source._optionalFloat _optionalDouble = source._optionalDouble _optionalBool = source._optionalBool _optionalString = source._optionalString _optionalBytes = source._optionalBytes _optionalNestedMessage = source._optionalNestedMessage _optionalForeignMessage = source._optionalForeignMessage _optionalImportMessage = source._optionalImportMessage _optionalNestedEnum = source._optionalNestedEnum _optionalForeignEnum = source._optionalForeignEnum _optionalStringPiece = source._optionalStringPiece _optionalCord = source._optionalCord _optionalPublicImportMessage = source._optionalPublicImportMessage _optionalLazyMessage = source._optionalLazyMessage _optionalLazyImportMessage = source._optionalLazyImportMessage _repeatedInt32 = source._repeatedInt32 _repeatedInt64 = source._repeatedInt64 _repeatedUint32 = source._repeatedUint32 _repeatedUint64 = source._repeatedUint64 _repeatedSint32 = source._repeatedSint32 _repeatedSint64 = source._repeatedSint64 _repeatedFixed32 = source._repeatedFixed32 _repeatedFixed64 = source._repeatedFixed64 _repeatedSfixed32 = source._repeatedSfixed32 _repeatedSfixed64 = source._repeatedSfixed64 _repeatedFloat = source._repeatedFloat _repeatedDouble = source._repeatedDouble _repeatedBool = source._repeatedBool _repeatedString = source._repeatedString _repeatedBytes = source._repeatedBytes _repeatedNestedMessage = source._repeatedNestedMessage _repeatedForeignMessage = source._repeatedForeignMessage _repeatedImportMessage = source._repeatedImportMessage _repeatedNestedEnum = source._repeatedNestedEnum _repeatedForeignEnum = source._repeatedForeignEnum _repeatedStringPiece = source._repeatedStringPiece _repeatedCord = source._repeatedCord _repeatedLazyMessage = source._repeatedLazyMessage _oneofField = source._oneofField } } fileprivate mutating func _uniqueStorage() -> _StorageClass { if !isKnownUniquelyReferenced(&_storage) { _storage = _StorageClass(copying: _storage) } return _storage } mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { _ = _uniqueStorage() try withExtendedLifetime(_storage) { (_storage: _StorageClass) in while let fieldNumber = try decoder.nextFieldNumber() { switch fieldNumber { case 1: try decoder.decodeSingularInt32Field(value: &_storage._optionalInt32) case 2: try decoder.decodeSingularInt64Field(value: &_storage._optionalInt64) case 3: try decoder.decodeSingularUInt32Field(value: &_storage._optionalUint32) case 4: try decoder.decodeSingularUInt64Field(value: &_storage._optionalUint64) case 5: try decoder.decodeSingularSInt32Field(value: &_storage._optionalSint32) case 6: try decoder.decodeSingularSInt64Field(value: &_storage._optionalSint64) case 7: try decoder.decodeSingularFixed32Field(value: &_storage._optionalFixed32) case 8: try decoder.decodeSingularFixed64Field(value: &_storage._optionalFixed64) case 9: try decoder.decodeSingularSFixed32Field(value: &_storage._optionalSfixed32) case 10: try decoder.decodeSingularSFixed64Field(value: &_storage._optionalSfixed64) case 11: try decoder.decodeSingularFloatField(value: &_storage._optionalFloat) case 12: try decoder.decodeSingularDoubleField(value: &_storage._optionalDouble) case 13: try decoder.decodeSingularBoolField(value: &_storage._optionalBool) case 14: try decoder.decodeSingularStringField(value: &_storage._optionalString) case 15: try decoder.decodeSingularBytesField(value: &_storage._optionalBytes) case 18: try decoder.decodeSingularMessageField(value: &_storage._optionalNestedMessage) case 19: try decoder.decodeSingularMessageField(value: &_storage._optionalForeignMessage) case 20: try decoder.decodeSingularMessageField(value: &_storage._optionalImportMessage) case 21: try decoder.decodeSingularEnumField(value: &_storage._optionalNestedEnum) case 22: try decoder.decodeSingularEnumField(value: &_storage._optionalForeignEnum) case 24: try decoder.decodeSingularStringField(value: &_storage._optionalStringPiece) case 25: try decoder.decodeSingularStringField(value: &_storage._optionalCord) case 26: try decoder.decodeSingularMessageField(value: &_storage._optionalPublicImportMessage) case 27: try decoder.decodeSingularMessageField(value: &_storage._optionalLazyMessage) case 31: try decoder.decodeRepeatedInt32Field(value: &_storage._repeatedInt32) case 32: try decoder.decodeRepeatedInt64Field(value: &_storage._repeatedInt64) case 33: try decoder.decodeRepeatedUInt32Field(value: &_storage._repeatedUint32) case 34: try decoder.decodeRepeatedUInt64Field(value: &_storage._repeatedUint64) case 35: try decoder.decodeRepeatedSInt32Field(value: &_storage._repeatedSint32) case 36: try decoder.decodeRepeatedSInt64Field(value: &_storage._repeatedSint64) case 37: try decoder.decodeRepeatedFixed32Field(value: &_storage._repeatedFixed32) case 38: try decoder.decodeRepeatedFixed64Field(value: &_storage._repeatedFixed64) case 39: try decoder.decodeRepeatedSFixed32Field(value: &_storage._repeatedSfixed32) case 40: try decoder.decodeRepeatedSFixed64Field(value: &_storage._repeatedSfixed64) case 41: try decoder.decodeRepeatedFloatField(value: &_storage._repeatedFloat) case 42: try decoder.decodeRepeatedDoubleField(value: &_storage._repeatedDouble) case 43: try decoder.decodeRepeatedBoolField(value: &_storage._repeatedBool) case 44: try decoder.decodeRepeatedStringField(value: &_storage._repeatedString) case 45: try decoder.decodeRepeatedBytesField(value: &_storage._repeatedBytes) case 48: try decoder.decodeRepeatedMessageField(value: &_storage._repeatedNestedMessage) case 49: try decoder.decodeRepeatedMessageField(value: &_storage._repeatedForeignMessage) case 50: try decoder.decodeRepeatedMessageField(value: &_storage._repeatedImportMessage) case 51: try decoder.decodeRepeatedEnumField(value: &_storage._repeatedNestedEnum) case 52: try decoder.decodeRepeatedEnumField(value: &_storage._repeatedForeignEnum) case 54: try decoder.decodeRepeatedStringField(value: &_storage._repeatedStringPiece) case 55: try decoder.decodeRepeatedStringField(value: &_storage._repeatedCord) case 57: try decoder.decodeRepeatedMessageField(value: &_storage._repeatedLazyMessage) case 111: if _storage._oneofField != nil {try decoder.handleConflictingOneOf()} var v: UInt32? try decoder.decodeSingularUInt32Field(value: &v) if let v = v {_storage._oneofField = .oneofUint32(v)} case 112: var v: Proto3ArenaUnittest_TestAllTypes.NestedMessage? if let current = _storage._oneofField { try decoder.handleConflictingOneOf() if case .oneofNestedMessage(let m) = current {v = m} } try decoder.decodeSingularMessageField(value: &v) if let v = v {_storage._oneofField = .oneofNestedMessage(v)} case 113: if _storage._oneofField != nil {try decoder.handleConflictingOneOf()} var v: String? try decoder.decodeSingularStringField(value: &v) if let v = v {_storage._oneofField = .oneofString(v)} case 114: if _storage._oneofField != nil {try decoder.handleConflictingOneOf()} var v: Data? try decoder.decodeSingularBytesField(value: &v) if let v = v {_storage._oneofField = .oneofBytes(v)} case 115: try decoder.decodeSingularMessageField(value: &_storage._optionalLazyImportMessage) default: break } } } } func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { try withExtendedLifetime(_storage) { (_storage: _StorageClass) in if _storage._optionalInt32 != 0 { try visitor.visitSingularInt32Field(value: _storage._optionalInt32, fieldNumber: 1) } if _storage._optionalInt64 != 0 { try visitor.visitSingularInt64Field(value: _storage._optionalInt64, fieldNumber: 2) } if _storage._optionalUint32 != 0 { try visitor.visitSingularUInt32Field(value: _storage._optionalUint32, fieldNumber: 3) } if _storage._optionalUint64 != 0 { try visitor.visitSingularUInt64Field(value: _storage._optionalUint64, fieldNumber: 4) } if _storage._optionalSint32 != 0 { try visitor.visitSingularSInt32Field(value: _storage._optionalSint32, fieldNumber: 5) } if _storage._optionalSint64 != 0 { try visitor.visitSingularSInt64Field(value: _storage._optionalSint64, fieldNumber: 6) } if _storage._optionalFixed32 != 0 { try visitor.visitSingularFixed32Field(value: _storage._optionalFixed32, fieldNumber: 7) } if _storage._optionalFixed64 != 0 { try visitor.visitSingularFixed64Field(value: _storage._optionalFixed64, fieldNumber: 8) } if _storage._optionalSfixed32 != 0 { try visitor.visitSingularSFixed32Field(value: _storage._optionalSfixed32, fieldNumber: 9) } if _storage._optionalSfixed64 != 0 { try visitor.visitSingularSFixed64Field(value: _storage._optionalSfixed64, fieldNumber: 10) } if _storage._optionalFloat != 0 { try visitor.visitSingularFloatField(value: _storage._optionalFloat, fieldNumber: 11) } if _storage._optionalDouble != 0 { try visitor.visitSingularDoubleField(value: _storage._optionalDouble, fieldNumber: 12) } if _storage._optionalBool != false { try visitor.visitSingularBoolField(value: _storage._optionalBool, fieldNumber: 13) } if !_storage._optionalString.isEmpty { try visitor.visitSingularStringField(value: _storage._optionalString, fieldNumber: 14) } if !_storage._optionalBytes.isEmpty { try visitor.visitSingularBytesField(value: _storage._optionalBytes, fieldNumber: 15) } if let v = _storage._optionalNestedMessage { try visitor.visitSingularMessageField(value: v, fieldNumber: 18) } if let v = _storage._optionalForeignMessage { try visitor.visitSingularMessageField(value: v, fieldNumber: 19) } if let v = _storage._optionalImportMessage { try visitor.visitSingularMessageField(value: v, fieldNumber: 20) } if _storage._optionalNestedEnum != .zero { try visitor.visitSingularEnumField(value: _storage._optionalNestedEnum, fieldNumber: 21) } if _storage._optionalForeignEnum != .foreignZero { try visitor.visitSingularEnumField(value: _storage._optionalForeignEnum, fieldNumber: 22) } if !_storage._optionalStringPiece.isEmpty { try visitor.visitSingularStringField(value: _storage._optionalStringPiece, fieldNumber: 24) } if !_storage._optionalCord.isEmpty { try visitor.visitSingularStringField(value: _storage._optionalCord, fieldNumber: 25) } if let v = _storage._optionalPublicImportMessage { try visitor.visitSingularMessageField(value: v, fieldNumber: 26) } if let v = _storage._optionalLazyMessage { try visitor.visitSingularMessageField(value: v, fieldNumber: 27) } if !_storage._repeatedInt32.isEmpty { try visitor.visitPackedInt32Field(value: _storage._repeatedInt32, fieldNumber: 31) } if !_storage._repeatedInt64.isEmpty { try visitor.visitPackedInt64Field(value: _storage._repeatedInt64, fieldNumber: 32) } if !_storage._repeatedUint32.isEmpty { try visitor.visitPackedUInt32Field(value: _storage._repeatedUint32, fieldNumber: 33) } if !_storage._repeatedUint64.isEmpty { try visitor.visitPackedUInt64Field(value: _storage._repeatedUint64, fieldNumber: 34) } if !_storage._repeatedSint32.isEmpty { try visitor.visitPackedSInt32Field(value: _storage._repeatedSint32, fieldNumber: 35) } if !_storage._repeatedSint64.isEmpty { try visitor.visitPackedSInt64Field(value: _storage._repeatedSint64, fieldNumber: 36) } if !_storage._repeatedFixed32.isEmpty { try visitor.visitPackedFixed32Field(value: _storage._repeatedFixed32, fieldNumber: 37) } if !_storage._repeatedFixed64.isEmpty { try visitor.visitPackedFixed64Field(value: _storage._repeatedFixed64, fieldNumber: 38) } if !_storage._repeatedSfixed32.isEmpty { try visitor.visitPackedSFixed32Field(value: _storage._repeatedSfixed32, fieldNumber: 39) } if !_storage._repeatedSfixed64.isEmpty { try visitor.visitPackedSFixed64Field(value: _storage._repeatedSfixed64, fieldNumber: 40) } if !_storage._repeatedFloat.isEmpty { try visitor.visitPackedFloatField(value: _storage._repeatedFloat, fieldNumber: 41) } if !_storage._repeatedDouble.isEmpty { try visitor.visitPackedDoubleField(value: _storage._repeatedDouble, fieldNumber: 42) } if !_storage._repeatedBool.isEmpty { try visitor.visitPackedBoolField(value: _storage._repeatedBool, fieldNumber: 43) } if !_storage._repeatedString.isEmpty { try visitor.visitRepeatedStringField(value: _storage._repeatedString, fieldNumber: 44) } if !_storage._repeatedBytes.isEmpty { try visitor.visitRepeatedBytesField(value: _storage._repeatedBytes, fieldNumber: 45) } if !_storage._repeatedNestedMessage.isEmpty { try visitor.visitRepeatedMessageField(value: _storage._repeatedNestedMessage, fieldNumber: 48) } if !_storage._repeatedForeignMessage.isEmpty { try visitor.visitRepeatedMessageField(value: _storage._repeatedForeignMessage, fieldNumber: 49) } if !_storage._repeatedImportMessage.isEmpty { try visitor.visitRepeatedMessageField(value: _storage._repeatedImportMessage, fieldNumber: 50) } if !_storage._repeatedNestedEnum.isEmpty { try visitor.visitPackedEnumField(value: _storage._repeatedNestedEnum, fieldNumber: 51) } if !_storage._repeatedForeignEnum.isEmpty { try visitor.visitPackedEnumField(value: _storage._repeatedForeignEnum, fieldNumber: 52) } if !_storage._repeatedStringPiece.isEmpty { try visitor.visitRepeatedStringField(value: _storage._repeatedStringPiece, fieldNumber: 54) } if !_storage._repeatedCord.isEmpty { try visitor.visitRepeatedStringField(value: _storage._repeatedCord, fieldNumber: 55) } if !_storage._repeatedLazyMessage.isEmpty { try visitor.visitRepeatedMessageField(value: _storage._repeatedLazyMessage, fieldNumber: 57) } switch _storage._oneofField { case .oneofUint32(let v)?: try visitor.visitSingularUInt32Field(value: v, fieldNumber: 111) case .oneofNestedMessage(let v)?: try visitor.visitSingularMessageField(value: v, fieldNumber: 112) case .oneofString(let v)?: try visitor.visitSingularStringField(value: v, fieldNumber: 113) case .oneofBytes(let v)?: try visitor.visitSingularBytesField(value: v, fieldNumber: 114) case nil: break } if let v = _storage._optionalLazyImportMessage { try visitor.visitSingularMessageField(value: v, fieldNumber: 115) } } try unknownFields.traverse(visitor: &visitor) } static func ==(lhs: Proto3ArenaUnittest_TestAllTypes, rhs: Proto3ArenaUnittest_TestAllTypes) -> Bool { if lhs._storage !== rhs._storage { let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in let _storage = _args.0 let rhs_storage = _args.1 if _storage._optionalInt32 != rhs_storage._optionalInt32 {return false} if _storage._optionalInt64 != rhs_storage._optionalInt64 {return false} if _storage._optionalUint32 != rhs_storage._optionalUint32 {return false} if _storage._optionalUint64 != rhs_storage._optionalUint64 {return false} if _storage._optionalSint32 != rhs_storage._optionalSint32 {return false} if _storage._optionalSint64 != rhs_storage._optionalSint64 {return false} if _storage._optionalFixed32 != rhs_storage._optionalFixed32 {return false} if _storage._optionalFixed64 != rhs_storage._optionalFixed64 {return false} if _storage._optionalSfixed32 != rhs_storage._optionalSfixed32 {return false} if _storage._optionalSfixed64 != rhs_storage._optionalSfixed64 {return false} if _storage._optionalFloat != rhs_storage._optionalFloat {return false} if _storage._optionalDouble != rhs_storage._optionalDouble {return false} if _storage._optionalBool != rhs_storage._optionalBool {return false} if _storage._optionalString != rhs_storage._optionalString {return false} if _storage._optionalBytes != rhs_storage._optionalBytes {return false} if _storage._optionalNestedMessage != rhs_storage._optionalNestedMessage {return false} if _storage._optionalForeignMessage != rhs_storage._optionalForeignMessage {return false} if _storage._optionalImportMessage != rhs_storage._optionalImportMessage {return false} if _storage._optionalNestedEnum != rhs_storage._optionalNestedEnum {return false} if _storage._optionalForeignEnum != rhs_storage._optionalForeignEnum {return false} if _storage._optionalStringPiece != rhs_storage._optionalStringPiece {return false} if _storage._optionalCord != rhs_storage._optionalCord {return false} if _storage._optionalPublicImportMessage != rhs_storage._optionalPublicImportMessage {return false} if _storage._optionalLazyMessage != rhs_storage._optionalLazyMessage {return false} if _storage._optionalLazyImportMessage != rhs_storage._optionalLazyImportMessage {return false} if _storage._repeatedInt32 != rhs_storage._repeatedInt32 {return false} if _storage._repeatedInt64 != rhs_storage._repeatedInt64 {return false} if _storage._repeatedUint32 != rhs_storage._repeatedUint32 {return false} if _storage._repeatedUint64 != rhs_storage._repeatedUint64 {return false} if _storage._repeatedSint32 != rhs_storage._repeatedSint32 {return false} if _storage._repeatedSint64 != rhs_storage._repeatedSint64 {return false} if _storage._repeatedFixed32 != rhs_storage._repeatedFixed32 {return false} if _storage._repeatedFixed64 != rhs_storage._repeatedFixed64 {return false} if _storage._repeatedSfixed32 != rhs_storage._repeatedSfixed32 {return false} if _storage._repeatedSfixed64 != rhs_storage._repeatedSfixed64 {return false} if _storage._repeatedFloat != rhs_storage._repeatedFloat {return false} if _storage._repeatedDouble != rhs_storage._repeatedDouble {return false} if _storage._repeatedBool != rhs_storage._repeatedBool {return false} if _storage._repeatedString != rhs_storage._repeatedString {return false} if _storage._repeatedBytes != rhs_storage._repeatedBytes {return false} if _storage._repeatedNestedMessage != rhs_storage._repeatedNestedMessage {return false} if _storage._repeatedForeignMessage != rhs_storage._repeatedForeignMessage {return false} if _storage._repeatedImportMessage != rhs_storage._repeatedImportMessage {return false} if _storage._repeatedNestedEnum != rhs_storage._repeatedNestedEnum {return false} if _storage._repeatedForeignEnum != rhs_storage._repeatedForeignEnum {return false} if _storage._repeatedStringPiece != rhs_storage._repeatedStringPiece {return false} if _storage._repeatedCord != rhs_storage._repeatedCord {return false} if _storage._repeatedLazyMessage != rhs_storage._repeatedLazyMessage {return false} if _storage._oneofField != rhs_storage._oneofField {return false} return true } if !storagesAreEqual {return false} } if lhs.unknownFields != rhs.unknownFields {return false} return true } } extension Proto3ArenaUnittest_TestAllTypes.NestedEnum: SwiftProtobuf._ProtoNameProviding { static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ -1: .same(proto: "NEG"), 0: .same(proto: "ZERO"), 1: .same(proto: "FOO"), 2: .same(proto: "BAR"), 3: .same(proto: "BAZ"), ] } extension Proto3ArenaUnittest_TestAllTypes.NestedMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { static let protoMessageName: String = Proto3ArenaUnittest_TestAllTypes.protoMessageName + ".NestedMessage" static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "bb"), ] mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { switch fieldNumber { case 1: try decoder.decodeSingularInt32Field(value: &self.bb) default: break } } } func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { if self.bb != 0 { try visitor.visitSingularInt32Field(value: self.bb, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } static func ==(lhs: Proto3ArenaUnittest_TestAllTypes.NestedMessage, rhs: Proto3ArenaUnittest_TestAllTypes.NestedMessage) -> Bool { if lhs.bb != rhs.bb {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } extension Proto3ArenaUnittest_TestPackedTypes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { static let protoMessageName: String = _protobuf_package + ".TestPackedTypes" static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 90: .standard(proto: "packed_int32"), 91: .standard(proto: "packed_int64"), 92: .standard(proto: "packed_uint32"), 93: .standard(proto: "packed_uint64"), 94: .standard(proto: "packed_sint32"), 95: .standard(proto: "packed_sint64"), 96: .standard(proto: "packed_fixed32"), 97: .standard(proto: "packed_fixed64"), 98: .standard(proto: "packed_sfixed32"), 99: .standard(proto: "packed_sfixed64"), 100: .standard(proto: "packed_float"), 101: .standard(proto: "packed_double"), 102: .standard(proto: "packed_bool"), 103: .standard(proto: "packed_enum"), ] mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { switch fieldNumber { case 90: try decoder.decodeRepeatedInt32Field(value: &self.packedInt32) case 91: try decoder.decodeRepeatedInt64Field(value: &self.packedInt64) case 92: try decoder.decodeRepeatedUInt32Field(value: &self.packedUint32) case 93: try decoder.decodeRepeatedUInt64Field(value: &self.packedUint64) case 94: try decoder.decodeRepeatedSInt32Field(value: &self.packedSint32) case 95: try decoder.decodeRepeatedSInt64Field(value: &self.packedSint64) case 96: try decoder.decodeRepeatedFixed32Field(value: &self.packedFixed32) case 97: try decoder.decodeRepeatedFixed64Field(value: &self.packedFixed64) case 98: try decoder.decodeRepeatedSFixed32Field(value: &self.packedSfixed32) case 99: try decoder.decodeRepeatedSFixed64Field(value: &self.packedSfixed64) case 100: try decoder.decodeRepeatedFloatField(value: &self.packedFloat) case 101: try decoder.decodeRepeatedDoubleField(value: &self.packedDouble) case 102: try decoder.decodeRepeatedBoolField(value: &self.packedBool) case 103: try decoder.decodeRepeatedEnumField(value: &self.packedEnum) default: break } } } func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { if !self.packedInt32.isEmpty { try visitor.visitPackedInt32Field(value: self.packedInt32, fieldNumber: 90) } if !self.packedInt64.isEmpty { try visitor.visitPackedInt64Field(value: self.packedInt64, fieldNumber: 91) } if !self.packedUint32.isEmpty { try visitor.visitPackedUInt32Field(value: self.packedUint32, fieldNumber: 92) } if !self.packedUint64.isEmpty { try visitor.visitPackedUInt64Field(value: self.packedUint64, fieldNumber: 93) } if !self.packedSint32.isEmpty { try visitor.visitPackedSInt32Field(value: self.packedSint32, fieldNumber: 94) } if !self.packedSint64.isEmpty { try visitor.visitPackedSInt64Field(value: self.packedSint64, fieldNumber: 95) } if !self.packedFixed32.isEmpty { try visitor.visitPackedFixed32Field(value: self.packedFixed32, fieldNumber: 96) } if !self.packedFixed64.isEmpty { try visitor.visitPackedFixed64Field(value: self.packedFixed64, fieldNumber: 97) } if !self.packedSfixed32.isEmpty { try visitor.visitPackedSFixed32Field(value: self.packedSfixed32, fieldNumber: 98) } if !self.packedSfixed64.isEmpty { try visitor.visitPackedSFixed64Field(value: self.packedSfixed64, fieldNumber: 99) } if !self.packedFloat.isEmpty { try visitor.visitPackedFloatField(value: self.packedFloat, fieldNumber: 100) } if !self.packedDouble.isEmpty { try visitor.visitPackedDoubleField(value: self.packedDouble, fieldNumber: 101) } if !self.packedBool.isEmpty { try visitor.visitPackedBoolField(value: self.packedBool, fieldNumber: 102) } if !self.packedEnum.isEmpty { try visitor.visitPackedEnumField(value: self.packedEnum, fieldNumber: 103) } try unknownFields.traverse(visitor: &visitor) } static func ==(lhs: Proto3ArenaUnittest_TestPackedTypes, rhs: Proto3ArenaUnittest_TestPackedTypes) -> Bool { if lhs.packedInt32 != rhs.packedInt32 {return false} if lhs.packedInt64 != rhs.packedInt64 {return false} if lhs.packedUint32 != rhs.packedUint32 {return false} if lhs.packedUint64 != rhs.packedUint64 {return false} if lhs.packedSint32 != rhs.packedSint32 {return false} if lhs.packedSint64 != rhs.packedSint64 {return false} if lhs.packedFixed32 != rhs.packedFixed32 {return false} if lhs.packedFixed64 != rhs.packedFixed64 {return false} if lhs.packedSfixed32 != rhs.packedSfixed32 {return false} if lhs.packedSfixed64 != rhs.packedSfixed64 {return false} if lhs.packedFloat != rhs.packedFloat {return false} if lhs.packedDouble != rhs.packedDouble {return false} if lhs.packedBool != rhs.packedBool {return false} if lhs.packedEnum != rhs.packedEnum {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } extension Proto3ArenaUnittest_TestUnpackedTypes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { static let protoMessageName: String = _protobuf_package + ".TestUnpackedTypes" static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .standard(proto: "repeated_int32"), 2: .standard(proto: "repeated_int64"), 3: .standard(proto: "repeated_uint32"), 4: .standard(proto: "repeated_uint64"), 5: .standard(proto: "repeated_sint32"), 6: .standard(proto: "repeated_sint64"), 7: .standard(proto: "repeated_fixed32"), 8: .standard(proto: "repeated_fixed64"), 9: .standard(proto: "repeated_sfixed32"), 10: .standard(proto: "repeated_sfixed64"), 11: .standard(proto: "repeated_float"), 12: .standard(proto: "repeated_double"), 13: .standard(proto: "repeated_bool"), 14: .standard(proto: "repeated_nested_enum"), ] mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { switch fieldNumber { case 1: try decoder.decodeRepeatedInt32Field(value: &self.repeatedInt32) case 2: try decoder.decodeRepeatedInt64Field(value: &self.repeatedInt64) case 3: try decoder.decodeRepeatedUInt32Field(value: &self.repeatedUint32) case 4: try decoder.decodeRepeatedUInt64Field(value: &self.repeatedUint64) case 5: try decoder.decodeRepeatedSInt32Field(value: &self.repeatedSint32) case 6: try decoder.decodeRepeatedSInt64Field(value: &self.repeatedSint64) case 7: try decoder.decodeRepeatedFixed32Field(value: &self.repeatedFixed32) case 8: try decoder.decodeRepeatedFixed64Field(value: &self.repeatedFixed64) case 9: try decoder.decodeRepeatedSFixed32Field(value: &self.repeatedSfixed32) case 10: try decoder.decodeRepeatedSFixed64Field(value: &self.repeatedSfixed64) case 11: try decoder.decodeRepeatedFloatField(value: &self.repeatedFloat) case 12: try decoder.decodeRepeatedDoubleField(value: &self.repeatedDouble) case 13: try decoder.decodeRepeatedBoolField(value: &self.repeatedBool) case 14: try decoder.decodeRepeatedEnumField(value: &self.repeatedNestedEnum) default: break } } } func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { if !self.repeatedInt32.isEmpty { try visitor.visitRepeatedInt32Field(value: self.repeatedInt32, fieldNumber: 1) } if !self.repeatedInt64.isEmpty { try visitor.visitRepeatedInt64Field(value: self.repeatedInt64, fieldNumber: 2) } if !self.repeatedUint32.isEmpty { try visitor.visitRepeatedUInt32Field(value: self.repeatedUint32, fieldNumber: 3) } if !self.repeatedUint64.isEmpty { try visitor.visitRepeatedUInt64Field(value: self.repeatedUint64, fieldNumber: 4) } if !self.repeatedSint32.isEmpty { try visitor.visitRepeatedSInt32Field(value: self.repeatedSint32, fieldNumber: 5) } if !self.repeatedSint64.isEmpty { try visitor.visitRepeatedSInt64Field(value: self.repeatedSint64, fieldNumber: 6) } if !self.repeatedFixed32.isEmpty { try visitor.visitRepeatedFixed32Field(value: self.repeatedFixed32, fieldNumber: 7) } if !self.repeatedFixed64.isEmpty { try visitor.visitRepeatedFixed64Field(value: self.repeatedFixed64, fieldNumber: 8) } if !self.repeatedSfixed32.isEmpty { try visitor.visitRepeatedSFixed32Field(value: self.repeatedSfixed32, fieldNumber: 9) } if !self.repeatedSfixed64.isEmpty { try visitor.visitRepeatedSFixed64Field(value: self.repeatedSfixed64, fieldNumber: 10) } if !self.repeatedFloat.isEmpty { try visitor.visitRepeatedFloatField(value: self.repeatedFloat, fieldNumber: 11) } if !self.repeatedDouble.isEmpty { try visitor.visitRepeatedDoubleField(value: self.repeatedDouble, fieldNumber: 12) } if !self.repeatedBool.isEmpty { try visitor.visitRepeatedBoolField(value: self.repeatedBool, fieldNumber: 13) } if !self.repeatedNestedEnum.isEmpty { try visitor.visitRepeatedEnumField(value: self.repeatedNestedEnum, fieldNumber: 14) } try unknownFields.traverse(visitor: &visitor) } static func ==(lhs: Proto3ArenaUnittest_TestUnpackedTypes, rhs: Proto3ArenaUnittest_TestUnpackedTypes) -> Bool { if lhs.repeatedInt32 != rhs.repeatedInt32 {return false} if lhs.repeatedInt64 != rhs.repeatedInt64 {return false} if lhs.repeatedUint32 != rhs.repeatedUint32 {return false} if lhs.repeatedUint64 != rhs.repeatedUint64 {return false} if lhs.repeatedSint32 != rhs.repeatedSint32 {return false} if lhs.repeatedSint64 != rhs.repeatedSint64 {return false} if lhs.repeatedFixed32 != rhs.repeatedFixed32 {return false} if lhs.repeatedFixed64 != rhs.repeatedFixed64 {return false} if lhs.repeatedSfixed32 != rhs.repeatedSfixed32 {return false} if lhs.repeatedSfixed64 != rhs.repeatedSfixed64 {return false} if lhs.repeatedFloat != rhs.repeatedFloat {return false} if lhs.repeatedDouble != rhs.repeatedDouble {return false} if lhs.repeatedBool != rhs.repeatedBool {return false} if lhs.repeatedNestedEnum != rhs.repeatedNestedEnum {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } extension Proto3ArenaUnittest_NestedTestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { static let protoMessageName: String = _protobuf_package + ".NestedTestAllTypes" static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "child"), 2: .same(proto: "payload"), 3: .standard(proto: "repeated_child"), ] fileprivate class _StorageClass { var _child: Proto3ArenaUnittest_NestedTestAllTypes? = nil var _payload: Proto3ArenaUnittest_TestAllTypes? = nil var _repeatedChild: [Proto3ArenaUnittest_NestedTestAllTypes] = [] static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { _child = source._child _payload = source._payload _repeatedChild = source._repeatedChild } } fileprivate mutating func _uniqueStorage() -> _StorageClass { if !isKnownUniquelyReferenced(&_storage) { _storage = _StorageClass(copying: _storage) } return _storage } mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { _ = _uniqueStorage() try withExtendedLifetime(_storage) { (_storage: _StorageClass) in while let fieldNumber = try decoder.nextFieldNumber() { switch fieldNumber { case 1: try decoder.decodeSingularMessageField(value: &_storage._child) case 2: try decoder.decodeSingularMessageField(value: &_storage._payload) case 3: try decoder.decodeRepeatedMessageField(value: &_storage._repeatedChild) default: break } } } } func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { try withExtendedLifetime(_storage) { (_storage: _StorageClass) in if let v = _storage._child { try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } if let v = _storage._payload { try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } if !_storage._repeatedChild.isEmpty { try visitor.visitRepeatedMessageField(value: _storage._repeatedChild, fieldNumber: 3) } } try unknownFields.traverse(visitor: &visitor) } static func ==(lhs: Proto3ArenaUnittest_NestedTestAllTypes, rhs: Proto3ArenaUnittest_NestedTestAllTypes) -> Bool { if lhs._storage !== rhs._storage { let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in let _storage = _args.0 let rhs_storage = _args.1 if _storage._child != rhs_storage._child {return false} if _storage._payload != rhs_storage._payload {return false} if _storage._repeatedChild != rhs_storage._repeatedChild {return false} return true } if !storagesAreEqual {return false} } if lhs.unknownFields != rhs.unknownFields {return false} return true } } extension Proto3ArenaUnittest_ForeignMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { static let protoMessageName: String = _protobuf_package + ".ForeignMessage" static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "c"), ] mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { switch fieldNumber { case 1: try decoder.decodeSingularInt32Field(value: &self.c) default: break } } } func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { if self.c != 0 { try visitor.visitSingularInt32Field(value: self.c, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } static func ==(lhs: Proto3ArenaUnittest_ForeignMessage, rhs: Proto3ArenaUnittest_ForeignMessage) -> Bool { if lhs.c != rhs.c {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } extension Proto3ArenaUnittest_TestEmptyMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { static let protoMessageName: String = _protobuf_package + ".TestEmptyMessage" static let _protobuf_nameMap = SwiftProtobuf._NameMap() mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { while let _ = try decoder.nextFieldNumber() { } } func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { try unknownFields.traverse(visitor: &visitor) } static func ==(lhs: Proto3ArenaUnittest_TestEmptyMessage, rhs: Proto3ArenaUnittest_TestEmptyMessage) -> Bool { if lhs.unknownFields != rhs.unknownFields {return false} return true } }
{ "pile_set_name": "Github" }
/* Copyright 2018 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. */ // +k8s:deepcopy-gen=package // +k8s:protobuf-gen=package // +k8s:openapi-gen=true // +groupName=coordination.k8s.io package v1 // import "k8s.io/api/coordination/v1"
{ "pile_set_name": "Github" }
/** * 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. */ /** * */ package org.activiti.designer.validation.bpmn20.bundle; /** * Plugin constants for the org.activiti.designer.validation.bpmn20 bundle. * * @author Tiese Barrell * @version 1 * @since 5.6 * */ public final class PluginConstants { public static final String VALIDATOR_ID = "com.atosorigin.esuite.editor.process.validation.ESuiteProcessValidator"; public static final String VALIDATOR_NAME = "E-Suite Process Validator"; public static final String FORMAT_NAME = "E-Suite ZaakType jPDL"; public static final String MARKER_MESSAGE_PATTERN = "[%s] %s"; public static final int WORK_CLEAR_MARKERS = 5; public static final int WORK_EXTRACT_CONSTRUCTS = 20; public static final int WORK_USER_TASK = 10; public static final int WORK_SCRIPT_TASK = 10; public static final int WORK_SERVICE_TASK = 10; public static final int WORK_SEQUENCE_FLOW = 10; public static final int WORK_SUB_PROCESS = 10; public static final int WORK_TOTAL = WORK_CLEAR_MARKERS + WORK_EXTRACT_CONSTRUCTS + WORK_USER_TASK + WORK_SCRIPT_TASK + WORK_SERVICE_TASK + WORK_SEQUENCE_FLOW + WORK_SUB_PROCESS; }
{ "pile_set_name": "Github" }
; ; Definition file of CRYPTCATSVC.dll ; Automatic generated by gendef ; written by Kai Tietz 2008-2014 ; LIBRARY "CRYPTCATSVC.dll" EXPORTS CryptsvcDllCtrl
{ "pile_set_name": "Github" }
/* * Copyright (C) 2014 Saravan Pantham * * 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. */ package com.psaravan.filebrowserview.lib.AsyncTasks; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.os.AsyncTask; import android.widget.Toast; import com.psaravan.filebrowserview.lib.Interfaces.MoveInterface; import com.psaravan.filebrowserview.lib.R; import org.apache.commons.io.FileUtils; import java.io.File; /** * AsyncTask that moves the specified file/folder recursively to a new location. * * @author Saravan Pantham */ public class AsyncMoveTask extends AsyncTask<String, Void, Boolean> { private Context mContext; private ProgressDialog pd; private File mSourceFile; private File mDestDirFile; private boolean mShowProgress = true; private MoveInterface mMoveInterface; public AsyncMoveTask(Context context, File source, File destDir, boolean showProgress) { mContext = context; mSourceFile = source; mShowProgress = showProgress; mDestDirFile = destDir; } @Override protected void onPreExecute() { if (mSourceFile==null) return; //Skip the rest of this method if the user doesn't want a progress dialog. if (!mShowProgress) return; pd = new ProgressDialog(mContext); pd.setCancelable(false); pd.setIndeterminate(false); pd.setTitle(R.string.move); pd.setMessage(mContext.getResources().getString(R.string.moving) + " " + mSourceFile.getName()); pd.setButton(DialogInterface.BUTTON_NEUTRAL, mContext.getResources() .getString(R.string.run_in_background), new OnClickListener() { @Override public void onClick(DialogInterface arg0, int arg1) { pd.dismiss(); } }); pd.show(); if (mMoveInterface!=null) mMoveInterface.preMoveStartSync(); } @Override protected Boolean doInBackground(String... params) { if (mMoveInterface!=null) mMoveInterface.preMoveStartAsync(); if (mSourceFile==null || mDestDirFile==null) { if (mMoveInterface!=null) mMoveInterface.onMoveCompleteAsync(false); return false; } if (mSourceFile.isDirectory()) { try { FileUtils.moveDirectory(mSourceFile, mDestDirFile); } catch (Exception e) { if (mMoveInterface!=null) mMoveInterface.onMoveCompleteAsync(false); return false; } } else { try { FileUtils.moveFile(mSourceFile, mDestDirFile); } catch (Exception e) { if (mMoveInterface!=null) mMoveInterface.onMoveCompleteAsync(false); return false; } } if (mMoveInterface!=null) mMoveInterface.onMoveCompleteAsync(true); return true; } @Override protected void onPostExecute(Boolean result) { super.onPostExecute(result); if (mMoveInterface!=null) mMoveInterface.onMoveCompleteSync(result); if (pd!=null) pd.dismiss(); if (result==true) { String message = mSourceFile.getName() + " " + mContext.getResources().getString(R.string.moved); Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show(); } else { String message = mSourceFile.getName() + " " + mContext.getResources().getString(R.string.could_not_be_moved); Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show(); } } /** * @param moveInterface The move interface instance to attach to this * AsyncTask. */ public void setMoveInterface(MoveInterface moveInterface) { mMoveInterface = moveInterface; } }
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ drop dataverse test if exists; create dataverse test; use test; create type test.MyRecord as { id : bigint, point : point, kwds : string }; create external dataset MyData(MyRecord) using localfs((`path`=`asterix_nc1://data/spatial/spatialData.json`),(`format`=`adm`));
{ "pile_set_name": "Github" }
<!-- ~ Copyright 2019. Google LLC ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ https://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <LinearLayout 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:background="@color/bg_blue" android:orientation="vertical" android:padding="20dp" tools:context="com.google.android.apps.santatracker.dasherdancer.CharacterActivity" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:orientation="horizontal" > <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> <ImageButton android:id="@+id/btn_character_santa" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:adjustViewBounds="true" android:background="@drawable/dasher_ripple" android:onClick="onCharacterClick" android:scaleType="fitCenter" android:layout_gravity="bottom" android:src="@drawable/santa" /> <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:orientation="horizontal" > <ImageButton android:id="@+id/btn_character_elf" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:adjustViewBounds="true" android:background="@drawable/dasher_ripple" android:onClick="onCharacterClick" android:scaleType="fitCenter" android:layout_gravity="center" android:src="@drawable/elf" /> <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> <ImageButton android:id="@+id/btn_character_reindeer" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:adjustViewBounds="true" android:background="@drawable/dasher_ripple" android:onClick="onCharacterClick" android:scaleType="fitCenter" android:layout_gravity="center" android:src="@drawable/reindeer" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:orientation="horizontal" > <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> <ImageButton android:id="@+id/btn_character_snowman" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:adjustViewBounds="true" android:background="@drawable/dasher_ripple" android:onClick="onCharacterClick" android:scaleType="fitCenter" android:layout_gravity="top" android:src="@drawable/snowman" /> <View android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:visibility="invisible" /> </LinearLayout> </LinearLayout>
{ "pile_set_name": "Github" }
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from msrest.serialization import Model class StorageProfile(Model): """Storage Profile properties of a server. :param backup_retention_days: Backup retention days for the server. :type backup_retention_days: int :param geo_redundant_backup: Enable Geo-redundant or not for server backup. Possible values include: 'Enabled', 'Disabled' :type geo_redundant_backup: str or ~azure.mgmt.rdbms.mariadb.models.GeoRedundantBackup :param storage_mb: Max storage allowed for a server. :type storage_mb: int """ _attribute_map = { 'backup_retention_days': {'key': 'backupRetentionDays', 'type': 'int'}, 'geo_redundant_backup': {'key': 'geoRedundantBackup', 'type': 'str'}, 'storage_mb': {'key': 'storageMB', 'type': 'int'}, } def __init__(self, *, backup_retention_days: int=None, geo_redundant_backup=None, storage_mb: int=None, **kwargs) -> None: super(StorageProfile, self).__init__(**kwargs) self.backup_retention_days = backup_retention_days self.geo_redundant_backup = geo_redundant_backup self.storage_mb = storage_mb
{ "pile_set_name": "Github" }
// This file was generated by go generate; DO NOT EDIT package currency import "golang.org/x/text/internal/tag" // CLDRVersion is the CLDR version from which the tables in this package are derived. const CLDRVersion = "29" const ( xxx = 282 xts = 280 usd = 249 eur = 92 jpy = 131 gbp = 97 chf = 60 aud = 19 nzd = 190 cad = 57 sek = 217 nok = 188 dkk = 80 xag = 263 xau = 264 xpt = 277 xpd = 275 brl = 46 cny = 66 inr = 123 rub = 208 hkd = 112 idr = 118 krw = 139 mxn = 176 pln = 199 sar = 211 thb = 232 try = 241 twd = 243 zar = 290 ) // currency holds an alphabetically sorted list of canonical 3-letter currency // identifiers. Each identifier is followed by a byte of type currencyInfo, // defined in gen_common.go. var currency tag.Index = "" + // Size: 1196 bytes "\x00\x00\x00\x00ADP\x09AED\x00AFA\x00AFN\x09ALK\x00ALL\x09AMD\x09ANG\x00" + "AOA\x00AOK\x00AON\x00AOR\x00ARA\x00ARL\x00ARM\x00ARP\x00ARS\x00ATS\x00AU" + "D\x00AWG\x00AZM\x00AZN\x00BAD\x00BAM\x00BAN\x00BBD\x00BDT\x00BEC\x00BEF" + "\x00BEL\x00BGL\x00BGM\x00BGN\x00BGO\x00BHD\x1bBIF\x09BMD\x00BND\x00BOB" + "\x00BOL\x00BOP\x00BOV\x00BRB\x00BRC\x00BRE\x00BRL\x00BRN\x00BRR\x00BRZ" + "\x00BSD\x00BTN\x00BUK\x00BWP\x00BYB\x00BYR\x09BZD\x00CAD(CDF\x00CHE\x00C" + "HF(CHW\x00CLE\x00CLF$CLP\x09CNX\x00CNY\x00COP\x09COU\x00CRC\x09CSD\x00CS" + "K\x00CUC\x00CUP\x00CVE\x00CYP\x00CZK\x08DDM\x00DEM\x00DJF\x09DKK\x00DOP" + "\x00DZD\x00ECS\x00ECV\x00EEK\x00EGP\x00ERN\x00ESA\x00ESB\x00ESP\x09ETB" + "\x00EUR\x00FIM\x00FJD\x00FKP\x00FRF\x00GBP\x00GEK\x00GEL\x00GHC\x00GHS" + "\x00GIP\x00GMD\x00GNF\x09GNS\x00GQE\x00GRD\x00GTQ\x00GWE\x00GWP\x00GYD" + "\x09HKD\x00HNL\x00HRD\x00HRK\x00HTG\x00HUF\x08IDR\x09IEP\x00ILP\x00ILR" + "\x00ILS\x00INR\x00IQD\x09IRR\x09ISJ\x00ISK\x09ITL\x09JMD\x00JOD\x1bJPY" + "\x09KES\x00KGS\x00KHR\x00KMF\x09KPW\x09KRH\x00KRO\x00KRW\x09KWD\x1bKYD" + "\x00KZT\x00LAK\x09LBP\x09LKR\x00LRD\x00LSL\x00LTL\x00LTT\x00LUC\x00LUF" + "\x09LUL\x00LVL\x00LVR\x00LYD\x1bMAD\x00MAF\x00MCF\x00MDC\x00MDL\x00MGA" + "\x09MGF\x09MKD\x00MKN\x00MLF\x00MMK\x09MNT\x09MOP\x00MRO\x09MTL\x00MTP" + "\x00MUR\x09MVP\x00MVR\x00MWK\x00MXN\x00MXP\x00MXV\x00MYR\x00MZE\x00MZM" + "\x00MZN\x00NAD\x00NGN\x00NIC\x00NIO\x00NLG\x00NOK\x00NPR\x00NZD\x00OMR" + "\x1bPAB\x00PEI\x00PEN\x00PES\x00PGK\x00PHP\x00PKR\x09PLN\x00PLZ\x00PTE" + "\x00PYG\x09QAR\x00RHD\x00ROL\x00RON\x00RSD\x09RUB\x00RUR\x00RWF\x09SAR" + "\x00SBD\x00SCR\x00SDD\x00SDG\x00SDP\x00SEK\x00SGD\x00SHP\x00SIT\x00SKK" + "\x00SLL\x09SOS\x09SRD\x00SRG\x00SSP\x00STD\x09SUR\x00SVC\x00SYP\x09SZL" + "\x00THB\x00TJR\x00TJS\x00TMM\x09TMT\x00TND\x1bTOP\x00TPE\x00TRL\x09TRY" + "\x00TTD\x00TWD\x08TZS\x09UAH\x00UAK\x00UGS\x00UGX\x09USD\x00USN\x00USS" + "\x00UYI\x09UYP\x00UYU\x00UZS\x09VEB\x00VEF\x00VND\x09VNN\x00VUV\x09WST" + "\x00XAF\x09XAG\x00XAU\x00XBA\x00XBB\x00XBC\x00XBD\x00XCD\x00XDR\x00XEU" + "\x00XFO\x00XFU\x00XOF\x09XPD\x00XPF\x09XPT\x00XRE\x00XSU\x00XTS\x00XUA" + "\x00XXX\x00YDD\x00YER\x09YUD\x00YUM\x00YUN\x00YUR\x00ZAL\x00ZAR\x00ZMK" + "\x09ZMW\x00ZRN\x00ZRZ\x00ZWD\x09ZWL\x00ZWR\x00\xff\xff\xff\xff" const numCurrencies = 297 type toCurrency struct { region uint16 code uint16 } var regionToCurrency = []toCurrency{ // 255 elements 0: {region: 0x4143, code: 0xdb}, 1: {region: 0x4144, code: 0x5c}, 2: {region: 0x4145, code: 0x2}, 3: {region: 0x4146, code: 0x4}, 4: {region: 0x4147, code: 0x10d}, 5: {region: 0x4149, code: 0x10d}, 6: {region: 0x414c, code: 0x6}, 7: {region: 0x414d, code: 0x7}, 8: {region: 0x414f, code: 0x9}, 9: {region: 0x4152, code: 0x11}, 10: {region: 0x4153, code: 0xf9}, 11: {region: 0x4154, code: 0x5c}, 12: {region: 0x4155, code: 0x13}, 13: {region: 0x4157, code: 0x14}, 14: {region: 0x4158, code: 0x5c}, 15: {region: 0x415a, code: 0x16}, 16: {region: 0x4241, code: 0x18}, 17: {region: 0x4242, code: 0x1a}, 18: {region: 0x4244, code: 0x1b}, 19: {region: 0x4245, code: 0x5c}, 20: {region: 0x4246, code: 0x112}, 21: {region: 0x4247, code: 0x21}, 22: {region: 0x4248, code: 0x23}, 23: {region: 0x4249, code: 0x24}, 24: {region: 0x424a, code: 0x112}, 25: {region: 0x424c, code: 0x5c}, 26: {region: 0x424d, code: 0x25}, 27: {region: 0x424e, code: 0x26}, 28: {region: 0x424f, code: 0x27}, 29: {region: 0x4251, code: 0xf9}, 30: {region: 0x4252, code: 0x2e}, 31: {region: 0x4253, code: 0x32}, 32: {region: 0x4254, code: 0x33}, 33: {region: 0x4256, code: 0xbc}, 34: {region: 0x4257, code: 0x35}, 35: {region: 0x4259, code: 0x37}, 36: {region: 0x425a, code: 0x38}, 37: {region: 0x4341, code: 0x39}, 38: {region: 0x4343, code: 0x13}, 39: {region: 0x4344, code: 0x3a}, 40: {region: 0x4346, code: 0x106}, 41: {region: 0x4347, code: 0x106}, 42: {region: 0x4348, code: 0x3c}, 43: {region: 0x4349, code: 0x112}, 44: {region: 0x434b, code: 0xbe}, 45: {region: 0x434c, code: 0x40}, 46: {region: 0x434d, code: 0x106}, 47: {region: 0x434e, code: 0x42}, 48: {region: 0x434f, code: 0x43}, 49: {region: 0x4352, code: 0x45}, 50: {region: 0x4355, code: 0x49}, 51: {region: 0x4356, code: 0x4a}, 52: {region: 0x4357, code: 0x8}, 53: {region: 0x4358, code: 0x13}, 54: {region: 0x4359, code: 0x5c}, 55: {region: 0x435a, code: 0x4c}, 56: {region: 0x4445, code: 0x5c}, 57: {region: 0x4447, code: 0xf9}, 58: {region: 0x444a, code: 0x4f}, 59: {region: 0x444b, code: 0x50}, 60: {region: 0x444d, code: 0x10d}, 61: {region: 0x444f, code: 0x51}, 62: {region: 0x445a, code: 0x52}, 63: {region: 0x4541, code: 0x5c}, 64: {region: 0x4543, code: 0xf9}, 65: {region: 0x4545, code: 0x5c}, 66: {region: 0x4547, code: 0x56}, 67: {region: 0x4548, code: 0x9c}, 68: {region: 0x4552, code: 0x57}, 69: {region: 0x4553, code: 0x5c}, 70: {region: 0x4554, code: 0x5b}, 71: {region: 0x4555, code: 0x5c}, 72: {region: 0x4649, code: 0x5c}, 73: {region: 0x464a, code: 0x5e}, 74: {region: 0x464b, code: 0x5f}, 75: {region: 0x464d, code: 0xf9}, 76: {region: 0x464f, code: 0x50}, 77: {region: 0x4652, code: 0x5c}, 78: {region: 0x4741, code: 0x106}, 79: {region: 0x4742, code: 0x61}, 80: {region: 0x4744, code: 0x10d}, 81: {region: 0x4745, code: 0x63}, 82: {region: 0x4746, code: 0x5c}, 83: {region: 0x4747, code: 0x61}, 84: {region: 0x4748, code: 0x65}, 85: {region: 0x4749, code: 0x66}, 86: {region: 0x474c, code: 0x50}, 87: {region: 0x474d, code: 0x67}, 88: {region: 0x474e, code: 0x68}, 89: {region: 0x4750, code: 0x5c}, 90: {region: 0x4751, code: 0x106}, 91: {region: 0x4752, code: 0x5c}, 92: {region: 0x4753, code: 0x61}, 93: {region: 0x4754, code: 0x6c}, 94: {region: 0x4755, code: 0xf9}, 95: {region: 0x4757, code: 0x112}, 96: {region: 0x4759, code: 0x6f}, 97: {region: 0x484b, code: 0x70}, 98: {region: 0x484d, code: 0x13}, 99: {region: 0x484e, code: 0x71}, 100: {region: 0x4852, code: 0x73}, 101: {region: 0x4854, code: 0x74}, 102: {region: 0x4855, code: 0x75}, 103: {region: 0x4943, code: 0x5c}, 104: {region: 0x4944, code: 0x76}, 105: {region: 0x4945, code: 0x5c}, 106: {region: 0x494c, code: 0x7a}, 107: {region: 0x494d, code: 0x61}, 108: {region: 0x494e, code: 0x7b}, 109: {region: 0x494f, code: 0xf9}, 110: {region: 0x4951, code: 0x7c}, 111: {region: 0x4952, code: 0x7d}, 112: {region: 0x4953, code: 0x7f}, 113: {region: 0x4954, code: 0x5c}, 114: {region: 0x4a45, code: 0x61}, 115: {region: 0x4a4d, code: 0x81}, 116: {region: 0x4a4f, code: 0x82}, 117: {region: 0x4a50, code: 0x83}, 118: {region: 0x4b45, code: 0x84}, 119: {region: 0x4b47, code: 0x85}, 120: {region: 0x4b48, code: 0x86}, 121: {region: 0x4b49, code: 0x13}, 122: {region: 0x4b4d, code: 0x87}, 123: {region: 0x4b4e, code: 0x10d}, 124: {region: 0x4b50, code: 0x88}, 125: {region: 0x4b52, code: 0x8b}, 126: {region: 0x4b57, code: 0x8c}, 127: {region: 0x4b59, code: 0x8d}, 128: {region: 0x4b5a, code: 0x8e}, 129: {region: 0x4c41, code: 0x8f}, 130: {region: 0x4c42, code: 0x90}, 131: {region: 0x4c43, code: 0x10d}, 132: {region: 0x4c49, code: 0x3c}, 133: {region: 0x4c4b, code: 0x91}, 134: {region: 0x4c52, code: 0x92}, 135: {region: 0x4c53, code: 0x122}, 136: {region: 0x4c54, code: 0x5c}, 137: {region: 0x4c55, code: 0x5c}, 138: {region: 0x4c56, code: 0x5c}, 139: {region: 0x4c59, code: 0x9b}, 140: {region: 0x4d41, code: 0x9c}, 141: {region: 0x4d43, code: 0x5c}, 142: {region: 0x4d44, code: 0xa0}, 143: {region: 0x4d45, code: 0x5c}, 144: {region: 0x4d46, code: 0x5c}, 145: {region: 0x4d47, code: 0xa1}, 146: {region: 0x4d48, code: 0xf9}, 147: {region: 0x4d4b, code: 0xa3}, 148: {region: 0x4d4c, code: 0x112}, 149: {region: 0x4d4d, code: 0xa6}, 150: {region: 0x4d4e, code: 0xa7}, 151: {region: 0x4d4f, code: 0xa8}, 152: {region: 0x4d50, code: 0xf9}, 153: {region: 0x4d51, code: 0x5c}, 154: {region: 0x4d52, code: 0xa9}, 155: {region: 0x4d53, code: 0x10d}, 156: {region: 0x4d54, code: 0x5c}, 157: {region: 0x4d55, code: 0xac}, 158: {region: 0x4d56, code: 0xae}, 159: {region: 0x4d57, code: 0xaf}, 160: {region: 0x4d58, code: 0xb0}, 161: {region: 0x4d59, code: 0xb3}, 162: {region: 0x4d5a, code: 0xb6}, 163: {region: 0x4e41, code: 0xb7}, 164: {region: 0x4e43, code: 0x114}, 165: {region: 0x4e45, code: 0x112}, 166: {region: 0x4e46, code: 0x13}, 167: {region: 0x4e47, code: 0xb8}, 168: {region: 0x4e49, code: 0xba}, 169: {region: 0x4e4c, code: 0x5c}, 170: {region: 0x4e4f, code: 0xbc}, 171: {region: 0x4e50, code: 0xbd}, 172: {region: 0x4e52, code: 0x13}, 173: {region: 0x4e55, code: 0xbe}, 174: {region: 0x4e5a, code: 0xbe}, 175: {region: 0x4f4d, code: 0xbf}, 176: {region: 0x5041, code: 0xc0}, 177: {region: 0x5045, code: 0xc2}, 178: {region: 0x5046, code: 0x114}, 179: {region: 0x5047, code: 0xc4}, 180: {region: 0x5048, code: 0xc5}, 181: {region: 0x504b, code: 0xc6}, 182: {region: 0x504c, code: 0xc7}, 183: {region: 0x504d, code: 0x5c}, 184: {region: 0x504e, code: 0xbe}, 185: {region: 0x5052, code: 0xf9}, 186: {region: 0x5053, code: 0x7a}, 187: {region: 0x5054, code: 0x5c}, 188: {region: 0x5057, code: 0xf9}, 189: {region: 0x5059, code: 0xca}, 190: {region: 0x5141, code: 0xcb}, 191: {region: 0x5245, code: 0x5c}, 192: {region: 0x524f, code: 0xce}, 193: {region: 0x5253, code: 0xcf}, 194: {region: 0x5255, code: 0xd0}, 195: {region: 0x5257, code: 0xd2}, 196: {region: 0x5341, code: 0xd3}, 197: {region: 0x5342, code: 0xd4}, 198: {region: 0x5343, code: 0xd5}, 199: {region: 0x5344, code: 0xd7}, 200: {region: 0x5345, code: 0xd9}, 201: {region: 0x5347, code: 0xda}, 202: {region: 0x5348, code: 0xdb}, 203: {region: 0x5349, code: 0x5c}, 204: {region: 0x534a, code: 0xbc}, 205: {region: 0x534b, code: 0x5c}, 206: {region: 0x534c, code: 0xde}, 207: {region: 0x534d, code: 0x5c}, 208: {region: 0x534e, code: 0x112}, 209: {region: 0x534f, code: 0xdf}, 210: {region: 0x5352, code: 0xe0}, 211: {region: 0x5353, code: 0xe2}, 212: {region: 0x5354, code: 0xe3}, 213: {region: 0x5356, code: 0xf9}, 214: {region: 0x5358, code: 0x8}, 215: {region: 0x5359, code: 0xe6}, 216: {region: 0x535a, code: 0xe7}, 217: {region: 0x5441, code: 0x61}, 218: {region: 0x5443, code: 0xf9}, 219: {region: 0x5444, code: 0x106}, 220: {region: 0x5446, code: 0x5c}, 221: {region: 0x5447, code: 0x112}, 222: {region: 0x5448, code: 0xe8}, 223: {region: 0x544a, code: 0xea}, 224: {region: 0x544b, code: 0xbe}, 225: {region: 0x544c, code: 0xf9}, 226: {region: 0x544d, code: 0xec}, 227: {region: 0x544e, code: 0xed}, 228: {region: 0x544f, code: 0xee}, 229: {region: 0x5452, code: 0xf1}, 230: {region: 0x5454, code: 0xf2}, 231: {region: 0x5456, code: 0x13}, 232: {region: 0x5457, code: 0xf3}, 233: {region: 0x545a, code: 0xf4}, 234: {region: 0x5541, code: 0xf5}, 235: {region: 0x5547, code: 0xf8}, 236: {region: 0x554d, code: 0xf9}, 237: {region: 0x5553, code: 0xf9}, 238: {region: 0x5559, code: 0xfe}, 239: {region: 0x555a, code: 0xff}, 240: {region: 0x5641, code: 0x5c}, 241: {region: 0x5643, code: 0x10d}, 242: {region: 0x5645, code: 0x101}, 243: {region: 0x5647, code: 0xf9}, 244: {region: 0x5649, code: 0xf9}, 245: {region: 0x564e, code: 0x102}, 246: {region: 0x5655, code: 0x104}, 247: {region: 0x5746, code: 0x114}, 248: {region: 0x5753, code: 0x105}, 249: {region: 0x584b, code: 0x5c}, 250: {region: 0x5945, code: 0x11c}, 251: {region: 0x5954, code: 0x5c}, 252: {region: 0x5a41, code: 0x122}, 253: {region: 0x5a4d, code: 0x124}, 254: {region: 0x5a57, code: 0xf9}, } // Size: 1044 bytes type regionInfo struct { region uint16 code uint16 from uint32 to uint32 } var regionData = []regionInfo{ // 492 elements 0: {region: 0x4143, code: 0xdb, from: 0xf7021, to: 0x0}, 1: {region: 0x4144, code: 0x5c, from: 0xf9e21, to: 0x0}, 2: {region: 0x4144, code: 0x5a, from: 0xea221, to: 0xfa45c}, 3: {region: 0x4144, code: 0x60, from: 0xf5021, to: 0xfa451}, 4: {region: 0x4144, code: 0x1, from: 0xf2021, to: 0xfa39f}, 5: {region: 0x4145, code: 0x2, from: 0xf6ab3, to: 0x0}, 6: {region: 0x4146, code: 0x4, from: 0xfa547, to: 0x0}, 7: {region: 0x4146, code: 0x3, from: 0xf0e6e, to: 0xfa59f}, 8: {region: 0x4147, code: 0x10d, from: 0xf5b46, to: 0x0}, 9: {region: 0x4149, code: 0x10d, from: 0xf5b46, to: 0x0}, 10: {region: 0x414c, code: 0x6, from: 0xf5b10, to: 0x0}, 11: {region: 0x414c, code: 0x5, from: 0xf3561, to: 0xf5b10}, 12: {region: 0x414d, code: 0x7, from: 0xf9376, to: 0x0}, 13: {region: 0x414d, code: 0xd1, from: 0xf8f99, to: 0xf9376}, 14: {region: 0x414d, code: 0xe4, from: 0xf5221, to: 0xf8f99}, 15: {region: 0x414f, code: 0x9, from: 0xf9f8d, to: 0x0}, 16: {region: 0x414f, code: 0xc, from: 0xf96e1, to: 0xfa041}, 17: {region: 0x414f, code: 0xb, from: 0xf8d39, to: 0xfa041}, 18: {region: 0x414f, code: 0xa, from: 0xf7228, to: 0xf8e61}, 19: {region: 0x4151, code: 0x811a, from: 0x0, to: 0x0}, 20: {region: 0x4152, code: 0x11, from: 0xf9021, to: 0x0}, 21: {region: 0x4152, code: 0xd, from: 0xf82ce, to: 0xf9021}, 22: {region: 0x4152, code: 0x10, from: 0xf7ec1, to: 0xf82ce}, 23: {region: 0x4152, code: 0xe, from: 0xf6421, to: 0xf7ec1}, 24: {region: 0x4152, code: 0xf, from: 0xeb365, to: 0xf6421}, 25: {region: 0x4153, code: 0xf9, from: 0xee0f0, to: 0x0}, 26: {region: 0x4154, code: 0x5c, from: 0xf9e21, to: 0x0}, 27: {region: 0x4154, code: 0x12, from: 0xf3784, to: 0xfa45c}, 28: {region: 0x4155, code: 0x13, from: 0xf5c4e, to: 0x0}, 29: {region: 0x4157, code: 0x14, from: 0xf8421, to: 0x0}, 30: {region: 0x4157, code: 0x8, from: 0xf28aa, to: 0xf8421}, 31: {region: 0x4158, code: 0x5c, from: 0xf9e21, to: 0x0}, 32: {region: 0x415a, code: 0x16, from: 0xfac21, to: 0x0}, 33: {region: 0x415a, code: 0x15, from: 0xf9376, to: 0xfad9f}, 34: {region: 0x415a, code: 0xd1, from: 0xf8f99, to: 0xf9421}, 35: {region: 0x415a, code: 0xe4, from: 0xf5221, to: 0xf8f99}, 36: {region: 0x4241, code: 0x18, from: 0xf9621, to: 0x0}, 37: {region: 0x4241, code: 0x19, from: 0xf950f, to: 0xf9ae1}, 38: {region: 0x4241, code: 0x17, from: 0xf90e1, to: 0xf950f}, 39: {region: 0x4241, code: 0x120, from: 0xf90e1, to: 0xf9341}, 40: {region: 0x4241, code: 0x11f, from: 0xf8c21, to: 0xf90e1}, 41: {region: 0x4241, code: 0x11d, from: 0xf5c21, to: 0xf8c21}, 42: {region: 0x4242, code: 0x1a, from: 0xf6b83, to: 0x0}, 43: {region: 0x4242, code: 0x10d, from: 0xf5b46, to: 0xf6b83}, 44: {region: 0x4244, code: 0x1b, from: 0xf6821, to: 0x0}, 45: {region: 0x4244, code: 0xc6, from: 0xf3881, to: 0xf6821}, 46: {region: 0x4244, code: 0x7b, from: 0xe5711, to: 0xf3881}, 47: {region: 0x4245, code: 0x5c, from: 0xf9e21, to: 0x0}, 48: {region: 0x4245, code: 0x1d, from: 0xe4e47, to: 0xfa45c}, 49: {region: 0x4245, code: 0xbb, from: 0xe318f, to: 0xe4e47}, 50: {region: 0x4245, code: 0x801e, from: 0xf6421, to: 0xf8c65}, 51: {region: 0x4245, code: 0x801c, from: 0xf6421, to: 0xf8c65}, 52: {region: 0x4246, code: 0x112, from: 0xf8104, to: 0x0}, 53: {region: 0x4247, code: 0x21, from: 0xf9ee5, to: 0x0}, 54: {region: 0x4247, code: 0x1f, from: 0xf5421, to: 0xf9ee5}, 55: {region: 0x4247, code: 0x20, from: 0xf40ac, to: 0xf5421}, 56: {region: 0x4247, code: 0x22, from: 0xeaee8, to: 0xf40ac}, 57: {region: 0x4248, code: 0x23, from: 0xf5b50, to: 0x0}, 58: {region: 0x4249, code: 0x24, from: 0xf58b3, to: 0x0}, 59: {region: 0x424a, code: 0x112, from: 0xf6f7e, to: 0x0}, 60: {region: 0x424c, code: 0x5c, from: 0xf9e21, to: 0x0}, 61: {region: 0x424c, code: 0x60, from: 0xf5021, to: 0xfa451}, 62: {region: 0x424d, code: 0x25, from: 0xf6446, to: 0x0}, 63: {region: 0x424e, code: 0x26, from: 0xf5ecc, to: 0x0}, 64: {region: 0x424e, code: 0xb3, from: 0xf5730, to: 0xf5ecc}, 65: {region: 0x424f, code: 0x27, from: 0xf8621, to: 0x0}, 66: {region: 0x424f, code: 0x29, from: 0xf5621, to: 0xf859f}, 67: {region: 0x424f, code: 0x28, from: 0xe8ed7, to: 0xf5621}, 68: {region: 0x424f, code: 0x802a, from: 0x0, to: 0x0}, 69: {region: 0x4251, code: 0xf9, from: 0xfb621, to: 0x0}, 70: {region: 0x4251, code: 0x8, from: 0xfb54a, to: 0xfb621}, 71: {region: 0x4252, code: 0x2e, from: 0xf94e1, to: 0x0}, 72: {region: 0x4252, code: 0x30, from: 0xf9301, to: 0xf94e1}, 73: {region: 0x4252, code: 0x2d, from: 0xf8c70, to: 0xf9301}, 74: {region: 0x4252, code: 0x2f, from: 0xf8a2f, to: 0xf8c70}, 75: {region: 0x4252, code: 0x2c, from: 0xf845c, to: 0xf8a2f}, 76: {region: 0x4252, code: 0x2b, from: 0xf5e4d, to: 0xf845c}, 77: {region: 0x4252, code: 0x31, from: 0xf2d61, to: 0xf5e4d}, 78: {region: 0x4253, code: 0x32, from: 0xf5cb9, to: 0x0}, 79: {region: 0x4254, code: 0x33, from: 0xf6c90, to: 0x0}, 80: {region: 0x4254, code: 0x7b, from: 0xee621, to: 0x0}, 81: {region: 0x4255, code: 0x34, from: 0xf40e1, to: 0xf8ad2}, 82: {region: 0x4256, code: 0xbc, from: 0xee2c7, to: 0x0}, 83: {region: 0x4257, code: 0x35, from: 0xf7117, to: 0x0}, 84: {region: 0x4257, code: 0x122, from: 0xf524e, to: 0xf7117}, 85: {region: 0x4259, code: 0x37, from: 0xfa021, to: 0x0}, 86: {region: 0x4259, code: 0x36, from: 0xf9501, to: 0xfa19f}, 87: {region: 0x4259, code: 0xd1, from: 0xf8f99, to: 0xf9568}, 88: {region: 0x4259, code: 0xe4, from: 0xf5221, to: 0xf8f99}, 89: {region: 0x425a, code: 0x38, from: 0xf6c21, to: 0x0}, 90: {region: 0x4341, code: 0x39, from: 0xe8421, to: 0x0}, 91: {region: 0x4343, code: 0x13, from: 0xf5c4e, to: 0x0}, 92: {region: 0x4344, code: 0x3a, from: 0xf9ce1, to: 0x0}, 93: {region: 0x4344, code: 0x125, from: 0xf9361, to: 0xf9ce1}, 94: {region: 0x4344, code: 0x126, from: 0xf675b, to: 0xf9361}, 95: {region: 0x4346, code: 0x106, from: 0xf9221, to: 0x0}, 96: {region: 0x4347, code: 0x106, from: 0xf9221, to: 0x0}, 97: {region: 0x4348, code: 0x3c, from: 0xe0e71, to: 0x0}, 98: {region: 0x4348, code: 0x803b, from: 0x0, to: 0x0}, 99: {region: 0x4348, code: 0x803d, from: 0x0, to: 0x0}, 100: {region: 0x4349, code: 0x112, from: 0xf4d84, to: 0x0}, 101: {region: 0x434b, code: 0xbe, from: 0xf5eea, to: 0x0}, 102: {region: 0x434c, code: 0x40, from: 0xf6f3d, to: 0x0}, 103: {region: 0x434c, code: 0x3e, from: 0xf5021, to: 0xf6f3d}, 104: {region: 0x434c, code: 0x803f, from: 0x0, to: 0x0}, 105: {region: 0x434d, code: 0x106, from: 0xf6a81, to: 0x0}, 106: {region: 0x434e, code: 0x42, from: 0xf4261, to: 0x0}, 107: {region: 0x434e, code: 0x8041, from: 0xf7621, to: 0xf9d9f}, 108: {region: 0x434f, code: 0x43, from: 0xee221, to: 0x0}, 109: {region: 0x434f, code: 0x8044, from: 0x0, to: 0x0}, 110: {region: 0x4350, code: 0x811a, from: 0x0, to: 0x0}, 111: {region: 0x4352, code: 0x45, from: 0xed15a, to: 0x0}, 112: {region: 0x4353, code: 0x46, from: 0xfa4af, to: 0xfacc3}, 113: {region: 0x4353, code: 0x5c, from: 0xfa644, to: 0xfacc3}, 114: {region: 0x4353, code: 0x11e, from: 0xf9438, to: 0xfa4af}, 115: {region: 0x4355, code: 0x49, from: 0xe8621, to: 0x0}, 116: {region: 0x4355, code: 0x48, from: 0xf9421, to: 0x0}, 117: {region: 0x4355, code: 0xf9, from: 0xed621, to: 0xf4e21}, 118: {region: 0x4356, code: 0x4a, from: 0xef421, to: 0x0}, 119: {region: 0x4356, code: 0xc9, from: 0xeeeb6, to: 0xf6ee5}, 120: {region: 0x4357, code: 0x8, from: 0xfb54a, to: 0x0}, 121: {region: 0x4358, code: 0x13, from: 0xf5c4e, to: 0x0}, 122: {region: 0x4359, code: 0x5c, from: 0xfb021, to: 0x0}, 123: {region: 0x4359, code: 0x4b, from: 0xef52a, to: 0xfb03f}, 124: {region: 0x435a, code: 0x4c, from: 0xf9221, to: 0x0}, 125: {region: 0x435a, code: 0x47, from: 0xf42c1, to: 0xf9261}, 126: {region: 0x4444, code: 0x4d, from: 0xf38f4, to: 0xf8d42}, 127: {region: 0x4445, code: 0x5c, from: 0xf9e21, to: 0x0}, 128: {region: 0x4445, code: 0x4e, from: 0xf38d4, to: 0xfa45c}, 129: {region: 0x4447, code: 0xf9, from: 0xf5b68, to: 0x0}, 130: {region: 0x444a, code: 0x4f, from: 0xf72db, to: 0x0}, 131: {region: 0x444b, code: 0x50, from: 0xea2bb, to: 0x0}, 132: {region: 0x444d, code: 0x10d, from: 0xf5b46, to: 0x0}, 133: {region: 0x444f, code: 0x51, from: 0xf3741, to: 0x0}, 134: {region: 0x444f, code: 0xf9, from: 0xee2d5, to: 0xf3741}, 135: {region: 0x445a, code: 0x52, from: 0xf5881, to: 0x0}, 136: {region: 0x4541, code: 0x5c, from: 0xf9e21, to: 0x0}, 137: {region: 0x4543, code: 0xf9, from: 0xfa142, to: 0x0}, 138: {region: 0x4543, code: 0x53, from: 0xeb881, to: 0xfa142}, 139: {region: 0x4543, code: 0x8054, from: 0xf92b7, to: 0xfa029}, 140: {region: 0x4545, code: 0x5c, from: 0xfb621, to: 0x0}, 141: {region: 0x4545, code: 0x55, from: 0xf90d5, to: 0xfb59f}, 142: {region: 0x4545, code: 0xe4, from: 0xf5221, to: 0xf90d4}, 143: {region: 0x4547, code: 0x56, from: 0xebb6e, to: 0x0}, 144: {region: 0x4548, code: 0x9c, from: 0xf705a, to: 0x0}, 145: {region: 0x4552, code: 0x57, from: 0xf9b68, to: 0x0}, 146: {region: 0x4552, code: 0x5b, from: 0xf92b8, to: 0xf9b68}, 147: {region: 0x4553, code: 0x5c, from: 0xf9e21, to: 0x0}, 148: {region: 0x4553, code: 0x5a, from: 0xe9953, to: 0xfa45c}, 149: {region: 0x4553, code: 0x8058, from: 0xf7421, to: 0xf7b9f}, 150: {region: 0x4553, code: 0x8059, from: 0xf6e21, to: 0xf959f}, 151: {region: 0x4554, code: 0x5b, from: 0xf712f, to: 0x0}, 152: {region: 0x4555, code: 0x5c, from: 0xf9e21, to: 0x0}, 153: {region: 0x4555, code: 0x810f, from: 0xf7621, to: 0xf9d9f}, 154: {region: 0x4649, code: 0x5c, from: 0xf9e21, to: 0x0}, 155: {region: 0x4649, code: 0x5d, from: 0xf5621, to: 0xfa45c}, 156: {region: 0x464a, code: 0x5e, from: 0xf622d, to: 0x0}, 157: {region: 0x464b, code: 0x5f, from: 0xeda21, to: 0x0}, 158: {region: 0x464d, code: 0xf9, from: 0xf3021, to: 0x0}, 159: {region: 0x464d, code: 0x83, from: 0xef543, to: 0xf3021}, 160: {region: 0x464f, code: 0x50, from: 0xf3821, to: 0x0}, 161: {region: 0x4652, code: 0x5c, from: 0xf9e21, to: 0x0}, 162: {region: 0x4652, code: 0x60, from: 0xf5021, to: 0xfa451}, 163: {region: 0x4741, code: 0x106, from: 0xf9221, to: 0x0}, 164: {region: 0x4742, code: 0x61, from: 0xd3cfb, to: 0x0}, 165: {region: 0x4744, code: 0x10d, from: 0xf5e5b, to: 0x0}, 166: {region: 0x4745, code: 0x63, from: 0xf9737, to: 0x0}, 167: {region: 0x4745, code: 0x62, from: 0xf9285, to: 0xf9739}, 168: {region: 0x4745, code: 0xd1, from: 0xf8f99, to: 0xf92cb}, 169: {region: 0x4745, code: 0xe4, from: 0xf5221, to: 0xf8f99}, 170: {region: 0x4746, code: 0x5c, from: 0xf9e21, to: 0x0}, 171: {region: 0x4746, code: 0x60, from: 0xf5021, to: 0xfa451}, 172: {region: 0x4747, code: 0x61, from: 0xe4c21, to: 0x0}, 173: {region: 0x4748, code: 0x65, from: 0xfaee3, to: 0x0}, 174: {region: 0x4748, code: 0x64, from: 0xf7669, to: 0xfaf9f}, 175: {region: 0x4749, code: 0x66, from: 0xd6221, to: 0x0}, 176: {region: 0x474c, code: 0x50, from: 0xea2bb, to: 0x0}, 177: {region: 0x474d, code: 0x67, from: 0xf66e1, to: 0x0}, 178: {region: 0x474e, code: 0x68, from: 0xf8426, to: 0x0}, 179: {region: 0x474e, code: 0x69, from: 0xf6942, to: 0xf8426}, 180: {region: 0x4750, code: 0x5c, from: 0xf9e21, to: 0x0}, 181: {region: 0x4750, code: 0x60, from: 0xf5021, to: 0xfa451}, 182: {region: 0x4751, code: 0x106, from: 0xf9221, to: 0x0}, 183: {region: 0x4751, code: 0x6a, from: 0xf6ee7, to: 0xf84c1}, 184: {region: 0x4752, code: 0x5c, from: 0xfa221, to: 0x0}, 185: {region: 0x4752, code: 0x6b, from: 0xf44a1, to: 0xfa45c}, 186: {region: 0x4753, code: 0x61, from: 0xee821, to: 0x0}, 187: {region: 0x4754, code: 0x6c, from: 0xf0abb, to: 0x0}, 188: {region: 0x4755, code: 0xf9, from: 0xf3115, to: 0x0}, 189: {region: 0x4757, code: 0x112, from: 0xf9a7f, to: 0x0}, 190: {region: 0x4757, code: 0x6e, from: 0xf705c, to: 0xf9a7f}, 191: {region: 0x4757, code: 0x6d, from: 0xef421, to: 0xf705c}, 192: {region: 0x4759, code: 0x6f, from: 0xf5cba, to: 0x0}, 193: {region: 0x484b, code: 0x70, from: 0xece42, to: 0x0}, 194: {region: 0x484d, code: 0x13, from: 0xf5e50, to: 0x0}, 195: {region: 0x484e, code: 0x71, from: 0xf0c83, to: 0x0}, 196: {region: 0x4852, code: 0x73, from: 0xf94be, to: 0x0}, 197: {region: 0x4852, code: 0x72, from: 0xf8f97, to: 0xf9621}, 198: {region: 0x4852, code: 0x11f, from: 0xf8c21, to: 0xf8f97}, 199: {region: 0x4852, code: 0x11d, from: 0xf5c21, to: 0xf8c21}, 200: {region: 0x4854, code: 0x74, from: 0xea11a, to: 0x0}, 201: {region: 0x4854, code: 0xf9, from: 0xef621, to: 0x0}, 202: {region: 0x4855, code: 0x75, from: 0xf34f7, to: 0x0}, 203: {region: 0x4943, code: 0x5c, from: 0xf9e21, to: 0x0}, 204: {region: 0x4944, code: 0x76, from: 0xf5b8d, to: 0x0}, 205: {region: 0x4945, code: 0x5c, from: 0xf9e21, to: 0x0}, 206: {region: 0x4945, code: 0x77, from: 0xf0421, to: 0xfa449}, 207: {region: 0x4945, code: 0x61, from: 0xe1021, to: 0xf0421}, 208: {region: 0x494c, code: 0x7a, from: 0xf8324, to: 0x0}, 209: {region: 0x494c, code: 0x79, from: 0xf7856, to: 0xf8324}, 210: {region: 0x494c, code: 0x78, from: 0xf3910, to: 0xf7856}, 211: {region: 0x494d, code: 0x61, from: 0xe6023, to: 0x0}, 212: {region: 0x494e, code: 0x7b, from: 0xe5711, to: 0x0}, 213: {region: 0x494f, code: 0xf9, from: 0xf5b68, to: 0x0}, 214: {region: 0x4951, code: 0x7c, from: 0xf1693, to: 0x0}, 215: {region: 0x4951, code: 0x56, from: 0xf016b, to: 0xf1693}, 216: {region: 0x4951, code: 0x7b, from: 0xf016b, to: 0xf1693}, 217: {region: 0x4952, code: 0x7d, from: 0xf18ad, to: 0x0}, 218: {region: 0x4953, code: 0x7f, from: 0xf7a21, to: 0x0}, 219: {region: 0x4953, code: 0x7e, from: 0xefd81, to: 0xf7a21}, 220: {region: 0x4953, code: 0x50, from: 0xea2bb, to: 0xefd81}, 221: {region: 0x4954, code: 0x5c, from: 0xf9e21, to: 0x0}, 222: {region: 0x4954, code: 0x80, from: 0xe8d18, to: 0xfa45c}, 223: {region: 0x4a45, code: 0x61, from: 0xe5a21, to: 0x0}, 224: {region: 0x4a4d, code: 0x81, from: 0xf6328, to: 0x0}, 225: {region: 0x4a4f, code: 0x82, from: 0xf3ce1, to: 0x0}, 226: {region: 0x4a50, code: 0x83, from: 0xe9ec1, to: 0x0}, 227: {region: 0x4b45, code: 0x84, from: 0xf5d2e, to: 0x0}, 228: {region: 0x4b47, code: 0x85, from: 0xf92aa, to: 0x0}, 229: {region: 0x4b47, code: 0xd1, from: 0xf8f99, to: 0xf92aa}, 230: {region: 0x4b47, code: 0xe4, from: 0xf5221, to: 0xf8f99}, 231: {region: 0x4b48, code: 0x86, from: 0xf7874, to: 0x0}, 232: {region: 0x4b49, code: 0x13, from: 0xf5c4e, to: 0x0}, 233: {region: 0x4b4d, code: 0x87, from: 0xf6ee6, to: 0x0}, 234: {region: 0x4b4e, code: 0x10d, from: 0xf5b46, to: 0x0}, 235: {region: 0x4b50, code: 0x88, from: 0xf4e91, to: 0x0}, 236: {region: 0x4b52, code: 0x8b, from: 0xf54ca, to: 0x0}, 237: {region: 0x4b52, code: 0x89, from: 0xf424f, to: 0xf54ca}, 238: {region: 0x4b52, code: 0x8a, from: 0xf330f, to: 0xf424f}, 239: {region: 0x4b57, code: 0x8c, from: 0xf5281, to: 0x0}, 240: {region: 0x4b59, code: 0x8d, from: 0xf6621, to: 0x0}, 241: {region: 0x4b59, code: 0x81, from: 0xf6328, to: 0xf6621}, 242: {region: 0x4b5a, code: 0x8e, from: 0xf9365, to: 0x0}, 243: {region: 0x4c41, code: 0x8f, from: 0xf778a, to: 0x0}, 244: {region: 0x4c42, code: 0x90, from: 0xf3842, to: 0x0}, 245: {region: 0x4c43, code: 0x10d, from: 0xf5b46, to: 0x0}, 246: {region: 0x4c49, code: 0x3c, from: 0xf0241, to: 0x0}, 247: {region: 0x4c4b, code: 0x91, from: 0xf74b6, to: 0x0}, 248: {region: 0x4c52, code: 0x92, from: 0xf3021, to: 0x0}, 249: {region: 0x4c53, code: 0x122, from: 0xf524e, to: 0x0}, 250: {region: 0x4c53, code: 0x93, from: 0xf7836, to: 0x0}, 251: {region: 0x4c54, code: 0x5c, from: 0xfbe21, to: 0x0}, 252: {region: 0x4c54, code: 0x94, from: 0xf92d9, to: 0xfbd9f}, 253: {region: 0x4c54, code: 0x95, from: 0xf9141, to: 0xf92d9}, 254: {region: 0x4c54, code: 0xe4, from: 0xf5221, to: 0xf9141}, 255: {region: 0x4c55, code: 0x5c, from: 0xf9e21, to: 0x0}, 256: {region: 0x4c55, code: 0x97, from: 0xf3124, to: 0xfa45c}, 257: {region: 0x4c55, code: 0x8096, from: 0xf6421, to: 0xf8c65}, 258: {region: 0x4c55, code: 0x8098, from: 0xf6421, to: 0xf8c65}, 259: {region: 0x4c56, code: 0x5c, from: 0xfbc21, to: 0x0}, 260: {region: 0x4c56, code: 0x99, from: 0xf92dc, to: 0xfbb9f}, 261: {region: 0x4c56, code: 0x9a, from: 0xf90a7, to: 0xf9351}, 262: {region: 0x4c56, code: 0xe4, from: 0xf5221, to: 0xf90f4}, 263: {region: 0x4c59, code: 0x9b, from: 0xf6721, to: 0x0}, 264: {region: 0x4d41, code: 0x9c, from: 0xf4f51, to: 0x0}, 265: {region: 0x4d41, code: 0x9d, from: 0xeb221, to: 0xf4f51}, 266: {region: 0x4d43, code: 0x5c, from: 0xf9e21, to: 0x0}, 267: {region: 0x4d43, code: 0x60, from: 0xf5021, to: 0xfa451}, 268: {region: 0x4d43, code: 0x9e, from: 0xf5021, to: 0xfa451}, 269: {region: 0x4d44, code: 0xa0, from: 0xf937d, to: 0x0}, 270: {region: 0x4d44, code: 0x9f, from: 0xf90c1, to: 0xf937d}, 271: {region: 0x4d45, code: 0x5c, from: 0xfa421, to: 0x0}, 272: {region: 0x4d45, code: 0x4e, from: 0xf9f42, to: 0xfa4af}, 273: {region: 0x4d45, code: 0x11e, from: 0xf9438, to: 0xfa4af}, 274: {region: 0x4d46, code: 0x5c, from: 0xf9e21, to: 0x0}, 275: {region: 0x4d46, code: 0x60, from: 0xf5021, to: 0xfa451}, 276: {region: 0x4d47, code: 0xa1, from: 0xf7f61, to: 0x0}, 277: {region: 0x4d47, code: 0xa2, from: 0xf56e1, to: 0xfa99f}, 278: {region: 0x4d48, code: 0xf9, from: 0xf3021, to: 0x0}, 279: {region: 0x4d4b, code: 0xa3, from: 0xf92b4, to: 0x0}, 280: {region: 0x4d4b, code: 0xa4, from: 0xf909a, to: 0xf92b4}, 281: {region: 0x4d4c, code: 0x112, from: 0xf80c1, to: 0x0}, 282: {region: 0x4d4c, code: 0xa5, from: 0xf54e2, to: 0xf811f}, 283: {region: 0x4d4c, code: 0x112, from: 0xf4d78, to: 0xf54e2}, 284: {region: 0x4d4d, code: 0xa6, from: 0xf8ad2, to: 0x0}, 285: {region: 0x4d4d, code: 0x34, from: 0xf40e1, to: 0xf8ad2}, 286: {region: 0x4d4e, code: 0xa7, from: 0xef661, to: 0x0}, 287: {region: 0x4d4f, code: 0xa8, from: 0xeda21, to: 0x0}, 288: {region: 0x4d50, code: 0xf9, from: 0xf3021, to: 0x0}, 289: {region: 0x4d51, code: 0x5c, from: 0xf9e21, to: 0x0}, 290: {region: 0x4d51, code: 0x60, from: 0xf5021, to: 0xfa451}, 291: {region: 0x4d52, code: 0xa9, from: 0xf6add, to: 0x0}, 292: {region: 0x4d52, code: 0x112, from: 0xf4d7c, to: 0xf6add}, 293: {region: 0x4d53, code: 0x10d, from: 0xf5e5b, to: 0x0}, 294: {region: 0x4d54, code: 0x5c, from: 0xfb021, to: 0x0}, 295: {region: 0x4d54, code: 0xaa, from: 0xf60c7, to: 0xfb03f}, 296: {region: 0x4d54, code: 0xab, from: 0xef50d, to: 0xf60c7}, 297: {region: 0x4d55, code: 0xac, from: 0xf1c81, to: 0x0}, 298: {region: 0x4d56, code: 0xae, from: 0xf7ae1, to: 0x0}, 299: {region: 0x4d57, code: 0xaf, from: 0xf664f, to: 0x0}, 300: {region: 0x4d58, code: 0xb0, from: 0xf9221, to: 0x0}, 301: {region: 0x4d58, code: 0xb1, from: 0xe3c21, to: 0xf919f}, 302: {region: 0x4d58, code: 0x80b2, from: 0x0, to: 0x0}, 303: {region: 0x4d59, code: 0xb3, from: 0xf5730, to: 0x0}, 304: {region: 0x4d5a, code: 0xb6, from: 0xface1, to: 0x0}, 305: {region: 0x4d5a, code: 0xb5, from: 0xf78d0, to: 0xfad9f}, 306: {region: 0x4d5a, code: 0xb4, from: 0xf6ed9, to: 0xf78d0}, 307: {region: 0x4e41, code: 0xb7, from: 0xf9221, to: 0x0}, 308: {region: 0x4e41, code: 0x122, from: 0xf524e, to: 0x0}, 309: {region: 0x4e43, code: 0x114, from: 0xf8221, to: 0x0}, 310: {region: 0x4e45, code: 0x112, from: 0xf4d93, to: 0x0}, 311: {region: 0x4e46, code: 0x13, from: 0xf5c4e, to: 0x0}, 312: {region: 0x4e47, code: 0xb8, from: 0xf6a21, to: 0x0}, 313: {region: 0x4e49, code: 0xba, from: 0xf8e9e, to: 0x0}, 314: {region: 0x4e49, code: 0xb9, from: 0xf884f, to: 0xf8e9e}, 315: {region: 0x4e4c, code: 0x5c, from: 0xf9e21, to: 0x0}, 316: {region: 0x4e4c, code: 0xbb, from: 0xe2a21, to: 0xfa45c}, 317: {region: 0x4e4f, code: 0xbc, from: 0xee2c7, to: 0x0}, 318: {region: 0x4e4f, code: 0xd9, from: 0xea2bb, to: 0xee2c7}, 319: {region: 0x4e50, code: 0xbd, from: 0xf1a21, to: 0x0}, 320: {region: 0x4e50, code: 0x7b, from: 0xe9c21, to: 0xf5d51}, 321: {region: 0x4e52, code: 0x13, from: 0xf5c4e, to: 0x0}, 322: {region: 0x4e55, code: 0xbe, from: 0xf5eea, to: 0x0}, 323: {region: 0x4e5a, code: 0xbe, from: 0xf5eea, to: 0x0}, 324: {region: 0x4f4d, code: 0xbf, from: 0xf696b, to: 0x0}, 325: {region: 0x5041, code: 0xc0, from: 0xedf64, to: 0x0}, 326: {region: 0x5041, code: 0xf9, from: 0xedf72, to: 0x0}, 327: {region: 0x5045, code: 0xc2, from: 0xf8ee1, to: 0x0}, 328: {region: 0x5045, code: 0xc1, from: 0xf8241, to: 0xf8ee1}, 329: {region: 0x5045, code: 0xc3, from: 0xe8e4e, to: 0xf8241}, 330: {region: 0x5046, code: 0x114, from: 0xf339a, to: 0x0}, 331: {region: 0x5047, code: 0xc4, from: 0xf6f30, to: 0x0}, 332: {region: 0x5047, code: 0x13, from: 0xf5c4e, to: 0xf6f30}, 333: {region: 0x5048, code: 0xc5, from: 0xf34e4, to: 0x0}, 334: {region: 0x504b, code: 0xc6, from: 0xf3881, to: 0x0}, 335: {region: 0x504b, code: 0x7b, from: 0xe5711, to: 0xf370f}, 336: {region: 0x504c, code: 0xc7, from: 0xf9621, to: 0x0}, 337: {region: 0x504c, code: 0xc8, from: 0xf3d5c, to: 0xf959f}, 338: {region: 0x504d, code: 0x5c, from: 0xf9e21, to: 0x0}, 339: {region: 0x504d, code: 0x60, from: 0xf6995, to: 0xfa451}, 340: {region: 0x504e, code: 0xbe, from: 0xf622d, to: 0x0}, 341: {region: 0x5052, code: 0xf9, from: 0xed58a, to: 0x0}, 342: {region: 0x5052, code: 0x5a, from: 0xe1021, to: 0xed58a}, 343: {region: 0x5053, code: 0x7a, from: 0xf8324, to: 0x0}, 344: {region: 0x5053, code: 0x82, from: 0xf984c, to: 0x0}, 345: {region: 0x5053, code: 0x78, from: 0xf5ec1, to: 0xf7856}, 346: {region: 0x5053, code: 0x82, from: 0xf3ce1, to: 0xf5ec1}, 347: {region: 0x5054, code: 0x5c, from: 0xf9e21, to: 0x0}, 348: {region: 0x5054, code: 0xc9, from: 0xeeeb6, to: 0xfa45c}, 349: {region: 0x5057, code: 0xf9, from: 0xf3021, to: 0x0}, 350: {region: 0x5059, code: 0xca, from: 0xf2f61, to: 0x0}, 351: {region: 0x5141, code: 0xcb, from: 0xf6ab3, to: 0x0}, 352: {region: 0x5245, code: 0x5c, from: 0xf9e21, to: 0x0}, 353: {region: 0x5245, code: 0x60, from: 0xf6e21, to: 0xfa451}, 354: {region: 0x524f, code: 0xce, from: 0xfaae1, to: 0x0}, 355: {region: 0x524f, code: 0xcd, from: 0xf403c, to: 0xfad9f}, 356: {region: 0x5253, code: 0xcf, from: 0xfad59, to: 0x0}, 357: {region: 0x5253, code: 0x46, from: 0xfa4af, to: 0xfad59}, 358: {region: 0x5253, code: 0x11e, from: 0xf9438, to: 0xfa4af}, 359: {region: 0x5255, code: 0xd0, from: 0xf9e21, to: 0x0}, 360: {region: 0x5255, code: 0xd1, from: 0xf8f99, to: 0xf9d9f}, 361: {region: 0x5257, code: 0xd2, from: 0xf58b3, to: 0x0}, 362: {region: 0x5341, code: 0xd3, from: 0xf4156, to: 0x0}, 363: {region: 0x5342, code: 0xd4, from: 0xf7358, to: 0x0}, 364: {region: 0x5342, code: 0x13, from: 0xf5c4e, to: 0xf74de}, 365: {region: 0x5343, code: 0xd5, from: 0xedf61, to: 0x0}, 366: {region: 0x5344, code: 0xd7, from: 0xfae2a, to: 0x0}, 367: {region: 0x5344, code: 0xd6, from: 0xf90c8, to: 0xfaede}, 368: {region: 0x5344, code: 0xd8, from: 0xf4a88, to: 0xf9cc1}, 369: {region: 0x5344, code: 0x56, from: 0xec233, to: 0xf4c21}, 370: {region: 0x5344, code: 0x61, from: 0xec233, to: 0xf4c21}, 371: {region: 0x5345, code: 0xd9, from: 0xea2bb, to: 0x0}, 372: {region: 0x5347, code: 0xda, from: 0xf5ecc, to: 0x0}, 373: {region: 0x5347, code: 0xb3, from: 0xf5730, to: 0xf5ecc}, 374: {region: 0x5348, code: 0xdb, from: 0xefa4f, to: 0x0}, 375: {region: 0x5349, code: 0x5c, from: 0xfae21, to: 0x0}, 376: {region: 0x5349, code: 0xdc, from: 0xf9147, to: 0xfae2e}, 377: {region: 0x534a, code: 0xbc, from: 0xee2c7, to: 0x0}, 378: {region: 0x534b, code: 0x5c, from: 0xfb221, to: 0x0}, 379: {region: 0x534b, code: 0xdd, from: 0xf919f, to: 0xfb221}, 380: {region: 0x534b, code: 0x47, from: 0xf42c1, to: 0xf919f}, 381: {region: 0x534c, code: 0xde, from: 0xf5904, to: 0x0}, 382: {region: 0x534c, code: 0x61, from: 0xe217e, to: 0xf5c44}, 383: {region: 0x534d, code: 0x5c, from: 0xf9e21, to: 0x0}, 384: {region: 0x534d, code: 0x80, from: 0xe9397, to: 0xfa25c}, 385: {region: 0x534e, code: 0x112, from: 0xf4e84, to: 0x0}, 386: {region: 0x534f, code: 0xdf, from: 0xf50e1, to: 0x0}, 387: {region: 0x5352, code: 0xe0, from: 0xfa821, to: 0x0}, 388: {region: 0x5352, code: 0xe1, from: 0xf28aa, to: 0xfa79f}, 389: {region: 0x5352, code: 0xbb, from: 0xe2f74, to: 0xf28aa}, 390: {region: 0x5353, code: 0xe2, from: 0xfb6f2, to: 0x0}, 391: {region: 0x5353, code: 0xd7, from: 0xfae2a, to: 0xfb721}, 392: {region: 0x5354, code: 0xe3, from: 0xf7328, to: 0x0}, 393: {region: 0x5355, code: 0xe4, from: 0xf5221, to: 0xf8f99}, 394: {region: 0x5356, code: 0xf9, from: 0xfa221, to: 0x0}, 395: {region: 0x5356, code: 0xe5, from: 0xeff6b, to: 0xfa221}, 396: {region: 0x5358, code: 0x8, from: 0xfb54a, to: 0x0}, 397: {region: 0x5359, code: 0xe6, from: 0xf3821, to: 0x0}, 398: {region: 0x535a, code: 0xe7, from: 0xf6d26, to: 0x0}, 399: {region: 0x5441, code: 0x61, from: 0xf242c, to: 0x0}, 400: {region: 0x5443, code: 0xf9, from: 0xf6328, to: 0x0}, 401: {region: 0x5444, code: 0x106, from: 0xf9221, to: 0x0}, 402: {region: 0x5446, code: 0x5c, from: 0xf9e21, to: 0x0}, 403: {region: 0x5446, code: 0x60, from: 0xf4e21, to: 0xfa451}, 404: {region: 0x5447, code: 0x112, from: 0xf4d7c, to: 0x0}, 405: {region: 0x5448, code: 0xe8, from: 0xf108f, to: 0x0}, 406: {region: 0x544a, code: 0xea, from: 0xfa15a, to: 0x0}, 407: {region: 0x544a, code: 0xe9, from: 0xf96aa, to: 0xfa159}, 408: {region: 0x544a, code: 0xd1, from: 0xf8f99, to: 0xf96aa}, 409: {region: 0x544b, code: 0xbe, from: 0xf5eea, to: 0x0}, 410: {region: 0x544c, code: 0xf9, from: 0xf9f54, to: 0x0}, 411: {region: 0x544c, code: 0xef, from: 0xf4e22, to: 0xfa4b4}, 412: {region: 0x544c, code: 0x76, from: 0xf6f87, to: 0xfa4b4}, 413: {region: 0x544d, code: 0xec, from: 0xfb221, to: 0x0}, 414: {region: 0x544d, code: 0xeb, from: 0xf9361, to: 0xfb221}, 415: {region: 0x544d, code: 0xd1, from: 0xf8f99, to: 0xf9361}, 416: {region: 0x544d, code: 0xe4, from: 0xf5221, to: 0xf8f99}, 417: {region: 0x544e, code: 0xed, from: 0xf4d61, to: 0x0}, 418: {region: 0x544f, code: 0xee, from: 0xf5c4e, to: 0x0}, 419: {region: 0x5450, code: 0xef, from: 0xf4e22, to: 0xfa4b4}, 420: {region: 0x5450, code: 0x76, from: 0xf6f87, to: 0xfa4b4}, 421: {region: 0x5452, code: 0xf1, from: 0xfaa21, to: 0x0}, 422: {region: 0x5452, code: 0xf0, from: 0xf0561, to: 0xfab9f}, 423: {region: 0x5454, code: 0xf2, from: 0xf5821, to: 0x0}, 424: {region: 0x5456, code: 0x13, from: 0xf5c4e, to: 0x0}, 425: {region: 0x5457, code: 0xf3, from: 0xf3acf, to: 0x0}, 426: {region: 0x545a, code: 0xf4, from: 0xf5cce, to: 0x0}, 427: {region: 0x5541, code: 0xf5, from: 0xf9922, to: 0x0}, 428: {region: 0x5541, code: 0xf6, from: 0xf916d, to: 0xf9351}, 429: {region: 0x5541, code: 0xd1, from: 0xf8f99, to: 0xf916d}, 430: {region: 0x5541, code: 0xe4, from: 0xf5221, to: 0xf8f99}, 431: {region: 0x5547, code: 0xf8, from: 0xf86af, to: 0x0}, 432: {region: 0x5547, code: 0xf7, from: 0xf5d0f, to: 0xf86af}, 433: {region: 0x554d, code: 0xf9, from: 0xf3021, to: 0x0}, 434: {region: 0x5553, code: 0xf9, from: 0xe0021, to: 0x0}, 435: {region: 0x5553, code: 0x80fa, from: 0x0, to: 0x0}, 436: {region: 0x5553, code: 0x80fb, from: 0x0, to: 0xfbc61}, 437: {region: 0x5559, code: 0xfe, from: 0xf9261, to: 0x0}, 438: {region: 0x5559, code: 0xfd, from: 0xf6ee1, to: 0xf9261}, 439: {region: 0x5559, code: 0x80fc, from: 0x0, to: 0x0}, 440: {region: 0x555a, code: 0xff, from: 0xf94e1, to: 0x0}, 441: {region: 0x5641, code: 0x5c, from: 0xf9e21, to: 0x0}, 442: {region: 0x5641, code: 0x80, from: 0xe9d53, to: 0xfa45c}, 443: {region: 0x5643, code: 0x10d, from: 0xf5b46, to: 0x0}, 444: {region: 0x5645, code: 0x101, from: 0xfb021, to: 0x0}, 445: {region: 0x5645, code: 0x100, from: 0xe9eab, to: 0xfb0de}, 446: {region: 0x5647, code: 0xf9, from: 0xe5221, to: 0x0}, 447: {region: 0x5647, code: 0x61, from: 0xe5221, to: 0xf4e21}, 448: {region: 0x5649, code: 0xf9, from: 0xe5a21, to: 0x0}, 449: {region: 0x564e, code: 0x102, from: 0xf832e, to: 0x0}, 450: {region: 0x564e, code: 0x103, from: 0xf74a3, to: 0xf832e}, 451: {region: 0x5655, code: 0x104, from: 0xf7a21, to: 0x0}, 452: {region: 0x5746, code: 0x114, from: 0xf52fe, to: 0x0}, 453: {region: 0x5753, code: 0x105, from: 0xf5eea, to: 0x0}, 454: {region: 0x584b, code: 0x5c, from: 0xfa421, to: 0x0}, 455: {region: 0x584b, code: 0x4e, from: 0xf9f21, to: 0xfa469}, 456: {region: 0x584b, code: 0x11e, from: 0xf9438, to: 0xf9f3e}, 457: {region: 0x5944, code: 0x11b, from: 0xf5a81, to: 0xf9821}, 458: {region: 0x5945, code: 0x11c, from: 0xf8cb6, to: 0x0}, 459: {region: 0x5954, code: 0x5c, from: 0xf9e21, to: 0x0}, 460: {region: 0x5954, code: 0x60, from: 0xf7057, to: 0xfa451}, 461: {region: 0x5954, code: 0x87, from: 0xf6e21, to: 0xf7057}, 462: {region: 0x5955, code: 0x11e, from: 0xf9438, to: 0xfa4af}, 463: {region: 0x5955, code: 0x11f, from: 0xf8c21, to: 0xf90f8}, 464: {region: 0x5955, code: 0x11d, from: 0xf5c21, to: 0xf8c21}, 465: {region: 0x5a41, code: 0x122, from: 0xf524e, to: 0x0}, 466: {region: 0x5a41, code: 0x8121, from: 0xf8321, to: 0xf966d}, 467: {region: 0x5a4d, code: 0x124, from: 0xfba21, to: 0x0}, 468: {region: 0x5a4d, code: 0x123, from: 0xf6030, to: 0xfba21}, 469: {region: 0x5a52, code: 0x125, from: 0xf9361, to: 0xf9cff}, 470: {region: 0x5a52, code: 0x126, from: 0xf675b, to: 0xf9361}, 471: {region: 0x5a57, code: 0xf9, from: 0xfb28c, to: 0x0}, 472: {region: 0x5a57, code: 0x128, from: 0xfb242, to: 0xfb28c}, 473: {region: 0x5a57, code: 0x129, from: 0xfb101, to: 0xfb242}, 474: {region: 0x5a57, code: 0x127, from: 0xf7892, to: 0xfb101}, 475: {region: 0x5a57, code: 0xcc, from: 0xf6451, to: 0xf7892}, 476: {region: 0x5a5a, code: 0x8107, from: 0x0, to: 0x0}, 477: {region: 0x5a5a, code: 0x8108, from: 0x0, to: 0x0}, 478: {region: 0x5a5a, code: 0x8109, from: 0x0, to: 0x0}, 479: {region: 0x5a5a, code: 0x810a, from: 0x0, to: 0x0}, 480: {region: 0x5a5a, code: 0x810b, from: 0x0, to: 0x0}, 481: {region: 0x5a5a, code: 0x810c, from: 0x0, to: 0x0}, 482: {region: 0x5a5a, code: 0x810e, from: 0x0, to: 0x0}, 483: {region: 0x5a5a, code: 0x8110, from: 0xf1421, to: 0xfa681}, 484: {region: 0x5a5a, code: 0x8111, from: 0x0, to: 0xfbb7e}, 485: {region: 0x5a5a, code: 0x8113, from: 0x0, to: 0x0}, 486: {region: 0x5a5a, code: 0x8115, from: 0x0, to: 0x0}, 487: {region: 0x5a5a, code: 0x8116, from: 0x0, to: 0xf9f7e}, 488: {region: 0x5a5a, code: 0x8117, from: 0x0, to: 0x0}, 489: {region: 0x5a5a, code: 0x8118, from: 0x0, to: 0x0}, 490: {region: 0x5a5a, code: 0x8119, from: 0x0, to: 0x0}, 491: {region: 0x5a5a, code: 0x811a, from: 0x0, to: 0x0}, } // Size: 5928 bytes // symbols holds symbol data of the form <n> <str>, where n is the length of // the symbol string str. var symbols string = "" + // Size: 1460 bytes "\x00\x02Kz\x01$\x02A$\x02KM\x03৳\x02Bs\x02R$\x01P\x03р.\x03CA$\x04CN¥" + "\x02¥\x03₡\x03Kč\x02kr\x03E£\x03₧\x03€\x02£\x03₾\x02FG\x01Q\x03HK$\x01L" + "\x02kn\x02Ft\x02Rp\x03₪\x03₹\x04JP¥\x03៛\x02CF\x03₩\x03₸\x03₭\x03L£\x02R" + "s\x02Lt\x02Ls\x02Ar\x01K\x03₮\x03MX$\x02RM\x03₦\x02C$\x03NZ$\x03₱\x03zł" + "\x03₲\x03₽\x02RF\x02Db\x03฿\x02T$\x03₺\x03NT$\x03₴\x03US$\x03₫\x04FCFA" + "\x03EC$\x03CFA\x04CFPF\x01R\x02ZK\x05GH₵\x03AU$\x06ብር\x03***\x09د.إ." + "\u200f\x03AR$\x03BB$\x09د.ب.\u200f\x03BM$\x03BN$\x03BS$\x03BZ$\x03CL$" + "\x03CO$\x03CU$\x03DO$\x09د.ج.\u200f\x09ج.م.\u200f\x03FJ$\x04UK£\x03GY$" + "\x08ر.إن.\x09د.ع.\u200f\x06ر.إ.\x03JM$\x09د.أ.\u200f\x0cف.ج.ق.\u200f\x09" + "د.ك.\u200f\x03KY$\x09ل.ل.\u200f\x09د.ل.\u200f\x09د.م.\u200f\x09أ.م." + "\u200f\x09ر.ع.\u200f\x06ر.ب.\x09ر.ق.\u200f\x09ر.س.\u200f\x03SB$\x09د.س." + "\u200f\x06ج.س.\x03SR$\x09ج.ج.س.\x09ل.س.\u200f\x09د.ت.\u200f\x06ل.ت.\x03T" + "T$\x03UY$\x09ر.ي.\u200f\x03Fdj\x03Nfk\x01S\x04GB£\x03TSh\x03₼\x03S£\x04B" + "ds$\x03BD$\x02B$\x04CUC$\x03$MN\x03RD$\x04FK£\x02G$\x04Íkr\x02J$\x03CI$" + "\x02L$\x02N$\x07руб.\x03SI$\x02S$\x02$U\x05лв.\x06щ.д.\x02$A\x03$CA\x04£" + " E\x05£ RU\x04$ HK\x03£L\x04$ ZN\x03$ T\x04$ SU\x04din.\x04КМ\x04Кч\x04з" + "л\x07дин.\x04Тл\x01F\x03USh\x04Kčs\x03ECU\x02TK\x03kr.\x03Ksh\x03öS\x03" + "BGK\x03BGJ\x04Cub$\x02DM\x04Fl£\x04F.G.\x02FC\x04F.Rw\x03Nu.\x05KR₩\x05T" + "H฿\x06Δρχ\x02Tk\x02$b\x02Kr\x02Gs\x03CFP\x03FBu\x01D\x04MOP$\x02MK\x02SR" + "\x02Le\x04NAf.\x01E\x02VT\x03WS$\x03BsF\x02Af\x03Naf\x02$a\x04Afl.\x02Br" + "\x02TL\x03B/.\x03S/.\x03Gs.\x03Bs.\x02؋\x04¥CN\x03$HK\x08ریال\x03$MX\x03" + "$NZ\x03$EC\x02UM\x02mk\x03$AR\x03$AU\x02FB\x03$BM\x03$BN\x03$BS\x03$BZ" + "\x03$CL\x03$CO\x04£CY\x03£E\x03$FJ\x04£FK\x04£GB\x04£GI\x04£IE\x04£IL" + "\x05₤IT\x04£LB\x04£MT\x03$NA\x02$C\x03$RH\x02FR\x03$SB\x03$SG\x03$SR\x03" + "$TT\x03$US\x03$UY\x04FCFP\x02Kw\x05$\u00a0AU\x05$\u00a0HK\x05$\u00a0NZ" + "\x05$\u00a0SG\x05$\u00a0US\x02DA\x01G\x02LS\x02DT\x02$R\x04¥JP\x03$NT" + "\x07રૂ.\x06ל״י\x03₨\x02֏\x03NKr\x03元\x03¥\x03\u200b\x04БД\x05КД$\x02LE" + "\x02Kn\x06сом\x02zl\x02rb\x03MTn\x06ден\x12ဒေါ်လာ\x12စီအာစီ\x0cनेरू\x02ر" + "\x04Esc.\x06\u200bPTE\x04XXXX\x06ТМТ\x03Dkr\x03Skr\x03Nkr\x07රු.\x0fසිෆ්" + "එ\x03NIS\x05Lekë\x03den\x05[BGN]\x05[BYR]\x06руб\x02r.\x03rub\x03BR$" + "\x03Ekr\x04EG£\x03Ikr\x03Rs.\x04AUD$\x04NZD$\x07крб.\x05soʻm\x06сўм\x03₩" + "\x03ILS\x02P.\x03Zł" type curToIndex struct { cur uint16 idx uint16 } var normalLangIndex = []uint16{ // 748 elements // Entry 0 - 3F 0x0000, 0x0014, 0x0014, 0x0014, 0x0017, 0x0018, 0x0018, 0x0018, 0x0018, 0x0019, 0x0019, 0x001c, 0x001c, 0x0038, 0x0038, 0x0038, 0x0038, 0x0039, 0x0039, 0x0039, 0x0039, 0x003a, 0x003a, 0x003a, 0x003a, 0x003a, 0x003a, 0x003b, 0x003b, 0x003b, 0x003b, 0x003b, 0x003b, 0x003b, 0x003b, 0x003b, 0x003c, 0x003e, 0x003e, 0x003e, 0x003e, 0x003e, 0x003e, 0x003e, 0x003f, 0x003f, 0x0042, 0x0042, 0x0044, 0x0045, 0x0045, 0x0045, 0x0045, 0x0045, 0x0045, 0x004c, 0x004c, 0x004d, 0x004d, 0x004e, 0x004e, 0x005f, 0x005f, 0x005f, // Entry 40 - 7F 0x005f, 0x005f, 0x0061, 0x0061, 0x0061, 0x0062, 0x0062, 0x0063, 0x0071, 0x0071, 0x0071, 0x0071, 0x0082, 0x0088, 0x0088, 0x0088, 0x0088, 0x0091, 0x0091, 0x0091, 0x0092, 0x0092, 0x0093, 0x0093, 0x0094, 0x0094, 0x0095, 0x0095, 0x0095, 0x0095, 0x0095, 0x009c, 0x009c, 0x009d, 0x009d, 0x009f, 0x009f, 0x00a3, 0x00a3, 0x00a3, 0x00a4, 0x00a4, 0x00ac, 0x00ac, 0x00ac, 0x00ad, 0x00ad, 0x00ae, 0x00af, 0x00af, 0x00af, 0x00b4, 0x00b4, 0x00b4, 0x00b4, 0x00b4, 0x00b4, 0x00b4, 0x00ba, 0x00ba, 0x00bb, 0x00bb, 0x00be, 0x00be, // Entry 80 - BF 0x00be, 0x00c1, 0x00c1, 0x00c1, 0x00c3, 0x00c5, 0x00c5, 0x00c6, 0x00c7, 0x00c7, 0x00c7, 0x00dc, 0x00dd, 0x00dd, 0x00de, 0x00df, 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e4, 0x00e5, 0x00e5, 0x00e6, 0x00e6, 0x00e6, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00e9, 0x00ea, 0x00ec, 0x00ec, 0x00ec, 0x00ed, 0x00ed, 0x00ee, 0x00f0, 0x00f1, 0x00f1, 0x00f2, 0x00f2, 0x00f2, 0x00f2, 0x00f2, 0x00f2, 0x00f2, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fb, 0x00fc, 0x00fc, 0x00fd, 0x00fe, // Entry C0 - FF 0x00ff, 0x0100, 0x0101, 0x0102, 0x0103, 0x0104, 0x0104, 0x0105, 0x0106, 0x0107, 0x0108, 0x0109, 0x010a, 0x010b, 0x010b, 0x010b, 0x010c, 0x010d, 0x010e, 0x010e, 0x010f, 0x0110, 0x0112, 0x0112, 0x0113, 0x0115, 0x0116, 0x0117, 0x0117, 0x0118, 0x0119, 0x011a, 0x011b, 0x011c, 0x011d, 0x011d, 0x011d, 0x011e, 0x011e, 0x011e, 0x011f, 0x0120, 0x0121, 0x0122, 0x0122, 0x0122, 0x0122, 0x0134, 0x0139, 0x013b, 0x013c, 0x013d, 0x013f, 0x0141, 0x0142, 0x0144, 0x0146, 0x0146, 0x0147, 0x0147, 0x0148, 0x0149, 0x014a, 0x014a, // Entry 100 - 13F 0x0153, 0x0154, 0x0155, 0x0156, 0x0157, 0x0158, 0x0159, 0x015a, 0x015c, 0x015e, 0x015f, 0x0164, 0x0164, 0x0166, 0x0166, 0x0166, 0x0166, 0x0171, 0x0171, 0x0171, 0x0171, 0x0171, 0x0172, 0x0173, 0x0173, 0x0184, 0x0184, 0x0188, 0x0188, 0x0189, 0x018a, 0x018a, 0x01b0, 0x01b0, 0x01b0, 0x01b1, 0x01b1, 0x01b1, 0x01d1, 0x01d2, 0x01d2, 0x01d2, 0x01d2, 0x01d2, 0x01d2, 0x01d3, 0x01d4, 0x01d4, 0x01d4, 0x01d4, 0x01d5, 0x01d5, 0x01d5, 0x01d6, 0x01d7, 0x01d9, 0x01d9, 0x01d9, 0x01d9, 0x01da, 0x01da, 0x01da, 0x01db, 0x01dc, // Entry 140 - 17F 0x01dc, 0x01dc, 0x01dc, 0x01dc, 0x01dc, 0x01dd, 0x01de, 0x01de, 0x01df, 0x01df, 0x01df, 0x01e0, 0x01e1, 0x01e1, 0x01e1, 0x01e1, 0x01e1, 0x01e7, 0x01e7, 0x01ea, 0x01ea, 0x01ec, 0x01ec, 0x01f6, 0x01f6, 0x01f9, 0x01f9, 0x01f9, 0x01f9, 0x01fa, 0x01fa, 0x01fa, 0x01fb, 0x01fb, 0x01fb, 0x01fb, 0x01fc, 0x01fd, 0x01fd, 0x01fd, 0x01fe, 0x01fe, 0x0201, 0x0201, 0x0203, 0x0203, 0x0215, 0x0216, 0x0216, 0x021b, 0x021b, 0x022d, 0x022d, 0x0230, 0x0230, 0x0234, 0x0234, 0x0235, 0x0235, 0x0236, 0x0236, 0x0242, 0x0242, 0x0249, // Entry 180 - 1BF 0x0249, 0x0249, 0x0249, 0x0249, 0x024e, 0x024e, 0x024e, 0x024e, 0x024e, 0x024f, 0x024f, 0x024f, 0x0259, 0x0259, 0x025a, 0x025a, 0x025a, 0x025b, 0x025b, 0x025b, 0x025c, 0x025c, 0x025f, 0x025f, 0x025f, 0x025f, 0x0260, 0x0260, 0x0266, 0x0266, 0x0266, 0x0266, 0x0267, 0x0267, 0x0268, 0x0268, 0x026b, 0x026b, 0x026d, 0x026d, 0x026f, 0x026f, 0x026f, 0x026f, 0x026f, 0x026f, 0x026f, 0x0270, 0x0270, 0x0270, 0x0270, 0x0270, 0x0270, 0x0270, 0x0270, 0x0270, 0x027f, 0x027f, 0x0280, 0x0280, 0x0285, 0x0285, 0x0286, 0x0286, // Entry 1C0 - 1FF 0x0287, 0x0287, 0x0288, 0x0289, 0x0289, 0x0289, 0x0289, 0x028b, 0x028b, 0x028b, 0x028b, 0x028b, 0x029e, 0x029e, 0x029f, 0x029f, 0x02a0, 0x02a0, 0x02a1, 0x02a1, 0x02a6, 0x02a6, 0x02a7, 0x02a7, 0x02a8, 0x02a9, 0x02a9, 0x02aa, 0x02aa, 0x02ab, 0x02ab, 0x02ac, 0x02ac, 0x02ac, 0x02ac, 0x02b8, 0x02b8, 0x02bb, 0x02bb, 0x02be, 0x02be, 0x02c0, 0x02c0, 0x02c4, 0x02c5, 0x02c5, 0x02c6, 0x02c6, 0x02c6, 0x02c6, 0x02c6, 0x02c9, 0x02c9, 0x02ca, 0x02ca, 0x02ca, 0x02cb, 0x02cb, 0x02dd, 0x02dd, 0x02dd, 0x02dd, 0x02dd, 0x02df, // Entry 200 - 23F 0x02df, 0x02df, 0x02e5, 0x02e6, 0x02e6, 0x02e7, 0x02e8, 0x02e8, 0x02e9, 0x02ea, 0x02ea, 0x02ea, 0x02eb, 0x02eb, 0x02eb, 0x02eb, 0x02eb, 0x02eb, 0x02eb, 0x02eb, 0x02ed, 0x02ed, 0x02ed, 0x02ee, 0x02ee, 0x02ef, 0x02ef, 0x02f0, 0x02f0, 0x02f0, 0x02f2, 0x02f2, 0x02f4, 0x02f5, 0x02f6, 0x02f6, 0x02f6, 0x02f6, 0x02f6, 0x0305, 0x0305, 0x0305, 0x0305, 0x0306, 0x0306, 0x0309, 0x030a, 0x030a, 0x030a, 0x030c, 0x030c, 0x030c, 0x030d, 0x030e, 0x030f, 0x0310, 0x0311, 0x0311, 0x0312, 0x0314, 0x0316, 0x0316, 0x0316, 0x0316, // Entry 240 - 27F 0x0317, 0x0317, 0x0328, 0x0329, 0x0329, 0x032a, 0x032a, 0x0332, 0x0334, 0x0335, 0x0336, 0x0337, 0x0337, 0x0337, 0x0338, 0x0338, 0x0339, 0x0339, 0x033a, 0x033a, 0x033b, 0x033b, 0x033c, 0x033c, 0x033c, 0x0340, 0x0340, 0x0340, 0x0342, 0x0343, 0x0343, 0x0343, 0x0343, 0x0343, 0x0343, 0x0343, 0x0343, 0x0343, 0x0343, 0x0343, 0x0346, 0x0346, 0x0354, 0x0354, 0x0358, 0x0358, 0x0358, 0x0358, 0x0358, 0x0358, 0x0358, 0x0358, 0x0358, 0x0358, 0x0359, 0x035a, 0x035b, 0x035c, 0x035c, 0x035e, 0x035e, 0x035f, 0x035f, 0x0367, // Entry 280 - 2BF 0x0367, 0x0367, 0x0367, 0x0367, 0x0367, 0x036f, 0x036f, 0x036f, 0x036f, 0x036f, 0x036f, 0x036f, 0x036f, 0x0386, 0x0386, 0x0386, 0x0386, 0x0389, 0x038a, 0x038a, 0x038a, 0x038b, 0x038b, 0x038e, 0x038e, 0x038f, 0x0391, 0x0394, 0x0396, 0x0396, 0x0397, 0x0398, 0x0398, 0x039a, 0x039a, 0x039b, 0x039c, 0x039c, 0x039c, 0x039e, 0x039e, 0x039e, 0x03a1, 0x03a1, 0x03a6, 0x03a6, 0x03a6, 0x03a6, 0x03a6, 0x03a6, 0x03a6, 0x03a6, 0x03a8, 0x03a8, 0x03bb, 0x03bb, 0x03be, 0x03bf, 0x03bf, 0x03c0, 0x03c1, 0x03c1, 0x03c3, 0x03c3, // Entry 2C0 - 2FF 0x03c3, 0x03c3, 0x03c4, 0x03c5, 0x03c5, 0x03c5, 0x03c5, 0x03c5, 0x03c7, 0x03c7, 0x03c7, 0x03c7, 0x03c8, 0x03c8, 0x03c8, 0x03ca, 0x03ca, 0x03ca, 0x03ca, 0x03cb, 0x03cb, 0x03cb, 0x03cb, 0x03cb, 0x03cb, 0x03cc, 0x03cc, 0x03cc, 0x03d0, 0x03d0, 0x03d0, 0x03d0, 0x03d4, 0x03d4, 0x03d4, 0x03d5, 0x03d7, 0x03d9, 0x03dd, 0x03df, 0x03e0, 0x03e0, 0x03e2, 0x03e2, } // Size: 1520 bytes var normalSymIndex = []curToIndex{ // 994 elements 0: {cur: 0x13, idx: 0x6}, 1: {cur: 0x2e, idx: 0x13}, 2: {cur: 0x39, idx: 0x1c}, 3: {cur: 0x42, idx: 0x20}, 4: {cur: 0x5c, idx: 0x3b}, 5: {cur: 0x61, idx: 0x3f}, 6: {cur: 0x70, idx: 0x4b}, 7: {cur: 0x7a, idx: 0x5a}, 8: {cur: 0x7b, idx: 0x5e}, 9: {cur: 0x83, idx: 0x62}, 10: {cur: 0x8b, idx: 0x6e}, 11: {cur: 0xb0, idx: 0x90}, 12: {cur: 0xbe, idx: 0x9e}, 13: {cur: 0xf3, idx: 0xc3}, 14: {cur: 0xf9, idx: 0xcb}, 15: {cur: 0x102, idx: 0xcf}, 16: {cur: 0x106, idx: 0xd3}, 17: {cur: 0x10d, idx: 0xd8}, 18: {cur: 0x112, idx: 0xdc}, 19: {cur: 0x114, idx: 0xe0}, 20: {cur: 0xb0, idx: 0x0}, 21: {cur: 0xe8, idx: 0xb8}, 22: {cur: 0x122, idx: 0xe5}, 23: {cur: 0xb7, idx: 0x4}, 24: {cur: 0x65, idx: 0xea}, 25: {cur: 0x13, idx: 0xf0}, 26: {cur: 0x5b, idx: 0xf4}, 27: {cur: 0xe8, idx: 0xb8}, 28: {cur: 0x0, idx: 0xfb}, 29: {cur: 0x2, idx: 0xff}, 30: {cur: 0x13, idx: 0xf0}, 31: {cur: 0x23, idx: 0x111}, 32: {cur: 0x52, idx: 0x13b}, 33: {cur: 0x56, idx: 0x145}, 34: {cur: 0x76, idx: 0x15c}, 35: {cur: 0x7c, idx: 0x165}, 36: {cur: 0x7d, idx: 0x16f}, 37: {cur: 0x82, idx: 0x17a}, 38: {cur: 0x87, idx: 0x184}, 39: {cur: 0x8c, idx: 0x191}, 40: {cur: 0x90, idx: 0x19f}, 41: {cur: 0x9b, idx: 0x1a9}, 42: {cur: 0x9c, idx: 0x1b3}, 43: {cur: 0xa9, idx: 0x1bd}, 44: {cur: 0xbf, idx: 0x1c7}, 45: {cur: 0xc6, idx: 0x1d1}, 46: {cur: 0xcb, idx: 0x1d8}, 47: {cur: 0xd3, idx: 0x1e2}, 48: {cur: 0xd6, idx: 0x1f0}, 49: {cur: 0xd7, idx: 0x1fa}, 50: {cur: 0xe2, idx: 0x205}, 51: {cur: 0xe6, idx: 0x20f}, 52: {cur: 0xe8, idx: 0xb8}, 53: {cur: 0xed, idx: 0x219}, 54: {cur: 0xf1, idx: 0x223}, 55: {cur: 0x11c, idx: 0x232}, 56: {cur: 0x4f, idx: 0x23c}, 57: {cur: 0x57, idx: 0x240}, 58: {cur: 0xd7, idx: 0x0}, 59: {cur: 0xdf, idx: 0x244}, 60: {cur: 0x61, idx: 0x246}, 61: {cur: 0xe2, idx: 0x3f}, 62: {cur: 0xf4, idx: 0x24b}, 63: {cur: 0x83, idx: 0x25}, 64: {cur: 0xe8, idx: 0xb8}, 65: {cur: 0xf9, idx: 0x4}, 66: {cur: 0x16, idx: 0x24f}, 67: {cur: 0xe8, idx: 0xb8}, 68: {cur: 0x16, idx: 0x24f}, 69: {cur: 0x2e, idx: 0x0}, 70: {cur: 0x37, idx: 0x18}, 71: {cur: 0x39, idx: 0x0}, 72: {cur: 0x83, idx: 0x25}, 73: {cur: 0xbe, idx: 0x0}, 74: {cur: 0xd0, idx: 0xae}, 75: {cur: 0xf9, idx: 0x4}, 76: {cur: 0x124, idx: 0x8a}, 77: {cur: 0xf4, idx: 0x24b}, 78: {cur: 0x13, idx: 0x0}, 79: {cur: 0x21, idx: 0x29c}, 80: {cur: 0x2e, idx: 0x0}, 81: {cur: 0x39, idx: 0x0}, 82: {cur: 0x42, idx: 0x0}, 83: {cur: 0x61, idx: 0x0}, 84: {cur: 0x70, idx: 0x0}, 85: {cur: 0x7a, idx: 0x0}, 86: {cur: 0x7b, idx: 0x0}, 87: {cur: 0x83, idx: 0x0}, 88: {cur: 0x8b, idx: 0x0}, 89: {cur: 0xb0, idx: 0x0}, 90: {cur: 0xbe, idx: 0x0}, 91: {cur: 0xf3, idx: 0x0}, 92: {cur: 0xf9, idx: 0x2a2}, 93: {cur: 0x102, idx: 0x0}, 94: {cur: 0x10d, idx: 0x0}, 95: {cur: 0x1b, idx: 0xc}, 96: {cur: 0xe8, idx: 0xb8}, 97: {cur: 0x42, idx: 0x25}, 98: {cur: 0x42, idx: 0x20}, 99: {cur: 0x13, idx: 0x2a9}, 100: {cur: 0x2e, idx: 0x0}, 101: {cur: 0x39, idx: 0x2ac}, 102: {cur: 0x42, idx: 0x0}, 103: {cur: 0x61, idx: 0x2b5}, 104: {cur: 0x70, idx: 0x2bb}, 105: {cur: 0x7a, idx: 0x0}, 106: {cur: 0x83, idx: 0x0}, 107: {cur: 0x8b, idx: 0x0}, 108: {cur: 0xbe, idx: 0x2c4}, 109: {cur: 0xf3, idx: 0x0}, 110: {cur: 0xf9, idx: 0x2cd}, 111: {cur: 0x102, idx: 0x0}, 112: {cur: 0x10d, idx: 0x0}, 113: {cur: 0x13, idx: 0x0}, 114: {cur: 0x18, idx: 0x9}, 115: {cur: 0x2e, idx: 0x0}, 116: {cur: 0x39, idx: 0x0}, 117: {cur: 0x42, idx: 0x0}, 118: {cur: 0x61, idx: 0x0}, 119: {cur: 0x70, idx: 0x0}, 120: {cur: 0x73, idx: 0x51}, 121: {cur: 0x7a, idx: 0x0}, 122: {cur: 0x83, idx: 0x25}, 123: {cur: 0xb0, idx: 0x0}, 124: {cur: 0xbe, idx: 0x0}, 125: {cur: 0xcf, idx: 0x2d2}, 126: {cur: 0xe8, idx: 0xb8}, 127: {cur: 0xf9, idx: 0x0}, 128: {cur: 0x10d, idx: 0x0}, 129: {cur: 0x114, idx: 0x0}, 130: {cur: 0x18, idx: 0x2d7}, 131: {cur: 0x4c, idx: 0x2dc}, 132: {cur: 0x83, idx: 0x25}, 133: {cur: 0xc7, idx: 0x2e1}, 134: {cur: 0xcf, idx: 0x2e6}, 135: {cur: 0xf1, idx: 0x2ee}, 136: {cur: 0x13, idx: 0xf0}, 137: {cur: 0x2e, idx: 0x0}, 138: {cur: 0x39, idx: 0x0}, 139: {cur: 0x42, idx: 0x25}, 140: {cur: 0x5a, idx: 0x37}, 141: {cur: 0xb0, idx: 0x0}, 142: {cur: 0xe8, idx: 0xb8}, 143: {cur: 0xf9, idx: 0x0}, 144: {cur: 0x10d, idx: 0x0}, 145: {cur: 0x60, idx: 0x2f3}, 146: {cur: 0xd0, idx: 0xae}, 147: {cur: 0xf8, idx: 0x2f5}, 148: {cur: 0xf9, idx: 0x4}, 149: {cur: 0x13, idx: 0xf0}, 150: {cur: 0x47, idx: 0x2f9}, 151: {cur: 0x4c, idx: 0x2c}, 152: {cur: 0x7a, idx: 0x0}, 153: {cur: 0x7b, idx: 0x0}, 154: {cur: 0x102, idx: 0x0}, 155: {cur: 0x10f, idx: 0x2fe}, 156: {cur: 0xd0, idx: 0xae}, 157: {cur: 0x8b, idx: 0x0}, 158: {cur: 0xe8, idx: 0xb8}, 159: {cur: 0x13, idx: 0xf0}, 160: {cur: 0x50, idx: 0x305}, 161: {cur: 0xe8, idx: 0xb8}, 162: {cur: 0xf9, idx: 0x4}, 163: {cur: 0x84, idx: 0x309}, 164: {cur: 0x12, idx: 0x30d}, 165: {cur: 0x13, idx: 0xf0}, 166: {cur: 0x20, idx: 0x311}, 167: {cur: 0x22, idx: 0x315}, 168: {cur: 0x4e, idx: 0x31e}, 169: {cur: 0x83, idx: 0x25}, 170: {cur: 0xe8, idx: 0xb8}, 171: {cur: 0xf9, idx: 0x4}, 172: {cur: 0x5c, idx: 0x0}, 173: {cur: 0x5c, idx: 0x0}, 174: {cur: 0x97, idx: 0x2f3}, 175: {cur: 0x13, idx: 0x0}, 176: {cur: 0x83, idx: 0x25}, 177: {cur: 0xc7, idx: 0xa6}, 178: {cur: 0xe8, idx: 0xb8}, 179: {cur: 0xf9, idx: 0x4}, 180: {cur: 0x13, idx: 0xf0}, 181: {cur: 0x33, idx: 0x333}, 182: {cur: 0x7a, idx: 0x0}, 183: {cur: 0x8b, idx: 0x337}, 184: {cur: 0xe8, idx: 0x33d}, 185: {cur: 0x106, idx: 0x0}, 186: {cur: 0x84, idx: 0x309}, 187: {cur: 0x13, idx: 0xf0}, 188: {cur: 0x65, idx: 0xea}, 189: {cur: 0xe8, idx: 0xb8}, 190: {cur: 0x6b, idx: 0x343}, 191: {cur: 0xe8, idx: 0xb8}, 192: {cur: 0xf9, idx: 0x4}, 193: {cur: 0x83, idx: 0x25}, 194: {cur: 0xf9, idx: 0x4}, 195: {cur: 0x83, idx: 0x62}, 196: {cur: 0xf9, idx: 0xcb}, 197: {cur: 0x10d, idx: 0x4}, 198: {cur: 0x10d, idx: 0x4}, 199: {cur: 0x13, idx: 0x4}, 200: {cur: 0x2e, idx: 0x0}, 201: {cur: 0x39, idx: 0x0}, 202: {cur: 0x42, idx: 0x0}, 203: {cur: 0x5c, idx: 0x0}, 204: {cur: 0x61, idx: 0x0}, 205: {cur: 0x70, idx: 0x0}, 206: {cur: 0x7a, idx: 0x0}, 207: {cur: 0x7b, idx: 0x0}, 208: {cur: 0x83, idx: 0x0}, 209: {cur: 0x8b, idx: 0x0}, 210: {cur: 0xb0, idx: 0x0}, 211: {cur: 0xbe, idx: 0x0}, 212: {cur: 0xd5, idx: 0x7e}, 213: {cur: 0xf3, idx: 0x0}, 214: {cur: 0xf9, idx: 0x0}, 215: {cur: 0x102, idx: 0x0}, 216: {cur: 0x106, idx: 0x0}, 217: {cur: 0x10d, idx: 0x0}, 218: {cur: 0x112, idx: 0x0}, 219: {cur: 0x114, idx: 0x356}, 220: {cur: 0x1a, idx: 0x4}, 221: {cur: 0x24, idx: 0x35a}, 222: {cur: 0x25, idx: 0x4}, 223: {cur: 0x32, idx: 0x4}, 224: {cur: 0x35, idx: 0x16}, 225: {cur: 0x38, idx: 0x4}, 226: {cur: 0x39, idx: 0x4}, 227: {cur: 0x13, idx: 0x4}, 228: {cur: 0xbe, idx: 0x4}, 229: {cur: 0x13, idx: 0x4}, 230: {cur: 0x50, idx: 0x305}, 231: {cur: 0x10d, idx: 0x4}, 232: {cur: 0x57, idx: 0x240}, 233: {cur: 0x5e, idx: 0x4}, 234: {cur: 0x5f, idx: 0x3f}, 235: {cur: 0x61, idx: 0x246}, 236: {cur: 0x10d, idx: 0x4}, 237: {cur: 0x65, idx: 0xea}, 238: {cur: 0x61, idx: 0x246}, 239: {cur: 0x66, idx: 0x3f}, 240: {cur: 0x67, idx: 0x35e}, 241: {cur: 0x6f, idx: 0x4}, 242: {cur: 0x81, idx: 0x4}, 243: {cur: 0x84, idx: 0x309}, 244: {cur: 0x13, idx: 0x4}, 245: {cur: 0x10d, idx: 0x4}, 246: {cur: 0x8d, idx: 0x4}, 247: {cur: 0x10d, idx: 0x4}, 248: {cur: 0x92, idx: 0x4}, 249: {cur: 0x122, idx: 0xe5}, 250: {cur: 0xa1, idx: 0x87}, 251: {cur: 0xa8, idx: 0x360}, 252: {cur: 0x10d, idx: 0x4}, 253: {cur: 0x61, idx: 0x246}, 254: {cur: 0xac, idx: 0x7e}, 255: {cur: 0xaf, idx: 0x365}, 256: {cur: 0xb3, idx: 0x94}, 257: {cur: 0xb7, idx: 0x4}, 258: {cur: 0x13, idx: 0x4}, 259: {cur: 0xb8, idx: 0x97}, 260: {cur: 0x13, idx: 0x4}, 261: {cur: 0xbe, idx: 0x4}, 262: {cur: 0xbe, idx: 0x4}, 263: {cur: 0xc4, idx: 0x8a}, 264: {cur: 0xc5, idx: 0xa2}, 265: {cur: 0xc6, idx: 0x7e}, 266: {cur: 0xbe, idx: 0x4}, 267: {cur: 0xd2, idx: 0xb2}, 268: {cur: 0xd4, idx: 0x4}, 269: {cur: 0xd5, idx: 0x368}, 270: {cur: 0xd9, idx: 0x30}, 271: {cur: 0xda, idx: 0x4}, 272: {cur: 0x61, idx: 0x246}, 273: {cur: 0xdb, idx: 0x3f}, 274: {cur: 0xde, idx: 0x36b}, 275: {cur: 0x61, idx: 0x246}, 276: {cur: 0xe2, idx: 0x3f}, 277: {cur: 0x8, idx: 0x36e}, 278: {cur: 0xe7, idx: 0x373}, 279: {cur: 0xbe, idx: 0x4}, 280: {cur: 0xee, idx: 0xbc}, 281: {cur: 0xf2, idx: 0x4}, 282: {cur: 0x13, idx: 0x4}, 283: {cur: 0xf4, idx: 0x24b}, 284: {cur: 0xf8, idx: 0x2f5}, 285: {cur: 0x10d, idx: 0x4}, 286: {cur: 0x104, idx: 0x375}, 287: {cur: 0x105, idx: 0x378}, 288: {cur: 0x122, idx: 0xe5}, 289: {cur: 0x124, idx: 0x8a}, 290: {cur: 0x13, idx: 0x0}, 291: {cur: 0x2e, idx: 0x0}, 292: {cur: 0x42, idx: 0x0}, 293: {cur: 0x5a, idx: 0x37}, 294: {cur: 0x61, idx: 0x0}, 295: {cur: 0x70, idx: 0x0}, 296: {cur: 0x7a, idx: 0x0}, 297: {cur: 0x7b, idx: 0x0}, 298: {cur: 0x83, idx: 0x0}, 299: {cur: 0x8b, idx: 0x0}, 300: {cur: 0xb0, idx: 0x0}, 301: {cur: 0xbe, idx: 0x0}, 302: {cur: 0xe8, idx: 0xb8}, 303: {cur: 0xf3, idx: 0x0}, 304: {cur: 0xf9, idx: 0x4}, 305: {cur: 0x106, idx: 0x0}, 306: {cur: 0x10d, idx: 0x0}, 307: {cur: 0x112, idx: 0x0}, 308: {cur: 0x39, idx: 0x0}, 309: {cur: 0x5c, idx: 0x0}, 310: {cur: 0xe8, idx: 0x0}, 311: {cur: 0xf9, idx: 0x0}, 312: {cur: 0x102, idx: 0x0}, 313: {cur: 0x11, idx: 0x4}, 314: {cur: 0xf9, idx: 0xcb}, 315: {cur: 0x27, idx: 0x10}, 316: {cur: 0x2e, idx: 0x13}, 317: {cur: 0x40, idx: 0x4}, 318: {cur: 0xf9, idx: 0xcb}, 319: {cur: 0x43, idx: 0x4}, 320: {cur: 0xf9, idx: 0xcb}, 321: {cur: 0x45, idx: 0x28}, 322: {cur: 0x49, idx: 0x4}, 323: {cur: 0xf9, idx: 0xcb}, 324: {cur: 0x51, idx: 0x26c}, 325: {cur: 0xf9, idx: 0xcb}, 326: {cur: 0xf9, idx: 0x4}, 327: {cur: 0x106, idx: 0xd3}, 328: {cur: 0x6c, idx: 0x49}, 329: {cur: 0x71, idx: 0x4f}, 330: {cur: 0x4, idx: 0x380}, 331: {cur: 0x8, idx: 0x383}, 332: {cur: 0x9, idx: 0x1}, 333: {cur: 0x11, idx: 0x387}, 334: {cur: 0x13, idx: 0xf0}, 335: {cur: 0x14, idx: 0x38a}, 336: {cur: 0x42, idx: 0x20}, 337: {cur: 0xb0, idx: 0x4}, 338: {cur: 0x114, idx: 0x0}, 339: {cur: 0xba, idx: 0x9b}, 340: {cur: 0xc0, idx: 0x395}, 341: {cur: 0xc2, idx: 0x399}, 342: {cur: 0xc5, idx: 0xa2}, 343: {cur: 0xf9, idx: 0x4}, 344: {cur: 0xca, idx: 0x39d}, 345: {cur: 0xf9, idx: 0x4}, 346: {cur: 0x83, idx: 0x25}, 347: {cur: 0xf9, idx: 0x4}, 348: {cur: 0xf9, idx: 0xcb}, 349: {cur: 0xfe, idx: 0x4}, 350: {cur: 0x101, idx: 0x3a1}, 351: {cur: 0x13, idx: 0xf0}, 352: {cur: 0x55, idx: 0x30}, 353: {cur: 0x83, idx: 0x25}, 354: {cur: 0xe8, idx: 0xb8}, 355: {cur: 0xf9, idx: 0x4}, 356: {cur: 0x5a, idx: 0x37}, 357: {cur: 0xe8, idx: 0xb8}, 358: {cur: 0x4, idx: 0x3a5}, 359: {cur: 0x39, idx: 0x2ac}, 360: {cur: 0x42, idx: 0x3a8}, 361: {cur: 0x70, idx: 0x3ad}, 362: {cur: 0x7d, idx: 0x3b1}, 363: {cur: 0x83, idx: 0x25}, 364: {cur: 0xb0, idx: 0x3ba}, 365: {cur: 0xbe, idx: 0x3be}, 366: {cur: 0xe8, idx: 0xb8}, 367: {cur: 0xf9, idx: 0x4}, 368: {cur: 0x10d, idx: 0x3c2}, 369: {cur: 0x68, idx: 0x46}, 370: {cur: 0xa9, idx: 0x3c6}, 371: {cur: 0x13, idx: 0x0}, 372: {cur: 0x2e, idx: 0x0}, 373: {cur: 0x39, idx: 0x0}, 374: {cur: 0x42, idx: 0x0}, 375: {cur: 0x5d, idx: 0x3c9}, 376: {cur: 0x70, idx: 0x0}, 377: {cur: 0x7a, idx: 0x0}, 378: {cur: 0x7b, idx: 0x0}, 379: {cur: 0x83, idx: 0x25}, 380: {cur: 0x8b, idx: 0x0}, 381: {cur: 0xb0, idx: 0x0}, 382: {cur: 0xbe, idx: 0x0}, 383: {cur: 0xf3, idx: 0x0}, 384: {cur: 0xf9, idx: 0x4}, 385: {cur: 0x102, idx: 0x0}, 386: {cur: 0x10d, idx: 0x0}, 387: {cur: 0x114, idx: 0x0}, 388: {cur: 0x83, idx: 0x25}, 389: {cur: 0xc5, idx: 0xa2}, 390: {cur: 0xe8, idx: 0xb8}, 391: {cur: 0xf9, idx: 0x4}, 392: {cur: 0x50, idx: 0x30}, 393: {cur: 0x50, idx: 0x305}, 394: {cur: 0x11, idx: 0x3cc}, 395: {cur: 0x13, idx: 0x3d0}, 396: {cur: 0x1d, idx: 0x3d4}, 397: {cur: 0x25, idx: 0x3d7}, 398: {cur: 0x26, idx: 0x3db}, 399: {cur: 0x32, idx: 0x3df}, 400: {cur: 0x38, idx: 0x3e3}, 401: {cur: 0x39, idx: 0x2ac}, 402: {cur: 0x40, idx: 0x3e7}, 403: {cur: 0x42, idx: 0x0}, 404: {cur: 0x43, idx: 0x3eb}, 405: {cur: 0x4b, idx: 0x3ef}, 406: {cur: 0x5e, idx: 0x3f8}, 407: {cur: 0x5f, idx: 0x3fc}, 408: {cur: 0x60, idx: 0x2f3}, 409: {cur: 0x61, idx: 0x401}, 410: {cur: 0x66, idx: 0x406}, 411: {cur: 0x70, idx: 0x0}, 412: {cur: 0x77, idx: 0x40b}, 413: {cur: 0x78, idx: 0x410}, 414: {cur: 0x80, idx: 0x415}, 415: {cur: 0x83, idx: 0x0}, 416: {cur: 0x90, idx: 0x41b}, 417: {cur: 0xab, idx: 0x420}, 418: {cur: 0xb0, idx: 0x3ba}, 419: {cur: 0xb7, idx: 0x425}, 420: {cur: 0xbe, idx: 0x3be}, 421: {cur: 0xcc, idx: 0x42c}, 422: {cur: 0xd4, idx: 0x433}, 423: {cur: 0xda, idx: 0x437}, 424: {cur: 0xe0, idx: 0x43b}, 425: {cur: 0xf2, idx: 0x43f}, 426: {cur: 0xf3, idx: 0x0}, 427: {cur: 0xf9, idx: 0x443}, 428: {cur: 0xfe, idx: 0x447}, 429: {cur: 0x105, idx: 0x378}, 430: {cur: 0x10d, idx: 0x0}, 431: {cur: 0x114, idx: 0x44b}, 432: {cur: 0x24, idx: 0x35a}, 433: {cur: 0x11, idx: 0x0}, 434: {cur: 0x13, idx: 0x453}, 435: {cur: 0x25, idx: 0x0}, 436: {cur: 0x26, idx: 0x0}, 437: {cur: 0x32, idx: 0x0}, 438: {cur: 0x38, idx: 0x0}, 439: {cur: 0x39, idx: 0x4}, 440: {cur: 0x40, idx: 0x0}, 441: {cur: 0x42, idx: 0x20}, 442: {cur: 0x43, idx: 0x0}, 443: {cur: 0x5e, idx: 0x0}, 444: {cur: 0x5f, idx: 0x0}, 445: {cur: 0x61, idx: 0x3f}, 446: {cur: 0x66, idx: 0x0}, 447: {cur: 0x70, idx: 0x459}, 448: {cur: 0x7a, idx: 0x0}, 449: {cur: 0x83, idx: 0x25}, 450: {cur: 0x8b, idx: 0x0}, 451: {cur: 0x90, idx: 0x0}, 452: {cur: 0xb0, idx: 0x0}, 453: {cur: 0xb7, idx: 0x0}, 454: {cur: 0xbe, idx: 0x45f}, 455: {cur: 0xd4, idx: 0x0}, 456: {cur: 0xda, idx: 0x465}, 457: {cur: 0xe0, idx: 0x0}, 458: {cur: 0xf2, idx: 0x0}, 459: {cur: 0xf9, idx: 0x46b}, 460: {cur: 0xfe, idx: 0x0}, 461: {cur: 0x102, idx: 0x0}, 462: {cur: 0x106, idx: 0x0}, 463: {cur: 0x112, idx: 0x0}, 464: {cur: 0x114, idx: 0x0}, 465: {cur: 0x3a, idx: 0x32b}, 466: {cur: 0x4f, idx: 0x23c}, 467: {cur: 0x52, idx: 0x471}, 468: {cur: 0x68, idx: 0x46}, 469: {cur: 0x74, idx: 0x474}, 470: {cur: 0x87, idx: 0x6b}, 471: {cur: 0x60, idx: 0x0}, 472: {cur: 0x97, idx: 0x2f3}, 473: {cur: 0xa1, idx: 0x87}, 474: {cur: 0xa9, idx: 0x3c6}, 475: {cur: 0xac, idx: 0x7e}, 476: {cur: 0xd2, idx: 0xb2}, 477: {cur: 0xd5, idx: 0x368}, 478: {cur: 0xe6, idx: 0x476}, 479: {cur: 0xed, idx: 0x479}, 480: {cur: 0x104, idx: 0x375}, 481: {cur: 0x13, idx: 0xf0}, 482: {cur: 0x39, idx: 0x9b}, 483: {cur: 0x5e, idx: 0x14f}, 484: {cur: 0xd4, idx: 0x292}, 485: {cur: 0xe8, idx: 0xb8}, 486: {cur: 0x114, idx: 0x0}, 487: {cur: 0x83, idx: 0x25}, 488: {cur: 0xe8, idx: 0xb8}, 489: {cur: 0xf9, idx: 0x4}, 490: {cur: 0xe8, idx: 0xb8}, 491: {cur: 0xf9, idx: 0x4}, 492: {cur: 0x13, idx: 0x2a9}, 493: {cur: 0x2e, idx: 0x47c}, 494: {cur: 0x39, idx: 0x2ac}, 495: {cur: 0x5a, idx: 0x37}, 496: {cur: 0x70, idx: 0x3ad}, 497: {cur: 0x83, idx: 0x47f}, 498: {cur: 0xb0, idx: 0x3ba}, 499: {cur: 0xe8, idx: 0xb8}, 500: {cur: 0xf3, idx: 0x484}, 501: {cur: 0xf9, idx: 0x4}, 502: {cur: 0x12, idx: 0x30d}, 503: {cur: 0x83, idx: 0x25}, 504: {cur: 0xf9, idx: 0x4}, 505: {cur: 0xe8, idx: 0xb8}, 506: {cur: 0x84, idx: 0x309}, 507: {cur: 0xb8, idx: 0x97}, 508: {cur: 0x65, idx: 0xea}, 509: {cur: 0xf9, idx: 0x4}, 510: {cur: 0x78, idx: 0x490}, 511: {cur: 0xe8, idx: 0xb8}, 512: {cur: 0xf9, idx: 0x4}, 513: {cur: 0xe8, idx: 0xb8}, 514: {cur: 0xf9, idx: 0x4}, 515: {cur: 0x13, idx: 0x0}, 516: {cur: 0x2e, idx: 0x0}, 517: {cur: 0x39, idx: 0x0}, 518: {cur: 0x42, idx: 0x0}, 519: {cur: 0x5c, idx: 0x0}, 520: {cur: 0x61, idx: 0x0}, 521: {cur: 0x70, idx: 0x0}, 522: {cur: 0x7a, idx: 0x0}, 523: {cur: 0x7b, idx: 0x0}, 524: {cur: 0x83, idx: 0x0}, 525: {cur: 0x8b, idx: 0x0}, 526: {cur: 0xb0, idx: 0x0}, 527: {cur: 0xbe, idx: 0x0}, 528: {cur: 0xf3, idx: 0x0}, 529: {cur: 0xf9, idx: 0x0}, 530: {cur: 0x102, idx: 0x0}, 531: {cur: 0x10d, idx: 0x0}, 532: {cur: 0x114, idx: 0x0}, 533: {cur: 0x18, idx: 0x9}, 534: {cur: 0x13, idx: 0x0}, 535: {cur: 0x83, idx: 0x25}, 536: {cur: 0xc7, idx: 0xa6}, 537: {cur: 0xe8, idx: 0xb8}, 538: {cur: 0xf9, idx: 0x4}, 539: {cur: 0x13, idx: 0x0}, 540: {cur: 0x2e, idx: 0x0}, 541: {cur: 0x39, idx: 0x0}, 542: {cur: 0x42, idx: 0x0}, 543: {cur: 0x5c, idx: 0x0}, 544: {cur: 0x61, idx: 0x0}, 545: {cur: 0x70, idx: 0x0}, 546: {cur: 0x75, idx: 0x54}, 547: {cur: 0x7a, idx: 0x0}, 548: {cur: 0x7b, idx: 0x0}, 549: {cur: 0x83, idx: 0x25}, 550: {cur: 0x8b, idx: 0x0}, 551: {cur: 0xb0, idx: 0x0}, 552: {cur: 0xbe, idx: 0x0}, 553: {cur: 0xf3, idx: 0x0}, 554: {cur: 0xf9, idx: 0x0}, 555: {cur: 0x102, idx: 0x0}, 556: {cur: 0x10d, idx: 0x0}, 557: {cur: 0x7, idx: 0x49b}, 558: {cur: 0xe8, idx: 0xb8}, 559: {cur: 0xf9, idx: 0x4}, 560: {cur: 0x13, idx: 0xf0}, 561: {cur: 0x76, idx: 0x57}, 562: {cur: 0x7b, idx: 0x7e}, 563: {cur: 0xe8, idx: 0xb8}, 564: {cur: 0xb8, idx: 0x97}, 565: {cur: 0x42, idx: 0x25}, 566: {cur: 0x13, idx: 0x0}, 567: {cur: 0x2e, idx: 0x0}, 568: {cur: 0x39, idx: 0x0}, 569: {cur: 0x5c, idx: 0x0}, 570: {cur: 0x61, idx: 0x0}, 571: {cur: 0x7b, idx: 0x0}, 572: {cur: 0x8b, idx: 0x0}, 573: {cur: 0xb0, idx: 0x0}, 574: {cur: 0xbe, idx: 0x0}, 575: {cur: 0xf3, idx: 0x0}, 576: {cur: 0xf9, idx: 0x0}, 577: {cur: 0x102, idx: 0x0}, 578: {cur: 0x2e, idx: 0x0}, 579: {cur: 0x70, idx: 0x0}, 580: {cur: 0x83, idx: 0x0}, 581: {cur: 0x8b, idx: 0x0}, 582: {cur: 0xb0, idx: 0x0}, 583: {cur: 0xe8, idx: 0xb8}, 584: {cur: 0xf3, idx: 0x0}, 585: {cur: 0x13, idx: 0xf0}, 586: {cur: 0x42, idx: 0x4a2}, 587: {cur: 0x83, idx: 0x4a6}, 588: {cur: 0xe8, idx: 0xb8}, 589: {cur: 0xf9, idx: 0x4}, 590: {cur: 0xf4, idx: 0x24b}, 591: {cur: 0x13, idx: 0x0}, 592: {cur: 0x42, idx: 0x0}, 593: {cur: 0x63, idx: 0x42}, 594: {cur: 0x70, idx: 0x0}, 595: {cur: 0x7a, idx: 0x0}, 596: {cur: 0x7b, idx: 0x0}, 597: {cur: 0x83, idx: 0x0}, 598: {cur: 0x8b, idx: 0x0}, 599: {cur: 0xbe, idx: 0x0}, 600: {cur: 0x102, idx: 0x0}, 601: {cur: 0x52, idx: 0x471}, 602: {cur: 0x84, idx: 0x309}, 603: {cur: 0xf4, idx: 0x24b}, 604: {cur: 0x13, idx: 0xf0}, 605: {cur: 0x4a, idx: 0x4aa}, 606: {cur: 0xe8, idx: 0xb8}, 607: {cur: 0x84, idx: 0x309}, 608: {cur: 0x25, idx: 0x4ae}, 609: {cur: 0x39, idx: 0x4b3}, 610: {cur: 0x8e, idx: 0x72}, 611: {cur: 0xd0, idx: 0xae}, 612: {cur: 0xe8, idx: 0xb8}, 613: {cur: 0xf9, idx: 0x4}, 614: {cur: 0x50, idx: 0x305}, 615: {cur: 0x84, idx: 0x309}, 616: {cur: 0x86, idx: 0x67}, 617: {cur: 0xe8, idx: 0xb8}, 618: {cur: 0xf9, idx: 0x4}, 619: {cur: 0xe8, idx: 0xb8}, 620: {cur: 0xf9, idx: 0x4}, 621: {cur: 0x13, idx: 0xf0}, 622: {cur: 0xe8, idx: 0xb8}, 623: {cur: 0xf4, idx: 0x24b}, 624: {cur: 0x13, idx: 0x0}, 625: {cur: 0x2e, idx: 0x0}, 626: {cur: 0x39, idx: 0x0}, 627: {cur: 0x61, idx: 0x0}, 628: {cur: 0x70, idx: 0x0}, 629: {cur: 0x7a, idx: 0x0}, 630: {cur: 0x7b, idx: 0x0}, 631: {cur: 0x85, idx: 0x4bf}, 632: {cur: 0x8b, idx: 0x0}, 633: {cur: 0xb0, idx: 0x0}, 634: {cur: 0xbe, idx: 0x0}, 635: {cur: 0xe8, idx: 0xb8}, 636: {cur: 0xf3, idx: 0x0}, 637: {cur: 0xf9, idx: 0x0}, 638: {cur: 0x10d, idx: 0x0}, 639: {cur: 0xf4, idx: 0x24b}, 640: {cur: 0x12, idx: 0x30d}, 641: {cur: 0x13, idx: 0xf0}, 642: {cur: 0x83, idx: 0x25}, 643: {cur: 0xe8, idx: 0xb8}, 644: {cur: 0xf9, idx: 0x4}, 645: {cur: 0xf8, idx: 0x2f5}, 646: {cur: 0xf9, idx: 0x4}, 647: {cur: 0x3a, idx: 0x32b}, 648: {cur: 0x9, idx: 0x1}, 649: {cur: 0x8f, idx: 0x76}, 650: {cur: 0xe8, idx: 0xb8}, 651: {cur: 0x13, idx: 0x0}, 652: {cur: 0x2e, idx: 0x0}, 653: {cur: 0x39, idx: 0x0}, 654: {cur: 0x42, idx: 0x0}, 655: {cur: 0x61, idx: 0x0}, 656: {cur: 0x70, idx: 0x0}, 657: {cur: 0x7a, idx: 0x0}, 658: {cur: 0x7b, idx: 0x0}, 659: {cur: 0x83, idx: 0x0}, 660: {cur: 0x8b, idx: 0x0}, 661: {cur: 0xb0, idx: 0x0}, 662: {cur: 0xbe, idx: 0x0}, 663: {cur: 0xf3, idx: 0x0}, 664: {cur: 0xf9, idx: 0x0}, 665: {cur: 0x102, idx: 0x0}, 666: {cur: 0x106, idx: 0x0}, 667: {cur: 0x10d, idx: 0x0}, 668: {cur: 0x112, idx: 0x0}, 669: {cur: 0x114, idx: 0x0}, 670: {cur: 0x3a, idx: 0x32b}, 671: {cur: 0x84, idx: 0x309}, 672: {cur: 0x84, idx: 0x309}, 673: {cur: 0x13, idx: 0xf0}, 674: {cur: 0x83, idx: 0x25}, 675: {cur: 0x99, idx: 0x84}, 676: {cur: 0xe8, idx: 0xb8}, 677: {cur: 0xf9, idx: 0x4}, 678: {cur: 0x84, idx: 0x309}, 679: {cur: 0xf4, idx: 0x24b}, 680: {cur: 0x84, idx: 0x309}, 681: {cur: 0xac, idx: 0x7e}, 682: {cur: 0xa1, idx: 0x87}, 683: {cur: 0xb6, idx: 0x4cc}, 684: {cur: 0x13, idx: 0x0}, 685: {cur: 0x42, idx: 0x0}, 686: {cur: 0x61, idx: 0x0}, 687: {cur: 0x70, idx: 0x0}, 688: {cur: 0x7a, idx: 0x0}, 689: {cur: 0x7b, idx: 0x0}, 690: {cur: 0x83, idx: 0x0}, 691: {cur: 0x8b, idx: 0x0}, 692: {cur: 0xa3, idx: 0x4d0}, 693: {cur: 0xbe, idx: 0x0}, 694: {cur: 0xf3, idx: 0x0}, 695: {cur: 0x102, idx: 0x0}, 696: {cur: 0x83, idx: 0x25}, 697: {cur: 0xe8, idx: 0xb8}, 698: {cur: 0xf9, idx: 0x4}, 699: {cur: 0xa7, idx: 0x8c}, 700: {cur: 0xe8, idx: 0xb8}, 701: {cur: 0xf9, idx: 0x4}, 702: {cur: 0xe8, idx: 0xb8}, 703: {cur: 0xf9, idx: 0x4}, 704: {cur: 0x39, idx: 0x0}, 705: {cur: 0xb0, idx: 0x0}, 706: {cur: 0xb3, idx: 0x94}, 707: {cur: 0xf9, idx: 0x0}, 708: {cur: 0x26, idx: 0x4}, 709: {cur: 0xda, idx: 0x4}, 710: {cur: 0x45, idx: 0x4ea}, 711: {cur: 0xa6, idx: 0x8a}, 712: {cur: 0xe8, idx: 0xb8}, 713: {cur: 0xf9, idx: 0x4}, 714: {cur: 0xb7, idx: 0x4}, 715: {cur: 0x13, idx: 0x0}, 716: {cur: 0x2e, idx: 0x0}, 717: {cur: 0x39, idx: 0x0}, 718: {cur: 0x42, idx: 0x0}, 719: {cur: 0x70, idx: 0x0}, 720: {cur: 0x7a, idx: 0x0}, 721: {cur: 0x7b, idx: 0x0}, 722: {cur: 0x83, idx: 0x0}, 723: {cur: 0x8b, idx: 0x0}, 724: {cur: 0xb0, idx: 0x0}, 725: {cur: 0xbc, idx: 0x30}, 726: {cur: 0xbe, idx: 0x0}, 727: {cur: 0xf3, idx: 0x0}, 728: {cur: 0xf9, idx: 0x0}, 729: {cur: 0x102, idx: 0x0}, 730: {cur: 0x106, idx: 0x0}, 731: {cur: 0x10d, idx: 0x0}, 732: {cur: 0x114, idx: 0x0}, 733: {cur: 0xbd, idx: 0x4fd}, 734: {cur: 0xe8, idx: 0xb8}, 735: {cur: 0x13, idx: 0xf0}, 736: {cur: 0x39, idx: 0x9b}, 737: {cur: 0x5e, idx: 0x14f}, 738: {cur: 0xd4, idx: 0x292}, 739: {cur: 0xe8, idx: 0xb8}, 740: {cur: 0x114, idx: 0x0}, 741: {cur: 0x14, idx: 0x38a}, 742: {cur: 0xf9, idx: 0x4}, 743: {cur: 0x8, idx: 0x36e}, 744: {cur: 0xe0, idx: 0x4}, 745: {cur: 0x8, idx: 0x36e}, 746: {cur: 0xbc, idx: 0x30}, 747: {cur: 0x61, idx: 0x246}, 748: {cur: 0xe2, idx: 0x3f}, 749: {cur: 0xf8, idx: 0x2f5}, 750: {cur: 0x5b, idx: 0x38f}, 751: {cur: 0x84, idx: 0x309}, 752: {cur: 0x63, idx: 0x42}, 753: {cur: 0xf9, idx: 0x4}, 754: {cur: 0x63, idx: 0x0}, 755: {cur: 0xd0, idx: 0xae}, 756: {cur: 0xe8, idx: 0xb8}, 757: {cur: 0xc6, idx: 0x50a}, 758: {cur: 0x13, idx: 0x0}, 759: {cur: 0x39, idx: 0x0}, 760: {cur: 0x42, idx: 0x0}, 761: {cur: 0x61, idx: 0x0}, 762: {cur: 0x70, idx: 0x0}, 763: {cur: 0x7a, idx: 0x0}, 764: {cur: 0x7b, idx: 0x0}, 765: {cur: 0x83, idx: 0x0}, 766: {cur: 0x8b, idx: 0x0}, 767: {cur: 0xb0, idx: 0x0}, 768: {cur: 0xbe, idx: 0x0}, 769: {cur: 0xc7, idx: 0xa6}, 770: {cur: 0xf3, idx: 0x0}, 771: {cur: 0xf9, idx: 0x0}, 772: {cur: 0x102, idx: 0x0}, 773: {cur: 0x4, idx: 0x3a5}, 774: {cur: 0x13, idx: 0xf0}, 775: {cur: 0xc9, idx: 0x50d}, 776: {cur: 0xe8, idx: 0xb8}, 777: {cur: 0x9, idx: 0x1}, 778: {cur: 0x4a, idx: 0x4aa}, 779: {cur: 0xc9, idx: 0x512}, 780: {cur: 0x97, idx: 0x2f3}, 781: {cur: 0xa8, idx: 0x360}, 782: {cur: 0xb6, idx: 0x4cc}, 783: {cur: 0xc9, idx: 0x4aa}, 784: {cur: 0xe3, idx: 0xb5}, 785: {cur: 0xc2, idx: 0x399}, 786: {cur: 0x27, idx: 0x10}, 787: {cur: 0xc2, idx: 0x0}, 788: {cur: 0xc2, idx: 0x0}, 789: {cur: 0xf9, idx: 0x4}, 790: {cur: 0x24, idx: 0x35a}, 791: {cur: 0x13, idx: 0x0}, 792: {cur: 0x2e, idx: 0x0}, 793: {cur: 0x39, idx: 0x0}, 794: {cur: 0x42, idx: 0x0}, 795: {cur: 0x5c, idx: 0x0}, 796: {cur: 0x61, idx: 0x0}, 797: {cur: 0x70, idx: 0x0}, 798: {cur: 0x7a, idx: 0x0}, 799: {cur: 0x7b, idx: 0x0}, 800: {cur: 0x83, idx: 0x0}, 801: {cur: 0x8b, idx: 0x0}, 802: {cur: 0xb0, idx: 0x0}, 803: {cur: 0xbe, idx: 0x0}, 804: {cur: 0xf3, idx: 0x0}, 805: {cur: 0xf9, idx: 0x0}, 806: {cur: 0x102, idx: 0x0}, 807: {cur: 0x10d, idx: 0x0}, 808: {cur: 0xa0, idx: 0x4f}, 809: {cur: 0xf4, idx: 0x24b}, 810: {cur: 0x0, idx: 0x519}, 811: {cur: 0x83, idx: 0x25}, 812: {cur: 0xd0, idx: 0xae}, 813: {cur: 0xd1, idx: 0x18}, 814: {cur: 0xe8, idx: 0xb8}, 815: {cur: 0xec, idx: 0x51e}, 816: {cur: 0xf5, idx: 0xc7}, 817: {cur: 0xf9, idx: 0x4}, 818: {cur: 0x37, idx: 0x18}, 819: {cur: 0xd1, idx: 0x0}, 820: {cur: 0x85, idx: 0x4bf}, 821: {cur: 0x8e, idx: 0x72}, 822: {cur: 0xa0, idx: 0x4f}, 823: {cur: 0xd2, idx: 0xb2}, 824: {cur: 0xf4, idx: 0x24b}, 825: {cur: 0xd0, idx: 0xae}, 826: {cur: 0x84, idx: 0x309}, 827: {cur: 0xf4, idx: 0x24b}, 828: {cur: 0x50, idx: 0x525}, 829: {cur: 0xbc, idx: 0x30}, 830: {cur: 0xd9, idx: 0x529}, 831: {cur: 0xe8, idx: 0xb8}, 832: {cur: 0xbc, idx: 0x52d}, 833: {cur: 0xd9, idx: 0x30}, 834: {cur: 0xb6, idx: 0x4cc}, 835: {cur: 0x91, idx: 0x531}, 836: {cur: 0xe8, idx: 0xb8}, 837: {cur: 0x112, idx: 0x539}, 838: {cur: 0x13, idx: 0x0}, 839: {cur: 0x2e, idx: 0x0}, 840: {cur: 0x39, idx: 0x0}, 841: {cur: 0x42, idx: 0x0}, 842: {cur: 0x61, idx: 0x0}, 843: {cur: 0x70, idx: 0x0}, 844: {cur: 0x7a, idx: 0x549}, 845: {cur: 0x7b, idx: 0x0}, 846: {cur: 0x83, idx: 0x0}, 847: {cur: 0x8b, idx: 0x0}, 848: {cur: 0xbe, idx: 0x0}, 849: {cur: 0xf3, idx: 0x0}, 850: {cur: 0xf9, idx: 0x0}, 851: {cur: 0x102, idx: 0x0}, 852: {cur: 0x39, idx: 0x0}, 853: {cur: 0x83, idx: 0x25}, 854: {cur: 0xe8, idx: 0xb8}, 855: {cur: 0xf9, idx: 0x4}, 856: {cur: 0xdf, idx: 0x244}, 857: {cur: 0x4f, idx: 0x23c}, 858: {cur: 0x5b, idx: 0x38f}, 859: {cur: 0x84, idx: 0x309}, 860: {cur: 0x6, idx: 0x54d}, 861: {cur: 0xe8, idx: 0xb8}, 862: {cur: 0xa3, idx: 0x553}, 863: {cur: 0x13, idx: 0x0}, 864: {cur: 0x18, idx: 0x2d7}, 865: {cur: 0x21, idx: 0x557}, 866: {cur: 0x37, idx: 0x55d}, 867: {cur: 0x83, idx: 0x25}, 868: {cur: 0x8b, idx: 0x0}, 869: {cur: 0xbe, idx: 0x0}, 870: {cur: 0x102, idx: 0x0}, 871: {cur: 0x13, idx: 0x0}, 872: {cur: 0x18, idx: 0x9}, 873: {cur: 0x21, idx: 0x557}, 874: {cur: 0x37, idx: 0x55d}, 875: {cur: 0x83, idx: 0x25}, 876: {cur: 0x8b, idx: 0x0}, 877: {cur: 0xbe, idx: 0x0}, 878: {cur: 0x102, idx: 0x0}, 879: {cur: 0x13, idx: 0x0}, 880: {cur: 0x1a, idx: 0x257}, 881: {cur: 0x25, idx: 0x11b}, 882: {cur: 0x2e, idx: 0x571}, 883: {cur: 0x32, idx: 0x123}, 884: {cur: 0x38, idx: 0x127}, 885: {cur: 0x42, idx: 0x0}, 886: {cur: 0x50, idx: 0x525}, 887: {cur: 0x51, idx: 0x26c}, 888: {cur: 0x55, idx: 0x575}, 889: {cur: 0x56, idx: 0x579}, 890: {cur: 0x61, idx: 0x0}, 891: {cur: 0x70, idx: 0x0}, 892: {cur: 0x7b, idx: 0x0}, 893: {cur: 0x7f, idx: 0x57e}, 894: {cur: 0x81, idx: 0x176}, 895: {cur: 0x83, idx: 0x0}, 896: {cur: 0x8b, idx: 0x0}, 897: {cur: 0xbc, idx: 0x52d}, 898: {cur: 0xbe, idx: 0x0}, 899: {cur: 0xd9, idx: 0x30}, 900: {cur: 0xf3, idx: 0x0}, 901: {cur: 0x102, idx: 0x0}, 902: {cur: 0x84, idx: 0x309}, 903: {cur: 0xe8, idx: 0xb8}, 904: {cur: 0xf4, idx: 0x24b}, 905: {cur: 0x3a, idx: 0x32b}, 906: {cur: 0xf8, idx: 0x2f5}, 907: {cur: 0x83, idx: 0x25}, 908: {cur: 0xe8, idx: 0xb8}, 909: {cur: 0xf9, idx: 0x4}, 910: {cur: 0x91, idx: 0x582}, 911: {cur: 0xb3, idx: 0x94}, 912: {cur: 0xda, idx: 0x296}, 913: {cur: 0xb3, idx: 0x94}, 914: {cur: 0xda, idx: 0x4}, 915: {cur: 0xf9, idx: 0xcb}, 916: {cur: 0xe8, idx: 0xb8}, 917: {cur: 0xf9, idx: 0x4}, 918: {cur: 0xf8, idx: 0x2f5}, 919: {cur: 0x84, idx: 0x309}, 920: {cur: 0x13, idx: 0xf0}, 921: {cur: 0x83, idx: 0x25}, 922: {cur: 0x5b, idx: 0x38f}, 923: {cur: 0x57, idx: 0x240}, 924: {cur: 0x5c, idx: 0x0}, 925: {cur: 0x61, idx: 0x0}, 926: {cur: 0x13, idx: 0x586}, 927: {cur: 0xbe, idx: 0x58b}, 928: {cur: 0xee, idx: 0xbc}, 929: {cur: 0x13, idx: 0xf0}, 930: {cur: 0x83, idx: 0x25}, 931: {cur: 0xe8, idx: 0xb8}, 932: {cur: 0xf1, idx: 0xbf}, 933: {cur: 0xf9, idx: 0x4}, 934: {cur: 0x42, idx: 0x4a6}, 935: {cur: 0xf9, idx: 0x4}, 936: {cur: 0x13, idx: 0x0}, 937: {cur: 0x2e, idx: 0x0}, 938: {cur: 0x39, idx: 0x0}, 939: {cur: 0x42, idx: 0x0}, 940: {cur: 0x5c, idx: 0x0}, 941: {cur: 0x61, idx: 0x0}, 942: {cur: 0x70, idx: 0x0}, 943: {cur: 0x7a, idx: 0x0}, 944: {cur: 0x7b, idx: 0x0}, 945: {cur: 0x83, idx: 0x25}, 946: {cur: 0x8b, idx: 0x0}, 947: {cur: 0xb0, idx: 0x0}, 948: {cur: 0xbe, idx: 0x0}, 949: {cur: 0xf3, idx: 0x0}, 950: {cur: 0xf5, idx: 0xc7}, 951: {cur: 0xf6, idx: 0x590}, 952: {cur: 0xf9, idx: 0x0}, 953: {cur: 0x102, idx: 0x0}, 954: {cur: 0x10d, idx: 0x0}, 955: {cur: 0xc6, idx: 0x7e}, 956: {cur: 0xe8, idx: 0xb8}, 957: {cur: 0xf9, idx: 0x4}, 958: {cur: 0xc6, idx: 0x0}, 959: {cur: 0xff, idx: 0x598}, 960: {cur: 0x4, idx: 0x3a5}, 961: {cur: 0xe8, idx: 0xb8}, 962: {cur: 0xff, idx: 0x59e}, 963: {cur: 0x92, idx: 0x4}, 964: {cur: 0x92, idx: 0x4}, 965: {cur: 0x13, idx: 0xf0}, 966: {cur: 0xe8, idx: 0xb8}, 967: {cur: 0xf4, idx: 0x24b}, 968: {cur: 0x83, idx: 0x25}, 969: {cur: 0xf9, idx: 0x4}, 970: {cur: 0xf8, idx: 0x2f5}, 971: {cur: 0xb8, idx: 0x97}, 972: {cur: 0x13, idx: 0xf0}, 973: {cur: 0x83, idx: 0x25}, 974: {cur: 0x8b, idx: 0x5a5}, 975: {cur: 0xf3, idx: 0x4}, 976: {cur: 0x13, idx: 0xf0}, 977: {cur: 0x42, idx: 0x4a6}, 978: {cur: 0x79, idx: 0x5a9}, 979: {cur: 0x8b, idx: 0x5a5}, 980: {cur: 0x42, idx: 0x20}, 981: {cur: 0x42, idx: 0x20}, 982: {cur: 0xa8, idx: 0x360}, 983: {cur: 0x42, idx: 0x20}, 984: {cur: 0xda, idx: 0x4}, 985: {cur: 0x13, idx: 0xf0}, 986: {cur: 0x83, idx: 0x25}, 987: {cur: 0x8b, idx: 0x5a5}, 988: {cur: 0xf3, idx: 0x4}, 989: {cur: 0x8b, idx: 0x6e}, 990: {cur: 0xf3, idx: 0xc3}, 991: {cur: 0xa8, idx: 0x360}, 992: {cur: 0xe8, idx: 0xb8}, 993: {cur: 0x122, idx: 0xe5}, } // Size: 4000 bytes var narrowLangIndex = []uint16{ // 748 elements // Entry 0 - 3F 0x0000, 0x0061, 0x0061, 0x0061, 0x0062, 0x0062, 0x0062, 0x0062, 0x0062, 0x0062, 0x0062, 0x0063, 0x0063, 0x0080, 0x0080, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x0081, 0x008a, 0x008a, 0x008c, 0x008c, 0x008c, 0x008c, 0x008c, 0x008c, 0x008c, 0x00a5, 0x00a5, 0x00a5, 0x00a5, 0x00a5, 0x00a5, 0x00d4, 0x00d4, 0x00d4, // Entry 40 - 7F 0x00d4, 0x00d4, 0x00d5, 0x00d5, 0x00d5, 0x00d5, 0x00d5, 0x00d5, 0x00d8, 0x00d8, 0x00d8, 0x00d8, 0x00d9, 0x00d9, 0x00d9, 0x00d9, 0x00d9, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e3, 0x00e4, 0x00e4, 0x00e4, 0x00e4, 0x00ea, 0x00ea, 0x00ef, 0x00ef, 0x00ef, 0x00ef, 0x00ef, 0x00f7, 0x00f7, 0x00f7, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, // Entry 80 - BF 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x00f8, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, // Entry C0 - FF 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0102, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, 0x0104, // Entry 100 - 13F 0x0108, 0x0108, 0x0108, 0x0108, 0x0108, 0x0108, 0x0108, 0x0108, 0x0108, 0x0108, 0x0109, 0x010a, 0x010a, 0x010b, 0x010b, 0x010b, 0x010b, 0x010b, 0x010b, 0x010b, 0x010b, 0x010b, 0x010b, 0x010b, 0x010b, 0x010d, 0x010d, 0x010e, 0x010e, 0x010e, 0x010e, 0x010e, 0x0115, 0x0115, 0x0115, 0x0115, 0x0115, 0x0115, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, // Entry 140 - 17F 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0118, 0x0119, 0x0119, 0x011a, 0x011a, 0x011c, 0x011c, 0x011c, 0x011c, 0x011c, 0x011c, 0x011e, 0x011e, 0x011e, 0x011e, 0x011e, 0x011e, 0x011e, 0x011e, 0x011e, 0x011e, 0x011e, 0x011e, 0x011e, 0x011f, 0x011f, 0x0122, 0x0122, 0x0123, 0x0123, 0x0123, 0x0123, 0x0123, 0x0124, 0x0124, 0x0125, 0x0125, 0x0126, 0x0126, 0x0126, 0x0126, 0x0126, 0x0126, 0x0127, 0x0127, 0x012d, // Entry 180 - 1BF 0x012d, 0x012d, 0x012d, 0x012d, 0x0130, 0x0130, 0x0130, 0x0130, 0x0130, 0x0130, 0x0130, 0x0130, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0131, 0x0132, 0x0132, 0x0132, 0x0132, 0x0132, 0x0132, 0x0132, 0x0132, 0x0133, 0x0133, 0x0134, 0x0134, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0135, 0x0140, 0x0140, 0x0140, 0x0140, 0x0141, 0x0141, 0x0141, 0x0141, // Entry 1C0 - 1FF 0x0141, 0x0141, 0x0141, 0x0141, 0x0141, 0x0141, 0x0141, 0x0142, 0x0142, 0x0142, 0x0142, 0x0142, 0x014d, 0x014d, 0x014d, 0x014d, 0x014d, 0x014d, 0x014d, 0x014d, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014e, 0x014f, 0x014f, 0x0150, 0x0150, 0x0151, 0x0151, 0x0152, 0x0152, 0x0153, 0x0153, 0x0153, 0x0153, 0x0153, 0x0153, 0x0153, 0x0153, 0x0154, 0x0154, 0x0154, 0x0154, 0x0154, 0x0154, 0x0154, 0x0155, 0x0155, 0x0155, 0x0155, 0x0155, 0x0155, // Entry 200 - 23F 0x0155, 0x0155, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0156, 0x0157, 0x0157, 0x0157, 0x0157, 0x0157, 0x0157, 0x0158, 0x0158, 0x0158, 0x0158, 0x0158, 0x0158, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, 0x0159, // Entry 240 - 27F 0x0159, 0x0159, 0x015a, 0x015a, 0x015a, 0x015a, 0x015a, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015b, 0x015d, 0x015d, 0x015e, 0x015e, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x015f, 0x0161, // Entry 280 - 2BF 0x0161, 0x0161, 0x0161, 0x0161, 0x0161, 0x0164, 0x0164, 0x0164, 0x0164, 0x0164, 0x0164, 0x0164, 0x0164, 0x0166, 0x0166, 0x0166, 0x0166, 0x0167, 0x0167, 0x0167, 0x0167, 0x0167, 0x0167, 0x0168, 0x0168, 0x0168, 0x0168, 0x0168, 0x0169, 0x0169, 0x0169, 0x0169, 0x0169, 0x016a, 0x016a, 0x016a, 0x016a, 0x016a, 0x016a, 0x016a, 0x016a, 0x016a, 0x016a, 0x016a, 0x016b, 0x016b, 0x016b, 0x016b, 0x016b, 0x016b, 0x016b, 0x016b, 0x016b, 0x016b, 0x016c, 0x016c, 0x016d, 0x016d, 0x016d, 0x016d, 0x016d, 0x016d, 0x016d, 0x016d, // Entry 2C0 - 2FF 0x016d, 0x016d, 0x016d, 0x016d, 0x016d, 0x016d, 0x016d, 0x016d, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016e, 0x016f, 0x016f, 0x016f, 0x016f, 0x016f, 0x016f, 0x016f, 0x016f, 0x016f, 0x016f, 0x0177, 0x0177, } // Size: 1520 bytes var narrowSymIndex = []curToIndex{ // 375 elements 0: {cur: 0x9, idx: 0x1}, 1: {cur: 0x11, idx: 0x4}, 2: {cur: 0x13, idx: 0x4}, 3: {cur: 0x18, idx: 0x9}, 4: {cur: 0x1a, idx: 0x4}, 5: {cur: 0x1b, idx: 0xc}, 6: {cur: 0x25, idx: 0x4}, 7: {cur: 0x26, idx: 0x4}, 8: {cur: 0x27, idx: 0x10}, 9: {cur: 0x2e, idx: 0x13}, 10: {cur: 0x32, idx: 0x4}, 11: {cur: 0x35, idx: 0x16}, 12: {cur: 0x37, idx: 0x18}, 13: {cur: 0x38, idx: 0x4}, 14: {cur: 0x39, idx: 0x4}, 15: {cur: 0x40, idx: 0x4}, 16: {cur: 0x42, idx: 0x25}, 17: {cur: 0x43, idx: 0x4}, 18: {cur: 0x45, idx: 0x28}, 19: {cur: 0x48, idx: 0x4}, 20: {cur: 0x49, idx: 0x4}, 21: {cur: 0x4c, idx: 0x2c}, 22: {cur: 0x50, idx: 0x30}, 23: {cur: 0x51, idx: 0x4}, 24: {cur: 0x56, idx: 0x33}, 25: {cur: 0x5a, idx: 0x37}, 26: {cur: 0x5c, idx: 0x3b}, 27: {cur: 0x5e, idx: 0x4}, 28: {cur: 0x5f, idx: 0x3f}, 29: {cur: 0x61, idx: 0x3f}, 30: {cur: 0x63, idx: 0x42}, 31: {cur: 0x66, idx: 0x3f}, 32: {cur: 0x68, idx: 0x46}, 33: {cur: 0x6c, idx: 0x49}, 34: {cur: 0x6f, idx: 0x4}, 35: {cur: 0x70, idx: 0x4}, 36: {cur: 0x71, idx: 0x4f}, 37: {cur: 0x73, idx: 0x51}, 38: {cur: 0x75, idx: 0x54}, 39: {cur: 0x76, idx: 0x57}, 40: {cur: 0x7a, idx: 0x5a}, 41: {cur: 0x7b, idx: 0x5e}, 42: {cur: 0x7f, idx: 0x30}, 43: {cur: 0x81, idx: 0x4}, 44: {cur: 0x83, idx: 0x25}, 45: {cur: 0x86, idx: 0x67}, 46: {cur: 0x87, idx: 0x6b}, 47: {cur: 0x88, idx: 0x6e}, 48: {cur: 0x8b, idx: 0x6e}, 49: {cur: 0x8d, idx: 0x4}, 50: {cur: 0x8e, idx: 0x72}, 51: {cur: 0x8f, idx: 0x76}, 52: {cur: 0x90, idx: 0x7a}, 53: {cur: 0x91, idx: 0x7e}, 54: {cur: 0x92, idx: 0x4}, 55: {cur: 0x94, idx: 0x81}, 56: {cur: 0x99, idx: 0x84}, 57: {cur: 0xa1, idx: 0x87}, 58: {cur: 0xa6, idx: 0x8a}, 59: {cur: 0xa7, idx: 0x8c}, 60: {cur: 0xac, idx: 0x7e}, 61: {cur: 0xb0, idx: 0x4}, 62: {cur: 0xb3, idx: 0x94}, 63: {cur: 0xb7, idx: 0x4}, 64: {cur: 0xb8, idx: 0x97}, 65: {cur: 0xba, idx: 0x9b}, 66: {cur: 0xbc, idx: 0x30}, 67: {cur: 0xbd, idx: 0x7e}, 68: {cur: 0xbe, idx: 0x4}, 69: {cur: 0xc5, idx: 0xa2}, 70: {cur: 0xc6, idx: 0x7e}, 71: {cur: 0xc7, idx: 0xa6}, 72: {cur: 0xca, idx: 0xaa}, 73: {cur: 0xd0, idx: 0xae}, 74: {cur: 0xd1, idx: 0x18}, 75: {cur: 0xd2, idx: 0xb2}, 76: {cur: 0xd4, idx: 0x4}, 77: {cur: 0xd9, idx: 0x30}, 78: {cur: 0xda, idx: 0x4}, 79: {cur: 0xdb, idx: 0x3f}, 80: {cur: 0xe0, idx: 0x4}, 81: {cur: 0xe2, idx: 0x3f}, 82: {cur: 0xe3, idx: 0xb5}, 83: {cur: 0xe6, idx: 0x3f}, 84: {cur: 0xe8, idx: 0xb8}, 85: {cur: 0xee, idx: 0xbc}, 86: {cur: 0xf1, idx: 0xbf}, 87: {cur: 0xf2, idx: 0x4}, 88: {cur: 0xf3, idx: 0x4}, 89: {cur: 0xf5, idx: 0xc7}, 90: {cur: 0xf9, idx: 0x4}, 91: {cur: 0xfe, idx: 0x4}, 92: {cur: 0x101, idx: 0x10}, 93: {cur: 0x102, idx: 0xcf}, 94: {cur: 0x10d, idx: 0x4}, 95: {cur: 0x122, idx: 0xe5}, 96: {cur: 0x124, idx: 0xe7}, 97: {cur: 0xf3, idx: 0xc3}, 98: {cur: 0xf3, idx: 0xc3}, 99: {cur: 0x11, idx: 0x109}, 100: {cur: 0x13, idx: 0xf0}, 101: {cur: 0x1a, idx: 0x10d}, 102: {cur: 0x25, idx: 0x11b}, 103: {cur: 0x26, idx: 0x11f}, 104: {cur: 0x32, idx: 0x123}, 105: {cur: 0x38, idx: 0x127}, 106: {cur: 0x39, idx: 0x1c}, 107: {cur: 0x40, idx: 0x12b}, 108: {cur: 0x42, idx: 0x20}, 109: {cur: 0x43, idx: 0x12f}, 110: {cur: 0x49, idx: 0x133}, 111: {cur: 0x51, idx: 0x137}, 112: {cur: 0x5e, idx: 0x14f}, 113: {cur: 0x61, idx: 0x153}, 114: {cur: 0x6f, idx: 0x158}, 115: {cur: 0x70, idx: 0x4b}, 116: {cur: 0x81, idx: 0x176}, 117: {cur: 0x83, idx: 0x62}, 118: {cur: 0x8d, idx: 0x19b}, 119: {cur: 0xb0, idx: 0x90}, 120: {cur: 0xbe, idx: 0x9e}, 121: {cur: 0xd4, idx: 0x1ec}, 122: {cur: 0xe0, idx: 0x201}, 123: {cur: 0xe2, idx: 0x205}, 124: {cur: 0xf2, idx: 0x22a}, 125: {cur: 0xf3, idx: 0xc3}, 126: {cur: 0xf9, idx: 0xcb}, 127: {cur: 0xfe, idx: 0x22e}, 128: {cur: 0x26, idx: 0x4}, 129: {cur: 0x37, idx: 0x0}, 130: {cur: 0x50, idx: 0x0}, 131: {cur: 0x73, idx: 0x0}, 132: {cur: 0x7f, idx: 0x0}, 133: {cur: 0xbc, idx: 0x0}, 134: {cur: 0xc7, idx: 0x0}, 135: {cur: 0xd1, idx: 0x0}, 136: {cur: 0xd9, idx: 0x0}, 137: {cur: 0xf3, idx: 0xc3}, 138: {cur: 0xe6, idx: 0x253}, 139: {cur: 0xf3, idx: 0xc3}, 140: {cur: 0x13, idx: 0x6}, 141: {cur: 0x1a, idx: 0x257}, 142: {cur: 0x25, idx: 0x25c}, 143: {cur: 0x32, idx: 0x260}, 144: {cur: 0x38, idx: 0x127}, 145: {cur: 0x39, idx: 0x1c}, 146: {cur: 0x48, idx: 0x263}, 147: {cur: 0x49, idx: 0x268}, 148: {cur: 0x51, idx: 0x26c}, 149: {cur: 0x5e, idx: 0x14f}, 150: {cur: 0x5f, idx: 0x270}, 151: {cur: 0x6f, idx: 0x275}, 152: {cur: 0x7f, idx: 0x278}, 153: {cur: 0x81, idx: 0x27d}, 154: {cur: 0x8d, idx: 0x280}, 155: {cur: 0x92, idx: 0x284}, 156: {cur: 0xb0, idx: 0x90}, 157: {cur: 0xb7, idx: 0x287}, 158: {cur: 0xbe, idx: 0x9e}, 159: {cur: 0xd0, idx: 0x28a}, 160: {cur: 0xd4, idx: 0x292}, 161: {cur: 0xda, idx: 0x296}, 162: {cur: 0xf2, idx: 0x22a}, 163: {cur: 0xfe, idx: 0x299}, 164: {cur: 0x10d, idx: 0xd8}, 165: {cur: 0x11, idx: 0x0}, 166: {cur: 0x13, idx: 0x0}, 167: {cur: 0x1a, idx: 0x0}, 168: {cur: 0x1b, idx: 0x0}, 169: {cur: 0x25, idx: 0x0}, 170: {cur: 0x26, idx: 0x0}, 171: {cur: 0x2e, idx: 0x0}, 172: {cur: 0x32, idx: 0x0}, 173: {cur: 0x37, idx: 0x0}, 174: {cur: 0x38, idx: 0x0}, 175: {cur: 0x39, idx: 0x0}, 176: {cur: 0x40, idx: 0x0}, 177: {cur: 0x42, idx: 0x0}, 178: {cur: 0x43, idx: 0x0}, 179: {cur: 0x45, idx: 0x0}, 180: {cur: 0x49, idx: 0x0}, 181: {cur: 0x51, idx: 0x0}, 182: {cur: 0x5e, idx: 0x0}, 183: {cur: 0x66, idx: 0x0}, 184: {cur: 0x6f, idx: 0x0}, 185: {cur: 0x70, idx: 0x0}, 186: {cur: 0x7a, idx: 0x0}, 187: {cur: 0x7b, idx: 0x0}, 188: {cur: 0x81, idx: 0x0}, 189: {cur: 0x86, idx: 0x0}, 190: {cur: 0x8b, idx: 0x0}, 191: {cur: 0x8d, idx: 0x0}, 192: {cur: 0x8e, idx: 0x0}, 193: {cur: 0x8f, idx: 0x0}, 194: {cur: 0x92, idx: 0x0}, 195: {cur: 0xa7, idx: 0x0}, 196: {cur: 0xb0, idx: 0x0}, 197: {cur: 0xb7, idx: 0x0}, 198: {cur: 0xb8, idx: 0x0}, 199: {cur: 0xbe, idx: 0x0}, 200: {cur: 0xc5, idx: 0x0}, 201: {cur: 0xca, idx: 0x0}, 202: {cur: 0xd4, idx: 0x0}, 203: {cur: 0xda, idx: 0x0}, 204: {cur: 0xe0, idx: 0x0}, 205: {cur: 0xe2, idx: 0x0}, 206: {cur: 0xf1, idx: 0x0}, 207: {cur: 0xf2, idx: 0x0}, 208: {cur: 0xf3, idx: 0x0}, 209: {cur: 0xf5, idx: 0x0}, 210: {cur: 0xfe, idx: 0x0}, 211: {cur: 0x102, idx: 0x0}, 212: {cur: 0xf3, idx: 0xc3}, 213: {cur: 0x56, idx: 0x2b0}, 214: {cur: 0x90, idx: 0x2c0}, 215: {cur: 0xee, idx: 0x2c9}, 216: {cur: 0xf3, idx: 0xc3}, 217: {cur: 0x9, idx: 0x0}, 218: {cur: 0x27, idx: 0x0}, 219: {cur: 0x50, idx: 0x0}, 220: {cur: 0x6c, idx: 0x0}, 221: {cur: 0x71, idx: 0x0}, 222: {cur: 0x7f, idx: 0x0}, 223: {cur: 0xbc, idx: 0x0}, 224: {cur: 0xd9, idx: 0x0}, 225: {cur: 0xe3, idx: 0x0}, 226: {cur: 0x101, idx: 0x0}, 227: {cur: 0xf3, idx: 0xc3}, 228: {cur: 0x1b, idx: 0x302}, 229: {cur: 0x35, idx: 0x0}, 230: {cur: 0x70, idx: 0x4b}, 231: {cur: 0xf3, idx: 0xc3}, 232: {cur: 0x122, idx: 0x0}, 233: {cur: 0x124, idx: 0x0}, 234: {cur: 0x50, idx: 0x305}, 235: {cur: 0x7f, idx: 0x305}, 236: {cur: 0xbc, idx: 0x305}, 237: {cur: 0xd9, idx: 0x305}, 238: {cur: 0xf3, idx: 0xc3}, 239: {cur: 0x48, idx: 0x319}, 240: {cur: 0x5f, idx: 0x321}, 241: {cur: 0x68, idx: 0x326}, 242: {cur: 0x87, idx: 0x32b}, 243: {cur: 0xd2, idx: 0x32e}, 244: {cur: 0xe6, idx: 0x0}, 245: {cur: 0xf3, idx: 0xc3}, 246: {cur: 0x124, idx: 0x8a}, 247: {cur: 0x5c, idx: 0x0}, 248: {cur: 0x1b, idx: 0x34a}, 249: {cur: 0x27, idx: 0x34d}, 250: {cur: 0x49, idx: 0xa2}, 251: {cur: 0x56, idx: 0x3f}, 252: {cur: 0x7f, idx: 0x350}, 253: {cur: 0xca, idx: 0x353}, 254: {cur: 0xd9, idx: 0x350}, 255: {cur: 0xfe, idx: 0x299}, 256: {cur: 0x56, idx: 0x0}, 257: {cur: 0xf3, idx: 0xc3}, 258: {cur: 0x56, idx: 0x33}, 259: {cur: 0x101, idx: 0x37c}, 260: {cur: 0x11, idx: 0x387}, 261: {cur: 0x37, idx: 0x38f}, 262: {cur: 0x51, idx: 0x26c}, 263: {cur: 0xf1, idx: 0x392}, 264: {cur: 0x101, idx: 0x3a1}, 265: {cur: 0xf3, idx: 0xc3}, 266: {cur: 0xf3, idx: 0xc3}, 267: {cur: 0xf3, idx: 0xc3}, 268: {cur: 0xfe, idx: 0x299}, 269: {cur: 0xf3, idx: 0xc3}, 270: {cur: 0x56, idx: 0x3f4}, 271: {cur: 0x87, idx: 0x32b}, 272: {cur: 0x90, idx: 0x2c0}, 273: {cur: 0xba, idx: 0x429}, 274: {cur: 0xd2, idx: 0x430}, 275: {cur: 0xf3, idx: 0xc3}, 276: {cur: 0x124, idx: 0x450}, 277: {cur: 0x87, idx: 0x6b}, 278: {cur: 0xba, idx: 0x9b}, 279: {cur: 0x124, idx: 0xe7}, 280: {cur: 0xf3, idx: 0xc3}, 281: {cur: 0xf3, idx: 0xc3}, 282: {cur: 0x2e, idx: 0x47c}, 283: {cur: 0xf3, idx: 0xc3}, 284: {cur: 0xac, idx: 0x488}, 285: {cur: 0xf3, idx: 0xc3}, 286: {cur: 0xf3, idx: 0xc3}, 287: {cur: 0xac, idx: 0x497}, 288: {cur: 0xc6, idx: 0x497}, 289: {cur: 0xf3, idx: 0xc3}, 290: {cur: 0xf3, idx: 0xc3}, 291: {cur: 0xf3, idx: 0xc3}, 292: {cur: 0xf3, idx: 0xc3}, 293: {cur: 0xf3, idx: 0xc3}, 294: {cur: 0xf3, idx: 0xc3}, 295: {cur: 0x27, idx: 0x34d}, 296: {cur: 0x37, idx: 0x38f}, 297: {cur: 0x48, idx: 0x263}, 298: {cur: 0x56, idx: 0x3f4}, 299: {cur: 0xbc, idx: 0x49e}, 300: {cur: 0xf3, idx: 0xc3}, 301: {cur: 0x42, idx: 0x4a6}, 302: {cur: 0x83, idx: 0x4a6}, 303: {cur: 0xf3, idx: 0xc3}, 304: {cur: 0xf3, idx: 0xc3}, 305: {cur: 0xf3, idx: 0xc3}, 306: {cur: 0xf3, idx: 0xc3}, 307: {cur: 0xf3, idx: 0xc3}, 308: {cur: 0xf3, idx: 0xc3}, 309: {cur: 0x25, idx: 0x25c}, 310: {cur: 0x32, idx: 0x260}, 311: {cur: 0x38, idx: 0x127}, 312: {cur: 0x39, idx: 0x9b}, 313: {cur: 0x51, idx: 0x26c}, 314: {cur: 0x56, idx: 0x4b9}, 315: {cur: 0x70, idx: 0x4b}, 316: {cur: 0x73, idx: 0x4bc}, 317: {cur: 0x81, idx: 0x27d}, 318: {cur: 0xf2, idx: 0x22a}, 319: {cur: 0xf3, idx: 0xc3}, 320: {cur: 0xf3, idx: 0xc3}, 321: {cur: 0xf3, idx: 0xc3}, 322: {cur: 0x1b, idx: 0x0}, 323: {cur: 0x37, idx: 0x38f}, 324: {cur: 0x7a, idx: 0x0}, 325: {cur: 0x7b, idx: 0x0}, 326: {cur: 0x86, idx: 0x0}, 327: {cur: 0x8f, idx: 0x0}, 328: {cur: 0xa7, idx: 0x0}, 329: {cur: 0xc7, idx: 0x4c6}, 330: {cur: 0xca, idx: 0x353}, 331: {cur: 0xd0, idx: 0x4c9}, 332: {cur: 0x102, idx: 0x0}, 333: {cur: 0xf3, idx: 0xc3}, 334: {cur: 0xf3, idx: 0xc3}, 335: {cur: 0xf3, idx: 0xc3}, 336: {cur: 0xf3, idx: 0xc3}, 337: {cur: 0xf3, idx: 0xc3}, 338: {cur: 0xf3, idx: 0xc3}, 339: {cur: 0x38, idx: 0x4d7}, 340: {cur: 0xf3, idx: 0xc3}, 341: {cur: 0xf3, idx: 0xc3}, 342: {cur: 0xf3, idx: 0xc3}, 343: {cur: 0xf3, idx: 0xc3}, 344: {cur: 0xf3, idx: 0xc3}, 345: {cur: 0xf3, idx: 0xc3}, 346: {cur: 0xf3, idx: 0xc3}, 347: {cur: 0x91, idx: 0x531}, 348: {cur: 0xf3, idx: 0xc3}, 349: {cur: 0xf3, idx: 0xc3}, 350: {cur: 0xf3, idx: 0xc3}, 351: {cur: 0xd0, idx: 0x563}, 352: {cur: 0xf3, idx: 0xc3}, 353: {cur: 0x37, idx: 0x56a}, 354: {cur: 0xd0, idx: 0x56d}, 355: {cur: 0xf3, idx: 0xc3}, 356: {cur: 0x5a, idx: 0x0}, 357: {cur: 0xf3, idx: 0xc3}, 358: {cur: 0xf3, idx: 0xc3}, 359: {cur: 0xf3, idx: 0xc3}, 360: {cur: 0xf3, idx: 0xc3}, 361: {cur: 0xf3, idx: 0xc3}, 362: {cur: 0xf3, idx: 0xc3}, 363: {cur: 0xf3, idx: 0xc3}, 364: {cur: 0xf3, idx: 0xc3}, 365: {cur: 0xf3, idx: 0xc3}, 366: {cur: 0xf3, idx: 0xc3}, 367: {cur: 0x37, idx: 0x5ad}, 368: {cur: 0x50, idx: 0x350}, 369: {cur: 0x73, idx: 0x4bc}, 370: {cur: 0x7f, idx: 0x350}, 371: {cur: 0xbc, idx: 0x350}, 372: {cur: 0xc7, idx: 0x5b0}, 373: {cur: 0xd9, idx: 0x350}, 374: {cur: 0xf3, idx: 0xc3}, } // Size: 1524 bytes // Total table size 18192 bytes (17KiB); checksum: 61A71530
{ "pile_set_name": "Github" }
# GENERATED VERSION FILE # TIME: Sun May 24 21:24:18 2020 __version__ = '1.0.rc0' short_version = '1.0.rc0'
{ "pile_set_name": "Github" }
/* * Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ package com.amazonaws.services.rekognition.model.transform; import com.amazonaws.services.rekognition.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.amazonaws.util.json.AwsJsonReader; /** * JSON unmarshaller for POJO Emotion */ class EmotionJsonUnmarshaller implements Unmarshaller<Emotion, JsonUnmarshallerContext> { public Emotion unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Emotion emotion = new Emotion(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Type")) { emotion.setType(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Confidence")) { emotion.setConfidence(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return emotion; } private static EmotionJsonUnmarshaller instance; public static EmotionJsonUnmarshaller getInstance() { if (instance == null) instance = new EmotionJsonUnmarshaller(); return instance; } }
{ "pile_set_name": "Github" }
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. // // You are hereby granted a non-exclusive, worldwide, royalty-free license to use, // copy, modify, and distribute this software in source code or binary form for use // in connection with the web services and APIs provided by Facebook. // // As with any software that integrates with the Facebook platform, your use of // this software is subject to the Facebook Developer Principles and Policies // [http://developers.facebook.com/policy/]. This copyright 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 AUTHORS OR // COPYRIGHT HOLDERS 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. // // @generated // "com_accountkit_account_verified" = "Korisnički račun potvrđen!"; "com_accountkit_button_begin" = "Započni"; "com_accountkit_button_cancel" = "Odustani"; "com_accountkit_button_confirm" = "Potvrdi"; "com_accountkit_button_continue" = "Nastavi"; "com_accountkit_button_edit" = "UREDI"; "com_accountkit_button_log_in" = "Prijavi se"; "com_accountkit_button_next" = "Dalje"; "com_accountkit_button_ok" = "U redu"; "com_accountkit_button_resend_code_in" = "Ponovo pošaljite SMS za %1$d"; "com_accountkit_button_resend_sms" = "Ponovo pošalji SMS"; "com_accountkit_button_send" = "Pošalji"; "com_accountkit_button_send_code_in_call" = "Primite poziv"; "com_accountkit_button_send_code_in_call_details" = "Preuzmite kôd u glasovnom pozivu"; "com_accountkit_button_send_code_in_call_from_facebook_details" = "Preuzmite kôd u glasovnom pozivu iz Facebooka"; "com_accountkit_button_send_code_in_fb" = "Preuzmite kôd na Facebooku"; "com_accountkit_button_send_code_in_fb_details" = "Kôd će stići u obliku obavijesti s Facebooka"; "com_accountkit_button_start" = "Početak"; "com_accountkit_button_start_over" = "Pokušajte ponovno"; "com_accountkit_button_submit" = "Pošalji"; "com_accountkit_check_email" = "Otvorite e-poštu"; "com_accountkit_code_sent_to" = "Potvrdite svoj broj mobitela %1$@"; "com_accountkit_confirmation_code_agreement" = "Dodirnite %1$@ za prihvaćanje Facebookovih <a href=\"%2$@\">Uvjeta</a>, <a href=\"%3$@\">Pravila o upotrebi podataka</a> te <a href=\"%4$@\">pravila o upotrebi kolačića</a>."; "com_accountkit_confirmation_code_agreement_app_privacy_policy" = "Dodirnite %1$@ za prihvaćanje Facebookovih <a href=\"%2$@\">Uvjeta</a>, <a href=\"%3$@\">Pravila o upotrebi podataka</a>, <a href=\"%4$@\">pravila o upotrebi kolačića</a> i <a href=\"%5$@\">Pravila o zaštiti privatnosti</a> koje primjenjuje %6$@."; "com_accountkit_confirmation_code_agreement_app_privacy_policy_and_terms" = "Dodirnite %1$@ za prihvaćanje Facebookovih <a href=\"%2$@\">Uvjeta</a>, <a href=\"%3$@\">Pravila o upotrebi podataka</a>, <a href=\"%4$@\">pravila o upotrebi kolačića</a> i <a href=\"%5$@\">Pravila o zaštiti privatnosti</a>, kao i <a href=\"%6$@\">Uvjeta pružanja usluge</a> koje primjenjuje %7$@."; "com_accountkit_confirmation_code_agreement_app_privacy_policy_and_terms_instant_verification" = "Dodirnite %1$@ za prihvaćanje Facebookovih <a href=\"%2$@\">Uvjeta</a>, <a href=\"%3$@\">Pravila o upotrebi podataka</a>, <a href=\"%4$@\">pravila o upotrebi kolačića</a> te <a href=\"%5$@\">Pravila o zaštiti privatnosti</a> te <a href=\"%6$@\">Uvjeta pružanja usluge</a> koje primjenjuje %7$@. <a href=\"%8$@\">Saznajte više</a> o tome kako smo potvrdili vaš račun."; "com_accountkit_confirmation_code_agreement_app_privacy_policy_instant_verification" = "Dodirnite %1$@ za prihvaćanje Facebookovih <a href=\"%2$@\">Uvjeta</a>, <a href=\"%3$@\">Pravila o upotrebi podataka</a>, <a href=\"%4$@\">pravila o upotrebi kolačića</a> te <a href=\"%5$@\">Pravila o zaštiti privatnosti</a> koje primjenjuje %6$@. <a href=\"%7$@\">Saznajte više</a> o tome kako smo potvrdili vaš račun."; "com_accountkit_confirmation_code_agreement_instant_verification" = "Dodirnite %1$@ za prihvaćanje Facebookovih <a href=\"%2$@\">Uvjeta</a>, <a href=\"%3$@\">Pravila o upotrebi podataka</a> te <a href=\"%4$@\">pravila o upotrebi kolačića</a>. <a href=\"%5$@\">Saznajte više</a> o tome kako smo potvrdili vaš račun."; "com_accountkit_confirmation_code_text" = "Nije mi stigao kôd"; "com_accountkit_confirmation_code_title" = "Unesite svoj kôd"; "com_accountkit_email_invalid" = "Adresa e-pošte nije točna. Pokušajte ponovo."; "com_accountkit_email_loading_title" = "Potvrđujemo adresu e-pošte..."; "com_accountkit_email_login_retry_title" = "Potvrdite adresu e-pošte"; "com_accountkit_email_login_text" = "Dodirnite %1$@ kako biste dobili potvrdu putem e-pošte od Facebookova alata Account Kit i lakše upotrebljavali %2$@. Za to vam ne treba korisnički račun za Facebook. <a href=\"%3$@\">Saznajte kako se Facebook služi vašim podacima</a>."; "com_accountkit_email_login_title" = "Unesite adresu e-pošte"; "com_accountkit_email_not_received" = "Ponovno pošalji poruku e-pošte"; "com_accountkit_email_verify_title" = "Otvorite poruku e-pošte i potvrdite adresu e-pošte"; "com_accountkit_enter_code_sent_to" = "Unesite kôd poslan na %1$@"; "com_accountkit_error_title" = "Došlo je do sistemske pogreške. Pokušajte ponovo."; "com_accountkit_facebook_code_entry_title" = "Unesite svoj kôd s Facebooka"; "com_accountkit_ios_button_back" = "Natrag"; "com_accountkit_ios_country_code_title" = "Odaberite svoju državu"; "com_accountkit_ios_phone_login_phone_number_placeholder" = "Broj"; "com_accountkit_ios_phone_login_text" = "Dodirnite %1$@ kako biste SMS-om dobili potvrdu od Facebookova alata Account Kit. %2$@ vam polakšava registraciju s pomoću Facebookove tehnologije, ali ne morate imati korisnički račun za Facebook. Možda se naplaćuje cijena za SMS i prijenos podataka. <a href=\"%3$@\">Saznajte kako Facebook upotrebljava vaše podatke</a>."; "com_accountkit_ios_phone_sending_sms" = "Slanje SMS-a s kodom"; "com_accountkit_logging_in" = "Prijava u tijeku\U2026"; "com_accountkit_other_ways_to_get_code" = "Drugi načini za preuzimanje koda:"; "com_accountkit_phone_error_title" = "Unesite valjani broj mobitela."; "com_accountkit_phone_loading_title" = "Potvrda broja..."; "com_accountkit_phone_login_retry_title" = "Potvrdite broj mobitela"; "com_accountkit_phone_login_text" = "Dodirnite %1$@ kako biste potvrdili korisnički račun za Facebookov alat Account Kit. Za njega vam ne treba korisnički račun za Facebook. Možda ćete primiti SMS radi potvrde broja telefona. Možda se naplaćuje naknada za slanje poruka i prijenos podataka. <a href=\"%2$@\">Saznajte kako se Facebook služi vašim podacima</a>."; "com_accountkit_phone_login_title" = "Unesite broj mobilnog telefona"; "com_accountkit_phone_sending_code_on_fb_title" = "Slanje koda na Facebooku..."; "com_accountkit_resend_check" = "Provjerite dolazne SMS-e"; "com_accountkit_resend_email_text" = "Pošalji novu poruku e-pošte"; "com_accountkit_resend_title" = "Ako niste primili kôd:"; "com_accountkit_return_title" = "Vraćamo vas u %1$@..."; "com_accountkit_sent_title" = "Poslano!"; "com_accountkit_success_title" = "Potvrđeno!"; "com_accountkit_toolbar_title" = "Prijavite se u aplikaciju %1$@"; "com_accountkit_verify_confirmation_code_title" = "Nismo mogli potvrditi kôd. Pokušajte ponovo:"; "com_accountkit_verify_title" = "Potvrda koda..."; "com_accountkit_voice_call_code_entry_title" = "Unesite svoj kôd s Voice Calla";
{ "pile_set_name": "Github" }
// mkerrors.sh -m32 // Code generated by the command above; see README.md. DO NOT EDIT. // +build 386,darwin // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m32 _const.go package unix import "syscall" const ( AF_APPLETALK = 0x10 AF_CCITT = 0xa AF_CHAOS = 0x5 AF_CNT = 0x15 AF_COIP = 0x14 AF_DATAKIT = 0x9 AF_DECnet = 0xc AF_DLI = 0xd AF_E164 = 0x1c AF_ECMA = 0x8 AF_HYLINK = 0xf AF_IEEE80211 = 0x25 AF_IMPLINK = 0x3 AF_INET = 0x2 AF_INET6 = 0x1e AF_IPX = 0x17 AF_ISDN = 0x1c AF_ISO = 0x7 AF_LAT = 0xe AF_LINK = 0x12 AF_LOCAL = 0x1 AF_MAX = 0x28 AF_NATM = 0x1f AF_NDRV = 0x1b AF_NETBIOS = 0x21 AF_NS = 0x6 AF_OSI = 0x7 AF_PPP = 0x22 AF_PUP = 0x4 AF_RESERVED_36 = 0x24 AF_ROUTE = 0x11 AF_SIP = 0x18 AF_SNA = 0xb AF_SYSTEM = 0x20 AF_UNIX = 0x1 AF_UNSPEC = 0x0 AF_UTUN = 0x26 ALTWERASE = 0x200 ATTR_BIT_MAP_COUNT = 0x5 ATTR_CMN_ACCESSMASK = 0x20000 ATTR_CMN_ACCTIME = 0x1000 ATTR_CMN_ADDEDTIME = 0x10000000 ATTR_CMN_BKUPTIME = 0x2000 ATTR_CMN_CHGTIME = 0x800 ATTR_CMN_CRTIME = 0x200 ATTR_CMN_DATA_PROTECT_FLAGS = 0x40000000 ATTR_CMN_DEVID = 0x2 ATTR_CMN_DOCUMENT_ID = 0x100000 ATTR_CMN_ERROR = 0x20000000 ATTR_CMN_EXTENDED_SECURITY = 0x400000 ATTR_CMN_FILEID = 0x2000000 ATTR_CMN_FLAGS = 0x40000 ATTR_CMN_FNDRINFO = 0x4000 ATTR_CMN_FSID = 0x4 ATTR_CMN_FULLPATH = 0x8000000 ATTR_CMN_GEN_COUNT = 0x80000 ATTR_CMN_GRPID = 0x10000 ATTR_CMN_GRPUUID = 0x1000000 ATTR_CMN_MODTIME = 0x400 ATTR_CMN_NAME = 0x1 ATTR_CMN_NAMEDATTRCOUNT = 0x80000 ATTR_CMN_NAMEDATTRLIST = 0x100000 ATTR_CMN_OBJID = 0x20 ATTR_CMN_OBJPERMANENTID = 0x40 ATTR_CMN_OBJTAG = 0x10 ATTR_CMN_OBJTYPE = 0x8 ATTR_CMN_OWNERID = 0x8000 ATTR_CMN_PARENTID = 0x4000000 ATTR_CMN_PAROBJID = 0x80 ATTR_CMN_RETURNED_ATTRS = 0x80000000 ATTR_CMN_SCRIPT = 0x100 ATTR_CMN_SETMASK = 0x41c7ff00 ATTR_CMN_USERACCESS = 0x200000 ATTR_CMN_UUID = 0x800000 ATTR_CMN_VALIDMASK = 0xffffffff ATTR_CMN_VOLSETMASK = 0x6700 ATTR_FILE_ALLOCSIZE = 0x4 ATTR_FILE_CLUMPSIZE = 0x10 ATTR_FILE_DATAALLOCSIZE = 0x400 ATTR_FILE_DATAEXTENTS = 0x800 ATTR_FILE_DATALENGTH = 0x200 ATTR_FILE_DEVTYPE = 0x20 ATTR_FILE_FILETYPE = 0x40 ATTR_FILE_FORKCOUNT = 0x80 ATTR_FILE_FORKLIST = 0x100 ATTR_FILE_IOBLOCKSIZE = 0x8 ATTR_FILE_LINKCOUNT = 0x1 ATTR_FILE_RSRCALLOCSIZE = 0x2000 ATTR_FILE_RSRCEXTENTS = 0x4000 ATTR_FILE_RSRCLENGTH = 0x1000 ATTR_FILE_SETMASK = 0x20 ATTR_FILE_TOTALSIZE = 0x2 ATTR_FILE_VALIDMASK = 0x37ff ATTR_VOL_ALLOCATIONCLUMP = 0x40 ATTR_VOL_ATTRIBUTES = 0x40000000 ATTR_VOL_CAPABILITIES = 0x20000 ATTR_VOL_DIRCOUNT = 0x400 ATTR_VOL_ENCODINGSUSED = 0x10000 ATTR_VOL_FILECOUNT = 0x200 ATTR_VOL_FSTYPE = 0x1 ATTR_VOL_INFO = 0x80000000 ATTR_VOL_IOBLOCKSIZE = 0x80 ATTR_VOL_MAXOBJCOUNT = 0x800 ATTR_VOL_MINALLOCATION = 0x20 ATTR_VOL_MOUNTEDDEVICE = 0x8000 ATTR_VOL_MOUNTFLAGS = 0x4000 ATTR_VOL_MOUNTPOINT = 0x1000 ATTR_VOL_NAME = 0x2000 ATTR_VOL_OBJCOUNT = 0x100 ATTR_VOL_QUOTA_SIZE = 0x10000000 ATTR_VOL_RESERVED_SIZE = 0x20000000 ATTR_VOL_SETMASK = 0x80002000 ATTR_VOL_SIGNATURE = 0x2 ATTR_VOL_SIZE = 0x4 ATTR_VOL_SPACEAVAIL = 0x10 ATTR_VOL_SPACEFREE = 0x8 ATTR_VOL_UUID = 0x40000 ATTR_VOL_VALIDMASK = 0xf007ffff B0 = 0x0 B110 = 0x6e B115200 = 0x1c200 B1200 = 0x4b0 B134 = 0x86 B14400 = 0x3840 B150 = 0x96 B1800 = 0x708 B19200 = 0x4b00 B200 = 0xc8 B230400 = 0x38400 B2400 = 0x960 B28800 = 0x7080 B300 = 0x12c B38400 = 0x9600 B4800 = 0x12c0 B50 = 0x32 B57600 = 0xe100 B600 = 0x258 B7200 = 0x1c20 B75 = 0x4b B76800 = 0x12c00 B9600 = 0x2580 BIOCFLUSH = 0x20004268 BIOCGBLEN = 0x40044266 BIOCGDLT = 0x4004426a BIOCGDLTLIST = 0xc00c4279 BIOCGETIF = 0x4020426b BIOCGHDRCMPLT = 0x40044274 BIOCGRSIG = 0x40044272 BIOCGRTIMEOUT = 0x4008426e BIOCGSEESENT = 0x40044276 BIOCGSTATS = 0x4008426f BIOCIMMEDIATE = 0x80044270 BIOCPROMISC = 0x20004269 BIOCSBLEN = 0xc0044266 BIOCSDLT = 0x80044278 BIOCSETF = 0x80084267 BIOCSETFNR = 0x8008427e BIOCSETIF = 0x8020426c BIOCSHDRCMPLT = 0x80044275 BIOCSRSIG = 0x80044273 BIOCSRTIMEOUT = 0x8008426d BIOCSSEESENT = 0x80044277 BIOCVERSION = 0x40044271 BPF_A = 0x10 BPF_ABS = 0x20 BPF_ADD = 0x0 BPF_ALIGNMENT = 0x4 BPF_ALU = 0x4 BPF_AND = 0x50 BPF_B = 0x10 BPF_DIV = 0x30 BPF_H = 0x8 BPF_IMM = 0x0 BPF_IND = 0x40 BPF_JA = 0x0 BPF_JEQ = 0x10 BPF_JGE = 0x30 BPF_JGT = 0x20 BPF_JMP = 0x5 BPF_JSET = 0x40 BPF_K = 0x0 BPF_LD = 0x0 BPF_LDX = 0x1 BPF_LEN = 0x80 BPF_LSH = 0x60 BPF_MAJOR_VERSION = 0x1 BPF_MAXBUFSIZE = 0x80000 BPF_MAXINSNS = 0x200 BPF_MEM = 0x60 BPF_MEMWORDS = 0x10 BPF_MINBUFSIZE = 0x20 BPF_MINOR_VERSION = 0x1 BPF_MISC = 0x7 BPF_MSH = 0xa0 BPF_MUL = 0x20 BPF_NEG = 0x80 BPF_OR = 0x40 BPF_RELEASE = 0x30bb6 BPF_RET = 0x6 BPF_RSH = 0x70 BPF_ST = 0x2 BPF_STX = 0x3 BPF_SUB = 0x10 BPF_TAX = 0x0 BPF_TXA = 0x80 BPF_W = 0x0 BPF_X = 0x8 BRKINT = 0x2 BS0 = 0x0 BS1 = 0x8000 BSDLY = 0x8000 CFLUSH = 0xf CLOCAL = 0x8000 CLOCK_MONOTONIC = 0x6 CLOCK_MONOTONIC_RAW = 0x4 CLOCK_MONOTONIC_RAW_APPROX = 0x5 CLOCK_PROCESS_CPUTIME_ID = 0xc CLOCK_REALTIME = 0x0 CLOCK_THREAD_CPUTIME_ID = 0x10 CLOCK_UPTIME_RAW = 0x8 CLOCK_UPTIME_RAW_APPROX = 0x9 CR0 = 0x0 CR1 = 0x1000 CR2 = 0x2000 CR3 = 0x3000 CRDLY = 0x3000 CREAD = 0x800 CRTSCTS = 0x30000 CS5 = 0x0 CS6 = 0x100 CS7 = 0x200 CS8 = 0x300 CSIZE = 0x300 CSTART = 0x11 CSTATUS = 0x14 CSTOP = 0x13 CSTOPB = 0x400 CSUSP = 0x1a CTL_HW = 0x6 CTL_KERN = 0x1 CTL_MAXNAME = 0xc CTL_NET = 0x4 DLT_A429 = 0xb8 DLT_A653_ICM = 0xb9 DLT_AIRONET_HEADER = 0x78 DLT_AOS = 0xde DLT_APPLE_IP_OVER_IEEE1394 = 0x8a DLT_ARCNET = 0x7 DLT_ARCNET_LINUX = 0x81 DLT_ATM_CLIP = 0x13 DLT_ATM_RFC1483 = 0xb DLT_AURORA = 0x7e DLT_AX25 = 0x3 DLT_AX25_KISS = 0xca DLT_BACNET_MS_TP = 0xa5 DLT_BLUETOOTH_HCI_H4 = 0xbb DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 DLT_CAN20B = 0xbe DLT_CAN_SOCKETCAN = 0xe3 DLT_CHAOS = 0x5 DLT_CHDLC = 0x68 DLT_CISCO_IOS = 0x76 DLT_C_HDLC = 0x68 DLT_C_HDLC_WITH_DIR = 0xcd DLT_DBUS = 0xe7 DLT_DECT = 0xdd DLT_DOCSIS = 0x8f DLT_DVB_CI = 0xeb DLT_ECONET = 0x73 DLT_EN10MB = 0x1 DLT_EN3MB = 0x2 DLT_ENC = 0x6d DLT_ERF = 0xc5 DLT_ERF_ETH = 0xaf DLT_ERF_POS = 0xb0 DLT_FC_2 = 0xe0 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 DLT_FDDI = 0xa DLT_FLEXRAY = 0xd2 DLT_FRELAY = 0x6b DLT_FRELAY_WITH_DIR = 0xce DLT_GCOM_SERIAL = 0xad DLT_GCOM_T1E1 = 0xac DLT_GPF_F = 0xab DLT_GPF_T = 0xaa DLT_GPRS_LLC = 0xa9 DLT_GSMTAP_ABIS = 0xda DLT_GSMTAP_UM = 0xd9 DLT_HHDLC = 0x79 DLT_IBM_SN = 0x92 DLT_IBM_SP = 0x91 DLT_IEEE802 = 0x6 DLT_IEEE802_11 = 0x69 DLT_IEEE802_11_RADIO = 0x7f DLT_IEEE802_11_RADIO_AVS = 0xa3 DLT_IEEE802_15_4 = 0xc3 DLT_IEEE802_15_4_LINUX = 0xbf DLT_IEEE802_15_4_NOFCS = 0xe6 DLT_IEEE802_15_4_NONASK_PHY = 0xd7 DLT_IEEE802_16_MAC_CPS = 0xbc DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 DLT_IPFILTER = 0x74 DLT_IPMB = 0xc7 DLT_IPMB_LINUX = 0xd1 DLT_IPNET = 0xe2 DLT_IPOIB = 0xf2 DLT_IPV4 = 0xe4 DLT_IPV6 = 0xe5 DLT_IP_OVER_FC = 0x7a DLT_JUNIPER_ATM1 = 0x89 DLT_JUNIPER_ATM2 = 0x87 DLT_JUNIPER_ATM_CEMIC = 0xee DLT_JUNIPER_CHDLC = 0xb5 DLT_JUNIPER_ES = 0x84 DLT_JUNIPER_ETHER = 0xb2 DLT_JUNIPER_FIBRECHANNEL = 0xea DLT_JUNIPER_FRELAY = 0xb4 DLT_JUNIPER_GGSN = 0x85 DLT_JUNIPER_ISM = 0xc2 DLT_JUNIPER_MFR = 0x86 DLT_JUNIPER_MLFR = 0x83 DLT_JUNIPER_MLPPP = 0x82 DLT_JUNIPER_MONITOR = 0xa4 DLT_JUNIPER_PIC_PEER = 0xae DLT_JUNIPER_PPP = 0xb3 DLT_JUNIPER_PPPOE = 0xa7 DLT_JUNIPER_PPPOE_ATM = 0xa8 DLT_JUNIPER_SERVICES = 0x88 DLT_JUNIPER_SRX_E2E = 0xe9 DLT_JUNIPER_ST = 0xc8 DLT_JUNIPER_VP = 0xb7 DLT_JUNIPER_VS = 0xe8 DLT_LAPB_WITH_DIR = 0xcf DLT_LAPD = 0xcb DLT_LIN = 0xd4 DLT_LINUX_EVDEV = 0xd8 DLT_LINUX_IRDA = 0x90 DLT_LINUX_LAPD = 0xb1 DLT_LINUX_PPP_WITHDIRECTION = 0xa6 DLT_LINUX_SLL = 0x71 DLT_LOOP = 0x6c DLT_LTALK = 0x72 DLT_MATCHING_MAX = 0xf5 DLT_MATCHING_MIN = 0x68 DLT_MFR = 0xb6 DLT_MOST = 0xd3 DLT_MPEG_2_TS = 0xf3 DLT_MPLS = 0xdb DLT_MTP2 = 0x8c DLT_MTP2_WITH_PHDR = 0x8b DLT_MTP3 = 0x8d DLT_MUX27010 = 0xec DLT_NETANALYZER = 0xf0 DLT_NETANALYZER_TRANSPARENT = 0xf1 DLT_NFC_LLCP = 0xf5 DLT_NFLOG = 0xef DLT_NG40 = 0xf4 DLT_NULL = 0x0 DLT_PCI_EXP = 0x7d DLT_PFLOG = 0x75 DLT_PFSYNC = 0x12 DLT_PPI = 0xc0 DLT_PPP = 0x9 DLT_PPP_BSDOS = 0x10 DLT_PPP_ETHER = 0x33 DLT_PPP_PPPD = 0xa6 DLT_PPP_SERIAL = 0x32 DLT_PPP_WITH_DIR = 0xcc DLT_PPP_WITH_DIRECTION = 0xa6 DLT_PRISM_HEADER = 0x77 DLT_PRONET = 0x4 DLT_RAIF1 = 0xc6 DLT_RAW = 0xc DLT_RIO = 0x7c DLT_SCCP = 0x8e DLT_SITA = 0xc4 DLT_SLIP = 0x8 DLT_SLIP_BSDOS = 0xf DLT_STANAG_5066_D_PDU = 0xed DLT_SUNATM = 0x7b DLT_SYMANTEC_FIREWALL = 0x63 DLT_TZSP = 0x80 DLT_USB = 0xba DLT_USB_LINUX = 0xbd DLT_USB_LINUX_MMAPPED = 0xdc DLT_USER0 = 0x93 DLT_USER1 = 0x94 DLT_USER10 = 0x9d DLT_USER11 = 0x9e DLT_USER12 = 0x9f DLT_USER13 = 0xa0 DLT_USER14 = 0xa1 DLT_USER15 = 0xa2 DLT_USER2 = 0x95 DLT_USER3 = 0x96 DLT_USER4 = 0x97 DLT_USER5 = 0x98 DLT_USER6 = 0x99 DLT_USER7 = 0x9a DLT_USER8 = 0x9b DLT_USER9 = 0x9c DLT_WIHART = 0xdf DLT_X2E_SERIAL = 0xd5 DLT_X2E_XORAYA = 0xd6 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 DT_FIFO = 0x1 DT_LNK = 0xa DT_REG = 0x8 DT_SOCK = 0xc DT_UNKNOWN = 0x0 DT_WHT = 0xe ECHO = 0x8 ECHOCTL = 0x40 ECHOE = 0x2 ECHOK = 0x4 ECHOKE = 0x1 ECHONL = 0x10 ECHOPRT = 0x20 EVFILT_AIO = -0x3 EVFILT_EXCEPT = -0xf EVFILT_FS = -0x9 EVFILT_MACHPORT = -0x8 EVFILT_PROC = -0x5 EVFILT_READ = -0x1 EVFILT_SIGNAL = -0x6 EVFILT_SYSCOUNT = 0xf EVFILT_THREADMARKER = 0xf EVFILT_TIMER = -0x7 EVFILT_USER = -0xa EVFILT_VM = -0xc EVFILT_VNODE = -0x4 EVFILT_WRITE = -0x2 EV_ADD = 0x1 EV_CLEAR = 0x20 EV_DELETE = 0x2 EV_DISABLE = 0x8 EV_DISPATCH = 0x80 EV_DISPATCH2 = 0x180 EV_ENABLE = 0x4 EV_EOF = 0x8000 EV_ERROR = 0x4000 EV_FLAG0 = 0x1000 EV_FLAG1 = 0x2000 EV_ONESHOT = 0x10 EV_OOBAND = 0x2000 EV_POLL = 0x1000 EV_RECEIPT = 0x40 EV_SYSFLAGS = 0xf000 EV_UDATA_SPECIFIC = 0x100 EV_VANISHED = 0x200 EXTA = 0x4b00 EXTB = 0x9600 EXTPROC = 0x800 FD_CLOEXEC = 0x1 FD_SETSIZE = 0x400 FF0 = 0x0 FF1 = 0x4000 FFDLY = 0x4000 FLUSHO = 0x800000 FSOPT_ATTR_CMN_EXTENDED = 0x20 FSOPT_NOFOLLOW = 0x1 FSOPT_NOINMEMUPDATE = 0x2 FSOPT_PACK_INVAL_ATTRS = 0x8 FSOPT_REPORT_FULLSIZE = 0x4 F_ADDFILESIGS = 0x3d F_ADDFILESIGS_FOR_DYLD_SIM = 0x53 F_ADDFILESIGS_RETURN = 0x61 F_ADDSIGS = 0x3b F_ALLOCATEALL = 0x4 F_ALLOCATECONTIG = 0x2 F_BARRIERFSYNC = 0x55 F_CHECK_LV = 0x62 F_CHKCLEAN = 0x29 F_DUPFD = 0x0 F_DUPFD_CLOEXEC = 0x43 F_FINDSIGS = 0x4e F_FLUSH_DATA = 0x28 F_FREEZE_FS = 0x35 F_FULLFSYNC = 0x33 F_GETCODEDIR = 0x48 F_GETFD = 0x1 F_GETFL = 0x3 F_GETLK = 0x7 F_GETLKPID = 0x42 F_GETNOSIGPIPE = 0x4a F_GETOWN = 0x5 F_GETPATH = 0x32 F_GETPATH_MTMINFO = 0x47 F_GETPROTECTIONCLASS = 0x3f F_GETPROTECTIONLEVEL = 0x4d F_GLOBAL_NOCACHE = 0x37 F_LOG2PHYS = 0x31 F_LOG2PHYS_EXT = 0x41 F_NOCACHE = 0x30 F_NODIRECT = 0x3e F_OK = 0x0 F_PATHPKG_CHECK = 0x34 F_PEOFPOSMODE = 0x3 F_PREALLOCATE = 0x2a F_PUNCHHOLE = 0x63 F_RDADVISE = 0x2c F_RDAHEAD = 0x2d F_RDLCK = 0x1 F_SETBACKINGSTORE = 0x46 F_SETFD = 0x2 F_SETFL = 0x4 F_SETLK = 0x8 F_SETLKW = 0x9 F_SETLKWTIMEOUT = 0xa F_SETNOSIGPIPE = 0x49 F_SETOWN = 0x6 F_SETPROTECTIONCLASS = 0x40 F_SETSIZE = 0x2b F_SINGLE_WRITER = 0x4c F_THAW_FS = 0x36 F_TRANSCODEKEY = 0x4b F_TRIM_ACTIVE_FILE = 0x64 F_UNLCK = 0x2 F_VOLPOSMODE = 0x4 F_WRLCK = 0x3 HUPCL = 0x4000 HW_MACHINE = 0x1 ICANON = 0x100 ICMP6_FILTER = 0x12 ICRNL = 0x100 IEXTEN = 0x400 IFF_ALLMULTI = 0x200 IFF_ALTPHYS = 0x4000 IFF_BROADCAST = 0x2 IFF_DEBUG = 0x4 IFF_LINK0 = 0x1000 IFF_LINK1 = 0x2000 IFF_LINK2 = 0x4000 IFF_LOOPBACK = 0x8 IFF_MULTICAST = 0x8000 IFF_NOARP = 0x80 IFF_NOTRAILERS = 0x20 IFF_OACTIVE = 0x400 IFF_POINTOPOINT = 0x10 IFF_PROMISC = 0x100 IFF_RUNNING = 0x40 IFF_SIMPLEX = 0x800 IFF_UP = 0x1 IFNAMSIZ = 0x10 IFT_1822 = 0x2 IFT_AAL5 = 0x31 IFT_ARCNET = 0x23 IFT_ARCNETPLUS = 0x24 IFT_ATM = 0x25 IFT_BRIDGE = 0xd1 IFT_CARP = 0xf8 IFT_CELLULAR = 0xff IFT_CEPT = 0x13 IFT_DS3 = 0x1e IFT_ENC = 0xf4 IFT_EON = 0x19 IFT_ETHER = 0x6 IFT_FAITH = 0x38 IFT_FDDI = 0xf IFT_FRELAY = 0x20 IFT_FRELAYDCE = 0x2c IFT_GIF = 0x37 IFT_HDH1822 = 0x3 IFT_HIPPI = 0x2f IFT_HSSI = 0x2e IFT_HY = 0xe IFT_IEEE1394 = 0x90 IFT_IEEE8023ADLAG = 0x88 IFT_ISDNBASIC = 0x14 IFT_ISDNPRIMARY = 0x15 IFT_ISO88022LLC = 0x29 IFT_ISO88023 = 0x7 IFT_ISO88024 = 0x8 IFT_ISO88025 = 0x9 IFT_ISO88026 = 0xa IFT_L2VLAN = 0x87 IFT_LAPB = 0x10 IFT_LOCALTALK = 0x2a IFT_LOOP = 0x18 IFT_MIOX25 = 0x26 IFT_MODEM = 0x30 IFT_NSIP = 0x1b IFT_OTHER = 0x1 IFT_P10 = 0xc IFT_P80 = 0xd IFT_PARA = 0x22 IFT_PDP = 0xff IFT_PFLOG = 0xf5 IFT_PFSYNC = 0xf6 IFT_PKTAP = 0xfe IFT_PPP = 0x17 IFT_PROPMUX = 0x36 IFT_PROPVIRTUAL = 0x35 IFT_PTPSERIAL = 0x16 IFT_RS232 = 0x21 IFT_SDLC = 0x11 IFT_SIP = 0x1f IFT_SLIP = 0x1c IFT_SMDSDXI = 0x2b IFT_SMDSICIP = 0x34 IFT_SONET = 0x27 IFT_SONETPATH = 0x32 IFT_SONETVT = 0x33 IFT_STARLAN = 0xb IFT_STF = 0x39 IFT_T1 = 0x12 IFT_ULTRA = 0x1d IFT_V35 = 0x2d IFT_X25 = 0x5 IFT_X25DDN = 0x4 IFT_X25PLE = 0x28 IFT_XETHER = 0x1a IGNBRK = 0x1 IGNCR = 0x80 IGNPAR = 0x4 IMAXBEL = 0x2000 INLCR = 0x40 INPCK = 0x10 IN_CLASSA_HOST = 0xffffff IN_CLASSA_MAX = 0x80 IN_CLASSA_NET = 0xff000000 IN_CLASSA_NSHIFT = 0x18 IN_CLASSB_HOST = 0xffff IN_CLASSB_MAX = 0x10000 IN_CLASSB_NET = 0xffff0000 IN_CLASSB_NSHIFT = 0x10 IN_CLASSC_HOST = 0xff IN_CLASSC_NET = 0xffffff00 IN_CLASSC_NSHIFT = 0x8 IN_CLASSD_HOST = 0xfffffff IN_CLASSD_NET = 0xf0000000 IN_CLASSD_NSHIFT = 0x1c IN_LINKLOCALNETNUM = 0xa9fe0000 IN_LOOPBACKNET = 0x7f IPPROTO_3PC = 0x22 IPPROTO_ADFS = 0x44 IPPROTO_AH = 0x33 IPPROTO_AHIP = 0x3d IPPROTO_APES = 0x63 IPPROTO_ARGUS = 0xd IPPROTO_AX25 = 0x5d IPPROTO_BHA = 0x31 IPPROTO_BLT = 0x1e IPPROTO_BRSATMON = 0x4c IPPROTO_CFTP = 0x3e IPPROTO_CHAOS = 0x10 IPPROTO_CMTP = 0x26 IPPROTO_CPHB = 0x49 IPPROTO_CPNX = 0x48 IPPROTO_DDP = 0x25 IPPROTO_DGP = 0x56 IPPROTO_DIVERT = 0xfe IPPROTO_DONE = 0x101 IPPROTO_DSTOPTS = 0x3c IPPROTO_EGP = 0x8 IPPROTO_EMCON = 0xe IPPROTO_ENCAP = 0x62 IPPROTO_EON = 0x50 IPPROTO_ESP = 0x32 IPPROTO_ETHERIP = 0x61 IPPROTO_FRAGMENT = 0x2c IPPROTO_GGP = 0x3 IPPROTO_GMTP = 0x64 IPPROTO_GRE = 0x2f IPPROTO_HELLO = 0x3f IPPROTO_HMP = 0x14 IPPROTO_HOPOPTS = 0x0 IPPROTO_ICMP = 0x1 IPPROTO_ICMPV6 = 0x3a IPPROTO_IDP = 0x16 IPPROTO_IDPR = 0x23 IPPROTO_IDRP = 0x2d IPPROTO_IGMP = 0x2 IPPROTO_IGP = 0x55 IPPROTO_IGRP = 0x58 IPPROTO_IL = 0x28 IPPROTO_INLSP = 0x34 IPPROTO_INP = 0x20 IPPROTO_IP = 0x0 IPPROTO_IPCOMP = 0x6c IPPROTO_IPCV = 0x47 IPPROTO_IPEIP = 0x5e IPPROTO_IPIP = 0x4 IPPROTO_IPPC = 0x43 IPPROTO_IPV4 = 0x4 IPPROTO_IPV6 = 0x29 IPPROTO_IRTP = 0x1c IPPROTO_KRYPTOLAN = 0x41 IPPROTO_LARP = 0x5b IPPROTO_LEAF1 = 0x19 IPPROTO_LEAF2 = 0x1a IPPROTO_MAX = 0x100 IPPROTO_MAXID = 0x34 IPPROTO_MEAS = 0x13 IPPROTO_MHRP = 0x30 IPPROTO_MICP = 0x5f IPPROTO_MTP = 0x5c IPPROTO_MUX = 0x12 IPPROTO_ND = 0x4d IPPROTO_NHRP = 0x36 IPPROTO_NONE = 0x3b IPPROTO_NSP = 0x1f IPPROTO_NVPII = 0xb IPPROTO_OSPFIGP = 0x59 IPPROTO_PGM = 0x71 IPPROTO_PIGP = 0x9 IPPROTO_PIM = 0x67 IPPROTO_PRM = 0x15 IPPROTO_PUP = 0xc IPPROTO_PVP = 0x4b IPPROTO_RAW = 0xff IPPROTO_RCCMON = 0xa IPPROTO_RDP = 0x1b IPPROTO_ROUTING = 0x2b IPPROTO_RSVP = 0x2e IPPROTO_RVD = 0x42 IPPROTO_SATEXPAK = 0x40 IPPROTO_SATMON = 0x45 IPPROTO_SCCSP = 0x60 IPPROTO_SCTP = 0x84 IPPROTO_SDRP = 0x2a IPPROTO_SEP = 0x21 IPPROTO_SRPC = 0x5a IPPROTO_ST = 0x7 IPPROTO_SVMTP = 0x52 IPPROTO_SWIPE = 0x35 IPPROTO_TCF = 0x57 IPPROTO_TCP = 0x6 IPPROTO_TP = 0x1d IPPROTO_TPXX = 0x27 IPPROTO_TRUNK1 = 0x17 IPPROTO_TRUNK2 = 0x18 IPPROTO_TTP = 0x54 IPPROTO_UDP = 0x11 IPPROTO_VINES = 0x53 IPPROTO_VISA = 0x46 IPPROTO_VMTP = 0x51 IPPROTO_WBEXPAK = 0x4f IPPROTO_WBMON = 0x4e IPPROTO_WSN = 0x4a IPPROTO_XNET = 0xf IPPROTO_XTP = 0x24 IPV6_2292DSTOPTS = 0x17 IPV6_2292HOPLIMIT = 0x14 IPV6_2292HOPOPTS = 0x16 IPV6_2292NEXTHOP = 0x15 IPV6_2292PKTINFO = 0x13 IPV6_2292PKTOPTIONS = 0x19 IPV6_2292RTHDR = 0x18 IPV6_BINDV6ONLY = 0x1b IPV6_BOUND_IF = 0x7d IPV6_CHECKSUM = 0x1a IPV6_DEFAULT_MULTICAST_HOPS = 0x1 IPV6_DEFAULT_MULTICAST_LOOP = 0x1 IPV6_DEFHLIM = 0x40 IPV6_FAITH = 0x1d IPV6_FLOWINFO_MASK = 0xffffff0f IPV6_FLOWLABEL_MASK = 0xffff0f00 IPV6_FLOW_ECN_MASK = 0x300 IPV6_FRAGTTL = 0x3c IPV6_FW_ADD = 0x1e IPV6_FW_DEL = 0x1f IPV6_FW_FLUSH = 0x20 IPV6_FW_GET = 0x22 IPV6_FW_ZERO = 0x21 IPV6_HLIMDEC = 0x1 IPV6_IPSEC_POLICY = 0x1c IPV6_JOIN_GROUP = 0xc IPV6_LEAVE_GROUP = 0xd IPV6_MAXHLIM = 0xff IPV6_MAXOPTHDR = 0x800 IPV6_MAXPACKET = 0xffff IPV6_MAX_GROUP_SRC_FILTER = 0x200 IPV6_MAX_MEMBERSHIPS = 0xfff IPV6_MAX_SOCK_SRC_FILTER = 0x80 IPV6_MIN_MEMBERSHIPS = 0x1f IPV6_MMTU = 0x500 IPV6_MULTICAST_HOPS = 0xa IPV6_MULTICAST_IF = 0x9 IPV6_MULTICAST_LOOP = 0xb IPV6_PORTRANGE = 0xe IPV6_PORTRANGE_DEFAULT = 0x0 IPV6_PORTRANGE_HIGH = 0x1 IPV6_PORTRANGE_LOW = 0x2 IPV6_RECVTCLASS = 0x23 IPV6_RTHDR_LOOSE = 0x0 IPV6_RTHDR_STRICT = 0x1 IPV6_RTHDR_TYPE_0 = 0x0 IPV6_SOCKOPT_RESERVED1 = 0x3 IPV6_TCLASS = 0x24 IPV6_UNICAST_HOPS = 0x4 IPV6_V6ONLY = 0x1b IPV6_VERSION = 0x60 IPV6_VERSION_MASK = 0xf0 IP_ADD_MEMBERSHIP = 0xc IP_ADD_SOURCE_MEMBERSHIP = 0x46 IP_BLOCK_SOURCE = 0x48 IP_BOUND_IF = 0x19 IP_DEFAULT_MULTICAST_LOOP = 0x1 IP_DEFAULT_MULTICAST_TTL = 0x1 IP_DF = 0x4000 IP_DROP_MEMBERSHIP = 0xd IP_DROP_SOURCE_MEMBERSHIP = 0x47 IP_DUMMYNET_CONFIGURE = 0x3c IP_DUMMYNET_DEL = 0x3d IP_DUMMYNET_FLUSH = 0x3e IP_DUMMYNET_GET = 0x40 IP_FAITH = 0x16 IP_FW_ADD = 0x28 IP_FW_DEL = 0x29 IP_FW_FLUSH = 0x2a IP_FW_GET = 0x2c IP_FW_RESETLOG = 0x2d IP_FW_ZERO = 0x2b IP_HDRINCL = 0x2 IP_IPSEC_POLICY = 0x15 IP_MAXPACKET = 0xffff IP_MAX_GROUP_SRC_FILTER = 0x200 IP_MAX_MEMBERSHIPS = 0xfff IP_MAX_SOCK_MUTE_FILTER = 0x80 IP_MAX_SOCK_SRC_FILTER = 0x80 IP_MF = 0x2000 IP_MIN_MEMBERSHIPS = 0x1f IP_MSFILTER = 0x4a IP_MSS = 0x240 IP_MULTICAST_IF = 0x9 IP_MULTICAST_IFINDEX = 0x42 IP_MULTICAST_LOOP = 0xb IP_MULTICAST_TTL = 0xa IP_MULTICAST_VIF = 0xe IP_NAT__XXX = 0x37 IP_OFFMASK = 0x1fff IP_OLD_FW_ADD = 0x32 IP_OLD_FW_DEL = 0x33 IP_OLD_FW_FLUSH = 0x34 IP_OLD_FW_GET = 0x36 IP_OLD_FW_RESETLOG = 0x38 IP_OLD_FW_ZERO = 0x35 IP_OPTIONS = 0x1 IP_PKTINFO = 0x1a IP_PORTRANGE = 0x13 IP_PORTRANGE_DEFAULT = 0x0 IP_PORTRANGE_HIGH = 0x1 IP_PORTRANGE_LOW = 0x2 IP_RECVDSTADDR = 0x7 IP_RECVIF = 0x14 IP_RECVOPTS = 0x5 IP_RECVPKTINFO = 0x1a IP_RECVRETOPTS = 0x6 IP_RECVTOS = 0x1b IP_RECVTTL = 0x18 IP_RETOPTS = 0x8 IP_RF = 0x8000 IP_RSVP_OFF = 0x10 IP_RSVP_ON = 0xf IP_RSVP_VIF_OFF = 0x12 IP_RSVP_VIF_ON = 0x11 IP_STRIPHDR = 0x17 IP_TOS = 0x3 IP_TRAFFIC_MGT_BACKGROUND = 0x41 IP_TTL = 0x4 IP_UNBLOCK_SOURCE = 0x49 ISIG = 0x80 ISTRIP = 0x20 IUTF8 = 0x4000 IXANY = 0x800 IXOFF = 0x400 IXON = 0x200 KERN_HOSTNAME = 0xa KERN_OSRELEASE = 0x2 KERN_OSTYPE = 0x1 KERN_VERSION = 0x4 LOCK_EX = 0x2 LOCK_NB = 0x4 LOCK_SH = 0x1 LOCK_UN = 0x8 MADV_CAN_REUSE = 0x9 MADV_DONTNEED = 0x4 MADV_FREE = 0x5 MADV_FREE_REUSABLE = 0x7 MADV_FREE_REUSE = 0x8 MADV_NORMAL = 0x0 MADV_PAGEOUT = 0xa MADV_RANDOM = 0x1 MADV_SEQUENTIAL = 0x2 MADV_WILLNEED = 0x3 MADV_ZERO_WIRED_PAGES = 0x6 MAP_ANON = 0x1000 MAP_ANONYMOUS = 0x1000 MAP_COPY = 0x2 MAP_FILE = 0x0 MAP_FIXED = 0x10 MAP_HASSEMAPHORE = 0x200 MAP_JIT = 0x800 MAP_NOCACHE = 0x400 MAP_NOEXTEND = 0x100 MAP_NORESERVE = 0x40 MAP_PRIVATE = 0x2 MAP_RENAME = 0x20 MAP_RESERVED0080 = 0x80 MAP_RESILIENT_CODESIGN = 0x2000 MAP_RESILIENT_MEDIA = 0x4000 MAP_SHARED = 0x1 MCL_CURRENT = 0x1 MCL_FUTURE = 0x2 MNT_ASYNC = 0x40 MNT_AUTOMOUNTED = 0x400000 MNT_CMDFLAGS = 0xf0000 MNT_CPROTECT = 0x80 MNT_DEFWRITE = 0x2000000 MNT_DONTBROWSE = 0x100000 MNT_DOVOLFS = 0x8000 MNT_DWAIT = 0x4 MNT_EXPORTED = 0x100 MNT_FORCE = 0x80000 MNT_IGNORE_OWNERSHIP = 0x200000 MNT_JOURNALED = 0x800000 MNT_LOCAL = 0x1000 MNT_MULTILABEL = 0x4000000 MNT_NOATIME = 0x10000000 MNT_NOBLOCK = 0x20000 MNT_NODEV = 0x10 MNT_NOEXEC = 0x4 MNT_NOSUID = 0x8 MNT_NOUSERXATTR = 0x1000000 MNT_NOWAIT = 0x2 MNT_QUARANTINE = 0x400 MNT_QUOTA = 0x2000 MNT_RDONLY = 0x1 MNT_RELOAD = 0x40000 MNT_ROOTFS = 0x4000 MNT_SYNCHRONOUS = 0x2 MNT_UNION = 0x20 MNT_UNKNOWNPERMISSIONS = 0x200000 MNT_UPDATE = 0x10000 MNT_VISFLAGMASK = 0x17f0f5ff MNT_WAIT = 0x1 MSG_CTRUNC = 0x20 MSG_DONTROUTE = 0x4 MSG_DONTWAIT = 0x80 MSG_EOF = 0x100 MSG_EOR = 0x8 MSG_FLUSH = 0x400 MSG_HAVEMORE = 0x2000 MSG_HOLD = 0x800 MSG_NEEDSA = 0x10000 MSG_OOB = 0x1 MSG_PEEK = 0x2 MSG_RCVMORE = 0x4000 MSG_SEND = 0x1000 MSG_TRUNC = 0x10 MSG_WAITALL = 0x40 MSG_WAITSTREAM = 0x200 MS_ASYNC = 0x1 MS_DEACTIVATE = 0x8 MS_INVALIDATE = 0x2 MS_KILLPAGES = 0x4 MS_SYNC = 0x10 NAME_MAX = 0xff NET_RT_DUMP = 0x1 NET_RT_DUMP2 = 0x7 NET_RT_FLAGS = 0x2 NET_RT_IFLIST = 0x3 NET_RT_IFLIST2 = 0x6 NET_RT_MAXID = 0xa NET_RT_STAT = 0x4 NET_RT_TRASH = 0x5 NFDBITS = 0x20 NL0 = 0x0 NL1 = 0x100 NL2 = 0x200 NL3 = 0x300 NLDLY = 0x300 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 NOTE_ABSOLUTE = 0x8 NOTE_ATTRIB = 0x8 NOTE_BACKGROUND = 0x40 NOTE_CHILD = 0x4 NOTE_CRITICAL = 0x20 NOTE_DELETE = 0x1 NOTE_EXEC = 0x20000000 NOTE_EXIT = 0x80000000 NOTE_EXITSTATUS = 0x4000000 NOTE_EXIT_CSERROR = 0x40000 NOTE_EXIT_DECRYPTFAIL = 0x10000 NOTE_EXIT_DETAIL = 0x2000000 NOTE_EXIT_DETAIL_MASK = 0x70000 NOTE_EXIT_MEMORY = 0x20000 NOTE_EXIT_REPARENTED = 0x80000 NOTE_EXTEND = 0x4 NOTE_FFAND = 0x40000000 NOTE_FFCOPY = 0xc0000000 NOTE_FFCTRLMASK = 0xc0000000 NOTE_FFLAGSMASK = 0xffffff NOTE_FFNOP = 0x0 NOTE_FFOR = 0x80000000 NOTE_FORK = 0x40000000 NOTE_FUNLOCK = 0x100 NOTE_LEEWAY = 0x10 NOTE_LINK = 0x10 NOTE_LOWAT = 0x1 NOTE_MACH_CONTINUOUS_TIME = 0x80 NOTE_NONE = 0x80 NOTE_NSECONDS = 0x4 NOTE_OOB = 0x2 NOTE_PCTRLMASK = -0x100000 NOTE_PDATAMASK = 0xfffff NOTE_REAP = 0x10000000 NOTE_RENAME = 0x20 NOTE_REVOKE = 0x40 NOTE_SECONDS = 0x1 NOTE_SIGNAL = 0x8000000 NOTE_TRACK = 0x1 NOTE_TRACKERR = 0x2 NOTE_TRIGGER = 0x1000000 NOTE_USECONDS = 0x2 NOTE_VM_ERROR = 0x10000000 NOTE_VM_PRESSURE = 0x80000000 NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000 NOTE_VM_PRESSURE_TERMINATE = 0x40000000 NOTE_WRITE = 0x2 OCRNL = 0x10 OFDEL = 0x20000 OFILL = 0x80 ONLCR = 0x2 ONLRET = 0x40 ONOCR = 0x20 ONOEOT = 0x8 OPOST = 0x1 OXTABS = 0x4 O_ACCMODE = 0x3 O_ALERT = 0x20000000 O_APPEND = 0x8 O_ASYNC = 0x40 O_CLOEXEC = 0x1000000 O_CREAT = 0x200 O_DIRECTORY = 0x100000 O_DP_GETRAWENCRYPTED = 0x1 O_DP_GETRAWUNENCRYPTED = 0x2 O_DSYNC = 0x400000 O_EVTONLY = 0x8000 O_EXCL = 0x800 O_EXLOCK = 0x20 O_FSYNC = 0x80 O_NDELAY = 0x4 O_NOCTTY = 0x20000 O_NOFOLLOW = 0x100 O_NONBLOCK = 0x4 O_POPUP = 0x80000000 O_RDONLY = 0x0 O_RDWR = 0x2 O_SHLOCK = 0x10 O_SYMLINK = 0x200000 O_SYNC = 0x80 O_TRUNC = 0x400 O_WRONLY = 0x1 PARENB = 0x1000 PARMRK = 0x8 PARODD = 0x2000 PENDIN = 0x20000000 PRIO_PGRP = 0x1 PRIO_PROCESS = 0x0 PRIO_USER = 0x2 PROT_EXEC = 0x4 PROT_NONE = 0x0 PROT_READ = 0x1 PROT_WRITE = 0x2 PT_ATTACH = 0xa PT_ATTACHEXC = 0xe PT_CONTINUE = 0x7 PT_DENY_ATTACH = 0x1f PT_DETACH = 0xb PT_FIRSTMACH = 0x20 PT_FORCEQUOTA = 0x1e PT_KILL = 0x8 PT_READ_D = 0x2 PT_READ_I = 0x1 PT_READ_U = 0x3 PT_SIGEXC = 0xc PT_STEP = 0x9 PT_THUPDATE = 0xd PT_TRACE_ME = 0x0 PT_WRITE_D = 0x5 PT_WRITE_I = 0x4 PT_WRITE_U = 0x6 RLIMIT_AS = 0x5 RLIMIT_CORE = 0x4 RLIMIT_CPU = 0x0 RLIMIT_CPU_USAGE_MONITOR = 0x2 RLIMIT_DATA = 0x2 RLIMIT_FSIZE = 0x1 RLIMIT_MEMLOCK = 0x6 RLIMIT_NOFILE = 0x8 RLIMIT_NPROC = 0x7 RLIMIT_RSS = 0x5 RLIMIT_STACK = 0x3 RLIM_INFINITY = 0x7fffffffffffffff RTAX_AUTHOR = 0x6 RTAX_BRD = 0x7 RTAX_DST = 0x0 RTAX_GATEWAY = 0x1 RTAX_GENMASK = 0x3 RTAX_IFA = 0x5 RTAX_IFP = 0x4 RTAX_MAX = 0x8 RTAX_NETMASK = 0x2 RTA_AUTHOR = 0x40 RTA_BRD = 0x80 RTA_DST = 0x1 RTA_GATEWAY = 0x2 RTA_GENMASK = 0x8 RTA_IFA = 0x20 RTA_IFP = 0x10 RTA_NETMASK = 0x4 RTF_BLACKHOLE = 0x1000 RTF_BROADCAST = 0x400000 RTF_CLONING = 0x100 RTF_CONDEMNED = 0x2000000 RTF_DELCLONE = 0x80 RTF_DONE = 0x40 RTF_DYNAMIC = 0x10 RTF_GATEWAY = 0x2 RTF_HOST = 0x4 RTF_IFREF = 0x4000000 RTF_IFSCOPE = 0x1000000 RTF_LLINFO = 0x400 RTF_LOCAL = 0x200000 RTF_MODIFIED = 0x20 RTF_MULTICAST = 0x800000 RTF_NOIFREF = 0x2000 RTF_PINNED = 0x100000 RTF_PRCLONING = 0x10000 RTF_PROTO1 = 0x8000 RTF_PROTO2 = 0x4000 RTF_PROTO3 = 0x40000 RTF_PROXY = 0x8000000 RTF_REJECT = 0x8 RTF_ROUTER = 0x10000000 RTF_STATIC = 0x800 RTF_UP = 0x1 RTF_WASCLONED = 0x20000 RTF_XRESOLVE = 0x200 RTM_ADD = 0x1 RTM_CHANGE = 0x3 RTM_DELADDR = 0xd RTM_DELETE = 0x2 RTM_DELMADDR = 0x10 RTM_GET = 0x4 RTM_GET2 = 0x14 RTM_IFINFO = 0xe RTM_IFINFO2 = 0x12 RTM_LOCK = 0x8 RTM_LOSING = 0x5 RTM_MISS = 0x7 RTM_NEWADDR = 0xc RTM_NEWMADDR = 0xf RTM_NEWMADDR2 = 0x13 RTM_OLDADD = 0x9 RTM_OLDDEL = 0xa RTM_REDIRECT = 0x6 RTM_RESOLVE = 0xb RTM_RTTUNIT = 0xf4240 RTM_VERSION = 0x5 RTV_EXPIRE = 0x4 RTV_HOPCOUNT = 0x2 RTV_MTU = 0x1 RTV_RPIPE = 0x8 RTV_RTT = 0x40 RTV_RTTVAR = 0x80 RTV_SPIPE = 0x10 RTV_SSTHRESH = 0x20 RUSAGE_CHILDREN = -0x1 RUSAGE_SELF = 0x0 SCM_CREDS = 0x3 SCM_RIGHTS = 0x1 SCM_TIMESTAMP = 0x2 SCM_TIMESTAMP_MONOTONIC = 0x4 SHUT_RD = 0x0 SHUT_RDWR = 0x2 SHUT_WR = 0x1 SIOCADDMULTI = 0x80206931 SIOCAIFADDR = 0x8040691a SIOCARPIPLL = 0xc0206928 SIOCATMARK = 0x40047307 SIOCAUTOADDR = 0xc0206926 SIOCAUTONETMASK = 0x80206927 SIOCDELMULTI = 0x80206932 SIOCDIFADDR = 0x80206919 SIOCDIFPHYADDR = 0x80206941 SIOCGDRVSPEC = 0xc01c697b SIOCGETVLAN = 0xc020697f SIOCGHIWAT = 0x40047301 SIOCGIFADDR = 0xc0206921 SIOCGIFALTMTU = 0xc0206948 SIOCGIFASYNCMAP = 0xc020697c SIOCGIFBOND = 0xc0206947 SIOCGIFBRDADDR = 0xc0206923 SIOCGIFCAP = 0xc020695b SIOCGIFCONF = 0xc0086924 SIOCGIFDEVMTU = 0xc0206944 SIOCGIFDSTADDR = 0xc0206922 SIOCGIFFLAGS = 0xc0206911 SIOCGIFGENERIC = 0xc020693a SIOCGIFKPI = 0xc0206987 SIOCGIFMAC = 0xc0206982 SIOCGIFMEDIA = 0xc0286938 SIOCGIFMETRIC = 0xc0206917 SIOCGIFMTU = 0xc0206933 SIOCGIFNETMASK = 0xc0206925 SIOCGIFPDSTADDR = 0xc0206940 SIOCGIFPHYS = 0xc0206935 SIOCGIFPSRCADDR = 0xc020693f SIOCGIFSTATUS = 0xc331693d SIOCGIFVLAN = 0xc020697f SIOCGIFWAKEFLAGS = 0xc0206988 SIOCGLOWAT = 0x40047303 SIOCGPGRP = 0x40047309 SIOCIFCREATE = 0xc0206978 SIOCIFCREATE2 = 0xc020697a SIOCIFDESTROY = 0x80206979 SIOCIFGCLONERS = 0xc00c6981 SIOCRSLVMULTI = 0xc008693b SIOCSDRVSPEC = 0x801c697b SIOCSETVLAN = 0x8020697e SIOCSHIWAT = 0x80047300 SIOCSIFADDR = 0x8020690c SIOCSIFALTMTU = 0x80206945 SIOCSIFASYNCMAP = 0x8020697d SIOCSIFBOND = 0x80206946 SIOCSIFBRDADDR = 0x80206913 SIOCSIFCAP = 0x8020695a SIOCSIFDSTADDR = 0x8020690e SIOCSIFFLAGS = 0x80206910 SIOCSIFGENERIC = 0x80206939 SIOCSIFKPI = 0x80206986 SIOCSIFLLADDR = 0x8020693c SIOCSIFMAC = 0x80206983 SIOCSIFMEDIA = 0xc0206937 SIOCSIFMETRIC = 0x80206918 SIOCSIFMTU = 0x80206934 SIOCSIFNETMASK = 0x80206916 SIOCSIFPHYADDR = 0x8040693e SIOCSIFPHYS = 0x80206936 SIOCSIFVLAN = 0x8020697e SIOCSLOWAT = 0x80047302 SIOCSPGRP = 0x80047308 SOCK_DGRAM = 0x2 SOCK_MAXADDRLEN = 0xff SOCK_RAW = 0x3 SOCK_RDM = 0x4 SOCK_SEQPACKET = 0x5 SOCK_STREAM = 0x1 SOL_SOCKET = 0xffff SOMAXCONN = 0x80 SO_ACCEPTCONN = 0x2 SO_BROADCAST = 0x20 SO_DEBUG = 0x1 SO_DONTROUTE = 0x10 SO_DONTTRUNC = 0x2000 SO_ERROR = 0x1007 SO_KEEPALIVE = 0x8 SO_LABEL = 0x1010 SO_LINGER = 0x80 SO_LINGER_SEC = 0x1080 SO_NETSVC_MARKING_LEVEL = 0x1119 SO_NET_SERVICE_TYPE = 0x1116 SO_NKE = 0x1021 SO_NOADDRERR = 0x1023 SO_NOSIGPIPE = 0x1022 SO_NOTIFYCONFLICT = 0x1026 SO_NP_EXTENSIONS = 0x1083 SO_NREAD = 0x1020 SO_NUMRCVPKT = 0x1112 SO_NWRITE = 0x1024 SO_OOBINLINE = 0x100 SO_PEERLABEL = 0x1011 SO_RANDOMPORT = 0x1082 SO_RCVBUF = 0x1002 SO_RCVLOWAT = 0x1004 SO_RCVTIMEO = 0x1006 SO_REUSEADDR = 0x4 SO_REUSEPORT = 0x200 SO_REUSESHAREUID = 0x1025 SO_SNDBUF = 0x1001 SO_SNDLOWAT = 0x1003 SO_SNDTIMEO = 0x1005 SO_TIMESTAMP = 0x400 SO_TIMESTAMP_MONOTONIC = 0x800 SO_TYPE = 0x1008 SO_UPCALLCLOSEWAIT = 0x1027 SO_USELOOPBACK = 0x40 SO_WANTMORE = 0x4000 SO_WANTOOBFLAG = 0x8000 S_IEXEC = 0x40 S_IFBLK = 0x6000 S_IFCHR = 0x2000 S_IFDIR = 0x4000 S_IFIFO = 0x1000 S_IFLNK = 0xa000 S_IFMT = 0xf000 S_IFREG = 0x8000 S_IFSOCK = 0xc000 S_IFWHT = 0xe000 S_IREAD = 0x100 S_IRGRP = 0x20 S_IROTH = 0x4 S_IRUSR = 0x100 S_IRWXG = 0x38 S_IRWXO = 0x7 S_IRWXU = 0x1c0 S_ISGID = 0x400 S_ISTXT = 0x200 S_ISUID = 0x800 S_ISVTX = 0x200 S_IWGRP = 0x10 S_IWOTH = 0x2 S_IWRITE = 0x80 S_IWUSR = 0x80 S_IXGRP = 0x8 S_IXOTH = 0x1 S_IXUSR = 0x40 TAB0 = 0x0 TAB1 = 0x400 TAB2 = 0x800 TAB3 = 0x4 TABDLY = 0xc04 TCIFLUSH = 0x1 TCIOFF = 0x3 TCIOFLUSH = 0x3 TCION = 0x4 TCOFLUSH = 0x2 TCOOFF = 0x1 TCOON = 0x2 TCP_CONNECTIONTIMEOUT = 0x20 TCP_CONNECTION_INFO = 0x106 TCP_ENABLE_ECN = 0x104 TCP_FASTOPEN = 0x105 TCP_KEEPALIVE = 0x10 TCP_KEEPCNT = 0x102 TCP_KEEPINTVL = 0x101 TCP_MAXHLEN = 0x3c TCP_MAXOLEN = 0x28 TCP_MAXSEG = 0x2 TCP_MAXWIN = 0xffff TCP_MAX_SACK = 0x4 TCP_MAX_WINSHIFT = 0xe TCP_MINMSS = 0xd8 TCP_MSS = 0x200 TCP_NODELAY = 0x1 TCP_NOOPT = 0x8 TCP_NOPUSH = 0x4 TCP_NOTSENT_LOWAT = 0x201 TCP_RXT_CONNDROPTIME = 0x80 TCP_RXT_FINDROP = 0x100 TCP_SENDMOREACKS = 0x103 TCSAFLUSH = 0x2 TIOCCBRK = 0x2000747a TIOCCDTR = 0x20007478 TIOCCONS = 0x80047462 TIOCDCDTIMESTAMP = 0x40087458 TIOCDRAIN = 0x2000745e TIOCDSIMICROCODE = 0x20007455 TIOCEXCL = 0x2000740d TIOCEXT = 0x80047460 TIOCFLUSH = 0x80047410 TIOCGDRAINWAIT = 0x40047456 TIOCGETA = 0x402c7413 TIOCGETD = 0x4004741a TIOCGPGRP = 0x40047477 TIOCGWINSZ = 0x40087468 TIOCIXOFF = 0x20007480 TIOCIXON = 0x20007481 TIOCMBIC = 0x8004746b TIOCMBIS = 0x8004746c TIOCMGDTRWAIT = 0x4004745a TIOCMGET = 0x4004746a TIOCMODG = 0x40047403 TIOCMODS = 0x80047404 TIOCMSDTRWAIT = 0x8004745b TIOCMSET = 0x8004746d TIOCM_CAR = 0x40 TIOCM_CD = 0x40 TIOCM_CTS = 0x20 TIOCM_DSR = 0x100 TIOCM_DTR = 0x2 TIOCM_LE = 0x1 TIOCM_RI = 0x80 TIOCM_RNG = 0x80 TIOCM_RTS = 0x4 TIOCM_SR = 0x10 TIOCM_ST = 0x8 TIOCNOTTY = 0x20007471 TIOCNXCL = 0x2000740e TIOCOUTQ = 0x40047473 TIOCPKT = 0x80047470 TIOCPKT_DATA = 0x0 TIOCPKT_DOSTOP = 0x20 TIOCPKT_FLUSHREAD = 0x1 TIOCPKT_FLUSHWRITE = 0x2 TIOCPKT_IOCTL = 0x40 TIOCPKT_NOSTOP = 0x10 TIOCPKT_START = 0x8 TIOCPKT_STOP = 0x4 TIOCPTYGNAME = 0x40807453 TIOCPTYGRANT = 0x20007454 TIOCPTYUNLK = 0x20007452 TIOCREMOTE = 0x80047469 TIOCSBRK = 0x2000747b TIOCSCONS = 0x20007463 TIOCSCTTY = 0x20007461 TIOCSDRAINWAIT = 0x80047457 TIOCSDTR = 0x20007479 TIOCSETA = 0x802c7414 TIOCSETAF = 0x802c7416 TIOCSETAW = 0x802c7415 TIOCSETD = 0x8004741b TIOCSIG = 0x2000745f TIOCSPGRP = 0x80047476 TIOCSTART = 0x2000746e TIOCSTAT = 0x20007465 TIOCSTI = 0x80017472 TIOCSTOP = 0x2000746f TIOCSWINSZ = 0x80087467 TIOCTIMESTAMP = 0x40087459 TIOCUCNTL = 0x80047466 TOSTOP = 0x400000 VDISCARD = 0xf VDSUSP = 0xb VEOF = 0x0 VEOL = 0x1 VEOL2 = 0x2 VERASE = 0x3 VINTR = 0x8 VKILL = 0x5 VLNEXT = 0xe VMIN = 0x10 VM_LOADAVG = 0x2 VM_MACHFACTOR = 0x4 VM_MAXID = 0x6 VM_METER = 0x1 VM_SWAPUSAGE = 0x5 VQUIT = 0x9 VREPRINT = 0x6 VSTART = 0xc VSTATUS = 0x12 VSTOP = 0xd VSUSP = 0xa VT0 = 0x0 VT1 = 0x10000 VTDLY = 0x10000 VTIME = 0x11 VWERASE = 0x4 WCONTINUED = 0x10 WCOREFLAG = 0x80 WEXITED = 0x4 WNOHANG = 0x1 WNOWAIT = 0x20 WORDSIZE = 0x20 WSTOPPED = 0x8 WUNTRACED = 0x2 XATTR_CREATE = 0x2 XATTR_NODEFAULT = 0x10 XATTR_NOFOLLOW = 0x1 XATTR_NOSECURITY = 0x8 XATTR_REPLACE = 0x4 XATTR_SHOWCOMPRESSION = 0x20 ) // Errors const ( E2BIG = syscall.Errno(0x7) EACCES = syscall.Errno(0xd) EADDRINUSE = syscall.Errno(0x30) EADDRNOTAVAIL = syscall.Errno(0x31) EAFNOSUPPORT = syscall.Errno(0x2f) EAGAIN = syscall.Errno(0x23) EALREADY = syscall.Errno(0x25) EAUTH = syscall.Errno(0x50) EBADARCH = syscall.Errno(0x56) EBADEXEC = syscall.Errno(0x55) EBADF = syscall.Errno(0x9) EBADMACHO = syscall.Errno(0x58) EBADMSG = syscall.Errno(0x5e) EBADRPC = syscall.Errno(0x48) EBUSY = syscall.Errno(0x10) ECANCELED = syscall.Errno(0x59) ECHILD = syscall.Errno(0xa) ECONNABORTED = syscall.Errno(0x35) ECONNREFUSED = syscall.Errno(0x3d) ECONNRESET = syscall.Errno(0x36) EDEADLK = syscall.Errno(0xb) EDESTADDRREQ = syscall.Errno(0x27) EDEVERR = syscall.Errno(0x53) EDOM = syscall.Errno(0x21) EDQUOT = syscall.Errno(0x45) EEXIST = syscall.Errno(0x11) EFAULT = syscall.Errno(0xe) EFBIG = syscall.Errno(0x1b) EFTYPE = syscall.Errno(0x4f) EHOSTDOWN = syscall.Errno(0x40) EHOSTUNREACH = syscall.Errno(0x41) EIDRM = syscall.Errno(0x5a) EILSEQ = syscall.Errno(0x5c) EINPROGRESS = syscall.Errno(0x24) EINTR = syscall.Errno(0x4) EINVAL = syscall.Errno(0x16) EIO = syscall.Errno(0x5) EISCONN = syscall.Errno(0x38) EISDIR = syscall.Errno(0x15) ELAST = syscall.Errno(0x6a) ELOOP = syscall.Errno(0x3e) EMFILE = syscall.Errno(0x18) EMLINK = syscall.Errno(0x1f) EMSGSIZE = syscall.Errno(0x28) EMULTIHOP = syscall.Errno(0x5f) ENAMETOOLONG = syscall.Errno(0x3f) ENEEDAUTH = syscall.Errno(0x51) ENETDOWN = syscall.Errno(0x32) ENETRESET = syscall.Errno(0x34) ENETUNREACH = syscall.Errno(0x33) ENFILE = syscall.Errno(0x17) ENOATTR = syscall.Errno(0x5d) ENOBUFS = syscall.Errno(0x37) ENODATA = syscall.Errno(0x60) ENODEV = syscall.Errno(0x13) ENOENT = syscall.Errno(0x2) ENOEXEC = syscall.Errno(0x8) ENOLCK = syscall.Errno(0x4d) ENOLINK = syscall.Errno(0x61) ENOMEM = syscall.Errno(0xc) ENOMSG = syscall.Errno(0x5b) ENOPOLICY = syscall.Errno(0x67) ENOPROTOOPT = syscall.Errno(0x2a) ENOSPC = syscall.Errno(0x1c) ENOSR = syscall.Errno(0x62) ENOSTR = syscall.Errno(0x63) ENOSYS = syscall.Errno(0x4e) ENOTBLK = syscall.Errno(0xf) ENOTCONN = syscall.Errno(0x39) ENOTDIR = syscall.Errno(0x14) ENOTEMPTY = syscall.Errno(0x42) ENOTRECOVERABLE = syscall.Errno(0x68) ENOTSOCK = syscall.Errno(0x26) ENOTSUP = syscall.Errno(0x2d) ENOTTY = syscall.Errno(0x19) ENXIO = syscall.Errno(0x6) EOPNOTSUPP = syscall.Errno(0x66) EOVERFLOW = syscall.Errno(0x54) EOWNERDEAD = syscall.Errno(0x69) EPERM = syscall.Errno(0x1) EPFNOSUPPORT = syscall.Errno(0x2e) EPIPE = syscall.Errno(0x20) EPROCLIM = syscall.Errno(0x43) EPROCUNAVAIL = syscall.Errno(0x4c) EPROGMISMATCH = syscall.Errno(0x4b) EPROGUNAVAIL = syscall.Errno(0x4a) EPROTO = syscall.Errno(0x64) EPROTONOSUPPORT = syscall.Errno(0x2b) EPROTOTYPE = syscall.Errno(0x29) EPWROFF = syscall.Errno(0x52) EQFULL = syscall.Errno(0x6a) ERANGE = syscall.Errno(0x22) EREMOTE = syscall.Errno(0x47) EROFS = syscall.Errno(0x1e) ERPCMISMATCH = syscall.Errno(0x49) ESHLIBVERS = syscall.Errno(0x57) ESHUTDOWN = syscall.Errno(0x3a) ESOCKTNOSUPPORT = syscall.Errno(0x2c) ESPIPE = syscall.Errno(0x1d) ESRCH = syscall.Errno(0x3) ESTALE = syscall.Errno(0x46) ETIME = syscall.Errno(0x65) ETIMEDOUT = syscall.Errno(0x3c) ETOOMANYREFS = syscall.Errno(0x3b) ETXTBSY = syscall.Errno(0x1a) EUSERS = syscall.Errno(0x44) EWOULDBLOCK = syscall.Errno(0x23) EXDEV = syscall.Errno(0x12) ) // Signals const ( SIGABRT = syscall.Signal(0x6) SIGALRM = syscall.Signal(0xe) SIGBUS = syscall.Signal(0xa) SIGCHLD = syscall.Signal(0x14) SIGCONT = syscall.Signal(0x13) SIGEMT = syscall.Signal(0x7) SIGFPE = syscall.Signal(0x8) SIGHUP = syscall.Signal(0x1) SIGILL = syscall.Signal(0x4) SIGINFO = syscall.Signal(0x1d) SIGINT = syscall.Signal(0x2) SIGIO = syscall.Signal(0x17) SIGIOT = syscall.Signal(0x6) SIGKILL = syscall.Signal(0x9) SIGPIPE = syscall.Signal(0xd) SIGPROF = syscall.Signal(0x1b) SIGQUIT = syscall.Signal(0x3) SIGSEGV = syscall.Signal(0xb) SIGSTOP = syscall.Signal(0x11) SIGSYS = syscall.Signal(0xc) SIGTERM = syscall.Signal(0xf) SIGTRAP = syscall.Signal(0x5) SIGTSTP = syscall.Signal(0x12) SIGTTIN = syscall.Signal(0x15) SIGTTOU = syscall.Signal(0x16) SIGURG = syscall.Signal(0x10) SIGUSR1 = syscall.Signal(0x1e) SIGUSR2 = syscall.Signal(0x1f) SIGVTALRM = syscall.Signal(0x1a) SIGWINCH = syscall.Signal(0x1c) SIGXCPU = syscall.Signal(0x18) SIGXFSZ = syscall.Signal(0x19) ) // Error table var errorList = [...]struct { num syscall.Errno name string desc string }{ {1, "EPERM", "operation not permitted"}, {2, "ENOENT", "no such file or directory"}, {3, "ESRCH", "no such process"}, {4, "EINTR", "interrupted system call"}, {5, "EIO", "input/output error"}, {6, "ENXIO", "device not configured"}, {7, "E2BIG", "argument list too long"}, {8, "ENOEXEC", "exec format error"}, {9, "EBADF", "bad file descriptor"}, {10, "ECHILD", "no child processes"}, {11, "EDEADLK", "resource deadlock avoided"}, {12, "ENOMEM", "cannot allocate memory"}, {13, "EACCES", "permission denied"}, {14, "EFAULT", "bad address"}, {15, "ENOTBLK", "block device required"}, {16, "EBUSY", "resource busy"}, {17, "EEXIST", "file exists"}, {18, "EXDEV", "cross-device link"}, {19, "ENODEV", "operation not supported by device"}, {20, "ENOTDIR", "not a directory"}, {21, "EISDIR", "is a directory"}, {22, "EINVAL", "invalid argument"}, {23, "ENFILE", "too many open files in system"}, {24, "EMFILE", "too many open files"}, {25, "ENOTTY", "inappropriate ioctl for device"}, {26, "ETXTBSY", "text file busy"}, {27, "EFBIG", "file too large"}, {28, "ENOSPC", "no space left on device"}, {29, "ESPIPE", "illegal seek"}, {30, "EROFS", "read-only file system"}, {31, "EMLINK", "too many links"}, {32, "EPIPE", "broken pipe"}, {33, "EDOM", "numerical argument out of domain"}, {34, "ERANGE", "result too large"}, {35, "EAGAIN", "resource temporarily unavailable"}, {36, "EINPROGRESS", "operation now in progress"}, {37, "EALREADY", "operation already in progress"}, {38, "ENOTSOCK", "socket operation on non-socket"}, {39, "EDESTADDRREQ", "destination address required"}, {40, "EMSGSIZE", "message too long"}, {41, "EPROTOTYPE", "protocol wrong type for socket"}, {42, "ENOPROTOOPT", "protocol not available"}, {43, "EPROTONOSUPPORT", "protocol not supported"}, {44, "ESOCKTNOSUPPORT", "socket type not supported"}, {45, "ENOTSUP", "operation not supported"}, {46, "EPFNOSUPPORT", "protocol family not supported"}, {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, {48, "EADDRINUSE", "address already in use"}, {49, "EADDRNOTAVAIL", "can't assign requested address"}, {50, "ENETDOWN", "network is down"}, {51, "ENETUNREACH", "network is unreachable"}, {52, "ENETRESET", "network dropped connection on reset"}, {53, "ECONNABORTED", "software caused connection abort"}, {54, "ECONNRESET", "connection reset by peer"}, {55, "ENOBUFS", "no buffer space available"}, {56, "EISCONN", "socket is already connected"}, {57, "ENOTCONN", "socket is not connected"}, {58, "ESHUTDOWN", "can't send after socket shutdown"}, {59, "ETOOMANYREFS", "too many references: can't splice"}, {60, "ETIMEDOUT", "operation timed out"}, {61, "ECONNREFUSED", "connection refused"}, {62, "ELOOP", "too many levels of symbolic links"}, {63, "ENAMETOOLONG", "file name too long"}, {64, "EHOSTDOWN", "host is down"}, {65, "EHOSTUNREACH", "no route to host"}, {66, "ENOTEMPTY", "directory not empty"}, {67, "EPROCLIM", "too many processes"}, {68, "EUSERS", "too many users"}, {69, "EDQUOT", "disc quota exceeded"}, {70, "ESTALE", "stale NFS file handle"}, {71, "EREMOTE", "too many levels of remote in path"}, {72, "EBADRPC", "RPC struct is bad"}, {73, "ERPCMISMATCH", "RPC version wrong"}, {74, "EPROGUNAVAIL", "RPC prog. not avail"}, {75, "EPROGMISMATCH", "program version wrong"}, {76, "EPROCUNAVAIL", "bad procedure for program"}, {77, "ENOLCK", "no locks available"}, {78, "ENOSYS", "function not implemented"}, {79, "EFTYPE", "inappropriate file type or format"}, {80, "EAUTH", "authentication error"}, {81, "ENEEDAUTH", "need authenticator"}, {82, "EPWROFF", "device power is off"}, {83, "EDEVERR", "device error"}, {84, "EOVERFLOW", "value too large to be stored in data type"}, {85, "EBADEXEC", "bad executable (or shared library)"}, {86, "EBADARCH", "bad CPU type in executable"}, {87, "ESHLIBVERS", "shared library version mismatch"}, {88, "EBADMACHO", "malformed Mach-o file"}, {89, "ECANCELED", "operation canceled"}, {90, "EIDRM", "identifier removed"}, {91, "ENOMSG", "no message of desired type"}, {92, "EILSEQ", "illegal byte sequence"}, {93, "ENOATTR", "attribute not found"}, {94, "EBADMSG", "bad message"}, {95, "EMULTIHOP", "EMULTIHOP (Reserved)"}, {96, "ENODATA", "no message available on STREAM"}, {97, "ENOLINK", "ENOLINK (Reserved)"}, {98, "ENOSR", "no STREAM resources"}, {99, "ENOSTR", "not a STREAM"}, {100, "EPROTO", "protocol error"}, {101, "ETIME", "STREAM ioctl timeout"}, {102, "EOPNOTSUPP", "operation not supported on socket"}, {103, "ENOPOLICY", "policy not found"}, {104, "ENOTRECOVERABLE", "state not recoverable"}, {105, "EOWNERDEAD", "previous owner died"}, {106, "EQFULL", "interface output queue is full"}, } // Signal table var signalList = [...]struct { num syscall.Signal name string desc string }{ {1, "SIGHUP", "hangup"}, {2, "SIGINT", "interrupt"}, {3, "SIGQUIT", "quit"}, {4, "SIGILL", "illegal instruction"}, {5, "SIGTRAP", "trace/BPT trap"}, {6, "SIGABRT", "abort trap"}, {7, "SIGEMT", "EMT trap"}, {8, "SIGFPE", "floating point exception"}, {9, "SIGKILL", "killed"}, {10, "SIGBUS", "bus error"}, {11, "SIGSEGV", "segmentation fault"}, {12, "SIGSYS", "bad system call"}, {13, "SIGPIPE", "broken pipe"}, {14, "SIGALRM", "alarm clock"}, {15, "SIGTERM", "terminated"}, {16, "SIGURG", "urgent I/O condition"}, {17, "SIGSTOP", "suspended (signal)"}, {18, "SIGTSTP", "suspended"}, {19, "SIGCONT", "continued"}, {20, "SIGCHLD", "child exited"}, {21, "SIGTTIN", "stopped (tty input)"}, {22, "SIGTTOU", "stopped (tty output)"}, {23, "SIGIO", "I/O possible"}, {24, "SIGXCPU", "cputime limit exceeded"}, {25, "SIGXFSZ", "filesize limit exceeded"}, {26, "SIGVTALRM", "virtual timer expired"}, {27, "SIGPROF", "profiling timer expired"}, {28, "SIGWINCH", "window size changes"}, {29, "SIGINFO", "information request"}, {30, "SIGUSR1", "user defined signal 1"}, {31, "SIGUSR2", "user defined signal 2"}, }
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ using System; using System.Collections.Generic; using Aliyun.Acs.Core.Transform; using Aliyun.Acs.Iot.Model.V20180120; namespace Aliyun.Acs.Iot.Transform.V20180120 { public class CreateProductTagsResponseUnmarshaller { public static CreateProductTagsResponse Unmarshall(UnmarshallerContext context) { CreateProductTagsResponse createProductTagsResponse = new CreateProductTagsResponse(); createProductTagsResponse.HttpResponse = context.HttpResponse; createProductTagsResponse.RequestId = context.StringValue("CreateProductTags.RequestId"); createProductTagsResponse.Success = context.BooleanValue("CreateProductTags.Success"); createProductTagsResponse.ErrorMessage = context.StringValue("CreateProductTags.ErrorMessage"); createProductTagsResponse.Code = context.StringValue("CreateProductTags.Code"); List<CreateProductTagsResponse.CreateProductTags_ProductTag> createProductTagsResponse_invalidProductTags = new List<CreateProductTagsResponse.CreateProductTags_ProductTag>(); for (int i = 0; i < context.Length("CreateProductTags.InvalidProductTags.Length"); i++) { CreateProductTagsResponse.CreateProductTags_ProductTag productTag = new CreateProductTagsResponse.CreateProductTags_ProductTag(); productTag.TagKey = context.StringValue("CreateProductTags.InvalidProductTags["+ i +"].TagKey"); productTag.TagValue = context.StringValue("CreateProductTags.InvalidProductTags["+ i +"].TagValue"); createProductTagsResponse_invalidProductTags.Add(productTag); } createProductTagsResponse.InvalidProductTags = createProductTagsResponse_invalidProductTags; return createProductTagsResponse; } } }
{ "pile_set_name": "Github" }
// Copyright 2008 The Closure Library Authors. All Rights Reserved. // // 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 An alternative custom button renderer that uses even more CSS * voodoo than the default implementation to render custom buttons with fake * rounded corners and dimensionality (via a subtle flat shadow on the bottom * half of the button) without the use of images. * * Based on the Custom Buttons 3.1 visual specification, see * http://go/custombuttons * * @author eae@google.com (Emil A Eklund) * @see ../demos/imagelessbutton.html */ goog.provide('goog.ui.ImagelessButtonRenderer'); goog.require('goog.dom.classes'); goog.require('goog.ui.Button'); goog.require('goog.ui.ControlContent'); goog.require('goog.ui.CustomButtonRenderer'); goog.require('goog.ui.INLINE_BLOCK_CLASSNAME'); goog.require('goog.ui.registry'); /** * Custom renderer for {@link goog.ui.Button}s. Imageless buttons can contain * almost arbitrary HTML content, will flow like inline elements, but can be * styled like block-level elements. * * @constructor * @extends {goog.ui.CustomButtonRenderer} */ goog.ui.ImagelessButtonRenderer = function() { goog.ui.CustomButtonRenderer.call(this); }; goog.inherits(goog.ui.ImagelessButtonRenderer, goog.ui.CustomButtonRenderer); /** * The singleton instance of this renderer class. * @type {goog.ui.ImagelessButtonRenderer?} * @private */ goog.ui.ImagelessButtonRenderer.instance_ = null; goog.addSingletonGetter(goog.ui.ImagelessButtonRenderer); /** * Default CSS class to be applied to the root element of components rendered * by this renderer. * @type {string} */ goog.ui.ImagelessButtonRenderer.CSS_CLASS = goog.getCssName('goog-imageless-button'); /** * Returns the button's contents wrapped in the following DOM structure: * <div class="goog-inline-block goog-imageless-button"> * <div class="goog-inline-block goog-imageless-button-outer-box"> * <div class="goog-imageless-button-inner-box"> * <div class="goog-imageless-button-pos-box"> * <div class="goog-imageless-button-top-shadow">&nbsp;</div> * <div class="goog-imageless-button-content">Contents...</div> * </div> * </div> * </div> * </div> * @override */ goog.ui.ImagelessButtonRenderer.prototype.createDom; /** @override */ goog.ui.ImagelessButtonRenderer.prototype.getContentElement = function( element) { return /** @type {Element} */ (element && element.firstChild && element.firstChild.firstChild && element.firstChild.firstChild.firstChild.lastChild); }; /** * Takes a text caption or existing DOM structure, and returns the content * wrapped in a pseudo-rounded-corner box. Creates the following DOM structure: * <div class="goog-inline-block goog-imageless-button-outer-box"> * <div class="goog-inline-block goog-imageless-button-inner-box"> * <div class="goog-imageless-button-pos"> * <div class="goog-imageless-button-top-shadow">&nbsp;</div> * <div class="goog-imageless-button-content">Contents...</div> * </div> * </div> * </div> * Used by both {@link #createDom} and {@link #decorate}. To be overridden * by subclasses. * @param {goog.ui.ControlContent} content Text caption or DOM structure to wrap * in a box. * @param {goog.dom.DomHelper} dom DOM helper, used for document interaction. * @return {Element} Pseudo-rounded-corner box containing the content. * @override */ goog.ui.ImagelessButtonRenderer.prototype.createButton = function(content, dom) { var baseClass = this.getCssClass(); var inlineBlock = goog.ui.INLINE_BLOCK_CLASSNAME + ' '; return dom.createDom('div', inlineBlock + goog.getCssName(baseClass, 'outer-box'), dom.createDom('div', inlineBlock + goog.getCssName(baseClass, 'inner-box'), dom.createDom('div', goog.getCssName(baseClass, 'pos'), dom.createDom('div', goog.getCssName(baseClass, 'top-shadow'), '\u00A0'), dom.createDom('div', goog.getCssName(baseClass, 'content'), content)))); }; /** * Check if the button's element has a box structure. * @param {goog.ui.Button} button Button instance whose structure is being * checked. * @param {Element} element Element of the button. * @return {boolean} Whether the element has a box structure. * @protected * @override */ goog.ui.ImagelessButtonRenderer.prototype.hasBoxStructure = function( button, element) { var outer = button.getDomHelper().getFirstElementChild(element); var outerClassName = goog.getCssName(this.getCssClass(), 'outer-box'); if (outer && goog.dom.classes.has(outer, outerClassName)) { var inner = button.getDomHelper().getFirstElementChild(outer); var innerClassName = goog.getCssName(this.getCssClass(), 'inner-box'); if (inner && goog.dom.classes.has(inner, innerClassName)) { var pos = button.getDomHelper().getFirstElementChild(inner); var posClassName = goog.getCssName(this.getCssClass(), 'pos'); if (pos && goog.dom.classes.has(pos, posClassName)) { var shadow = button.getDomHelper().getFirstElementChild(pos); var shadowClassName = goog.getCssName( this.getCssClass(), 'top-shadow'); if (shadow && goog.dom.classes.has(shadow, shadowClassName)) { var content = button.getDomHelper().getNextElementSibling(shadow); var contentClassName = goog.getCssName( this.getCssClass(), 'content'); if (content && goog.dom.classes.has(content, contentClassName)) { // We have a proper box structure. return true; } } } } } return false; }; /** * Returns the CSS class to be applied to the root element of components * rendered using this renderer. * @return {string} Renderer-specific CSS class. * @override */ goog.ui.ImagelessButtonRenderer.prototype.getCssClass = function() { return goog.ui.ImagelessButtonRenderer.CSS_CLASS; }; // Register a decorator factory function for goog.ui.ImagelessButtonRenderer. goog.ui.registry.setDecoratorByClassName( goog.ui.ImagelessButtonRenderer.CSS_CLASS, function() { return new goog.ui.Button(null, goog.ui.ImagelessButtonRenderer.getInstance()); }); // Register a decorator factory function for toggle buttons using the // goog.ui.ImagelessButtonRenderer. goog.ui.registry.setDecoratorByClassName( goog.getCssName('goog-imageless-toggle-button'), function() { var button = new goog.ui.Button(null, goog.ui.ImagelessButtonRenderer.getInstance()); button.setSupportedState(goog.ui.Component.State.CHECKED, true); return button; });
{ "pile_set_name": "Github" }
<!DOCTYPE html> <!-- this file is auto-generated. DO NOT EDIT. /* ** Copyright (c) 2012 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify, merge, publish, ** distribute, sublicense, and/or sell copies of the Materials, and to ** permit persons to whom the Materials are 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 Materials. ** ** THE MATERIALS ARE 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 AUTHORS OR COPYRIGHT HOLDERS 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 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ --> <html> <head> <meta charset="utf-8"> <title>WebGL GLSL conformance test: operators_001_to_008.html</title> <link rel="stylesheet" href="../../../../resources/js-test-style.css" /> <link rel="stylesheet" href="../../../resources/ogles-tests.css" /> <script src="../../../../resources/js-test-pre.js"></script> <script src="../../../resources/webgl-test.js"></script> <script src="../../../resources/webgl-test-utils.js"></script> <script src="../../ogles-utils.js"></script> </head> <body> <canvas id="example" width="500" height="500" style="width: 16px; height: 16px;"></canvas> <div id="description"></div> <div id="console"></div> </body> <script> "use strict"; OpenGLESTestRunner.run({ "tests": [ { "referenceProgram": { "vertexShader": "../default/default.vert", "uniforms": { "result": { "count": 1, "type": "uniform4fv", "value": [ 1.0, 1.0, 1.0, 1.0 ] } }, "fragmentShader": "../default/expected.frag" }, "model": null, "testProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "postfixincrement_frag.frag" }, "name": "postfixincrement_frag.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "uniforms": { "result": { "count": 1, "type": "uniform4fv", "value": [ 1.0, 1.0, 1.0, 1.0 ] } }, "fragmentShader": "../default/expected.frag" }, "model": null, "testProgram": { "vertexShader": "postfixincrement_vert.vert", "fragmentShader": "../default/default.frag" }, "name": "postfixincrement_vert.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "uniforms": { "result": { "count": 1, "type": "uniform4fv", "value": [ 1.0, 1.0, 1.0, 1.0 ] } }, "fragmentShader": "../default/expected.frag" }, "model": null, "testProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "postfixdecrement_frag.frag" }, "name": "postfixdecrement_frag.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "uniforms": { "result": { "count": 1, "type": "uniform4fv", "value": [ 1.0, 1.0, 1.0, 1.0 ] } }, "fragmentShader": "../default/expected.frag" }, "model": null, "testProgram": { "vertexShader": "postfixdecrement_vert.vert", "fragmentShader": "../default/default.frag" }, "name": "postfixdecrement_vert.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "uniforms": { "result": { "count": 1, "type": "uniform4fv", "value": [ 1.0, 1.0, 1.0, 1.0 ] } }, "fragmentShader": "../default/expected.frag" }, "model": null, "testProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "prefixincrement_frag.frag" }, "name": "prefixincrement_frag.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "uniforms": { "result": { "count": 1, "type": "uniform4fv", "value": [ 1.0, 1.0, 1.0, 1.0 ] } }, "fragmentShader": "../default/expected.frag" }, "model": null, "testProgram": { "vertexShader": "prefixincrement_vert.vert", "fragmentShader": "../default/default.frag" }, "name": "prefixincrement_vert.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "uniforms": { "result": { "count": 1, "type": "uniform4fv", "value": [ 1.0, 1.0, 1.0, 1.0 ] } }, "fragmentShader": "../default/expected.frag" }, "model": null, "testProgram": { "vertexShader": "../default/default.vert", "fragmentShader": "prefixdecrement_frag.frag" }, "name": "prefixdecrement_frag.test.html", "pattern": "compare" }, { "referenceProgram": { "vertexShader": "../default/default.vert", "uniforms": { "result": { "count": 1, "type": "uniform4fv", "value": [ 1.0, 1.0, 1.0, 1.0 ] } }, "fragmentShader": "../default/expected.frag" }, "model": null, "testProgram": { "vertexShader": "prefixdecrement_vert.vert", "fragmentShader": "../default/default.frag" }, "name": "prefixdecrement_vert.test.html", "pattern": "compare" } ] }); var successfullyParsed = true; </script> </html>
{ "pile_set_name": "Github" }
# Copyright(c) 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in 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. Import-Module -DisableNameChecking ..\..\..\BuildTools.psm1 try { Push-Location Set-Location IO.Swagger $url = "http://localhost:7412" $job = Run-Kestrel $url Set-Location ../IO.SwaggerTest $env:ASPNETCORE_URLS = $url dotnet test --test-adapter-path:. --logger:junit 2>&1 | %{ "$_" } } finally { Stop-Job $job Receive-Job $job Remove-Job $job Pop-Location }
{ "pile_set_name": "Github" }
/* * Copyright 2006-2009, 2017, 2020 United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA World Wind Java (WWJ) platform is 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. * * NASA World Wind Java (WWJ) also contains the following 3rd party Open Source * software: * * Jackson Parser – Licensed under Apache 2.0 * GDAL – Licensed under MIT * JOGL – Licensed under Berkeley Software Distribution (BSD) * Gluegen – Licensed under Berkeley Software Distribution (BSD) * * A complete listing of 3rd Party software notices and licenses included in * NASA World Wind Java (WWJ) can be found in the WorldWindJava-v2.2 3rd-party * notices and licenses PDF found in code directory. */ package gov.nasa.worldwindx.examples; import gov.nasa.worldwind.avlist.AVKey; import gov.nasa.worldwind.geom.*; import gov.nasa.worldwind.globes.Globe; import gov.nasa.worldwind.layers.RenderableLayer; import gov.nasa.worldwind.render.*; import gov.nasa.worldwind.util.ContourList; import gov.nasa.worldwind.util.combine.ShapeCombiner; /** * Shows how to use the {@link gov.nasa.worldwind.util.combine.Combinable} interface and the {@link * gov.nasa.worldwind.util.combine.ShapeCombiner} class to combine WorldWind surface shapes into a complex set of * contours by using boolean operations. * <p> * This example creates two static SurfaceCircle instances that partially overlap and displays them in a layer named * "Original". A ShapeCombiner is used to combine the two surface circles into a potentially complex set of contours * using boolean operations. Three examples of such operations are given: union, intersection and difference. The result * of each operation is displayed in a separate layer beneath the original shapes. * * @author dcollins * @version $Id: ShapeCombining.java 2411 2014-10-30 21:27:00Z dcollins $ */ public class ShapeCombining extends ApplicationTemplate { public static class AppFrame extends ApplicationTemplate.AppFrame { public AppFrame() { ShapeAttributes attrs = new BasicShapeAttributes(); attrs.setInteriorOpacity(0.5); attrs.setOutlineWidth(2); // Create two surface circles that partially overlap, and add them to a layer named "Original". SurfaceCircle shape1 = new SurfaceCircle(attrs, LatLon.fromDegrees(50, -105), 500000); SurfaceCircle shape2 = new SurfaceCircle(attrs, LatLon.fromDegrees(50, -100), 500000); shape1.setValue(AVKey.DISPLAY_NAME, "Original"); shape2.setValue(AVKey.DISPLAY_NAME, "Original"); RenderableLayer originalLayer = new RenderableLayer(); originalLayer.setName("Original"); originalLayer.addRenderable(shape1); originalLayer.addRenderable(shape2); this.getWwd().getModel().getLayers().add(originalLayer); // Set up a ShapeCombiner to combine the two surface circles into a potentially complex set of contours // using boolean operations: union, intersection and difference. Globe globe = this.getWwd().getModel().getGlobe(); double resolutionRadians = 10000 / globe.getRadius(); // 10km resolution ShapeCombiner shapeCombiner = new ShapeCombiner(globe, resolutionRadians); // Compute the union of the two surface circles. Display the result 10 degrees beneath the original. ContourList union = shapeCombiner.union(shape1, shape2); this.displayContours(union, "Union", Position.fromDegrees(-10, 0, 0)); // Compute the intersection of the two surface circles. Display the result 20 degrees beneath the original. ContourList intersection = shapeCombiner.intersection(shape1, shape2); this.displayContours(intersection, "Intersection", Position.fromDegrees(-20, 0, 0)); // Compute the difference of the two surface circles. Display the result 30 degrees beneath the original. ContourList difference = shapeCombiner.difference(shape1, shape2); this.displayContours(difference, "Difference", Position.fromDegrees(-30, 0, 0)); } protected void displayContours(ContourList contours, String displayName, Position offset) { ShapeAttributes attrs = new BasicShapeAttributes(); attrs.setInteriorMaterial(Material.CYAN); attrs.setInteriorOpacity(0.5); attrs.setOutlineMaterial(Material.WHITE); attrs.setOutlineWidth(2); SurfaceMultiPolygon shape = new SurfaceMultiPolygon(attrs, contours); shape.setValue(AVKey.DISPLAY_NAME, displayName); shape.setPathType(AVKey.LINEAR); shape.move(offset); RenderableLayer layer = new RenderableLayer(); layer.setName(displayName); layer.addRenderable(shape); this.getWwd().getModel().getLayers().add(layer); } } public static void main(String[] args) { start("WorldWind Shape Combining", AppFrame.class); } }
{ "pile_set_name": "Github" }
**This airport has been automatically generated** We have no information about VG33[*] airport other than its name, ICAO and location (US). This airport will have to be done from scratch, which includes adding runways, taxiways, parking locations, boundaries... Good luck if you decide to do this airport!
{ "pile_set_name": "Github" }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ncdc_datasets.r \name{ncdc_datasets} \alias{ncdc_datasets} \title{Search NOAA datasets} \usage{ ncdc_datasets( datasetid = NULL, datatypeid = NULL, stationid = NULL, locationid = NULL, startdate = NULL, enddate = NULL, sortfield = NULL, sortorder = NULL, limit = 25, offset = NULL, token = NULL, ... ) } \arguments{ \item{datasetid}{(optional) Accepts a single valid dataset id. Data returned will be from the dataset specified.} \item{datatypeid}{Accepts a valid data type id or a vector or list of data type ids. (optional)} \item{stationid}{Accepts a valid station id or a vector or list of station ids} \item{locationid}{Accepts a valid location id or a vector or list of location ids (optional)} \item{startdate}{(optional) Accepts valid ISO formated date (yyyy-mm-dd) or date time (YYYY-MM-DDThh:mm:ss). Data returned will have data after the specified date. The date range must be less than 1 year.} \item{enddate}{(optional) Accepts valid ISO formated date (yyyy-mm-dd) or date time (YYYY-MM-DDThh:mm:ss). Data returned will have data before the specified date. The date range must be less than 1 year.} \item{sortfield}{The field to sort results by. Supports id, name, mindate, maxdate, and datacoverage fields (optional)} \item{sortorder}{Which order to sort by, asc or desc. Defaults to asc (optional)} \item{limit}{Defaults to 25, limits the number of results in the response. Maximum is 1000 (optional)} \item{offset}{Defaults to 0, used to offset the resultlist (optional)} \item{token}{This must be a valid token token supplied to you by NCDC's Climate Data Online access token generator. (required) See \strong{Authentication} section below for more details.} \item{...}{Curl options passed on to \code{\link[crul]{HttpClient}} (optional)} } \value{ A data.frame for all datasets, or a list of length two, each with a data.frame. } \description{ From the NOAA API docs: All of our data are in datasets. To retrieve any data from us, you must know what dataset it is in. } \section{Authentication}{ Get an API key (aka, token) at \url{https://www.ncdc.noaa.gov/cdo-web/token}. You can pass your token in as an argument or store it one of two places: \itemize{ \item your .Rprofile file with the entry \code{options(noaakey = "your-noaa-token")} \item your .Renviron file with the entry \code{NOAA_KEY=your-noaa-token} } See \code{\link{Startup}} for information on how to create/find your .Rrofile and .Renviron files } \examples{ \dontrun{ # Get a table of all datasets ncdc_datasets() # Get details from a particular dataset ncdc_datasets(datasetid='ANNUAL') # Get datasets with Temperature at the time of observation (TOBS) data type ncdc_datasets(datatypeid='TOBS') ## two datatypeid's ncdc_datasets(datatypeid=c('TOBS', "ACMH")) # Get datasets with data for a series of the same parameter arg, in this case # stationid's ncdc_datasets(stationid='COOP:310090') ncdc_datasets(stationid=c('COOP:310090','COOP:310184','COOP:310212')) # Multiple datatypeid's ncdc_datasets(datatypeid=c('ACMC','ACMH','ACSC')) ncdc_datasets(datasetid='ANNUAL', datatypeid=c('ACMC','ACMH','ACSC')) ncdc_datasets(datasetid='GSOY', datatypeid=c('ACMC','ACMH','ACSC')) # Multiple locationid's ncdc_datasets(locationid="FIPS:30091") ncdc_datasets(locationid=c("FIPS:30103", "FIPS:30091")) } } \references{ \url{https://www.ncdc.noaa.gov/cdo-web/webservices/v2} } \seealso{ Other ncdc: \code{\link{ncdc_combine}()}, \code{\link{ncdc_datacats}()}, \code{\link{ncdc_datatypes}()}, \code{\link{ncdc_locs_cats}()}, \code{\link{ncdc_locs}()}, \code{\link{ncdc_plot}()}, \code{\link{ncdc_stations}()}, \code{\link{ncdc}()} } \concept{ncdc}
{ "pile_set_name": "Github" }
/* * Broadcom UniMAC MDIO bus controller driver * * Copyright (C) 2014-2017 Broadcom * * This program 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 2 of the License, or * (at your option) any later version. */ #include <linux/kernel.h> #include <linux/phy.h> #include <linux/platform_device.h> #include <linux/sched.h> #include <linux/module.h> #include <linux/io.h> #include <linux/delay.h> #include <linux/of.h> #include <linux/of_platform.h> #include <linux/of_mdio.h> #include <linux/platform_data/mdio-bcm-unimac.h> #define MDIO_CMD 0x00 #define MDIO_START_BUSY (1 << 29) #define MDIO_READ_FAIL (1 << 28) #define MDIO_RD (2 << 26) #define MDIO_WR (1 << 26) #define MDIO_PMD_SHIFT 21 #define MDIO_PMD_MASK 0x1F #define MDIO_REG_SHIFT 16 #define MDIO_REG_MASK 0x1F #define MDIO_CFG 0x04 #define MDIO_C22 (1 << 0) #define MDIO_C45 0 #define MDIO_CLK_DIV_SHIFT 4 #define MDIO_CLK_DIV_MASK 0x3F #define MDIO_SUPP_PREAMBLE (1 << 12) struct unimac_mdio_priv { struct mii_bus *mii_bus; void __iomem *base; int (*wait_func) (void *wait_func_data); void *wait_func_data; }; static inline u32 unimac_mdio_readl(struct unimac_mdio_priv *priv, u32 offset) { /* MIPS chips strapped for BE will automagically configure the * peripheral registers for CPU-native byte order. */ if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) return __raw_readl(priv->base + offset); else return readl_relaxed(priv->base + offset); } static inline void unimac_mdio_writel(struct unimac_mdio_priv *priv, u32 val, u32 offset) { if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) __raw_writel(val, priv->base + offset); else writel_relaxed(val, priv->base + offset); } static inline void unimac_mdio_start(struct unimac_mdio_priv *priv) { u32 reg; reg = unimac_mdio_readl(priv, MDIO_CMD); reg |= MDIO_START_BUSY; unimac_mdio_writel(priv, reg, MDIO_CMD); } static inline unsigned int unimac_mdio_busy(struct unimac_mdio_priv *priv) { return unimac_mdio_readl(priv, MDIO_CMD) & MDIO_START_BUSY; } static int unimac_mdio_poll(void *wait_func_data) { struct unimac_mdio_priv *priv = wait_func_data; unsigned int timeout = 1000; do { if (!unimac_mdio_busy(priv)) return 0; usleep_range(1000, 2000); } while (--timeout); if (!timeout) return -ETIMEDOUT; return 0; } static int unimac_mdio_read(struct mii_bus *bus, int phy_id, int reg) { struct unimac_mdio_priv *priv = bus->priv; int ret; u32 cmd; /* Prepare the read operation */ cmd = MDIO_RD | (phy_id << MDIO_PMD_SHIFT) | (reg << MDIO_REG_SHIFT); unimac_mdio_writel(priv, cmd, MDIO_CMD); /* Start MDIO transaction */ unimac_mdio_start(priv); ret = priv->wait_func(priv->wait_func_data); if (ret) return ret; cmd = unimac_mdio_readl(priv, MDIO_CMD); /* Some broken devices are known not to release the line during * turn-around, e.g: Broadcom BCM53125 external switches, so check for * that condition here and ignore the MDIO controller read failure * indication. */ if (!(bus->phy_ignore_ta_mask & 1 << phy_id) && (cmd & MDIO_READ_FAIL)) return -EIO; return cmd & 0xffff; } static int unimac_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 val) { struct unimac_mdio_priv *priv = bus->priv; u32 cmd; /* Prepare the write operation */ cmd = MDIO_WR | (phy_id << MDIO_PMD_SHIFT) | (reg << MDIO_REG_SHIFT) | (0xffff & val); unimac_mdio_writel(priv, cmd, MDIO_CMD); unimac_mdio_start(priv); return priv->wait_func(priv->wait_func_data); } /* Workaround for integrated BCM7xxx Gigabit PHYs which have a problem with * their internal MDIO management controller making them fail to successfully * be read from or written to for the first transaction. We insert a dummy * BMSR read here to make sure that phy_get_device() and get_phy_id() can * correctly read the PHY MII_PHYSID1/2 registers and successfully register a * PHY device for this peripheral. * * Once the PHY driver is registered, we can workaround subsequent reads from * there (e.g: during system-wide power management). * * bus->reset is invoked before mdiobus_scan during mdiobus_register and is * therefore the right location to stick that workaround. Since we do not want * to read from non-existing PHYs, we either use bus->phy_mask or do a manual * Device Tree scan to limit the search area. */ static int unimac_mdio_reset(struct mii_bus *bus) { struct device_node *np = bus->dev.of_node; struct device_node *child; u32 read_mask = 0; int addr; if (!np) { read_mask = ~bus->phy_mask; } else { for_each_available_child_of_node(np, child) { addr = of_mdio_parse_addr(&bus->dev, child); if (addr < 0) continue; read_mask |= 1 << addr; } } for (addr = 0; addr < PHY_MAX_ADDR; addr++) { if (read_mask & 1 << addr) { dev_dbg(&bus->dev, "Workaround for PHY @ %d\n", addr); mdiobus_read(bus, addr, MII_BMSR); } } return 0; } static int unimac_mdio_probe(struct platform_device *pdev) { struct unimac_mdio_pdata *pdata = pdev->dev.platform_data; struct unimac_mdio_priv *priv; struct device_node *np; struct mii_bus *bus; struct resource *r; int ret; np = pdev->dev.of_node; priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; r = platform_get_resource(pdev, IORESOURCE_MEM, 0); /* Just ioremap, as this MDIO block is usually integrated into an * Ethernet MAC controller register range */ priv->base = devm_ioremap(&pdev->dev, r->start, resource_size(r)); if (!priv->base) { dev_err(&pdev->dev, "failed to remap register\n"); return -ENOMEM; } priv->mii_bus = mdiobus_alloc(); if (!priv->mii_bus) return -ENOMEM; bus = priv->mii_bus; bus->priv = priv; if (pdata) { bus->name = pdata->bus_name; priv->wait_func = pdata->wait_func; priv->wait_func_data = pdata->wait_func_data; bus->phy_mask = ~pdata->phy_mask; } else { bus->name = "unimac MII bus"; priv->wait_func_data = priv; priv->wait_func = unimac_mdio_poll; } bus->parent = &pdev->dev; bus->read = unimac_mdio_read; bus->write = unimac_mdio_write; bus->reset = unimac_mdio_reset; snprintf(bus->id, MII_BUS_ID_SIZE, "%s-%d", pdev->name, pdev->id); ret = of_mdiobus_register(bus, np); if (ret) { dev_err(&pdev->dev, "MDIO bus registration failed\n"); goto out_mdio_free; } platform_set_drvdata(pdev, priv); dev_info(&pdev->dev, "Broadcom UniMAC MDIO bus at 0x%p\n", priv->base); return 0; out_mdio_free: mdiobus_free(bus); return ret; } static int unimac_mdio_remove(struct platform_device *pdev) { struct unimac_mdio_priv *priv = platform_get_drvdata(pdev); mdiobus_unregister(priv->mii_bus); mdiobus_free(priv->mii_bus); return 0; } static const struct of_device_id unimac_mdio_ids[] = { { .compatible = "brcm,genet-mdio-v5", }, { .compatible = "brcm,genet-mdio-v4", }, { .compatible = "brcm,genet-mdio-v3", }, { .compatible = "brcm,genet-mdio-v2", }, { .compatible = "brcm,genet-mdio-v1", }, { .compatible = "brcm,unimac-mdio", }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, unimac_mdio_ids); static struct platform_driver unimac_mdio_driver = { .driver = { .name = UNIMAC_MDIO_DRV_NAME, .of_match_table = unimac_mdio_ids, }, .probe = unimac_mdio_probe, .remove = unimac_mdio_remove, }; module_platform_driver(unimac_mdio_driver); MODULE_AUTHOR("Broadcom Corporation"); MODULE_DESCRIPTION("Broadcom UniMAC MDIO bus controller"); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:" UNIMAC_MDIO_DRV_NAME);
{ "pile_set_name": "Github" }
/***** * Tencent is pleased to support the open source community by making QMUI_iOS available. * Copyright (C) 2016-2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * 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. *****/ // // QMUITableView.m // qmui // // Created by QMUI Team on 14-7-2. // #import "QMUITableView.h" #import "UITableView+QMUI.h" #import "UIView+QMUI.h" @implementation QMUITableView @dynamic delegate; @dynamic dataSource; - (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style { if (self = [super initWithFrame:frame style:style]) { [self didInitialize]; } return self; } - (instancetype)initWithCoder:(NSCoder *)aDecoder { if (self = [super initWithCoder:aDecoder]) { [self didInitialize]; } return self; } - (void)didInitialize { [self qmui_styledAsQMUITableView]; } - (void)dealloc { self.delegate = nil; self.dataSource = nil; } // 保证一直存在tableFooterView,以去掉列表内容不满一屏时尾部的空白分割线 - (void)setTableFooterView:(UIView *)tableFooterView { if (!tableFooterView) { tableFooterView = [[UIView alloc] init]; } [super setTableFooterView:tableFooterView]; } - (BOOL)touchesShouldCancelInContentView:(UIView *)view { if ([self.delegate respondsToSelector:@selector(tableView:touchesShouldCancelInContentView:)]) { return [self.delegate tableView:self touchesShouldCancelInContentView:view]; } // 默认情况下只有当view是非UIControl的时候才会返回yes,这里统一对UIButton也返回yes // 原因是UITableView上面把事件延迟去掉了,但是这样如果拖动的时候手指是在UIControl上面的话,就拖动不了了 if ([view isKindOfClass:[UIControl class]]) { if ([view isKindOfClass:[UIButton class]]) { return YES; } else { return NO; } } return YES; } @end
{ "pile_set_name": "Github" }
/* * Copyright 2019 The Error Prone 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. */ package com.google.errorprone.bugpatterns; import static com.google.errorprone.BugPattern.SeverityLevel.ERROR; import static com.google.errorprone.matchers.Description.NO_MATCH; import static com.google.errorprone.matchers.JUnitMatchers.hasJUnit4TestRunner; import static com.google.errorprone.util.ASTHelpers.getAnnotationWithSimpleName; import static com.google.errorprone.util.ASTHelpers.hasAnnotation; import com.google.errorprone.BugPattern; import com.google.errorprone.VisitorState; import com.google.errorprone.bugpatterns.BugChecker.ClassTreeMatcher; import com.google.errorprone.fixes.SuggestedFix; import com.google.errorprone.fixes.SuggestedFixes; import com.google.errorprone.matchers.Description; import com.sun.source.tree.AnnotationTree; import com.sun.source.tree.ClassTree; /** Flags uses of parameters in non-parameterized tests. */ @BugPattern( name = "ParametersButNotParameterized", summary = "This test has @Parameters but is using the default JUnit4 runner. The parameters will" + " have no effect.", severity = ERROR) public final class ParametersButNotParameterized extends BugChecker implements ClassTreeMatcher { private static final String PARAMETERIZED = "org.junit.runners.Parameterized"; private static final String PARAMETER = "org.junit.runners.Parameterized.Parameter"; private static final String PARAMETERS = "org.junit.runners.Parameterized.Parameters"; @Override public Description matchClass(ClassTree tree, VisitorState state) { if (!hasJUnit4TestRunner.matches(tree, state)) { return NO_MATCH; } if (tree.getMembers().stream() .noneMatch( m -> hasAnnotation(m, PARAMETER, state) || hasAnnotation(m, PARAMETERS, state))) { return NO_MATCH; } AnnotationTree annotation = getAnnotationWithSimpleName(tree.getModifiers().getAnnotations(), "RunWith"); SuggestedFix.Builder fix = SuggestedFix.builder(); fix.replace( annotation, String.format("@RunWith(%s.class)", SuggestedFixes.qualifyType(state, fix, PARAMETERIZED))); return describeMatch(tree, fix.build()); } }
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <AddressBookCore/ABCNPropertyDescription.h> #import <AddressBookCore/ABCNAbstractPropertyDescription-Protocol.h> @class NSString; @interface ABCNIdentifierDescription : ABCNPropertyDescription <ABCNAbstractPropertyDescription> { } - (void)decodeUsingCoder:(id)arg1 contact:(id)arg2; - (void)encodeUsingCoder:(id)arg1 contact:(id)arg2; - (void)copyFromContact:(id)arg1 to:(id)arg2; - (BOOL)isEqualForContact:(id)arg1 other:(id)arg2; - (id)init; // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly, copy) NSString *description; @property(readonly) unsigned long long hash; @property(readonly) Class superclass; @end
{ "pile_set_name": "Github" }
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace ClearCanvas.ImageServer.Common { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] public sealed partial class ProductManifestServiceSettings : global::System.Configuration.ApplicationSettingsBase { private static ProductManifestServiceSettings defaultInstance = ((ProductManifestServiceSettings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new ProductManifestServiceSettings()))); public static ProductManifestServiceSettings Default { get { return defaultInstance; } } [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("http://localhost:9998/")] public string BaseUrl { get { return ((string)(this["BaseUrl"])); } } [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] public string FailoverBaseUrl { get { return ((string)(this["FailoverBaseUrl"])); } } [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("ClearCanvas.ImageServer.Common.ClientWsHttpConfiguration, ClearCanvas.ImageServer" + ".Common")] public string ConfigurationClass { get { return ((string)(this["ConfigurationClass"])); } } [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("2000000")] public int MaxReceivedMessageSize { get { return ((int)(this["MaxReceivedMessageSize"])); } } [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("None")] public global::System.ServiceModel.Security.X509CertificateValidationMode CertificateValidationMode { get { return ((global::System.ServiceModel.Security.X509CertificateValidationMode)(this["CertificateValidationMode"])); } } [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("NoCheck")] public global::System.Security.Cryptography.X509Certificates.X509RevocationMode RevocationMode { get { return ((global::System.Security.Cryptography.X509Certificates.X509RevocationMode)(this["RevocationMode"])); } } [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("")] public string UserCredentialsProviderClass { get { return ((string)(this["UserCredentialsProviderClass"])); } } } }
{ "pile_set_name": "Github" }
// // KCSIBeaconTests.m // KCSIBeaconTests // // Copyright 2015 Kinvey, Inc // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in 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. // #import <XCTest/XCTest.h> #import "KCSBeaconManager.h" @interface KCSIBeaconTests : XCTestCase <KCSBeaconManagerDelegate> @property (nonatomic, strong) NSError* rangingError; @end @implementation KCSIBeaconTests - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. [super tearDown]; } - (void)testExample { KCSBeaconManager* manager = [[KCSBeaconManager alloc] init]; manager.delegate = self; [manager startMonitoringForRegion:[[NSUUID UUID] UUIDString] identifier:@"com.kinvey.foo"]; while (1) { [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:2]]; } } - (void) rangingFailedForRegion:(CLBeaconRegion *)region withError:(NSError *)error { self.rangingError = error; } @end
{ "pile_set_name": "Github" }
package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", ) go_library( name = "go_default_library", srcs = [ "controllerrevision.go", "deployment.go", "expansion_generated.go", "scale.go", "statefulset.go", "statefulset_expansion.go", ], importpath = "k8s.io/client-go/listers/apps/v1beta1", deps = [ "//vendor/k8s.io/api/apps/v1beta1:go_default_library", "//vendor/k8s.io/api/core/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/labels:go_default_library", "//vendor/k8s.io/client-go/tools/cache:go_default_library", ], ) filegroup( name = "package-srcs", srcs = glob(["**"]), tags = ["automanaged"], visibility = ["//visibility:private"], ) filegroup( name = "all-srcs", srcs = [":package-srcs"], tags = ["automanaged"], )
{ "pile_set_name": "Github" }
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. from aliyunsdkcore.request import RpcRequest from aliyunsdkdrds.endpoint import endpoint_data class DescribeDrdsComponentsRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Drds', '2019-01-23', 'DescribeDrdsComponents','Drds') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) def get_CommodityCode(self): return self.get_query_params().get('CommodityCode') def set_CommodityCode(self,CommodityCode): self.add_query_param('CommodityCode',CommodityCode)
{ "pile_set_name": "Github" }
/* * Copyright 2019-2020 Hans-Kristian Arntzen * * 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. */ #ifndef SPIRV_CROSS_C_API_H #define SPIRV_CROSS_C_API_H #include <stddef.h> #include "spirv.h" /* * C89-compatible wrapper for SPIRV-Cross' API. * Documentation here is sparse unless the behavior does not map 1:1 with C++ API. * It is recommended to look at the canonical C++ API for more detailed information. */ #ifdef __cplusplus extern "C" { #endif /* Bumped if ABI or API breaks backwards compatibility. */ #define SPVC_C_API_VERSION_MAJOR 0 /* Bumped if APIs or enumerations are added in a backwards compatible way. */ #define SPVC_C_API_VERSION_MINOR 30 /* Bumped if internal implementation details change. */ #define SPVC_C_API_VERSION_PATCH 0 #if !defined(SPVC_PUBLIC_API) #if defined(SPVC_EXPORT_SYMBOLS) /* Exports symbols. Standard C calling convention is used. */ #if defined(__GNUC__) #define SPVC_PUBLIC_API __attribute__((visibility("default"))) #elif defined(_MSC_VER) #define SPVC_PUBLIC_API __declspec(dllexport) #else #define SPVC_PUBLIC_API #endif #else #define SPVC_PUBLIC_API #endif #endif /* * Gets the SPVC_C_API_VERSION_* used to build this library. * Can be used to check for ABI mismatch if so-versioning did not catch it. */ SPVC_PUBLIC_API void spvc_get_version(unsigned *major, unsigned *minor, unsigned *patch); /* Gets a human readable version string to identify which commit a particular binary was created from. */ SPVC_PUBLIC_API const char *spvc_get_commit_revision_and_timestamp(void); /* These types are opaque to the user. */ typedef struct spvc_context_s *spvc_context; typedef struct spvc_parsed_ir_s *spvc_parsed_ir; typedef struct spvc_compiler_s *spvc_compiler; typedef struct spvc_compiler_options_s *spvc_compiler_options; typedef struct spvc_resources_s *spvc_resources; struct spvc_type_s; typedef const struct spvc_type_s *spvc_type; typedef struct spvc_constant_s *spvc_constant; struct spvc_set_s; typedef const struct spvc_set_s *spvc_set; /* * Shallow typedefs. All SPIR-V IDs are plain 32-bit numbers, but this helps communicate which data is used. * Maps to a SPIRType. */ typedef SpvId spvc_type_id; /* Maps to a SPIRVariable. */ typedef SpvId spvc_variable_id; /* Maps to a SPIRConstant. */ typedef SpvId spvc_constant_id; /* See C++ API. */ typedef struct spvc_reflected_resource { spvc_variable_id id; spvc_type_id base_type_id; spvc_type_id type_id; const char *name; } spvc_reflected_resource; /* See C++ API. */ typedef struct spvc_entry_point { SpvExecutionModel execution_model; const char *name; } spvc_entry_point; /* See C++ API. */ typedef struct spvc_combined_image_sampler { spvc_variable_id combined_id; spvc_variable_id image_id; spvc_variable_id sampler_id; } spvc_combined_image_sampler; /* See C++ API. */ typedef struct spvc_specialization_constant { spvc_constant_id id; unsigned constant_id; } spvc_specialization_constant; /* See C++ API. */ typedef struct spvc_buffer_range { unsigned index; size_t offset; size_t range; } spvc_buffer_range; /* See C++ API. */ typedef struct spvc_hlsl_root_constants { unsigned start; unsigned end; unsigned binding; unsigned space; } spvc_hlsl_root_constants; /* See C++ API. */ typedef struct spvc_hlsl_vertex_attribute_remap { unsigned location; const char *semantic; } spvc_hlsl_vertex_attribute_remap; /* * Be compatible with non-C99 compilers, which do not have stdbool. * Only recent MSVC compilers supports this for example, and ideally SPIRV-Cross should be linkable * from a wide range of compilers in its C wrapper. */ typedef unsigned char spvc_bool; #define SPVC_TRUE ((spvc_bool)1) #define SPVC_FALSE ((spvc_bool)0) typedef enum spvc_result { /* Success. */ SPVC_SUCCESS = 0, /* The SPIR-V is invalid. Should have been caught by validation ideally. */ SPVC_ERROR_INVALID_SPIRV = -1, /* The SPIR-V might be valid or invalid, but SPIRV-Cross currently cannot correctly translate this to your target language. */ SPVC_ERROR_UNSUPPORTED_SPIRV = -2, /* If for some reason we hit this, new or malloc failed. */ SPVC_ERROR_OUT_OF_MEMORY = -3, /* Invalid API argument. */ SPVC_ERROR_INVALID_ARGUMENT = -4, SPVC_ERROR_INT_MAX = 0x7fffffff } spvc_result; typedef enum spvc_capture_mode { /* The Parsed IR payload will be copied, and the handle can be reused to create other compiler instances. */ SPVC_CAPTURE_MODE_COPY = 0, /* * The payload will now be owned by the compiler. * parsed_ir should now be considered a dead blob and must not be used further. * This is optimal for performance and should be the go-to option. */ SPVC_CAPTURE_MODE_TAKE_OWNERSHIP = 1, SPVC_CAPTURE_MODE_INT_MAX = 0x7fffffff } spvc_capture_mode; typedef enum spvc_backend { /* This backend can only perform reflection, no compiler options are supported. Maps to spirv_cross::Compiler. */ SPVC_BACKEND_NONE = 0, SPVC_BACKEND_GLSL = 1, /* spirv_cross::CompilerGLSL */ SPVC_BACKEND_HLSL = 2, /* CompilerHLSL */ SPVC_BACKEND_MSL = 3, /* CompilerMSL */ SPVC_BACKEND_CPP = 4, /* CompilerCPP */ SPVC_BACKEND_JSON = 5, /* CompilerReflection w/ JSON backend */ SPVC_BACKEND_INT_MAX = 0x7fffffff } spvc_backend; /* Maps to C++ API. */ typedef enum spvc_resource_type { SPVC_RESOURCE_TYPE_UNKNOWN = 0, SPVC_RESOURCE_TYPE_UNIFORM_BUFFER = 1, SPVC_RESOURCE_TYPE_STORAGE_BUFFER = 2, SPVC_RESOURCE_TYPE_STAGE_INPUT = 3, SPVC_RESOURCE_TYPE_STAGE_OUTPUT = 4, SPVC_RESOURCE_TYPE_SUBPASS_INPUT = 5, SPVC_RESOURCE_TYPE_STORAGE_IMAGE = 6, SPVC_RESOURCE_TYPE_SAMPLED_IMAGE = 7, SPVC_RESOURCE_TYPE_ATOMIC_COUNTER = 8, SPVC_RESOURCE_TYPE_PUSH_CONSTANT = 9, SPVC_RESOURCE_TYPE_SEPARATE_IMAGE = 10, SPVC_RESOURCE_TYPE_SEPARATE_SAMPLERS = 11, SPVC_RESOURCE_TYPE_ACCELERATION_STRUCTURE = 12, SPVC_RESOURCE_TYPE_INT_MAX = 0x7fffffff } spvc_resource_type; /* Maps to spirv_cross::SPIRType::BaseType. */ typedef enum spvc_basetype { SPVC_BASETYPE_UNKNOWN = 0, SPVC_BASETYPE_VOID = 1, SPVC_BASETYPE_BOOLEAN = 2, SPVC_BASETYPE_INT8 = 3, SPVC_BASETYPE_UINT8 = 4, SPVC_BASETYPE_INT16 = 5, SPVC_BASETYPE_UINT16 = 6, SPVC_BASETYPE_INT32 = 7, SPVC_BASETYPE_UINT32 = 8, SPVC_BASETYPE_INT64 = 9, SPVC_BASETYPE_UINT64 = 10, SPVC_BASETYPE_ATOMIC_COUNTER = 11, SPVC_BASETYPE_FP16 = 12, SPVC_BASETYPE_FP32 = 13, SPVC_BASETYPE_FP64 = 14, SPVC_BASETYPE_STRUCT = 15, SPVC_BASETYPE_IMAGE = 16, SPVC_BASETYPE_SAMPLED_IMAGE = 17, SPVC_BASETYPE_SAMPLER = 18, SPVC_BASETYPE_ACCELERATION_STRUCTURE = 19, SPVC_BASETYPE_INT_MAX = 0x7fffffff } spvc_basetype; #define SPVC_COMPILER_OPTION_COMMON_BIT 0x1000000 #define SPVC_COMPILER_OPTION_GLSL_BIT 0x2000000 #define SPVC_COMPILER_OPTION_HLSL_BIT 0x4000000 #define SPVC_COMPILER_OPTION_MSL_BIT 0x8000000 #define SPVC_COMPILER_OPTION_LANG_BITS 0x0f000000 #define SPVC_COMPILER_OPTION_ENUM_BITS 0xffffff #define SPVC_MAKE_MSL_VERSION(major, minor, patch) ((major) * 10000 + (minor) * 100 + (patch)) /* Maps to C++ API. */ typedef enum spvc_msl_platform { SPVC_MSL_PLATFORM_IOS = 0, SPVC_MSL_PLATFORM_MACOS = 1, SPVC_MSL_PLATFORM_MAX_INT = 0x7fffffff } spvc_msl_platform; /* Maps to C++ API. */ typedef enum spvc_msl_vertex_format { SPVC_MSL_VERTEX_FORMAT_OTHER = 0, SPVC_MSL_VERTEX_FORMAT_UINT8 = 1, SPVC_MSL_VERTEX_FORMAT_UINT16 = 2 } spvc_msl_vertex_format; /* Maps to C++ API. */ typedef struct spvc_msl_vertex_attribute { unsigned location; unsigned msl_buffer; unsigned msl_offset; unsigned msl_stride; spvc_bool per_instance; spvc_msl_vertex_format format; SpvBuiltIn builtin; } spvc_msl_vertex_attribute; /* * Initializes the vertex attribute struct. */ SPVC_PUBLIC_API void spvc_msl_vertex_attribute_init(spvc_msl_vertex_attribute *attr); /* Maps to C++ API. */ typedef struct spvc_msl_resource_binding { SpvExecutionModel stage; unsigned desc_set; unsigned binding; unsigned msl_buffer; unsigned msl_texture; unsigned msl_sampler; } spvc_msl_resource_binding; /* * Initializes the resource binding struct. * The defaults are non-zero. */ SPVC_PUBLIC_API void spvc_msl_resource_binding_init(spvc_msl_resource_binding *binding); #define SPVC_MSL_PUSH_CONSTANT_DESC_SET (~(0u)) #define SPVC_MSL_PUSH_CONSTANT_BINDING (0) #define SPVC_MSL_SWIZZLE_BUFFER_BINDING (~(1u)) #define SPVC_MSL_BUFFER_SIZE_BUFFER_BINDING (~(2u)) #define SPVC_MSL_ARGUMENT_BUFFER_BINDING (~(3u)) /* Obsolete. Sticks around for backwards compatibility. */ #define SPVC_MSL_AUX_BUFFER_STRUCT_VERSION 1 /* Runtime check for incompatibility. Obsolete. */ SPVC_PUBLIC_API unsigned spvc_msl_get_aux_buffer_struct_version(void); /* Maps to C++ API. */ typedef enum spvc_msl_sampler_coord { SPVC_MSL_SAMPLER_COORD_NORMALIZED = 0, SPVC_MSL_SAMPLER_COORD_PIXEL = 1, SPVC_MSL_SAMPLER_INT_MAX = 0x7fffffff } spvc_msl_sampler_coord; /* Maps to C++ API. */ typedef enum spvc_msl_sampler_filter { SPVC_MSL_SAMPLER_FILTER_NEAREST = 0, SPVC_MSL_SAMPLER_FILTER_LINEAR = 1, SPVC_MSL_SAMPLER_FILTER_INT_MAX = 0x7fffffff } spvc_msl_sampler_filter; /* Maps to C++ API. */ typedef enum spvc_msl_sampler_mip_filter { SPVC_MSL_SAMPLER_MIP_FILTER_NONE = 0, SPVC_MSL_SAMPLER_MIP_FILTER_NEAREST = 1, SPVC_MSL_SAMPLER_MIP_FILTER_LINEAR = 2, SPVC_MSL_SAMPLER_MIP_FILTER_INT_MAX = 0x7fffffff } spvc_msl_sampler_mip_filter; /* Maps to C++ API. */ typedef enum spvc_msl_sampler_address { SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_ZERO = 0, SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_EDGE = 1, SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_BORDER = 2, SPVC_MSL_SAMPLER_ADDRESS_REPEAT = 3, SPVC_MSL_SAMPLER_ADDRESS_MIRRORED_REPEAT = 4, SPVC_MSL_SAMPLER_ADDRESS_INT_MAX = 0x7fffffff } spvc_msl_sampler_address; /* Maps to C++ API. */ typedef enum spvc_msl_sampler_compare_func { SPVC_MSL_SAMPLER_COMPARE_FUNC_NEVER = 0, SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS = 1, SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS_EQUAL = 2, SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER = 3, SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER_EQUAL = 4, SPVC_MSL_SAMPLER_COMPARE_FUNC_EQUAL = 5, SPVC_MSL_SAMPLER_COMPARE_FUNC_NOT_EQUAL = 6, SPVC_MSL_SAMPLER_COMPARE_FUNC_ALWAYS = 7, SPVC_MSL_SAMPLER_COMPARE_FUNC_INT_MAX = 0x7fffffff } spvc_msl_sampler_compare_func; /* Maps to C++ API. */ typedef enum spvc_msl_sampler_border_color { SPVC_MSL_SAMPLER_BORDER_COLOR_TRANSPARENT_BLACK = 0, SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_BLACK = 1, SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_WHITE = 2, SPVC_MSL_SAMPLER_BORDER_COLOR_INT_MAX = 0x7fffffff } spvc_msl_sampler_border_color; /* Maps to C++ API. */ typedef enum spvc_msl_format_resolution { SPVC_MSL_FORMAT_RESOLUTION_444 = 0, SPVC_MSL_FORMAT_RESOLUTION_422, SPVC_MSL_FORMAT_RESOLUTION_420, SPVC_MSL_FORMAT_RESOLUTION_INT_MAX = 0x7fffffff } spvc_msl_format_resolution; /* Maps to C++ API. */ typedef enum spvc_msl_chroma_location { SPVC_MSL_CHROMA_LOCATION_COSITED_EVEN = 0, SPVC_MSL_CHROMA_LOCATION_MIDPOINT, SPVC_MSL_CHROMA_LOCATION_INT_MAX = 0x7fffffff } spvc_msl_chroma_location; /* Maps to C++ API. */ typedef enum spvc_msl_component_swizzle { SPVC_MSL_COMPONENT_SWIZZLE_IDENTITY = 0, SPVC_MSL_COMPONENT_SWIZZLE_ZERO, SPVC_MSL_COMPONENT_SWIZZLE_ONE, SPVC_MSL_COMPONENT_SWIZZLE_R, SPVC_MSL_COMPONENT_SWIZZLE_G, SPVC_MSL_COMPONENT_SWIZZLE_B, SPVC_MSL_COMPONENT_SWIZZLE_A, SPVC_MSL_COMPONENT_SWIZZLE_INT_MAX = 0x7fffffff } spvc_msl_component_swizzle; /* Maps to C++ API. */ typedef enum spvc_msl_sampler_ycbcr_model_conversion { SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY = 0, SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY, SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_709, SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_601, SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_2020, SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_INT_MAX = 0x7fffffff } spvc_msl_sampler_ycbcr_model_conversion; /* Maps to C+ API. */ typedef enum spvc_msl_sampler_ycbcr_range { SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_FULL = 0, SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_NARROW, SPVC_MSL_SAMPLER_YCBCR_RANGE_INT_MAX = 0x7fffffff } spvc_msl_sampler_ycbcr_range; /* Maps to C++ API. */ typedef struct spvc_msl_constexpr_sampler { spvc_msl_sampler_coord coord; spvc_msl_sampler_filter min_filter; spvc_msl_sampler_filter mag_filter; spvc_msl_sampler_mip_filter mip_filter; spvc_msl_sampler_address s_address; spvc_msl_sampler_address t_address; spvc_msl_sampler_address r_address; spvc_msl_sampler_compare_func compare_func; spvc_msl_sampler_border_color border_color; float lod_clamp_min; float lod_clamp_max; int max_anisotropy; spvc_bool compare_enable; spvc_bool lod_clamp_enable; spvc_bool anisotropy_enable; } spvc_msl_constexpr_sampler; /* * Initializes the constexpr sampler struct. * The defaults are non-zero. */ SPVC_PUBLIC_API void spvc_msl_constexpr_sampler_init(spvc_msl_constexpr_sampler *sampler); /* Maps to the sampler Y'CbCr conversion-related portions of MSLConstexprSampler. See C++ API for defaults and details. */ typedef struct spvc_msl_sampler_ycbcr_conversion { unsigned planes; spvc_msl_format_resolution resolution; spvc_msl_sampler_filter chroma_filter; spvc_msl_chroma_location x_chroma_offset; spvc_msl_chroma_location y_chroma_offset; spvc_msl_component_swizzle swizzle[4]; spvc_msl_sampler_ycbcr_model_conversion ycbcr_model; spvc_msl_sampler_ycbcr_range ycbcr_range; unsigned bpc; } spvc_msl_sampler_ycbcr_conversion; /* * Initializes the constexpr sampler struct. * The defaults are non-zero. */ SPVC_PUBLIC_API void spvc_msl_sampler_ycbcr_conversion_init(spvc_msl_sampler_ycbcr_conversion *conv); /* Maps to C++ API. */ typedef enum spvc_hlsl_binding_flag_bits { SPVC_HLSL_BINDING_AUTO_NONE_BIT = 0, SPVC_HLSL_BINDING_AUTO_PUSH_CONSTANT_BIT = 1 << 0, SPVC_HLSL_BINDING_AUTO_CBV_BIT = 1 << 1, SPVC_HLSL_BINDING_AUTO_SRV_BIT = 1 << 2, SPVC_HLSL_BINDING_AUTO_UAV_BIT = 1 << 3, SPVC_HLSL_BINDING_AUTO_SAMPLER_BIT = 1 << 4, SPVC_HLSL_BINDING_AUTO_ALL = 0x7fffffff } spvc_hlsl_binding_flag_bits; typedef unsigned spvc_hlsl_binding_flags; #define SPVC_HLSL_PUSH_CONSTANT_DESC_SET (~(0u)) #define SPVC_HLSL_PUSH_CONSTANT_BINDING (0) /* Maps to C++ API. */ typedef struct spvc_hlsl_resource_binding_mapping { unsigned register_space; unsigned register_binding; } spvc_hlsl_resource_binding_mapping; typedef struct spvc_hlsl_resource_binding { SpvExecutionModel stage; unsigned desc_set; unsigned binding; spvc_hlsl_resource_binding_mapping cbv, uav, srv, sampler; } spvc_hlsl_resource_binding; /* * Initializes the resource binding struct. * The defaults are non-zero. */ SPVC_PUBLIC_API void spvc_hlsl_resource_binding_init(spvc_hlsl_resource_binding *binding); /* Maps to the various spirv_cross::Compiler*::Option structures. See C++ API for defaults and details. */ typedef enum spvc_compiler_option { SPVC_COMPILER_OPTION_UNKNOWN = 0, SPVC_COMPILER_OPTION_FORCE_TEMPORARY = 1 | SPVC_COMPILER_OPTION_COMMON_BIT, SPVC_COMPILER_OPTION_FLATTEN_MULTIDIMENSIONAL_ARRAYS = 2 | SPVC_COMPILER_OPTION_COMMON_BIT, SPVC_COMPILER_OPTION_FIXUP_DEPTH_CONVENTION = 3 | SPVC_COMPILER_OPTION_COMMON_BIT, SPVC_COMPILER_OPTION_FLIP_VERTEX_Y = 4 | SPVC_COMPILER_OPTION_COMMON_BIT, SPVC_COMPILER_OPTION_GLSL_SUPPORT_NONZERO_BASE_INSTANCE = 5 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_GLSL_SEPARATE_SHADER_OBJECTS = 6 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_GLSL_ENABLE_420PACK_EXTENSION = 7 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_GLSL_VERSION = 8 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_GLSL_ES = 9 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_GLSL_VULKAN_SEMANTICS = 10 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_FLOAT_PRECISION_HIGHP = 11 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_INT_PRECISION_HIGHP = 12 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_HLSL_SHADER_MODEL = 13 | SPVC_COMPILER_OPTION_HLSL_BIT, SPVC_COMPILER_OPTION_HLSL_POINT_SIZE_COMPAT = 14 | SPVC_COMPILER_OPTION_HLSL_BIT, SPVC_COMPILER_OPTION_HLSL_POINT_COORD_COMPAT = 15 | SPVC_COMPILER_OPTION_HLSL_BIT, SPVC_COMPILER_OPTION_HLSL_SUPPORT_NONZERO_BASE_VERTEX_BASE_INSTANCE = 16 | SPVC_COMPILER_OPTION_HLSL_BIT, SPVC_COMPILER_OPTION_MSL_VERSION = 17 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_TEXEL_BUFFER_TEXTURE_WIDTH = 18 | SPVC_COMPILER_OPTION_MSL_BIT, /* Obsolete, use SWIZZLE_BUFFER_INDEX instead. */ SPVC_COMPILER_OPTION_MSL_AUX_BUFFER_INDEX = 19 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_SWIZZLE_BUFFER_INDEX = 19 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_INDIRECT_PARAMS_BUFFER_INDEX = 20 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_SHADER_OUTPUT_BUFFER_INDEX = 21 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_OUTPUT_BUFFER_INDEX = 22 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_SHADER_TESS_FACTOR_OUTPUT_BUFFER_INDEX = 23 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_SHADER_INPUT_WORKGROUP_INDEX = 24 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_ENABLE_POINT_SIZE_BUILTIN = 25 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_DISABLE_RASTERIZATION = 26 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_CAPTURE_OUTPUT_TO_BUFFER = 27 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_SWIZZLE_TEXTURE_SAMPLES = 28 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_PAD_FRAGMENT_OUTPUT_COMPONENTS = 29 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_TESS_DOMAIN_ORIGIN_LOWER_LEFT = 30 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_PLATFORM = 31 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_ARGUMENT_BUFFERS = 32 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_GLSL_EMIT_PUSH_CONSTANT_AS_UNIFORM_BUFFER = 33 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_MSL_TEXTURE_BUFFER_NATIVE = 34 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_GLSL_EMIT_UNIFORM_BUFFER_AS_PLAIN_UNIFORMS = 35 | SPVC_COMPILER_OPTION_GLSL_BIT, SPVC_COMPILER_OPTION_MSL_BUFFER_SIZE_BUFFER_INDEX = 36 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_EMIT_LINE_DIRECTIVES = 37 | SPVC_COMPILER_OPTION_COMMON_BIT, SPVC_COMPILER_OPTION_MSL_MULTIVIEW = 38 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_VIEW_MASK_BUFFER_INDEX = 39 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_DEVICE_INDEX = 40 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_VIEW_INDEX_FROM_DEVICE_INDEX = 41 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_DISPATCH_BASE = 42 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_DYNAMIC_OFFSETS_BUFFER_INDEX = 43 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_TEXTURE_1D_AS_2D = 44 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_ENABLE_BASE_INDEX_ZERO = 45 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_IOS_FRAMEBUFFER_FETCH_SUBPASS = 46 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_INVARIANT_FP_MATH = 47 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_EMULATE_CUBEMAP_ARRAY = 48 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_ENABLE_DECORATION_BINDING = 49 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_FORCE_ACTIVE_ARGUMENT_BUFFER_RESOURCES = 50 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_FORCE_NATIVE_ARRAYS = 51 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_ENABLE_STORAGE_IMAGE_QUALIFIER_DEDUCTION = 52 | SPVC_COMPILER_OPTION_COMMON_BIT, SPVC_COMPILER_OPTION_HLSL_FORCE_STORAGE_BUFFER_AS_UAV = 53 | SPVC_COMPILER_OPTION_HLSL_BIT, SPVC_COMPILER_OPTION_FORCE_ZERO_INITIALIZED_VARIABLES = 54 | SPVC_COMPILER_OPTION_COMMON_BIT, SPVC_COMPILER_OPTION_HLSL_NONWRITABLE_UAV_TEXTURE_AS_SRV = 55 | SPVC_COMPILER_OPTION_HLSL_BIT, SPVC_COMPILER_OPTION_INT_MAX = 0x7fffffff } spvc_compiler_option; /* * Context is the highest-level API construct. * The context owns all memory allocations made by its child object hierarchy, including various non-opaque structs and strings. * This means that the API user only has to care about one "destroy" call ever when using the C API. * All pointers handed out by the APIs are only valid as long as the context * is alive and spvc_context_release_allocations has not been called. */ SPVC_PUBLIC_API spvc_result spvc_context_create(spvc_context *context); /* Frees all memory allocations and objects associated with the context and its child objects. */ SPVC_PUBLIC_API void spvc_context_destroy(spvc_context context); /* Frees all memory allocations and objects associated with the context and its child objects, but keeps the context alive. */ SPVC_PUBLIC_API void spvc_context_release_allocations(spvc_context context); /* Get the string for the last error which was logged. */ SPVC_PUBLIC_API const char *spvc_context_get_last_error_string(spvc_context context); /* Get notified in a callback when an error triggers. Useful for debugging. */ typedef void (*spvc_error_callback)(void *userdata, const char *error); SPVC_PUBLIC_API void spvc_context_set_error_callback(spvc_context context, spvc_error_callback cb, void *userdata); /* SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle. */ SPVC_PUBLIC_API spvc_result spvc_context_parse_spirv(spvc_context context, const SpvId *spirv, size_t word_count, spvc_parsed_ir *parsed_ir); /* * Create a compiler backend. Capture mode controls if we construct by copy or move semantics. * It is always recommended to use SPVC_CAPTURE_MODE_TAKE_OWNERSHIP if you only intend to cross-compile the IR once. */ SPVC_PUBLIC_API spvc_result spvc_context_create_compiler(spvc_context context, spvc_backend backend, spvc_parsed_ir parsed_ir, spvc_capture_mode mode, spvc_compiler *compiler); /* Maps directly to C++ API. */ SPVC_PUBLIC_API unsigned spvc_compiler_get_current_id_bound(spvc_compiler compiler); /* Create compiler options, which will initialize defaults. */ SPVC_PUBLIC_API spvc_result spvc_compiler_create_compiler_options(spvc_compiler compiler, spvc_compiler_options *options); /* Override options. Will return error if e.g. MSL options are used for the HLSL backend, etc. */ SPVC_PUBLIC_API spvc_result spvc_compiler_options_set_bool(spvc_compiler_options options, spvc_compiler_option option, spvc_bool value); SPVC_PUBLIC_API spvc_result spvc_compiler_options_set_uint(spvc_compiler_options options, spvc_compiler_option option, unsigned value); /* Set compiler options. */ SPVC_PUBLIC_API spvc_result spvc_compiler_install_compiler_options(spvc_compiler compiler, spvc_compiler_options options); /* Compile IR into a string. *source is owned by the context, and caller must not free it themselves. */ SPVC_PUBLIC_API spvc_result spvc_compiler_compile(spvc_compiler compiler, const char **source); /* Maps to C++ API. */ SPVC_PUBLIC_API spvc_result spvc_compiler_add_header_line(spvc_compiler compiler, const char *line); SPVC_PUBLIC_API spvc_result spvc_compiler_require_extension(spvc_compiler compiler, const char *ext); SPVC_PUBLIC_API spvc_result spvc_compiler_flatten_buffer_block(spvc_compiler compiler, spvc_variable_id id); SPVC_PUBLIC_API spvc_bool spvc_compiler_variable_is_depth_or_compare(spvc_compiler compiler, spvc_variable_id id); /* * HLSL specifics. * Maps to C++ API. */ SPVC_PUBLIC_API spvc_result spvc_compiler_hlsl_set_root_constants_layout(spvc_compiler compiler, const spvc_hlsl_root_constants *constant_info, size_t count); SPVC_PUBLIC_API spvc_result spvc_compiler_hlsl_add_vertex_attribute_remap(spvc_compiler compiler, const spvc_hlsl_vertex_attribute_remap *remap, size_t remaps); SPVC_PUBLIC_API spvc_variable_id spvc_compiler_hlsl_remap_num_workgroups_builtin(spvc_compiler compiler); SPVC_PUBLIC_API spvc_result spvc_compiler_hlsl_set_resource_binding_flags(spvc_compiler compiler, spvc_hlsl_binding_flags flags); SPVC_PUBLIC_API spvc_result spvc_compiler_hlsl_add_resource_binding(spvc_compiler compiler, const spvc_hlsl_resource_binding *binding); SPVC_PUBLIC_API spvc_bool spvc_compiler_hlsl_is_resource_used(spvc_compiler compiler, SpvExecutionModel model, unsigned set, unsigned binding); /* * MSL specifics. * Maps to C++ API. */ SPVC_PUBLIC_API spvc_bool spvc_compiler_msl_is_rasterization_disabled(spvc_compiler compiler); /* Obsolete. Renamed to needs_swizzle_buffer. */ SPVC_PUBLIC_API spvc_bool spvc_compiler_msl_needs_aux_buffer(spvc_compiler compiler); SPVC_PUBLIC_API spvc_bool spvc_compiler_msl_needs_swizzle_buffer(spvc_compiler compiler); SPVC_PUBLIC_API spvc_bool spvc_compiler_msl_needs_buffer_size_buffer(spvc_compiler compiler); SPVC_PUBLIC_API spvc_bool spvc_compiler_msl_needs_output_buffer(spvc_compiler compiler); SPVC_PUBLIC_API spvc_bool spvc_compiler_msl_needs_patch_output_buffer(spvc_compiler compiler); SPVC_PUBLIC_API spvc_bool spvc_compiler_msl_needs_input_threadgroup_mem(spvc_compiler compiler); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_add_vertex_attribute(spvc_compiler compiler, const spvc_msl_vertex_attribute *attrs); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_add_resource_binding(spvc_compiler compiler, const spvc_msl_resource_binding *binding); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_add_discrete_descriptor_set(spvc_compiler compiler, unsigned desc_set); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_set_argument_buffer_device_address_space(spvc_compiler compiler, unsigned desc_set, spvc_bool device_address); SPVC_PUBLIC_API spvc_bool spvc_compiler_msl_is_vertex_attribute_used(spvc_compiler compiler, unsigned location); SPVC_PUBLIC_API spvc_bool spvc_compiler_msl_is_resource_used(spvc_compiler compiler, SpvExecutionModel model, unsigned set, unsigned binding); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_remap_constexpr_sampler(spvc_compiler compiler, spvc_variable_id id, const spvc_msl_constexpr_sampler *sampler); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_remap_constexpr_sampler_by_binding(spvc_compiler compiler, unsigned desc_set, unsigned binding, const spvc_msl_constexpr_sampler *sampler); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_remap_constexpr_sampler_ycbcr(spvc_compiler compiler, spvc_variable_id id, const spvc_msl_constexpr_sampler *sampler, const spvc_msl_sampler_ycbcr_conversion *conv); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr(spvc_compiler compiler, unsigned desc_set, unsigned binding, const spvc_msl_constexpr_sampler *sampler, const spvc_msl_sampler_ycbcr_conversion *conv); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_set_fragment_output_components(spvc_compiler compiler, unsigned location, unsigned components); SPVC_PUBLIC_API unsigned spvc_compiler_msl_get_automatic_resource_binding(spvc_compiler compiler, spvc_variable_id id); SPVC_PUBLIC_API unsigned spvc_compiler_msl_get_automatic_resource_binding_secondary(spvc_compiler compiler, spvc_variable_id id); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_add_dynamic_buffer(spvc_compiler compiler, unsigned desc_set, unsigned binding, unsigned index); SPVC_PUBLIC_API spvc_result spvc_compiler_msl_add_inline_uniform_block(spvc_compiler compiler, unsigned desc_set, unsigned binding); /* * Reflect resources. * Maps almost 1:1 to C++ API. */ SPVC_PUBLIC_API spvc_result spvc_compiler_get_active_interface_variables(spvc_compiler compiler, spvc_set *set); SPVC_PUBLIC_API spvc_result spvc_compiler_set_enabled_interface_variables(spvc_compiler compiler, spvc_set set); SPVC_PUBLIC_API spvc_result spvc_compiler_create_shader_resources(spvc_compiler compiler, spvc_resources *resources); SPVC_PUBLIC_API spvc_result spvc_compiler_create_shader_resources_for_active_variables(spvc_compiler compiler, spvc_resources *resources, spvc_set active); SPVC_PUBLIC_API spvc_result spvc_resources_get_resource_list_for_type(spvc_resources resources, spvc_resource_type type, const spvc_reflected_resource **resource_list, size_t *resource_size); /* * Decorations. * Maps to C++ API. */ SPVC_PUBLIC_API void spvc_compiler_set_decoration(spvc_compiler compiler, SpvId id, SpvDecoration decoration, unsigned argument); SPVC_PUBLIC_API void spvc_compiler_set_decoration_string(spvc_compiler compiler, SpvId id, SpvDecoration decoration, const char *argument); SPVC_PUBLIC_API void spvc_compiler_set_name(spvc_compiler compiler, SpvId id, const char *argument); SPVC_PUBLIC_API void spvc_compiler_set_member_decoration(spvc_compiler compiler, spvc_type_id id, unsigned member_index, SpvDecoration decoration, unsigned argument); SPVC_PUBLIC_API void spvc_compiler_set_member_decoration_string(spvc_compiler compiler, spvc_type_id id, unsigned member_index, SpvDecoration decoration, const char *argument); SPVC_PUBLIC_API void spvc_compiler_set_member_name(spvc_compiler compiler, spvc_type_id id, unsigned member_index, const char *argument); SPVC_PUBLIC_API void spvc_compiler_unset_decoration(spvc_compiler compiler, SpvId id, SpvDecoration decoration); SPVC_PUBLIC_API void spvc_compiler_unset_member_decoration(spvc_compiler compiler, spvc_type_id id, unsigned member_index, SpvDecoration decoration); SPVC_PUBLIC_API spvc_bool spvc_compiler_has_decoration(spvc_compiler compiler, SpvId id, SpvDecoration decoration); SPVC_PUBLIC_API spvc_bool spvc_compiler_has_member_decoration(spvc_compiler compiler, spvc_type_id id, unsigned member_index, SpvDecoration decoration); SPVC_PUBLIC_API const char *spvc_compiler_get_name(spvc_compiler compiler, SpvId id); SPVC_PUBLIC_API unsigned spvc_compiler_get_decoration(spvc_compiler compiler, SpvId id, SpvDecoration decoration); SPVC_PUBLIC_API const char *spvc_compiler_get_decoration_string(spvc_compiler compiler, SpvId id, SpvDecoration decoration); SPVC_PUBLIC_API unsigned spvc_compiler_get_member_decoration(spvc_compiler compiler, spvc_type_id id, unsigned member_index, SpvDecoration decoration); SPVC_PUBLIC_API const char *spvc_compiler_get_member_decoration_string(spvc_compiler compiler, spvc_type_id id, unsigned member_index, SpvDecoration decoration); SPVC_PUBLIC_API const char *spvc_compiler_get_member_name(spvc_compiler compiler, spvc_type_id id, unsigned member_index); /* * Entry points. * Maps to C++ API. */ SPVC_PUBLIC_API spvc_result spvc_compiler_get_entry_points(spvc_compiler compiler, const spvc_entry_point **entry_points, size_t *num_entry_points); SPVC_PUBLIC_API spvc_result spvc_compiler_set_entry_point(spvc_compiler compiler, const char *name, SpvExecutionModel model); SPVC_PUBLIC_API spvc_result spvc_compiler_rename_entry_point(spvc_compiler compiler, const char *old_name, const char *new_name, SpvExecutionModel model); SPVC_PUBLIC_API const char *spvc_compiler_get_cleansed_entry_point_name(spvc_compiler compiler, const char *name, SpvExecutionModel model); SPVC_PUBLIC_API void spvc_compiler_set_execution_mode(spvc_compiler compiler, SpvExecutionMode mode); SPVC_PUBLIC_API void spvc_compiler_unset_execution_mode(spvc_compiler compiler, SpvExecutionMode mode); SPVC_PUBLIC_API void spvc_compiler_set_execution_mode_with_arguments(spvc_compiler compiler, SpvExecutionMode mode, unsigned arg0, unsigned arg1, unsigned arg2); SPVC_PUBLIC_API spvc_result spvc_compiler_get_execution_modes(spvc_compiler compiler, const SpvExecutionMode **modes, size_t *num_modes); SPVC_PUBLIC_API unsigned spvc_compiler_get_execution_mode_argument(spvc_compiler compiler, SpvExecutionMode mode); SPVC_PUBLIC_API unsigned spvc_compiler_get_execution_mode_argument_by_index(spvc_compiler compiler, SpvExecutionMode mode, unsigned index); SPVC_PUBLIC_API SpvExecutionModel spvc_compiler_get_execution_model(spvc_compiler compiler); /* * Type query interface. * Maps to C++ API, except it's read-only. */ SPVC_PUBLIC_API spvc_type spvc_compiler_get_type_handle(spvc_compiler compiler, spvc_type_id id); /* Pulls out SPIRType::self. This effectively gives the type ID without array or pointer qualifiers. * This is necessary when reflecting decoration/name information on members of a struct, * which are placed in the base type, not the qualified type. * This is similar to spvc_reflected_resource::base_type_id. */ SPVC_PUBLIC_API spvc_type_id spvc_type_get_base_type_id(spvc_type type); SPVC_PUBLIC_API spvc_basetype spvc_type_get_basetype(spvc_type type); SPVC_PUBLIC_API unsigned spvc_type_get_bit_width(spvc_type type); SPVC_PUBLIC_API unsigned spvc_type_get_vector_size(spvc_type type); SPVC_PUBLIC_API unsigned spvc_type_get_columns(spvc_type type); SPVC_PUBLIC_API unsigned spvc_type_get_num_array_dimensions(spvc_type type); SPVC_PUBLIC_API spvc_bool spvc_type_array_dimension_is_literal(spvc_type type, unsigned dimension); SPVC_PUBLIC_API SpvId spvc_type_get_array_dimension(spvc_type type, unsigned dimension); SPVC_PUBLIC_API unsigned spvc_type_get_num_member_types(spvc_type type); SPVC_PUBLIC_API spvc_type_id spvc_type_get_member_type(spvc_type type, unsigned index); SPVC_PUBLIC_API SpvStorageClass spvc_type_get_storage_class(spvc_type type); /* Image type query. */ SPVC_PUBLIC_API spvc_type_id spvc_type_get_image_sampled_type(spvc_type type); SPVC_PUBLIC_API SpvDim spvc_type_get_image_dimension(spvc_type type); SPVC_PUBLIC_API spvc_bool spvc_type_get_image_is_depth(spvc_type type); SPVC_PUBLIC_API spvc_bool spvc_type_get_image_arrayed(spvc_type type); SPVC_PUBLIC_API spvc_bool spvc_type_get_image_multisampled(spvc_type type); SPVC_PUBLIC_API spvc_bool spvc_type_get_image_is_storage(spvc_type type); SPVC_PUBLIC_API SpvImageFormat spvc_type_get_image_storage_format(spvc_type type); SPVC_PUBLIC_API SpvAccessQualifier spvc_type_get_image_access_qualifier(spvc_type type); /* * Buffer layout query. * Maps to C++ API. */ SPVC_PUBLIC_API spvc_result spvc_compiler_get_declared_struct_size(spvc_compiler compiler, spvc_type struct_type, size_t *size); SPVC_PUBLIC_API spvc_result spvc_compiler_get_declared_struct_size_runtime_array(spvc_compiler compiler, spvc_type struct_type, size_t array_size, size_t *size); SPVC_PUBLIC_API spvc_result spvc_compiler_get_declared_struct_member_size(spvc_compiler compiler, spvc_type type, unsigned index, size_t *size); SPVC_PUBLIC_API spvc_result spvc_compiler_type_struct_member_offset(spvc_compiler compiler, spvc_type type, unsigned index, unsigned *offset); SPVC_PUBLIC_API spvc_result spvc_compiler_type_struct_member_array_stride(spvc_compiler compiler, spvc_type type, unsigned index, unsigned *stride); SPVC_PUBLIC_API spvc_result spvc_compiler_type_struct_member_matrix_stride(spvc_compiler compiler, spvc_type type, unsigned index, unsigned *stride); /* * Workaround helper functions. * Maps to C++ API. */ SPVC_PUBLIC_API spvc_result spvc_compiler_build_dummy_sampler_for_combined_images(spvc_compiler compiler, spvc_variable_id *id); SPVC_PUBLIC_API spvc_result spvc_compiler_build_combined_image_samplers(spvc_compiler compiler); SPVC_PUBLIC_API spvc_result spvc_compiler_get_combined_image_samplers(spvc_compiler compiler, const spvc_combined_image_sampler **samplers, size_t *num_samplers); /* * Constants * Maps to C++ API. */ SPVC_PUBLIC_API spvc_result spvc_compiler_get_specialization_constants(spvc_compiler compiler, const spvc_specialization_constant **constants, size_t *num_constants); SPVC_PUBLIC_API spvc_constant spvc_compiler_get_constant_handle(spvc_compiler compiler, spvc_constant_id id); SPVC_PUBLIC_API spvc_constant_id spvc_compiler_get_work_group_size_specialization_constants(spvc_compiler compiler, spvc_specialization_constant *x, spvc_specialization_constant *y, spvc_specialization_constant *z); /* * Buffer ranges * Maps to C++ API. */ SPVC_PUBLIC_API spvc_result spvc_compiler_get_active_buffer_ranges(spvc_compiler compiler, spvc_variable_id id, const spvc_buffer_range **ranges, size_t *num_ranges); /* * No stdint.h until C99, sigh :( * For smaller types, the result is sign or zero-extended as appropriate. * Maps to C++ API. * TODO: The SPIRConstant query interface and modification interface is not quite complete. */ SPVC_PUBLIC_API float spvc_constant_get_scalar_fp16(spvc_constant constant, unsigned column, unsigned row); SPVC_PUBLIC_API float spvc_constant_get_scalar_fp32(spvc_constant constant, unsigned column, unsigned row); SPVC_PUBLIC_API double spvc_constant_get_scalar_fp64(spvc_constant constant, unsigned column, unsigned row); SPVC_PUBLIC_API unsigned spvc_constant_get_scalar_u32(spvc_constant constant, unsigned column, unsigned row); SPVC_PUBLIC_API int spvc_constant_get_scalar_i32(spvc_constant constant, unsigned column, unsigned row); SPVC_PUBLIC_API unsigned spvc_constant_get_scalar_u16(spvc_constant constant, unsigned column, unsigned row); SPVC_PUBLIC_API int spvc_constant_get_scalar_i16(spvc_constant constant, unsigned column, unsigned row); SPVC_PUBLIC_API unsigned spvc_constant_get_scalar_u8(spvc_constant constant, unsigned column, unsigned row); SPVC_PUBLIC_API int spvc_constant_get_scalar_i8(spvc_constant constant, unsigned column, unsigned row); SPVC_PUBLIC_API void spvc_constant_get_subconstants(spvc_constant constant, const spvc_constant_id **constituents, size_t *count); SPVC_PUBLIC_API spvc_type_id spvc_constant_get_type(spvc_constant constant); /* * Misc reflection * Maps to C++ API. */ SPVC_PUBLIC_API spvc_bool spvc_compiler_get_binary_offset_for_decoration(spvc_compiler compiler, spvc_variable_id id, SpvDecoration decoration, unsigned *word_offset); SPVC_PUBLIC_API spvc_bool spvc_compiler_buffer_is_hlsl_counter_buffer(spvc_compiler compiler, spvc_variable_id id); SPVC_PUBLIC_API spvc_bool spvc_compiler_buffer_get_hlsl_counter_buffer(spvc_compiler compiler, spvc_variable_id id, spvc_variable_id *counter_id); SPVC_PUBLIC_API spvc_result spvc_compiler_get_declared_capabilities(spvc_compiler compiler, const SpvCapability **capabilities, size_t *num_capabilities); SPVC_PUBLIC_API spvc_result spvc_compiler_get_declared_extensions(spvc_compiler compiler, const char ***extensions, size_t *num_extensions); SPVC_PUBLIC_API const char *spvc_compiler_get_remapped_declared_block_name(spvc_compiler compiler, spvc_variable_id id); SPVC_PUBLIC_API spvc_result spvc_compiler_get_buffer_block_decorations(spvc_compiler compiler, spvc_variable_id id, const SpvDecoration **decorations, size_t *num_decorations); #ifdef __cplusplus } #endif #endif
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <UIFoundation/NSCollectionViewLayout.h> @interface NSCollectionViewLayout (NSPrivateItemSequence) + (BOOL)itemLayoutIsSequential; @end
{ "pile_set_name": "Github" }
# @generated by autocargo from //hphp/hack/src/hhbc:emit_fatal_rust [package] name = "emit_fatal_rust" edition = "2018" version = "0.0.0" include = ["../../emit_fatal.rs"] [lib] path = "../../emit_fatal.rs" [dependencies] emit_pos_rust = { path = "../emit_pos" } hhbc_ast_rust = { path = "../hhbc_ast" } instruction_sequence_rust = { path = "../instruction_sequence" } oxidized = { path = "../../../oxidized" }
{ "pile_set_name": "Github" }
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 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. ==============================================================================*/ #define EIGEN_USE_THREADS #include "tensorflow/core/kernels/concat_lib_cpu.h" #include <vector> #include "tensorflow/core/framework/register_types.h" #include "tensorflow/core/kernels/concat_lib.h" namespace tensorflow { namespace { template <typename T> struct MemCpyCopier { inline void Copy(T* dst, const T* src, int input_index, size_t n) { if (DataTypeCanUseMemcpy(DataTypeToEnum<T>::v())) { memcpy(dst, src, n * sizeof(T)); } else { for (size_t k = 0; k < n; ++k) { *dst++ = *src++; } } } }; template <> struct MemCpyCopier<ResourceHandle> { inline void Copy(ResourceHandle* dst, const ResourceHandle* src, int input_index, size_t n) { for (size_t k = 0; k < n; ++k) { *dst++ = *src++; } } }; } // namespace template <typename T> void ConcatCPU(DeviceBase* d, const std::vector< std::unique_ptr<typename TTypes<T, 2>::ConstMatrix>>& inputs, typename TTypes<T, 2>::Matrix* output) { if (std::is_same<T, string>::value) { // use a large cost here to force strings to be handled by separate threads ConcatCPUImpl<T>(d, inputs, 100000, MemCpyCopier<T>(), output); } else { ConcatCPUImpl<T>(d, inputs, sizeof(T) /* cost_per_unit */, MemCpyCopier<T>(), output); } } #define REGISTER(T) \ template void ConcatCPU<T>( \ DeviceBase*, \ const std::vector<std::unique_ptr<typename TTypes<T, 2>::ConstMatrix>>&, \ typename TTypes<T, 2>::Matrix* output); TF_CALL_ALL_TYPES(REGISTER) REGISTER(quint8) REGISTER(qint8) REGISTER(quint16) REGISTER(qint16) REGISTER(qint32) REGISTER(bfloat16) TF_CALL_variant(REGISTER) #if defined(IS_MOBILE_PLATFORM) && !defined(SUPPORT_SELECTIVE_REGISTRATION) && \ !defined(__ANDROID_TYPES_FULL__) // Primarily used for SavedModel support on mobile. Registering it here only // if __ANDROID_TYPES_FULL__ is not defined (which already registers string) // to avoid duplicate registration. REGISTER(string); #endif // defined(IS_MOBILE_PLATFORM) && // !defined(SUPPORT_SELECTIVE_REGISTRATION) && // !defined(__ANDROID_TYPES_FULL__) #ifdef TENSORFLOW_USE_SYCL template <typename T> void ConcatSYCL(const Eigen::SyclDevice& d, const std::vector< std::unique_ptr<typename TTypes<T, 2>::ConstMatrix>>& inputs, typename TTypes<T, 2>::Matrix* output) { ConcatSYCLImpl<T>(d, inputs, sizeof(T) /* cost_per_unit */, MemCpyCopier<T>(), output); } #define REGISTER_SYCL(T) \ template void ConcatSYCL<T>( \ const Eigen::SyclDevice&, \ const std::vector<std::unique_ptr<typename TTypes<T, 2>::ConstMatrix>>&, \ typename TTypes<T, 2>::Matrix* output); TF_CALL_GPU_NUMBER_TYPES_NO_HALF(REGISTER_SYCL) #undef REGISTER_SYCL #endif // TENSORFLOW_USE_SYCL } // namespace tensorflow
{ "pile_set_name": "Github" }
/* * Copyright 2000-2014 JetBrains s.r.o. * * 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. */ package com.intellij.psi.impl.source.resolve.reference.impl.manipulators; import com.intellij.openapi.editor.Document; import com.intellij.openapi.fileEditor.FileDocumentManager; import com.intellij.openapi.util.TextRange; import com.intellij.psi.PsiDocumentManager; import com.intellij.psi.PsiPlainTextFile; import com.intellij.psi.AbstractElementManipulator; import com.intellij.util.IncorrectOperationException; import javax.annotation.Nonnull; /** * Created by IntelliJ IDEA. * User: ik * Date: 09.12.2003 * Time: 14:10:35 * To change this template use Options | File Templates. */ public class PlainFileManipulator extends AbstractElementManipulator<PsiPlainTextFile> { @Override public PsiPlainTextFile handleContentChange(@Nonnull PsiPlainTextFile file, @Nonnull TextRange range, String newContent) throws IncorrectOperationException { final Document document = FileDocumentManager.getInstance().getDocument(file.getVirtualFile()); document.replaceString(range.getStartOffset(), range.getEndOffset(), newContent); PsiDocumentManager.getInstance(file.getProject()).commitDocument(document); return file; } }
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <NewsUI2/_TtC7NewsUI217NoopAudioAssembly.h> @interface _TtC7NewsUI217NoopAudioAssembly (NewsUI2) - (void)loadInRegistry:(id)arg1; @end
{ "pile_set_name": "Github" }
#region Copyright notice and license // Copyright 2019 The gRPC 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. #endregion using Microsoft.Extensions.DependencyInjection; namespace Grpc.AspNetCore.Server.Internal { /// <summary> /// A marker class used to determine if all the required gRPC services were added /// to the <see cref="IServiceCollection"/>. /// </summary> internal class GrpcMarkerService { } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.cxf.systests</groupId> <artifactId>cxf-systests-container-integration</artifactId> <version>3.4.1-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>cxf-systests-ci-webapp</artifactId> <name>Apache CXF Container Integration Test Webapp</name> <description>Apache CXF Container Integration Test Webapp</description> <packaging>war</packaging> <properties> <cxf.module.name>org.apache.cxf.systests.ci.webapp</cxf.module.name> </properties> <dependencies> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </dependency> </dependencies> </project>
{ "pile_set_name": "Github" }
<?php /* * Copyright 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in 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. */ class Google_Service_Spanner_Binding extends Google_Collection { protected $collection_key = 'members'; public $members; public $role; public function setMembers($members) { $this->members = $members; } public function getMembers() { return $this->members; } public function setRole($role) { $this->role = $role; } public function getRole() { return $this->role; } }
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <SAObjects/AceObject.h> #import <SAObjects/SAAceSerializable-Protocol.h> @class NSString; @interface SAUITemplateEdgeInsets : AceObject <SAAceSerializable> { } + (id)edgeInsetsWithDictionary:(id)arg1 context:(id)arg2; + (id)edgeInsets; @property(nonatomic) float top; @property(nonatomic) float right; @property(nonatomic) float left; @property(nonatomic) float bottom; - (id)encodedClassName; - (id)groupIdentifier; // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly, copy) NSString *description; @property(readonly) unsigned long long hash; @property(readonly) Class superclass; @end
{ "pile_set_name": "Github" }
/* * Copyright 2019 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in 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. */ package com.netflix.spinnaker.orca.igor.model; public interface RetryableStageDefinition { int getConsecutiveErrors(); }
{ "pile_set_name": "Github" }
<#-- /** * Copyright 2000-present Liferay, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in 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. */ --> <#assign aui = PortletJspTagLibs["/META-INF/liferay-aui.tld"] /> <#assign liferay_portlet = PortletJspTagLibs["/META-INF/liferay-portlet-ext.tld"] /> <#assign liferay_security = PortletJspTagLibs["/META-INF/liferay-security.tld"] /> <#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] /> <#assign liferay_ui = PortletJspTagLibs["/META-INF/liferay-ui.tld"] /> <#assign liferay_util = PortletJspTagLibs["/META-INF/liferay-util.tld"] /> <#assign portlet = PortletJspTagLibs["/META-INF/liferay-portlet.tld"] /> <@liferay_theme["defineObjects"] /> <@portlet["defineObjects"] />
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (11.0.3) on Sun Mar 29 22:42:10 IST 2020 --> <title>Uses of Class com.googlecode.cqengine.quantizer.BigDecimalQuantizer (CQEngine 3.5.0 API)</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="dc.created" content="2020-03-29"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script> <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> <!--[if IE]> <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> <![endif]--> <script type="text/javascript" src="../../../../../jquery/jquery-3.3.1.js"></script> <script type="text/javascript" src="../../../../../jquery/jquery-migrate-3.0.1.js"></script> <script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class com.googlecode.cqengine.quantizer.BigDecimalQuantizer (CQEngine 3.5.0 API)"; } } catch(err) { } //--> var pathtoroot = "../../../../../"; var useModuleDirectories = true; loadScripts(document, 'script');</script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <header role="banner"> <nav role="navigation"> <div class="fixedNav"> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a id="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../index.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../BigDecimalQuantizer.html" title="class in com.googlecode.cqengine.quantizer">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li> </ul> <ul class="navListSearch"> <li><label for="search">SEARCH:</label> <input type="text" id="search" value="search" disabled="disabled"> <input type="reset" id="reset" value="reset" disabled="disabled"> </li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> </div> <a id="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> </div> <div class="navPadding">&nbsp;</div> <script type="text/javascript"><!-- $('.navPadding').css('padding-top', $('.fixedNav').css("height")); //--> </script> </nav> </header> <main role="main"> <div class="header"> <h2 title="Uses of Class com.googlecode.cqengine.quantizer.BigDecimalQuantizer" class="title">Uses of Class<br>com.googlecode.cqengine.quantizer.BigDecimalQuantizer</h2> </div> <div class="classUseContainer">No usage of com.googlecode.cqengine.quantizer.BigDecimalQuantizer</div> </main> <footer role="contentinfo"> <nav role="navigation"> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a id="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../index.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../BigDecimalQuantizer.html" title="class in com.googlecode.cqengine.quantizer">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> </div> <a id="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </nav> <p class="legalCopy"><small>Copyright &#169; 2020. All rights reserved.</small></p> </footer> </body> </html>
{ "pile_set_name": "Github" }
/* Copyright 2016 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. */ package workqueue import ( "container/heap" "sync" "time" "k8s.io/apimachinery/pkg/util/clock" utilruntime "k8s.io/apimachinery/pkg/util/runtime" ) // DelayingInterface is an Interface that can Add an item at a later time. This makes it easier to // requeue items after failures without ending up in a hot-loop. type DelayingInterface interface { Interface // AddAfter adds an item to the workqueue after the indicated duration has passed AddAfter(item interface{}, duration time.Duration) } // NewDelayingQueue constructs a new workqueue with delayed queuing ability func NewDelayingQueue() DelayingInterface { return NewDelayingQueueWithCustomClock(clock.RealClock{}, "") } // NewNamedDelayingQueue constructs a new named workqueue with delayed queuing ability func NewNamedDelayingQueue(name string) DelayingInterface { return NewDelayingQueueWithCustomClock(clock.RealClock{}, name) } // NewDelayingQueueWithCustomClock constructs a new named workqueue // with ability to inject real or fake clock for testing purposes func NewDelayingQueueWithCustomClock(clock clock.Clock, name string) DelayingInterface { ret := &delayingType{ Interface: NewNamed(name), clock: clock, heartbeat: clock.NewTicker(maxWait), stopCh: make(chan struct{}), waitingForAddCh: make(chan *waitFor, 1000), metrics: newRetryMetrics(name), } go ret.waitingLoop() return ret } // delayingType wraps an Interface and provides delayed re-enquing type delayingType struct { Interface // clock tracks time for delayed firing clock clock.Clock // stopCh lets us signal a shutdown to the waiting loop stopCh chan struct{} // stopOnce guarantees we only signal shutdown a single time stopOnce sync.Once // heartbeat ensures we wait no more than maxWait before firing heartbeat clock.Ticker // waitingForAddCh is a buffered channel that feeds waitingForAdd waitingForAddCh chan *waitFor // metrics counts the number of retries metrics retryMetrics } // waitFor holds the data to add and the time it should be added type waitFor struct { data t readyAt time.Time // index in the priority queue (heap) index int } // waitForPriorityQueue implements a priority queue for waitFor items. // // waitForPriorityQueue implements heap.Interface. The item occurring next in // time (i.e., the item with the smallest readyAt) is at the root (index 0). // Peek returns this minimum item at index 0. Pop returns the minimum item after // it has been removed from the queue and placed at index Len()-1 by // container/heap. Push adds an item at index Len(), and container/heap // percolates it into the correct location. type waitForPriorityQueue []*waitFor func (pq waitForPriorityQueue) Len() int { return len(pq) } func (pq waitForPriorityQueue) Less(i, j int) bool { return pq[i].readyAt.Before(pq[j].readyAt) } func (pq waitForPriorityQueue) Swap(i, j int) { pq[i], pq[j] = pq[j], pq[i] pq[i].index = i pq[j].index = j } // Push adds an item to the queue. Push should not be called directly; instead, // use `heap.Push`. func (pq *waitForPriorityQueue) Push(x interface{}) { n := len(*pq) item := x.(*waitFor) item.index = n *pq = append(*pq, item) } // Pop removes an item from the queue. Pop should not be called directly; // instead, use `heap.Pop`. func (pq *waitForPriorityQueue) Pop() interface{} { n := len(*pq) item := (*pq)[n-1] item.index = -1 *pq = (*pq)[0:(n - 1)] return item } // Peek returns the item at the beginning of the queue, without removing the // item or otherwise mutating the queue. It is safe to call directly. func (pq waitForPriorityQueue) Peek() interface{} { return pq[0] } // ShutDown stops the queue. After the queue drains, the returned shutdown bool // on Get() will be true. This method may be invoked more than once. func (q *delayingType) ShutDown() { q.stopOnce.Do(func() { q.Interface.ShutDown() close(q.stopCh) q.heartbeat.Stop() }) } // AddAfter adds the given item to the work queue after the given delay func (q *delayingType) AddAfter(item interface{}, duration time.Duration) { // don't add if we're already shutting down if q.ShuttingDown() { return } q.metrics.retry() // immediately add things with no delay if duration <= 0 { q.Add(item) return } select { case <-q.stopCh: // unblock if ShutDown() is called case q.waitingForAddCh <- &waitFor{data: item, readyAt: q.clock.Now().Add(duration)}: } } // maxWait keeps a max bound on the wait time. It's just insurance against weird things happening. // Checking the queue every 10 seconds isn't expensive and we know that we'll never end up with an // expired item sitting for more than 10 seconds. const maxWait = 10 * time.Second // waitingLoop runs until the workqueue is shutdown and keeps a check on the list of items to be added. func (q *delayingType) waitingLoop() { defer utilruntime.HandleCrash() // Make a placeholder channel to use when there are no items in our list never := make(<-chan time.Time) // Make a timer that expires when the item at the head of the waiting queue is ready var nextReadyAtTimer clock.Timer waitingForQueue := &waitForPriorityQueue{} heap.Init(waitingForQueue) waitingEntryByData := map[t]*waitFor{} for { if q.Interface.ShuttingDown() { return } now := q.clock.Now() // Add ready entries for waitingForQueue.Len() > 0 { entry := waitingForQueue.Peek().(*waitFor) if entry.readyAt.After(now) { break } entry = heap.Pop(waitingForQueue).(*waitFor) q.Add(entry.data) delete(waitingEntryByData, entry.data) } // Set up a wait for the first item's readyAt (if one exists) nextReadyAt := never if waitingForQueue.Len() > 0 { if nextReadyAtTimer != nil { nextReadyAtTimer.Stop() } entry := waitingForQueue.Peek().(*waitFor) nextReadyAtTimer = q.clock.NewTimer(entry.readyAt.Sub(now)) nextReadyAt = nextReadyAtTimer.C() } select { case <-q.stopCh: return case <-q.heartbeat.C(): // continue the loop, which will add ready items case <-nextReadyAt: // continue the loop, which will add ready items case waitEntry := <-q.waitingForAddCh: if waitEntry.readyAt.After(q.clock.Now()) { insert(waitingForQueue, waitingEntryByData, waitEntry) } else { q.Add(waitEntry.data) } drained := false for !drained { select { case waitEntry := <-q.waitingForAddCh: if waitEntry.readyAt.After(q.clock.Now()) { insert(waitingForQueue, waitingEntryByData, waitEntry) } else { q.Add(waitEntry.data) } default: drained = true } } } } } // insert adds the entry to the priority queue, or updates the readyAt if it already exists in the queue func insert(q *waitForPriorityQueue, knownEntries map[t]*waitFor, entry *waitFor) { // if the entry already exists, update the time only if it would cause the item to be queued sooner existing, exists := knownEntries[entry.data] if exists { if existing.readyAt.After(entry.readyAt) { existing.readyAt = entry.readyAt heap.Fix(q, existing.index) } return } heap.Push(q, entry) knownEntries[entry.data] = entry }
{ "pile_set_name": "Github" }
// Copyright 2012 Citrix Systems, Inc. Licensed under the // Apache License, Version 2.0 (the "License"); you may not use this // file except in compliance with the License. Citrix Systems, Inc. // reserves all rights not expressly granted by 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. // // Automatically generated by addcopyright.py at 04/03/2012 package com.cloud.test.stress; import java.util.Arrays; import java.util.Iterator; import java.util.List; import org.apache.log4j.Logger; import com.trilead.ssh2.Connection; import com.trilead.ssh2.Session; public class SshTest { public static final Logger s_logger = Logger.getLogger(SshTest.class.getName()); public static String host = ""; public static String password = "password"; public static String url = "http://google.com"; public static void main (String[] args) { // Parameters List<String> argsList = Arrays.asList(args); Iterator<String> iter = argsList.iterator(); while (iter.hasNext()) { String arg = iter.next(); if (arg.equals("-h")) { host = iter.next(); } if (arg.equals("-p")) { password = iter.next(); } if (arg.equals("-u")) { url = iter.next(); } } if (host == null || host.equals("")) { s_logger.info("Did not receive a host back from test, ignoring ssh test"); System.exit(2); } if (password == null){ s_logger.info("Did not receive a password back from test, ignoring ssh test"); System.exit(2); } try { s_logger.info("Attempting to SSH into host " + host); Connection conn = new Connection(host); conn.connect(null, 60000, 60000); s_logger.info("User + ssHed successfully into host " + host); boolean isAuthenticated = conn.authenticateWithPassword("root", password); if (isAuthenticated == false) { s_logger.info("Authentication failed for root with password" + password); System.exit(2); } String linuxCommand = "wget " + url; Session sess = conn.openSession(); sess.execCommand(linuxCommand); sess.close(); conn.close(); } catch (Exception e) { s_logger.error("SSH test fail with error", e); System.exit(2); } } }
{ "pile_set_name": "Github" }
/* 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 informer-gen. DO NOT EDIT. package v1 import ( "context" time "time" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" internalinterfaces "k8s.io/client-go/informers/internalinterfaces" kubernetes "k8s.io/client-go/kubernetes" v1 "k8s.io/client-go/listers/core/v1" cache "k8s.io/client-go/tools/cache" ) // PersistentVolumeInformer provides access to a shared informer and lister for // PersistentVolumes. type PersistentVolumeInformer interface { Informer() cache.SharedIndexInformer Lister() v1.PersistentVolumeLister } type persistentVolumeInformer struct { factory internalinterfaces.SharedInformerFactory tweakListOptions internalinterfaces.TweakListOptionsFunc } // NewPersistentVolumeInformer constructs a new informer for PersistentVolume type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewPersistentVolumeInformer(client kubernetes.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { return NewFilteredPersistentVolumeInformer(client, resyncPeriod, indexers, nil) } // NewFilteredPersistentVolumeInformer constructs a new informer for PersistentVolume type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server. func NewFilteredPersistentVolumeInformer(client kubernetes.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( &cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) } return client.CoreV1().PersistentVolumes().List(context.TODO(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } return client.CoreV1().PersistentVolumes().Watch(context.TODO(), options) }, }, &corev1.PersistentVolume{}, resyncPeriod, indexers, ) } func (f *persistentVolumeInformer) defaultInformer(client kubernetes.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredPersistentVolumeInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } func (f *persistentVolumeInformer) Informer() cache.SharedIndexInformer { return f.factory.InformerFor(&corev1.PersistentVolume{}, f.defaultInformer) } func (f *persistentVolumeInformer) Lister() v1.PersistentVolumeLister { return v1.NewPersistentVolumeLister(f.Informer().GetIndexer()) }
{ "pile_set_name": "Github" }
/* Copyright 2017 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. */ package v1beta1 import ( "errors" "k8s.io/apimachinery/pkg/util/json" ) var jsTrue = []byte("true") var jsFalse = []byte("false") func (s JSONSchemaPropsOrBool) MarshalJSON() ([]byte, error) { if s.Schema != nil { return json.Marshal(s.Schema) } if s.Schema == nil && !s.Allows { return jsFalse, nil } return jsTrue, nil } func (s *JSONSchemaPropsOrBool) UnmarshalJSON(data []byte) error { var nw JSONSchemaPropsOrBool switch { case len(data) == 0: case data[0] == '{': var sch JSONSchemaProps if err := json.Unmarshal(data, &sch); err != nil { return err } nw.Allows = true nw.Schema = &sch case len(data) == 4 && string(data) == "true": nw.Allows = true case len(data) == 5 && string(data) == "false": nw.Allows = false default: return errors.New("boolean or JSON schema expected") } *s = nw return nil } func (s JSONSchemaPropsOrStringArray) MarshalJSON() ([]byte, error) { if len(s.Property) > 0 { return json.Marshal(s.Property) } if s.Schema != nil { return json.Marshal(s.Schema) } return []byte("null"), nil } func (s *JSONSchemaPropsOrStringArray) UnmarshalJSON(data []byte) error { var first byte if len(data) > 1 { first = data[0] } var nw JSONSchemaPropsOrStringArray if first == '{' { var sch JSONSchemaProps if err := json.Unmarshal(data, &sch); err != nil { return err } nw.Schema = &sch } if first == '[' { if err := json.Unmarshal(data, &nw.Property); err != nil { return err } } *s = nw return nil } func (s JSONSchemaPropsOrArray) MarshalJSON() ([]byte, error) { if len(s.JSONSchemas) > 0 { return json.Marshal(s.JSONSchemas) } return json.Marshal(s.Schema) } func (s *JSONSchemaPropsOrArray) UnmarshalJSON(data []byte) error { var nw JSONSchemaPropsOrArray var first byte if len(data) > 1 { first = data[0] } if first == '{' { var sch JSONSchemaProps if err := json.Unmarshal(data, &sch); err != nil { return err } nw.Schema = &sch } if first == '[' { if err := json.Unmarshal(data, &nw.JSONSchemas); err != nil { return err } } *s = nw return nil } func (s JSON) MarshalJSON() ([]byte, error) { if len(s.Raw) > 0 { return s.Raw, nil } return []byte("null"), nil } func (s *JSON) UnmarshalJSON(data []byte) error { if len(data) > 0 && string(data) != "null" { s.Raw = data } return nil }
{ "pile_set_name": "Github" }
/* * Copyright 2003-2018 JetBrains s.r.o. * * 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. */ package jetbrains.mps.idea.java.psi; import com.intellij.openapi.project.Project; import com.intellij.psi.PsiClass; import com.intellij.psi.PsiCodeBlock; import com.intellij.psi.PsiDirectory; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiExpression; import com.intellij.psi.PsiField; import com.intellij.psi.PsiFile; import com.intellij.psi.PsiFileSystemItem; import com.intellij.psi.PsiJavaFile; import com.intellij.psi.PsiMethod; import com.intellij.psi.PsiModifier; import com.intellij.psi.PsiModifierList; import com.intellij.psi.PsiParameter; import com.intellij.psi.PsiParameterList; import com.intellij.psi.PsiReferenceList; import com.intellij.psi.PsiTreeChangeEvent; import com.intellij.psi.PsiTypeParameter; import com.intellij.psi.PsiTypeParameterList; import com.intellij.psi.PsiWhiteSpace; import jetbrains.mps.ide.platform.watching.ReloadParticipant; import jetbrains.mps.idea.java.psi.JavaPsiListener.FSMove; import jetbrains.mps.idea.java.psi.JavaPsiListener.FSRename; import jetbrains.mps.idea.java.psi.JavaPsiListener.PsiEvent; import org.jetbrains.annotations.NotNull; import org.jetbrains.mps.openapi.util.ProgressMonitor; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Map.Entry; import java.util.Set; /** * danilla 5/25/13 */ public class PsiChangeProcessor extends ReloadParticipant { // Per project change data // The thing is there's only one instance of reload participant for a given participant class, // whereas PsiChangesWatcher is a project component (as PsiManager) private Map<Project, PsiChangeData> changeData = new HashMap<Project, PsiChangeData>(); public PsiChangeProcessor() { } @Override public boolean wantsToShowProgress() { // we'll not request progress indicator for psi updates return false; } // TODO look with what locks is it called @Override public void update(ProgressMonitor monitor) { monitor.start("PSI update", changeData.size() + 1); try { for (Entry<Project, PsiChangeData> e : changeData.entrySet()) { final Project project = e.getKey(); final PsiChangeData change = e.getValue(); // we do update asynchronously, so we want to check if project is live yet if (project.isDisposed()) { continue; } project.getComponent(PsiChangesWatcher.class).notifyListeners(change); monitor.advance(1); } } finally { // clean-up changeData = new HashMap<>(); } monitor.done(); } @Override public boolean isEmpty() { for (PsiChangeData data : changeData.values()) { if (data.isNotEmpty()) { return false; } } return true; } // The following methods are called by PsiChangesWatcher when it receives a PSI event // We're not PsiTreeChangeAdapter ourselves for a reason: // we're a ReloadParticipant => we can be instantiated by ReloadManager itself and there's only // one instance of us per application, whereas psi listeners exist per project (as well as PsiManager) // todo filter out changes not related to stub structure /*package*/ void childAdded(final PsiTreeChangeEvent event) { if (!filter(event.getChild())) return; PsiChangeData data = projectData(event.getChild()); PsiElement elem = event.getChild(); if (elem instanceof PsiFileSystemItem) { data.created.add((PsiFileSystemItem) elem); } else { data.changed.add(elem.getContainingFile()); } } /*package*/ void childRemoved(PsiTreeChangeEvent event) { if (!(event.getChild() instanceof PsiFileSystemItem) && !filter(event.getParent())) { // can't use getChild() here as it's not valid any longer return; } // so, if fs item or passed filtering then proceed PsiChangeData data = projectData(event.getParent()); PsiElement elem = event.getChild(); if (elem instanceof PsiFileSystemItem) { data.removed.add((PsiFileSystemItem) elem); } else { // todo fix is parent is a file itself data.changed.add(event.getParent().getContainingFile()); } } /*package*/ void childReplaced(PsiTreeChangeEvent event) { // if both are uninteresting, only then ignore if (!filter(event.getOldChild()) && !filter(event.getNewChild())) return; PsiChangeData data = projectData(event.getNewChild()); // todo Q: should we check if it's PsiFile? data.changed.add(event.getNewChild().getContainingFile()); } /*package*/ void childrenChanged(PsiTreeChangeEvent event) { if (!filter(event.getParent())) return; if (event.getParent() instanceof PsiFile) { // it's some generic notification, we don't need it // (don't remember already what that means) return; } PsiChangeData data = projectData(event.getParent()); data.changed.add(event.getParent().getContainingFile()); } /*package*/ void childMoved(@NotNull PsiTreeChangeEvent event) { if (!filter(event.getChild())) return; PsiChangeData data = projectData(event.getChild()); PsiElement elem = event.getChild(); if (elem instanceof PsiFileSystemItem) { // file item; data.moved.add(new FSMove((PsiFileSystemItem) elem, (PsiFileSystemItem) event.getOldParent(), (PsiFileSystemItem) event.getNewParent())); } else { // todo what if old/new parent is PsiFileSystemItem ? data.changed.add(event.getOldParent().getContainingFile()); data.changed.add(event.getNewParent().getContainingFile()); } } /*package*/ void propertyChanged(@NotNull PsiTreeChangeEvent event) { if (!(event.getElement() instanceof PsiFileSystemItem && (PsiTreeChangeEvent.PROP_FILE_NAME.equals(event.getPropertyName()) || PsiTreeChangeEvent.PROP_DIRECTORY_NAME.equals(event.getPropertyName()))) ) { return; } PsiChangeData data = projectData(event.getElement()); FSRename rename = new FSRename((PsiFileSystemItem) event.getElement(), (String) event.getOldValue()); data.renamed.add(rename); } private PsiChangeData projectData(PsiElement subject) { Project project = subject.getProject(); PsiChangeData data = changeData.get(project); if (data == null) { data = new PsiChangeData(); changeData.put(project, data); } return data; } private boolean filter(PsiElement elem) { if (elem == null || elem instanceof PsiWhiteSpace) { return false; } if (elem instanceof PsiJavaFile || elem instanceof PsiDirectory) { return true; } PsiElement e = elem; do { if (interesting(e)) { return true; } if (notInteresting(e)) { return false; } e = e.getParent(); } while (e != null); return false; } private boolean interesting(PsiElement elem) { if (elem instanceof PsiClass || elem instanceof PsiMethod || elem instanceof PsiField || elem instanceof PsiParameterList || elem instanceof PsiParameter || elem instanceof PsiReferenceList // but not PsiReference ! || elem instanceof PsiModifierList || elem instanceof PsiModifier || elem instanceof PsiTypeParameterList || elem instanceof PsiTypeParameter) { return true; } return false; } private boolean notInteresting(PsiElement elem) { return elem instanceof PsiCodeBlock || elem instanceof PsiExpression; } } class PsiChangeData implements PsiEvent { Set<PsiFileSystemItem> created = new HashSet<PsiFileSystemItem>(); Set<PsiFileSystemItem> removed = new HashSet<PsiFileSystemItem>(); Set<FSMove> moved = new HashSet<FSMove>(); Set<FSRename> renamed = new HashSet<FSRename>(); Set<PsiFile> changed = new HashSet<PsiFile>(); @Override public Iterable<PsiFileSystemItem> getCreated() { return created; } @Override public Iterable<PsiFileSystemItem> getRemoved() { return removed; } @Override public Iterable<FSMove> getMoved() { return moved; } @Override public Iterable<FSRename> getRenamed() { return renamed; } @Override public Set<PsiFile> getChanged() { return changed; } boolean isNotEmpty() { return !(changed.isEmpty() && created.isEmpty() && renamed.isEmpty() && moved.isEmpty() && removed.isEmpty()); } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You 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. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.camel</groupId> <artifactId>components</artifactId> <version>3.6.0-SNAPSHOT</version> </parent> <artifactId>camel-lucene</artifactId> <packaging>jar</packaging> <name>Camel :: Lucene</name> <description>Camel Lucene based search component</description> <properties> <camel.osgi.import.additional> org.apache.lucene.*;version="${lucene-version-range}" </camel.osgi.import.additional> </properties> <dependencies> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-support</artifactId> </dependency> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-core</artifactId> <version>${lucene-version}</version> </dependency> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-queryparser</artifactId> <version>${lucene-version}</version> </dependency> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-analyzers-common</artifactId> <version>${lucene-version}</version> </dependency> <!-- test dependencies --> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-test-junit5</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>${basedir}/res</directory> </fileset> </filesets> </configuration> </plugin> </plugins> </build> </project>
{ "pile_set_name": "Github" }
// Copyright 2019 The MediaPipe 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. #include "mediapipe/gpu/gl_context.h" #include <sys/types.h> #include <cmath> #include <memory> #include <string> #include <utility> #include "absl/base/dynamic_annotations.h" #include "absl/memory/memory.h" #include "absl/synchronization/mutex.h" #include "mediapipe/framework/port/logging.h" #include "mediapipe/framework/port/ret_check.h" #include "mediapipe/framework/port/status.h" #include "mediapipe/framework/port/status_builder.h" #include "mediapipe/gpu/gl_context_internal.h" #ifndef __EMSCRIPTEN__ #include "absl/debugging/leak_check.h" #include "mediapipe/gpu/gl_thread_collector.h" #endif #ifndef GL_MAJOR_VERSION #define GL_MAJOR_VERSION 0x821B #endif #ifndef GL_MINOR_VERSION #define GL_MINOR_VERSION 0x821C #endif namespace mediapipe { static void SetThreadName(const char* name) { #if defined(__GLIBC_PREREQ) #define LINUX_STYLE_SETNAME_NP __GLIBC_PREREQ(2, 12) #elif defined(__BIONIC__) #define LINUX_STYLE_SETNAME_NP 1 #endif // __GLIBC_PREREQ #if LINUX_STYLE_SETNAME_NP char thread_name[16]; // Linux requires names (with nul) fit in 16 chars strncpy(thread_name, name, sizeof(thread_name)); thread_name[sizeof(thread_name) - 1] = '\0'; int res = pthread_setname_np(pthread_self(), thread_name); if (res != 0) { LOG_FIRST_N(INFO, 1) << "Can't set pthread names: name: \"" << name << "\"; error: " << res; } #elif __APPLE__ pthread_setname_np(name); #endif ANNOTATE_THREAD_NAME(name); } GlContext::DedicatedThread::DedicatedThread() { CHECK_EQ(pthread_create(&gl_thread_id_, nullptr, ThreadBody, this), 0); } GlContext::DedicatedThread::~DedicatedThread() { if (IsCurrentThread()) { CHECK(self_destruct_); CHECK_EQ(pthread_detach(gl_thread_id_), 0); } else { // Give an invalid job to signal termination. PutJob({}); CHECK_EQ(pthread_join(gl_thread_id_, nullptr), 0); } } void GlContext::DedicatedThread::SelfDestruct() { self_destruct_ = true; // Give an invalid job to signal termination. PutJob({}); } GlContext::DedicatedThread::Job GlContext::DedicatedThread::GetJob() { absl::MutexLock lock(&mutex_); while (jobs_.empty()) { has_jobs_cv_.Wait(&mutex_); } Job job = std::move(jobs_.front()); jobs_.pop_front(); return job; } void GlContext::DedicatedThread::PutJob(Job job) { absl::MutexLock lock(&mutex_); jobs_.push_back(std::move(job)); has_jobs_cv_.SignalAll(); } void* GlContext::DedicatedThread::ThreadBody(void* instance) { DedicatedThread* thread = static_cast<DedicatedThread*>(instance); thread->ThreadBody(); return nullptr; } #ifdef __APPLE__ #define AUTORELEASEPOOL @autoreleasepool #else #define AUTORELEASEPOOL #endif // __APPLE__ void GlContext::DedicatedThread::ThreadBody() { SetThreadName("mediapipe_gl_runner"); #ifndef __EMSCRIPTEN__ GlThreadCollector::ThreadStarting(); #endif // The dedicated GL thread is not meant to be used on Apple platforms, but // in case it is, the use of an autorelease pool here will reap each task's // temporary allocations. while (true) AUTORELEASEPOOL { Job job = GetJob(); // Lack of a job means termination. Or vice versa. if (!job) { break; } job(); } if (self_destruct_) { delete this; } #ifndef __EMSCRIPTEN__ GlThreadCollector::ThreadEnding(); #endif } ::mediapipe::Status GlContext::DedicatedThread::Run(GlStatusFunction gl_func) { // Neither ENDO_SCOPE nor ENDO_TASK seem to work here. if (IsCurrentThread()) { return gl_func(); } bool done = false; // Guarded by mutex_ after initialization. ::mediapipe::Status status; PutJob([this, gl_func, &done, &status]() { status = gl_func(); absl::MutexLock lock(&mutex_); done = true; gl_job_done_cv_.SignalAll(); }); absl::MutexLock lock(&mutex_); while (!done) { gl_job_done_cv_.Wait(&mutex_); } return status; } void GlContext::DedicatedThread::RunWithoutWaiting(GlVoidFunction gl_func) { // Note: this is invoked by GlContextExecutor. To avoid starvation of // non-calculator tasks in the presence of GL source calculators, calculator // tasks must always be scheduled as new tasks, or another solution needs to // be set up to avoid starvation. See b/78522434. CHECK(gl_func); PutJob(std::move(gl_func)); } bool GlContext::DedicatedThread::IsCurrentThread() { return pthread_equal(gl_thread_id_, pthread_self()); } bool GlContext::ParseGlVersion(absl::string_view version_string, GLint* major, GLint* minor) { size_t pos = version_string.find('.'); if (pos == absl::string_view::npos || pos < 1) { return false; } // GL_VERSION is supposed to start with the version number; see, e.g., // https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetString.xhtml // https://www.khronos.org/opengl/wiki/OpenGL_Context#OpenGL_version_number // However, in rare cases one will encounter non-conforming configurations // that have some prefix before the number. To deal with that, we walk // backwards from the dot. size_t start = pos - 1; while (start > 0 && isdigit(version_string[start - 1])) --start; if (!absl::SimpleAtoi(version_string.substr(start, (pos - start)), major)) { return false; } auto rest = version_string.substr(pos + 1); pos = rest.find(' '); size_t pos2 = rest.find('.'); if (pos == absl::string_view::npos || (pos2 != absl::string_view::npos && pos2 < pos)) { pos = pos2; } if (!absl::SimpleAtoi(rest.substr(0, pos), minor)) { return false; } return true; } bool GlContext::HasGlExtension(absl::string_view extension) const { return gl_extensions_.find(extension) != gl_extensions_.end(); } // Function for GL3.0+ to query for and store all of our available GL extensions // in an easily-accessible set. The glGetString call is actually *not* required // to work with GL_EXTENSIONS for newer GL versions, so we must maintain both // variations of this function. ::mediapipe::Status GlContext::GetGlExtensions() { gl_extensions_.clear(); // glGetStringi only introduced in GL 3.0+; so we exit out this function if // we don't have that function defined, regardless of version number reported. // The function itself is also fully stubbed out if we're linking against an // API version without a glGetStringi declaration. Although Emscripten // sometimes provides this function, its default library implementation // appears to only provide glGetString, so we skip this for Emscripten // platforms to avoid possible undefined symbol or runtime errors. #if (GL_VERSION_3_0 || GL_ES_VERSION_3_0) && !defined(__EMSCRIPTEN__) if (!SymbolAvailable(&glGetStringi)) { LOG(ERROR) << "GL major version > 3.0 indicated, but glGetStringi not " << "defined. Falling back to deprecated GL extensions querying " << "method."; return ::mediapipe::InternalError("glGetStringi not defined, but queried"); } int num_extensions = 0; glGetIntegerv(GL_NUM_EXTENSIONS, &num_extensions); if (glGetError() != 0) { return ::mediapipe::InternalError( "Error querying for number of extensions"); } for (int i = 0; i < num_extensions; ++i) { const GLubyte* res = glGetStringi(GL_EXTENSIONS, i); if (glGetError() != 0 || res == nullptr) { return ::mediapipe::InternalError( "Error querying for an extension by index"); } const char* signed_res = reinterpret_cast<const char*>(res); gl_extensions_.insert(signed_res); } return ::mediapipe::OkStatus(); #else return ::mediapipe::InternalError("GL version mismatch in GlGetExtensions"); #endif // (GL_VERSION_3_0 || GL_ES_VERSION_3_0) && !defined(__EMSCRIPTEN__) } // Same as GetGlExtensions() above, but for pre-GL3.0, where glGetStringi did // not exist. ::mediapipe::Status GlContext::GetGlExtensionsCompat() { gl_extensions_.clear(); const GLubyte* res = glGetString(GL_EXTENSIONS); if (glGetError() != 0 || res == nullptr) { LOG(ERROR) << "Error querying for GL extensions"; return ::mediapipe::InternalError("Error querying for GL extensions"); } const char* signed_res = reinterpret_cast<const char*>(res); gl_extensions_ = absl::StrSplit(signed_res, ' '); return ::mediapipe::OkStatus(); } ::mediapipe::Status GlContext::FinishInitialization(bool create_thread) { if (create_thread) { thread_ = absl::make_unique<GlContext::DedicatedThread>(); MP_RETURN_IF_ERROR(thread_->Run([this] { return EnterContext(nullptr); })); } return Run([this]() -> ::mediapipe::Status { // Clear any GL errors at this point: as this is a fresh context // there shouldn't be any, but if we adopted an existing context (e.g. in // some Emscripten cases), there might be some existing tripped error. ForceClearExistingGlErrors(); absl::string_view version_string( reinterpret_cast<const char*>(glGetString(GL_VERSION))); // We will decide later whether we want to use the version numbers we query // for, or instead derive that information from the context creation result, // which we cache here. GLint gl_major_version_from_context_creation = gl_major_version_; // Let's try getting the numeric version if possible. glGetIntegerv(GL_MAJOR_VERSION, &gl_major_version_); GLenum err = glGetError(); if (err == GL_NO_ERROR) { glGetIntegerv(GL_MINOR_VERSION, &gl_minor_version_); } else { // GL_MAJOR_VERSION is not supported on GL versions below 3. We have to // parse the version std::string. if (!ParseGlVersion(version_string, &gl_major_version_, &gl_minor_version_)) { LOG(WARNING) << "invalid GL_VERSION format: '" << version_string << "'; assuming 2.0"; gl_major_version_ = 2; gl_minor_version_ = 0; } } // If our platform-specific CreateContext already set a major GL version, // then we use that. Otherwise, we use the queried-for result. We do this // as a workaround for a Swiftshader on Android bug where the ES2 context // can report major version 3 instead of 2 when queried. Therefore we trust // the result from context creation more than from query. See b/152519932 // for more details. if (gl_major_version_from_context_creation > 0 && gl_major_version_ != gl_major_version_from_context_creation) { LOG(WARNING) << "Requested a context with major GL version " << gl_major_version_from_context_creation << " but context reports major version " << gl_major_version_ << ". Setting to " << gl_major_version_from_context_creation << ".0"; gl_major_version_ = gl_major_version_from_context_creation; gl_minor_version_ = 0; } LOG(INFO) << "GL version: " << gl_major_version_ << "." << gl_minor_version_ << " (" << glGetString(GL_VERSION) << ")"; if (gl_major_version_ >= 3) { auto status = GetGlExtensions(); if (status.ok()) { return ::mediapipe::OkStatus(); } } return GetGlExtensionsCompat(); }); } GlContext::GlContext() {} GlContext::~GlContext() { // Note: on Apple platforms, this object contains Objective-C objects. // The destructor will release them, but ARC must be on. #ifdef __OBJC__ #if !__has_feature(objc_arc) #error This file must be built with ARC. #endif #endif // __OBJC__ if (thread_) { auto status = thread_->Run([this] { if (profiling_helper_) { profiling_helper_->LogAllTimestamps(); } return ExitContext(nullptr); }); LOG_IF(ERROR, !status.ok()) << "Failed to deactivate context on thread: " << status; if (thread_->IsCurrentThread()) { thread_.release()->SelfDestruct(); } } DestroyContext(); } void GlContext::SetProfilingContext( std::shared_ptr<mediapipe::ProfilingContext> profiling_context) { // Create the GlProfilingHelper if it is uninitialized. if (!profiling_helper_ && profiling_context) { profiling_helper_ = profiling_context->CreateGlProfilingHelper(); } } ::mediapipe::Status GlContext::SwitchContextAndRun(GlStatusFunction gl_func) { ContextBinding saved_context; MP_RETURN_IF_ERROR(EnterContext(&saved_context)) << " (entering GL context)"; auto status = gl_func(); LogUncheckedGlErrors(CheckForGlErrors()); MP_RETURN_IF_ERROR(ExitContext(&saved_context)) << " (exiting GL context)"; return status; } ::mediapipe::Status GlContext::Run(GlStatusFunction gl_func, int node_id, Timestamp input_timestamp) { ::mediapipe::Status status; if (profiling_helper_) { gl_func = [=] { profiling_helper_->MarkTimestamp(node_id, input_timestamp, /*is_finish=*/false); auto status = gl_func(); profiling_helper_->MarkTimestamp(node_id, input_timestamp, /*is_finish=*/true); return status; }; } if (thread_) { bool had_gl_errors = false; status = thread_->Run([this, gl_func, &had_gl_errors] { auto status = gl_func(); had_gl_errors = CheckForGlErrors(); return status; }); LogUncheckedGlErrors(had_gl_errors); } else { status = SwitchContextAndRun(gl_func); } return status; } void GlContext::RunWithoutWaiting(GlVoidFunction gl_func) { if (thread_) { // Add ref to keep the context alive while the task is executing. auto context = shared_from_this(); thread_->RunWithoutWaiting([this, context, gl_func] { gl_func(); LogUncheckedGlErrors(CheckForGlErrors()); }); } else { // TODO: queue up task instead. auto status = SwitchContextAndRun([gl_func] { gl_func(); return ::mediapipe::OkStatus(); }); if (!status.ok()) { LOG(ERROR) << "Error in RunWithoutWaiting: " << status; } } } std::weak_ptr<GlContext>& GlContext::CurrentContext() { // Workaround for b/67878799. #ifndef __EMSCRIPTEN__ absl::LeakCheckDisabler disable_leak_check; #endif ABSL_CONST_INIT thread_local std::weak_ptr<GlContext> current_context; return current_context; } ::mediapipe::Status GlContext::SwitchContext(ContextBinding* saved_context, const ContextBinding& new_context) ABSL_NO_THREAD_SAFETY_ANALYSIS { std::shared_ptr<GlContext> old_context_obj = CurrentContext().lock(); std::shared_ptr<GlContext> new_context_obj = new_context.context_object.lock(); if (saved_context) { saved_context->context_object = old_context_obj; GetCurrentContextBinding(saved_context); } // Check that the context object is consistent with the native context. if (old_context_obj && saved_context) { DCHECK(old_context_obj->context_ == saved_context->context); } if (new_context_obj) { DCHECK(new_context_obj->context_ == new_context.context); } if (new_context_obj && (old_context_obj == new_context_obj)) { return ::mediapipe::OkStatus(); } if (old_context_obj) { // 1. Even if we cannot restore the new context, we want to get out of the // old one (we may be deliberately trying to exit it). // 2. We need to unset the old context before we unlock the old mutex, // Therefore, we first unset the old one before setting the new one. MP_RETURN_IF_ERROR(SetCurrentContextBinding({})); old_context_obj->context_use_mutex_.Unlock(); CurrentContext().reset(); } if (new_context_obj) { new_context_obj->context_use_mutex_.Lock(); auto status = SetCurrentContextBinding(new_context); if (status.ok()) { CurrentContext() = new_context_obj; } else { new_context_obj->context_use_mutex_.Unlock(); } return status; } else { return SetCurrentContextBinding(new_context); } } ::mediapipe::Status GlContext::EnterContext(ContextBinding* saved_context) { DCHECK(HasContext()); return SwitchContext(saved_context, ThisContextBinding()); } ::mediapipe::Status GlContext::ExitContext( const ContextBinding* saved_context) { ContextBinding no_context; if (!saved_context) { saved_context = &no_context; } return SwitchContext(nullptr, *saved_context); } std::shared_ptr<GlContext> GlContext::GetCurrent() { return CurrentContext().lock(); } void GlContext::GlFinishCalled() { absl::MutexLock lock(&mutex_); ++gl_finish_count_; wait_for_gl_finish_cv_.SignalAll(); } class GlFinishSyncPoint : public GlSyncPoint { public: explicit GlFinishSyncPoint(const std::shared_ptr<GlContext>& gl_context) : GlSyncPoint(gl_context), gl_finish_count_(gl_context_->gl_finish_count()) {} void Wait() override { gl_context_->WaitForGlFinishCountPast(gl_finish_count_); } bool IsReady() override { return gl_context_->gl_finish_count() > gl_finish_count_; } private: // Number of glFinish calls done before the creation of this token. int64_t gl_finish_count_ = -1; }; class GlFenceSyncPoint : public GlSyncPoint { public: explicit GlFenceSyncPoint(const std::shared_ptr<GlContext>& gl_context) : GlSyncPoint(gl_context) { gl_context_->Run([this] { sync_ = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); glFlush(); }); } ~GlFenceSyncPoint() { if (sync_) { GLsync sync = sync_; gl_context_->RunWithoutWaiting([sync] { glDeleteSync(sync); }); } } GlFenceSyncPoint(const GlFenceSyncPoint&) = delete; GlFenceSyncPoint& operator=(const GlFenceSyncPoint&) = delete; void Wait() override { if (!sync_) return; gl_context_->Run([this] { GLenum result = glClientWaitSync(sync_, 0, std::numeric_limits<uint64_t>::max()); if (result == GL_ALREADY_SIGNALED || result == GL_CONDITION_SATISFIED) { glDeleteSync(sync_); sync_ = nullptr; } // TODO: do something if the wait fails? }); } void WaitOnGpu() override { if (!sync_) return; // TODO: do not wait if we are already on the same context? glWaitSync(sync_, 0, GL_TIMEOUT_IGNORED); } bool IsReady() override { if (!sync_) return true; bool ready = false; // TODO: we should not block on the original context if possible. gl_context_->Run([this, &ready] { GLenum result = glClientWaitSync(sync_, 0, 0); if (result == GL_ALREADY_SIGNALED || result == GL_CONDITION_SATISFIED) { glDeleteSync(sync_); sync_ = nullptr; ready = true; } }); return ready; } private: GLsync sync_; }; void GlMultiSyncPoint::Add(std::shared_ptr<GlSyncPoint> new_sync) { for (auto& sync : syncs_) { if (sync->GetContext() == new_sync->GetContext()) { sync = std::move(new_sync); return; } } syncs_.emplace_back(std::move(new_sync)); } void GlMultiSyncPoint::Wait() { for (auto& sync : syncs_) { sync->Wait(); } // At this point all the syncs have been reached, so clear them out. syncs_.clear(); } void GlMultiSyncPoint::WaitOnGpu() { for (auto& sync : syncs_) { sync->WaitOnGpu(); } // TODO: when do we clear out these syncs? } bool GlMultiSyncPoint::IsReady() { syncs_.erase( std::remove_if(syncs_.begin(), syncs_.end(), std::bind(&GlSyncPoint::IsReady, std::placeholders::_1)), syncs_.end()); return syncs_.empty(); } // Set this to 1 to disable syncing. This can be used to verify that a test // correctly detects sync issues. #define MEDIAPIPE_DISABLE_GL_SYNC_FOR_DEBUG 0 #if MEDIAPIPE_DISABLE_GL_SYNC_FOR_DEBUG class GlNopSyncPoint : public GlSyncPoint { public: explicit GlNopSyncPoint(const std::shared_ptr<GlContext>& gl_context) : GlSyncPoint(gl_context) {} void Wait() override {} bool IsReady() override { return true; } }; #endif std::shared_ptr<GlSyncPoint> GlContext::CreateSyncToken() { std::shared_ptr<GlSyncPoint> token; #if MEDIAPIPE_DISABLE_GL_SYNC_FOR_DEBUG token.reset(new GlNopSyncPoint(shared_from_this())); #else #ifdef __EMSCRIPTEN__ // In Emscripten the glWaitSync function is non-null depending on linkopts, // but only works in a WebGL2 context, so fall back to use Finish if it is a // WebGL1/ES2 context. // TODO: apply this more generally once b/152794517 is fixed. bool useFenceSync = gl_major_version() > 2; #else bool useFenceSync = SymbolAvailable(&glWaitSync); #endif // __EMSCRIPTEN__ if (useFenceSync) { token.reset(new GlFenceSyncPoint(shared_from_this())); } else { token.reset(new GlFinishSyncPoint(shared_from_this())); } #endif return token; } std::shared_ptr<GlSyncPoint> GlContext::TestOnly_CreateSpecificSyncToken( SyncTokenTypeForTest type) { std::shared_ptr<GlSyncPoint> token; switch (type) { case SyncTokenTypeForTest::kGlFinish: token.reset(new GlFinishSyncPoint(shared_from_this())); return token; } return nullptr; } // Atomically set var to the greater of its current value or target. template <typename T> static void assign_larger_value(std::atomic<T>* var, T target) { T current = var->load(); while (current < target && !var->compare_exchange_weak(current, target)) { } } // Note: this can get called from an arbitrary thread which is dealing with a // GlFinishSyncPoint originating from this context. void GlContext::WaitForGlFinishCountPast(int64_t count_to_pass) { if (gl_finish_count_ > count_to_pass) return; // If we've been asked to do a glFinish, note the count we need to reach and // signal the context our thread may currently be blocked on. { absl::MutexLock lock(&mutex_); assign_larger_value(&gl_finish_count_target_, count_to_pass + 1); wait_for_gl_finish_cv_.SignalAll(); if (context_waiting_on_) { context_waiting_on_->wait_for_gl_finish_cv_.SignalAll(); } } auto finish_task = [this, count_to_pass]() { // When a GlFinishSyncToken is created it takes the current finish count // from the GlContext, and we must wait for gl_finish_count_ to pass it. // Therefore, we need to do at most one more glFinish call. This DCHECK // is used for documentation and sanity-checking purposes. DCHECK(gl_finish_count_ >= count_to_pass); if (gl_finish_count_ == count_to_pass) { glFinish(); GlFinishCalled(); } }; if (IsCurrent()) { // If we are already on the current context, we cannot call // RunWithoutWaiting, since that task will not run until this function // returns. Instead, call it directly. finish_task(); return; } std::shared_ptr<GlContext> other = GetCurrent(); if (other) { // If another context is current, make a note that it is blocked on us, so // it can signal the right condition variable if it is asked to do a // glFinish. absl::MutexLock other_lock(&other->mutex_); DCHECK(!other->context_waiting_on_); other->context_waiting_on_ = this; } // We do not schedule this action using Run because we don't necessarily // want to wait for it to complete. If another job calls GlFinishCalled // sooner, we are done. RunWithoutWaiting(std::move(finish_task)); { absl::MutexLock lock(&mutex_); while (gl_finish_count_ <= count_to_pass) { if (other && other->gl_finish_count_ < other->gl_finish_count_target_) { // If another context's dedicated thread is current, it is blocked // waiting for this context to issue a glFinish call. But this context // may also block waiting for the other context to do the same: this can // happen when two contexts are handling each other's GlFinishSyncPoints // (e.g. a producer and a consumer). To avoid a deadlock a context that // is waiting on another context must still service Wait calls it may // receive from its own GlFinishSyncPoints. // // We unlock this context's mutex to avoid holding both at the same // time. mutex_.Unlock(); { glFinish(); other->GlFinishCalled(); } mutex_.Lock(); // Because we temporarily unlocked mutex_, we cannot wait on the // condition variable wait away; we need to go back to re-checking the // condition. Otherwise we might miss a signal. continue; } wait_for_gl_finish_cv_.Wait(&mutex_); } } if (other) { // The other context is no longer waiting on us. absl::MutexLock other_lock(&other->mutex_); other->context_waiting_on_ = nullptr; } } void GlContext::WaitSyncToken(const std::shared_ptr<GlSyncPoint>& token) { CHECK(token); token->Wait(); } bool GlContext::SyncTokenIsReady(const std::shared_ptr<GlSyncPoint>& token) { CHECK(token); return token->IsReady(); } void GlContext::ForceClearExistingGlErrors() { LogUncheckedGlErrors(CheckForGlErrors(/*force=*/true)); } bool GlContext::CheckForGlErrors() { return CheckForGlErrors(false); } bool GlContext::CheckForGlErrors(bool force) { #if UNSAFE_EMSCRIPTEN_SKIP_GL_ERROR_HANDLING if (!force) { LOG_FIRST_N(WARNING, 1) << "MediaPipe OpenGL error checking is disabled"; return false; } #endif if (!HasContext()) return false; GLenum error; bool had_error = false; while ((error = glGetError()) != GL_NO_ERROR) { had_error = true; switch (error) { case GL_INVALID_ENUM: LOG(INFO) << "Found unchecked GL error: GL_INVALID_ENUM"; break; case GL_INVALID_VALUE: LOG(INFO) << "Found unchecked GL error: GL_INVALID_VALUE"; break; case GL_INVALID_OPERATION: LOG(INFO) << "Found unchecked GL error: GL_INVALID_OPERATION"; break; case GL_INVALID_FRAMEBUFFER_OPERATION: LOG(INFO) << "Found unchecked GL error: GL_INVALID_FRAMEBUFFER_OPERATION"; break; case GL_OUT_OF_MEMORY: LOG(INFO) << "Found unchecked GL error: GL_OUT_OF_MEMORY"; break; default: LOG(INFO) << "Found unchecked GL error: UNKNOWN ERROR"; break; } } return had_error; } void GlContext::LogUncheckedGlErrors(bool had_gl_errors) { if (had_gl_errors) { // TODO: ideally we would print a backtrace here, or at least // the name of the current calculator, to make it easier to find the // culprit. In practice, getting a backtrace from Android without crashing // is nearly impossible, so screw it. Just change this to LOG(FATAL) when // you want to debug. LOG(WARNING) << "Ignoring unchecked GL error."; } } } // namespace mediapipe
{ "pile_set_name": "Github" }
/* * JBoss, Home of Professional Open Source * Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * 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. */ package org.jboss.as.quickstarts.loggingToolsQS.loggers; import org.jboss.logging.BasicLogger; import org.jboss.logging.Logger; import org.jboss.logging.Logger.Level; import org.jboss.logging.annotations.Cause; import org.jboss.logging.annotations.LogMessage; import org.jboss.logging.annotations.Message; import org.jboss.logging.annotations.MessageLogger; @MessageLogger(projectCode = "GTRDATES") public interface DateLogger extends BasicLogger { DateLogger LOGGER = Logger.getMessageLogger(DateLogger.class, DateLogger.class.getPackage().getName()); @LogMessage(level = Level.ERROR) @Message(id = 3, value = "Invalid date passed as string: %s") void logStringCouldntParseAsDate(String dateString, @Cause Throwable exception); @LogMessage @Message(id = 4, value = "Requested number of days until '%s'") void logDaysUntilRequest(String dateString); }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?><!-- ~ Copyright 2019 Google LLC ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ https://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <layout xmlns:android="http://schemas.android.com/apk/res/android"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/questions" android:layout_width="match_parent" android:layout_height="match_parent" /> </layout>
{ "pile_set_name": "Github" }
.. _multigraph: ================================================================= MultiGraph---Undirected graphs with self loops and parallel edges ================================================================= Overview ======== .. currentmodule:: networkx .. autoclass:: MultiGraph Methods ======= Adding and removing nodes and edges ----------------------------------- .. autosummary:: :toctree: generated/ MultiGraph.__init__ MultiGraph.add_node MultiGraph.add_nodes_from MultiGraph.remove_node MultiGraph.remove_nodes_from MultiGraph.add_edge MultiGraph.add_edges_from MultiGraph.add_weighted_edges_from MultiGraph.new_edge_key MultiGraph.remove_edge MultiGraph.remove_edges_from MultiGraph.update MultiGraph.clear MultiGraph.clear_edges Reporting nodes edges and neighbors ----------------------------------- .. autosummary:: :toctree: generated/ MultiGraph.nodes MultiGraph.__iter__ MultiGraph.has_node MultiGraph.__contains__ MultiGraph.edges MultiGraph.has_edge MultiGraph.get_edge_data MultiGraph.neighbors MultiGraph.adj MultiGraph.__getitem__ MultiGraph.adjacency MultiGraph.nbunch_iter Counting nodes edges and neighbors ---------------------------------- .. autosummary:: :toctree: generated/ MultiGraph.order MultiGraph.number_of_nodes MultiGraph.__len__ MultiGraph.degree MultiGraph.size MultiGraph.number_of_edges Making copies and subgraphs --------------------------- .. autosummary:: :toctree: generated/ MultiGraph.copy MultiGraph.to_undirected MultiGraph.to_directed MultiGraph.subgraph MultiGraph.edge_subgraph
{ "pile_set_name": "Github" }
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ package com.microsoft.graph.models.generated; /** * The Enum Signin Frequency Type. */ public enum SigninFrequencyType { /** * days */ DAYS, /** * hours */ HOURS, /** * For SigninFrequencyType values that were not expected from the service */ UNEXPECTED_VALUE }
{ "pile_set_name": "Github" }
/* * Copyright (C) 2016 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in 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. */ package io.syndesis.server.api.generator; import io.syndesis.common.model.api.APISummary; import io.syndesis.common.model.connection.ConfigurationProperty; import io.syndesis.common.model.connection.Connector; import io.syndesis.common.model.connection.ConnectorGroup; import io.syndesis.common.model.connection.ConnectorSettings; import io.syndesis.common.model.connection.ConnectorTemplate; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class ConnectorGeneratorTest { private final ConnectorGenerator generator = new ConnectorGenerator(new Connector.Builder() .addTags("from-connector") .build()) { @Override public Connector generate(final ConnectorTemplate connectorTemplate, final ConnectorSettings connectorSettings) { return null; } @Override public APISummary info(final ConnectorTemplate connectorTemplate, final ConnectorSettings connectorSettings) { return null; } @Override protected String determineConnectorDescription(final ConnectorTemplate connectorTemplate, final ConnectorSettings connectorSettings) { return "test-description"; } @Override protected String determineConnectorName(final ConnectorTemplate connectorTemplate, final ConnectorSettings connectorSettings) { return "test-name"; } }; private final ConnectorTemplate template = new ConnectorTemplate.Builder() .id("template-id") .connectorGroup(new ConnectorGroup.Builder().id("template-group").build()) .putProperty("property1", new ConfigurationProperty.Builder().build()) .putProperty("property2", new ConfigurationProperty.Builder().build()) .build(); @Test public void shouldCreateBaseConnectors() { final ConnectorSettings settings = new ConnectorSettings.Builder().putConfiguredProperty("property2", "value2").build(); final Connector connector = generator.baseConnectorFrom(template, settings); assertThat(connector).isEqualToIgnoringGivenFields( new Connector.Builder() .name("test-name") .description("test-description") .addTags("from-connector") .connectorGroup(template.getConnectorGroup()) .connectorGroupId("template-group") .properties(template.getConnectorProperties()) .putConfiguredProperty("property2", "value2") .build(), "id", "icon"); assertThat(connector.getIcon()).isEqualTo("data:image/svg+xml,dummy"); } @Test public void shouldCreateBaseConnectorsWithGivenNameAndDescription() { final ConnectorSettings settings = new ConnectorSettings.Builder().name("given-name").description("given-description") .putConfiguredProperty("property2", "value2").build(); final Connector connector = generator.baseConnectorFrom(template, settings); assertThat(connector).isEqualToIgnoringGivenFields( new Connector.Builder() .name("given-name") .description("given-description") .addTags("from-connector") .connectorGroup(template.getConnectorGroup()) .connectorGroupId("template-group") .properties(template.getConnectorProperties()) .putConfiguredProperty("property2", "value2").build(), "id", "icon"); assertThat(connector.getIcon()).isEqualTo("data:image/svg+xml,dummy"); } }
{ "pile_set_name": "Github" }
find $SRC_DIR -type f if [[ ! -f "$SRC_DIR/mypkg/awesomeheader.h" ]]; then exit 1 fi # when a file shadows the parent directory name if [[ ! -f "$SRC_DIR/mypkg/mypkg" ]]; then exit 1 fi echo "found source files OK" exit 0
{ "pile_set_name": "Github" }
/******************************************************************************* * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. * This file 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. * ***************************************************************************** * * AWS Tools for Windows (TM) PowerShell (TM) * */ using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Text; using Amazon.PowerShell.Common; using Amazon.Runtime; using Amazon.GroundStation; using Amazon.GroundStation.Model; namespace Amazon.PowerShell.Cmdlets.GS { /// <summary> /// Returns a mission profile. /// </summary> [Cmdlet("Get", "GSMissionProfile")] [OutputType("Amazon.GroundStation.Model.GetMissionProfileResponse")] [AWSCmdlet("Calls the AWS Ground Station GetMissionProfile API operation.", Operation = new[] {"GetMissionProfile"}, SelectReturnType = typeof(Amazon.GroundStation.Model.GetMissionProfileResponse))] [AWSCmdletOutput("Amazon.GroundStation.Model.GetMissionProfileResponse", "This cmdlet returns an Amazon.GroundStation.Model.GetMissionProfileResponse object containing multiple properties. The object can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack." )] public partial class GetGSMissionProfileCmdlet : AmazonGroundStationClientCmdlet, IExecutor { #region Parameter MissionProfileId /// <summary> /// <para> /// <para>UUID of a mission profile.</para> /// </para> /// </summary> #if !MODULAR [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)] #else [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String MissionProfileId { get; set; } #endregion #region Parameter Select /// <summary> /// Use the -Select parameter to control the cmdlet output. The default value is '*'. /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.GroundStation.Model.GetMissionProfileResponse). /// Specifying the name of a property of type Amazon.GroundStation.Model.GetMissionProfileResponse will result in that property being returned. /// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value. /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public string Select { get; set; } = "*"; #endregion #region Parameter PassThru /// <summary> /// Changes the cmdlet behavior to return the value passed to the MissionProfileId parameter. /// The -PassThru parameter is deprecated, use -Select '^MissionProfileId' instead. This parameter will be removed in a future version. /// </summary> [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^MissionProfileId' instead. This parameter will be removed in a future version.")] [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public SwitchParameter PassThru { get; set; } #endregion protected override void ProcessRecord() { base.ProcessRecord(); var context = new CmdletContext(); // allow for manipulation of parameters prior to loading into context PreExecutionContextLoad(context); #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute if (ParameterWasBound(nameof(this.Select))) { context.Select = CreateSelectDelegate<Amazon.GroundStation.Model.GetMissionProfileResponse, GetGSMissionProfileCmdlet>(Select) ?? throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); if (this.PassThru.IsPresent) { throw new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select)); } } else if (this.PassThru.IsPresent) { context.Select = (response, cmdlet) => this.MissionProfileId; } #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute context.MissionProfileId = this.MissionProfileId; #if MODULAR if (this.MissionProfileId == null && ParameterWasBound(nameof(this.MissionProfileId))) { WriteWarning("You are passing $null as a value for parameter MissionProfileId which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif // allow further manipulation of loaded context prior to processing PostExecutionContextLoad(context); var output = Execute(context) as CmdletOutput; ProcessOutput(output); } #region IExecutor Members public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; // create request var request = new Amazon.GroundStation.Model.GetMissionProfileRequest(); if (cmdletContext.MissionProfileId != null) { request.MissionProfileId = cmdletContext.MissionProfileId; } CmdletOutput output; // issue call var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint); try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; pipelineOutput = cmdletContext.Select(response, this); output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; } catch (Exception e) { output = new CmdletOutput { ErrorResponse = e }; } return output; } public ExecutorContext CreateContext() { return new CmdletContext(); } #endregion #region AWS Service Operation Call private Amazon.GroundStation.Model.GetMissionProfileResponse CallAWSServiceOperation(IAmazonGroundStation client, Amazon.GroundStation.Model.GetMissionProfileRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Ground Station", "GetMissionProfile"); try { #if DESKTOP return client.GetMissionProfile(request); #elif CORECLR return client.GetMissionProfileAsync(request).GetAwaiter().GetResult(); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } } #endregion internal partial class CmdletContext : ExecutorContext { public System.String MissionProfileId { get; set; } public System.Func<Amazon.GroundStation.Model.GetMissionProfileResponse, GetGSMissionProfileCmdlet, object> Select { get; set; } = (response, cmdlet) => response; } } }
{ "pile_set_name": "Github" }
# `lisk account` Commands relating to Lisk accounts. * [`lisk account:create`](#lisk-account-create) * [`lisk account:get ADDRESSES`](#lisk-account-get-addresses) * [`lisk account:show`](#lisk-account-show) ## `lisk account:create` Returns a randomly-generated mnemonic passphrase with its corresponding public/private key pair and Lisk address. ``` USAGE $ lisk account:create OPTIONS -j, --[no-]json Prints output in JSON format. You can change the default behaviour in your config.json file. -n, --number=number [default: 1] Number of accounts to create. --[no-]pretty Prints JSON in pretty format rather than condensed. Has no effect if the output is set to table. You can change the default behaviour in your config.json file. DESCRIPTION Returns a randomly-generated mnemonic passphrase with its corresponding public/private key pair and Lisk address. EXAMPLES account:create account:create --number=3 ``` ## `lisk account:get ADDRESSES` Gets account information from the blockchain. ``` USAGE $ lisk account:get ADDRESSES ARGUMENTS ADDRESSES Comma-separated address(es) to get information about. OPTIONS -j, --[no-]json Prints output in JSON format. You can change the default behaviour in your config.json file. --[no-]pretty Prints JSON in pretty format rather than condensed. Has no effect if the output is set to table. You can change the default behaviour in your config.json file. DESCRIPTION Gets account information from the blockchain. EXAMPLES account:get 3520445367460290306L account:get 3520445367460290306L,2802325248134221536L ``` ## `lisk account:show` Shows account information for a given passphrase. ``` USAGE $ lisk account:show OPTIONS -j, --[no-]json Prints output in JSON format. You can change the default behaviour in your config.json file. -p, --passphrase=passphrase Specifies a source for your secret passphrase. Lisk Commander will prompt you for input if this option is not set. Source must be one of `prompt`, `pass`, `env`, `file` or `stdin`. For `pass`, `env` and `file` a corresponding identifier must also be provided. Examples: - --passphrase=prompt (default behaviour) - --passphrase='pass:my secret passphrase' (should only be used where security is not important) - --passphrase=env:SECRET_PASSPHRASE - --passphrase=file:/path/to/my/passphrase.txt (takes the first line only) - --passphrase=stdin (takes one line only) --[no-]pretty Prints JSON in pretty format rather than condensed. Has no effect if the output is set to table. You can change the default behaviour in your config.json file. DESCRIPTION Shows account information for a given passphrase. EXAMPLE account:show ```
{ "pile_set_name": "Github" }
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html // Generated using tools/cldr/cldr-to-icu/build-icu-data.xml en_NZ{ %%Parent{"en_001"} calendar{ generic{ DateTimePatterns{ "h:mm:ss a zzzz", "h:mm:ss a z", "h:mm:ss a", "h:mm a", "EEEE, d MMMM y G", "d MMMM y G", "d/MM/y G", "d/MM/y GGGGG", "{1}, {0}", "{1} 'at' {0}", "{1} 'at' {0}", "{1}, {0}", "{1}, {0}", } availableFormats{ Md{"d/M"} yyyyMd{"d/MM/y G"} } intervalFormats{ MEd{ M{"E, d/MM – E, d/MM"} d{"E, d/MM – E, d/MM"} } MMMEd{ M{"E, d MMM – E, d MMM"} d{"E, d – E, d MMM"} } Md{ M{"d/MM – d/MM"} d{"d/MM – d/MM"} } yM{ M{"MM/y – MM/y G"} y{"MM/y – MM/y G"} } yMEd{ M{"E, d/MM/y – E, d/MM/y G"} d{"E, d/MM/y – E, d/MM/y G"} y{"E, d/MM/y – E, d/MM/y G"} } yMd{ M{"d/MM/y – d/MM/y G"} d{"d/MM/y – d/MM/y G"} y{"d/MM/y – d/MM/y G"} } } } gregorian{ DateTimePatterns{ "h:mm:ss a zzzz", "h:mm:ss a z", "h:mm:ss a", "h:mm a", "EEEE, d MMMM y", "d MMMM y", "d/MM/y", "d/MM/yy", "{1}, {0}", "{1} 'at' {0}", "{1} 'at' {0}", "{1}, {0}", "{1}, {0}", } availableFormats{ Md{"d/M"} yMd{"d/MM/y"} } intervalFormats{ MEd{ M{"E, d/MM – E, d/MM"} d{"E, d/MM – E, d/MM"} } MMMEd{ M{"E, d MMM – E, d MMM"} d{"E, d – E, d MMM"} } Md{ M{"d/MM – d/MM"} d{"d/MM – d/MM"} } yMEd{ M{"E, d/MM/y – E, d/MM/y"} d{"E, d/MM/y – E, d/MM/y"} y{"E, d/MM/y – E, d/MM/y"} } yMd{ M{"d/MM/y – d/MM/y"} d{"d/MM/y – d/MM/y"} y{"d/MM/y – d/MM/y"} } } } } }
{ "pile_set_name": "Github" }
/* Copyright 2017 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. */ package v1alpha1 import ( "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // PodPreset is a policy resource that defines additional runtime // requirements for a Pod. type PodPreset struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // +optional Spec PodPresetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // PodPresetSpec is a description of a pod preset. type PodPresetSpec struct { // Selector is a label query over a set of resources, in this case pods. // Required. Selector metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,1,opt,name=selector"` // Env defines the collection of EnvVar to inject into containers. // +optional Env []v1.EnvVar `json:"env,omitempty" protobuf:"bytes,2,rep,name=env"` // EnvFrom defines the collection of EnvFromSource to inject into containers. // +optional EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty" protobuf:"bytes,3,rep,name=envFrom"` // Volumes defines the collection of Volume to inject into the pod. // +optional Volumes []v1.Volume `json:"volumes,omitempty" protobuf:"bytes,4,rep,name=volumes"` // VolumeMounts defines the collection of VolumeMount to inject into containers. // +optional VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,5,rep,name=volumeMounts"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // PodPresetList is a list of PodPreset objects. type PodPresetList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of schema objects. Items []PodPreset `json:"items" protobuf:"bytes,2,rep,name=items"` }
{ "pile_set_name": "Github" }
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ /* * Do not modify this file. This file is generated from the ssm-2014-11-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SimpleSystemsManagement.Model { /// <summary> /// The filters to describe or get information about your managed instances. /// </summary> public partial class InstanceInformationStringFilter { private string _key; private List<string> _values = new List<string>(); /// <summary> /// Gets and sets the property Key. /// <para> /// The filter key name to describe your instances. For example: /// </para> /// /// <para> /// "InstanceIds"|"AgentVersion"|"PingStatus"|"PlatformTypes"|"ActivationIds"|"IamRole"|"ResourceType"|"AssociationStatus"|"Tag /// Key" /// </para> /// </summary> [AWSProperty(Required=true, Min=1)] public string Key { get { return this._key; } set { this._key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this._key != null; } /// <summary> /// Gets and sets the property Values. /// <para> /// The filter values. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public List<string> Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }
{ "pile_set_name": "Github" }
import java.io.{File} import scalaxb.compiler.{Config} class UnqualifiedLocalTest extends TestBase { val inFile = new File("integration/src/test/resources/unqualified.xsd") lazy val generated = module.process(inFile, "unqualified", tmp) "unqualified.scala file must compile so that Foo can be used" in { (List("""scalaxb.toXML[unqualified.Foo](scalaxb.fromXML[unqualified.Foo](""" + """<unq:foo xmlns:unq="http://www.example.com/unqualified" attribute1="bar">""" + "<string1></string1>" + """<unq:bar>bar</unq:bar>""" + """</unq:foo>), """ + """Some("http://www.example.com/unqualified"), "foo", """ + """scalaxb.toScope(Some("unq") -> "http://www.example.com/unqualified") ).toString"""), generated) must evaluateTo("""<unq:foo attribute1="bar" xmlns:unq="http://www.example.com/unqualified">""" + "<string1></string1>" + """<unq:bar>bar</unq:bar>""" + "</unq:foo>", outdir = "./tmp") } "unqualified.scala file must compiled with an alternative toXML" in { (List("""scalaxb.toXML[unqualified.Foo](scalaxb.fromXML[unqualified.Foo](""" + """<unq:foo xmlns:unq="http://www.example.com/unqualified" attribute1="bar">""" + "<string1></string1>" + """<unq:bar>bar</unq:bar>""" + """</unq:foo>), """ + """Some("http://www.example.com/unqualified"), Some("foo"), """ + """scalaxb.toScope(Some("unq") -> "http://www.example.com/unqualified") ).toString"""), generated) must evaluateTo("""<unq:foo attribute1="bar" xmlns:unq="http://www.example.com/unqualified">""" + "<string1></string1>" + """<unq:bar>bar</unq:bar>""" + "</unq:foo>", outdir = "./tmp") } "unqualified.scala file must compile so that Foo can be used without toplevel prefix" in { (List("""scalaxb.toXML[unqualified.Foo](scalaxb.fromXML[unqualified.Foo](""" + """<unq:foo xmlns:unq="http://www.example.com/unqualified" attribute1="bar">""" + "<string1></string1>" + """<unq:bar>bar</unq:bar>""" + """</unq:foo>), "foo", """ + """scalaxb.toScope(Some("unq") -> "http://www.example.com/unqualified") ).toString"""), generated) must evaluateTo("""<foo attribute1="bar" xmlns:unq="http://www.example.com/unqualified">""" + "<string1></string1>" + """<unq:bar>bar</unq:bar>""" + "</foo>", outdir = "./tmp") } "unqualified.scala file must compile so that USAddress can roundtrip" in { (List("""val usaddress = unqualified.USAddress("123", "New York", "NY", 10000, Map())""", """val xml = scalaxb.toXML[unqualified.Addressable](usaddress, None, Some("shipTo"), unqualified.defaultScope)""", """val x = scalaxb.fromXML[unqualified.Addressable](xml).toString""", """x"""), generated) must evaluateTo ("""USAddress(123,New York,NY,10000,Map(@{http://www.w3.org/2001/XMLSchema-instance}type -> DataRecord({http://www.w3.org/2001/XMLSchema-instance}type,tns:USAddress)))""", outdir = "./tmp") } /* val inFile2 = new File("integration/src/test/resources/qualified.xsd") lazy val generated2 = (new Driver).process(inFile2, "qualified", tmp) "qualified.scala file must compile so that Foo can be used" in { (List("""scalaxb.toXML[qualified.Foo](scalaxb.fromXML[qualified.Foo](""" + """<q:foo xmlns:q="http://www.example.com/qualified" q:attribute1="bar">""" + "<q:string1></q:string1>" + """</q:foo>), """ + """Some("http://www.example.com/qualified"), "foo", """ + """scalaxb.toScope(Some("q") -> "http://www.example.com/qualified") ).toString"""), generated2) must evaluateTo("""<q:foo q:attribute1="bar" xmlns:q="http://www.example.com/qualified">""" + "<q:string1></q:string1>" + "</q:foo>", outdir = "./tmp") } */ }
{ "pile_set_name": "Github" }
<?php /* * Copyright 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in 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. */ /** * The "containers" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google_Service_TagManager(...); * $containers = $tagmanagerService->containers; * </code> */ class Google_Service_TagManager_Resource_AccountsContainers extends Google_Service_Resource { /** * Creates a Container. (containers.create) * * @param string $accountId The GTM Account ID. * @param Google_Service_TagManager_Container $postBody * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Container */ public function create($accountId, Google_Service_TagManager_Container $postBody, $optParams = array()) { $params = array('accountId' => $accountId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_TagManager_Container"); } /** * Deletes a Container. (containers.delete) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $containerId, $optParams = array()) { $params = array('accountId' => $accountId, 'containerId' => $containerId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Gets a Container. (containers.get) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_Container */ public function get($accountId, $containerId, $optParams = array()) { $params = array('accountId' => $accountId, 'containerId' => $containerId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_Container"); } /** * Lists all Containers that belongs to a GTM Account. * (containers.listAccountsContainers) * * @param string $accountId The GTM Account ID. * @param array $optParams Optional parameters. * @return Google_Service_TagManager_ListContainersResponse */ public function listAccountsContainers($accountId, $optParams = array()) { $params = array('accountId' => $accountId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListContainersResponse"); } /** * Updates a Container. (containers.update) * * @param string $accountId The GTM Account ID. * @param string $containerId The GTM Container ID. * @param Google_Service_TagManager_Container $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the container in storage. * @return Google_Service_TagManager_Container */ public function update($accountId, $containerId, Google_Service_TagManager_Container $postBody, $optParams = array()) { $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_TagManager_Container"); } }
{ "pile_set_name": "Github" }
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ package org.apache.ratis.examples.filestore; import org.apache.ratis.thirdparty.com.google.protobuf.ByteString; import org.apache.ratis.util.*; import java.io.IOException; import java.nio.file.Path; import java.util.concurrent.CompletableFuture; public interface FileStoreCommon { String STATEMACHINE_DIR_KEY = "example.filestore.statemachine.dir"; SizeInBytes MAX_CHUNK_SIZE = SizeInBytes.valueOf(64, TraditionalBinaryPrefix.MEGA); static int getChunkSize(long suggestedSize) { return Math.toIntExact(Math.min(suggestedSize, MAX_CHUNK_SIZE.getSize())); } static ByteString toByteString(Path p) { return ProtoUtils.toByteString(p.toString()); } static <T> CompletableFuture<T> completeExceptionally( long index, String message) { return completeExceptionally(index, message, null); } static <T> CompletableFuture<T> completeExceptionally( long index, String message, Throwable cause) { return completeExceptionally(message + ", index=" + index, cause); } static <T> CompletableFuture<T> completeExceptionally( String message, Throwable cause) { return JavaUtils.completeExceptionally( new IOException(message).initCause(cause)); } }
{ "pile_set_name": "Github" }
<?php // autoload_files.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', 'decc78cc4436b1292c6c0d151b19445c' => $vendorDir . '/phpseclib/phpseclib/phpseclib/bootstrap.php', );
{ "pile_set_name": "Github" }
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. // +build 386,linux package unix const ( SizeofPtr = 0x4 SizeofLong = 0x4 ) type ( _C_long int32 ) type Timespec struct { Sec int32 Nsec int32 } type Timeval struct { Sec int32 Usec int32 } type Timex struct { Modes uint32 Offset int32 Freq int32 Maxerror int32 Esterror int32 Status int32 Constant int32 Precision int32 Tolerance int32 Time Timeval Tick int32 Ppsfreq int32 Jitter int32 Shift int32 Stabil int32 Jitcnt int32 Calcnt int32 Errcnt int32 Stbcnt int32 Tai int32 _ [44]byte } type Time_t int32 type Tms struct { Utime int32 Stime int32 Cutime int32 Cstime int32 } type Utimbuf struct { Actime int32 Modtime int32 } type Rusage struct { Utime Timeval Stime Timeval Maxrss int32 Ixrss int32 Idrss int32 Isrss int32 Minflt int32 Majflt int32 Nswap int32 Inblock int32 Oublock int32 Msgsnd int32 Msgrcv int32 Nsignals int32 Nvcsw int32 Nivcsw int32 } type Stat_t struct { Dev uint64 _ uint16 _ uint32 Mode uint32 Nlink uint32 Uid uint32 Gid uint32 Rdev uint64 _ uint16 Size int64 Blksize int32 Blocks int64 Atim Timespec Mtim Timespec Ctim Timespec Ino uint64 } type Dirent struct { Ino uint64 Off int64 Reclen uint16 Type uint8 Name [256]int8 _ [1]byte } type Flock_t struct { Type int16 Whence int16 Start int64 Len int64 Pid int32 } const ( FADV_DONTNEED = 0x4 FADV_NOREUSE = 0x5 ) type RawSockaddr struct { Family uint16 Data [14]int8 } type RawSockaddrAny struct { Addr RawSockaddr Pad [96]int8 } type Iovec struct { Base *byte Len uint32 } type Msghdr struct { Name *byte Namelen uint32 Iov *Iovec Iovlen uint32 Control *byte Controllen uint32 Flags int32 } type Cmsghdr struct { Len uint32 Level int32 Type int32 } const ( SizeofIovec = 0x8 SizeofMsghdr = 0x1c SizeofCmsghdr = 0xc ) const ( SizeofSockFprog = 0x8 ) type PtraceRegs struct { Ebx int32 Ecx int32 Edx int32 Esi int32 Edi int32 Ebp int32 Eax int32 Xds int32 Xes int32 Xfs int32 Xgs int32 Orig_eax int32 Eip int32 Xcs int32 Eflags int32 Esp int32 Xss int32 } type FdSet struct { Bits [32]int32 } type Sysinfo_t struct { Uptime int32 Loads [3]uint32 Totalram uint32 Freeram uint32 Sharedram uint32 Bufferram uint32 Totalswap uint32 Freeswap uint32 Procs uint16 Pad uint16 Totalhigh uint32 Freehigh uint32 Unit uint32 _ [8]int8 } type Ustat_t struct { Tfree int32 Tinode uint32 Fname [6]int8 Fpack [6]int8 } type EpollEvent struct { Events uint32 Fd int32 Pad int32 } const ( POLLRDHUP = 0x2000 ) type Sigset_t struct { Val [32]uint32 } const _C__NSIG = 0x41 type Termios struct { Iflag uint32 Oflag uint32 Cflag uint32 Lflag uint32 Line uint8 Cc [19]uint8 Ispeed uint32 Ospeed uint32 } type Taskstats struct { Version uint16 Ac_exitcode uint32 Ac_flag uint8 Ac_nice uint8 _ [4]byte Cpu_count uint64 Cpu_delay_total uint64 Blkio_count uint64 Blkio_delay_total uint64 Swapin_count uint64 Swapin_delay_total uint64 Cpu_run_real_total uint64 Cpu_run_virtual_total uint64 Ac_comm [32]int8 Ac_sched uint8 Ac_pad [3]uint8 _ [4]byte Ac_uid uint32 Ac_gid uint32 Ac_pid uint32 Ac_ppid uint32 Ac_btime uint32 _ [4]byte Ac_etime uint64 Ac_utime uint64 Ac_stime uint64 Ac_minflt uint64 Ac_majflt uint64 Coremem uint64 Virtmem uint64 Hiwater_rss uint64 Hiwater_vm uint64 Read_char uint64 Write_char uint64 Read_syscalls uint64 Write_syscalls uint64 Read_bytes uint64 Write_bytes uint64 Cancelled_write_bytes uint64 Nvcsw uint64 Nivcsw uint64 Ac_utimescaled uint64 Ac_stimescaled uint64 Cpu_scaled_run_real_total uint64 Freepages_count uint64 Freepages_delay_total uint64 Thrashing_count uint64 Thrashing_delay_total uint64 Ac_btime64 uint64 } type cpuMask uint32 const ( _NCPUBITS = 0x20 ) const ( CBitFieldMaskBit0 = 0x1 CBitFieldMaskBit1 = 0x2 CBitFieldMaskBit2 = 0x4 CBitFieldMaskBit3 = 0x8 CBitFieldMaskBit4 = 0x10 CBitFieldMaskBit5 = 0x20 CBitFieldMaskBit6 = 0x40 CBitFieldMaskBit7 = 0x80 CBitFieldMaskBit8 = 0x100 CBitFieldMaskBit9 = 0x200 CBitFieldMaskBit10 = 0x400 CBitFieldMaskBit11 = 0x800 CBitFieldMaskBit12 = 0x1000 CBitFieldMaskBit13 = 0x2000 CBitFieldMaskBit14 = 0x4000 CBitFieldMaskBit15 = 0x8000 CBitFieldMaskBit16 = 0x10000 CBitFieldMaskBit17 = 0x20000 CBitFieldMaskBit18 = 0x40000 CBitFieldMaskBit19 = 0x80000 CBitFieldMaskBit20 = 0x100000 CBitFieldMaskBit21 = 0x200000 CBitFieldMaskBit22 = 0x400000 CBitFieldMaskBit23 = 0x800000 CBitFieldMaskBit24 = 0x1000000 CBitFieldMaskBit25 = 0x2000000 CBitFieldMaskBit26 = 0x4000000 CBitFieldMaskBit27 = 0x8000000 CBitFieldMaskBit28 = 0x10000000 CBitFieldMaskBit29 = 0x20000000 CBitFieldMaskBit30 = 0x40000000 CBitFieldMaskBit31 = 0x80000000 CBitFieldMaskBit32 = 0x100000000 CBitFieldMaskBit33 = 0x200000000 CBitFieldMaskBit34 = 0x400000000 CBitFieldMaskBit35 = 0x800000000 CBitFieldMaskBit36 = 0x1000000000 CBitFieldMaskBit37 = 0x2000000000 CBitFieldMaskBit38 = 0x4000000000 CBitFieldMaskBit39 = 0x8000000000 CBitFieldMaskBit40 = 0x10000000000 CBitFieldMaskBit41 = 0x20000000000 CBitFieldMaskBit42 = 0x40000000000 CBitFieldMaskBit43 = 0x80000000000 CBitFieldMaskBit44 = 0x100000000000 CBitFieldMaskBit45 = 0x200000000000 CBitFieldMaskBit46 = 0x400000000000 CBitFieldMaskBit47 = 0x800000000000 CBitFieldMaskBit48 = 0x1000000000000 CBitFieldMaskBit49 = 0x2000000000000 CBitFieldMaskBit50 = 0x4000000000000 CBitFieldMaskBit51 = 0x8000000000000 CBitFieldMaskBit52 = 0x10000000000000 CBitFieldMaskBit53 = 0x20000000000000 CBitFieldMaskBit54 = 0x40000000000000 CBitFieldMaskBit55 = 0x80000000000000 CBitFieldMaskBit56 = 0x100000000000000 CBitFieldMaskBit57 = 0x200000000000000 CBitFieldMaskBit58 = 0x400000000000000 CBitFieldMaskBit59 = 0x800000000000000 CBitFieldMaskBit60 = 0x1000000000000000 CBitFieldMaskBit61 = 0x2000000000000000 CBitFieldMaskBit62 = 0x4000000000000000 CBitFieldMaskBit63 = 0x8000000000000000 ) type SockaddrStorage struct { Family uint16 _ [122]int8 _ uint32 } type HDGeometry struct { Heads uint8 Sectors uint8 Cylinders uint16 Start uint32 } type Statfs_t struct { Type int32 Bsize int32 Blocks uint64 Bfree uint64 Bavail uint64 Files uint64 Ffree uint64 Fsid Fsid Namelen int32 Frsize int32 Flags int32 Spare [4]int32 } type TpacketHdr struct { Status uint32 Len uint32 Snaplen uint32 Mac uint16 Net uint16 Sec uint32 Usec uint32 } const ( SizeofTpacketHdr = 0x18 ) type RTCPLLInfo struct { Ctrl int32 Value int32 Max int32 Min int32 Posmult int32 Negmult int32 Clock int32 } type BlkpgPartition struct { Start int64 Length int64 Pno int32 Devname [64]uint8 Volname [64]uint8 } const ( BLKPG = 0x1269 ) type XDPUmemReg struct { Addr uint64 Len uint64 Size uint32 Headroom uint32 Flags uint32 } type CryptoUserAlg struct { Name [64]int8 Driver_name [64]int8 Module_name [64]int8 Type uint32 Mask uint32 Refcnt uint32 Flags uint32 } type CryptoStatAEAD struct { Type [64]int8 Encrypt_cnt uint64 Encrypt_tlen uint64 Decrypt_cnt uint64 Decrypt_tlen uint64 Err_cnt uint64 } type CryptoStatAKCipher struct { Type [64]int8 Encrypt_cnt uint64 Encrypt_tlen uint64 Decrypt_cnt uint64 Decrypt_tlen uint64 Verify_cnt uint64 Sign_cnt uint64 Err_cnt uint64 } type CryptoStatCipher struct { Type [64]int8 Encrypt_cnt uint64 Encrypt_tlen uint64 Decrypt_cnt uint64 Decrypt_tlen uint64 Err_cnt uint64 } type CryptoStatCompress struct { Type [64]int8 Compress_cnt uint64 Compress_tlen uint64 Decompress_cnt uint64 Decompress_tlen uint64 Err_cnt uint64 } type CryptoStatHash struct { Type [64]int8 Hash_cnt uint64 Hash_tlen uint64 Err_cnt uint64 } type CryptoStatKPP struct { Type [64]int8 Setsecret_cnt uint64 Generate_public_key_cnt uint64 Compute_shared_secret_cnt uint64 Err_cnt uint64 } type CryptoStatRNG struct { Type [64]int8 Generate_cnt uint64 Generate_tlen uint64 Seed_cnt uint64 Err_cnt uint64 } type CryptoStatLarval struct { Type [64]int8 } type CryptoReportLarval struct { Type [64]int8 } type CryptoReportHash struct { Type [64]int8 Blocksize uint32 Digestsize uint32 } type CryptoReportCipher struct { Type [64]int8 Blocksize uint32 Min_keysize uint32 Max_keysize uint32 } type CryptoReportBlkCipher struct { Type [64]int8 Geniv [64]int8 Blocksize uint32 Min_keysize uint32 Max_keysize uint32 Ivsize uint32 } type CryptoReportAEAD struct { Type [64]int8 Geniv [64]int8 Blocksize uint32 Maxauthsize uint32 Ivsize uint32 } type CryptoReportComp struct { Type [64]int8 } type CryptoReportRNG struct { Type [64]int8 Seedsize uint32 } type CryptoReportAKCipher struct { Type [64]int8 } type CryptoReportKPP struct { Type [64]int8 } type CryptoReportAcomp struct { Type [64]int8 } type LoopInfo struct { Number int32 Device uint16 Inode uint32 Rdevice uint16 Offset int32 Encrypt_type int32 Encrypt_key_size int32 Flags int32 Name [64]int8 Encrypt_key [32]uint8 Init [2]uint32 Reserved [4]int8 } type TIPCSubscr struct { Seq TIPCServiceRange Timeout uint32 Filter uint32 Handle [8]int8 } type TIPCSIOCLNReq struct { Peer uint32 Id uint32 Linkname [68]int8 } type TIPCSIOCNodeIDReq struct { Peer uint32 Id [16]int8 }
{ "pile_set_name": "Github" }
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. // Copyright 2016 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 idna // This file implements the Punycode algorithm from RFC 3492. import ( "math" "strings" "unicode/utf8" ) // These parameter values are specified in section 5. // // All computation is done with int32s, so that overflow behavior is identical // regardless of whether int is 32-bit or 64-bit. const ( base int32 = 36 damp int32 = 700 initialBias int32 = 72 initialN int32 = 128 skew int32 = 38 tmax int32 = 26 tmin int32 = 1 ) func punyError(s string) error { return &labelError{s, "A3"} } // decode decodes a string as specified in section 6.2. func decode(encoded string) (string, error) { if encoded == "" { return "", nil } pos := 1 + strings.LastIndex(encoded, "-") if pos == 1 { return "", punyError(encoded) } if pos == len(encoded) { return encoded[:len(encoded)-1], nil } output := make([]rune, 0, len(encoded)) if pos != 0 { for _, r := range encoded[:pos-1] { output = append(output, r) } } i, n, bias := int32(0), initialN, initialBias for pos < len(encoded) { oldI, w := i, int32(1) for k := base; ; k += base { if pos == len(encoded) { return "", punyError(encoded) } digit, ok := decodeDigit(encoded[pos]) if !ok { return "", punyError(encoded) } pos++ i += digit * w if i < 0 { return "", punyError(encoded) } t := k - bias if t < tmin { t = tmin } else if t > tmax { t = tmax } if digit < t { break } w *= base - t if w >= math.MaxInt32/base { return "", punyError(encoded) } } x := int32(len(output) + 1) bias = adapt(i-oldI, x, oldI == 0) n += i / x i %= x if n > utf8.MaxRune || len(output) >= 1024 { return "", punyError(encoded) } output = append(output, 0) copy(output[i+1:], output[i:]) output[i] = n i++ } return string(output), nil } // encode encodes a string as specified in section 6.3 and prepends prefix to // the result. // // The "while h < length(input)" line in the specification becomes "for // remaining != 0" in the Go code, because len(s) in Go is in bytes, not runes. func encode(prefix, s string) (string, error) { output := make([]byte, len(prefix), len(prefix)+1+2*len(s)) copy(output, prefix) delta, n, bias := int32(0), initialN, initialBias b, remaining := int32(0), int32(0) for _, r := range s { if r < 0x80 { b++ output = append(output, byte(r)) } else { remaining++ } } h := b if b > 0 { output = append(output, '-') } for remaining != 0 { m := int32(0x7fffffff) for _, r := range s { if m > r && r >= n { m = r } } delta += (m - n) * (h + 1) if delta < 0 { return "", punyError(s) } n = m for _, r := range s { if r < n { delta++ if delta < 0 { return "", punyError(s) } continue } if r > n { continue } q := delta for k := base; ; k += base { t := k - bias if t < tmin { t = tmin } else if t > tmax { t = tmax } if q < t { break } output = append(output, encodeDigit(t+(q-t)%(base-t))) q = (q - t) / (base - t) } output = append(output, encodeDigit(q)) bias = adapt(delta, h+1, h == b) delta = 0 h++ remaining-- } delta++ n++ } return string(output), nil } func decodeDigit(x byte) (digit int32, ok bool) { switch { case '0' <= x && x <= '9': return int32(x - ('0' - 26)), true case 'A' <= x && x <= 'Z': return int32(x - 'A'), true case 'a' <= x && x <= 'z': return int32(x - 'a'), true } return 0, false } func encodeDigit(digit int32) byte { switch { case 0 <= digit && digit < 26: return byte(digit + 'a') case 26 <= digit && digit < 36: return byte(digit + ('0' - 26)) } panic("idna: internal error in punycode encoding") } // adapt is the bias adaptation function specified in section 6.1. func adapt(delta, numPoints int32, firstTime bool) int32 { if firstTime { delta /= damp } else { delta /= 2 } delta += delta / numPoints k := int32(0) for delta > ((base-tmin)*tmax)/2 { delta /= base - tmin k += base } return k + (base-tmin+1)*delta/(delta+skew) }
{ "pile_set_name": "Github" }
/********************************************************************** // @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you 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. // // @@@ END COPYRIGHT @@@ **********************************************************************/ #ifndef ODBCCOMMON_H_ #define ODBCCOMMON_H_ /* * Translation unit: ODBCCOMMON * Generated by CNPGEN(TANTAU CNPGEN TANTAU_AG_PC8 20001120.103031) on Mon Jan 31 11:14:07 2011 * C++ constructs used * Header file for use with the CEE * Client functionality included * Server functionality included */ #include <stdarg.h> #include <cee.h> #if CEE_H_VERSION != 19991123 #error Version mismatch CEE_H_VERSION != 19991123 #endif #include <idltype.h> #if IDL_TYPE_H_VERSION != 19971225 #error Version mismatch IDL_TYPE_H_VERSION != 19971225 #endif typedef IDL_string UUID_def; #define UUID_def_cin_ ((char *) "d0+") #define UUID_def_csz_ ((IDL_unsigned_long) 3) typedef IDL_long DIALOGUE_ID_def; #define DIALOGUE_ID_def_cin_ ((char *) "F") #define DIALOGUE_ID_def_csz_ ((IDL_unsigned_long) 1) typedef IDL_char SQL_IDENTIFIER_def[513]; #define SQL_IDENTIFIER_def_cin_ ((char *) "d512+") #define SQL_IDENTIFIER_def_csz_ ((IDL_unsigned_long) 5) typedef IDL_char STMT_NAME_def[513]; #define STMT_NAME_def_cin_ ((char *) "d512+") #define STMT_NAME_def_csz_ ((IDL_unsigned_long) 5) typedef IDL_long SQL_DATATYPE_def; #define SQL_DATATYPE_def_cin_ ((char *) "F") #define SQL_DATATYPE_def_csz_ ((IDL_unsigned_long) 1) typedef IDL_char SQLSTATE_def[6]; #define SQLSTATE_def_cin_ ((char *) "d5+") #define SQLSTATE_def_csz_ ((IDL_unsigned_long) 3) typedef IDL_string ERROR_STR_def; #define ERROR_STR_def_cin_ ((char *) "d0+") #define ERROR_STR_def_csz_ ((IDL_unsigned_long) 3) typedef struct SQL_DataValue_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; IDL_octet *_buffer; IDL_PTR_PAD(_buffer, 1) } SQL_DataValue_def; #define SQL_DataValue_def_cin_ ((char *) "c0+H") #define SQL_DataValue_def_csz_ ((IDL_unsigned_long) 4) typedef IDL_short SQL_INDICATOR_def; #define SQL_INDICATOR_def_cin_ ((char *) "I") #define SQL_INDICATOR_def_csz_ ((IDL_unsigned_long) 1) typedef IDL_long_long INTERVAL_NUM_def; #define INTERVAL_NUM_def_cin_ ((char *) "G") #define INTERVAL_NUM_def_csz_ ((IDL_unsigned_long) 1) typedef IDL_char TIMESTAMP_STR_def[31]; #define TIMESTAMP_STR_def_cin_ ((char *) "d30+") #define TIMESTAMP_STR_def_csz_ ((IDL_unsigned_long) 4) typedef struct USER_SID_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; IDL_octet *_buffer; IDL_PTR_PAD(_buffer, 1) } USER_SID_def; #define USER_SID_def_cin_ ((char *) "c0+H") #define USER_SID_def_csz_ ((IDL_unsigned_long) 4) typedef struct USER_PASSWORD_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; IDL_octet *_buffer; IDL_PTR_PAD(_buffer, 1) } USER_PASSWORD_def; #define USER_PASSWORD_def_cin_ ((char *) "c0+H") #define USER_PASSWORD_def_csz_ ((IDL_unsigned_long) 4) typedef struct USER_NAME_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; IDL_octet *_buffer; IDL_PTR_PAD(_buffer, 1) } USER_NAME_def; #define USER_NAME_def_cin_ ((char *) "c0+H") #define USER_NAME_def_csz_ ((IDL_unsigned_long) 4) typedef IDL_long TIME_def; #define TIME_def_cin_ ((char *) "F") #define TIME_def_csz_ ((IDL_unsigned_long) 1) typedef IDL_short GEN_PARAM_TOKEN_def; #define GEN_PARAM_TOKEN_def_cin_ ((char *) "I") #define GEN_PARAM_TOKEN_def_csz_ ((IDL_unsigned_long) 1) typedef IDL_short GEN_PARAM_OPERATION_def; #define GEN_PARAM_OPERATION_def_cin_ ((char *) "I") #define GEN_PARAM_OPERATION_def_csz_ ((IDL_unsigned_long) 1) typedef struct GEN_PARAM_VALUE_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; IDL_octet *_buffer; IDL_PTR_PAD(_buffer, 1) } GEN_PARAM_VALUE_def; #define GEN_PARAM_VALUE_def_cin_ ((char *) "c0+H") #define GEN_PARAM_VALUE_def_csz_ ((IDL_unsigned_long) 4) typedef IDL_char VPROC_def[33]; #define VPROC_def_cin_ ((char *) "d32+") #define VPROC_def_csz_ ((IDL_unsigned_long) 4) typedef IDL_char APLICATION_def[130]; #define APLICATION_def_cin_ ((char *) "d129+") #define APLICATION_def_csz_ ((IDL_unsigned_long) 5) typedef IDL_char COMPUTER_def[130]; #define COMPUTER_def_cin_ ((char *) "d129+") #define COMPUTER_def_csz_ ((IDL_unsigned_long) 5) typedef IDL_char NAME_def[130]; #define NAME_def_cin_ ((char *) "d129+") #define NAME_def_csz_ ((IDL_unsigned_long) 5) struct ERROR_DESC_t { IDL_long rowId; IDL_long errorDiagnosticId; IDL_long sqlcode; SQLSTATE_def sqlstate; char pad_to_offset_24_[6]; ERROR_STR_def errorText; IDL_PTR_PAD(errorText, 1) IDL_long operationAbortId; IDL_long errorCodeType; IDL_string Param1; IDL_PTR_PAD(Param1, 1) IDL_string Param2; IDL_PTR_PAD(Param2, 1) IDL_string Param3; IDL_PTR_PAD(Param3, 1) IDL_string Param4; IDL_PTR_PAD(Param4, 1) IDL_string Param5; IDL_PTR_PAD(Param5, 1) IDL_string Param6; IDL_PTR_PAD(Param6, 1) IDL_string Param7; IDL_PTR_PAD(Param7, 1) }; typedef ERROR_DESC_t ERROR_DESC_def; #define ERROR_DESC_def_cin_ ((char *) \ "b14+FFFd5+d0+FFd0+d0+d0+d0+d0+d0+d0+") #define ERROR_DESC_def_csz_ ((IDL_unsigned_long) 36) typedef struct ERROR_DESC_LIST_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; ERROR_DESC_def *_buffer; IDL_PTR_PAD(_buffer, 1) } ERROR_DESC_LIST_def; #define ERROR_DESC_LIST_def_cin_ ((char *) \ "c0+b14+FFFd5+d0+FFd0+d0+d0+d0+d0+d0+d0+") #define ERROR_DESC_LIST_def_csz_ ((IDL_unsigned_long) 39) struct SQLItemDesc_t { IDL_long version; SQL_DATATYPE_def dataType; IDL_long datetimeCode; IDL_long maxLen; IDL_short precision; IDL_short scale; IDL_boolean nullInfo; IDL_char colHeadingNm[514]; IDL_boolean signType; IDL_long ODBCDataType; IDL_short ODBCPrecision; char pad_to_offset_544_[2]; IDL_long SQLCharset; IDL_long ODBCCharset; IDL_char TableName[514]; IDL_char CatalogName[514]; IDL_char SchemaName[514]; IDL_char Heading[514]; IDL_long intLeadPrec; IDL_long paramMode; }; typedef SQLItemDesc_t SQLItemDesc_def; #define SQLItemDesc_def_cin_ ((char *) \ "b19+FFFFIIBd513+BFIFFd513+d513+d513+d513+FF") #define SQLItemDesc_def_csz_ ((IDL_unsigned_long) 43) typedef struct SQLItemDescList_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; SQLItemDesc_def *_buffer; IDL_PTR_PAD(_buffer, 1) } SQLItemDescList_def; #define SQLItemDescList_def_cin_ ((char *) \ "c0+b19+FFFFIIBd513+BFIFFd513+d513+d513+d513+FF") #define SQLItemDescList_def_csz_ ((IDL_unsigned_long) 46) struct SQLValue_t { SQL_DATATYPE_def dataType; SQL_INDICATOR_def dataInd; char pad_to_offset_8_[2]; SQL_DataValue_def dataValue; IDL_long dataCharset; char pad_to_size_32_[4]; }; typedef SQLValue_t SQLValue_def; #define SQLValue_def_cin_ ((char *) "b4+FIc0+HF") #define SQLValue_def_csz_ ((IDL_unsigned_long) 10) typedef struct SQLValueList_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; SQLValue_def *_buffer; IDL_PTR_PAD(_buffer, 1) } SQLValueList_def; #define SQLValueList_def_cin_ ((char *) "c0+b4+FIc0+HF") #define SQLValueList_def_csz_ ((IDL_unsigned_long) 13) typedef IDL_enum USER_DESC_TYPE_t; #define SID_TYPE ((IDL_enum) 0) #define AUTHENTICATED_USER_TYPE ((IDL_enum) 1) #define UNAUTHENTICATED_USER_TYPE ((IDL_enum) 2) #define PASSWORD_ENCRYPTED_USER_TYPE ((IDL_enum) 3) #define SID_ENCRYPTED_USER_TYPE ((IDL_enum) 4) #define WIN95_USER_TYPE ((IDL_enum) 5) typedef USER_DESC_TYPE_t USER_DESC_TYPE_def; #define USER_DESC_TYPE_def_cin_ ((char *) "h5+") #define USER_DESC_TYPE_def_csz_ ((IDL_unsigned_long) 3) struct USER_DESC_t { USER_DESC_TYPE_def userDescType; char pad_to_offset_8_[4]; USER_SID_def userSid; IDL_string domainName; IDL_PTR_PAD(domainName, 1) IDL_string userName; IDL_PTR_PAD(userName, 1) USER_PASSWORD_def password; }; typedef USER_DESC_t USER_DESC_def; #define USER_DESC_def_cin_ ((char *) "b5+h5+c0+Hd0+d0+c0+H") #define USER_DESC_def_csz_ ((IDL_unsigned_long) 20) struct VERSION_t { IDL_short componentId; IDL_short majorVersion; IDL_short minorVersion; char pad_to_offset_8_[2]; IDL_unsigned_long buildId; }; typedef VERSION_t VERSION_def; #define VERSION_def_cin_ ((char *) "b4+IIIK") #define VERSION_def_csz_ ((IDL_unsigned_long) 7) typedef struct VERSION_LIST_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; VERSION_def *_buffer; IDL_PTR_PAD(_buffer, 1) } VERSION_LIST_def; #define VERSION_LIST_def_cin_ ((char *) "c0+b4+IIIK") #define VERSION_LIST_def_csz_ ((IDL_unsigned_long) 10) struct CONNECTION_CONTEXT_t { SQL_IDENTIFIER_def datasource; SQL_IDENTIFIER_def catalog; SQL_IDENTIFIER_def schema; SQL_IDENTIFIER_def location; SQL_IDENTIFIER_def userRole; char pad_to_offset_2566_[1]; IDL_short accessMode; IDL_short autoCommit; char pad_to_offset_2572_[2]; IDL_unsigned_long queryTimeoutSec; IDL_unsigned_long idleTimeoutSec; IDL_unsigned_long loginTimeoutSec; IDL_short txnIsolationLevel; IDL_short rowSetSize; IDL_long diagnosticFlag; IDL_unsigned_long processId; IDL_char computerName[61]; char pad_to_offset_2664_[7]; IDL_string windowText; IDL_PTR_PAD(windowText, 1) IDL_unsigned_long ctxACP; IDL_unsigned_long ctxDataLang; IDL_unsigned_long ctxErrorLang; IDL_short ctxCtrlInferNCHAR; IDL_short cpuToUse; IDL_short cpuToUseEnd; IDL_char clientVproc[101]; char pad_to_offset_2744_[3]; IDL_string connectOptions; IDL_PTR_PAD(connectOptions, 1) VERSION_LIST_def clientVersionList; IDL_unsigned_long inContextOptions1; IDL_unsigned_long inContextOptions2; IDL_char sessionName[101]; char pad_to_offset_2880_[3]; IDL_string clientUserName; IDL_PTR_PAD(clientUserName, 1) }; typedef CONNECTION_CONTEXT_t CONNECTION_CONTEXT_def; #define CONNECTION_CONTEXT_def_cin_ ((char *) \ "b29+d512+d512+d512+d512+d512+IIKKKIIFKa1+61+Cd0+KKKIIIa1+51+"\ "Cd0+c0+b4+IIIKKKa1+101+Cd0+") #define CONNECTION_CONTEXT_def_csz_ ((IDL_unsigned_long) 87) struct OUT_CONNECTION_CONTEXT_t { VERSION_LIST_def versionList; IDL_short nodeId; char pad_to_offset_20_[2]; IDL_unsigned_long processId; IDL_char computerName[61]; SQL_IDENTIFIER_def catalog; SQL_IDENTIFIER_def schema; char pad_to_offset_1112_[1]; IDL_unsigned_long outContextOptions1; IDL_unsigned_long outContextOptions2; IDL_unsigned_long outContextOptionStringLen; char pad_to_offset_1128_[4]; IDL_string outContextOptionString; IDL_PTR_PAD(outContextOptionString, 1) }; typedef OUT_CONNECTION_CONTEXT_t OUT_CONNECTION_CONTEXT_def; #define OUT_CONNECTION_CONTEXT_def_cin_ ((char *) \ "b10+c0+b4+IIIKIKa1+61+Cd512+d512+KKKd0+") #define OUT_CONNECTION_CONTEXT_def_csz_ ((IDL_unsigned_long) 39) typedef IDL_char IDL_OBJECT_def[128]; #define IDL_OBJECT_def_cin_ ((char *) "a1+128+C") #define IDL_OBJECT_def_csz_ ((IDL_unsigned_long) 8) struct GEN_Param_t { GEN_PARAM_TOKEN_def paramToken; GEN_PARAM_OPERATION_def paramOperation; char pad_to_offset_8_[4]; GEN_PARAM_VALUE_def paramValue; }; typedef GEN_Param_t GEN_Param_def; #define GEN_Param_def_cin_ ((char *) "b3+IIc0+H") #define GEN_Param_def_csz_ ((IDL_unsigned_long) 9) typedef struct GEN_ParamList_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; GEN_Param_def *_buffer; IDL_PTR_PAD(_buffer, 1) } GEN_ParamList_def; #define GEN_ParamList_def_cin_ ((char *) "c0+b3+IIc0+H") #define GEN_ParamList_def_csz_ ((IDL_unsigned_long) 12) struct RES_DESC_t { SQL_IDENTIFIER_def AttrNm; char pad_to_offset_520_[7]; IDL_long_long Limit; IDL_string Action; IDL_PTR_PAD(Action, 1) IDL_long Settable; char pad_to_size_544_[4]; }; typedef RES_DESC_t RES_DESC_def; #define RES_DESC_def_cin_ ((char *) "b4+d512+Gd0+F") #define RES_DESC_def_csz_ ((IDL_unsigned_long) 13) typedef struct RES_DESC_LIST_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; RES_DESC_def *_buffer; IDL_PTR_PAD(_buffer, 1) } RES_DESC_LIST_def; #define RES_DESC_LIST_def_cin_ ((char *) "c0+b4+d512+Gd0+F") #define RES_DESC_LIST_def_csz_ ((IDL_unsigned_long) 16) struct ENV_DESC_t { IDL_long VarSeq; IDL_long VarType; IDL_string VarVal; IDL_PTR_PAD(VarVal, 1) }; typedef ENV_DESC_t ENV_DESC_def; #define ENV_DESC_def_cin_ ((char *) "b3+FFd0+") #define ENV_DESC_def_csz_ ((IDL_unsigned_long) 8) typedef struct ENV_DESC_LIST_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; ENV_DESC_def *_buffer; IDL_PTR_PAD(_buffer, 1) } ENV_DESC_LIST_def; #define ENV_DESC_LIST_def_cin_ ((char *) "c0+b3+FFd0+") #define ENV_DESC_LIST_def_csz_ ((IDL_unsigned_long) 11) struct SRVR_CONTEXT_t { INTERVAL_NUM_def srvrIdleTimeout; INTERVAL_NUM_def connIdleTimeout; RES_DESC_LIST_def resDescList; ENV_DESC_LIST_def envDescList; }; typedef SRVR_CONTEXT_t SRVR_CONTEXT_def; #define SRVR_CONTEXT_def_cin_ ((char *) \ "b4+GGc0+b4+d512+Gd0+Fc0+b3+FFd0+") #define SRVR_CONTEXT_def_csz_ ((IDL_unsigned_long) 32) #ifdef USE_NEW_PHANDLE typedef SB_Phandle_Type PROCESS_HANDLE_def; #else typedef IDL_short PROCESS_HANDLE_def[10]; #endif #define PROCESS_HANDLE_def_cin_ ((char *) "a1+10+I") #define PROCESS_HANDLE_def_csz_ ((IDL_unsigned_long) 7) typedef struct PROCESS_HANDLE_List_def_seq_ { IDL_unsigned_long _length; char pad_to_offset_8_[4]; PROCESS_HANDLE_def *_buffer; IDL_PTR_PAD(_buffer, 1) } PROCESS_HANDLE_List_def; #define PROCESS_HANDLE_List_def_cin_ ((char *) "c0+a1+10+I") #define PROCESS_HANDLE_List_def_csz_ ((IDL_unsigned_long) 10) /* * End translation unit: ODBCCOMMON */ #endif /* ODBCCOMMON_H_ */
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. */ package org.apache.camel.component.file.remote; import org.apache.camel.Exchange; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class FromFtpRecursiveNoopTest extends FtpServerTestSupport { protected String getFtpUrl() { return "ftp://admin@localhost:" + getPort() + "/noop?password=admin&binary=false&initialDelay=3000" + "&recursive=true&noop=true"; } @Override @BeforeEach public void setUp() throws Exception { super.setUp(); template.sendBodyAndHeader(getFtpUrl(), "a", Exchange.FILE_NAME, "a.txt"); template.sendBodyAndHeader(getFtpUrl(), "b", Exchange.FILE_NAME, "b.txt"); template.sendBodyAndHeader(getFtpUrl(), "a2", Exchange.FILE_NAME, "foo/a.txt"); template.sendBodyAndHeader(getFtpUrl(), "c", Exchange.FILE_NAME, "bar/c.txt"); template.sendBodyAndHeader(getFtpUrl(), "b2", Exchange.FILE_NAME, "bar/b.txt"); } @Test public void testRecursiveNoop() throws Exception { MockEndpoint mock = getMockEndpoint("mock:result"); mock.expectedBodiesReceivedInAnyOrder("a", "b", "a2", "c", "b2"); assertMockEndpointsSatisfied(); // reset mock and send in a new file to be picked up only mock.reset(); mock.expectedBodiesReceived("c2"); template.sendBodyAndHeader(getFtpUrl(), "c2", Exchange.FILE_NAME, "c.txt"); assertMockEndpointsSatisfied(); } @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @Override public void configure() throws Exception { from(getFtpUrl()).convertBodyTo(String.class).to("log:ftp").to("mock:result"); } }; } }
{ "pile_set_name": "Github" }
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, 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. package com.google.api.ads.adwords.jaxws.v201809.cm; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * * Returns the ad parameters that match the criteria specified in the * selector. * * @param serviceSelector Specifies which ad parameters to return. * @return A list of ad parameters. * * * <p>Java class for get element declaration. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;element name="get"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="serviceSelector" type="{https://adwords.google.com/api/adwords/cm/v201809}Selector" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "serviceSelector" }) @XmlRootElement(name = "get") public class AdParamServiceInterfaceget { protected Selector serviceSelector; /** * Gets the value of the serviceSelector property. * * @return * possible object is * {@link Selector } * */ public Selector getServiceSelector() { return serviceSelector; } /** * Sets the value of the serviceSelector property. * * @param value * allowed object is * {@link Selector } * */ public void setServiceSelector(Selector value) { this.serviceSelector = value; } }
{ "pile_set_name": "Github" }
namespace Aurora_Updater { partial class MainForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.update_progress = new System.Windows.Forms.ProgressBar(); this.richtextUpdateLog = new System.Windows.Forms.RichTextBox(); this.labelApplicationTitle = new System.Windows.Forms.Label(); this.pictureBoxApplicationLogo = new System.Windows.Forms.PictureBox(); this.labelUpdateLog = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxApplicationLogo)).BeginInit(); this.SuspendLayout(); // // update_progress // this.update_progress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.update_progress.Location = new System.Drawing.Point(12, 352); this.update_progress.Name = "update_progress"; this.update_progress.Size = new System.Drawing.Size(560, 22); this.update_progress.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.update_progress.TabIndex = 0; // // richtextUpdateLog // this.richtextUpdateLog.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.richtextUpdateLog.Location = new System.Drawing.Point(12, 82); this.richtextUpdateLog.Name = "richtextUpdateLog"; this.richtextUpdateLog.ReadOnly = true; this.richtextUpdateLog.Size = new System.Drawing.Size(560, 264); this.richtextUpdateLog.TabIndex = 1; this.richtextUpdateLog.Text = ""; // // labelApplicationTitle // this.labelApplicationTitle.AutoSize = true; this.labelApplicationTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelApplicationTitle.Location = new System.Drawing.Point(66, 12); this.labelApplicationTitle.Name = "labelApplicationTitle"; this.labelApplicationTitle.Size = new System.Drawing.Size(156, 20); this.labelApplicationTitle.TabIndex = 9; this.labelApplicationTitle.Text = "Updating Aurora..."; // // pictureBoxApplicationLogo // this.pictureBoxApplicationLogo.Image = global::Aurora_Updater.Properties.Resources.Aurora_updater_logo; this.pictureBoxApplicationLogo.Location = new System.Drawing.Point(12, 12); this.pictureBoxApplicationLogo.Name = "pictureBoxApplicationLogo"; this.pictureBoxApplicationLogo.Size = new System.Drawing.Size(48, 48); this.pictureBoxApplicationLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBoxApplicationLogo.TabIndex = 8; this.pictureBoxApplicationLogo.TabStop = false; // // labelUpdateLog // this.labelUpdateLog.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelUpdateLog.AutoSize = true; this.labelUpdateLog.Location = new System.Drawing.Point(9, 66); this.labelUpdateLog.Name = "labelUpdateLog"; this.labelUpdateLog.Size = new System.Drawing.Size(75, 13); this.labelUpdateLog.TabIndex = 10; this.labelUpdateLog.Text = "Update details"; // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(584, 381); this.Controls.Add(this.richtextUpdateLog); this.Controls.Add(this.labelUpdateLog); this.Controls.Add(this.labelApplicationTitle); this.Controls.Add(this.pictureBoxApplicationLogo); this.Controls.Add(this.update_progress); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(600, 450); this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(600, 350); this.Name = "MainForm"; this.RightToLeft = System.Windows.Forms.RightToLeft.No; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Aurora Updater"; this.Shown += new System.EventHandler(this.Form1_Shown); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxApplicationLogo)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.ProgressBar update_progress; private System.Windows.Forms.RichTextBox richtextUpdateLog; private System.Windows.Forms.Label labelApplicationTitle; private System.Windows.Forms.PictureBox pictureBoxApplicationLogo; private System.Windows.Forms.Label labelUpdateLog; } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> <ImageView android:id="@+id/label_image" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:id="@+id/label_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@android:color/white" android:textSize="20sp" fontPath="DINNextLTPro-Light.otf" tools:ignore="MissingPrefix" /> </merge>
{ "pile_set_name": "Github" }
/* * Copyright (C) 2013 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in 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. */ package org.auraframework.impl.root; import com.google.common.collect.Maps; import org.auraframework.Aura; import org.auraframework.def.AttributeDef; import org.auraframework.def.AttributeDefRef; import org.auraframework.def.DefDescriptor; import org.auraframework.def.EventHandlerDef; import org.auraframework.def.RegisterEventDef; import org.auraframework.def.RootDefinition; import org.auraframework.def.TypeDef; import org.auraframework.expression.Expression; import org.auraframework.expression.PropertyReference; import org.auraframework.impl.expression.PropertyReferenceImpl; import org.auraframework.impl.root.event.EventHandlerImpl; import org.auraframework.impl.type.ComponentArrayTypeDef; import org.auraframework.impl.type.ComponentTypeDef; import org.auraframework.impl.util.AuraUtil; import org.auraframework.instance.Attribute; import org.auraframework.instance.AttributeSet; import org.auraframework.instance.BaseComponent; import org.auraframework.instance.EventHandler; import org.auraframework.instance.Instance; import org.auraframework.instance.InstanceStack; import org.auraframework.instance.ValueProvider; import org.auraframework.instance.Wrapper; import org.auraframework.service.DefinitionService; import org.auraframework.system.Location; import org.auraframework.throwable.AuraRuntimeException; import org.auraframework.throwable.AuraUnhandledException; import org.auraframework.throwable.NoAccessException; import org.auraframework.throwable.quickfix.AttributeNotFoundException; import org.auraframework.throwable.quickfix.InvalidDefinitionException; import org.auraframework.throwable.quickfix.InvalidExpressionException; import org.auraframework.throwable.quickfix.MissingRequiredAttributeException; import org.auraframework.throwable.quickfix.QuickFixException; import org.auraframework.util.json.Json; import org.auraframework.util.json.Serialization; import org.auraframework.util.json.Serialization.ReferenceType; import java.io.IOException; import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.Set; /** */ @Serialization(referenceType = ReferenceType.IDENTITY) public class AttributeSetImpl implements AttributeSet { private static final Location SUPER_PASSTHROUGH = AuraUtil.getExternalLocation("super component attribute passthrough"); // Immutable? I think not. private DefDescriptor<? extends RootDefinition> rootDefDescriptor; private boolean trackDirty = false; private final Map<DefDescriptor<AttributeDef>, Attribute> attributes = Maps.newHashMap(); private final Map<DefDescriptor<EventHandlerDef>, EventHandler> events = Maps.newHashMap(); private final BaseComponent<?, ?> valueProvider; private final Instance<?> parent; private final boolean useUnlinkedDefinition; public AttributeSetImpl(DefDescriptor<? extends RootDefinition> componentDefDescriptor, BaseComponent<?, ?> valueProvider, Instance<?> parent) throws QuickFixException { this(componentDefDescriptor, valueProvider, parent, false); } public AttributeSetImpl(DefDescriptor<? extends RootDefinition> componentDefDescriptor, BaseComponent<?, ?> valueProvider, Instance<?> parent, boolean useUnlinkedDefinition) throws QuickFixException { this.rootDefDescriptor = componentDefDescriptor; this.valueProvider = valueProvider; this.parent = parent; this.useUnlinkedDefinition = useUnlinkedDefinition; setDefaults(); } @Override public void setRootDefDescriptor(DefDescriptor<? extends RootDefinition> descriptor) throws QuickFixException { rootDefDescriptor = descriptor; setDefaults(); } @Override public DefDescriptor<? extends RootDefinition> getRootDefDescriptor() throws QuickFixException { return rootDefDescriptor; } private void setDefaults() throws QuickFixException { Map<DefDescriptor<AttributeDef>, AttributeDef> attrs = getRootDefinition().getAttributeDefs(); for (Map.Entry<DefDescriptor<AttributeDef>, AttributeDef> attr : attrs.entrySet()) { AttributeDefRef ref = attr.getValue().getDefaultValue(); if (ref != null && !attributes.containsKey(attr.getKey())) { set(ref); } } } private void set(EventHandler eventHandler) { events.put(eventHandler.getDescriptor(), eventHandler); } private void set(Attribute attribute) { if (trackDirty) { attribute.markDirty(); } attributes.put(attribute.getDescriptor(), attribute); } private void set(AttributeDefRef attributeDefRef) throws QuickFixException { RootDefinition def = getRootDefinition(); Map<DefDescriptor<AttributeDef>, AttributeDef> attributeDefs = def.getAttributeDefs(); AttributeDef attributeDef = attributeDefs.get(attributeDefRef.getDescriptor()); // setAndValidateAttribute should be merged with creating the // AttributeImpl here AttributeImpl attribute; if (attributeDef == null) { Map<String, RegisterEventDef> events = def.getRegisterEventDefs(); if (events.containsKey(attributeDefRef.getDescriptor().getName())) { EventHandlerImpl eh = new EventHandlerImpl(attributeDefRef.getDescriptor().getName()); Object o = attributeDefRef.getValue(); if (!(o instanceof PropertyReference)) { // FIXME: where are we? throw new InvalidDefinitionException(String.format("%s no can haz %s", eh.getName(), o), SUPER_PASSTHROUGH); } eh.setActionExpression((PropertyReference) o); set(eh); return; } else { // FIXME: where are we? throw new AttributeNotFoundException(rootDefDescriptor, attributeDefRef.getName(), SUPER_PASSTHROUGH); } } else { attribute = new AttributeImpl(attributeDef.getDescriptor()); } try { attributeDefRef.parseValue(attributeDef.getTypeDef()); } catch(InvalidExpressionException exception) { // Kris: // This is going to fail a good handfull of things at the moment, I need to // Uncomment and test against the app before trying to check this in. // Mode mode = contextService.getCurrentContext().getMode(); // if(mode.isDevMode() || mode.isTestMode()) { // throw new InvalidValueSetTypeException( // String.format("Error setting the attribute '%s' of type %s to a value of type %s.", attributeDef.getName(), attributeDef.getTypeDef().getName(), attributeDefRef.getValue().getClass().getName()), // exception.getLocation()); // } } Object value = attributeDefRef.getValue(); InstanceStack iStack = Aura.getContextService().getCurrentContext().getInstanceStack(); iStack.markParent(parent); iStack.setAttributeName(attributeDef.getDescriptor().toString()); if (valueProvider != null) { iStack.pushAccess(valueProvider); } value = attributeDef.getTypeDef().initialize(value, valueProvider); if (valueProvider != null) { iStack.popAccess(valueProvider); } iStack.clearAttributeName(attributeDef.getDescriptor().toString()); iStack.clearParent(parent); attribute.setValue(value); set(attribute); } @Override public void set(Collection<AttributeDefRef> attributeDefRefs) throws QuickFixException { for (AttributeDefRef attributeDefRef : attributeDefRefs) { set(attributeDefRef); } } @Override public void set(Collection<AttributeDefRef> facetDefRefs, AttributeSet attributeSet) throws QuickFixException { RootDefinition rootDef = getRootDefinition(); Map<DefDescriptor<AttributeDef>, AttributeDef> attrs = rootDef.getAttributeDefs(); Map<DefDescriptor<?>, Object> lookup = Maps.newHashMap(); for (Attribute attribute : attributeSet) { lookup.put(Aura.getDefinitionService().getDefDescriptor(attribute.getName(), AttributeDef.class), attribute); } for (AttributeDefRef attributeDefRef : facetDefRefs) { lookup.put(attributeDefRef.getDescriptor(), attributeDefRef); } for (DefDescriptor<AttributeDef> desc : attrs.keySet()) { Object val = lookup.get(desc); if (val != null) { if (val instanceof Attribute) { Attribute attribute = (Attribute) val; setExpression(attribute.getDescriptor(), new PropertyReferenceImpl("v." + attribute.getName(), SUPER_PASSTHROUGH)); } else if (val instanceof AttributeDefRef) { set((AttributeDefRef) val); } } } } @Override public void set(Map<String, Object> attributeMap) throws QuickFixException { if (attributeMap != null) { Map<DefDescriptor<AttributeDef>, AttributeDef> attrs = getRootDefinition().getAttributeDefs(); for (Map.Entry<String, Object> entry : attributeMap.entrySet()) { try { DefDescriptor<AttributeDef> desc = Aura.getDefinitionService().getDefDescriptor(entry.getKey(), AttributeDef.class); if (attrs.containsKey(desc)) { setExpression(desc, entry.getValue()); } } catch (AuraRuntimeException arex) { throw new InvalidDefinitionException("Error setting attribute: " + entry.getKey(), new Location(this.parent.getDescriptor().toString(), 0), arex); } } } } @Override public Object getValue(String name) throws QuickFixException { PropertyReference expr = getPropertyReferenceByName(name); return getValue(expr); } /** * Returns raw object instead of evaluated value of attribute * * @param name * @return Raw Object from attributes map * @throws QuickFixException */ @Override public Object getRawValue(String name) throws QuickFixException { PropertyReference expr = getPropertyReferenceByName(name); return getExpression(expr.getRoot()); } @Override public <T> T getValue(String name, Class<T> clazz) throws QuickFixException { Object val = getValue(name); if (val == null) { return null; } try { return clazz.cast(val); } catch (ClassCastException cce) { throw new AuraRuntimeException("attribute <" + name + "> is of the wrong type: expected " + clazz.getName() + " but got " + val.getClass().getName()); } } @Override public Object getExpression(String name) { DefDescriptor<AttributeDef> desc = Aura.getDefinitionService().getDefDescriptor(name, AttributeDef.class); Attribute at = attributes.get(desc); if (at != null) { return at.getValue(); } return null; } private void setExpression(DefDescriptor<AttributeDef> desc, Object value) throws QuickFixException { RootDefinition rd = getRootDefinition(); AttributeDef ad = rd.getAttributeDefs().get(desc); if (ad == null) { // this location isn't even close to right... throw new InvalidDefinitionException(String.format("Attribute %s not defined on %s", desc.getName(), rootDefDescriptor.getName()), rd.getLocation()); } AttributeImpl att = new AttributeImpl(desc); if (value instanceof Expression) { att.setValue(value); } else { InstanceStack iStack = Aura.getContextService().getCurrentContext().getInstanceStack(); iStack.markParent(parent); iStack.setAttributeName(desc.toString()); if (valueProvider != null) { iStack.pushAccess(valueProvider); } att.setValue(getRootDefinition().getAttributeDef(att.getName()).getTypeDef().initialize(value, null)); if (valueProvider != null) { iStack.popAccess(valueProvider); } iStack.clearAttributeName(desc.toString()); iStack.clearParent(parent); } set(att); } /** * Due to dynamic providers, we need to fetch definition each time when setting attributes. * * TODO: Why? * * @return Definition * @throws QuickFixException */ private RootDefinition getRootDefinition() throws QuickFixException { DefinitionService definitionService = Aura.getDefinitionService(); if (this.useUnlinkedDefinition) { // when serializing module instances, we normalize attributes with the component, // but the def should be stored in context cache as it will be serialized to the client return definitionService.getUnlinkedDefinition(rootDefDescriptor); } else { return definitionService.getDefinition(rootDefDescriptor); } } @Override public Object getValue(PropertyReference expr) throws QuickFixException { Object value = getExpression(expr.getRoot()); PropertyReference stem = expr.getStem(); if (value instanceof Expression) { value = ((Expression) value).evaluate(valueProvider); } if (value instanceof ValueProvider && stem != null) { value = ((ValueProvider) value).getValue(stem); } else if (stem != null) { AttributeDef attributeDef = getRootDefinition().getAttributeDef(expr.getRoot()); if (attributeDef == null) { // no such attribute. throw new NoAccessException("No attribute "+expr.getRoot()+" in "+rootDefDescriptor); } value = attributeDef.getTypeDef().wrap(value); if (value instanceof ValueProvider) { value = ((ValueProvider) value).getValue(stem); } } if (value instanceof Wrapper) { value = ((Wrapper) value).unwrap(); } return value; } @Override public void serialize(Json json) throws IOException { try { json.writeMapBegin(); json.writeMapEntry("valueProvider", valueProvider); if (!attributes.isEmpty()) { RootDefinition def = getRootDefinition(); json.writeMapKey("values"); json.writeMapBegin(); for (Attribute attribute : attributes.values()) { String name = attribute.getName(); AttributeDef attributeDef = def.getAttributeDef(name); if (attributeDef == null) { throw new AttributeNotFoundException(rootDefDescriptor, name, def.getLocation()); } if (attributeDef.getSerializeTo() == AttributeDef.SerializeToType.BOTH) { TypeDef typeDef = attributeDef.getTypeDef(); if ((valueProvider == null && !((typeDef instanceof ComponentArrayTypeDef) || (typeDef instanceof ComponentTypeDef))) || attribute.isDirty()) { json.writeMapEntry(name, attribute.getValue()); } } } json.writeMapEnd(); } if (!events.isEmpty()) { json.writeMapEntry("events", events); } json.writeMapEnd(); } catch (QuickFixException e) { throw new AuraUnhandledException("unhandled exception", e); } } @Override public int size() { return attributes.size(); } /** * @return Returns the valueProvider. */ @Override public BaseComponent<?, ?> getValueProvider() { return valueProvider; } @Override public Iterator<Attribute> iterator() { return attributes.values().iterator(); } @Override public boolean isEmpty() { return attributes.isEmpty() && events.isEmpty(); } @Override public void startTrackingDirtyValues() { trackDirty = true; } @Override public void validate() throws QuickFixException { Set<AttributeDef> missingAttributes = this.getMissingAttributes(); if (missingAttributes != null && !missingAttributes.isEmpty()) { throw new MissingRequiredAttributeException(rootDefDescriptor, missingAttributes.iterator().next() .getName()); } } @Override public Set<AttributeDef> getMissingAttributes() throws QuickFixException { Map<DefDescriptor<AttributeDef>, AttributeDef> attrs = getRootDefinition().getAttributeDefs(); Set<AttributeDef> missingAttributes = null; for (Map.Entry<DefDescriptor<AttributeDef>, AttributeDef> attr : attrs.entrySet()) { if (attr.getValue().isRequired() && !attributes.containsKey(attr.getKey())) { if (missingAttributes == null) { missingAttributes = new HashSet<>(attrs.entrySet().size()); } missingAttributes.add(attr.getValue()); } } return missingAttributes; } private PropertyReference getPropertyReferenceByName(String name) throws InvalidDefinitionException { PropertyReference expr = new PropertyReferenceImpl(name, AuraUtil.getExternalLocation("direct attributeset access")); if (expr.size() != 1) { throw new InvalidDefinitionException("No dots allowed", expr.getLocation()); } return expr; } }
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. */ package org.apache.stanbol.entityhub.web.writer; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import javax.ws.rs.core.MediaType; import org.apache.stanbol.entityhub.servicesapi.model.Representation; import org.apache.stanbol.entityhub.web.ModelWriter; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; import org.osgi.util.tracker.ServiceTracker; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class ModelWriterTracker extends ServiceTracker { private final Logger log = LoggerFactory.getLogger(getClass()); /** * Holds the config */ private final Map<String, Map<MediaType,List<ServiceReference>>> writers = new HashMap<String,Map<MediaType,List<ServiceReference>>>(); /** * Caches requests for MediaTypes and types */ private final Map<CacheKey, Collection<ServiceReference>> cache = new HashMap<CacheKey,Collection<ServiceReference>>(); /** * lock for {@link #writers} and {@link #cache} */ private final ReadWriteLock lock = new ReentrantReadWriteLock(); @Override public Object addingService(ServiceReference reference) { Object service = super.addingService(reference); Set<MediaType> mediaTypes = parseMediaTypes(((ModelWriter)service).supportedMediaTypes()); Class<? extends Representation> nativeType = ((ModelWriter)service).getNativeType(); if(!mediaTypes.isEmpty()){ lock.writeLock().lock(); try { for(MediaType mediaType : mediaTypes){ addModelWriter(nativeType, mediaType, reference); } } finally { lock.writeLock().unlock(); } return service; } else { //else no MediaTypes registered return null; //ignore this service } } @Override public void removedService(ServiceReference reference, Object service) { if(service != null){ Set<MediaType> mediaTypes = parseMediaTypes(((ModelWriter)service).supportedMediaTypes()); Class<? extends Representation> nativeType = ((ModelWriter)service).getNativeType(); if(!mediaTypes.isEmpty()){ lock.writeLock().lock(); try { for(MediaType mediaType : mediaTypes){ removeModelWriter(nativeType, mediaType, reference); } } finally { lock.writeLock().unlock(); } } } super.removedService(reference, service); } @Override public final void modifiedService(ServiceReference reference, Object service) { super.modifiedService(reference, service); if(service != null){ Set<MediaType> mediaTypes = parseMediaTypes(((ModelWriter)service).supportedMediaTypes()); Class<? extends Representation> nativeType = ((ModelWriter)service).getNativeType(); if(!mediaTypes.isEmpty()){ lock.writeLock().lock(); try { for(MediaType mediaType : mediaTypes){ updateModelWriter(nativeType, mediaType, reference); } } finally { lock.writeLock().unlock(); } } } } /** * @param reference * @param key */ private void addModelWriter(Class<? extends Representation> nativeType, MediaType mediaType, ServiceReference reference) { //we want to have all ModelWriters under the null key log.debug(" > add ModelWriter format: {}, bundle: {}, nativeType: {}", new Object[]{mediaType, reference.getBundle(), nativeType != null ? nativeType.getName() : "none"}); Map<MediaType,List<ServiceReference>> typeWriters = writers.get(null); addTypeWriter(typeWriters, mediaType, reference); if(nativeType != null){ //register also as native type writers typeWriters = writers.get(nativeType.getName()); if(typeWriters == null){ typeWriters = new HashMap<MediaType,List<ServiceReference>>(); writers.put(nativeType.getName(), typeWriters); } addTypeWriter(typeWriters, mediaType, reference); } cache.clear(); //clear the cache after a change } /** * @param typeWriters * @param mediaType * @param reference */ private void addTypeWriter(Map<MediaType,List<ServiceReference>> typeWriters, MediaType mediaType, ServiceReference reference) { List<ServiceReference> l; l = typeWriters.get(mediaType); if(l == null){ l = new ArrayList<ServiceReference>(); typeWriters.put(mediaType, l); } l.add(reference); Collections.sort(l); //service ranking based sorting } /** * @param key * @param reference */ private void removeModelWriter(Class<? extends Representation> nativeType, MediaType mediaType, ServiceReference reference) { log.debug(" > remove ModelWriter format: {}, service: {}, nativeType: {}", new Object[]{mediaType, reference, nativeType != null ? nativeType.getClass().getName() : "none"}); Map<MediaType,List<ServiceReference>> typeWriters = writers.get(null); removeTypeWriter(typeWriters, mediaType, reference); if(nativeType != null){ typeWriters = writers.get(nativeType.getName()); if(typeWriters != null){ removeTypeWriter(typeWriters, mediaType, reference); if(typeWriters.isEmpty()){ writers.remove(nativeType.getName()); } } } cache.clear(); //clear the cache after a change } /** * @param typeWriters * @param mediaType * @param reference */ private void removeTypeWriter(Map<MediaType,List<ServiceReference>> typeWriters, MediaType mediaType, ServiceReference reference) { List<ServiceReference> l = typeWriters.get(mediaType); if(l != null && l.remove(reference) && l.isEmpty()){ writers.remove(mediaType); //remove empty mediaTypes } } /** * @param key * @param reference */ private void updateModelWriter(Class<? extends Representation> nativeType, MediaType mediaType, ServiceReference reference) { log.debug(" > update ModelWriter format: {}, service: {}, nativeType: {}", new Object[]{mediaType, reference, nativeType != null ? nativeType.getClass().getName() : "none"}); Map<MediaType,List<ServiceReference>> typeWriters = writers.get(null); updateTypeWriter(typeWriters, mediaType, reference); if(nativeType != null){ typeWriters = writers.get(nativeType.getName()); if(typeWriters != null){ updateTypeWriter(typeWriters, mediaType, reference); } } cache.clear(); //clear the cache after a change } /** * @param typeWriters * @param mediaType * @param reference */ private void updateTypeWriter(Map<MediaType,List<ServiceReference>> typeWriters, MediaType mediaType, ServiceReference reference) { List<ServiceReference> l = typeWriters.get(mediaType); if(l != null && l.contains(reference)){ Collections.sort(l); //maybe service.ranking has changed } } public ModelWriterTracker(BundleContext context) { super(context, ModelWriter.class.getName(), null); //add the union key value mapping writers.put(null, new HashMap<MediaType,List<ServiceReference>>()); } /** * @param mts * @return */ private Set<MediaType> parseMediaTypes(Collection<MediaType> mts) { if(mts == null || mts.isEmpty()){ return Collections.emptySet(); } Set<MediaType> mediaTypes = new HashSet<MediaType>(mts.size()); for(MediaType mt : mts){ if(mt != null){ //strip all parameters MediaType mediaType = mt.getParameters().isEmpty() ? mt : new MediaType(mt.getType(),mt.getSubtype()); mediaTypes.add(mediaType); } } return mediaTypes; } /** * Getter for a sorted list of References to {@link ModelWriter} that can * serialise Representations to the parsed {@link MediaType}. If a * nativeType of the Representation is given {@link ModelWriter} for that * specific type will be preferred. * @param mediaType The {@link MediaType}. Wildcards are supported * @param nativeType optionally the native type of the {@link Representation} * @return A sorted collection of references to compatible {@link ModelWriter}. * Use {@link #getService()} to receive the actual service. However note that * such calls may return <code>null</code> if the service was deactivated in * the meantime. */ public Collection<ServiceReference> getModelWriters(MediaType mediaType, Class<? extends Representation> nativeType){ Collection<ServiceReference> refs; String nativeTypeName = nativeType == null ? null : nativeType.getName(); CacheKey key = new CacheKey(mediaType, nativeTypeName); lock.readLock().lock(); try { refs = cache.get(key); } finally { lock.readLock().unlock(); } if(refs == null){ //not found in cache refs = new ArrayList<ServiceReference>(); Map<MediaType, List<ServiceReference>> typeWriters = writers.get( nativeTypeName); if(typeWriters != null){ //there are some native writers for this type refs.addAll(getTypeWriters(typeWriters, mediaType)); } if(nativeType != null){ //if we have a native type //also add writers for the generic type to the end refs.addAll(getTypeWriters(writers.get(null), mediaType)); } refs = Collections.unmodifiableCollection(refs); lock.writeLock().lock(); try { cache.put(key, refs); } finally { lock.writeLock().unlock(); } } return refs; } private Collection<ServiceReference> getTypeWriters( Map<MediaType,List<ServiceReference>> typeWriters, MediaType mediaType) { //use a linked has set to keep order but filter duplicates Collection<ServiceReference> refs = new LinkedHashSet<ServiceReference>(); boolean wildcard = mediaType.isWildcardSubtype() || mediaType.isWildcardType(); lock.readLock().lock(); try { if(!wildcard){ //add writer that explicitly mention this type first List<ServiceReference> l = typeWriters.get(mediaType); if(l != null){ refs.addAll(l); } } List<ServiceReference> wildcardMatches = null; int count = 0; for(Entry<MediaType,List<ServiceReference>> entry : typeWriters.entrySet()){ MediaType mt = entry.getKey(); if(mt.isCompatible(mediaType) && //ignore exact matches already treated above (wildcard || !mt.equals(mediaType))){ if(count == 0){ wildcardMatches = entry.getValue(); } else { if(count == 1){ wildcardMatches = new ArrayList<ServiceReference>(wildcardMatches); } wildcardMatches.addAll(entry.getValue()); } } } if(count > 1){ //sort matches for different media types Collections.sort(wildcardMatches); } //add wildcard matches to the linked has set if(count > 0){ refs.addAll(wildcardMatches); } } finally { lock.readLock().unlock(); } return refs; } @Override public ModelWriter getService() { return (ModelWriter)super.getService(); } @Override public ModelWriter getService(ServiceReference reference) { return (ModelWriter)super.getService(reference); } /** * Used as key for {@link ModelWriterTracker#cache} */ private static class CacheKey { final String nativeType; final MediaType mediaType; CacheKey(MediaType mediaType, String nativeType){ this.nativeType = nativeType; this.mediaType = mediaType; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + mediaType.hashCode(); result = prime * result + ((nativeType == null) ? 0 : nativeType.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; CacheKey other = (CacheKey) obj; if (!mediaType.equals(other.mediaType)) return false; if (nativeType == null) { if (other.nativeType != null) return false; } else if (!nativeType.equals(other.nativeType)) return false; return true; } } }
{ "pile_set_name": "Github" }
<!-- ! Licensed to the Apache Software Foundation (ASF) under one ! or more contributor license agreements. See the NOTICE file ! distributed with this work for additional information ! regarding copyright ownership. The ASF licenses this file ! to you 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. !--> ## <a id="ComparisonFunctions">Comparison Functions</a> ## ### greatest ### * Syntax: greatest(numeric_value1, numeric_value2, ...) * Computes the greatest value among arguments. * Arguments: * `numeric_value1`: a `tinyint`/`smallint`/`integer`/`bigint`/`float`/`double` value, * `numeric_value2`: a `tinyint`/`smallint`/`integer`/`bigint`/`float`/`double` value, * .... * Return Value: * the greatest values among arguments. The returning type is decided by the item type with the highest order in the numeric type promotion order (`tinyint`-> `smallint`->`integer`->`bigint`->`float`->`double`) among items. * `null` if any argument is a `missing` value or `null` value, * any other non-numeric input value will cause a type error. * Example: { "v1": greatest(1, 2, 3), "v2": greatest(float("0.5"), double("-0.5"), 5000) }; * The expected result is: { "v1": 3, "v2": 5000.0 } ### least ### * Syntax: least(numeric_value1, numeric_value2, ...) * Computes the least value among arguments. * Arguments: * `numeric_value1`: a `tinyint`/`smallint`/`integer`/`bigint`/`float`/`double` value, * `numeric_value2`: a `tinyint`/`smallint`/`integer`/`bigint`/`float`/`double` value, * .... * Return Value: * the least values among arguments. The returning type is decided by the item type with the highest order in the numeric type promotion order (`tinyint`-> `smallint`->`integer`->`bigint`->`float`->`double`) among items. * `null` if any argument is a `missing` value or `null` value, * any other non-numeric input value will cause a type error. * Example: { "v1": least(1, 2, 3), "v2": least(float("0.5"), double("-0.5"), 5000) }; * The expected result is: { "v1": 1, "v2": -0.5 }
{ "pile_set_name": "Github" }
/* [auto_generated] boost/numeric/odeint/util/ublas_wrapper.hpp [begin_description] Resizing for ublas::vector and ublas::matrix [end_description] Copyright 2011-2013 Mario Mulansky Copyright 2011-2013 Karsten Ahnert Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_NUMERIC_ODEINT_UTIL_UBLAS_WRAPPER_HPP_INCLUDED #define BOOST_NUMERIC_ODEINT_UTIL_UBLAS_WRAPPER_HPP_INCLUDED #include <boost/type_traits/integral_constant.hpp> #include <boost/numeric/ublas/vector.hpp> #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/lu.hpp> #include <boost/numeric/ublas/vector_expression.hpp> #include <boost/numeric/ublas/matrix_expression.hpp> #include <boost/numeric/odeint/algebra/vector_space_algebra.hpp> #include <boost/numeric/odeint/algebra/default_operations.hpp> #include <boost/numeric/odeint/util/is_resizeable.hpp> #include <boost/numeric/odeint/util/state_wrapper.hpp> /* extend ublas by a few operations */ /* map norm_inf onto reduce( v , default_operations::maximum ) */ namespace boost { namespace numeric { namespace odeint { template< typename T , typename A > struct vector_space_norm_inf< boost::numeric::ublas::vector<T,A> > { typedef T result_type; result_type operator()( const boost::numeric::ublas::vector<T,A> &x ) const { return boost::numeric::ublas::norm_inf( x ); } }; template< class T , class L , class A > struct vector_space_norm_inf< boost::numeric::ublas::matrix<T,L,A> > { typedef T result_type; result_type operator()( const boost::numeric::ublas::matrix<T,L,A> &x ) const { return boost::numeric::ublas::norm_inf( x ); } }; } } } /* additional operations: * abs( v ) * v / w * a + v */ namespace boost { namespace numeric { namespace ublas { // elementwise abs - calculates absolute values of the elements template<class T> struct scalar_abs: public scalar_unary_functor<T> { typedef typename scalar_unary_functor<T>::value_type value_type; typedef typename scalar_unary_functor<T>::argument_type argument_type; typedef typename scalar_unary_functor<T>::result_type result_type; static BOOST_UBLAS_INLINE result_type apply (argument_type t) { using std::abs; return abs (t); } }; // (abs v) [i] = abs (v [i]) template<class E> BOOST_UBLAS_INLINE typename vector_unary_traits<E, scalar_abs<typename E::value_type> >::result_type abs (const vector_expression<E> &e) { typedef typename vector_unary_traits<E, scalar_abs<typename E::value_type> >::expression_type expression_type; return expression_type (e ()); } // (abs m) [i] = abs (m [i]) template<class E> BOOST_UBLAS_INLINE typename matrix_unary1_traits<E, scalar_abs<typename E::value_type> >::result_type abs (const matrix_expression<E> &e) { typedef typename matrix_unary1_traits<E, scalar_abs<typename E::value_type> >::expression_type expression_type; return expression_type (e ()); } // elementwise division (v1 / v2) [i] = v1 [i] / v2 [i] template<class E1, class E2> BOOST_UBLAS_INLINE typename vector_binary_traits<E1, E2, scalar_divides<typename E1::value_type, typename E2::value_type> >::result_type operator / (const vector_expression<E1> &e1, const vector_expression<E2> &e2) { typedef typename vector_binary_traits<E1, E2, scalar_divides<typename E1::value_type, typename E2::value_type> >::expression_type expression_type; return expression_type (e1 (), e2 ()); } // elementwise division (m1 / m2) [i] = m1 [i] / m2 [i] template<class E1, class E2> BOOST_UBLAS_INLINE typename matrix_binary_traits<E1, E2, scalar_divides<typename E1::value_type, typename E2::value_type> >::result_type operator / (const matrix_expression<E1> &e1, const matrix_expression<E2> &e2) { typedef typename matrix_binary_traits<E1, E2, scalar_divides<typename E1::value_type, typename E2::value_type> >::expression_type expression_type; return expression_type (e1 (), e2 ()); } // addition with scalar // (t + v) [i] = t + v [i] template<class T1, class E2> BOOST_UBLAS_INLINE typename enable_if< is_convertible<T1, typename E2::value_type >, typename vector_binary_scalar1_traits<const T1, E2, scalar_plus<T1, typename E2::value_type> >::result_type >::type operator + (const T1 &e1, const vector_expression<E2> &e2) { typedef typename vector_binary_scalar1_traits<const T1, E2, scalar_plus<T1, typename E2::value_type> >::expression_type expression_type; return expression_type (e1, e2 ()); } // addition with scalar // (t + m) [i] = t + m [i] template<class T1, class E2> BOOST_UBLAS_INLINE typename enable_if< is_convertible<T1, typename E2::value_type >, typename matrix_binary_scalar1_traits<const T1, E2, scalar_plus<T1, typename E2::value_type> >::result_type >::type operator + (const T1 &e1, const matrix_expression<E2> &e2) { typedef typename matrix_binary_scalar1_traits<const T1, E2, scalar_plus<T1, typename E2::value_type> >::expression_type expression_type; return expression_type (e1, e2 ()); } } } } /* add resize functionality */ namespace boost { namespace numeric { namespace odeint { /* * resizeable specialization for boost::numeric::ublas::vector */ template< class T , class A > struct is_resizeable< boost::numeric::ublas::vector< T , A > > { typedef boost::true_type type; const static bool value = type::value; }; /* * resizeable specialization for boost::numeric::ublas::matrix */ template< class T , class L , class A > struct is_resizeable< boost::numeric::ublas::matrix< T , L , A > > { typedef boost::true_type type; const static bool value = type::value; }; /* * resizeable specialization for boost::numeric::ublas::permutation_matrix */ template< class T , class A > struct is_resizeable< boost::numeric::ublas::permutation_matrix< T , A > > { typedef boost::true_type type; const static bool value = type::value; }; // specialization for ublas::matrix // same size and resize specialization for matrix-matrix resizing template< class T , class L , class A , class T2 , class L2 , class A2 > struct same_size_impl< boost::numeric::ublas::matrix< T , L , A > , boost::numeric::ublas::matrix< T2 , L2 , A2 > > { static bool same_size( const boost::numeric::ublas::matrix< T , L , A > &m1 , const boost::numeric::ublas::matrix< T2 , L2 , A2 > &m2 ) { return ( ( m1.size1() == m2.size1() ) && ( m1.size2() == m2.size2() ) ); } }; template< class T , class L , class A , class T2 , class L2 , class A2 > struct resize_impl< boost::numeric::ublas::matrix< T , L , A > , boost::numeric::ublas::matrix< T2 , L2 , A2 > > { static void resize( boost::numeric::ublas::matrix< T , L , A > &m1 , const boost::numeric::ublas::matrix< T2 , L2 , A2 > &m2 ) { m1.resize( m2.size1() , m2.size2() ); } }; // same size and resize specialization for matrix-vector resizing template< class T , class L , class A , class T_V , class A_V > struct same_size_impl< boost::numeric::ublas::matrix< T , L , A > , boost::numeric::ublas::vector< T_V , A_V > > { static bool same_size( const boost::numeric::ublas::matrix< T , L , A > &m , const boost::numeric::ublas::vector< T_V , A_V > &v ) { return ( ( m.size1() == v.size() ) && ( m.size2() == v.size() ) ); } }; template< class T , class L , class A , class T_V , class A_V > struct resize_impl< boost::numeric::ublas::matrix< T , L , A > , boost::numeric::ublas::vector< T_V , A_V > > { static void resize( boost::numeric::ublas::matrix< T , L , A > &m , const boost::numeric::ublas::vector< T_V , A_V > &v ) { m.resize( v.size() , v.size() ); } }; // specialization for ublas::permutation_matrix // same size and resize specialization for matrix-vector resizing template< class T , class A , class T_V , class A_V > struct same_size_impl< boost::numeric::ublas::permutation_matrix< T , A > , boost::numeric::ublas::vector< T_V , A_V > > { static bool same_size( const boost::numeric::ublas::permutation_matrix< T , A > &m , const boost::numeric::ublas::vector< T_V , A_V > &v ) { return ( m.size() == v.size() ); // && ( m.size2() == v.size() ) ); } }; template< class T , class A , class T_V , class A_V > struct resize_impl< boost::numeric::ublas::vector< T_V , A_V > , boost::numeric::ublas::permutation_matrix< T , A > > { static void resize( const boost::numeric::ublas::vector< T_V , A_V > &v, boost::numeric::ublas::permutation_matrix< T , A > &m ) { m.resize( v.size() , v.size() ); } }; template< class T , class A > struct state_wrapper< boost::numeric::ublas::permutation_matrix< T , A > > // with resizing { typedef boost::numeric::ublas::permutation_matrix< T , A > state_type; typedef state_wrapper< state_type > state_wrapper_type; state_type m_v; state_wrapper() : m_v( 1 ) // permutation matrix constructor requires a size, choose 1 as default { } }; } } } #endif // BOOST_NUMERIC_ODEINT_UTIL_UBLAS_WRAPPER_HPP_INCLUDED
{ "pile_set_name": "Github" }
-- Loads pre-trained word embeddings from either Word2Vec or Glove assert(get_id_from_word) assert(common_w2v_freq_words) assert(total_num_words) word_vecs_size = 300 -- Loads pre-trained glove or word2vec embeddings: if opt.word_vecs == 'glove' then -- Glove downloaded from: http://nlp.stanford.edu/projects/glove/ w2v_txtfilename = default_path .. 'Glove/glove.840B.300d.txt' w2v_t7filename = opt.root_data_dir .. 'generated/glove.840B.300d.t7' w2v_reader = 'words/w2v/glove_reader.lua' elseif opt.word_vecs == 'w2v' then -- Word2Vec downloaded from: https://code.google.com/archive/p/word2vec/ w2v_binfilename = default_path .. 'Word2Vec/GoogleNews-vectors-negative300.bin' w2v_t7filename = opt.root_data_dir .. 'generated/GoogleNews-vectors-negative300.t7' w2v_reader = 'words/w2v/word2vec_reader.lua' end ---------------------- Code: ----------------------- w2vutils = {} print('==> Loading ' .. opt.word_vecs .. ' vectors') if not paths.filep(w2v_t7filename) then print(' ---> t7 file NOT found. Loading w2v from the bin/txt file instead (slower).') w2vutils.M = require(w2v_reader) print('Writing t7 File for future usage. Next time Word2Vec loading will be faster!') torch.save(w2v_t7filename, w2vutils.M) else print(' ---> from t7 file.') w2vutils.M = torch.load(w2v_t7filename) end -- Move the word embedding matrix on the GPU if we do some training. -- In this way we can perform word embedding lookup much faster. if opt and string.find(opt.type, 'cuda') then w2vutils.M = w2vutils.M:cuda() end ---------- Define additional functions ----------------- -- word -> vec w2vutils.get_w_vec = function (self,word) local w_id = get_id_from_word(word) return w2vutils.M[w_id]:clone() end -- word_id -> vec w2vutils.get_w_vec_from_id = function (self,w_id) return w2vutils.M[w_id]:clone() end w2vutils.lookup_w_vecs = function (self,word_id_tensor) assert(word_id_tensor:dim() <= 2, 'Only word id tensors w/ 1 or 2 dimensions are supported.') local output = torch.FloatTensor() local word_ids = word_id_tensor:long() if opt and string.find(opt.type, 'cuda') then output = output:cuda() word_ids = word_ids:cuda() end if word_ids:dim() == 2 then output:index(w2vutils.M, 1, word_ids:view(-1)) output = output:view(word_ids:size(1), word_ids:size(2), w2vutils.M:size(2)) elseif word_ids:dim() == 1 then output:index(w2vutils.M, 1, word_ids) output = output:view(word_ids:size(1), w2vutils.M:size(2)) end return output end -- Normalize word vectors to have norm 1 . w2vutils.renormalize = function (self) w2vutils.M[unk_w_id]:mul(0) w2vutils.M[unk_w_id]:add(1) w2vutils.M:cdiv(w2vutils.M:norm(2,2):expand(w2vutils.M:size())) local x = w2vutils.M:norm(2,2):view(-1) - 1 assert(x:norm() < 0.1, x:norm()) assert(w2vutils.M[100]:norm() < 1.001 and w2vutils.M[100]:norm() > 0.99) w2vutils.M[unk_w_id]:mul(0) end w2vutils:renormalize() print(' Done reading w2v data. Word vocab size = ' .. w2vutils.M:size(1)) -- Phrase embedding using average of vectors of words in the phrase w2vutils.phrase_avg_vec = function(self, phrase) local words = split_in_words(phrase) local num_words = table_len(words) local num_existent_words = 0 local vec = torch.zeros(word_vecs_size) for i = 1,num_words do local w = words[i] local w_id = get_id_from_word(w) if w_id ~= unk_w_id then vec:add(w2vutils:get_w_vec_from_id(w_id)) num_existent_words = num_existent_words + 1 end end if (num_existent_words > 0) then vec:div(num_existent_words) end return vec end w2vutils.top_k_closest_words = function (self,vec, k, mat) local k = k or 1 vec = vec:float() local distances = torch.mv(mat, vec) local best_scores, best_word_ids = topk(distances, k) local returnwords = {} local returndistances = {} for i = 1,k do local w = get_word_from_id(best_word_ids[i]) if is_stop_word_or_number(w) then table.insert(returnwords, red(w)) else table.insert(returnwords, w) end assert(best_scores[i] == distances[best_word_ids[i]], best_scores[i] .. ' ' .. distances[best_word_ids[i]]) table.insert(returndistances, distances[best_word_ids[i]]) end return returnwords, returndistances end w2vutils.most_similar2word = function(self, word, k) local k = k or 1 local v = w2vutils:get_w_vec(word) neighbors, scores = w2vutils:top_k_closest_words(v, k, w2vutils.M) print('To word ' .. skyblue(word) .. ' : ' .. list_with_scores_to_str(neighbors, scores)) end w2vutils.most_similar2vec = function(self, vec, k) local k = k or 1 neighbors, scores = w2vutils:top_k_closest_words(vec, k, w2vutils.M) print(list_with_scores_to_str(neighbors, scores)) end --------------------- Unit tests ---------------------------------------- local unit_tests = opt.unit_tests or false if (unit_tests) then print('\nWord to word similarity test:') w2vutils:most_similar2word('nice', 5) w2vutils:most_similar2word('france', 5) w2vutils:most_similar2word('hello', 5) end -- Computes for each word w : \sum_v exp(<v,w>) and \sum_v <v,w> w2vutils.total_word_correlation = function(self, k, j) local exp_Z = torch.zeros(w2vutils.M:narrow(1, 1, j):size(1)) local sum_t = w2vutils.M:narrow(1, 1, j):sum(1) -- 1 x d local sum_Z = (w2vutils.M:narrow(1, 1, j) * sum_t:t()):view(-1) -- num_w print(red('Top words by sum_Z:')) best_sum_Z, best_word_ids = topk(sum_Z, k) for i = 1,k do local w = get_word_from_id(best_word_ids[i]) assert(best_sum_Z[i] == sum_Z[best_word_ids[i]]) print(w .. ' [' .. best_sum_Z[i] .. ']; ') end print('\n' .. red('Bottom words by sum_Z:')) best_sum_Z, best_word_ids = topk(- sum_Z, k) for i = 1,k do local w = get_word_from_id(best_word_ids[i]) assert(best_sum_Z[i] == - sum_Z[best_word_ids[i]]) print(w .. ' [' .. sum_Z[best_word_ids[i]] .. ']; ') end end -- Plot with gnuplot: -- set palette model RGB defined ( 0 'white', 1 'pink', 2 'green' , 3 'blue', 4 'red' ) -- plot 'tsne-w2v-vecs.txt_1000' using 1:2:3 with labels offset 0,1, '' using 1:2:4 w points pt 7 ps 2 palette w2vutils.tsne = function(self, num_rand_words) local topic1 = {'japan', 'china', 'france', 'switzerland', 'romania', 'india', 'australia', 'country', 'city', 'tokyo', 'nation', 'capital', 'continent', 'europe', 'asia', 'earth', 'america'} local topic2 = {'football', 'striker', 'goalkeeper', 'basketball', 'coach', 'championship', 'cup', 'soccer', 'player', 'captain', 'qualifier', 'goal', 'under-21', 'halftime', 'standings', 'basketball', 'games', 'league', 'rugby', 'hockey', 'fifa', 'fans', 'maradona', 'mutu', 'hagi', 'beckham', 'injury', 'game', 'kick', 'penalty'} local topic_avg = {'japan national football team', 'germany national football team', 'china national football team', 'brazil soccer', 'japan soccer', 'germany soccer', 'china soccer', 'fc barcelona', 'real madrid'} local stop_words_array = {} for w,_ in pairs(stop_words) do table.insert(stop_words_array, w) end local topic1_len = table_len(topic1) local topic2_len = table_len(topic2) local topic_avg_len = table_len(topic_avg) local stop_words_len = table_len(stop_words_array) torch.setdefaulttensortype('torch.DoubleTensor') w2vutils.M = w2vutils.M:double() local tensor = torch.zeros(num_rand_words + stop_words_len + topic1_len + topic2_len + topic_avg_len, word_vecs_size) local tensor_w_ids = torch.zeros(num_rand_words) local tensor_colors = torch.zeros(tensor:size(1)) for i = 1,num_rand_words do tensor_w_ids[i] = math.random(1,25000) tensor_colors[i] = 0 tensor[i]:copy(w2vutils.M[tensor_w_ids[i]]) end for i = 1, stop_words_len do tensor_colors[num_rand_words + i] = 1 tensor[num_rand_words + i]:copy(w2vutils:phrase_avg_vec(stop_words_array[i])) end for i = 1, topic1_len do tensor_colors[num_rand_words + stop_words_len + i] = 2 tensor[num_rand_words + stop_words_len + i]:copy(w2vutils:phrase_avg_vec(topic1[i])) end for i = 1, topic2_len do tensor_colors[num_rand_words + stop_words_len + topic1_len + i] = 3 tensor[num_rand_words + stop_words_len + topic1_len + i]:copy(w2vutils:phrase_avg_vec(topic2[i])) end for i = 1, topic_avg_len do tensor_colors[num_rand_words + stop_words_len + topic1_len + topic2_len + i] = 4 tensor[num_rand_words + stop_words_len + topic1_len + topic2_len + i]:copy(w2vutils:phrase_avg_vec(topic_avg[i])) end local manifold = require 'manifold' opts = {ndims = 2, perplexity = 30, pca = 50, use_bh = false} mapped_x1 = manifold.embedding.tsne(tensor, opts) assert(mapped_x1:size(1) == tensor:size(1) and mapped_x1:size(2) == 2) ouf_vecs = assert(io.open('tsne-w2v-vecs.txt_' .. num_rand_words, "w")) for i = 1,mapped_x1:size(1) do local w = nil if tensor_colors[i] == 0 then w = get_word_from_id(tensor_w_ids[i]) elseif tensor_colors[i] == 1 then w = stop_words_array[i - num_rand_words]:gsub(' ', '-') elseif tensor_colors[i] == 2 then w = topic1[i - num_rand_words - stop_words_len]:gsub(' ', '-') elseif tensor_colors[i] == 3 then w = topic2[i - num_rand_words - stop_words_len - topic1_len]:gsub(' ', '-') elseif tensor_colors[i] == 4 then w = topic_avg[i - num_rand_words - stop_words_len - topic1_len - topic2_len]:gsub(' ', '-') end assert(w) local v = mapped_x1[i] for j = 1,2 do ouf_vecs:write(v[j] .. ' ') end ouf_vecs:write(w .. ' ' .. tensor_colors[i] .. '\n') end io.close(ouf_vecs) print(' DONE') end
{ "pile_set_name": "Github" }
// Copyright 2019 ETH Zurich // Copyright 2020 ETH Zurich, Anapaya Systems // // 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. package json_test import ( "encoding/json" "flag" "io/ioutil" "strings" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/scionproto/scion/go/lib/common" jsontopo "github.com/scionproto/scion/go/lib/topology/json" ) var ( update = flag.Bool("update", false, "set to true to update golden files") ) func TestLoadRawFromFile(t *testing.T) { referenceTopology := &jsontopo.Topology{ Timestamp: 168562800, TimestampHuman: "May 6 00:00:00 CET 1975", IA: "6-ff00:0:362", MTU: 1472, Attributes: []jsontopo.Attribute{jsontopo.Authoritative, jsontopo.AttrCore, jsontopo.Issuing, jsontopo.Voting}, BorderRouters: map[string]*jsontopo.BRInfo{ "borderrouter6-f00:0:362-1": { InternalAddr: "10.1.0.1:0", CtrlAddr: "10.1.0.1:30098", Interfaces: map[common.IFIDType]*jsontopo.BRInterface{ 91: { Underlay: jsontopo.Underlay{ Public: "192.0.2.1:4997", Remote: "192.0.2.2:4998", Bind: "10.0.0.1", }, Bandwidth: 100000, IA: "6-ff00:0:363", LinkTo: "CORE", MTU: 1472, }, }, }, "borderrouter6-f00:0:362-9": { InternalAddr: "[2001:db8:a0b:12f0::2]:0", CtrlAddr: "[2001:db8:a0b:12f0::2300]:30098", Interfaces: map[common.IFIDType]*jsontopo.BRInterface{ 32: { Underlay: jsontopo.Underlay{ Public: "[2001:db8:a0b:12f0::1]:4997", Remote: "[2001:db8:a0b:12f0::2]:4998", Bind: "2001:db8:a0b:12f0::8", }, Bandwidth: 5000, IA: "6-ff00:0:364", LinkTo: "CHILD", MTU: 4430, }, }, }, }, } if *update { b, err := json.MarshalIndent(referenceTopology, "", " ") require.NoError(t, err) b = append(b, []byte("\n")...) err = ioutil.WriteFile("testdata/topology.json", b, 0644) require.NoError(t, err) } t.Run("unmarshaled struct matches", func(t *testing.T) { loadedTopology, err := jsontopo.LoadFromFile("testdata/topology.json") assert.NoError(t, err) assert.Equal(t, referenceTopology, loadedTopology) }) t.Run("marshaled bytes match", func(t *testing.T) { referenceTopologyBytes, err := ioutil.ReadFile("testdata/topology.json") require.NoError(t, err) topologyBytes, err := json.MarshalIndent(referenceTopology, "", " ") require.NoError(t, err) assert.Equal(t, strings.TrimSpace(string(referenceTopologyBytes)), strings.TrimSpace(string(topologyBytes)), ) }) }
{ "pile_set_name": "Github" }
/* Copyright 2017 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. */ // This file was autogenerated by go-to-protobuf. Do not edit it manually! syntax = 'proto2'; package k8s.io.apimachinery.pkg.apis.meta.v1; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "v1"; // APIGroup contains the name, the supported versions, and the preferred version // of a group. message APIGroup { // name is the name of the group. optional string name = 1; // versions are the versions supported in this group. repeated GroupVersionForDiscovery versions = 2; // preferredVersion is the version preferred by the API server, which // probably is the storage version. // +optional optional GroupVersionForDiscovery preferredVersion = 3; // a map of client CIDR to server address that is serving this group. // This is to help clients reach servers in the most network-efficient way possible. // Clients can use the appropriate server address as per the CIDR that they match. // In case of multiple matches, clients should use the longest matching CIDR. // The server returns only those CIDRs that it thinks that the client can match. // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 4; } // APIGroupList is a list of APIGroup, to allow clients to discover the API at // /apis. message APIGroupList { // groups is a list of APIGroup. repeated APIGroup groups = 1; } // APIResource specifies the name of a resource and whether it is namespaced. message APIResource { // name is the name of the resource. optional string name = 1; // namespaced indicates if a resource is namespaced or not. optional bool namespaced = 2; // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') optional string kind = 3; // verbs is a list of supported kube verbs (this includes get, list, watch, create, // update, patch, delete, deletecollection, and proxy) optional Verbs verbs = 4; // shortNames is a list of suggested short names of the resource. repeated string shortNames = 5; } // APIResourceList is a list of APIResource, it is used to expose the name of the // resources supported in a specific group and version, and if the resource // is namespaced. message APIResourceList { // groupVersion is the group and version this APIResourceList is for. optional string groupVersion = 1; // resources contains the name of the resources and if they are namespaced. repeated APIResource resources = 2; } // APIVersions lists the versions that are available, to allow clients to // discover the API at /api, which is the root path of the legacy v1 API. // // +protobuf.options.(gogoproto.goproto_stringer)=false message APIVersions { // versions are the api versions that are available. repeated string versions = 1; // a map of client CIDR to server address that is serving this group. // This is to help clients reach servers in the most network-efficient way possible. // Clients can use the appropriate server address as per the CIDR that they match. // In case of multiple matches, clients should use the longest matching CIDR. // The server returns only those CIDRs that it thinks that the client can match. // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 2; } // DeleteOptions may be provided when deleting an API object. message DeleteOptions { // The duration in seconds before the object should be deleted. Value must be non-negative integer. // The value zero indicates delete immediately. If this value is nil, the default grace period for the // specified type will be used. // Defaults to a per object value if not specified. zero means delete immediately. // +optional optional int64 gracePeriodSeconds = 1; // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be // returned. // +optional optional Preconditions preconditions = 2; // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. // Should the dependent objects be orphaned. If true/false, the "orphan" // finalizer will be added to/removed from the object's finalizers list. // Either this field or PropagationPolicy may be set, but not both. // +optional optional bool orphanDependents = 3; // Whether and how garbage collection will be performed. // Either this field or OrphanDependents may be set, but not both. // The default policy is decided by the existing finalizer set in the // metadata.finalizers and the resource-specific default policy. // +optional optional string propagationPolicy = 4; } // Duration is a wrapper around time.Duration which supports correct // marshaling to YAML and JSON. In particular, it marshals into strings, which // can be used as map keys in json. message Duration { optional int64 duration = 1; } // ExportOptions is the query options to the standard REST get call. message ExportOptions { // Should this value be exported. Export strips fields that a user can not specify. optional bool export = 1; // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. optional bool exact = 2; } // GetOptions is the standard query options to the standard REST get call. message GetOptions { // When specified: // - if unset, then the result is returned from remote storage based on quorum-read flag; // - if it's 0, then we simply return what we currently have in cache, no guarantee; // - if set to non zero, then the result is at least as fresh as given rv. optional string resourceVersion = 1; } // GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying // concepts during lookup stages without having partially valid types // // +protobuf.options.(gogoproto.goproto_stringer)=false message GroupKind { optional string group = 1; optional string kind = 2; } // GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying // concepts during lookup stages without having partially valid types // // +protobuf.options.(gogoproto.goproto_stringer)=false message GroupResource { optional string group = 1; optional string resource = 2; } // GroupVersion contains the "group" and the "version", which uniquely identifies the API. // // +protobuf.options.(gogoproto.goproto_stringer)=false message GroupVersion { optional string group = 1; optional string version = 2; } // GroupVersion contains the "group/version" and "version" string of a version. // It is made a struct to keep extensibility. message GroupVersionForDiscovery { // groupVersion specifies the API group and version in the form "group/version" optional string groupVersion = 1; // version specifies the version in the form of "version". This is to save // the clients the trouble of splitting the GroupVersion. optional string version = 2; } // GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion // to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling // // +protobuf.options.(gogoproto.goproto_stringer)=false message GroupVersionKind { optional string group = 1; optional string version = 2; optional string kind = 3; } // GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion // to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling // // +protobuf.options.(gogoproto.goproto_stringer)=false message GroupVersionResource { optional string group = 1; optional string version = 2; optional string resource = 3; } // A label selector is a label query over a set of resources. The result of matchLabels and // matchExpressions are ANDed. An empty label selector matches all objects. A null // label selector matches no objects. message LabelSelector { // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels // map is equivalent to an element of matchExpressions, whose key field is "key", the // operator is "In", and the values array contains only "value". The requirements are ANDed. // +optional map<string, string> matchLabels = 1; // matchExpressions is a list of label selector requirements. The requirements are ANDed. // +optional repeated LabelSelectorRequirement matchExpressions = 2; } // A label selector requirement is a selector that contains values, a key, and an operator that // relates the key and values. message LabelSelectorRequirement { // key is the label key that the selector applies to. optional string key = 1; // operator represents a key's relationship to a set of values. // Valid operators ard In, NotIn, Exists and DoesNotExist. optional string operator = 2; // values is an array of string values. If the operator is In or NotIn, // the values array must be non-empty. If the operator is Exists or DoesNotExist, // the values array must be empty. This array is replaced during a strategic // merge patch. // +optional repeated string values = 3; } // ListMeta describes metadata that synthetic resources must have, including lists and // various status objects. A resource may have only one of {ObjectMeta, ListMeta}. message ListMeta { // SelfLink is a URL representing this object. // Populated by the system. // Read-only. // +optional optional string selfLink = 1; // String that identifies the server's internal version of this object that // can be used by clients to determine when objects have changed. // Value must be treated as opaque by clients and passed unmodified back to the server. // Populated by the system. // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency // +optional optional string resourceVersion = 2; } // ListOptions is the query options to a standard REST list call. message ListOptions { // A selector to restrict the list of returned objects by their labels. // Defaults to everything. // +optional optional string labelSelector = 1; // A selector to restrict the list of returned objects by their fields. // Defaults to everything. // +optional optional string fieldSelector = 2; // Watch for changes to the described resources and return them as a stream of // add, update, and remove notifications. Specify resourceVersion. // +optional optional bool watch = 3; // When specified with a watch call, shows changes that occur after that particular version of a resource. // Defaults to changes from the beginning of history. // When specified for list: // - if unset, then the result is returned from remote storage based on quorum-read flag; // - if it's 0, then we simply return what we currently have in cache, no guarantee; // - if set to non zero, then the result is at least as fresh as given rv. // +optional optional string resourceVersion = 4; // Timeout for the list/watch call. // +optional optional int64 timeoutSeconds = 5; } // ObjectMeta is metadata that all persisted resources must have, which includes all objects // users must create. message ObjectMeta { // Name must be unique within a namespace. Is required when creating resources, although // some resources may allow a client to request the generation of an appropriate name // automatically. Name is primarily intended for creation idempotence and configuration // definition. // Cannot be updated. // More info: http://kubernetes.io/docs/user-guide/identifiers#names // +optional optional string name = 1; // GenerateName is an optional prefix, used by the server, to generate a unique // name ONLY IF the Name field has not been provided. // If this field is used, the name returned to the client will be different // than the name passed. This value will also be combined with a unique suffix. // The provided value has the same validation rules as the Name field, // and may be truncated by the length of the suffix required to make the value // unique on the server. // // If this field is specified and the generated name exists, the server will // NOT return a 409 - instead, it will either return 201 Created or 500 with Reason // ServerTimeout indicating a unique name could not be found in the time allotted, and the client // should retry (optionally after the time indicated in the Retry-After header). // // Applied only if Name is not specified. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency // +optional optional string generateName = 2; // Namespace defines the space within each name must be unique. An empty namespace is // equivalent to the "default" namespace, but "default" is the canonical representation. // Not all objects are required to be scoped to a namespace - the value of this field for // those objects will be empty. // // Must be a DNS_LABEL. // Cannot be updated. // More info: http://kubernetes.io/docs/user-guide/namespaces // +optional optional string namespace = 3; // SelfLink is a URL representing this object. // Populated by the system. // Read-only. // +optional optional string selfLink = 4; // UID is the unique in time and space value for this object. It is typically generated by // the server on successful creation of a resource and is not allowed to change on PUT // operations. // // Populated by the system. // Read-only. // More info: http://kubernetes.io/docs/user-guide/identifiers#uids // +optional optional string uid = 5; // An opaque value that represents the internal version of this object that can // be used by clients to determine when objects have changed. May be used for optimistic // concurrency, change detection, and the watch operation on a resource or set of resources. // Clients must treat these values as opaque and passed unmodified back to the server. // They may only be valid for a particular resource or set of resources. // // Populated by the system. // Read-only. // Value must be treated as opaque by clients and . // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency // +optional optional string resourceVersion = 6; // A sequence number representing a specific generation of the desired state. // Populated by the system. Read-only. // +optional optional int64 generation = 7; // CreationTimestamp is a timestamp representing the server time when this object was // created. It is not guaranteed to be set in happens-before order across separate operations. // Clients may not set this value. It is represented in RFC3339 form and is in UTC. // // Populated by the system. // Read-only. // Null for lists. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional optional Time creationTimestamp = 8; // DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This // field is set by the server when a graceful deletion is requested by the user, and is not // directly settable by a client. The resource is expected to be deleted (no longer visible // from resource lists, and not reachable by name) after the time in this field. Once set, // this value may not be unset or be set further into the future, although it may be shortened // or the resource may be deleted prior to this time. For example, a user may request that // a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination // signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard // termination signal (SIGKILL) to the container and after cleanup, remove the pod from the // API. In the presence of network partitions, this object may still exist after this // timestamp, until an administrator or automated process can determine the resource is // fully terminated. // If not set, graceful deletion of the object has not been requested. // // Populated by the system when a graceful deletion is requested. // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional optional Time deletionTimestamp = 9; // Number of seconds allowed for this object to gracefully terminate before // it will be removed from the system. Only set when deletionTimestamp is also set. // May only be shortened. // Read-only. // +optional optional int64 deletionGracePeriodSeconds = 10; // Map of string keys and values that can be used to organize and categorize // (scope and select) objects. May match selectors of replication controllers // and services. // More info: http://kubernetes.io/docs/user-guide/labels // +optional map<string, string> labels = 11; // Annotations is an unstructured key value map stored with a resource that may be // set by external tools to store and retrieve arbitrary metadata. They are not // queryable and should be preserved when modifying objects. // More info: http://kubernetes.io/docs/user-guide/annotations // +optional map<string, string> annotations = 12; // List of objects depended by this object. If ALL objects in the list have // been deleted, this object will be garbage collected. If this object is managed by a controller, // then an entry in this list will point to this controller, with the controller field set to true. // There cannot be more than one managing controller. // +optional repeated OwnerReference ownerReferences = 13; // Must be empty before the object is deleted from the registry. Each entry // is an identifier for the responsible component that will remove the entry // from the list. If the deletionTimestamp of the object is non-nil, entries // in this list can only be removed. // +optional repeated string finalizers = 14; // The name of the cluster which the object belongs to. // This is used to distinguish resources with same name and namespace in different clusters. // This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. // +optional optional string clusterName = 15; } // OwnerReference contains enough information to let you identify an owning // object. Currently, an owning object must be in the same namespace, so there // is no namespace field. message OwnerReference { // API version of the referent. optional string apiVersion = 5; // Kind of the referent. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds optional string kind = 1; // Name of the referent. // More info: http://kubernetes.io/docs/user-guide/identifiers#names optional string name = 3; // UID of the referent. // More info: http://kubernetes.io/docs/user-guide/identifiers#uids optional string uid = 4; // If true, this reference points to the managing controller. // +optional optional bool controller = 6; // If true, AND if the owner has the "foregroundDeletion" finalizer, then // the owner cannot be deleted from the key-value store until this // reference is removed. // Defaults to false. // To set this field, a user needs "delete" permission of the owner, // otherwise 422 (Unprocessable Entity) will be returned. // +optional optional bool blockOwnerDeletion = 7; } // Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. message Preconditions { // Specifies the target UID. // +optional optional string uid = 1; } // RootPaths lists the paths available at root. // For example: "/healthz", "/apis". message RootPaths { // paths are the paths available at root. repeated string paths = 1; } // ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. message ServerAddressByClientCIDR { // The CIDR with which clients can match their IP to figure out the server address that they should use. optional string clientCIDR = 1; // Address of this server, suitable for a client that matches the above CIDR. // This can be a hostname, hostname:port, IP or IP:port. optional string serverAddress = 2; } // Status is a return value for calls that don't return other objects. message Status { // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds // +optional optional ListMeta metadata = 1; // Status of the operation. // One of: "Success" or "Failure". // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status // +optional optional string status = 2; // A human-readable description of the status of this operation. // +optional optional string message = 3; // A machine-readable description of why this operation is in the // "Failure" status. If this value is empty there // is no information available. A Reason clarifies an HTTP status // code but does not override it. // +optional optional string reason = 4; // Extended data associated with the reason. Each reason may define its // own extended details. This field is optional and the data returned // is not guaranteed to conform to any schema except that defined by // the reason type. // +optional optional StatusDetails details = 5; // Suggested HTTP return code for this status, 0 if not set. // +optional optional int32 code = 6; } // StatusCause provides more information about an api.Status failure, including // cases when multiple errors are encountered. message StatusCause { // A machine-readable description of the cause of the error. If this value is // empty there is no information available. // +optional optional string reason = 1; // A human-readable description of the cause of the error. This field may be // presented as-is to a reader. // +optional optional string message = 2; // The field of the resource that has caused this error, as named by its JSON // serialization. May include dot and postfix notation for nested attributes. // Arrays are zero-indexed. Fields may appear more than once in an array of // causes due to fields having multiple errors. // Optional. // // Examples: // "name" - the field "name" on the current resource // "items[0].name" - the field "name" on the first array entry in "items" // +optional optional string field = 3; } // StatusDetails is a set of additional properties that MAY be set by the // server to provide additional information about a response. The Reason // field of a Status object defines what attributes will be set. Clients // must ignore fields that do not match the defined type of each attribute, // and should assume that any attribute may be empty, invalid, or under // defined. message StatusDetails { // The name attribute of the resource associated with the status StatusReason // (when there is a single name which can be described). // +optional optional string name = 1; // The group attribute of the resource associated with the status StatusReason. // +optional optional string group = 2; // The kind attribute of the resource associated with the status StatusReason. // On some operations may differ from the requested resource Kind. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds // +optional optional string kind = 3; // The Causes array includes more details associated with the StatusReason // failure. Not all StatusReasons may provide detailed causes. // +optional repeated StatusCause causes = 4; // If specified, the time in seconds before the operation should be retried. // +optional optional int32 retryAfterSeconds = 5; } // Time is a wrapper around time.Time which supports correct // marshaling to YAML and JSON. Wrappers are provided for many // of the factory methods that the time package offers. // // +protobuf.options.marshal=false // +protobuf.as=Timestamp // +protobuf.options.(gogoproto.goproto_stringer)=false message Time { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to // 9999-12-31T23:59:59Z inclusive. optional int64 seconds = 1; // Non-negative fractions of a second at nanosecond resolution. Negative // second values with fractions must still have non-negative nanos values // that count forward in time. Must be from 0 to 999,999,999 // inclusive. This field may be limited in precision depending on context. optional int32 nanos = 2; } // Timestamp is a struct that is equivalent to Time, but intended for // protobuf marshalling/unmarshalling. It is generated into a serialization // that matches Time. Do not use in Go structs. message Timestamp { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to // 9999-12-31T23:59:59Z inclusive. optional int64 seconds = 1; // Non-negative fractions of a second at nanosecond resolution. Negative // second values with fractions must still have non-negative nanos values // that count forward in time. Must be from 0 to 999,999,999 // inclusive. This field may be limited in precision depending on context. optional int32 nanos = 2; } // TypeMeta describes an individual object in an API response or request // with strings representing the type of the object and its API schema version. // Structures that are versioned or persisted should inline TypeMeta. message TypeMeta { // Kind is a string value representing the REST resource this object represents. // Servers may infer this from the endpoint the client submits requests to. // Cannot be updated. // In CamelCase. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds // +optional optional string kind = 1; // APIVersion defines the versioned schema of this representation of an object. // Servers should convert recognized schemas to the latest internal value, and // may reject unrecognized values. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources // +optional optional string apiVersion = 2; } // Verbs masks the value so protobuf can generate // // +protobuf.nullable=true // +protobuf.options.(gogoproto.goproto_stringer)=false message Verbs { // items, if empty, will result in an empty slice repeated string items = 1; } // Event represents a single event to a watched resource. // // +protobuf=true message WatchEvent { optional string type = 1; // Object is: // * If Type is Added or Modified: the new state of the object. // * If Type is Deleted: the state of the object immediately before deletion. // * If Type is Error: *Status is recommended; other types may make sense // depending on context. optional k8s.io.apimachinery.pkg.runtime.RawExtension object = 2; }
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "CBaseContact.h" #import "WCDBCoding.h" @class EnterpriseRoomData, NSString; @interface CEnterpriseContact : CBaseContact <WCDBCoding> { _Bool m_bHeadImageUpdateFlag; _Bool m_bUpdateFlag; unsigned int m_uiUserFlag; unsigned int m_uiContactType; NSString *m_nsContactDisplayName; unsigned long long m_uiContactVer; NSString *m_nsProfileJumpUrl; NSString *m_nsAddMemberUrl; EnterpriseRoomData *m_oRoomData; NSString *m_nsBrandUserName; long long m___rowID; } + (id)contactFromBizChatUser:(id)arg1 brandUserName:(id)arg2; + (const basic_string_a490aa4c *)getWCDBPrimaryColumnName; + (const struct WCDBIndexHelper *)getWCDBIndexArray; + (unsigned long long)getWCDBIndexArrayCount; + (const map_0e718273 *)getFileValueTagIndexMap; + (id)getFileValueTypeTable; + (const map_0e718273 *)getPackedValueTagIndexMap; + (id)getPackedValueTypeTable; + (const map_7a576766 *)getValueNameIndexMap; + (id)getValueTable; + (id)dummyObject; @property(nonatomic) long long __rowID; // @synthesize __rowID=m___rowID; @property(nonatomic) _Bool m_bUpdateFlag; // @synthesize m_bUpdateFlag; @property(retain, nonatomic) NSString *m_nsBrandUserName; // @synthesize m_nsBrandUserName; @property(nonatomic) _Bool m_bHeadImageUpdateFlag; // @synthesize m_bHeadImageUpdateFlag; @property(retain, nonatomic) EnterpriseRoomData *m_oRoomData; // @synthesize m_oRoomData; @property(nonatomic) unsigned int m_uiContactType; // @synthesize m_uiContactType; @property(nonatomic) unsigned int m_uiUserFlag; // @synthesize m_uiUserFlag; @property(retain, nonatomic) NSString *m_nsAddMemberUrl; // @synthesize m_nsAddMemberUrl; @property(retain, nonatomic) NSString *m_nsProfileJumpUrl; // @synthesize m_nsProfileJumpUrl; @property(nonatomic) unsigned long long m_uiContactVer; // @synthesize m_uiContactVer; @property(retain, nonatomic) NSString *m_nsContactDisplayName; // @synthesize m_nsContactDisplayName; - (void).cxx_destruct; - (_Bool)isContactTop; - (_Bool)isFavorite; - (_Bool)isSelf; - (_Bool)isChatStatusNotifyOpen; - (_Bool)isChatroom; - (const map_0e718273 *)getValueTagIndexMap; - (id)getValueTypeTable; - (const WCDBCondition_d7690721 *)db_m_bUpdateFlag; - (const WCDBCondition_c6db074e *)db_m_uiDraftTime; - (const WCDBCondition_22fabacd *)db_m_nsDraft; - (const WCDBCondition_22fabacd *)db_m_nsAtUserList; - (const WCDBCondition_22fabacd *)db_m_nsBrandUserName; - (const WCDBCondition_d7690721 *)db_m_bHeadImageUpdateFlag; - (const WCDBCondition_8dd2b00c *)db_m_oRoomData; - (const WCDBCondition_c6db074e *)db_m_uiContactType; - (const WCDBCondition_c6db074e *)db_m_uiUserFlag; - (const WCDBCondition_22fabacd *)db_m_nsAddMemberUrl; - (const WCDBCondition_22fabacd *)db_m_nsHeadHDImgUrl; - (const WCDBCondition_22fabacd *)db_m_nsProfileJumpUrl; - (const WCDBCondition_7786cbb5 *)db_m_uiContactVer; - (const WCDBCondition_22fabacd *)db_m_nsContactDisplayName; - (const WCDBCondition_22fabacd *)db_m_nsUsrName; // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly, copy) NSString *description; @property(readonly) unsigned long long hash; @property(retain, nonatomic) NSString *m_nsAtUserList; @property(retain, nonatomic) NSString *m_nsDraft; @property(retain, nonatomic) NSString *m_nsHeadHDImgUrl; @property(retain, nonatomic) NSString *m_nsUsrName; @property(nonatomic) unsigned int m_uiDraftTime; @property(readonly) Class superclass; @end
{ "pile_set_name": "Github" }
/* * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ #import "EC2Response.h" /** * Authorize Security Group Ingress */ @interface EC2AuthorizeSecurityGroupIngressResponse:EC2Response { } @end
{ "pile_set_name": "Github" }
/* * Copyright 2008 The Closure Compiler 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. */ package com.google.javascript.jscomp; /** * Tests for {@link RenameLabels}. */ public class RenameLabelsTest extends CompilerTestCase { @Override protected CompilerPass getProcessor(Compiler compiler) { return new RenameLabels(compiler); } public void testRenameInFunction() { test("function x(){ Foo:a(); }", "function x(){ a(); }"); test("function x(){ Foo:{ a(); break Foo; } }", "function x(){ a:{ a(); break a; } }"); test("function x() { " + "Foo:{ " + "function goo() {" + "Foo: {" + "a(); " + "break Foo; " + "}" + "}" + "}" + "}", "function x(){function goo(){a:{ a(); break a; }}}"); test("function x() { " + "Foo:{ " + "function goo() {" + "Foo: {" + "a(); " + "break Foo; " + "}" + "}" + "break Foo;" + "}" + "}", "function x(){a:{function goo(){a:{ a(); break a; }} break a;}}"); } public void testRenameGlobals() { test("Foo:{a();}", "a();"); test("Foo:{a(); break Foo;}", "a:{a(); break a;}"); test("Foo:{Goo:a(); break Foo;}", "a:{a(); break a;}"); test("Foo:{Goo:while(1){a(); continue Goo; break Foo;}}", "a:{b:while(1){a(); continue b;break a;}}"); test("Foo:Goo:while(1){a(); continue Goo; break Foo;}", "a:b:while(1){a(); continue b;break a;}"); test("Foo:Bar:X:{ break Bar; }", "a:{ break a; }"); test("Foo:Bar:X:{ break Bar; break X; }", "a:b:{ break a; break b;}"); test("Foo:Bar:X:{ break Bar; break Foo; }", "a:b:{ break b; break a;}"); test("Foo:while (1){a(); break;}", "while (1){a(); break;}"); // Remove label that is not referenced. test("Foo:{a(); while (1) break;}", "a(); while (1) break;"); } public void testRenameReused() { test("foo:{break foo}; foo:{break foo}", "a:{break a};a:{break a}"); } }
{ "pile_set_name": "Github" }
package cdn //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 Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. // HttpCodeData is a nested struct in cdn response type HttpCodeData struct { UsageData []UsageDataInDescribeDomainHttpCodeData `json:"UsageData" xml:"UsageData"` }
{ "pile_set_name": "Github" }
/* * Copyright 2018 StreamSets Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in 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. */ package com.streamsets.pipeline.stage.processor.parser.sql; import com.streamsets.pipeline.api.base.BaseEnumChooserValues; public class JDBCTypeChooserValues extends BaseEnumChooserValues<JDBCTypes> { public JDBCTypeChooserValues() { super(JDBCTypes.class); } }
{ "pile_set_name": "Github" }
/* * Minio Cloud Storage (C) 2018 Minio, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in 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. */ import Moment from "moment" import storage from "local-storage-fallback" import * as alertActions from "../alert/actions" import * as objectsActions from "../objects/actions" import { getCurrentBucket } from "../buckets/selectors" import { getCurrentPrefix } from "../objects/selectors" import { minioBrowserPrefix } from "../constants" export const ADD = "uploads/ADD" export const UPDATE_PROGRESS = "uploads/UPDATE_PROGRESS" export const STOP = "uploads/STOP" export const SHOW_ABORT_MODAL = "uploads/SHOW_ABORT_MODAL" export const add = (slug, size, name) => ({ type: ADD, slug, size, name }) export const updateProgress = (slug, loaded) => ({ type: UPDATE_PROGRESS, slug, loaded }) export const stop = slug => ({ type: STOP, slug }) export const showAbortModal = () => ({ type: SHOW_ABORT_MODAL, show: true }) export const hideAbortModal = () => ({ type: SHOW_ABORT_MODAL, show: false }) let requests = {} export const addUpload = (xhr, slug, size, name) => { return function(dispatch) { requests[slug] = xhr dispatch(add(slug, size, name)) } } export const abortUpload = slug => { return function(dispatch) { const xhr = requests[slug] if (xhr) { xhr.abort() } dispatch(stop(slug)) dispatch(hideAbortModal()) } } export const uploadFile = file => { return function(dispatch, getState) { const state = getState() const currentBucket = getCurrentBucket(state) if (!currentBucket) { dispatch( alertActions.set({ type: "danger", message: "Please choose a bucket before trying to upload files." }) ) return } const currentPrefix = getCurrentPrefix(state) const objectName = `${currentPrefix}${file.name}` const uploadUrl = `${ window.location.origin }${minioBrowserPrefix}/upload/${currentBucket}/${objectName}` const slug = `${currentBucket}-${currentPrefix}-${file.name}` let xhr = new XMLHttpRequest() xhr.open("PUT", uploadUrl, true) xhr.withCredentials = false const token = storage.getItem("token") if (token) { xhr.setRequestHeader( "Authorization", "Bearer " + storage.getItem("token") ) } xhr.setRequestHeader( "x-amz-date", Moment() .utc() .format("YYYYMMDDTHHmmss") + "Z" ) dispatch(addUpload(xhr, slug, file.size, file.name)) xhr.onload = function(event) { if (xhr.status == 401 || xhr.status == 403) { dispatch(hideAbortModal()) dispatch(stop(slug)) dispatch( alertActions.set({ type: "danger", message: "Unauthorized request." }) ) } if (xhr.status == 500) { dispatch(hideAbortModal()) dispatch(stop(slug)) dispatch( alertActions.set({ type: "danger", message: xhr.responseText }) ) } if (xhr.status == 200) { dispatch(hideAbortModal()) dispatch(stop(slug)) dispatch( alertActions.set({ type: "success", message: "File '" + file.name + "' uploaded successfully." }) ) dispatch(objectsActions.selectPrefix(currentPrefix)) } } xhr.upload.addEventListener("error", event => { dispatch(stop(slug)) dispatch( alertActions.set({ type: "danger", message: "Error occurred uploading '" + file.name + "'." }) ) }) xhr.upload.addEventListener("progress", event => { if (event.lengthComputable) { let loaded = event.loaded let total = event.total // Update the counter dispatch(updateProgress(slug, loaded)) } }) xhr.send(file) } }
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #pragma mark - // // File: /Applications/Xcode-7GM.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices // UUID: BC90061B-82E0-3083-B8ED-645846C96184 // // Arch: i386 // Current version: 14.0.0 // Compatibility version: 1.0.0 // Source version: 622.0.0.0.0 // // // This file does not contain any Objective-C runtime information. //
{ "pile_set_name": "Github" }
/* Copyright 2014 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. */ // Package meta provides functions for retrieving API metadata from objects // belonging to the Kubernetes API package meta // import "k8s.io/apimachinery/pkg/api/meta"
{ "pile_set_name": "Github" }
-- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1116',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1122',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1124',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1126',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1128',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1134',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1140',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1148',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1150',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1158',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1168',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1172',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1176',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1178',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1181',2,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1182',2,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1188',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1195',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1197',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1203',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1207',1,'2004-05-30',2,2,2);
{ "pile_set_name": "Github" }
/* * JBoss, Home of Professional Open Source * Copyright 2012, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * 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. */ package org.jboss.weld.tests.resolution.weld911; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.shrinkwrap.api.Archive; import org.jboss.shrinkwrap.api.BeanArchive; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.weld.test.util.Utils; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; /** * @author Christian Bauer * @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a> */ @RunWith(Arquillian.class) public class DependentScopeInjectionTest { @Deployment public static Archive getDeployment() { return ShrinkWrap.create(BeanArchive.class, Utils.getDeploymentNameAsHash(DependentScopeInjectionTest.class)) .addClasses(Bar.class, BarImpl.class, Foo.class, Holder.class); } @Test public void testFoo(Holder holder) { final Foo f1 = holder.foo(); Assert.assertNotNull(f1); final Foo f2 = f1.foo(); Assert.assertNotNull(f2); Assert.assertTrue(f1 != f2); } }
{ "pile_set_name": "Github" }
//------------------------------------------------------------------------------ // GB_red: hard-coded functions for reductions //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suitesparse.com See GraphBLAS/Doc/License.txt for license. //------------------------------------------------------------------------------ // If this file is in the Generated/ folder, do not edit it (auto-generated). #include "GB.h" #ifndef GBCOMPACT #include "GB_atomics.h" #include "GB_ek_slice.h" #include "GB_control.h" #include "GB_red__include.h" // The reduction is defined by the following types and operators: // Assemble tuples: GB_red_build__eq_bool // Reduce to scalar: GB_red_scalar__eq_bool // Reduce each vector: GB_red_eachvec__eq_bool // Reduce each index: GB_red_eachindex__eq_bool // A type: bool // C type: bool // Reduce: s = (s == aij) // Identity: true // Terminal: ; #define GB_ATYPE \ bool #define GB_CTYPE \ bool // declare scalar #define GB_SCALAR(s) \ bool s // Array to array // W [k] = (ztype) S [i], with typecast #define GB_CAST_ARRAY_TO_ARRAY(W,k,S,i) \ W [k] = S [i] // W [k] += (ztype) S [i], with typecast #define GB_ADD_CAST_ARRAY_TO_ARRAY(W,k,S,i) \ W [k] = (W [k] == S [i]) // W [k] = S [i], no typecast #define GB_COPY_ARRAY_TO_ARRAY(W,k,S,i) \ W [k] = S [i] // W [k] += S [i], no typecast #define GB_ADD_ARRAY_TO_ARRAY(W,k,S,i) \ W [k] = (W [k] == S [i]) // Array to scalar // s = (ztype) Ax [p], with typecast #define GB_CAST_ARRAY_TO_SCALAR(s,Ax,p) \ s = Ax [p] // s = W [k], no typecast #define GB_COPY_ARRAY_TO_SCALAR(s,W,k) \ s = W [k] // s += (ztype) Ax [p], with typecast #define GB_ADD_CAST_ARRAY_TO_SCALAR(s,Ax,p) \ s = (s == Ax [p]) // s += S [i], no typecast #define GB_ADD_ARRAY_TO_SCALAR(s,S,i) \ s = (s == S [i]) // Scalar to array // W [k] = s, no typecast #define GB_COPY_SCALAR_TO_ARRAY(W,k,s) \ W [k] = s // W [k] += s, no typecast #define GB_ADD_SCALAR_TO_ARRAY(W,k,s) \ W [k] = (W [k] == s) // break the loop if terminal condition reached #define GB_HAS_TERMINAL \ 0 #define GB_TERMINAL_VALUE \ (none) #define GB_BREAK_IF_TERMINAL(t) \ ; // panel size for built-in operators #define GB_PANEL \ 8 // special case for the ANY monoid #define GB_IS_ANY_MONOID \ 0 // disable this operator and use the generic case if these conditions hold #define GB_DISABLE \ (GxB_NO_EQ || GxB_NO_BOOL || GxB_NO_EQ_BOOL) //------------------------------------------------------------------------------ // reduce to a scalar, for monoids only //------------------------------------------------------------------------------ GrB_Info GB_red_scalar__eq_bool ( bool *result, const GrB_Matrix A, GB_void *GB_RESTRICT W_space, int ntasks, int nthreads ) { #if GB_DISABLE return (GrB_NO_VALUE) ; #else bool s = (*result) ; #include "GB_reduce_panel.c" (*result) = s ; return (GrB_SUCCESS) ; #endif } //------------------------------------------------------------------------------ // reduce to each vector: each vector A(:,k) reduces to a scalar Tx (k) //------------------------------------------------------------------------------ GrB_Info GB_red_eachvec__eq_bool ( bool *GB_RESTRICT Tx, GrB_Matrix A, const int64_t *GB_RESTRICT kfirst_slice, const int64_t *GB_RESTRICT klast_slice, const int64_t *GB_RESTRICT pstart_slice, GB_void *Wfirst_space, GB_void *Wlast_space, int ntasks, int nthreads ) { #if GB_DISABLE return (GrB_NO_VALUE) ; #else #include "GB_reduce_each_vector.c" return (GrB_SUCCESS) ; #endif } //------------------------------------------------------------------------------ // reduce to each index: each A(i,:) reduces to a scalar T (i) //------------------------------------------------------------------------------ GrB_Info GB_red_eachindex__eq_bool ( GrB_Matrix *Thandle, GrB_Type ttype, GrB_Matrix A, const int64_t *GB_RESTRICT pstart_slice, int nth, int nthreads, GB_Context Context ) { #if GB_DISABLE return (GrB_NO_VALUE) ; #else GrB_Info info = GrB_SUCCESS ; GrB_Matrix T = NULL ; (*Thandle) = NULL ; #define GB_FREE_ALL ; #include "GB_reduce_each_index.c" (*Thandle) = T ; return (info) ; #endif } //------------------------------------------------------------------------------ // build matrix //------------------------------------------------------------------------------ GrB_Info GB_red_build__eq_bool ( bool *GB_RESTRICT Tx, int64_t *GB_RESTRICT Ti, const bool *GB_RESTRICT S, int64_t nvals, int64_t ndupl, const int64_t *GB_RESTRICT I_work, const int64_t *GB_RESTRICT K_work, const int64_t *GB_RESTRICT tstart_slice, const int64_t *GB_RESTRICT tnz_slice, int nthreads ) { #if GB_DISABLE return (GrB_NO_VALUE) ; #else #include "GB_reduce_build_template.c" return (GrB_SUCCESS) ; #endif } #endif
{ "pile_set_name": "Github" }
// // LUTheme.h // // Lunar Unity Mobile Console // https://github.com/SpaceMadness/lunar-unity-console // // Copyright 2019 Alex Lementuev, SpaceMadness. // // 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. // #import <UIKit/UIKit.h> @interface LUCellSkin : NSObject + (instancetype)cellSkin; @property (nonatomic, readonly) UIImage *icon; @property (nonatomic, readonly) UIColor *textColor; @property (nonatomic, readonly) UIColor *backgroundColorLight; @property (nonatomic, readonly) UIColor *backgroundColorDark; @property (nonatomic, readonly) UIColor *overlayTextColor; @end @interface LUButtonSkin : NSObject + (instancetype)buttonSkin; @property (nonatomic, readonly) UIImage *normalImage; @property (nonatomic, readonly) UIImage *selectedImage; @property (nonatomic, readonly) UIFont *font; @end @interface LUTheme : NSObject @property (nonatomic, readonly) UIColor *statusBarColor; @property (nonatomic, readonly) UIColor *statusBarTextColor; @property (nonatomic, readonly) UIColor *tableColor; @property (nonatomic, readonly) UIColor *logButtonTitleColor; @property (nonatomic, readonly) UIColor *logButtonTitleSelectedColor; @property (nonatomic, readonly) LUCellSkin *cellLog; @property (nonatomic, readonly) LUCellSkin *cellError; @property (nonatomic, readonly) LUCellSkin *cellWarning; @property (nonatomic, readonly) UIColor *backgroundColorLight; @property (nonatomic, readonly) UIColor *backgroundColorDark; @property (nonatomic, readonly) UIFont *font; @property (nonatomic, readonly) UIFont *fontOverlay; @property (nonatomic, readonly) UIFont *fontSmall; @property (nonatomic, readonly) NSLineBreakMode lineBreakMode; @property (nonatomic, readonly) CGFloat cellHeight; @property (nonatomic, readonly) CGFloat indentHor; @property (nonatomic, readonly) CGFloat indentVer; @property (nonatomic, readonly) CGFloat cellHeightTiny; @property (nonatomic, readonly) CGFloat indentHorTiny; @property (nonatomic, readonly) CGFloat indentVerTiny; @property (nonatomic, readonly) CGFloat buttonWidth; @property (nonatomic, readonly) CGFloat buttonHeight; @property (nonatomic, readonly) LUButtonSkin *actionButtonLargeSkin; @property (nonatomic, readonly) UIImage *collapseBackgroundImage; @property (nonatomic, readonly) UIColor *collapseBackgroundColor; @property (nonatomic, readonly) UIColor *collapseTextColor; @property (nonatomic, readonly) UIFont *actionsWarningFont; @property (nonatomic, readonly) UIColor *actionsWarningTextColor; @property (nonatomic, readonly) UIFont *actionsFont; @property (nonatomic, readonly) UIColor *actionsTextColor; @property (nonatomic, readonly) UIColor *actionsBackgroundColorLight; @property (nonatomic, readonly) UIColor *actionsBackgroundColorDark; @property (nonatomic, readonly) UIFont *actionsGroupFont; @property (nonatomic, readonly) UIColor *actionsGroupTextColor; @property (nonatomic, readonly) UIColor *actionsGroupBackgroundColor; @property (nonatomic, readonly) UIFont *contextMenuFont; @property (nonatomic, readonly) UIColor *contextMenuBackgroundColor; @property (nonatomic, readonly) UIColor *contextMenuTextColor; @property (nonatomic, readonly) UIColor *contextMenuTextHighlightColor; @property (nonatomic, readonly) UIColor *contextMenuTextProColor; @property (nonatomic, readonly) UIColor *contextMenuTextProHighlightColor; @property (nonatomic, readonly) UIFont *variableEditFont; @property (nonatomic, readonly) UIColor *variableEditTextColor; @property (nonatomic, readonly) UIColor *variableEditBackground; @property (nonatomic, readonly) UIColor *variableTextColor; @property (nonatomic, readonly) UIColor *variableVolatileTextColor; @property (nonatomic, readonly) UIFont *enumButtonFont; @property (nonatomic, readonly) UIColor *enumButtonTitleColor; @property (nonatomic, readonly) UIColor *switchTintColor; @property (nonatomic, readonly) UIImage *settingsIconImage; @property (nonatomic, readonly) UIColor *settingsTextColorUnavailable; @property (nonatomic, readonly) UIFont *logMessageDetailFont; @property (nonatomic, readonly) UIColor *logMessageStacktraceColor; + (LUTheme *)mainTheme; @end
{ "pile_set_name": "Github" }