text
stringlengths 2
100k
| meta
dict |
---|---|
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
package unix
const (
R_OK = 0x4
W_OK = 0x2
X_OK = 0x1
)
| {
"pile_set_name": "Github"
} |
<?xml version='1.0' encoding='utf-8'?>
<section xmlns="https://code.dccouncil.us/schemas/dc-library" xmlns:codified="https://code.dccouncil.us/schemas/codified" xmlns:codify="https://code.dccouncil.us/schemas/codify" xmlns:xi="http://www.w3.org/2001/XInclude" containing-doc="D.C. Code">
<num>6-1451.07</num>
<heading>Green Building Fund.</heading>
<para>
<num>(a)</num>
<text>There is established a fund designated as the Green Building Fund, which shall be separate from the General Fund of the District of Columbia. All additional monies obtained pursuant to §§ <cite path="§6-1451.05">6-1451.05</cite> and <cite path="§6-1451.08">6-1451.08</cite>, and all interest earned on those funds, shall be deposited into the Fund without regard to fiscal year limitation pursuant to an act of Congress, and used solely to pay the costs of operating and maintaining the Fund and for the purposes stated in subsection (c) of this section. All funds, interest, and other amounts deposited into the Fund shall not be transferred or revert to the General Fund of the District of Columbia at the end of any fiscal year or at any other time, but shall continually be available for the uses and purposes set forth in this section, subject to authorization by Congress in an appropriations act.</text>
</para>
<para>
<num>(b)</num>
<text>The Mayor shall administer the monies deposited in the Fund.</text>
</para>
<para>
<num>(c)</num>
<para>
<num>(1)</num>
<text>The purpose of the Fund is to streamline administrative green building processes, improve sustainability performance outcomes, build capacity of development and administrative oversight professionals in green building skills and knowledge, institutionalize innovation, overcome barriers to achieving high-performance buildings, and continuously promote the sustainability of green building practices in the District.</text>
</para>
<para>
<num>(2)</num>
<text>[The] Fund shall be used for the following:</text>
<para>
<num>(A)</num>
<text>costs for at least 3 full-time employees at DCRA, or elsewhere as assigned by the Mayor, whose primary job duties are devoted to technical assistance, plan review, and inspections and monitoring of green buildings;</text>
</para>
<para>
<num>(B)</num>
<text>Additional staff and operating costs to provide training, technical assistance, plan review, inspections and monitoring of green buildings, and green codes development;</text>
</para>
<para>
<num>(C)</num>
<text>Research and development of green building practices;</text>
</para>
<para>
<num>(D)</num>
<text>Education, training, outreach, and other market transformation initiatives; and</text>
</para>
<para>
<num>(E)</num>
<text>Seed support for demonstration projects, their evaluation, and when successful, their institutionalization.</text>
</para>
</para>
<para>
<num>(3)</num>
<text>The Mayor may receive and administer grants for the purpose of carrying out the goals of this chapter.</text>
</para>
</para>
<annotations>
<annotation doc="D.C. Law 16-234" type="History" path="§8">Mar. 8, 2007, D.C. Law 16-234, § 8, 54 DCR 377</annotation>
<annotation doc="D.C. Law 19-139" type="History">June 5, 2012, D.C. Law 19-139, § 2(f), 59 DCR 2555</annotation>
<annotation type="Effect of Amendments">“(3) Incentive funding for private buildings as provided for in <cite path="§6-1451.06">§ 6-1451.06</cite>.”</annotation>
<annotation type="Effect of Amendments">“(2) Education, training and outreach to the public and private sectors on green building practices; and</annotation>
<annotation type="Effect of Amendments">“(1) Staffing and operating costs to provide technical assistance, plan review, and inspections and monitoring of green buildings;</annotation>
<annotation type="Effect of Amendments">“(c) The Fund shall be used as follows:”</annotation>
<annotation type="Effect of Amendments"><cite doc="D.C. Law 19-139">D.C. Law 19-139</cite> rewrote subsec. (c), which formerly read:</annotation>
<annotation type="Section References">This section is referenced in <cite path="§6-1451.01">§ 6-1451.01</cite>.</annotation>
</annotations>
</section>
| {
"pile_set_name": "Github"
} |
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library services.completion.contributor.dart.local;
import 'dart:async';
import 'package:analysis_server/src/protocol.dart' as protocol
show Element, ElementKind;
import 'package:analysis_server/src/protocol.dart' hide Element, ElementKind;
import 'package:analysis_server/src/services/completion/dart_completion_manager.dart';
import 'package:analysis_server/src/services/completion/local_declaration_visitor.dart';
import 'package:analysis_server/src/services/completion/local_suggestion_builder.dart';
import 'package:analysis_server/src/services/completion/optype.dart';
import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/utilities_dart.dart';
/**
* A contributor for calculating `completion.getSuggestions` request results
* for the local library in which the completion is requested.
*/
class LocalReferenceContributor extends DartCompletionContributor {
@override
bool computeFast(DartCompletionRequest request) {
OpType optype = request.optype;
// Collect suggestions from the specific child [AstNode] that contains
// the completion offset and all of its parents recursively.
if (!optype.isPrefixed) {
if (optype.includeReturnValueSuggestions ||
optype.includeTypeNameSuggestions ||
optype.includeVoidReturnSuggestions) {
_LocalVisitor localVisitor =
new _LocalVisitor(request, request.offset, optype);
localVisitor.visit(request.target.containingNode);
}
if (optype.includeStatementLabelSuggestions ||
optype.includeCaseLabelSuggestions) {
_LabelVisitor labelVisitor = new _LabelVisitor(request,
optype.includeStatementLabelSuggestions,
optype.includeCaseLabelSuggestions);
labelVisitor.visit(request.target.containingNode);
}
if (optype.includeConstructorSuggestions) {
new _ConstructorVisitor(request).visit(request.target.containingNode);
}
}
// If target is an argument in an argument list
// then suggestions may need to be adjusted
return request.target.argIndex == null;
}
@override
Future<bool> computeFull(DartCompletionRequest request) {
_updateSuggestions(request);
return new Future.value(false);
}
/**
* If target is a function argument, suggest identifiers not invocations
*/
void _updateSuggestions(DartCompletionRequest request) {
if (request.target.isFunctionalArgument()) {
request.convertInvocationsToIdentifiers();
}
}
}
/**
* A visitor for collecting constructor suggestions.
*/
class _ConstructorVisitor extends LocalDeclarationVisitor {
final DartCompletionRequest request;
_ConstructorVisitor(DartCompletionRequest request)
: super(request.offset),
request = request;
@override
void declaredClass(ClassDeclaration declaration) {
bool found = false;
for (ClassMember member in declaration.members) {
if (member is ConstructorDeclaration) {
found = true;
_addSuggestion(declaration, member);
}
}
if (!found) {
_addSuggestion(declaration, null);
}
}
@override
void declaredClassTypeAlias(ClassTypeAlias declaration) {
// TODO: implement declaredClassTypeAlias
}
@override
void declaredField(FieldDeclaration fieldDecl, VariableDeclaration varDecl) {
// TODO: implement declaredField
}
@override
void declaredFunction(FunctionDeclaration declaration) {
// TODO: implement declaredFunction
}
@override
void declaredFunctionTypeAlias(FunctionTypeAlias declaration) {
// TODO: implement declaredFunctionTypeAlias
}
@override
void declaredLabel(Label label, bool isCaseLabel) {
// TODO: implement declaredLabel
}
@override
void declaredLocalVar(SimpleIdentifier name, TypeName type) {
// TODO: implement declaredLocalVar
}
@override
void declaredMethod(MethodDeclaration declaration) {
// TODO: implement declaredMethod
}
@override
void declaredParam(SimpleIdentifier name, TypeName type) {
// TODO: implement declaredParam
}
@override
void declaredTopLevelVar(
VariableDeclarationList varList, VariableDeclaration varDecl) {
// TODO: implement declaredTopLevelVar
}
/**
* For the given class and constructor,
* add a suggestion of the form B(...) or B.name(...).
* If the given constructor is `null`
* then add a default constructor suggestion.
*/
CompletionSuggestion _addSuggestion(
ClassDeclaration classDecl, ConstructorDeclaration constructorDecl) {
SimpleIdentifier elemId;
String completion = classDecl.name.name;
if (constructorDecl != null) {
elemId = constructorDecl.name;
if (elemId != null) {
String name = elemId.name;
if (name != null && name.length > 0) {
completion = '$completion.$name';
}
}
}
bool deprecated = constructorDecl != null && isDeprecated(constructorDecl);
List<String> parameterNames = new List<String>();
List<String> parameterTypes = new List<String>();
int requiredParameterCount = 0;
bool hasNamedParameters = false;
StringBuffer paramBuf = new StringBuffer();
paramBuf.write('(');
int paramCount = 0;
if (constructorDecl != null) {
for (FormalParameter param in constructorDecl.parameters.parameters) {
if (paramCount > 0) {
paramBuf.write(', ');
}
String paramName;
String typeName;
if (param is NormalFormalParameter) {
paramName = param.identifier.name;
typeName = _nameForParamType(param);
++requiredParameterCount;
} else if (param is DefaultFormalParameter) {
NormalFormalParameter childParam = param.parameter;
paramName = childParam.identifier.name;
typeName = _nameForParamType(childParam);
if (param.kind == ParameterKind.NAMED) {
hasNamedParameters = true;
}
if (paramCount == requiredParameterCount) {
paramBuf.write(hasNamedParameters ? '{' : '[');
}
}
parameterNames.add(paramName);
parameterTypes.add(typeName);
paramBuf.write(typeName);
paramBuf.write(' ');
paramBuf.write(paramName);
++paramCount;
}
}
if (paramCount > requiredParameterCount) {
paramBuf.write(hasNamedParameters ? '}' : ']');
}
paramBuf.write(')');
protocol.Element element = createElement(
protocol.ElementKind.CONSTRUCTOR, elemId,
parameters: paramBuf.toString());
element.returnType = classDecl.name.name;
CompletionSuggestion suggestion = new CompletionSuggestion(
CompletionSuggestionKind.INVOCATION,
deprecated ? DART_RELEVANCE_LOW : DART_RELEVANCE_DEFAULT, completion,
completion.length, 0, deprecated, false,
declaringType: classDecl.name.name,
element: element,
parameterNames: parameterNames,
parameterTypes: parameterTypes,
requiredParameterCount: requiredParameterCount,
hasNamedParameters: hasNamedParameters);
request.addSuggestion(suggestion);
return suggestion;
}
/**
* Determine the name of the type for the given constructor parameter.
*/
String _nameForParamType(NormalFormalParameter param) {
if (param is SimpleFormalParameter) {
return nameForType(param.type);
}
SimpleIdentifier id = param.identifier;
if (param is FieldFormalParameter && id != null) {
String fieldName = id.name;
AstNode classDecl = param.getAncestor((p) => p is ClassDeclaration);
if (classDecl is ClassDeclaration) {
for (ClassMember member in classDecl.members) {
if (member is FieldDeclaration) {
for (VariableDeclaration field in member.fields.variables) {
if (field.name.name == fieldName) {
return nameForType(member.fields.type);
}
}
}
}
}
}
return DYNAMIC;
}
}
/**
* A visitor for collecting suggestions for break and continue labels.
*/
class _LabelVisitor extends LocalDeclarationVisitor {
final DartCompletionRequest request;
/**
* True if statement labels should be included as suggestions.
*/
final bool includeStatementLabels;
/**
* True if case labels should be included as suggestions.
*/
final bool includeCaseLabels;
_LabelVisitor(DartCompletionRequest request, this.includeStatementLabels,
this.includeCaseLabels)
: super(request.offset),
request = request;
@override
void declaredClass(ClassDeclaration declaration) {
// ignored
}
@override
void declaredClassTypeAlias(ClassTypeAlias declaration) {
// ignored
}
@override
void declaredField(FieldDeclaration fieldDecl, VariableDeclaration varDecl) {
// ignored
}
@override
void declaredFunction(FunctionDeclaration declaration) {
// ignored
}
@override
void declaredFunctionTypeAlias(FunctionTypeAlias declaration) {
// ignored
}
@override
void declaredLabel(Label label, bool isCaseLabel) {
if (isCaseLabel ? includeCaseLabels : includeStatementLabels) {
CompletionSuggestion suggestion = _addSuggestion(label.label);
if (suggestion != null) {
suggestion.element =
_createElement(protocol.ElementKind.LABEL, label.label);
}
}
}
@override
void declaredLocalVar(SimpleIdentifier name, TypeName type) {
// ignored
}
@override
void declaredMethod(MethodDeclaration declaration) {
// ignored
}
@override
void declaredParam(SimpleIdentifier name, TypeName type) {
// ignored
}
@override
void declaredTopLevelVar(
VariableDeclarationList varList, VariableDeclaration varDecl) {
// ignored
}
@override
void visitFunctionExpression(FunctionExpression node) {
// Labels are only accessible within the local function, so stop visiting
// once we reach a function boundary.
finished();
}
@override
void visitMethodDeclaration(MethodDeclaration node) {
// Labels are only accessible within the local function, so stop visiting
// once we reach a function boundary.
finished();
}
CompletionSuggestion _addSuggestion(SimpleIdentifier id) {
if (id != null) {
String completion = id.name;
if (completion != null && completion.length > 0 && completion != '_') {
CompletionSuggestion suggestion = new CompletionSuggestion(
CompletionSuggestionKind.IDENTIFIER, DART_RELEVANCE_DEFAULT,
completion, completion.length, 0, false, false);
request.addSuggestion(suggestion);
return suggestion;
}
}
return null;
}
/**
* Create a new protocol Element for inclusion in a completion suggestion.
*/
protocol.Element _createElement(
protocol.ElementKind kind, SimpleIdentifier id) {
String name = id.name;
int flags =
protocol.Element.makeFlags(isPrivate: Identifier.isPrivateName(name));
return new protocol.Element(kind, name, flags);
}
}
/**
* A visitor for collecting suggestions from the most specific child [AstNode]
* that contains the completion offset to the [CompilationUnit].
*/
class _LocalVisitor extends LocalDeclarationVisitor {
final DartCompletionRequest request;
final OpType optype;
_LocalVisitor(this.request, int offset, this.optype) : super(offset);
@override
void declaredClass(ClassDeclaration declaration) {
if (optype.includeTypeNameSuggestions) {
bool deprecated = isDeprecated(declaration);
CompletionSuggestion suggestion = _addSuggestion(
declaration.name, NO_RETURN_TYPE, deprecated, DART_RELEVANCE_DEFAULT);
if (suggestion != null) {
suggestion.element = createElement(
protocol.ElementKind.CLASS, declaration.name,
returnType: NO_RETURN_TYPE,
isAbstract: declaration.isAbstract,
isDeprecated: deprecated);
}
}
}
@override
void declaredClassTypeAlias(ClassTypeAlias declaration) {
if (optype.includeTypeNameSuggestions) {
bool deprecated = isDeprecated(declaration);
CompletionSuggestion suggestion = _addSuggestion(
declaration.name, NO_RETURN_TYPE, deprecated, DART_RELEVANCE_DEFAULT);
if (suggestion != null) {
suggestion.element = createElement(
protocol.ElementKind.CLASS_TYPE_ALIAS, declaration.name,
returnType: NO_RETURN_TYPE,
isAbstract: true,
isDeprecated: deprecated);
}
}
}
@override
void declaredField(FieldDeclaration fieldDecl, VariableDeclaration varDecl) {
if (optype.includeReturnValueSuggestions) {
CompletionSuggestion suggestion =
createFieldSuggestion(fieldDecl, varDecl);
if (suggestion != null) {
request.addSuggestion(suggestion);
}
}
}
@override
void declaredFunction(FunctionDeclaration declaration) {
if (optype.includeReturnValueSuggestions ||
optype.includeVoidReturnSuggestions) {
TypeName returnType = declaration.returnType;
bool deprecated = isDeprecated(declaration);
protocol.ElementKind kind;
int defaultRelevance = DART_RELEVANCE_DEFAULT;
if (declaration.isGetter) {
kind = protocol.ElementKind.GETTER;
defaultRelevance = DART_RELEVANCE_LOCAL_ACCESSOR;
} else if (declaration.isSetter) {
if (!optype.includeVoidReturnSuggestions) {
return;
}
kind = protocol.ElementKind.SETTER;
returnType = NO_RETURN_TYPE;
defaultRelevance = DART_RELEVANCE_LOCAL_ACCESSOR;
} else {
if (!optype.includeVoidReturnSuggestions && _isVoid(returnType)) {
return;
}
kind = protocol.ElementKind.FUNCTION;
defaultRelevance = DART_RELEVANCE_LOCAL_FUNCTION;
}
CompletionSuggestion suggestion = _addSuggestion(
declaration.name, returnType, deprecated, defaultRelevance);
if (suggestion != null) {
FormalParameterList param = declaration.functionExpression.parameters;
suggestion.element = createElement(kind, declaration.name,
parameters: param != null ? param.toSource() : null,
returnType: returnType,
isDeprecated: deprecated);
if (kind == protocol.ElementKind.FUNCTION) {
_addParameterInfo(
suggestion, declaration.functionExpression.parameters);
}
}
}
}
@override
void declaredFunctionTypeAlias(FunctionTypeAlias declaration) {
if (optype.includeTypeNameSuggestions) {
bool deprecated = isDeprecated(declaration);
TypeName returnType = declaration.returnType;
CompletionSuggestion suggestion = _addSuggestion(
declaration.name, returnType, deprecated, DART_RELEVANCE_DEFAULT);
if (suggestion != null) {
// TODO (danrubel) determine parameters and return type
suggestion.element = createElement(
protocol.ElementKind.FUNCTION_TYPE_ALIAS, declaration.name,
returnType: returnType, isAbstract: true, isDeprecated: deprecated);
}
}
}
@override
void declaredLabel(Label label, bool isCaseLabel) {
// ignored
}
@override
void declaredLocalVar(SimpleIdentifier name, TypeName type) {
if (optype.includeReturnValueSuggestions) {
CompletionSuggestion suggestion =
_addSuggestion(name, type, false, DART_RELEVANCE_LOCAL_VARIABLE);
if (suggestion != null) {
suggestion.element = createElement(
protocol.ElementKind.LOCAL_VARIABLE, name, returnType: type);
}
}
}
@override
void declaredMethod(MethodDeclaration declaration) {
if (optype.includeReturnValueSuggestions ||
optype.includeVoidReturnSuggestions) {
protocol.ElementKind kind;
String parameters;
TypeName returnType = declaration.returnType;
int defaultRelevance = DART_RELEVANCE_DEFAULT;
if (declaration.isGetter) {
kind = protocol.ElementKind.GETTER;
parameters = null;
defaultRelevance = DART_RELEVANCE_LOCAL_ACCESSOR;
} else if (declaration.isSetter) {
if (!optype.includeVoidReturnSuggestions) {
return;
}
kind = protocol.ElementKind.SETTER;
returnType = NO_RETURN_TYPE;
defaultRelevance = DART_RELEVANCE_LOCAL_ACCESSOR;
} else {
if (!optype.includeVoidReturnSuggestions && _isVoid(returnType)) {
return;
}
kind = protocol.ElementKind.METHOD;
parameters = declaration.parameters.toSource();
defaultRelevance = DART_RELEVANCE_LOCAL_METHOD;
}
bool deprecated = isDeprecated(declaration);
CompletionSuggestion suggestion = _addSuggestion(
declaration.name, returnType, deprecated, defaultRelevance,
classDecl: declaration.parent);
if (suggestion != null) {
suggestion.element = createElement(kind, declaration.name,
parameters: parameters,
returnType: returnType,
isAbstract: declaration.isAbstract,
isDeprecated: deprecated);
if (kind == protocol.ElementKind.METHOD) {
_addParameterInfo(suggestion, declaration.parameters);
}
}
}
}
@override
void declaredParam(SimpleIdentifier name, TypeName type) {
if (optype.includeReturnValueSuggestions) {
CompletionSuggestion suggestion =
_addSuggestion(name, type, false, DART_RELEVANCE_PARAMETER);
if (suggestion != null) {
suggestion.element = createElement(protocol.ElementKind.PARAMETER, name,
returnType: type);
}
}
}
@override
void declaredTopLevelVar(
VariableDeclarationList varList, VariableDeclaration varDecl) {
if (optype.includeReturnValueSuggestions) {
bool deprecated = isDeprecated(varList) || isDeprecated(varDecl);
CompletionSuggestion suggestion = _addSuggestion(varDecl.name,
varList.type, deprecated, DART_RELEVANCE_LOCAL_TOP_LEVEL_VARIABLE);
if (suggestion != null) {
suggestion.element = createElement(
protocol.ElementKind.TOP_LEVEL_VARIABLE, varDecl.name,
returnType: varList.type, isDeprecated: deprecated);
}
}
}
void _addParameterInfo(
CompletionSuggestion suggestion, FormalParameterList parameters) {
var paramList = parameters.parameters;
suggestion.parameterNames = paramList
.map((FormalParameter param) => param.identifier.name)
.toList();
suggestion.parameterTypes = paramList.map((FormalParameter param) {
TypeName type = null;
if (param is DefaultFormalParameter) {
NormalFormalParameter child = param.parameter;
if (child is SimpleFormalParameter) {
type = child.type;
} else if (child is FieldFormalParameter) {
type = child.type;
}
}
if (param is SimpleFormalParameter) {
type = param.type;
} else if (param is FieldFormalParameter) {
type = param.type;
}
if (type == null) {
return 'dynamic';
}
Identifier typeId = type.name;
if (typeId == null) {
return 'dynamic';
}
return typeId.name;
}).toList();
suggestion.requiredParameterCount = paramList.where(
(FormalParameter param) => param is! DefaultFormalParameter).length;
suggestion.hasNamedParameters = paramList
.any((FormalParameter param) => param.kind == ParameterKind.NAMED);
}
CompletionSuggestion _addSuggestion(SimpleIdentifier id, TypeName returnType,
bool isDeprecated, int defaultRelevance, {ClassDeclaration classDecl}) {
CompletionSuggestion suggestion = createSuggestion(
id, isDeprecated, defaultRelevance, returnType, classDecl: classDecl);
if (suggestion != null) {
request.addSuggestion(suggestion);
}
return suggestion;
}
bool _isVoid(TypeName returnType) {
if (returnType != null) {
Identifier id = returnType.name;
if (id != null && id.name == 'void') {
return true;
}
}
return false;
}
}
| {
"pile_set_name": "Github"
} |
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["lua-types/jit"]
},
"tstl": {
"luaTarget": "JIT"
}
}
| {
"pile_set_name": "Github"
} |
/*
* VFIO PCI I/O Port & MMIO access
*
* Copyright (C) 2012 Red Hat, Inc. All rights reserved.
* Author: Alex Williamson <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Derived from original vfio:
* Copyright 2010 Cisco Systems, Inc. All rights reserved.
* Author: Tom Lyon, [email protected]
*/
#include <linux/fs.h>
#include <linux/pci.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <linux/vgaarb.h>
#include "vfio_pci_private.h"
/*
* Read or write from an __iomem region (MMIO or I/O port) with an excluded
* range which is inaccessible. The excluded range drops writes and fills
* reads with -1. This is intended for handling MSI-X vector tables and
* leftover space for ROM BARs.
*/
static ssize_t do_io_rw(void __iomem *io, char __user *buf,
loff_t off, size_t count, size_t x_start,
size_t x_end, bool iswrite)
{
ssize_t done = 0;
while (count) {
size_t fillable, filled;
if (off < x_start)
fillable = min(count, (size_t)(x_start - off));
else if (off >= x_end)
fillable = count;
else
fillable = 0;
if (fillable >= 4 && !(off % 4)) {
__le32 val;
if (iswrite) {
if (copy_from_user(&val, buf, 4))
return -EFAULT;
iowrite32(le32_to_cpu(val), io + off);
} else {
val = cpu_to_le32(ioread32(io + off));
if (copy_to_user(buf, &val, 4))
return -EFAULT;
}
filled = 4;
} else if (fillable >= 2 && !(off % 2)) {
__le16 val;
if (iswrite) {
if (copy_from_user(&val, buf, 2))
return -EFAULT;
iowrite16(le16_to_cpu(val), io + off);
} else {
val = cpu_to_le16(ioread16(io + off));
if (copy_to_user(buf, &val, 2))
return -EFAULT;
}
filled = 2;
} else if (fillable) {
u8 val;
if (iswrite) {
if (copy_from_user(&val, buf, 1))
return -EFAULT;
iowrite8(val, io + off);
} else {
val = ioread8(io + off);
if (copy_to_user(buf, &val, 1))
return -EFAULT;
}
filled = 1;
} else {
/* Fill reads with -1, drop writes */
filled = min(count, (size_t)(x_end - off));
if (!iswrite) {
u8 val = 0xFF;
size_t i;
for (i = 0; i < filled; i++)
if (copy_to_user(buf + i, &val, 1))
return -EFAULT;
}
}
count -= filled;
done += filled;
off += filled;
buf += filled;
}
return done;
}
ssize_t vfio_pci_bar_rw(struct vfio_pci_device *vdev, char __user *buf,
size_t count, loff_t *ppos, bool iswrite)
{
struct pci_dev *pdev = vdev->pdev;
loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK;
int bar = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
size_t x_start = 0, x_end = 0;
resource_size_t end;
void __iomem *io;
ssize_t done;
if (!pci_resource_start(pdev, bar))
return -EINVAL;
end = pci_resource_len(pdev, bar);
if (pos >= end)
return -EINVAL;
count = min(count, (size_t)(end - pos));
if (bar == PCI_ROM_RESOURCE) {
/*
* The ROM can fill less space than the BAR, so we start the
* excluded range at the end of the actual ROM. This makes
* filling large ROM BARs much faster.
*/
io = pci_map_rom(pdev, &x_start);
if (!io)
return -ENOMEM;
x_end = end;
} else if (!vdev->barmap[bar]) {
int ret;
ret = pci_request_selected_regions(pdev, 1 << bar, "vfio");
if (ret)
return ret;
io = pci_iomap(pdev, bar, 0);
if (!io) {
pci_release_selected_regions(pdev, 1 << bar);
return -ENOMEM;
}
vdev->barmap[bar] = io;
} else
io = vdev->barmap[bar];
if (bar == vdev->msix_bar) {
x_start = vdev->msix_offset;
x_end = vdev->msix_offset + vdev->msix_size;
}
done = do_io_rw(io, buf, pos, count, x_start, x_end, iswrite);
if (done >= 0)
*ppos += done;
if (bar == PCI_ROM_RESOURCE)
pci_unmap_rom(pdev, io);
return done;
}
ssize_t vfio_pci_vga_rw(struct vfio_pci_device *vdev, char __user *buf,
size_t count, loff_t *ppos, bool iswrite)
{
int ret;
loff_t off, pos = *ppos & VFIO_PCI_OFFSET_MASK;
void __iomem *iomem = NULL;
unsigned int rsrc;
bool is_ioport;
ssize_t done;
if (!vdev->has_vga)
return -EINVAL;
switch (pos) {
case 0xa0000 ... 0xbffff:
count = min(count, (size_t)(0xc0000 - pos));
iomem = ioremap_nocache(0xa0000, 0xbffff - 0xa0000 + 1);
off = pos - 0xa0000;
rsrc = VGA_RSRC_LEGACY_MEM;
is_ioport = false;
break;
case 0x3b0 ... 0x3bb:
count = min(count, (size_t)(0x3bc - pos));
iomem = ioport_map(0x3b0, 0x3bb - 0x3b0 + 1);
off = pos - 0x3b0;
rsrc = VGA_RSRC_LEGACY_IO;
is_ioport = true;
break;
case 0x3c0 ... 0x3df:
count = min(count, (size_t)(0x3e0 - pos));
iomem = ioport_map(0x3c0, 0x3df - 0x3c0 + 1);
off = pos - 0x3c0;
rsrc = VGA_RSRC_LEGACY_IO;
is_ioport = true;
break;
default:
return -EINVAL;
}
if (!iomem)
return -ENOMEM;
ret = vga_get_interruptible(vdev->pdev, rsrc);
if (ret) {
is_ioport ? ioport_unmap(iomem) : iounmap(iomem);
return ret;
}
done = do_io_rw(iomem, buf, off, count, 0, 0, iswrite);
vga_put(vdev->pdev, rsrc);
is_ioport ? ioport_unmap(iomem) : iounmap(iomem);
if (done >= 0)
*ppos += done;
return done;
}
| {
"pile_set_name": "Github"
} |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Aws.WafV2.Outputs
{
[OutputType]
public sealed class RuleGroupRuleStatementGeoMatchStatement
{
/// <summary>
/// An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values.
/// </summary>
public readonly ImmutableArray<string> CountryCodes;
/// <summary>
/// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details.
/// </summary>
public readonly Outputs.RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig? ForwardedIpConfig;
[OutputConstructor]
private RuleGroupRuleStatementGeoMatchStatement(
ImmutableArray<string> countryCodes,
Outputs.RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig? forwardedIpConfig)
{
CountryCodes = countryCodes;
ForwardedIpConfig = forwardedIpConfig;
}
}
}
| {
"pile_set_name": "Github"
} |
//
// ZoneMainCategoryTableViewCell.swift
// ZoneBarManager
//
// Created by 刘振兴 on 2017/3/16.
// Copyright © 2017年 zone. All rights reserved.
//
import UIKit
class ZoneMainCategoryTableViewCell: UITableViewCell {
@IBOutlet weak var appIconImageView: UIImageView!
@IBOutlet weak var appNameLabel: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
| {
"pile_set_name": "Github"
} |
/**
* NNStreamer custom filter to test buffer-drop
* Copyright (C) 2018 Jaeyun Jung <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.1-only
*
* @file nnscustom_drop_buffer.c
* @date 25 Jan 2019
* @author Jaeyun Jung <[email protected]>
* @brief Custom filter to drop incoming buffer (skip 9 buffers, then pass 1 buffer)
* @bug No known bugs
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <tensor_filter_custom.h>
/**
* @brief nnstreamer custom filter private data
*/
typedef struct _pt_data
{
unsigned int count; /**< This counts incoming buffer */
} pt_data;
/**
* @brief nnstreamer custom filter standard vmethod
* Refer tensor_filter_custom.h
*/
static void *
pt_init (const GstTensorFilterProperties * prop)
{
pt_data *data = (pt_data *) malloc (sizeof (pt_data));
assert (data);
data->count = 0;
return data;
}
/**
* @brief nnstreamer custom filter standard vmethod
* Refer tensor_filter_custom.h
*/
static void
pt_exit (void *_data, const GstTensorFilterProperties * prop)
{
pt_data *data = _data;
assert (data);
free (data);
}
/**
* @brief nnstreamer custom filter standard vmethod
* Refer tensor_filter_custom.h
*/
static int
set_inputDim (void *_data, const GstTensorFilterProperties * prop,
const GstTensorsInfo * in_info, GstTensorsInfo * out_info)
{
int i, t;
assert (in_info);
assert (out_info);
/** @todo use common function to copy tensor info */
out_info->num_tensors = in_info->num_tensors;
for (t = 0; t < in_info->num_tensors; t++) {
out_info->info[t].name = NULL;
out_info->info[t].type = in_info->info[t].type;
for (i = 0; i < NNS_TENSOR_RANK_LIMIT; i++) {
out_info->info[t].dimension[i] = in_info->info[t].dimension[i];
}
}
return 0;
}
/**
* @brief nnstreamer custom filter standard vmethod
* Refer tensor_filter_custom.h
*/
static int
invoke (void *_data, const GstTensorFilterProperties * prop,
const GstTensorMemory * input, GstTensorMemory * output)
{
pt_data *data = _data;
int t;
assert (data);
data->count++;
if (data->count % 10) {
/* drop this buffer */
/** @todo define enum to indicate status code */
return 2;
}
for (t = 0; t < prop->output_meta.num_tensors; t++) {
memcpy (output[t].data, input[t].data, input[t].size);
}
return 0;
}
static NNStreamer_custom_class NNStreamer_custom_body = {
.initfunc = pt_init,
.exitfunc = pt_exit,
.setInputDim = set_inputDim,
.invoke = invoke,
};
/* The dyn-loaded object */
NNStreamer_custom_class *NNStreamer_custom = &NNStreamer_custom_body;
| {
"pile_set_name": "Github"
} |
export const standard = () => ({
todos: [
{
id: 1,
body: 'Cheese',
status: '',
},
],
})
| {
"pile_set_name": "Github"
} |
//
// PageController+ContainerView.swift
// PageController
//
// Created by Hirohisa Kawasaki on 6/26/15.
// Copyright (c) 2015 Hirohisa Kawasaki. All rights reserved.
//
import UIKit
extension PageController {
class ContainerView: ScrollView {
weak var controller: PageController? {
didSet {
delegate = controller
}
}
override init(frame: CGRect) {
super.init(frame: frame)
configure()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
configure()
}
func configure() {
isDirectionalLockEnabled = true
showsHorizontalScrollIndicator = false
showsVerticalScrollIndicator = false
scrollsToTop = false
isPagingEnabled = true
}
override func layoutSubviews() {
super.layoutSubviews()
if frame.size == CGSize.zero {
return
}
if needsRecenter() {
recenter(relativeView: self)
controller?.loadPages()
}
}
}
}
| {
"pile_set_name": "Github"
} |
import React, {Component} from 'react';
import {
Image,
} from 'react-native';
//引入react-navigation依赖库
import {
TabNavigator,
} from 'react-navigation';
//展示的页面
import Home from './src/Home';
import Type from './src/Type';
import ShopCar from './src/ShopCar';
import Mine from './src/Mine';
//Tab
export default Tab = TabNavigator({
//每一个页面的配置
Home: {
screen: Home,//当前选项卡加载的页面
//配置每一个选项卡的样式
navigationOptions: {
tabBarLabel: '首页',//显示的标签文字
//显示的图片
tabBarIcon: ({tintColor}) => (
<Image
source={require('./images/ic_home.png')}
style={[{height: 24, width: 24}, {tintColor: tintColor}]}
/>
),
},
},
Type: {
screen: Type,
navigationOptions: {
tabBarLabel: '分类',
tabBarIcon: ({tintColor}) => (
<Image
source={require('./images/ic_type.png')}
style={[{height: 24, width: 24}, {tintColor: tintColor}]}/>
),
}
},
ShopCar: {
screen: ShopCar,
navigationOptions: {
tabBarLabel: '购物车',
tabBarIcon: ({tintColor}) => (
<Image
source={require('./images/ic_shop_car.png')}
style={[{height: 24, width: 24}, {tintColor: tintColor}]}/>
),
}
},
Mine: {
screen: Mine,
navigationOptions: {
tabBarLabel: '我的',
tabBarIcon: ({tintColor}) => (
<Image
source={require('./images/ic_me.png')}
style={[{height: 24, width: 24}, {tintColor: tintColor}]}/>
),
}
},
}, {
//设置TabNavigator的位置
tabBarPosition: 'bottom',
//是否在更改标签时显示动画
animationEnabled: true,
//是否允许在标签之间进行滑动
swipeEnabled: true,
//按 back 键是否跳转到第一个Tab(首页), none 为不跳转
backBehavior: "none",
//设置Tab标签的属性
tabBarOptions: {
//Android属性
upperCaseLabel: false,//是否使标签大写,默认为true
//共有属性
showIcon: true,//是否显示图标,默认关闭
showLabel: true,//是否显示label,默认开启
activeTintColor: '#EB3695',//label和icon的前景色 活跃状态下(选中)
inactiveTintColor: 'gray',//label和icon的前景色 活跃状态下(未选中)
style: { //TabNavigator 的背景颜色
backgroundColor: 'white',
height: 55,
},
indicatorStyle: {//标签指示器的样式对象(选项卡底部的行)。安卓底部会多出一条线,可以将height设置为0来暂时解决这个问题
height: 0,
},
labelStyle: {//文字的样式
fontSize: 13,
marginTop: -5,
marginBottom: 5,
},
iconStyle: {//图标的样式
marginBottom: 5,
}
},
});
| {
"pile_set_name": "Github"
} |
package cn.finalteam.rxgalleryfinal.rxbus.event;
/**
* Desction:
* Author:pengjianbo Dujinyang
* Date:16/7/28 上午12:19
*/
public class CloseMediaViewPageFragmentEvent {
}
| {
"pile_set_name": "Github"
} |
7100:
7101:
7102:
7103:
7104: Ideográf növekvő lángok vagy füstök; aroma CJK : FAn1 : Xun
7105: Ideograph (Cant.), Hogy pörkölje, megfojtja CJK-t : guk6 : ku
7106:
7107:
7108:
7109: Ideográf ezután; hogyan? miért? hol? CJK : jin1 jin4 : yan
710A: Ideográf hegesztés, forrasztás CJK : hon6 : Hàn
710B:
710C: Ideográf a CJK-hoz : ceot1 zeon3 : június
710D:
710E:
710F:
7110:
7111:
7112:
7113: Ideográf (Cant.) Onomatopoetikus, egy heves égő tüzet CJK : ham4 : Hán
7114: Ideográf láng, láng; ragyogó, lángoló CJK : yan
7115: Ideográf ragyogó CJK : wun6 : Huan
7116: Ideograph pároljuk, lassú tűzön főzzük CJK-n : mun6 : férfiak
7117: Ideograph (Cant.) Sült, sütni; elfojtja CJK-t : guk6 : Ju
7118: Ideográf ragyogás, világít; borító, boríték CJK : dou6 tou4 : Dao
7119: Ideográf száraz, lassú tűzön; süt; sült CJK : bui6 : bei
711A: Ideograph éget CJK : fan4 : mocsár
711B:
711C: Ideográf tűz, lángok; fényes, ragyogó CJK : gwan1 : Kun
711D:
711E: Ideográf halvány CJK : seon4 teon1 : hordó
711F:
7120: Ideográfus türelem; éget CJK-t : ceoi3 seoi6 : cui
7121: Ideográf negatív, nem, nem; hiánya, nincs CJK : mou4 : Wu
7122:
7123:
7124:
7125:
7126: Ideográf égett, megégett; ideges, bosszús CJK : ziu1 : Jiao
7127:
7128:
7129:
712A:
712B: Ideográf (Cant.) Forró; megégetni, éget CJK-t : naat3 : RUO
712C:
712D: Ideográf árva; egyedül, elhagyatott CJK : king4 : Qiong
712E: Ideográf hő, hő sugároz; civakodás; cauterize CJK : jan1 : Xin
712F: Ideograph nagyon rövid ideig forraljuk a zöldségeket; CJK-val kiégett : coek3 zoek3 : Chao
7130: Ideográf láng, láng; ragyogó, lángoló CJK : jim4 jim6 : yan
7131: Ideograph lángok CJK : jim6 : yan
7132:
7133:
7134: Ideográf fényes; láng CJK : juk1 : yu
7135: Ideograph az acél CJK megfeszítésére : gong3 : banda
7136: Ideográf igen igen; ígéret, CJK : jin4 : rán
7137:
7138:
7139:
713A:
713B: Ideográf légzés CJK : coeng3 : Chang
713C: Ideográf égés; süt; hő; sült CJK : Shao
713D:
713E: Ideográf (Cant.) Puha CJK : nam4 : niǎn
713F: Tajvan északkeleti részén elhelyezkedő helyrajz neve; egyfajta vastag leves CJK : gang1 : Geng
7140: Ideográf (dohányzás); CJK-t fumigál : wat1 : wei
7141: Ideográf kandalló; Puha, gyengéd CJK : nam4 sam4 : Chen
7142:
7143: Ideograph eltávolítása, megszabadulni; szórja CJK-t : kuǐ
7144:
7145: Ideográf kovácsolt fém; tökéletesítsd a képességedet CJK : dyun3 : Duan
7146: Ideográfia tomboló tűz; a CJK munkáját : dyun6 haa6 : Xia
7147: Ideográf hegesztés, forrasztás CJK : fai1 wai1 : Hui
7148:
7149: Ideográfiás olvasztás, finomítás; desztilláljuk, kondenzáljuk a CJK-t : lin6 : Lian
714A: Ideográf meleg CJK : hyun1 : Xuan
714B:
714C: Ideográf fényes, ragyogó, fényes CJK : wong4 : Huang
714D: Ideográf a füst CJK színével : cau1 : jiǎo
714E: Ideográf zsírban vagy olajban; forraljuk fel vízben CJK : zin1 : Jian
714F: Ideográf tűzzel száraz; vas CJK : bik6 : kettős
7150:
7151: Ideograph cook CJK : zyu2 : zhǔ
7152: Ideográf briliáns piros; izzó CJK : wai5 : Wei
7153:
7154:
7155: Ideográf fényes, csodálatos, dicsőséges CJK : Xi
7156: Ideograph meleg, genial CJK : hyun1 nyun5 : nuǎn
7157:
7158:
7159: Ideográf füst, korom; ópium; dohány, cigaretta CJK : jin1 : yan
715A: Ideográf tűz CJK : gwing2 : jiǒng
715B:
715C: Ideográf fényes, ragyogó, ragyogó CJK : juk1 : yu
715D: Ideograph csavart papír cigaretták világítására CJK : mei6 : Mei
715E: Ideograph rosszindulatú istenség; mérges, káros; megüt a halott CJK : saat3 : SHA
715F: Ideográf világos szoba CJK : wai6 : Wei
7160: Ideográf zsírban vagy olajban. CJK-t elfojtja : zaa3 : zha
7161:
7162: Önmagában; nincsenek barátok vagy rokonok CJK : king4 : Qiong
7163:
7164: Ideográf szén, koksz, faszén, szén CJK : mui4 : Mei
7165: Ideográf ragyogó, ragyogó, fényes CJK : wun6 : Huan
7166: Ideográf jellegű, szelíd, kegyes, nemes CJK : heoi2 jyu3 : Xu
7167: Az Ideograph ragyogás, a megvilágítás tükrözi a CJK-t : ziu3 : Zhao
7168: Ideograph pörkölt, pároljuk CJK-t : wui1 : Wei
7169: Ideográfia zavar, bosszú, baj; zavaró CJK : faan4 : ventilátor
716A:
716B:
716C: Ideograph sült; megperzsel; olvad; láng CJK : joeng4 : Yang
716D:
716E: Ideograph cook CJK : zyu2 : zhǔ
716F:
7170:
7171: Ideográf (Cant.) 火 to, hogy a CJK étkezőasztalnál húzódó ételben azonnal vékony szelet húsokat és zöldségeket forraljon : NPE1 : Gua
7172: Ideográf a hőre; főzzön egy serpenyő CJK-t : bou1 : bao
7173: Ideográf ég, CJK (főzés közben) : wu4 : HU
7174: Ideográfiás sultriness, kitartás CJK : wan3 : Yun
7175:
7176:
7177:
7178: Ideográf, hogy keverjük meg a sütés előtt vagy a CJK pörkölés előtt : bin1 pin1 : ol
7179:
717A:
717B: Ideográfia meleg; pirítóst CJK-nak : tong4 : csap
717C:
717D: Az Ideográf felkelt, ösztönöz, izgat, provokálja CJK-t : sin3 : Shan
717E:
717F:
7180: Ideograph a tűz lángja; káprázatos CJK : fong2 : huǎng
7181:
7182:
7183:
7184: Ideográf kioltották, eloltják, CJK-t töröl : sik1 : Xi
7185: Az Ideograph simítsa ki a CJK-t : wan1 wan3 : Yun
7186:
7187: Ideograph sütjük CJK-t : haau2 hok3 huk6 : ő
7188: Ideográf fényes, csodálatos, dicsőséges CJK : hei1 : Xi
7189: Ideográf sárga szín CJK : Yun
718A: Ideográf egy medve; ragyogó; fényes; CJK vezetéknév : hung4 : Xiong
718B:
718C:
718D:
718E:
718F: Ideográf füst, köd, gőz; füst, gyógymód CJK : FAn1 : Xun
7190:
7191:
7192: Ideográf ragyogás, vibrálás; ragyogó, káprázatos CJK : jing4 : Ying
7193: Ideográf tűzzel; elfojtja CJK-t : Wǔ
7194: Ideográf olvad, olvad, biztosíték; penész CJK : jung4 : Rong
7195:
7196: Ideográf ugyanaz, mint 燄 U + 71C4, láng; ragyogó, ragyogó CJK : jim6 : yan
7197: Ideograph keverjük össze, vagy forraljuk fel vízben vagy olajban, majd főzzük CJK mártással : coeng3 : Qiang
7198: Ideográf a CJK gőzre : lau4 lau6 liu1 : Liu
7199: Ideográf fényes, csodálatos, dicsőséges CJK : hei1 : Xi
719A:
719B: Ideográfus CJK : biu1 : Biao
719C:
719D: Ideográf (Cant.) Gőzzel CJK-val : luk6 : lu
719E:
719F: Ideográf főtt; érett; ismeri a CJK-t : suk6 : Shu
71A0: Ideográf világos és csillogó CJK : jap1 : Yi
71A1:
71A2:
71A3:
71A4:
71A5: Az Ideograph a CJK gőzölésével felmelegszik : tung1 : Teng
71A6:
71A7:
71A8: Ideograph vas, nyomja meg a CJK gombot : tong3 wai3 wan6 wat1 : Yun
71A9:
71AA:
71AB:
71AC: Ideográf főzni, forralni; elviselni CJK-t : ngou4 : AO
71AD:
71AE:
71AF: Ideográf tűz által CJK : hon3 hon5 : Hàn
71B0: Ideograph nagy aszály; hő CJK : au1 ngau1 : ou
71B1: Ideográf forró; hő; láz; nyughatatlan; buzgó CJK : jit6 : újra
71B2: Ideograph fényes CJK : gang2 gwing2 szárny6 : jiǒng
71B3:
71B4:
71B5: Ideográf entrópia CJK : soeng1 : Shang
71B6:
71B7:
71B8: Az Ideograph CJK-t hozott : zim1 : Jian
71B9: Ideográf homályos fény, csillogás; meleg, fényes CJK : hei1 : Xi
71BA: Ideográf homályos fény, csillogás; meleg CJK : hei1 : Xi
71BB: Ideográf a hőre; sütni; éget CJK-t : Xi
71BC:
71BD:
71BE: Ideográf égő, meleg; égetni, lángolni; csodálatos, híres CJK : CI3 : Chi
71BF:
71C0: Ideográf tűzzel; Blaze CJK-t : cin2 daan6 zin2 : chǎn
71C1: Ideográf fényes, dicsőséges, csodálatos, láng CJK : jip6 : te
71C2: Ideográf füst, füst; dohány, ópium; (Cant.) CJK-ra : cim4 taam4 : Cser
71C3: Ideográf égés; könnyű tűz, gyullad CJK-t : jin4 jin6 : rán
71C4: Ideográf láng; ragyogó, ragyogó CJK : jim6 : yan
71C5:
71C6:
71C7:
71C8: Ideográf lámpa, CJK lámpa : dang1 : Deng
71C9: Ideográf hő forrással; pörkölt CJK : dan6 deon6 : szürkésbarna
71CA: Ideograph luxus CJK : san1 : Shen
71CB: Ideográfiás égés, égés, égés; fáklya CJK : ciu4 ziu1 : Jiao
71CC:
71CD:
71CE: Ideográf, hogy égjen, álljon meg; világít; CJK jelzőlámpa : liu4 liu6 : Liao
71CF: Ideográfus CJK : wat6 : yu
71D0: Ideográf foszfor CJK : leon4 : lin
71D1:
71D2: Ideográf égés; süt; hő; sült CJK : siu1 : Shao
71D3:
71D4: Ideográf sült; éget CJK-t : faan4 : ventilátor
71D5: Ideográf fecske (madár); kényelem, élvezze a CJK-t : jin1 jin3 : yan
71D6: Ideográfiás étel melegítés CJK : cam4 : Xun
71D7: Ideográf felmelegedés kedvéért, CJK melegítésére : LAN
71D8: Ideograph (Cant.), Hogy szopni vagy rágni a fogak használata nélkül CJK : mui2 : Mei
71D9: Ideográfia kiégés, hő; mosás; vas ruhák CJK : tong3 : csap
71DA:
71DB:
71DC: Ideograph pároljuk, lassú tűzön főzzük CJK-n : mun6 : férfiak
71DD:
71DE:
71DF: Ideográf tábor, laktanya; kezelje a CJK-t : jing4 : Ying
71E0: Ideográf meleg; melegség CJK : juk1 : yu
71E1: Ideograph fényes CJK : jik6 : Yi
71E2:
71E3: Ideograph csalódott CJK : lán
71E4:
71E5: Ideográf száraz, sült, száraz; gyors CJK : cou3 : ZAO
71E6: Ideográf élénk, világító; fényes CJK : caan3 : tud
71E7: Ideograph flintstone; jelzőfény, jelzőlámpa; fáklya CJK : seoi6 : sui
71E8:
71E9:
71EA:
71EB:
71EC: Ideográf kigyullad; Blaze, tűz CJK : wai2 : huǐ
71ED: Ideográf gyertya, kúpos; ragyog, megvilágítja a CJK-t : zuk1 : Zhu
71EE: Ideográf harmonizál, keverék; állítsa be a CJK-t : sip3 sit3 : Xie
71EF:
71F0:
71F1:
71F2:
71F3:
71F4: Ideográfiás raguval, szakács, CJK zsemle : wui6 : Hui
71F5: Ideográf egy CJK lábfűtő : daat6 : dá
71F6: Ideográf (Cant.) A CJK égetéséhez : nung1 : Nong
71F7: Ideograph csalódott CJK : lán
71F8:
71F9: Ideográf tűz; vad tüzek CJK : sin2 : xiǎn
71FA: Ideograph a száraz a tűz a CJK : ő
71FB: Ideográf füst, köd, gőz; füst, gyógymód CJK : FAn1 : Xun
71FC: Ideográfiás hengerek, hamu, sárgarépa; maradványok CJK : zeon2 zeon6 : Jin
71FD:
71FE: Ideográf ragyogás, világít; borító, boríték CJK : dou6 tou4 : Dao
71FF: Ideográf ragyogás, káprázás; ragyogó, sugárzó CJK : jiu6 : Yao | {
"pile_set_name": "Github"
} |
// Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#pragma once
#include "MedusaCorePreDeclares.h"
#include "Core/Command/ICommand.h"
MEDUSA_BEGIN;
class IWaitable
{
public:
virtual bool Wait() { return true; }
virtual bool TryWait() { return true; }
virtual bool WaitFor(long milliseconds) { return true; }
virtual void Set() {}
#ifndef MEDUSA_POSIX_THREADING
virtual ThreadNativeHandle NativeHandle()const = 0;
#endif
};
MEDUSA_END;
| {
"pile_set_name": "Github"
} |
/*
* ******************************************************************************
* Copyright (c) 2014 Gabriele Mariotti.
*
* 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.marshalchen.common.ui.recyclerviewitemanimator;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.RecyclerView;
import android.view.View;
/**
* @author Gabriele Mariotti ([email protected])
*/
public class SlideScaleInOutRightItemAnimator extends BaseItemAnimator {
private float DEFAULT_SCALE_INITIAL = 0.6f;
private float mInitialScaleX = DEFAULT_SCALE_INITIAL;
private float mInitialScaleY = DEFAULT_SCALE_INITIAL;
private float mEndScaleX = DEFAULT_SCALE_INITIAL;
private float mEndScaleY = DEFAULT_SCALE_INITIAL;
private float mOriginalScaleX;
private float mOriginalScaleY;
public SlideScaleInOutRightItemAnimator(RecyclerView recyclerView) {
super(recyclerView);
setAddDuration(750);
setRemoveDuration(750);
}
protected void animateRemoveImpl(final RecyclerView.ViewHolder holder) {
final View view = holder.itemView;
ViewCompat.animate(view).cancel();
ViewCompat.animate(view).setDuration(getRemoveDuration()).
scaleX(mEndScaleX).scaleY(mEndScaleY).
translationX(+mRecyclerView.getWidth()).setListener(new VpaListenerAdapter() {
@Override
public void onAnimationEnd(View view) {
ViewCompat.setScaleX(view, mEndScaleX);
ViewCompat.setScaleY(view, mEndScaleY);
ViewCompat.setTranslationX(view, +mRecyclerView.getWidth());
dispatchRemoveFinished(holder);
mRemoveAnimations.remove(holder);
dispatchFinishedWhenDone();
}
}).start();
mRemoveAnimations.add(holder);
}
@Override
protected void prepareAnimateAdd(RecyclerView.ViewHolder holder) {
retrieveOriginalScale(holder);
ViewCompat.setScaleX(holder.itemView, mInitialScaleX);
ViewCompat.setScaleY(holder.itemView, mInitialScaleY);
ViewCompat.setTranslationX(holder.itemView, +mRecyclerView.getWidth());
}
protected void animateAddImpl(final RecyclerView.ViewHolder holder) {
final View view = holder.itemView;
ViewCompat.animate(view).cancel();
ViewCompat.animate(view).scaleX(mOriginalScaleX).scaleY(mOriginalScaleY).translationX(0)
.setDuration(getAddDuration()).
setListener(new VpaListenerAdapter() {
@Override
public void onAnimationCancel(View view) {
ViewCompat.setTranslationX(view, 0);
ViewCompat.setScaleX(view, mOriginalScaleX);
ViewCompat.setScaleY(view, mOriginalScaleY);
}
@Override
public void onAnimationEnd(View view) {
dispatchAddFinished(holder);
mAddAnimations.remove(holder);
dispatchFinishedWhenDone();
}
}).start();
mAddAnimations.add(holder);
}
public void setInitialScale(float scaleXY){
setInitialScale(scaleXY, scaleXY);
}
public void setInitialScale(float scaleX, float scaleY){
mInitialScaleX = scaleX;
mInitialScaleY = scaleY;
mEndScaleX = scaleX;
mEndScaleY = scaleY;
}
public void setEndScale(float scaleXY){
setEndScale(scaleXY, scaleXY);
}
public void setEndScale(float scaleX, float scaleY){
mEndScaleX = scaleX;
mEndScaleY = scaleY;
}
private void retrieveOriginalScale(RecyclerView.ViewHolder holder) {
mOriginalScaleX = holder.itemView.getScaleX();
mOriginalScaleY = holder.itemView.getScaleY();
}
@Override
public boolean animateChange(RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder viewHolder2, int i, int i2, int i3, int i4) {
return false;
}
}
| {
"pile_set_name": "Github"
} |
///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.cn/exception-list
//
//////////////////////////////////////////////////////////////////////////////
/*
* This file is part of MiniGUI, a mature cross-platform windowing
* and Graphics User Interface (GUI) support system for embedded systems
* and smart IoT devices.
*
* Copyright (C) 2002~2018, Beijing FMSoft Technologies Co., Ltd.
* Copyright (C) 1998~2002, WEI Yongming
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Or,
*
* As this program is a library, any link to this program must follow
* GNU General Public License version 3 (GPLv3). If you cannot accept
* GPLv3, you need to be licensed from FMSoft.
*
* If you have got a commercial license of this program, please use it
* under the terms and conditions of the commercial license.
*
* For more information about the commercial license, please refer to
* <http://www.minigui.com/blog/minigui-licensing-policy/>.
*/
/*
** sjisunimap.c: Shift-JIS to UNICODE map.
**
** Create date: 2003/02/14
*/
#include "common.h"
#ifdef _MGCHARSET_SHIFTJIS
#ifdef _MGCHARSET_UNICODE
const unsigned short __mg_jisx0208_1_unicode_map[] = {
0x3000, 0x3001, 0x3002,
0xff0c, 0xff0e, 0x30fb,
0xff1a, 0xff1b, 0xff1f,
0xff01, 0x309b, 0x309c,
0x00b4, 0xff40, 0x00a8,
0xff3e, 0xffe3, 0xff3f,
0x30fd, 0x30fe, 0x309d,
0x309e, 0x3003, 0x4edd,
0x3005, 0x3006, 0x3007,
0x30fc, 0x2015, 0x2010,
0xff0f, 0x005c, 0x301c,
0x2016, 0xff5c, 0x2026,
0x2025, 0x2018, 0x2019,
0x201c, 0x201d, 0xff08,
0xff09, 0x3014, 0x3015,
0xff3b, 0xff3d, 0xff5b,
0xff5d, 0x3008, 0x3009,
0x300a, 0x300b, 0x300c,
0x300d, 0x300e, 0x300f,
0x3010, 0x3011, 0xff0b,
0x2212, 0x00b1, 0x00d7,
0x00f7, 0xff1d, 0x2260,
0xff1c, 0xff1e, 0x2266,
0x2267, 0x221e, 0x2234,
0x2642, 0x2640, 0x00b0,
0x2032, 0x2033, 0x2103,
0xffe5, 0xff04, 0x00a2,
0x00a3, 0xff05, 0xff03,
0xff06, 0xff0a, 0xff20,
0x00a7, 0x2606, 0x2605,
0x25cb, 0x25cf, 0x25ce,
0x25c7, 0x25c6, 0x25a1,
0x25a0, 0x25b3, 0x25b2,
0x25bd, 0x25bc, 0x203b,
0x3012, 0x2192, 0x2190,
0x2191, 0x2193, 0x3013,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x2208,
0x220b, 0x2286, 0x2287,
0x2282, 0x2283, 0x222a,
0x2229, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x2227, 0x2228, 0x00ac,
0x21d2, 0x21d4, 0x2200,
0x2203, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x2220, 0x22a5, 0x2312,
0x2202, 0x2207, 0x2261,
0x2252, 0x226a, 0x226b,
0x221a, 0x223d, 0x221d,
0x2235, 0x222b, 0x222c,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x212b, 0x2030,
0x266f, 0x266d, 0x266a,
0x2020, 0x2021, 0x00b6,
0x0000, 0x0000, 0x0000,
0x0000, 0x25ef, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0xff10,
0xff11, 0xff12, 0xff13,
0xff14, 0xff15, 0xff16,
0xff17, 0xff18, 0xff19,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0xff21, 0xff22,
0xff23, 0xff24, 0xff25,
0xff26, 0xff27, 0xff28,
0xff29, 0xff2a, 0xff2b,
0xff2c, 0xff2d, 0xff2e,
0xff2f, 0xff30, 0xff31,
0xff32, 0xff33, 0xff34,
0xff35, 0xff36, 0xff37,
0xff38, 0xff39, 0xff3a,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0xff41, 0xff42, 0xff43,
0xff44, 0xff45, 0xff46,
0xff47, 0xff48, 0xff49,
0xff4a, 0xff4b, 0xff4c,
0xff4d, 0xff4e, 0xff4f,
0xff50, 0xff51, 0xff52,
0xff53, 0xff54, 0xff55,
0xff56, 0xff57, 0xff58,
0xff59, 0xff5a, 0x0000,
0x0000, 0x0000, 0x0000,
0x3041, 0x3042, 0x3043,
0x3044, 0x3045, 0x3046,
0x3047, 0x3048, 0x3049,
0x304a, 0x304b, 0x304c,
0x304d, 0x304e, 0x304f,
0x3050, 0x3051, 0x3052,
0x3053, 0x3054, 0x3055,
0x3056, 0x3057, 0x3058,
0x3059, 0x305a, 0x305b,
0x305c, 0x305d, 0x305e,
0x305f, 0x3060, 0x3061,
0x3062, 0x3063, 0x3064,
0x3065, 0x3066, 0x3067,
0x3068, 0x3069, 0x306a,
0x306b, 0x306c, 0x306d,
0x306e, 0x306f, 0x3070,
0x3071, 0x3072, 0x3073,
0x3074, 0x3075, 0x3076,
0x3077, 0x3078, 0x3079,
0x307a, 0x307b, 0x307c,
0x307d, 0x307e, 0x307f,
0x3080, 0x3081, 0x3082,
0x3083, 0x3084, 0x3085,
0x3086, 0x3087, 0x3088,
0x3089, 0x308a, 0x308b,
0x308c, 0x308d, 0x308e,
0x308f, 0x3090, 0x3091,
0x3092, 0x3093, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x30a1, 0x30a2,
0x30a3, 0x30a4, 0x30a5,
0x30a6, 0x30a7, 0x30a8,
0x30a9, 0x30aa, 0x30ab,
0x30ac, 0x30ad, 0x30ae,
0x30af, 0x30b0, 0x30b1,
0x30b2, 0x30b3, 0x30b4,
0x30b5, 0x30b6, 0x30b7,
0x30b8, 0x30b9, 0x30ba,
0x30bb, 0x30bc, 0x30bd,
0x30be, 0x30bf, 0x30c0,
0x30c1, 0x30c2, 0x30c3,
0x30c4, 0x30c5, 0x30c6,
0x30c7, 0x30c8, 0x30c9,
0x30ca, 0x30cb, 0x30cc,
0x30cd, 0x30ce, 0x30cf,
0x30d0, 0x30d1, 0x30d2,
0x30d3, 0x30d4, 0x30d5,
0x30d6, 0x30d7, 0x30d8,
0x30d9, 0x30da, 0x30db,
0x30dc, 0x30dd, 0x30de,
0x30df, 0x30e0, 0x30e1,
0x30e2, 0x30e3, 0x30e4,
0x30e5, 0x30e6, 0x30e7,
0x30e8, 0x30e9, 0x30ea,
0x30eb, 0x30ec, 0x30ed,
0x30ee, 0x30ef, 0x30f0,
0x30f1, 0x30f2, 0x30f3,
0x30f4, 0x30f5, 0x30f6,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0391,
0x0392, 0x0393, 0x0394,
0x0395, 0x0396, 0x0397,
0x0398, 0x0399, 0x039a,
0x039b, 0x039c, 0x039d,
0x039e, 0x039f, 0x03a0,
0x03a1, 0x03a3, 0x03a4,
0x03a5, 0x03a6, 0x03a7,
0x03a8, 0x03a9, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x03b1, 0x03b2,
0x03b3, 0x03b4, 0x03b5,
0x03b6, 0x03b7, 0x03b8,
0x03b9, 0x03ba, 0x03bb,
0x03bc, 0x03bd, 0x03be,
0x03bf, 0x03c0, 0x03c1,
0x03c3, 0x03c4, 0x03c5,
0x03c6, 0x03c7, 0x03c8,
0x03c9, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0410, 0x0411, 0x0412,
0x0413, 0x0414, 0x0415,
0x0401, 0x0416, 0x0417,
0x0418, 0x0419, 0x041a,
0x041b, 0x041c, 0x041d,
0x041e, 0x041f, 0x0420,
0x0421, 0x0422, 0x0423,
0x0424, 0x0425, 0x0426,
0x0427, 0x0428, 0x0429,
0x042a, 0x042b, 0x042c,
0x042d, 0x042e, 0x042f,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0430, 0x0431, 0x0432,
0x0433, 0x0434, 0x0435,
0x0451, 0x0436, 0x0437,
0x0438, 0x0439, 0x043a,
0x043b, 0x043c, 0x043d,
0x043e, 0x043f, 0x0440,
0x0441, 0x0442, 0x0443,
0x0444, 0x0445, 0x0446,
0x0447, 0x0448, 0x0449,
0x044a, 0x044b, 0x044c,
0x044d, 0x044e, 0x044f,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x2500, 0x2502,
0x250c, 0x2510, 0x2518,
0x2514, 0x251c, 0x252c,
0x2524, 0x2534, 0x253c,
0x2501, 0x2503, 0x250f,
0x2513, 0x251b, 0x2517,
0x2523, 0x2533, 0x252b,
0x253b, 0x254b, 0x2520,
0x252f, 0x2528, 0x2537,
0x253f, 0x251d, 0x2530,
0x2525, 0x2538, 0x2542,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x4e9c, 0x5516, 0x5a03,
0x963f, 0x54c0, 0x611b,
0x6328, 0x59f6, 0x9022,
0x8475, 0x831c, 0x7a50,
0x60aa, 0x63e1, 0x6e25,
0x65ed, 0x8466, 0x82a6,
0x9bf5, 0x6893, 0x5727,
0x65a1, 0x6271, 0x5b9b,
0x59d0, 0x867b, 0x98f4,
0x7d62, 0x7dbe, 0x9b8e,
0x6216, 0x7c9f, 0x88b7,
0x5b89, 0x5eb5, 0x6309,
0x6697, 0x6848, 0x95c7,
0x978d, 0x674f, 0x4ee5,
0x4f0a, 0x4f4d, 0x4f9d,
0x5049, 0x56f2, 0x5937,
0x59d4, 0x5a01, 0x5c09,
0x60df, 0x610f, 0x6170,
0x6613, 0x6905, 0x70ba,
0x754f, 0x7570, 0x79fb,
0x7dad, 0x7def, 0x80c3,
0x840e, 0x8863, 0x8b02,
0x9055, 0x907a, 0x533b,
0x4e95, 0x4ea5, 0x57df,
0x80b2, 0x90c1, 0x78ef,
0x4e00, 0x58f1, 0x6ea2,
0x9038, 0x7a32, 0x8328,
0x828b, 0x9c2f, 0x5141,
0x5370, 0x54bd, 0x54e1,
0x56e0, 0x59fb, 0x5f15,
0x98f2, 0x6deb, 0x80e4,
0x852d, 0x9662, 0x9670,
0x96a0, 0x97fb, 0x540b,
0x53f3, 0x5b87, 0x70cf,
0x7fbd, 0x8fc2, 0x96e8,
0x536f, 0x9d5c, 0x7aba,
0x4e11, 0x7893, 0x81fc,
0x6e26, 0x5618, 0x5504,
0x6b1d, 0x851a, 0x9c3b,
0x59e5, 0x53a9, 0x6d66,
0x74dc, 0x958f, 0x5642,
0x4e91, 0x904b, 0x96f2,
0x834f, 0x990c, 0x53e1,
0x55b6, 0x5b30, 0x5f71,
0x6620, 0x66f3, 0x6804,
0x6c38, 0x6cf3, 0x6d29,
0x745b, 0x76c8, 0x7a4e,
0x9834, 0x82f1, 0x885b,
0x8a60, 0x92ed, 0x6db2,
0x75ab, 0x76ca, 0x99c5,
0x60a6, 0x8b01, 0x8d8a,
0x95b2, 0x698e, 0x53ad,
0x5186, 0x5712, 0x5830,
0x5944, 0x5bb4, 0x5ef6,
0x6028, 0x63a9, 0x63f4,
0x6cbf, 0x6f14, 0x708e,
0x7114, 0x7159, 0x71d5,
0x733f, 0x7e01, 0x8276,
0x82d1, 0x8597, 0x9060,
0x925b, 0x9d1b, 0x5869,
0x65bc, 0x6c5a, 0x7525,
0x51f9, 0x592e, 0x5965,
0x5f80, 0x5fdc, 0x62bc,
0x65fa, 0x6a2a, 0x6b27,
0x6bb4, 0x738b, 0x7fc1,
0x8956, 0x9d2c, 0x9d0e,
0x9ec4, 0x5ca1, 0x6c96,
0x837b, 0x5104, 0x5c4b,
0x61b6, 0x81c6, 0x6876,
0x7261, 0x4e59, 0x4ffa,
0x5378, 0x6069, 0x6e29,
0x7a4f, 0x97f3, 0x4e0b,
0x5316, 0x4eee, 0x4f55,
0x4f3d, 0x4fa1, 0x4f73,
0x52a0, 0x53ef, 0x5609,
0x590f, 0x5ac1, 0x5bb6,
0x5be1, 0x79d1, 0x6687,
0x679c, 0x67b6, 0x6b4c,
0x6cb3, 0x706b, 0x73c2,
0x798d, 0x79be, 0x7a3c,
0x7b87, 0x82b1, 0x82db,
0x8304, 0x8377, 0x83ef,
0x83d3, 0x8766, 0x8ab2,
0x5629, 0x8ca8, 0x8fe6,
0x904e, 0x971e, 0x868a,
0x4fc4, 0x5ce8, 0x6211,
0x7259, 0x753b, 0x81e5,
0x82bd, 0x86fe, 0x8cc0,
0x96c5, 0x9913, 0x99d5,
0x4ecb, 0x4f1a, 0x89e3,
0x56de, 0x584a, 0x58ca,
0x5efb, 0x5feb, 0x602a,
0x6094, 0x6062, 0x61d0,
0x6212, 0x62d0, 0x6539,
0x9b41, 0x6666, 0x68b0,
0x6d77, 0x7070, 0x754c,
0x7686, 0x7d75, 0x82a5,
0x87f9, 0x958b, 0x968e,
0x8c9d, 0x51f1, 0x52be,
0x5916, 0x54b3, 0x5bb3,
0x5d16, 0x6168, 0x6982,
0x6daf, 0x788d, 0x84cb,
0x8857, 0x8a72, 0x93a7,
0x9ab8, 0x6d6c, 0x99a8,
0x86d9, 0x57a3, 0x67ff,
0x86ce, 0x920e, 0x5283,
0x5687, 0x5404, 0x5ed3,
0x62e1, 0x64b9, 0x683c,
0x6838, 0x6bbb, 0x7372,
0x78ba, 0x7a6b, 0x899a,
0x89d2, 0x8d6b, 0x8f03,
0x90ed, 0x95a3, 0x9694,
0x9769, 0x5b66, 0x5cb3,
0x697d, 0x984d, 0x984e,
0x639b, 0x7b20, 0x6a2b,
0x6a7f, 0x68b6, 0x9c0d,
0x6f5f, 0x5272, 0x559d,
0x6070, 0x62ec, 0x6d3b,
0x6e07, 0x6ed1, 0x845b,
0x8910, 0x8f44, 0x4e14,
0x9c39, 0x53f6, 0x691b,
0x6a3a, 0x9784, 0x682a,
0x515c, 0x7ac3, 0x84b2,
0x91dc, 0x938c, 0x565b,
0x9d28, 0x6822, 0x8305,
0x8431, 0x7ca5, 0x5208,
0x82c5, 0x74e6, 0x4e7e,
0x4f83, 0x51a0, 0x5bd2,
0x520a, 0x52d8, 0x52e7,
0x5dfb, 0x559a, 0x582a,
0x59e6, 0x5b8c, 0x5b98,
0x5bdb, 0x5e72, 0x5e79,
0x60a3, 0x611f, 0x6163,
0x61be, 0x63db, 0x6562,
0x67d1, 0x6853, 0x68fa,
0x6b3e, 0x6b53, 0x6c57,
0x6f22, 0x6f97, 0x6f45,
0x74b0, 0x7518, 0x76e3,
0x770b, 0x7aff, 0x7ba1,
0x7c21, 0x7de9, 0x7f36,
0x7ff0, 0x809d, 0x8266,
0x839e, 0x89b3, 0x8acc,
0x8cab, 0x9084, 0x9451,
0x9593, 0x9591, 0x95a2,
0x9665, 0x97d3, 0x9928,
0x8218, 0x4e38, 0x542b,
0x5cb8, 0x5dcc, 0x73a9,
0x764c, 0x773c, 0x5ca9,
0x7feb, 0x8d0b, 0x96c1,
0x9811, 0x9854, 0x9858,
0x4f01, 0x4f0e, 0x5371,
0x559c, 0x5668, 0x57fa,
0x5947, 0x5b09, 0x5bc4,
0x5c90, 0x5e0c, 0x5e7e,
0x5fcc, 0x63ee, 0x673a,
0x65d7, 0x65e2, 0x671f,
0x68cb, 0x68c4, 0x6a5f,
0x5e30, 0x6bc5, 0x6c17,
0x6c7d, 0x757f, 0x7948,
0x5b63, 0x7a00, 0x7d00,
0x5fbd, 0x898f, 0x8a18,
0x8cb4, 0x8d77, 0x8ecc,
0x8f1d, 0x98e2, 0x9a0e,
0x9b3c, 0x4e80, 0x507d,
0x5100, 0x5993, 0x5b9c,
0x622f, 0x6280, 0x64ec,
0x6b3a, 0x72a0, 0x7591,
0x7947, 0x7fa9, 0x87fb,
0x8abc, 0x8b70, 0x63ac,
0x83ca, 0x97a0, 0x5409,
0x5403, 0x55ab, 0x6854,
0x6a58, 0x8a70, 0x7827,
0x6775, 0x9ecd, 0x5374,
0x5ba2, 0x811a, 0x8650,
0x9006, 0x4e18, 0x4e45,
0x4ec7, 0x4f11, 0x53ca,
0x5438, 0x5bae, 0x5f13,
0x6025, 0x6551, 0x673d,
0x6c42, 0x6c72, 0x6ce3,
0x7078, 0x7403, 0x7a76,
0x7aae, 0x7b08, 0x7d1a,
0x7cfe, 0x7d66, 0x65e7,
0x725b, 0x53bb, 0x5c45,
0x5de8, 0x62d2, 0x62e0,
0x6319, 0x6e20, 0x865a,
0x8a31, 0x8ddd, 0x92f8,
0x6f01, 0x79a6, 0x9b5a,
0x4ea8, 0x4eab, 0x4eac,
0x4f9b, 0x4fa0, 0x50d1,
0x5147, 0x7af6, 0x5171,
0x51f6, 0x5354, 0x5321,
0x537f, 0x53eb, 0x55ac,
0x5883, 0x5ce1, 0x5f37,
0x5f4a, 0x602f, 0x6050,
0x606d, 0x631f, 0x6559,
0x6a4b, 0x6cc1, 0x72c2,
0x72ed, 0x77ef, 0x80f8,
0x8105, 0x8208, 0x854e,
0x90f7, 0x93e1, 0x97ff,
0x9957, 0x9a5a, 0x4ef0,
0x51dd, 0x5c2d, 0x6681,
0x696d, 0x5c40, 0x66f2,
0x6975, 0x7389, 0x6850,
0x7c81, 0x50c5, 0x52e4,
0x5747, 0x5dfe, 0x9326,
0x65a4, 0x6b23, 0x6b3d,
0x7434, 0x7981, 0x79bd,
0x7b4b, 0x7dca, 0x82b9,
0x83cc, 0x887f, 0x895f,
0x8b39, 0x8fd1, 0x91d1,
0x541f, 0x9280, 0x4e5d,
0x5036, 0x53e5, 0x533a,
0x72d7, 0x7396, 0x77e9,
0x82e6, 0x8eaf, 0x99c6,
0x99c8, 0x99d2, 0x5177,
0x611a, 0x865e, 0x55b0,
0x7a7a, 0x5076, 0x5bd3,
0x9047, 0x9685, 0x4e32,
0x6adb, 0x91e7, 0x5c51,
0x5c48, 0x6398, 0x7a9f,
0x6c93, 0x9774, 0x8f61,
0x7aaa, 0x718a, 0x9688,
0x7c82, 0x6817, 0x7e70,
0x6851, 0x936c, 0x52f2,
0x541b, 0x85ab, 0x8a13,
0x7fa4, 0x8ecd, 0x90e1,
0x5366, 0x8888, 0x7941,
0x4fc2, 0x50be, 0x5211,
0x5144, 0x5553, 0x572d,
0x73ea, 0x578b, 0x5951,
0x5f62, 0x5f84, 0x6075,
0x6176, 0x6167, 0x61a9,
0x63b2, 0x643a, 0x656c,
0x666f, 0x6842, 0x6e13,
0x7566, 0x7a3d, 0x7cfb,
0x7d4c, 0x7d99, 0x7e4b,
0x7f6b, 0x830e, 0x834a,
0x86cd, 0x8a08, 0x8a63,
0x8b66, 0x8efd, 0x981a,
0x9d8f, 0x82b8, 0x8fce,
0x9be8, 0x5287, 0x621f,
0x6483, 0x6fc0, 0x9699,
0x6841, 0x5091, 0x6b20,
0x6c7a, 0x6f54, 0x7a74,
0x7d50, 0x8840, 0x8a23,
0x6708, 0x4ef6, 0x5039,
0x5026, 0x5065, 0x517c,
0x5238, 0x5263, 0x55a7,
0x570f, 0x5805, 0x5acc,
0x5efa, 0x61b2, 0x61f8,
0x62f3, 0x6372, 0x691c,
0x6a29, 0x727d, 0x72ac,
0x732e, 0x7814, 0x786f,
0x7d79, 0x770c, 0x80a9,
0x898b, 0x8b19, 0x8ce2,
0x8ed2, 0x9063, 0x9375,
0x967a, 0x9855, 0x9a13,
0x9e78, 0x5143, 0x539f,
0x53b3, 0x5e7b, 0x5f26,
0x6e1b, 0x6e90, 0x7384,
0x73fe, 0x7d43, 0x8237,
0x8a00, 0x8afa, 0x9650,
0x4e4e, 0x500b, 0x53e4,
0x547c, 0x56fa, 0x59d1,
0x5b64, 0x5df1, 0x5eab,
0x5f27, 0x6238, 0x6545,
0x67af, 0x6e56, 0x72d0,
0x7cca, 0x88b4, 0x80a1,
0x80e1, 0x83f0, 0x864e,
0x8a87, 0x8de8, 0x9237,
0x96c7, 0x9867, 0x9f13,
0x4e94, 0x4e92, 0x4f0d,
0x5348, 0x5449, 0x543e,
0x5a2f, 0x5f8c, 0x5fa1,
0x609f, 0x68a7, 0x6a8e,
0x745a, 0x7881, 0x8a9e,
0x8aa4, 0x8b77, 0x9190,
0x4e5e, 0x9bc9, 0x4ea4,
0x4f7c, 0x4faf, 0x5019,
0x5016, 0x5149, 0x516c,
0x529f, 0x52b9, 0x52fe,
0x539a, 0x53e3, 0x5411,
0x540e, 0x5589, 0x5751,
0x57a2, 0x597d, 0x5b54,
0x5b5d, 0x5b8f, 0x5de5,
0x5de7, 0x5df7, 0x5e78,
0x5e83, 0x5e9a, 0x5eb7,
0x5f18, 0x6052, 0x614c,
0x6297, 0x62d8, 0x63a7,
0x653b, 0x6602, 0x6643,
0x66f4, 0x676d, 0x6821,
0x6897, 0x69cb, 0x6c5f,
0x6d2a, 0x6d69, 0x6e2f,
0x6e9d, 0x7532, 0x7687,
0x786c, 0x7a3f, 0x7ce0,
0x7d05, 0x7d18, 0x7d5e,
0x7db1, 0x8015, 0x8003,
0x80af, 0x80b1, 0x8154,
0x818f, 0x822a, 0x8352,
0x884c, 0x8861, 0x8b1b,
0x8ca2, 0x8cfc, 0x90ca,
0x9175, 0x9271, 0x783f,
0x92fc, 0x95a4, 0x964d,
0x9805, 0x9999, 0x9ad8,
0x9d3b, 0x525b, 0x52ab,
0x53f7, 0x5408, 0x58d5,
0x62f7, 0x6fe0, 0x8c6a,
0x8f5f, 0x9eb9, 0x514b,
0x523b, 0x544a, 0x56fd,
0x7a40, 0x9177, 0x9d60,
0x9ed2, 0x7344, 0x6f09,
0x8170, 0x7511, 0x5ffd,
0x60da, 0x9aa8, 0x72db,
0x8fbc, 0x6b64, 0x9803,
0x4eca, 0x56f0, 0x5764,
0x58be, 0x5a5a, 0x6068,
0x61c7, 0x660f, 0x6606,
0x6839, 0x68b1, 0x6df7,
0x75d5, 0x7d3a, 0x826e,
0x9b42, 0x4e9b, 0x4f50,
0x53c9, 0x5506, 0x5d6f,
0x5de6, 0x5dee, 0x67fb,
0x6c99, 0x7473, 0x7802,
0x8a50, 0x9396, 0x88df,
0x5750, 0x5ea7, 0x632b,
0x50b5, 0x50ac, 0x518d,
0x6700, 0x54c9, 0x585e,
0x59bb, 0x5bb0, 0x5f69,
0x624d, 0x63a1, 0x683d,
0x6b73, 0x6e08, 0x707d,
0x91c7, 0x7280, 0x7815,
0x7826, 0x796d, 0x658e,
0x7d30, 0x83dc, 0x88c1,
0x8f09, 0x969b, 0x5264,
0x5728, 0x6750, 0x7f6a,
0x8ca1, 0x51b4, 0x5742,
0x962a, 0x583a, 0x698a,
0x80b4, 0x54b2, 0x5d0e,
0x57fc, 0x7895, 0x9dfa,
0x4f5c, 0x524a, 0x548b,
0x643e, 0x6628, 0x6714,
0x67f5, 0x7a84, 0x7b56,
0x7d22, 0x932f, 0x685c,
0x9bad, 0x7b39, 0x5319,
0x518a, 0x5237, 0x5bdf,
0x62f6, 0x64ae, 0x64e6,
0x672d, 0x6bba, 0x85a9,
0x96d1, 0x7690, 0x9bd6,
0x634c, 0x9306, 0x9bab,
0x76bf, 0x6652, 0x4e09,
0x5098, 0x53c2, 0x5c71,
0x60e8, 0x6492, 0x6563,
0x685f, 0x71e6, 0x73ca,
0x7523, 0x7b97, 0x7e82,
0x8695, 0x8b83, 0x8cdb,
0x9178, 0x9910, 0x65ac,
0x66ab, 0x6b8b, 0x4ed5,
0x4ed4, 0x4f3a, 0x4f7f,
0x523a, 0x53f8, 0x53f2,
0x55e3, 0x56db, 0x58eb,
0x59cb, 0x59c9, 0x59ff,
0x5b50, 0x5c4d, 0x5e02,
0x5e2b, 0x5fd7, 0x601d,
0x6307, 0x652f, 0x5b5c,
0x65af, 0x65bd, 0x65e8,
0x679d, 0x6b62, 0x6b7b,
0x6c0f, 0x7345, 0x7949,
0x79c1, 0x7cf8, 0x7d19,
0x7d2b, 0x80a2, 0x8102,
0x81f3, 0x8996, 0x8a5e,
0x8a69, 0x8a66, 0x8a8c,
0x8aee, 0x8cc7, 0x8cdc,
0x96cc, 0x98fc, 0x6b6f,
0x4e8b, 0x4f3c, 0x4f8d,
0x5150, 0x5b57, 0x5bfa,
0x6148, 0x6301, 0x6642,
0x6b21, 0x6ecb, 0x6cbb,
0x723e, 0x74bd, 0x75d4,
0x78c1, 0x793a, 0x800c,
0x8033, 0x81ea, 0x8494,
0x8f9e, 0x6c50, 0x9e7f,
0x5f0f, 0x8b58, 0x9d2b,
0x7afa, 0x8ef8, 0x5b8d,
0x96eb, 0x4e03, 0x53f1,
0x57f7, 0x5931, 0x5ac9,
0x5ba4, 0x6089, 0x6e7f,
0x6f06, 0x75be, 0x8cea,
0x5b9f, 0x8500, 0x7be0,
0x5072, 0x67f4, 0x829d,
0x5c61, 0x854a, 0x7e1e,
0x820e, 0x5199, 0x5c04,
0x6368, 0x8d66, 0x659c,
0x716e, 0x793e, 0x7d17,
0x8005, 0x8b1d, 0x8eca,
0x906e, 0x86c7, 0x90aa,
0x501f, 0x52fa, 0x5c3a,
0x6753, 0x707c, 0x7235,
0x914c, 0x91c8, 0x932b,
0x82e5, 0x5bc2, 0x5f31,
0x60f9, 0x4e3b, 0x53d6,
0x5b88, 0x624b, 0x6731,
0x6b8a, 0x72e9, 0x73e0,
0x7a2e, 0x816b, 0x8da3,
0x9152, 0x9996, 0x5112,
0x53d7, 0x546a, 0x5bff,
0x6388, 0x6a39, 0x7dac,
0x9700, 0x56da, 0x53ce,
0x5468, 0x5b97, 0x5c31,
0x5dde, 0x4fee, 0x6101,
0x62fe, 0x6d32, 0x79c0,
0x79cb, 0x7d42, 0x7e4d,
0x7fd2, 0x81ed, 0x821f,
0x8490, 0x8846, 0x8972,
0x8b90, 0x8e74, 0x8f2f,
0x9031, 0x914b, 0x916c,
0x96c6, 0x919c, 0x4ec0,
0x4f4f, 0x5145, 0x5341,
0x5f93, 0x620e, 0x67d4,
0x6c41, 0x6e0b, 0x7363,
0x7e26, 0x91cd, 0x9283,
0x53d4, 0x5919, 0x5bbf,
0x6dd1, 0x795d, 0x7e2e,
0x7c9b, 0x587e, 0x719f,
0x51fa, 0x8853, 0x8ff0,
0x4fca, 0x5cfb, 0x6625,
0x77ac, 0x7ae3, 0x821c,
0x99ff, 0x51c6, 0x5faa,
0x65ec, 0x696f, 0x6b89,
0x6df3, 0x6e96, 0x6f64,
0x76fe, 0x7d14, 0x5de1,
0x9075, 0x9187, 0x9806,
0x51e6, 0x521d, 0x6240,
0x6691, 0x66d9, 0x6e1a,
0x5eb6, 0x7dd2, 0x7f72,
0x66f8, 0x85af, 0x85f7,
0x8af8, 0x52a9, 0x53d9,
0x5973, 0x5e8f, 0x5f90,
0x6055, 0x92e4, 0x9664,
0x50b7, 0x511f, 0x52dd,
0x5320, 0x5347, 0x53ec,
0x54e8, 0x5546, 0x5531,
0x5617, 0x5968, 0x59be,
0x5a3c, 0x5bb5, 0x5c06,
0x5c0f, 0x5c11, 0x5c1a,
0x5e84, 0x5e8a, 0x5ee0,
0x5f70, 0x627f, 0x6284,
0x62db, 0x638c, 0x6377,
0x6607, 0x660c, 0x662d,
0x6676, 0x677e, 0x68a2,
0x6a1f, 0x6a35, 0x6cbc,
0x6d88, 0x6e09, 0x6e58,
0x713c, 0x7126, 0x7167,
0x75c7, 0x7701, 0x785d,
0x7901, 0x7965, 0x79f0,
0x7ae0, 0x7b11, 0x7ca7,
0x7d39, 0x8096, 0x83d6,
0x848b, 0x8549, 0x885d,
0x88f3, 0x8a1f, 0x8a3c,
0x8a54, 0x8a73, 0x8c61,
0x8cde, 0x91a4, 0x9266,
0x937e, 0x9418, 0x969c,
0x9798, 0x4e0a, 0x4e08,
0x4e1e, 0x4e57, 0x5197,
0x5270, 0x57ce, 0x5834,
0x58cc, 0x5b22, 0x5e38,
0x60c5, 0x64fe, 0x6761,
0x6756, 0x6d44, 0x72b6,
0x7573, 0x7a63, 0x84b8,
0x8b72, 0x91b8, 0x9320,
0x5631, 0x57f4, 0x98fe,
0x62ed, 0x690d, 0x6b96,
0x71ed, 0x7e54, 0x8077,
0x8272, 0x89e6, 0x98df,
0x8755, 0x8fb1, 0x5c3b,
0x4f38, 0x4fe1, 0x4fb5,
0x5507, 0x5a20, 0x5bdd,
0x5be9, 0x5fc3, 0x614e,
0x632f, 0x65b0, 0x664b,
0x68ee, 0x699b, 0x6d78,
0x6df1, 0x7533, 0x75b9,
0x771f, 0x795e, 0x79e6,
0x7d33, 0x81e3, 0x82af,
0x85aa, 0x89aa, 0x8a3a,
0x8eab, 0x8f9b, 0x9032,
0x91dd, 0x9707, 0x4eba,
0x4ec1, 0x5203, 0x5875,
0x58ec, 0x5c0b, 0x751a,
0x5c3d, 0x814e, 0x8a0a,
0x8fc5, 0x9663, 0x976d,
0x7b25, 0x8acf, 0x9808,
0x9162, 0x56f3, 0x53a8,
0x9017, 0x5439, 0x5782,
0x5e25, 0x63a8, 0x6c34,
0x708a, 0x7761, 0x7c8b,
0x7fe0, 0x8870, 0x9042,
0x9154, 0x9310, 0x9318,
0x968f, 0x745e, 0x9ac4,
0x5d07, 0x5d69, 0x6570,
0x67a2, 0x8da8, 0x96db,
0x636e, 0x6749, 0x6919,
0x83c5, 0x9817, 0x96c0,
0x88fe, 0x6f84, 0x647a,
0x5bf8, 0x4e16, 0x702c,
0x755d, 0x662f, 0x51c4,
0x5236, 0x52e2, 0x59d3,
0x5f81, 0x6027, 0x6210,
0x653f, 0x6574, 0x661f,
0x6674, 0x68f2, 0x6816,
0x6b63, 0x6e05, 0x7272,
0x751f, 0x76db, 0x7cbe,
0x8056, 0x58f0, 0x88fd,
0x897f, 0x8aa0, 0x8a93,
0x8acb, 0x901d, 0x9192,
0x9752, 0x9759, 0x6589,
0x7a0e, 0x8106, 0x96bb,
0x5e2d, 0x60dc, 0x621a,
0x65a5, 0x6614, 0x6790,
0x77f3, 0x7a4d, 0x7c4d,
0x7e3e, 0x810a, 0x8cac,
0x8d64, 0x8de1, 0x8e5f,
0x78a9, 0x5207, 0x62d9,
0x63a5, 0x6442, 0x6298,
0x8a2d, 0x7a83, 0x7bc0,
0x8aac, 0x96ea, 0x7d76,
0x820c, 0x8749, 0x4ed9,
0x5148, 0x5343, 0x5360,
0x5ba3, 0x5c02, 0x5c16,
0x5ddd, 0x6226, 0x6247,
0x64b0, 0x6813, 0x6834,
0x6cc9, 0x6d45, 0x6d17,
0x67d3, 0x6f5c, 0x714e,
0x717d, 0x65cb, 0x7a7f,
0x7bad, 0x7dda, 0x7e4a,
0x7fa8, 0x817a, 0x821b,
0x8239, 0x85a6, 0x8a6e,
0x8cce, 0x8df5, 0x9078,
0x9077, 0x92ad, 0x9291,
0x9583, 0x9bae, 0x524d,
0x5584, 0x6f38, 0x7136,
0x5168, 0x7985, 0x7e55,
0x81b3, 0x7cce, 0x564c,
0x5851, 0x5ca8, 0x63aa,
0x66fe, 0x66fd, 0x695a,
0x72d9, 0x758f, 0x758e,
0x790e, 0x7956, 0x79df,
0x7c97, 0x7d20, 0x7d44,
0x8607, 0x8a34, 0x963b,
0x9061, 0x9f20, 0x50e7,
0x5275, 0x53cc, 0x53e2,
0x5009, 0x55aa, 0x58ee,
0x594f, 0x723d, 0x5b8b,
0x5c64, 0x531d, 0x60e3,
0x60f3, 0x635c, 0x6383,
0x633f, 0x63bb, 0x64cd,
0x65e9, 0x66f9, 0x5de3,
0x69cd, 0x69fd, 0x6f15,
0x71e5, 0x4e89, 0x75e9,
0x76f8, 0x7a93, 0x7cdf,
0x7dcf, 0x7d9c, 0x8061,
0x8349, 0x8358, 0x846c,
0x84bc, 0x85fb, 0x88c5,
0x8d70, 0x9001, 0x906d,
0x9397, 0x971c, 0x9a12,
0x50cf, 0x5897, 0x618e,
0x81d3, 0x8535, 0x8d08,
0x9020, 0x4fc3, 0x5074,
0x5247, 0x5373, 0x606f,
0x6349, 0x675f, 0x6e2c,
0x8db3, 0x901f, 0x4fd7,
0x5c5e, 0x8cca, 0x65cf,
0x7d9a, 0x5352, 0x8896,
0x5176, 0x63c3, 0x5b58,
0x5b6b, 0x5c0a, 0x640d,
0x6751, 0x905c, 0x4ed6,
0x591a, 0x592a, 0x6c70,
0x8a51, 0x553e, 0x5815,
0x59a5, 0x60f0, 0x6253,
0x67c1, 0x8235, 0x6955,
0x9640, 0x99c4, 0x9a28,
0x4f53, 0x5806, 0x5bfe,
0x8010, 0x5cb1, 0x5e2f,
0x5f85, 0x6020, 0x614b,
0x6234, 0x66ff, 0x6cf0,
0x6ede, 0x80ce, 0x817f,
0x82d4, 0x888b, 0x8cb8,
0x9000, 0x902e, 0x968a,
0x9edb, 0x9bdb, 0x4ee3,
0x53f0, 0x5927, 0x7b2c,
0x918d, 0x984c, 0x9df9,
0x6edd, 0x7027, 0x5353,
0x5544, 0x5b85, 0x6258,
0x629e, 0x62d3, 0x6ca2,
0x6fef, 0x7422, 0x8a17,
0x9438, 0x6fc1, 0x8afe,
0x8338, 0x51e7, 0x86f8,
0x53ea, 0x53e9, 0x4f46,
0x9054, 0x8fb0, 0x596a,
0x8131, 0x5dfd, 0x7aea,
0x8fbf, 0x68da, 0x8c37,
0x72f8, 0x9c48, 0x6a3d,
0x8ab0, 0x4e39, 0x5358,
0x5606, 0x5766, 0x62c5,
0x63a2, 0x65e6, 0x6b4e,
0x6de1, 0x6e5b, 0x70ad,
0x77ed, 0x7aef, 0x7baa,
0x7dbb, 0x803d, 0x80c6,
0x86cb, 0x8a95, 0x935b,
0x56e3, 0x58c7, 0x5f3e,
0x65ad, 0x6696, 0x6a80,
0x6bb5, 0x7537, 0x8ac7,
0x5024, 0x77e5, 0x5730,
0x5f1b, 0x6065, 0x667a,
0x6c60, 0x75f4, 0x7a1a,
0x7f6e, 0x81f4, 0x8718,
0x9045, 0x99b3, 0x7bc9,
0x755c, 0x7af9, 0x7b51,
0x84c4, 0x9010, 0x79e9,
0x7a92, 0x8336, 0x5ae1,
0x7740, 0x4e2d, 0x4ef2,
0x5b99, 0x5fe0, 0x62bd,
0x663c, 0x67f1, 0x6ce8,
0x866b, 0x8877, 0x8a3b,
0x914e, 0x92f3, 0x99d0,
0x6a17, 0x7026, 0x732a,
0x82e7, 0x8457, 0x8caf,
0x4e01, 0x5146, 0x51cb,
0x558b, 0x5bf5, 0x5e16,
0x5e33, 0x5e81, 0x5f14,
0x5f35, 0x5f6b, 0x5fb4,
0x61f2, 0x6311, 0x66a2,
0x671d, 0x6f6e, 0x7252,
0x753a, 0x773a, 0x8074,
0x8139, 0x8178, 0x8776,
0x8abf, 0x8adc, 0x8d85,
0x8df3, 0x929a, 0x9577,
0x9802, 0x9ce5, 0x52c5,
0x6357, 0x76f4, 0x6715,
0x6c88, 0x73cd, 0x8cc3,
0x93ae, 0x9673, 0x6d25,
0x589c, 0x690e, 0x69cc,
0x8ffd, 0x939a, 0x75db,
0x901a, 0x585a, 0x6802,
0x63b4, 0x69fb, 0x4f43,
0x6f2c, 0x67d8, 0x8fbb,
0x8526, 0x7db4, 0x9354,
0x693f, 0x6f70, 0x576a,
0x58f7, 0x5b2c, 0x7d2c,
0x722a, 0x540a, 0x91e3,
0x9db4, 0x4ead, 0x4f4e,
0x505c, 0x5075, 0x5243,
0x8c9e, 0x5448, 0x5824,
0x5b9a, 0x5e1d, 0x5e95,
0x5ead, 0x5ef7, 0x5f1f,
0x608c, 0x62b5, 0x633a,
0x63d0, 0x68af, 0x6c40,
0x7887, 0x798e, 0x7a0b,
0x7de0, 0x8247, 0x8a02,
0x8ae6, 0x8e44, 0x9013,
0x90b8, 0x912d, 0x91d8,
0x9f0e, 0x6ce5, 0x6458,
0x64e2, 0x6575, 0x6ef4,
0x7684, 0x7b1b, 0x9069,
0x93d1, 0x6eba, 0x54f2,
0x5fb9, 0x64a4, 0x8f4d,
0x8fed, 0x9244, 0x5178,
0x586b, 0x5929, 0x5c55,
0x5e97, 0x6dfb, 0x7e8f,
0x751c, 0x8cbc, 0x8ee2,
0x985b, 0x70b9, 0x4f1d,
0x6bbf, 0x6fb1, 0x7530,
0x96fb, 0x514e, 0x5410,
0x5835, 0x5857, 0x59ac,
0x5c60, 0x5f92, 0x6597,
0x675c, 0x6e21, 0x767b,
0x83df, 0x8ced, 0x9014,
0x90fd, 0x934d, 0x7825,
0x783a, 0x52aa, 0x5ea6,
0x571f, 0x5974, 0x6012,
0x5012, 0x515a, 0x51ac,
0x51cd, 0x5200, 0x5510,
0x5854, 0x5858, 0x5957,
0x5b95, 0x5cf6, 0x5d8b,
0x60bc, 0x6295, 0x642d,
0x6771, 0x6843, 0x68bc,
0x68df, 0x76d7, 0x6dd8,
0x6e6f, 0x6d9b, 0x706f,
0x71c8, 0x5f53, 0x75d8,
0x7977, 0x7b49, 0x7b54,
0x7b52, 0x7cd6, 0x7d71,
0x5230, 0x8463, 0x8569,
0x85e4, 0x8a0e, 0x8b04,
0x8c46, 0x8e0f, 0x9003,
0x900f, 0x9419, 0x9676,
0x982d, 0x9a30, 0x95d8,
0x50cd, 0x52d5, 0x540c,
0x5802, 0x5c0e, 0x61a7,
0x649e, 0x6d1e, 0x77b3,
0x7ae5, 0x80f4, 0x8404,
0x9053, 0x9285, 0x5ce0,
0x9d07, 0x533f, 0x5f97,
0x5fb3, 0x6d9c, 0x7279,
0x7763, 0x79bf, 0x7be4,
0x6bd2, 0x72ec, 0x8aad,
0x6803, 0x6a61, 0x51f8,
0x7a81, 0x6934, 0x5c4a,
0x9cf6, 0x82eb, 0x5bc5,
0x9149, 0x701e, 0x5678,
0x5c6f, 0x60c7, 0x6566,
0x6c8c, 0x8c5a, 0x9041,
0x9813, 0x5451, 0x66c7,
0x920d, 0x5948, 0x90a3,
0x5185, 0x4e4d, 0x51ea,
0x8599, 0x8b0e, 0x7058,
0x637a, 0x934b, 0x6962,
0x99b4, 0x7e04, 0x7577,
0x5357, 0x6960, 0x8edf,
0x96e3, 0x6c5d, 0x4e8c,
0x5c3c, 0x5f10, 0x8fe9,
0x5302, 0x8cd1, 0x8089,
0x8679, 0x5eff, 0x65e5,
0x4e73, 0x5165, 0x5982,
0x5c3f, 0x97ee, 0x4efb,
0x598a, 0x5fcd, 0x8a8d,
0x6fe1, 0x79b0, 0x7962,
0x5be7, 0x8471, 0x732b,
0x71b1, 0x5e74, 0x5ff5,
0x637b, 0x649a, 0x71c3,
0x7c98, 0x4e43, 0x5efc,
0x4e4b, 0x57dc, 0x56a2,
0x60a9, 0x6fc3, 0x7d0d,
0x80fd, 0x8133, 0x81bf,
0x8fb2, 0x8997, 0x86a4,
0x5df4, 0x628a, 0x64ad,
0x8987, 0x6777, 0x6ce2,
0x6d3e, 0x7436, 0x7834,
0x5a46, 0x7f75, 0x82ad,
0x99ac, 0x4ff3, 0x5ec3,
0x62dd, 0x6392, 0x6557,
0x676f, 0x76c3, 0x724c,
0x80cc, 0x80ba, 0x8f29,
0x914d, 0x500d, 0x57f9,
0x5a92, 0x6885, 0x6973,
0x7164, 0x72fd, 0x8cb7,
0x58f2, 0x8ce0, 0x966a,
0x9019, 0x877f, 0x79e4,
0x77e7, 0x8429, 0x4f2f,
0x5265, 0x535a, 0x62cd,
0x67cf, 0x6cca, 0x767d,
0x7b94, 0x7c95, 0x8236,
0x8584, 0x8feb, 0x66dd,
0x6f20, 0x7206, 0x7e1b,
0x83ab, 0x99c1, 0x9ea6,
0x51fd, 0x7bb1, 0x7872,
0x7bb8, 0x8087, 0x7b48,
0x6ae8, 0x5e61, 0x808c,
0x7551, 0x7560, 0x516b,
0x9262, 0x6e8c, 0x767a,
0x9197, 0x9aea, 0x4f10,
0x7f70, 0x629c, 0x7b4f,
0x95a5, 0x9ce9, 0x567a,
0x5859, 0x86e4, 0x96bc,
0x4f34, 0x5224, 0x534a,
0x53cd, 0x53db, 0x5e06,
0x642c, 0x6591, 0x677f,
0x6c3e, 0x6c4e, 0x7248,
0x72af, 0x73ed, 0x7554,
0x7e41, 0x822c, 0x85e9,
0x8ca9, 0x7bc4, 0x91c6,
0x7169, 0x9812, 0x98ef,
0x633d, 0x6669, 0x756a,
0x76e4, 0x78d0, 0x8543,
0x86ee, 0x532a, 0x5351,
0x5426, 0x5983, 0x5e87,
0x5f7c, 0x60b2, 0x6249,
0x6279, 0x62ab, 0x6590,
0x6bd4, 0x6ccc, 0x75b2,
0x76ae, 0x7891, 0x79d8,
0x7dcb, 0x7f77, 0x80a5,
0x88ab, 0x8ab9, 0x8cbb,
0x907f, 0x975e, 0x98db,
0x6a0b, 0x7c38, 0x5099,
0x5c3e, 0x5fae, 0x6787,
0x6bd8, 0x7435, 0x7709,
0x7f8e, 0x9f3b, 0x67ca,
0x7a17, 0x5339, 0x758b,
0x9aed, 0x5f66, 0x819d,
0x83f1, 0x8098, 0x5f3c,
0x5fc5, 0x7562, 0x7b46,
0x903c, 0x6867, 0x59eb,
0x5a9b, 0x7d10, 0x767e,
0x8b2c, 0x4ff5, 0x5f6a,
0x6a19, 0x6c37, 0x6f02,
0x74e2, 0x7968, 0x8868,
0x8a55, 0x8c79, 0x5edf,
0x63cf, 0x75c5, 0x79d2,
0x82d7, 0x9328, 0x92f2,
0x849c, 0x86ed, 0x9c2d,
0x54c1, 0x5f6c, 0x658c,
0x6d5c, 0x7015, 0x8ca7,
0x8cd3, 0x983b, 0x654f,
0x74f6, 0x4e0d, 0x4ed8,
0x57e0, 0x592b, 0x5a66,
0x5bcc, 0x51a8, 0x5e03,
0x5e9c, 0x6016, 0x6276,
0x6577, 0x65a7, 0x666e,
0x6d6e, 0x7236, 0x7b26,
0x8150, 0x819a, 0x8299,
0x8b5c, 0x8ca0, 0x8ce6,
0x8d74, 0x961c, 0x9644,
0x4fae, 0x64ab, 0x6b66,
0x821e, 0x8461, 0x856a,
0x90e8, 0x5c01, 0x6953,
0x98a8, 0x847a, 0x8557,
0x4f0f, 0x526f, 0x5fa9,
0x5e45, 0x670d, 0x798f,
0x8179, 0x8907, 0x8986,
0x6df5, 0x5f17, 0x6255,
0x6cb8, 0x4ecf, 0x7269,
0x9b92, 0x5206, 0x543b,
0x5674, 0x58b3, 0x61a4,
0x626e, 0x711a, 0x596e,
0x7c89, 0x7cde, 0x7d1b,
0x96f0, 0x6587, 0x805e,
0x4e19, 0x4f75, 0x5175,
0x5840, 0x5e63, 0x5e73,
0x5f0a, 0x67c4, 0x4e26,
0x853d, 0x9589, 0x965b,
0x7c73, 0x9801, 0x50fb,
0x58c1, 0x7656, 0x78a7,
0x5225, 0x77a5, 0x8511,
0x7b86, 0x504f, 0x5909,
0x7247, 0x7bc7, 0x7de8,
0x8fba, 0x8fd4, 0x904d,
0x4fbf, 0x52c9, 0x5a29,
0x5f01, 0x97ad, 0x4fdd,
0x8217, 0x92ea, 0x5703,
0x6355, 0x6b69, 0x752b,
0x88dc, 0x8f14, 0x7a42,
0x52df, 0x5893, 0x6155,
0x620a, 0x66ae, 0x6bcd,
0x7c3f, 0x83e9, 0x5023,
0x4ff8, 0x5305, 0x5446,
0x5831, 0x5949, 0x5b9d,
0x5cf0, 0x5cef, 0x5d29,
0x5e96, 0x62b1, 0x6367,
0x653e, 0x65b9, 0x670b,
0x6cd5, 0x6ce1, 0x70f9,
0x7832, 0x7e2b, 0x80de,
0x82b3, 0x840c, 0x84ec,
0x8702, 0x8912, 0x8a2a,
0x8c4a, 0x90a6, 0x92d2,
0x98fd, 0x9cf3, 0x9d6c,
0x4e4f, 0x4ea1, 0x508d,
0x5256, 0x574a, 0x59a8,
0x5e3d, 0x5fd8, 0x5fd9,
0x623f, 0x66b4, 0x671b,
0x67d0, 0x68d2, 0x5192,
0x7d21, 0x80aa, 0x81a8,
0x8b00, 0x8c8c, 0x8cbf,
0x927e, 0x9632, 0x5420,
0x982c, 0x5317, 0x50d5,
0x535c, 0x58a8, 0x64b2,
0x6734, 0x7267, 0x7766,
0x7a46, 0x91e6, 0x52c3,
0x6ca1, 0x6b86, 0x5800,
0x5e4c, 0x5954, 0x672c,
0x7ffb, 0x51e1, 0x76c6,
0x6469, 0x78e8, 0x9b54,
0x9ebb, 0x57cb, 0x59b9,
0x6627, 0x679a, 0x6bce,
0x54e9, 0x69d9, 0x5e55,
0x819c, 0x6795, 0x9baa,
0x67fe, 0x9c52, 0x685d,
0x4ea6, 0x4fe3, 0x53c8,
0x62b9, 0x672b, 0x6cab,
0x8fc4, 0x4fad, 0x7e6d,
0x9ebf, 0x4e07, 0x6162,
0x6e80, 0x6f2b, 0x8513,
0x5473, 0x672a, 0x9b45,
0x5df3, 0x7b95, 0x5cac,
0x5bc6, 0x871c, 0x6e4a,
0x84d1, 0x7a14, 0x8108,
0x5999, 0x7c8d, 0x6c11,
0x7720, 0x52d9, 0x5922,
0x7121, 0x725f, 0x77db,
0x9727, 0x9d61, 0x690b,
0x5a7f, 0x5a18, 0x51a5,
0x540d, 0x547d, 0x660e,
0x76df, 0x8ff7, 0x9298,
0x9cf4, 0x59ea, 0x725d,
0x6ec5, 0x514d, 0x68c9,
0x7dbf, 0x7dec, 0x9762,
0x9eba, 0x6478, 0x6a21,
0x8302, 0x5984, 0x5b5f,
0x6bdb, 0x731b, 0x76f2,
0x7db2, 0x8017, 0x8499,
0x5132, 0x6728, 0x9ed9,
0x76ee, 0x6762, 0x52ff,
0x9905, 0x5c24, 0x623b,
0x7c7e, 0x8cb0, 0x554f,
0x60b6, 0x7d0b, 0x9580,
0x5301, 0x4e5f, 0x51b6,
0x591c, 0x723a, 0x8036,
0x91ce, 0x5f25, 0x77e2,
0x5384, 0x5f79, 0x7d04,
0x85ac, 0x8a33, 0x8e8d,
0x9756, 0x67f3, 0x85ae,
0x9453, 0x6109, 0x6108,
0x6cb9, 0x7652, 0x8aed,
0x8f38, 0x552f, 0x4f51,
0x512a, 0x52c7, 0x53cb,
0x5ba5, 0x5e7d, 0x60a0,
0x6182, 0x63d6, 0x6709,
0x67da, 0x6e67, 0x6d8c,
0x7336, 0x7337, 0x7531,
0x7950, 0x88d5, 0x8a98,
0x904a, 0x9091, 0x90f5,
0x96c4, 0x878d, 0x5915,
0x4e88, 0x4f59, 0x4e0e,
0x8a89, 0x8f3f, 0x9810,
0x50ad, 0x5e7c, 0x5996,
0x5bb9, 0x5eb8, 0x63da,
0x63fa, 0x64c1, 0x66dc,
0x694a, 0x69d8, 0x6d0b,
0x6eb6, 0x7194, 0x7528,
0x7aaf, 0x7f8a, 0x8000,
0x8449, 0x84c9, 0x8981,
0x8b21, 0x8e0a, 0x9065,
0x967d, 0x990a, 0x617e,
0x6291, 0x6b32, 0x6c83,
0x6d74, 0x7fcc, 0x7ffc,
0x6dc0, 0x7f85, 0x87ba,
0x88f8, 0x6765, 0x83b1,
0x983c, 0x96f7, 0x6d1b,
0x7d61, 0x843d, 0x916a,
0x4e71, 0x5375, 0x5d50,
0x6b04, 0x6feb, 0x85cd,
0x862d, 0x89a7, 0x5229,
0x540f, 0x5c65, 0x674e,
0x68a8, 0x7406, 0x7483,
0x75e2, 0x88cf, 0x88e1,
0x91cc, 0x96e2, 0x9678,
0x5f8b, 0x7387, 0x7acb,
0x844e, 0x63a0, 0x7565,
0x5289, 0x6d41, 0x6e9c,
0x7409, 0x7559, 0x786b,
0x7c92, 0x9686, 0x7adc,
0x9f8d, 0x4fb6, 0x616e,
0x65c5, 0x865c, 0x4e86,
0x4eae, 0x50da, 0x4e21,
0x51cc, 0x5bee, 0x6599,
0x6881, 0x6dbc, 0x731f,
0x7642, 0x77ad, 0x7a1c,
0x7ce7, 0x826f, 0x8ad2,
0x907c, 0x91cf, 0x9675,
0x9818, 0x529b, 0x7dd1,
0x502b, 0x5398, 0x6797,
0x6dcb, 0x71d0, 0x7433,
0x81e8, 0x8f2a, 0x96a3,
0x9c57, 0x9e9f, 0x7460,
0x5841, 0x6d99, 0x7d2f,
0x985e, 0x4ee4, 0x4f36,
0x4f8b, 0x51b7, 0x52b1,
0x5dba, 0x601c, 0x73b2,
0x793c, 0x82d3, 0x9234,
0x96b7, 0x96f6, 0x970a,
0x9e97, 0x9f62, 0x66a6,
0x6b74, 0x5217, 0x52a3,
0x70c8, 0x88c2, 0x5ec9,
0x604b, 0x6190, 0x6f23,
0x7149, 0x7c3e, 0x7df4,
0x806f, 0x84ee, 0x9023,
0x932c, 0x5442, 0x9b6f,
0x6ad3, 0x7089, 0x8cc2,
0x8def, 0x9732, 0x52b4,
0x5a41, 0x5eca, 0x5f04,
0x6717, 0x697c, 0x6994,
0x6d6a, 0x6f0f, 0x7262,
0x72fc, 0x7bed, 0x8001,
0x807e, 0x874b, 0x90ce,
0x516d, 0x9e93, 0x7984,
0x808b, 0x9332, 0x8ad6,
0x502d, 0x548c, 0x8a71,
0x6b6a, 0x8cc4, 0x8107,
0x60d1, 0x67a0, 0x9df2,
0x4e99, 0x4e98, 0x9c10,
0x8a6b, 0x85c1, 0x8568,
0x6900, 0x6e7e, 0x7897,
0x8155, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x5f0c,
0x4e10, 0x4e15, 0x4e2a,
0x4e31, 0x4e36, 0x4e3c,
0x4e3f, 0x4e42, 0x4e56,
0x4e58, 0x4e82, 0x4e85,
0x8c6b, 0x4e8a, 0x8212,
0x5f0d, 0x4e8e, 0x4e9e,
0x4e9f, 0x4ea0, 0x4ea2,
0x4eb0, 0x4eb3, 0x4eb6,
0x4ece, 0x4ecd, 0x4ec4,
0x4ec6, 0x4ec2, 0x4ed7,
0x4ede, 0x4eed, 0x4edf,
0x4ef7, 0x4f09, 0x4f5a,
0x4f30, 0x4f5b, 0x4f5d,
0x4f57, 0x4f47, 0x4f76,
0x4f88, 0x4f8f, 0x4f98,
0x4f7b, 0x4f69, 0x4f70,
0x4f91, 0x4f6f, 0x4f86,
0x4f96, 0x5118, 0x4fd4,
0x4fdf, 0x4fce, 0x4fd8,
0x4fdb, 0x4fd1, 0x4fda,
0x4fd0, 0x4fe4, 0x4fe5,
0x501a, 0x5028, 0x5014,
0x502a, 0x5025, 0x5005,
0x4f1c, 0x4ff6, 0x5021,
0x5029, 0x502c, 0x4ffe,
0x4fef, 0x5011, 0x5006,
0x5043, 0x5047, 0x6703,
0x5055, 0x5050, 0x5048,
0x505a, 0x5056, 0x506c,
0x5078, 0x5080, 0x509a,
0x5085, 0x50b4, 0x50b2,
0x50c9, 0x50ca, 0x50b3,
0x50c2, 0x50d6, 0x50de,
0x50e5, 0x50ed, 0x50e3,
0x50ee, 0x50f9, 0x50f5,
0x5109, 0x5101, 0x5102,
0x5116, 0x5115, 0x5114,
0x511a, 0x5121, 0x513a,
0x5137, 0x513c, 0x513b,
0x513f, 0x5140, 0x5152,
0x514c, 0x5154, 0x5162,
0x7af8, 0x5169, 0x516a,
0x516e, 0x5180, 0x5182,
0x56d8, 0x518c, 0x5189,
0x518f, 0x5191, 0x5193,
0x5195, 0x5196, 0x51a4,
0x51a6, 0x51a2, 0x51a9,
0x51aa, 0x51ab, 0x51b3,
0x51b1, 0x51b2, 0x51b0,
0x51b5, 0x51bd, 0x51c5,
0x51c9, 0x51db, 0x51e0,
0x8655, 0x51e9, 0x51ed,
0x51f0, 0x51f5, 0x51fe,
0x5204, 0x520b, 0x5214,
0x520e, 0x5227, 0x522a,
0x522e, 0x5233, 0x5239,
0x524f, 0x5244, 0x524b,
0x524c, 0x525e, 0x5254,
0x526a, 0x5274, 0x5269,
0x5273, 0x527f, 0x527d,
0x528d, 0x5294, 0x5292,
0x5271, 0x5288, 0x5291,
0x8fa8, 0x8fa7, 0x52ac,
0x52ad, 0x52bc, 0x52b5,
0x52c1, 0x52cd, 0x52d7,
0x52de, 0x52e3, 0x52e6,
0x98ed, 0x52e0, 0x52f3,
0x52f5, 0x52f8, 0x52f9,
0x5306, 0x5308, 0x7538,
0x530d, 0x5310, 0x530f,
0x5315, 0x531a, 0x5323,
0x532f, 0x5331, 0x5333,
0x5338, 0x5340, 0x5346,
0x5345, 0x4e17, 0x5349,
0x534d, 0x51d6, 0x535e,
0x5369, 0x536e, 0x5918,
0x537b, 0x5377, 0x5382,
0x5396, 0x53a0, 0x53a6,
0x53a5, 0x53ae, 0x53b0,
0x53b6, 0x53c3, 0x7c12,
0x96d9, 0x53df, 0x66fc,
0x71ee, 0x53ee, 0x53e8,
0x53ed, 0x53fa, 0x5401,
0x543d, 0x5440, 0x542c,
0x542d, 0x543c, 0x542e,
0x5436, 0x5429, 0x541d,
0x544e, 0x548f, 0x5475,
0x548e, 0x545f, 0x5471,
0x5477, 0x5470, 0x5492,
0x547b, 0x5480, 0x5476,
0x5484, 0x5490, 0x5486,
0x54c7, 0x54a2, 0x54b8,
0x54a5, 0x54ac, 0x54c4,
0x54c8, 0x54a8, 0x54ab,
0x54c2, 0x54a4, 0x54be,
0x54bc, 0x54d8, 0x54e5,
0x54e6, 0x550f, 0x5514,
0x54fd, 0x54ee, 0x54ed,
0x54fa, 0x54e2, 0x5539,
0x5540, 0x5563, 0x554c,
0x552e, 0x555c, 0x5545,
0x5556, 0x5557, 0x5538,
0x5533, 0x555d, 0x5599,
0x5580, 0x54af, 0x558a,
0x559f, 0x557b, 0x557e,
0x5598, 0x559e, 0x55ae,
0x557c, 0x5583, 0x55a9,
0x5587, 0x55a8, 0x55da,
0x55c5, 0x55df, 0x55c4,
0x55dc, 0x55e4, 0x55d4,
0x5614, 0x55f7, 0x5616,
0x55fe, 0x55fd, 0x561b,
0x55f9, 0x564e, 0x5650,
0x71df, 0x5634, 0x5636,
0x5632, 0x5638, 0x566b,
0x5664, 0x562f, 0x566c,
0x566a, 0x5686, 0x5680,
0x568a, 0x56a0, 0x5694,
0x568f, 0x56a5, 0x56ae,
0x56b6, 0x56b4, 0x56c2,
0x56bc, 0x56c1, 0x56c3,
0x56c0, 0x56c8, 0x56ce,
0x56d1, 0x56d3, 0x56d7,
0x56ee, 0x56f9, 0x5700,
0x56ff, 0x5704, 0x5709,
0x5708, 0x570b, 0x570d,
0x5713, 0x5718, 0x5716,
0x55c7, 0x571c, 0x5726,
0x5737, 0x5738, 0x574e,
0x573b, 0x5740, 0x574f,
0x5769, 0x57c0, 0x5788,
0x5761, 0x577f, 0x5789,
0x5793, 0x57a0, 0x57b3,
0x57a4, 0x57aa, 0x57b0,
0x57c3, 0x57c6, 0x57d4,
0x57d2, 0x57d3, 0x580a,
0x57d6, 0x57e3, 0x580b,
0x5819, 0x581d, 0x5872,
0x5821, 0x5862, 0x584b,
0x5870, 0x6bc0, 0x5852,
0x583d, 0x5879, 0x5885,
0x58b9, 0x589f, 0x58ab,
0x58ba, 0x58de, 0x58bb,
0x58b8, 0x58ae, 0x58c5,
0x58d3, 0x58d1, 0x58d7,
0x58d9, 0x58d8, 0x58e5,
0x58dc, 0x58e4, 0x58df,
0x58ef, 0x58fa, 0x58f9,
0x58fb, 0x58fc, 0x58fd,
0x5902, 0x590a, 0x5910,
0x591b, 0x68a6, 0x5925,
0x592c, 0x592d, 0x5932,
0x5938, 0x593e, 0x7ad2,
0x5955, 0x5950, 0x594e,
0x595a, 0x5958, 0x5962,
0x5960, 0x5967, 0x596c,
0x5969, 0x5978, 0x5981,
0x599d, 0x4f5e, 0x4fab,
0x59a3, 0x59b2, 0x59c6,
0x59e8, 0x59dc, 0x598d,
0x59d9, 0x59da, 0x5a25,
0x5a1f, 0x5a11, 0x5a1c,
0x5a09, 0x5a1a, 0x5a40,
0x5a6c, 0x5a49, 0x5a35,
0x5a36, 0x5a62, 0x5a6a,
0x5a9a, 0x5abc, 0x5abe,
0x5acb, 0x5ac2, 0x5abd,
0x5ae3, 0x5ad7, 0x5ae6,
0x5ae9, 0x5ad6, 0x5afa,
0x5afb, 0x5b0c, 0x5b0b,
0x5b16, 0x5b32, 0x5ad0,
0x5b2a, 0x5b36, 0x5b3e,
0x5b43, 0x5b45, 0x5b40,
0x5b51, 0x5b55, 0x5b5a,
0x5b5b, 0x5b65, 0x5b69,
0x5b70, 0x5b73, 0x5b75,
0x5b78, 0x6588, 0x5b7a,
0x5b80, 0x5b83, 0x5ba6,
0x5bb8, 0x5bc3, 0x5bc7,
0x5bc9, 0x5bd4, 0x5bd0,
0x5be4, 0x5be6, 0x5be2,
0x5bde, 0x5be5, 0x5beb,
0x5bf0, 0x5bf6, 0x5bf3,
0x5c05, 0x5c07, 0x5c08,
0x5c0d, 0x5c13, 0x5c20,
0x5c22, 0x5c28, 0x5c38,
0x5c39, 0x5c41, 0x5c46,
0x5c4e, 0x5c53, 0x5c50,
0x5c4f, 0x5b71, 0x5c6c,
0x5c6e, 0x4e62, 0x5c76,
0x5c79, 0x5c8c, 0x5c91,
0x5c94, 0x599b, 0x5cab,
0x5cbb, 0x5cb6, 0x5cbc,
0x5cb7, 0x5cc5, 0x5cbe,
0x5cc7, 0x5cd9, 0x5ce9,
0x5cfd, 0x5cfa, 0x5ced,
0x5d8c, 0x5cea, 0x5d0b,
0x5d15, 0x5d17, 0x5d5c,
0x5d1f, 0x5d1b, 0x5d11,
0x5d14, 0x5d22, 0x5d1a,
0x5d19, 0x5d18, 0x5d4c,
0x5d52, 0x5d4e, 0x5d4b,
0x5d6c, 0x5d73, 0x5d76,
0x5d87, 0x5d84, 0x5d82,
0x5da2, 0x5d9d, 0x5dac,
0x5dae, 0x5dbd, 0x5d90,
0x5db7, 0x5dbc, 0x5dc9,
0x5dcd, 0x5dd3, 0x5dd2,
0x5dd6, 0x5ddb, 0x5deb,
0x5df2, 0x5df5, 0x5e0b,
0x5e1a, 0x5e19, 0x5e11,
0x5e1b, 0x5e36, 0x5e37,
0x5e44, 0x5e43, 0x5e40,
0x5e4e, 0x5e57, 0x5e54,
0x5e5f, 0x5e62, 0x5e64,
0x5e47, 0x5e75, 0x5e76,
0x5e7a, 0x9ebc, 0x5e7f,
0x5ea0, 0x5ec1, 0x5ec2,
0x5ec8, 0x5ed0, 0x5ecf,
0x5ed6, 0x5ee3, 0x5edd,
0x5eda, 0x5edb, 0x5ee2,
0x5ee1, 0x5ee8, 0x5ee9,
0x5eec, 0x5ef1, 0x5ef3,
0x5ef0, 0x5ef4, 0x5ef8,
0x5efe, 0x5f03, 0x5f09,
0x5f5d, 0x5f5c, 0x5f0b,
0x5f11, 0x5f16, 0x5f29,
0x5f2d, 0x5f38, 0x5f41,
0x5f48, 0x5f4c, 0x5f4e,
0x5f2f, 0x5f51, 0x5f56,
0x5f57, 0x5f59, 0x5f61,
0x5f6d, 0x5f73, 0x5f77,
0x5f83, 0x5f82, 0x5f7f,
0x5f8a, 0x5f88, 0x5f91,
0x5f87, 0x5f9e, 0x5f99,
0x5f98, 0x5fa0, 0x5fa8,
0x5fad, 0x5fbc, 0x5fd6,
0x5ffb, 0x5fe4, 0x5ff8,
0x5ff1, 0x5fdd, 0x60b3,
0x5fff, 0x6021, 0x6060,
0x6019, 0x6010, 0x6029,
0x600e, 0x6031, 0x601b,
0x6015, 0x602b, 0x6026,
0x600f, 0x603a, 0x605a,
0x6041, 0x606a, 0x6077,
0x605f, 0x604a, 0x6046,
0x604d, 0x6063, 0x6043,
0x6064, 0x6042, 0x606c,
0x606b, 0x6059, 0x6081,
0x608d, 0x60e7, 0x6083,
0x609a, 0x6084, 0x609b,
0x6096, 0x6097, 0x6092,
0x60a7, 0x608b, 0x60e1,
0x60b8, 0x60e0, 0x60d3,
0x60b4, 0x5ff0, 0x60bd,
0x60c6, 0x60b5, 0x60d8,
0x614d, 0x6115, 0x6106,
0x60f6, 0x60f7, 0x6100,
0x60f4, 0x60fa, 0x6103,
0x6121, 0x60fb, 0x60f1,
0x610d, 0x610e, 0x6147,
0x613e, 0x6128, 0x6127,
0x614a, 0x613f, 0x613c,
0x612c, 0x6134, 0x613d,
0x6142, 0x6144, 0x6173,
0x6177, 0x6158, 0x6159,
0x615a, 0x616b, 0x6174,
0x616f, 0x6165, 0x6171,
0x615f, 0x615d, 0x6153,
0x6175, 0x6199, 0x6196,
0x6187, 0x61ac, 0x6194,
0x619a, 0x618a, 0x6191,
0x61ab, 0x61ae, 0x61cc,
0x61ca, 0x61c9, 0x61f7,
0x61c8, 0x61c3, 0x61c6,
0x61ba, 0x61cb, 0x7f79,
0x61cd, 0x61e6, 0x61e3,
0x61f6, 0x61fa, 0x61f4,
0x61ff, 0x61fd, 0x61fc,
0x61fe, 0x6200, 0x6208,
0x6209, 0x620d, 0x620c,
0x6214, 0x621b, 0x621e,
0x6221, 0x622a, 0x622e,
0x6230, 0x6232, 0x6233,
0x6241, 0x624e, 0x625e,
0x6263, 0x625b, 0x6260,
0x6268, 0x627c, 0x6282,
0x6289, 0x627e, 0x6292,
0x6293, 0x6296, 0x62d4,
0x6283, 0x6294, 0x62d7,
0x62d1, 0x62bb, 0x62cf,
0x62ff, 0x62c6, 0x64d4,
0x62c8, 0x62dc, 0x62cc,
0x62ca, 0x62c2, 0x62c7,
0x629b, 0x62c9, 0x630c,
0x62ee, 0x62f1, 0x6327,
0x6302, 0x6308, 0x62ef,
0x62f5, 0x6350, 0x633e,
0x634d, 0x641c, 0x634f,
0x6396, 0x638e, 0x6380,
0x63ab, 0x6376, 0x63a3,
0x638f, 0x6389, 0x639f,
0x63b5, 0x636b, 0x6369,
0x63be, 0x63e9, 0x63c0,
0x63c6, 0x63e3, 0x63c9,
0x63d2, 0x63f6, 0x63c4,
0x6416, 0x6434, 0x6406,
0x6413, 0x6426, 0x6436,
0x651d, 0x6417, 0x6428,
0x640f, 0x6467, 0x646f,
0x6476, 0x644e, 0x652a,
0x6495, 0x6493, 0x64a5,
0x64a9, 0x6488, 0x64bc,
0x64da, 0x64d2, 0x64c5,
0x64c7, 0x64bb, 0x64d8,
0x64c2, 0x64f1, 0x64e7,
0x8209, 0x64e0, 0x64e1,
0x62ac, 0x64e3, 0x64ef,
0x652c, 0x64f6, 0x64f4,
0x64f2, 0x64fa, 0x6500,
0x64fd, 0x6518, 0x651c,
0x6505, 0x6524, 0x6523,
0x652b, 0x6534, 0x6535,
0x6537, 0x6536, 0x6538,
0x754b, 0x6548, 0x6556,
0x6555, 0x654d, 0x6558,
0x655e, 0x655d, 0x6572,
0x6578, 0x6582, 0x6583,
0x8b8a, 0x659b, 0x659f,
0x65ab, 0x65b7, 0x65c3,
0x65c6, 0x65c1, 0x65c4,
0x65cc, 0x65d2, 0x65db,
0x65d9, 0x65e0, 0x65e1,
0x65f1, 0x6772, 0x660a,
0x6603, 0x65fb, 0x6773,
0x6635, 0x6636, 0x6634,
0x661c, 0x664f, 0x6644,
0x6649, 0x6641, 0x665e,
0x665d, 0x6664, 0x6667,
0x6668, 0x665f, 0x6662,
0x6670, 0x6683, 0x6688,
0x668e, 0x6689, 0x6684,
0x6698, 0x669d, 0x66c1,
0x66b9, 0x66c9, 0x66be,
0x66bc, 0x66c4, 0x66b8,
0x66d6, 0x66da, 0x66e0,
0x663f, 0x66e6, 0x66e9,
0x66f0, 0x66f5, 0x66f7,
0x670f, 0x6716, 0x671e,
0x6726, 0x6727, 0x9738,
0x672e, 0x673f, 0x6736,
0x6741, 0x6738, 0x6737,
0x6746, 0x675e, 0x6760,
0x6759, 0x6763, 0x6764,
0x6789, 0x6770, 0x67a9,
0x677c, 0x676a, 0x678c,
0x678b, 0x67a6, 0x67a1,
0x6785, 0x67b7, 0x67ef,
0x67b4, 0x67ec, 0x67b3,
0x67e9, 0x67b8, 0x67e4,
0x67de, 0x67dd, 0x67e2,
0x67ee, 0x67b9, 0x67ce,
0x67c6, 0x67e7, 0x6a9c,
0x681e, 0x6846, 0x6829,
0x6840, 0x684d, 0x6832,
0x684e, 0x68b3, 0x682b,
0x6859, 0x6863, 0x6877,
0x687f, 0x689f, 0x688f,
0x68ad, 0x6894, 0x689d,
0x689b, 0x6883, 0x6aae,
0x68b9, 0x6874, 0x68b5,
0x68a0, 0x68ba, 0x690f,
0x688d, 0x687e, 0x6901,
0x68ca, 0x6908, 0x68d8,
0x6922, 0x6926, 0x68e1,
0x690c, 0x68cd, 0x68d4,
0x68e7, 0x68d5, 0x6936,
0x6912, 0x6904, 0x68d7,
0x68e3, 0x6925, 0x68f9,
0x68e0, 0x68ef, 0x6928,
0x692a, 0x691a, 0x6923,
0x6921, 0x68c6, 0x6979,
0x6977, 0x695c, 0x6978,
0x696b, 0x6954, 0x697e,
0x696e, 0x6939, 0x6974,
0x693d, 0x6959, 0x6930,
0x6961, 0x695e, 0x695d,
0x6981, 0x696a, 0x69b2,
0x69ae, 0x69d0, 0x69bf,
0x69c1, 0x69d3, 0x69be,
0x69ce, 0x5be8, 0x69ca,
0x69dd, 0x69bb, 0x69c3,
0x69a7, 0x6a2e, 0x6991,
0x69a0, 0x699c, 0x6995,
0x69b4, 0x69de, 0x69e8,
0x6a02, 0x6a1b, 0x69ff,
0x6b0a, 0x69f9, 0x69f2,
0x69e7, 0x6a05, 0x69b1,
0x6a1e, 0x69ed, 0x6a14,
0x69eb, 0x6a0a, 0x6a12,
0x6ac1, 0x6a23, 0x6a13,
0x6a44, 0x6a0c, 0x6a72,
0x6a36, 0x6a78, 0x6a47,
0x6a62, 0x6a59, 0x6a66,
0x6a48, 0x6a38, 0x6a22,
0x6a90, 0x6a8d, 0x6aa0,
0x6a84, 0x6aa2, 0x6aa3,
0x6a97, 0x8617, 0x6abb,
0x6ac3, 0x6ac2, 0x6ab8,
0x6ab3, 0x6aac, 0x6ade,
0x6ad1, 0x6adf, 0x6aaa,
0x6ada, 0x6aea, 0x6afb,
0x6b05, 0x8616, 0x6afa,
0x6b12, 0x6b16, 0x9b31,
0x6b1f, 0x6b38, 0x6b37,
0x76dc, 0x6b39, 0x98ee,
0x6b47, 0x6b43, 0x6b49,
0x6b50, 0x6b59, 0x6b54,
0x6b5b, 0x6b5f, 0x6b61,
0x6b78, 0x6b79, 0x6b7f,
0x6b80, 0x6b84, 0x6b83,
0x6b8d, 0x6b98, 0x6b95,
0x6b9e, 0x6ba4, 0x6baa,
0x6bab, 0x6baf, 0x6bb2,
0x6bb1, 0x6bb3, 0x6bb7,
0x6bbc, 0x6bc6, 0x6bcb,
0x6bd3, 0x6bdf, 0x6bec,
0x6beb, 0x6bf3, 0x6bef,
0x9ebe, 0x6c08, 0x6c13,
0x6c14, 0x6c1b, 0x6c24,
0x6c23, 0x6c5e, 0x6c55,
0x6c62, 0x6c6a, 0x6c82,
0x6c8d, 0x6c9a, 0x6c81,
0x6c9b, 0x6c7e, 0x6c68,
0x6c73, 0x6c92, 0x6c90,
0x6cc4, 0x6cf1, 0x6cd3,
0x6cbd, 0x6cd7, 0x6cc5,
0x6cdd, 0x6cae, 0x6cb1,
0x6cbe, 0x6cba, 0x6cdb,
0x6cef, 0x6cd9, 0x6cea,
0x6d1f, 0x884d, 0x6d36,
0x6d2b, 0x6d3d, 0x6d38,
0x6d19, 0x6d35, 0x6d33,
0x6d12, 0x6d0c, 0x6d63,
0x6d93, 0x6d64, 0x6d5a,
0x6d79, 0x6d59, 0x6d8e,
0x6d95, 0x6fe4, 0x6d85,
0x6df9, 0x6e15, 0x6e0a,
0x6db5, 0x6dc7, 0x6de6,
0x6db8, 0x6dc6, 0x6dec,
0x6dde, 0x6dcc, 0x6de8,
0x6dd2, 0x6dc5, 0x6dfa,
0x6dd9, 0x6de4, 0x6dd5,
0x6dea, 0x6dee, 0x6e2d,
0x6e6e, 0x6e2e, 0x6e19,
0x6e72, 0x6e5f, 0x6e3e,
0x6e23, 0x6e6b, 0x6e2b,
0x6e76, 0x6e4d, 0x6e1f,
0x6e43, 0x6e3a, 0x6e4e,
0x6e24, 0x6eff, 0x6e1d,
0x6e38, 0x6e82, 0x6eaa,
0x6e98, 0x6ec9, 0x6eb7,
0x6ed3, 0x6ebd, 0x6eaf,
0x6ec4, 0x6eb2, 0x6ed4,
0x6ed5, 0x6e8f, 0x6ea5,
0x6ec2, 0x6e9f, 0x6f41,
0x6f11, 0x704c, 0x6eec,
0x6ef8, 0x6efe, 0x6f3f,
0x6ef2, 0x6f31, 0x6eef,
0x6f32, 0x6ecc, 0x6f3e,
0x6f13, 0x6ef7, 0x6f86,
0x6f7a, 0x6f78, 0x6f81,
0x6f80, 0x6f6f, 0x6f5b,
0x6ff3, 0x6f6d, 0x6f82,
0x6f7c, 0x6f58, 0x6f8e,
0x6f91, 0x6fc2, 0x6f66,
0x6fb3, 0x6fa3, 0x6fa1,
0x6fa4, 0x6fb9, 0x6fc6,
0x6faa, 0x6fdf, 0x6fd5,
0x6fec, 0x6fd4, 0x6fd8,
0x6ff1, 0x6fee, 0x6fdb,
0x7009, 0x700b, 0x6ffa,
0x7011, 0x7001, 0x700f,
0x6ffe, 0x701b, 0x701a,
0x6f74, 0x701d, 0x7018,
0x701f, 0x7030, 0x703e,
0x7032, 0x7051, 0x7063,
0x7099, 0x7092, 0x70af,
0x70f1, 0x70ac, 0x70b8,
0x70b3, 0x70ae, 0x70df,
0x70cb, 0x70dd, 0x70d9,
0x7109, 0x70fd, 0x711c,
0x7119, 0x7165, 0x7155,
0x7188, 0x7166, 0x7162,
0x714c, 0x7156, 0x716c,
0x718f, 0x71fb, 0x7184,
0x7195, 0x71a8, 0x71ac,
0x71d7, 0x71b9, 0x71be,
0x71d2, 0x71c9, 0x71d4,
0x71ce, 0x71e0, 0x71ec,
0x71e7, 0x71f5, 0x71fc,
0x71f9, 0x71ff, 0x720d,
0x7210, 0x721b, 0x7228,
0x722d, 0x722c, 0x7230,
0x7232, 0x723b, 0x723c,
0x723f, 0x7240, 0x7246,
0x724b, 0x7258, 0x7274,
0x727e, 0x7282, 0x7281,
0x7287, 0x7292, 0x7296,
0x72a2, 0x72a7, 0x72b9,
0x72b2, 0x72c3, 0x72c6,
0x72c4, 0x72ce, 0x72d2,
0x72e2, 0x72e0, 0x72e1,
0x72f9, 0x72f7, 0x500f,
0x7317, 0x730a, 0x731c,
0x7316, 0x731d, 0x7334,
0x732f, 0x7329, 0x7325,
0x733e, 0x734e, 0x734f,
0x9ed8, 0x7357, 0x736a,
0x7368, 0x7370, 0x7378,
0x7375, 0x737b, 0x737a,
0x73c8, 0x73b3, 0x73ce,
0x73bb, 0x73c0, 0x73e5,
0x73ee, 0x73de, 0x74a2,
0x7405, 0x746f, 0x7425,
0x73f8, 0x7432, 0x743a,
0x7455, 0x743f, 0x745f,
0x7459, 0x7441, 0x745c,
0x7469, 0x7470, 0x7463,
0x746a, 0x7476, 0x747e,
0x748b, 0x749e, 0x74a7,
0x74ca, 0x74cf, 0x74d4,
0x73f1, 0x74e0, 0x74e3,
0x74e7, 0x74e9, 0x74ee,
0x74f2, 0x74f0, 0x74f1,
0x74f8, 0x74f7, 0x7504,
0x7503, 0x7505, 0x750c,
0x750e, 0x750d, 0x7515,
0x7513, 0x751e, 0x7526,
0x752c, 0x753c, 0x7544,
0x754d, 0x754a, 0x7549,
0x755b, 0x7546, 0x755a,
0x7569, 0x7564, 0x7567,
0x756b, 0x756d, 0x7578,
0x7576, 0x7586, 0x7587,
0x7574, 0x758a, 0x7589,
0x7582, 0x7594, 0x759a,
0x759d, 0x75a5, 0x75a3,
0x75c2, 0x75b3, 0x75c3,
0x75b5, 0x75bd, 0x75b8,
0x75bc, 0x75b1, 0x75cd,
0x75ca, 0x75d2, 0x75d9,
0x75e3, 0x75de, 0x75fe,
0x75ff, 0x75fc, 0x7601,
0x75f0, 0x75fa, 0x75f2,
0x75f3, 0x760b, 0x760d,
0x7609, 0x761f, 0x7627,
0x7620, 0x7621, 0x7622,
0x7624, 0x7634, 0x7630,
0x763b, 0x7647, 0x7648,
0x7646, 0x765c, 0x7658,
0x7661, 0x7662, 0x7668,
0x7669, 0x766a, 0x7667,
0x766c, 0x7670, 0x7672,
0x7676, 0x7678, 0x767c,
0x7680, 0x7683, 0x7688,
0x768b, 0x768e, 0x7696,
0x7693, 0x7699, 0x769a,
0x76b0, 0x76b4, 0x76b8,
0x76b9, 0x76ba, 0x76c2,
0x76cd, 0x76d6, 0x76d2,
0x76de, 0x76e1, 0x76e5,
0x76e7, 0x76ea, 0x862f,
0x76fb, 0x7708, 0x7707,
0x7704, 0x7729, 0x7724,
0x771e, 0x7725, 0x7726,
0x771b, 0x7737, 0x7738,
0x7747, 0x775a, 0x7768,
0x776b, 0x775b, 0x7765,
0x777f, 0x777e, 0x7779,
0x778e, 0x778b, 0x7791,
0x77a0, 0x779e, 0x77b0,
0x77b6, 0x77b9, 0x77bf,
0x77bc, 0x77bd, 0x77bb,
0x77c7, 0x77cd, 0x77d7,
0x77da, 0x77dc, 0x77e3,
0x77ee, 0x77fc, 0x780c,
0x7812, 0x7926, 0x7820,
0x792a, 0x7845, 0x788e,
0x7874, 0x7886, 0x787c,
0x789a, 0x788c, 0x78a3,
0x78b5, 0x78aa, 0x78af,
0x78d1, 0x78c6, 0x78cb,
0x78d4, 0x78be, 0x78bc,
0x78c5, 0x78ca, 0x78ec,
0x78e7, 0x78da, 0x78fd,
0x78f4, 0x7907, 0x7912,
0x7911, 0x7919, 0x792c,
0x792b, 0x7940, 0x7960,
0x7957, 0x795f, 0x795a,
0x7955, 0x7953, 0x797a,
0x797f, 0x798a, 0x799d,
0x79a7, 0x9f4b, 0x79aa,
0x79ae, 0x79b3, 0x79b9,
0x79ba, 0x79c9, 0x79d5,
0x79e7, 0x79ec, 0x79e1,
0x79e3, 0x7a08, 0x7a0d,
0x7a18, 0x7a19, 0x7a20,
0x7a1f, 0x7980, 0x7a31,
0x7a3b, 0x7a3e, 0x7a37,
0x7a43, 0x7a57, 0x7a49,
0x7a61, 0x7a62, 0x7a69,
0x9f9d, 0x7a70, 0x7a79,
0x7a7d, 0x7a88, 0x7a97,
0x7a95, 0x7a98, 0x7a96,
0x7aa9, 0x7ac8, 0x7ab0,
0x7ab6, 0x7ac5, 0x7ac4,
0x7abf, 0x9083, 0x7ac7,
0x7aca, 0x7acd, 0x7acf,
0x7ad5, 0x7ad3, 0x7ad9,
0x7ada, 0x7add, 0x7ae1,
0x7ae2, 0x7ae6, 0x7aed,
0x7af0, 0x7b02, 0x7b0f,
0x7b0a, 0x7b06, 0x7b33,
0x7b18, 0x7b19, 0x7b1e,
0x7b35, 0x7b28, 0x7b36,
0x7b50, 0x7b7a, 0x7b04,
0x7b4d, 0x7b0b, 0x7b4c,
0x7b45, 0x7b75, 0x7b65,
0x7b74, 0x7b67, 0x7b70,
0x7b71, 0x7b6c, 0x7b6e,
0x7b9d, 0x7b98, 0x7b9f,
0x7b8d, 0x7b9c, 0x7b9a,
0x7b8b, 0x7b92, 0x7b8f,
0x7b5d, 0x7b99, 0x7bcb,
0x7bc1, 0x7bcc, 0x7bcf,
0x7bb4, 0x7bc6, 0x7bdd,
0x7be9, 0x7c11, 0x7c14,
0x7be6, 0x7be5, 0x7c60,
0x7c00, 0x7c07, 0x7c13,
0x7bf3, 0x7bf7, 0x7c17,
0x7c0d, 0x7bf6, 0x7c23,
0x7c27, 0x7c2a, 0x7c1f,
0x7c37, 0x7c2b, 0x7c3d,
0x7c4c, 0x7c43, 0x7c54,
0x7c4f, 0x7c40, 0x7c50,
0x7c58, 0x7c5f, 0x7c64,
0x7c56, 0x7c65, 0x7c6c,
0x7c75, 0x7c83, 0x7c90,
0x7ca4, 0x7cad, 0x7ca2,
0x7cab, 0x7ca1, 0x7ca8,
0x7cb3, 0x7cb2, 0x7cb1,
0x7cae, 0x7cb9, 0x7cbd,
0x7cc0, 0x7cc5, 0x7cc2,
0x7cd8, 0x7cd2, 0x7cdc,
0x7ce2, 0x9b3b, 0x7cef,
0x7cf2, 0x7cf4, 0x7cf6,
0x7cfa, 0x7d06, 0x7d02,
0x7d1c, 0x7d15, 0x7d0a,
0x7d45, 0x7d4b, 0x7d2e,
0x7d32, 0x7d3f, 0x7d35,
0x7d46, 0x7d73, 0x7d56,
0x7d4e, 0x7d72, 0x7d68,
0x7d6e, 0x7d4f, 0x7d63,
0x7d93, 0x7d89, 0x7d5b,
0x7d8f, 0x7d7d, 0x7d9b,
0x7dba, 0x7dae, 0x7da3,
0x7db5, 0x7dc7, 0x7dbd,
0x7dab, 0x7e3d, 0x7da2,
0x7daf, 0x7ddc, 0x7db8,
0x7d9f, 0x7db0, 0x7dd8,
0x7ddd, 0x7de4, 0x7dde,
0x7dfb, 0x7df2, 0x7de1,
0x7e05, 0x7e0a, 0x7e23,
0x7e21, 0x7e12, 0x7e31,
0x7e1f, 0x7e09, 0x7e0b,
0x7e22, 0x7e46, 0x7e66,
0x7e3b, 0x7e35, 0x7e39,
0x7e43, 0x7e37, 0x7e32,
0x7e3a, 0x7e67, 0x7e5d,
0x7e56, 0x7e5e, 0x7e59,
0x7e5a, 0x7e79, 0x7e6a,
0x7e69, 0x7e7c, 0x7e7b,
0x7e83, 0x7dd5, 0x7e7d,
0x8fae, 0x7e7f, 0x7e88,
0x7e89, 0x7e8c, 0x7e92,
0x7e90, 0x7e93, 0x7e94,
0x7e96, 0x7e8e, 0x7e9b,
0x7e9c, 0x7f38, 0x7f3a,
0x7f45, 0x7f4c, 0x7f4d,
0x7f4e, 0x7f50, 0x7f51,
0x7f55, 0x7f54, 0x7f58,
0x7f5f, 0x7f60, 0x7f68,
0x7f69, 0x7f67, 0x7f78,
0x7f82, 0x7f86, 0x7f83,
0x7f88, 0x7f87, 0x7f8c,
0x7f94, 0x7f9e, 0x7f9d,
0x7f9a, 0x7fa3, 0x7faf,
0x7fb2, 0x7fb9, 0x7fae,
0x7fb6, 0x7fb8, 0x8b71,
0x7fc5, 0x7fc6, 0x7fca,
0x7fd5, 0x7fd4, 0x7fe1,
0x7fe6, 0x7fe9, 0x7ff3,
0x7ff9, 0x98dc, 0x8006,
0x8004, 0x800b, 0x8012,
0x8018, 0x8019, 0x801c,
0x8021, 0x8028, 0x803f,
0x803b, 0x804a, 0x8046,
0x8052, 0x8058, 0x805a,
0x805f, 0x8062, 0x8068,
0x8073, 0x8072, 0x8070,
0x8076, 0x8079, 0x807d,
0x807f, 0x8084, 0x8086,
0x8085, 0x809b, 0x8093,
0x809a, 0x80ad, 0x5190,
0x80ac, 0x80db, 0x80e5,
0x80d9, 0x80dd, 0x80c4,
0x80da, 0x80d6, 0x8109,
0x80ef, 0x80f1, 0x811b,
0x8129, 0x8123, 0x812f,
0x814b, 0x968b, 0x8146,
0x813e, 0x8153, 0x8151,
0x80fc, 0x8171, 0x816e,
0x8165, 0x8166, 0x8174,
0x8183, 0x8188, 0x818a,
0x8180, 0x8182, 0x81a0,
0x8195, 0x81a4, 0x81a3,
0x815f, 0x8193, 0x81a9,
0x81b0, 0x81b5, 0x81be,
0x81b8, 0x81bd, 0x81c0,
0x81c2, 0x81ba, 0x81c9,
0x81cd, 0x81d1, 0x81d9,
0x81d8, 0x81c8, 0x81da,
0x81df, 0x81e0, 0x81e7,
0x81fa, 0x81fb, 0x81fe,
0x8201, 0x8202, 0x8205,
0x8207, 0x820a, 0x820d,
0x8210, 0x8216, 0x8229,
0x822b, 0x8238, 0x8233,
0x8240, 0x8259, 0x8258,
0x825d, 0x825a, 0x825f,
0x8264, 0x8262, 0x8268,
0x826a, 0x826b, 0x822e,
0x8271, 0x8277, 0x8278,
0x827e, 0x828d, 0x8292,
0x82ab, 0x829f, 0x82bb,
0x82ac, 0x82e1, 0x82e3,
0x82df, 0x82d2, 0x82f4,
0x82f3, 0x82fa, 0x8393,
0x8303, 0x82fb, 0x82f9,
0x82de, 0x8306, 0x82dc,
0x8309, 0x82d9, 0x8335,
0x8334, 0x8316, 0x8332,
0x8331, 0x8340, 0x8339,
0x8350, 0x8345, 0x832f,
0x832b, 0x8317, 0x8318,
0x8385, 0x839a, 0x83aa,
0x839f, 0x83a2, 0x8396,
0x8323, 0x838e, 0x8387,
0x838a, 0x837c, 0x83b5,
0x8373, 0x8375, 0x83a0,
0x8389, 0x83a8, 0x83f4,
0x8413, 0x83eb, 0x83ce,
0x83fd, 0x8403, 0x83d8,
0x840b, 0x83c1, 0x83f7,
0x8407, 0x83e0, 0x83f2,
0x840d, 0x8422, 0x8420,
0x83bd, 0x8438, 0x8506,
0x83fb, 0x846d, 0x842a,
0x843c, 0x855a, 0x8484,
0x8477, 0x846b, 0x84ad,
0x846e, 0x8482, 0x8469,
0x8446, 0x842c, 0x846f,
0x8479, 0x8435, 0x84ca,
0x8462, 0x84b9, 0x84bf,
0x849f, 0x84d9, 0x84cd,
0x84bb, 0x84da, 0x84d0,
0x84c1, 0x84c6, 0x84d6,
0x84a1, 0x8521, 0x84ff,
0x84f4, 0x8517, 0x8518,
0x852c, 0x851f, 0x8515,
0x8514, 0x84fc, 0x8540,
0x8563, 0x8558, 0x8548,
0x8541, 0x8602, 0x854b,
0x8555, 0x8580, 0x85a4,
0x8588, 0x8591, 0x858a,
0x85a8, 0x856d, 0x8594,
0x859b, 0x85ea, 0x8587,
0x859c, 0x8577, 0x857e,
0x8590, 0x85c9, 0x85ba,
0x85cf, 0x85b9, 0x85d0,
0x85d5, 0x85dd, 0x85e5,
0x85dc, 0x85f9, 0x860a,
0x8613, 0x860b, 0x85fe,
0x85fa, 0x8606, 0x8622,
0x861a, 0x8630, 0x863f,
0x864d, 0x4e55, 0x8654,
0x865f, 0x8667, 0x8671,
0x8693, 0x86a3, 0x86a9,
0x86aa, 0x868b, 0x868c,
0x86b6, 0x86af, 0x86c4,
0x86c6, 0x86b0, 0x86c9,
0x8823, 0x86ab, 0x86d4,
0x86de, 0x86e9, 0x86ec,
0x86df, 0x86db, 0x86ef,
0x8712, 0x8706, 0x8708,
0x8700, 0x8703, 0x86fb,
0x8711, 0x8709, 0x870d,
0x86f9, 0x870a, 0x8734,
0x873f, 0x8737, 0x873b,
0x8725, 0x8729, 0x871a,
0x8760, 0x875f, 0x8778,
0x874c, 0x874e, 0x8774,
0x8757, 0x8768, 0x876e,
0x8759, 0x8753, 0x8763,
0x876a, 0x8805, 0x87a2,
0x879f, 0x8782, 0x87af,
0x87cb, 0x87bd, 0x87c0,
0x87d0, 0x96d6, 0x87ab,
0x87c4, 0x87b3, 0x87c7,
0x87c6, 0x87bb, 0x87ef,
0x87f2, 0x87e0, 0x880f,
0x880d, 0x87fe, 0x87f6,
0x87f7, 0x880e, 0x87d2,
0x8811, 0x8816, 0x8815,
0x8822, 0x8821, 0x8831,
0x8836, 0x8839, 0x8827,
0x883b, 0x8844, 0x8842,
0x8852, 0x8859, 0x885e,
0x8862, 0x886b, 0x8881,
0x887e, 0x889e, 0x8875,
0x887d, 0x88b5, 0x8872,
0x8882, 0x8897, 0x8892,
0x88ae, 0x8899, 0x88a2,
0x888d, 0x88a4, 0x88b0,
0x88bf, 0x88b1, 0x88c3,
0x88c4, 0x88d4, 0x88d8,
0x88d9, 0x88dd, 0x88f9,
0x8902, 0x88fc, 0x88f4,
0x88e8, 0x88f2, 0x8904,
0x890c, 0x890a, 0x8913,
0x8943, 0x891e, 0x8925,
0x892a, 0x892b, 0x8941,
0x8944, 0x893b, 0x8936,
0x8938, 0x894c, 0x891d,
0x8960, 0x895e, 0x8966,
0x8964, 0x896d, 0x896a,
0x896f, 0x8974, 0x8977,
0x897e, 0x8983, 0x8988,
0x898a, 0x8993, 0x8998,
0x89a1, 0x89a9, 0x89a6,
0x89ac, 0x89af, 0x89b2,
0x89ba, 0x89bd, 0x89bf,
0x89c0, 0x89da, 0x89dc,
0x89dd, 0x89e7, 0x89f4,
0x89f8, 0x8a03, 0x8a16,
0x8a10, 0x8a0c, 0x8a1b,
0x8a1d, 0x8a25, 0x8a36,
0x8a41, 0x8a5b, 0x8a52,
0x8a46, 0x8a48, 0x8a7c,
0x8a6d, 0x8a6c, 0x8a62,
0x8a85, 0x8a82, 0x8a84,
0x8aa8, 0x8aa1, 0x8a91,
0x8aa5, 0x8aa6, 0x8a9a,
0x8aa3, 0x8ac4, 0x8acd,
0x8ac2, 0x8ada, 0x8aeb,
0x8af3, 0x8ae7, 0x8ae4,
0x8af1, 0x8b14, 0x8ae0,
0x8ae2, 0x8af7, 0x8ade,
0x8adb, 0x8b0c, 0x8b07,
0x8b1a, 0x8ae1, 0x8b16,
0x8b10, 0x8b17, 0x8b20,
0x8b33, 0x97ab, 0x8b26,
0x8b2b, 0x8b3e, 0x8b28,
0x8b41, 0x8b4c, 0x8b4f,
0x8b4e, 0x8b49, 0x8b56,
0x8b5b, 0x8b5a, 0x8b6b,
0x8b5f, 0x8b6c, 0x8b6f,
0x8b74, 0x8b7d, 0x8b80,
0x8b8c, 0x8b8e, 0x8b92,
0x8b93, 0x8b96, 0x8b99,
0x8b9a, 0x8c3a, 0x8c41,
0x8c3f, 0x8c48, 0x8c4c,
0x8c4e, 0x8c50, 0x8c55,
0x8c62, 0x8c6c, 0x8c78,
0x8c7a, 0x8c82, 0x8c89,
0x8c85, 0x8c8a, 0x8c8d,
0x8c8e, 0x8c94, 0x8c7c,
0x8c98, 0x621d, 0x8cad,
0x8caa, 0x8cbd, 0x8cb2,
0x8cb3, 0x8cae, 0x8cb6,
0x8cc8, 0x8cc1, 0x8ce4,
0x8ce3, 0x8cda, 0x8cfd,
0x8cfa, 0x8cfb, 0x8d04,
0x8d05, 0x8d0a, 0x8d07,
0x8d0f, 0x8d0d, 0x8d10,
0x9f4e, 0x8d13, 0x8ccd,
0x8d14, 0x8d16, 0x8d67,
0x8d6d, 0x8d71, 0x8d73,
0x8d81, 0x8d99, 0x8dc2,
0x8dbe, 0x8dba, 0x8dcf,
0x8dda, 0x8dd6, 0x8dcc,
0x8ddb, 0x8dcb, 0x8dea,
0x8deb, 0x8ddf, 0x8de3,
0x8dfc, 0x8e08, 0x8e09,
0x8dff, 0x8e1d, 0x8e1e,
0x8e10, 0x8e1f, 0x8e42,
0x8e35, 0x8e30, 0x8e34,
0x8e4a, 0x8e47, 0x8e49,
0x8e4c, 0x8e50, 0x8e48,
0x8e59, 0x8e64, 0x8e60,
0x8e2a, 0x8e63, 0x8e55,
0x8e76, 0x8e72, 0x8e7c,
0x8e81, 0x8e87, 0x8e85,
0x8e84, 0x8e8b, 0x8e8a,
0x8e93, 0x8e91, 0x8e94,
0x8e99, 0x8eaa, 0x8ea1,
0x8eac, 0x8eb0, 0x8ec6,
0x8eb1, 0x8ebe, 0x8ec5,
0x8ec8, 0x8ecb, 0x8edb,
0x8ee3, 0x8efc, 0x8efb,
0x8eeb, 0x8efe, 0x8f0a,
0x8f05, 0x8f15, 0x8f12,
0x8f19, 0x8f13, 0x8f1c,
0x8f1f, 0x8f1b, 0x8f0c,
0x8f26, 0x8f33, 0x8f3b,
0x8f39, 0x8f45, 0x8f42,
0x8f3e, 0x8f4c, 0x8f49,
0x8f46, 0x8f4e, 0x8f57,
0x8f5c, 0x8f62, 0x8f63,
0x8f64, 0x8f9c, 0x8f9f,
0x8fa3, 0x8fad, 0x8faf,
0x8fb7, 0x8fda, 0x8fe5,
0x8fe2, 0x8fea, 0x8fef,
0x9087, 0x8ff4, 0x9005,
0x8ff9, 0x8ffa, 0x9011,
0x9015, 0x9021, 0x900d,
0x901e, 0x9016, 0x900b,
0x9027, 0x9036, 0x9035,
0x9039, 0x8ff8, 0x904f,
0x9050, 0x9051, 0x9052,
0x900e, 0x9049, 0x903e,
0x9056, 0x9058, 0x905e,
0x9068, 0x906f, 0x9076,
0x96a8, 0x9072, 0x9082,
0x907d, 0x9081, 0x9080,
0x908a, 0x9089, 0x908f,
0x90a8, 0x90af, 0x90b1,
0x90b5, 0x90e2, 0x90e4,
0x6248, 0x90db, 0x9102,
0x9112, 0x9119, 0x9132,
0x9130, 0x914a, 0x9156,
0x9158, 0x9163, 0x9165,
0x9169, 0x9173, 0x9172,
0x918b, 0x9189, 0x9182,
0x91a2, 0x91ab, 0x91af,
0x91aa, 0x91b5, 0x91b4,
0x91ba, 0x91c0, 0x91c1,
0x91c9, 0x91cb, 0x91d0,
0x91d6, 0x91df, 0x91e1,
0x91db, 0x91fc, 0x91f5,
0x91f6, 0x921e, 0x91ff,
0x9214, 0x922c, 0x9215,
0x9211, 0x925e, 0x9257,
0x9245, 0x9249, 0x9264,
0x9248, 0x9295, 0x923f,
0x924b, 0x9250, 0x929c,
0x9296, 0x9293, 0x929b,
0x925a, 0x92cf, 0x92b9,
0x92b7, 0x92e9, 0x930f,
0x92fa, 0x9344, 0x932e,
0x9319, 0x9322, 0x931a,
0x9323, 0x933a, 0x9335,
0x933b, 0x935c, 0x9360,
0x937c, 0x936e, 0x9356,
0x93b0, 0x93ac, 0x93ad,
0x9394, 0x93b9, 0x93d6,
0x93d7, 0x93e8, 0x93e5,
0x93d8, 0x93c3, 0x93dd,
0x93d0, 0x93c8, 0x93e4,
0x941a, 0x9414, 0x9413,
0x9403, 0x9407, 0x9410,
0x9436, 0x942b, 0x9435,
0x9421, 0x943a, 0x9441,
0x9452, 0x9444, 0x945b,
0x9460, 0x9462, 0x945e,
0x946a, 0x9229, 0x9470,
0x9475, 0x9477, 0x947d,
0x945a, 0x947c, 0x947e,
0x9481, 0x947f, 0x9582,
0x9587, 0x958a, 0x9594,
0x9596, 0x9598, 0x9599,
0x95a0, 0x95a8, 0x95a7,
0x95ad, 0x95bc, 0x95bb,
0x95b9, 0x95be, 0x95ca,
0x6ff6, 0x95c3, 0x95cd,
0x95cc, 0x95d5, 0x95d4,
0x95d6, 0x95dc, 0x95e1,
0x95e5, 0x95e2, 0x9621,
0x9628, 0x962e, 0x962f,
0x9642, 0x964c, 0x964f,
0x964b, 0x9677, 0x965c,
0x965e, 0x965d, 0x965f,
0x9666, 0x9672, 0x966c,
0x968d, 0x9698, 0x9695,
0x9697, 0x96aa, 0x96a7,
0x96b1, 0x96b2, 0x96b0,
0x96b4, 0x96b6, 0x96b8,
0x96b9, 0x96ce, 0x96cb,
0x96c9, 0x96cd, 0x894d,
0x96dc, 0x970d, 0x96d5,
0x96f9, 0x9704, 0x9706,
0x9708, 0x9713, 0x970e,
0x9711, 0x970f, 0x9716,
0x9719, 0x9724, 0x972a,
0x9730, 0x9739, 0x973d,
0x973e, 0x9744, 0x9746,
0x9748, 0x9742, 0x9749,
0x975c, 0x9760, 0x9764,
0x9766, 0x9768, 0x52d2,
0x976b, 0x9771, 0x9779,
0x9785, 0x977c, 0x9781,
0x977a, 0x9786, 0x978b,
0x978f, 0x9790, 0x979c,
0x97a8, 0x97a6, 0x97a3,
0x97b3, 0x97b4, 0x97c3,
0x97c6, 0x97c8, 0x97cb,
0x97dc, 0x97ed, 0x9f4f,
0x97f2, 0x7adf, 0x97f6,
0x97f5, 0x980f, 0x980c,
0x9838, 0x9824, 0x9821,
0x9837, 0x983d, 0x9846,
0x984f, 0x984b, 0x986b,
0x986f, 0x9870, 0x9871,
0x9874, 0x9873, 0x98aa,
0x98af, 0x98b1, 0x98b6,
0x98c4, 0x98c3, 0x98c6,
0x98e9, 0x98eb, 0x9903,
0x9909, 0x9912, 0x9914,
0x9918, 0x9921, 0x991d,
0x991e, 0x9924, 0x9920,
0x992c, 0x992e, 0x993d,
0x993e, 0x9942, 0x9949,
0x9945, 0x9950, 0x994b,
0x9951, 0x9952, 0x994c,
0x9955, 0x9997, 0x9998,
0x99a5, 0x99ad, 0x99ae,
0x99bc, 0x99df, 0x99db,
0x99dd, 0x99d8, 0x99d1,
0x99ed, 0x99ee, 0x99f1,
0x99f2, 0x99fb, 0x99f8,
0x9a01, 0x9a0f, 0x9a05,
0x99e2, 0x9a19, 0x9a2b,
0x9a37, 0x9a45, 0x9a42,
0x9a40, 0x9a43, 0x9a3e,
0x9a55, 0x9a4d, 0x9a5b,
0x9a57, 0x9a5f, 0x9a62,
0x9a65, 0x9a64, 0x9a69,
0x9a6b, 0x9a6a, 0x9aad,
0x9ab0, 0x9abc, 0x9ac0,
0x9acf, 0x9ad1, 0x9ad3,
0x9ad4, 0x9ade, 0x9adf,
0x9ae2, 0x9ae3, 0x9ae6,
0x9aef, 0x9aeb, 0x9aee,
0x9af4, 0x9af1, 0x9af7,
0x9afb, 0x9b06, 0x9b18,
0x9b1a, 0x9b1f, 0x9b22,
0x9b23, 0x9b25, 0x9b27,
0x9b28, 0x9b29, 0x9b2a,
0x9b2e, 0x9b2f, 0x9b32,
0x9b44, 0x9b43, 0x9b4f,
0x9b4d, 0x9b4e, 0x9b51,
0x9b58, 0x9b74, 0x9b93,
0x9b83, 0x9b91, 0x9b96,
0x9b97, 0x9b9f, 0x9ba0,
0x9ba8, 0x9bb4, 0x9bc0,
0x9bca, 0x9bb9, 0x9bc6,
0x9bcf, 0x9bd1, 0x9bd2,
0x9be3, 0x9be2, 0x9be4,
0x9bd4, 0x9be1, 0x9c3a,
0x9bf2, 0x9bf1, 0x9bf0,
0x9c15, 0x9c14, 0x9c09,
0x9c13, 0x9c0c, 0x9c06,
0x9c08, 0x9c12, 0x9c0a,
0x9c04, 0x9c2e, 0x9c1b,
0x9c25, 0x9c24, 0x9c21,
0x9c30, 0x9c47, 0x9c32,
0x9c46, 0x9c3e, 0x9c5a,
0x9c60, 0x9c67, 0x9c76,
0x9c78, 0x9ce7, 0x9cec,
0x9cf0, 0x9d09, 0x9d08,
0x9ceb, 0x9d03, 0x9d06,
0x9d2a, 0x9d26, 0x9daf,
0x9d23, 0x9d1f, 0x9d44,
0x9d15, 0x9d12, 0x9d41,
0x9d3f, 0x9d3e, 0x9d46,
0x9d48, 0x9d5d, 0x9d5e,
0x9d64, 0x9d51, 0x9d50,
0x9d59, 0x9d72, 0x9d89,
0x9d87, 0x9dab, 0x9d6f,
0x9d7a, 0x9d9a, 0x9da4,
0x9da9, 0x9db2, 0x9dc4,
0x9dc1, 0x9dbb, 0x9db8,
0x9dba, 0x9dc6, 0x9dcf,
0x9dc2, 0x9dd9, 0x9dd3,
0x9df8, 0x9de6, 0x9ded,
0x9def, 0x9dfd, 0x9e1a,
0x9e1b, 0x9e1e, 0x9e75,
0x9e79, 0x9e7d, 0x9e81,
0x9e88, 0x9e8b, 0x9e8c,
0x9e92, 0x9e95, 0x9e91,
0x9e9d, 0x9ea5, 0x9ea9,
0x9eb8, 0x9eaa, 0x9ead,
0x9761, 0x9ecc, 0x9ece,
0x9ecf, 0x9ed0, 0x9ed4,
0x9edc, 0x9ede, 0x9edd,
0x9ee0, 0x9ee5, 0x9ee8,
0x9eef, 0x9ef4, 0x9ef6,
0x9ef7, 0x9ef9, 0x9efb,
0x9efc, 0x9efd, 0x9f07,
0x9f08, 0x76b7, 0x9f15,
0x9f21, 0x9f2c, 0x9f3e,
0x9f4a, 0x9f52, 0x9f54,
0x9f63, 0x9f5f, 0x9f60,
0x9f61, 0x9f66, 0x9f67,
0x9f6c, 0x9f6a, 0x9f77,
0x9f72, 0x9f76, 0x9f95,
0x9f9c, 0x9fa0, 0x582f,
0x69c7, 0x9059, 0x7464,
0x51dc
};
#endif /* _MGCHARSET_UNICODE */
#endif /* _SHIFTJIS_SUPPORT */
| {
"pile_set_name": "Github"
} |
#Thu Apr 28 16:19:11 CEST 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
| {
"pile_set_name": "Github"
} |
<?php
/**
* PHPExcel_Writer_Excel5_BIFFwriter
*
* Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* @category PHPExcel
* @package PHPExcel_Writer_Excel5
* @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
// Original file header of PEAR::Spreadsheet_Excel_Writer_BIFFwriter (used as the base for this class):
// -----------------------------------------------------------------------------------------
// * Module written/ported by Xavier Noguer <[email protected]>
// *
// * The majority of this is _NOT_ my code. I simply ported it from the
// * PERL Spreadsheet::WriteExcel module.
// *
// * The author of the Spreadsheet::WriteExcel module is John McNamara
// * <[email protected]>
// *
// * I _DO_ maintain this code, and John McNamara has nothing to do with the
// * porting of this code to PHP. Any questions directly related to this
// * class library should be directed to me.
// *
// * License Information:
// *
// * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets
// * Copyright (c) 2002-2003 Xavier Noguer [email protected]
// *
// * This library is free software; you can redistribute it and/or
// * modify it under the terms of the GNU Lesser General Public
// * License as published by the Free Software Foundation; either
// * version 2.1 of the License, or (at your option) any later version.
// *
// * This library is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// * Lesser General Public License for more details.
// *
// * You should have received a copy of the GNU Lesser General Public
// * License along with this library; if not, write to the Free Software
// * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// */
class PHPExcel_Writer_Excel5_BIFFwriter
{
/**
* The byte order of this architecture. 0 => little endian, 1 => big endian
* @var integer
*/
private static $byteOrder;
/**
* The string containing the data of the BIFF stream
* @var string
*/
public $_data;
/**
* The size of the data in bytes. Should be the same as strlen($this->_data)
* @var integer
*/
public $_datasize;
/**
* The maximum length for a BIFF record (excluding record header and length field). See addContinue()
* @var integer
* @see addContinue()
*/
private $limit = 8224;
/**
* Constructor
*/
public function __construct()
{
$this->_data = '';
$this->_datasize = 0;
// $this->limit = 8224;
}
/**
* Determine the byte order and store it as class data to avoid
* recalculating it for each call to new().
*
* @return int
*/
public static function getByteOrder()
{
if (!isset(self::$byteOrder)) {
// Check if "pack" gives the required IEEE 64bit float
$teststr = pack("d", 1.2345);
$number = pack("C8", 0x8D, 0x97, 0x6E, 0x12, 0x83, 0xC0, 0xF3, 0x3F);
if ($number == $teststr) {
$byte_order = 0; // Little Endian
} elseif ($number == strrev($teststr)) {
$byte_order = 1; // Big Endian
} else {
// Give up. I'll fix this in a later version.
throw new PHPExcel_Writer_Exception("Required floating point format not supported on this platform.");
}
self::$byteOrder = $byte_order;
}
return self::$byteOrder;
}
/**
* General storage function
*
* @param string $data binary data to append
* @access private
*/
protected function append($data)
{
if (strlen($data) - 4 > $this->limit) {
$data = $this->addContinue($data);
}
$this->_data .= $data;
$this->_datasize += strlen($data);
}
/**
* General storage function like append, but returns string instead of modifying $this->_data
*
* @param string $data binary data to write
* @return string
*/
public function writeData($data)
{
if (strlen($data) - 4 > $this->limit) {
$data = $this->addContinue($data);
}
$this->_datasize += strlen($data);
return $data;
}
/**
* Writes Excel BOF record to indicate the beginning of a stream or
* sub-stream in the BIFF file.
*
* @param integer $type Type of BIFF file to write: 0x0005 Workbook,
* 0x0010 Worksheet.
* @access private
*/
protected function storeBof($type)
{
$record = 0x0809; // Record identifier (BIFF5-BIFF8)
$length = 0x0010;
// by inspection of real files, MS Office Excel 2007 writes the following
$unknown = pack("VV", 0x000100D1, 0x00000406);
$build = 0x0DBB; // Excel 97
$year = 0x07CC; // Excel 97
$version = 0x0600; // BIFF8
$header = pack("vv", $record, $length);
$data = pack("vvvv", $version, $type, $build, $year);
$this->append($header . $data . $unknown);
}
/**
* Writes Excel EOF record to indicate the end of a BIFF stream.
*
* @access private
*/
protected function storeEof()
{
$record = 0x000A; // Record identifier
$length = 0x0000; // Number of bytes to follow
$header = pack("vv", $record, $length);
$this->append($header);
}
/**
* Writes Excel EOF record to indicate the end of a BIFF stream.
*
* @access private
*/
public function writeEof()
{
$record = 0x000A; // Record identifier
$length = 0x0000; // Number of bytes to follow
$header = pack("vv", $record, $length);
return $this->writeData($header);
}
/**
* Excel limits the size of BIFF records. In Excel 5 the limit is 2084 bytes. In
* Excel 97 the limit is 8228 bytes. Records that are longer than these limits
* must be split up into CONTINUE blocks.
*
* This function takes a long BIFF record and inserts CONTINUE records as
* necessary.
*
* @param string $data The original binary data to be written
* @return string A very convenient string of continue blocks
* @access private
*/
private function addContinue($data)
{
$limit = $this->limit;
$record = 0x003C; // Record identifier
// The first 2080/8224 bytes remain intact. However, we have to change
// the length field of the record.
$tmp = substr($data, 0, 2) . pack("v", $limit) . substr($data, 4, $limit);
$header = pack("vv", $record, $limit); // Headers for continue records
// Retrieve chunks of 2080/8224 bytes +4 for the header.
$data_length = strlen($data);
for ($i = $limit + 4; $i < ($data_length - $limit); $i += $limit) {
$tmp .= $header;
$tmp .= substr($data, $i, $limit);
}
// Retrieve the last chunk of data
$header = pack("vv", $record, strlen($data) - $i);
$tmp .= $header;
$tmp .= substr($data, $i, strlen($data) - $i);
return $tmp;
}
}
| {
"pile_set_name": "Github"
} |
// check-pass
#![warn(unused_imports)] // Warning explanation here, it's OK
mod test {
pub trait A {
fn a();
}
impl A for () {
fn a() { }
}
pub trait B {
fn b(self);
}
impl B for () {
fn b(self) { }
}
pub trait Unused {
}
}
use test::Unused; // This is really unused, so warning is OK
//~^ WARNING unused import
use test::A; // This is used by the test2::func() through import of super::*
use test::B; // This is used by the test2::func() through import of super::*
mod test2 {
use super::*;
pub fn func() {
let _ = <()>::a();
let _ = ().b();
test3::inner_func();
}
mod test3 {
use super::*;
pub fn inner_func() {
let _ = <()>::a();
let _ = ().b();
}
}
}
fn main() {
test2::func();
}
| {
"pile_set_name": "Github"
} |
package com.first;
import com.utils.ListNode;
/**
* 给定一个链表,返回链表开始入环的第一个节点。 如果链表无环,则返回 null。
*
* 为了表示给定链表中的环,我们使用整数 pos 来表示链表尾连接到链表中的位置(索引从 0 开始)。 如果 pos 是 -1,则在该链表中没有环。
*
* 说明:不允许修改给定的链表。
*
*
*
* 示例 1:
*
* 输入:head = [3,2,0,-4], pos = 1
* 输出:tail connects to node index 1
* 解释:链表中有一个环,其尾部连接到第二个节点。
*
*
* 示例 2:
*
* 输入:head = [1,2], pos = 0
* 输出:tail connects to node index 0
* 解释:链表中有一个环,其尾部连接到第一个节点。
*
*
* 示例 3:
*
* 输入:head = [1], pos = -1
* 输出:no cycle
* 解释:链表中没有环。
*
*
*
*
* 进阶:
* 你是否可以不用额外空间解决此题?
*
* 来源:力扣(LeetCode)
* 链接:https://leetcode-cn.com/problems/linked-list-cycle-ii
* 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
*/
public class LinkedCirclePos {
public ListNode detectCycle(ListNode head) {
ListNode snow = head;
ListNode fast = head;
while(null == fast || null == fast.next) {
snow = snow.next;
fast = fast.next.next;
if(snow == fast) {
fast = head;
while (snow != fast) {//第二次的重复即时入口
snow = snow.next;
fast = fast.next;
}
return fast;
}
}
return null;
}
}
| {
"pile_set_name": "Github"
} |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 25 2017 03:49:04).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "TToolbarItem.h"
#import "NSMenuDelegate-Protocol.h"
@class NSString;
@interface TArrangementToolbarItem : TToolbarItem <NSMenuDelegate>
{
struct TNSRef<TArrangeByMenuController, void> _arrangeByMenuController;
struct TKeyValueBinder _viewSettingsBinder;
}
- (id).cxx_construct;
- (void).cxx_destruct;
- (void)validate;
- (void)dealloc;
- (id)initWithItemIdentifier:(id)arg1 entry:(const struct ToolbarItemInfo *)arg2 controller:(id)arg3 propertyList:(id)arg4 willBeInsertedIntoToolbar:(_Bool)arg5;
// 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"
} |
/*
* A power allocator to manage temperature
*
* Copyright (C) 2014 ARM Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#define pr_fmt(fmt) "Power allocator: " fmt
#include <linux/rculist.h>
#include <linux/slab.h>
#include <linux/thermal.h>
#define CREATE_TRACE_POINTS
#include <trace/events/thermal_power_allocator.h>
#include "thermal_core.h"
#define INVALID_TRIP -1
#define FRAC_BITS 10
#define int_to_frac(x) ((x) << FRAC_BITS)
#define frac_to_int(x) ((x) >> FRAC_BITS)
/**
* mul_frac() - multiply two fixed-point numbers
* @x: first multiplicand
* @y: second multiplicand
*
* Return: the result of multiplying two fixed-point numbers. The
* result is also a fixed-point number.
*/
static inline s64 mul_frac(s64 x, s64 y)
{
return (x * y) >> FRAC_BITS;
}
/**
* div_frac() - divide two fixed-point numbers
* @x: the dividend
* @y: the divisor
*
* Return: the result of dividing two fixed-point numbers. The
* result is also a fixed-point number.
*/
static inline s64 div_frac(s64 x, s64 y)
{
return div_s64(x << FRAC_BITS, y);
}
/**
* struct power_allocator_params - parameters for the power allocator governor
* @allocated_tzp: whether we have allocated tzp for this thermal zone and
* it needs to be freed on unbind
* @err_integral: accumulated error in the PID controller.
* @prev_err: error in the previous iteration of the PID controller.
* Used to calculate the derivative term.
* @trip_switch_on: first passive trip point of the thermal zone. The
* governor switches on when this trip point is crossed.
* If the thermal zone only has one passive trip point,
* @trip_switch_on should be INVALID_TRIP.
* @trip_max_desired_temperature: last passive trip point of the thermal
* zone. The temperature we are
* controlling for.
*/
struct power_allocator_params {
bool allocated_tzp;
s64 err_integral;
s32 prev_err;
int trip_switch_on;
int trip_max_desired_temperature;
};
/**
* estimate_sustainable_power() - Estimate the sustainable power of a thermal zone
* @tz: thermal zone we are operating in
*
* For thermal zones that don't provide a sustainable_power in their
* thermal_zone_params, estimate one. Calculate it using the minimum
* power of all the cooling devices as that gives a valid value that
* can give some degree of functionality. For optimal performance of
* this governor, provide a sustainable_power in the thermal zone's
* thermal_zone_params.
*/
static u32 estimate_sustainable_power(struct thermal_zone_device *tz)
{
u32 sustainable_power = 0;
struct thermal_instance *instance;
struct power_allocator_params *params = tz->governor_data;
list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
struct thermal_cooling_device *cdev = instance->cdev;
u32 min_power;
if (instance->trip != params->trip_max_desired_temperature)
continue;
if (power_actor_get_min_power(cdev, tz, &min_power))
continue;
sustainable_power += min_power;
}
return sustainable_power;
}
/**
* estimate_pid_constants() - Estimate the constants for the PID controller
* @tz: thermal zone for which to estimate the constants
* @sustainable_power: sustainable power for the thermal zone
* @trip_switch_on: trip point number for the switch on temperature
* @control_temp: target temperature for the power allocator governor
* @force: whether to force the update of the constants
*
* This function is used to update the estimation of the PID
* controller constants in struct thermal_zone_parameters.
* Sustainable power is provided in case it was estimated. The
* estimated sustainable_power should not be stored in the
* thermal_zone_parameters so it has to be passed explicitly to this
* function.
*
* If @force is not set, the values in the thermal zone's parameters
* are preserved if they are not zero. If @force is set, the values
* in thermal zone's parameters are overwritten.
*/
static void estimate_pid_constants(struct thermal_zone_device *tz,
u32 sustainable_power, int trip_switch_on,
int control_temp, bool force)
{
int ret;
int switch_on_temp;
u32 temperature_threshold;
ret = tz->ops->get_trip_temp(tz, trip_switch_on, &switch_on_temp);
if (ret)
switch_on_temp = 0;
temperature_threshold = control_temp - switch_on_temp;
/*
* estimate_pid_constants() tries to find appropriate default
* values for thermal zones that don't provide them. If a
* system integrator has configured a thermal zone with two
* passive trip points at the same temperature, that person
* hasn't put any effort to set up the thermal zone properly
* so just give up.
*/
if (!temperature_threshold)
return;
if (!tz->tzp->k_po || force)
tz->tzp->k_po = int_to_frac(sustainable_power) /
temperature_threshold;
if (!tz->tzp->k_pu || force)
tz->tzp->k_pu = int_to_frac(2 * sustainable_power) /
temperature_threshold;
if (!tz->tzp->k_i || force)
tz->tzp->k_i = int_to_frac(10) / 1000;
/*
* The default for k_d and integral_cutoff is 0, so we can
* leave them as they are.
*/
}
/**
* pid_controller() - PID controller
* @tz: thermal zone we are operating in
* @control_temp: the target temperature in millicelsius
* @max_allocatable_power: maximum allocatable power for this thermal zone
*
* This PID controller increases the available power budget so that the
* temperature of the thermal zone gets as close as possible to
* @control_temp and limits the power if it exceeds it. k_po is the
* proportional term when we are overshooting, k_pu is the
* proportional term when we are undershooting. integral_cutoff is a
* threshold below which we stop accumulating the error. The
* accumulated error is only valid if the requested power will make
* the system warmer. If the system is mostly idle, there's no point
* in accumulating positive error.
*
* Return: The power budget for the next period.
*/
static u32 pid_controller(struct thermal_zone_device *tz,
int control_temp,
u32 max_allocatable_power)
{
s64 p, i, d, power_range;
s32 err, max_power_frac;
u32 sustainable_power;
struct power_allocator_params *params = tz->governor_data;
max_power_frac = int_to_frac(max_allocatable_power);
if (tz->tzp->sustainable_power) {
sustainable_power = tz->tzp->sustainable_power;
} else {
sustainable_power = estimate_sustainable_power(tz);
estimate_pid_constants(tz, sustainable_power,
params->trip_switch_on, control_temp,
true);
}
err = control_temp - tz->temperature;
err = int_to_frac(err);
/* Calculate the proportional term */
p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err);
/*
* Calculate the integral term
*
* if the error is less than cut off allow integration (but
* the integral is limited to max power)
*/
i = mul_frac(tz->tzp->k_i, params->err_integral);
if (err < int_to_frac(tz->tzp->integral_cutoff)) {
s64 i_next = i + mul_frac(tz->tzp->k_i, err);
if (abs(i_next) < max_power_frac) {
i = i_next;
params->err_integral += err;
}
}
/*
* Calculate the derivative term
*
* We do err - prev_err, so with a positive k_d, a decreasing
* error (i.e. driving closer to the line) results in less
* power being applied, slowing down the controller)
*/
d = mul_frac(tz->tzp->k_d, err - params->prev_err);
d = div_frac(d, tz->passive_delay);
params->prev_err = err;
power_range = p + i + d;
/* feed-forward the known sustainable dissipatable power */
power_range = sustainable_power + frac_to_int(power_range);
power_range = clamp(power_range, (s64)0, (s64)max_allocatable_power);
trace_thermal_power_allocator_pid(tz, frac_to_int(err),
frac_to_int(params->err_integral),
frac_to_int(p), frac_to_int(i),
frac_to_int(d), power_range);
return power_range;
}
/**
* divvy_up_power() - divvy the allocated power between the actors
* @req_power: each actor's requested power
* @max_power: each actor's maximum available power
* @num_actors: size of the @req_power, @max_power and @granted_power's array
* @total_req_power: sum of @req_power
* @power_range: total allocated power
* @granted_power: output array: each actor's granted power
* @extra_actor_power: an appropriately sized array to be used in the
* function as temporary storage of the extra power given
* to the actors
*
* This function divides the total allocated power (@power_range)
* fairly between the actors. It first tries to give each actor a
* share of the @power_range according to how much power it requested
* compared to the rest of the actors. For example, if only one actor
* requests power, then it receives all the @power_range. If
* three actors each requests 1mW, each receives a third of the
* @power_range.
*
* If any actor received more than their maximum power, then that
* surplus is re-divvied among the actors based on how far they are
* from their respective maximums.
*
* Granted power for each actor is written to @granted_power, which
* should've been allocated by the calling function.
*/
static void divvy_up_power(u32 *req_power, u32 *max_power, int num_actors,
u32 total_req_power, u32 power_range,
u32 *granted_power, u32 *extra_actor_power)
{
u32 extra_power, capped_extra_power;
int i;
/*
* Prevent division by 0 if none of the actors request power.
*/
if (!total_req_power)
total_req_power = 1;
capped_extra_power = 0;
extra_power = 0;
for (i = 0; i < num_actors; i++) {
u64 req_range = (u64)req_power[i] * power_range;
granted_power[i] = DIV_ROUND_CLOSEST_ULL(req_range,
total_req_power);
if (granted_power[i] > max_power[i]) {
extra_power += granted_power[i] - max_power[i];
granted_power[i] = max_power[i];
}
extra_actor_power[i] = max_power[i] - granted_power[i];
capped_extra_power += extra_actor_power[i];
}
if (!extra_power)
return;
/*
* Re-divvy the reclaimed extra among actors based on
* how far they are from the max
*/
extra_power = min(extra_power, capped_extra_power);
if (capped_extra_power > 0)
for (i = 0; i < num_actors; i++)
granted_power[i] += (extra_actor_power[i] *
extra_power) / capped_extra_power;
}
static int allocate_power(struct thermal_zone_device *tz,
int control_temp)
{
struct thermal_instance *instance;
struct power_allocator_params *params = tz->governor_data;
u32 *req_power, *max_power, *granted_power, *extra_actor_power;
u32 *weighted_req_power;
u32 total_req_power, max_allocatable_power, total_weighted_req_power;
u32 total_granted_power, power_range;
int i, num_actors, total_weight, ret = 0;
int trip_max_desired_temperature = params->trip_max_desired_temperature;
mutex_lock(&tz->lock);
num_actors = 0;
total_weight = 0;
list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
if ((instance->trip == trip_max_desired_temperature) &&
cdev_is_power_actor(instance->cdev)) {
num_actors++;
total_weight += instance->weight;
}
}
if (!num_actors) {
ret = -ENODEV;
goto unlock;
}
/*
* We need to allocate five arrays of the same size:
* req_power, max_power, granted_power, extra_actor_power and
* weighted_req_power. They are going to be needed until this
* function returns. Allocate them all in one go to simplify
* the allocation and deallocation logic.
*/
BUILD_BUG_ON(sizeof(*req_power) != sizeof(*max_power));
BUILD_BUG_ON(sizeof(*req_power) != sizeof(*granted_power));
BUILD_BUG_ON(sizeof(*req_power) != sizeof(*extra_actor_power));
BUILD_BUG_ON(sizeof(*req_power) != sizeof(*weighted_req_power));
req_power = kcalloc(num_actors * 5, sizeof(*req_power), GFP_KERNEL);
if (!req_power) {
ret = -ENOMEM;
goto unlock;
}
max_power = &req_power[num_actors];
granted_power = &req_power[2 * num_actors];
extra_actor_power = &req_power[3 * num_actors];
weighted_req_power = &req_power[4 * num_actors];
i = 0;
total_weighted_req_power = 0;
total_req_power = 0;
max_allocatable_power = 0;
list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
int weight;
struct thermal_cooling_device *cdev = instance->cdev;
if (instance->trip != trip_max_desired_temperature)
continue;
if (!cdev_is_power_actor(cdev))
continue;
if (cdev->ops->get_requested_power(cdev, tz, &req_power[i]))
continue;
if (!total_weight)
weight = 1 << FRAC_BITS;
else
weight = instance->weight;
weighted_req_power[i] = frac_to_int(weight * req_power[i]);
if (power_actor_get_max_power(cdev, tz, &max_power[i]))
continue;
total_req_power += req_power[i];
max_allocatable_power += max_power[i];
total_weighted_req_power += weighted_req_power[i];
i++;
}
power_range = pid_controller(tz, control_temp, max_allocatable_power);
divvy_up_power(weighted_req_power, max_power, num_actors,
total_weighted_req_power, power_range, granted_power,
extra_actor_power);
total_granted_power = 0;
i = 0;
list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
if (instance->trip != trip_max_desired_temperature)
continue;
if (!cdev_is_power_actor(instance->cdev))
continue;
power_actor_set_power(instance->cdev, instance,
granted_power[i]);
total_granted_power += granted_power[i];
i++;
}
trace_thermal_power_allocator(tz, req_power, total_req_power,
granted_power, total_granted_power,
num_actors, power_range,
max_allocatable_power, tz->temperature,
control_temp - tz->temperature);
kfree(req_power);
unlock:
mutex_unlock(&tz->lock);
return ret;
}
/**
* get_governor_trips() - get the number of the two trip points that are key for this governor
* @tz: thermal zone to operate on
* @params: pointer to private data for this governor
*
* The power allocator governor works optimally with two trips points:
* a "switch on" trip point and a "maximum desired temperature". These
* are defined as the first and last passive trip points.
*
* If there is only one trip point, then that's considered to be the
* "maximum desired temperature" trip point and the governor is always
* on. If there are no passive or active trip points, then the
* governor won't do anything. In fact, its throttle function
* won't be called at all.
*/
static void get_governor_trips(struct thermal_zone_device *tz,
struct power_allocator_params *params)
{
int i, last_active, last_passive;
bool found_first_passive;
found_first_passive = false;
last_active = INVALID_TRIP;
last_passive = INVALID_TRIP;
for (i = 0; i < tz->trips; i++) {
enum thermal_trip_type type;
int ret;
ret = tz->ops->get_trip_type(tz, i, &type);
if (ret) {
dev_warn(&tz->device,
"Failed to get trip point %d type: %d\n", i,
ret);
continue;
}
if (type == THERMAL_TRIP_PASSIVE) {
if (!found_first_passive) {
params->trip_switch_on = i;
found_first_passive = true;
} else {
last_passive = i;
}
} else if (type == THERMAL_TRIP_ACTIVE) {
last_active = i;
} else {
break;
}
}
if (last_passive != INVALID_TRIP) {
params->trip_max_desired_temperature = last_passive;
} else if (found_first_passive) {
params->trip_max_desired_temperature = params->trip_switch_on;
params->trip_switch_on = INVALID_TRIP;
} else {
params->trip_switch_on = INVALID_TRIP;
params->trip_max_desired_temperature = last_active;
}
}
static void reset_pid_controller(struct power_allocator_params *params)
{
params->err_integral = 0;
params->prev_err = 0;
}
static void allow_maximum_power(struct thermal_zone_device *tz)
{
struct thermal_instance *instance;
struct power_allocator_params *params = tz->governor_data;
mutex_lock(&tz->lock);
list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
if ((instance->trip != params->trip_max_desired_temperature) ||
(!cdev_is_power_actor(instance->cdev)))
continue;
instance->target = 0;
mutex_lock(&instance->cdev->lock);
instance->cdev->updated = false;
mutex_unlock(&instance->cdev->lock);
thermal_cdev_update(instance->cdev);
}
mutex_unlock(&tz->lock);
}
/**
* power_allocator_bind() - bind the power_allocator governor to a thermal zone
* @tz: thermal zone to bind it to
*
* Initialize the PID controller parameters and bind it to the thermal
* zone.
*
* Return: 0 on success, or -ENOMEM if we ran out of memory.
*/
static int power_allocator_bind(struct thermal_zone_device *tz)
{
int ret;
struct power_allocator_params *params;
int control_temp;
params = kzalloc(sizeof(*params), GFP_KERNEL);
if (!params)
return -ENOMEM;
if (!tz->tzp) {
tz->tzp = kzalloc(sizeof(*tz->tzp), GFP_KERNEL);
if (!tz->tzp) {
ret = -ENOMEM;
goto free_params;
}
params->allocated_tzp = true;
}
if (!tz->tzp->sustainable_power)
dev_warn(&tz->device, "power_allocator: sustainable_power will be estimated\n");
get_governor_trips(tz, params);
if (tz->trips > 0) {
ret = tz->ops->get_trip_temp(tz,
params->trip_max_desired_temperature,
&control_temp);
if (!ret)
estimate_pid_constants(tz, tz->tzp->sustainable_power,
params->trip_switch_on,
control_temp, false);
}
reset_pid_controller(params);
tz->governor_data = params;
return 0;
free_params:
kfree(params);
return ret;
}
static void power_allocator_unbind(struct thermal_zone_device *tz)
{
struct power_allocator_params *params = tz->governor_data;
dev_dbg(&tz->device, "Unbinding from thermal zone %d\n", tz->id);
if (params->allocated_tzp) {
kfree(tz->tzp);
tz->tzp = NULL;
}
kfree(tz->governor_data);
tz->governor_data = NULL;
}
static int power_allocator_throttle(struct thermal_zone_device *tz, int trip)
{
int ret;
int switch_on_temp, control_temp;
struct power_allocator_params *params = tz->governor_data;
/*
* We get called for every trip point but we only need to do
* our calculations once
*/
if (trip != params->trip_max_desired_temperature)
return 0;
ret = tz->ops->get_trip_temp(tz, params->trip_switch_on,
&switch_on_temp);
if (!ret && (tz->temperature < switch_on_temp)) {
tz->passive = 0;
reset_pid_controller(params);
allow_maximum_power(tz);
return 0;
}
tz->passive = 1;
ret = tz->ops->get_trip_temp(tz, params->trip_max_desired_temperature,
&control_temp);
if (ret) {
dev_warn(&tz->device,
"Failed to get the maximum desired temperature: %d\n",
ret);
return ret;
}
return allocate_power(tz, control_temp);
}
static struct thermal_governor thermal_gov_power_allocator = {
.name = "power_allocator",
.bind_to_tz = power_allocator_bind,
.unbind_from_tz = power_allocator_unbind,
.throttle = power_allocator_throttle,
};
THERMAL_GOVERNOR_DECLARE(thermal_gov_power_allocator);
| {
"pile_set_name": "Github"
} |
<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require 'SharedConfigurations.php';
// Redis 2.0 features new commands that allow clients to subscribe for
// events published on certain channels (PUBSUB).
// Create a client and disable r/w timeout on the socket
$client = new Predis\Client($single_server + array('read_write_timeout' => 0));
// Initialize a new pubsub context
$pubsub = $client->pubSub();
// Subscribe to your channels
$pubsub->subscribe('control_channel', 'notifications');
// Start processing the pubsup messages. Open a terminal and use redis-cli
// to push messages to the channels. Examples:
// ./redis-cli PUBLISH notifications "this is a test"
// ./redis-cli PUBLISH control_channel quit_loop
foreach ($pubsub as $message) {
switch ($message->kind) {
case 'subscribe':
echo "Subscribed to {$message->channel}\n";
break;
case 'message':
if ($message->channel == 'control_channel') {
if ($message->payload == 'quit_loop') {
echo "Aborting pubsub loop...\n";
$pubsub->unsubscribe();
} else {
echo "Received an unrecognized command: {$message->payload}.\n";
}
} else {
echo "Received the following message from {$message->channel}:\n",
" {$message->payload}\n\n";
}
break;
}
}
// Always unset the pubsub context instance when you are done! The
// class destructor will take care of cleanups and prevent protocol
// desynchronizations between the client and the server.
unset($pubsub);
// Say goodbye :-)
$info = $client->info();
print_r("Goodbye from Redis v{$info['redis_version']}!\n");
| {
"pile_set_name": "Github"
} |
opt = {}
-- general options:
opt.dir = 'outputs_mnist_line' -- subdirectory to save experiments in
opt.seed = 1250 -- initial random seed
-- Model parameters:
opt.inputSizeW = 64 -- width of each input patch or image
opt.inputSizeH = 64 -- width of each input patch or image
opt.eta = 1e-4 -- learning rate
opt.etaDecay = 1e-5 -- learning rate decay
opt.momentum = 0.9 -- gradient momentum
opt.maxIter = 30000 --max number of updates
opt.nSeq = 19
opt.transf = 2 -- number of parameters for transformation; 6 for affine or 3 for 2D transformation
opt.nFilters = {1,32}--9,45} -- number of filters in the encoding/decoding layers
opt.nFiltersMemory = {32,45} --{45,60}
opt.kernelSize = 7 -- size of kernels in encoder/decoder layers
opt.kernelSizeMemory = 7
opt.kernelSizeFlow = 15
opt.padding = torch.floor(opt.kernelSize/2) -- pad input before convolutions
opt.dmin = -0.5
opt.dmax = 0.5
opt.gradClip = 50
opt.stride = 1 --opt.kernelSizeMemory -- no overlap
opt.constrWeight = {0,1,0.001}
opt.memorySizeW = 32
opt.memorySizeH = 32
opt.dataFile = 'dataset_fly_64x64_lines_train.t7'
opt.dataFileTest = 'dataset_fly_64x64_lines_test.t7'
opt.modelFile = nil
opt.configFile = nil
opt.statInterval = 50 -- interval for printing error
opt.v = false -- be verbose
opt.display = true -- display stuff
opt.displayInterval = opt.statInterval
opt.save = true -- save models
opt.saveInterval = 10000
if not paths.dirp(opt.dir) then
os.execute('mkdir -p ' .. opt.dir)
end
| {
"pile_set_name": "Github"
} |
using System.Text.Json.Serialization;
namespace Essensoft.AspNetCore.Payment.Alipay.Response
{
/// <summary>
/// AlipayInsSceneApplicationApplyResponse.
/// </summary>
public class AlipayInsSceneApplicationApplyResponse : AlipayResponse
{
/// <summary>
/// 投保单号
/// </summary>
[JsonPropertyName("application_no")]
public string ApplicationNo { get; set; }
/// <summary>
/// 交易操作流水号;收银台付款需要
/// </summary>
[JsonPropertyName("operation_id")]
public string OperationId { get; set; }
/// <summary>
/// 商户生成的外部投保业务号,必须保证唯一
/// </summary>
[JsonPropertyName("out_biz_no")]
public string OutBizNo { get; set; }
/// <summary>
/// 保单详情地址
/// </summary>
[JsonPropertyName("policy_detail_url_4_mobile")]
public string PolicyDetailUrl4Mobile { get; set; }
/// <summary>
/// 保单详情地址
/// </summary>
[JsonPropertyName("policy_detail_url_4_pc")]
public string PolicyDetailUrl4Pc { get; set; }
/// <summary>
/// 保单号,同步创建保单的会有,异步创建保单的不返回
/// </summary>
[JsonPropertyName("policy_no")]
public string PolicyNo { get; set; }
/// <summary>
/// 支付交易订单号,收银台付款需要
/// </summary>
[JsonPropertyName("trade_no")]
public string TradeNo { get; set; }
/// <summary>
/// 交易类型,区分受托和担保交易
/// </summary>
[JsonPropertyName("trade_type")]
public string TradeType { get; set; }
/// <summary>
/// 核保失败原因
/// </summary>
[JsonPropertyName("underwrite_reject_reason")]
public string UnderwriteRejectReason { get; set; }
}
}
| {
"pile_set_name": "Github"
} |
// MainFrm.cpp : CMainFrame 类的实现
//
#include "stdafx.h"
#include "PcKeyMon.h"
#include "MyEditView.h"
#include "MainFrm.h"
#include ".\mainfrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_WM_CREATE()
ON_WM_SETCURSOR()
ON_WM_COPYDATA()
ON_WM_CLOSE()
ON_WM_RBUTTONUP()
ON_COMMAND(WM_CRCLICK, OnCRclick)
ON_COMMAND(ID_EMPTY, OnEmpty)
ON_COMMAND(ID_SAVE, OnSave)
ON_UPDATE_COMMAND_UI(ID_EMPTY, OnUpdateEmpty)
ON_UPDATE_COMMAND_UI(ID_SAVE, OnUpdateSave)
ON_COMMAND(ID_EDIT_COPY, OnEditCopy)
ON_UPDATE_COMMAND_UI(ID_EDIT_COPY, OnUpdateEditCopy)
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR, // 状态行指示器
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
// CMainFrame 构造/析构
CMainFrame::CMainFrame()
{
pKeyView = NULL;
m_WaitCur = AfxGetApp()->LoadCursor(IDC_CURSOR_WAIT);
m_CurSorStatus = TRUE;
}
CMainFrame::~CMainFrame()
{
}
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("未能创建状态栏\n");
return -1; // 未能创建
}
return 0;
}
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
CFrameWnd::PreCreateWindow(cs);
cs.style ^= WS_MAXIMIZE;
cs.dwExStyle &= ~WS_EX_CLIENTEDGE;
cs.lpszClass = AfxRegisterWndClass(
CS_VREDRAW | CS_HREDRAW,
LoadCursor(NULL, IDC_ARROW),
(HBRUSH) GetStockObject(WHITE_BRUSH),
AfxGetApp()->LoadIcon(IDR_MAINFRAME));
return TRUE;
}
// CMainFrame 诊断
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CFrameWnd::AssertValid();
}
void CMainFrame::Dump(CDumpContext& dc) const
{
CFrameWnd::Dump(dc);
}
#endif //_DEBUG
// CMainFrame 消息处理程序
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
CCreateContext pCreateContext;
pCreateContext.m_pCurrentFrame = this;
pCreateContext.m_pCurrentDoc = NULL;
pCreateContext.m_pNewViewClass = RUNTIME_CLASS(CMyEditView);
pKeyView = (CMyEditView*) CreateView(&pCreateContext,AFX_IDW_PANE_FIRST);
return TRUE;
}
BOOL CMainFrame::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
if(m_CurSorStatus)
{
SetCursor(m_WaitCur);
return TRUE;
}
return CFrameWnd::OnSetCursor(pWnd, nHitTest, message);
}
BOOL CMainFrame::OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct)
{
//接收套接字信息
LPWSAPROTOCOL_INFO pInfo =
(LPWSAPROTOCOL_INFO) pCopyDataStruct->lpData;
if(pCopyDataStruct->dwData == CONN_FILE_KEYM_RECV)
{
//发送信息套接字
m_Info.soSend = WSASocket(AF_INET, SOCK_STREAM,0,
pInfo,0,WSA_FLAG_OVERLAPPED);
}
else if(pCopyDataStruct->dwData == CONN_FILE_KEYM_SEND)
{
//接收信息套接字
m_Info.soRecv = WSASocket(AF_INET, SOCK_STREAM,0,
pInfo,0,WSA_FLAG_OVERLAPPED);
m_CurSorStatus = FALSE;
PostMessage(WM_SETCURSOR);
StartWork();
}
else
return CFrameWnd::OnCopyData(pWnd, pCopyDataStruct);
return TRUE;
}
void CMainFrame::OnClose()
{
//通知对方断线
closesocket(m_Info.soSend);
closesocket(m_Info.soRecv);
CFrameWnd::OnClose();
}
void CMainFrame::StartWork(void)
{
m_Info.hWnd = pKeyView->GetSafeHwnd();
_beginthread(TransCharThread, 0, &m_Info);
}
void CMainFrame::OnEmpty()
{
pKeyView->GetEditCtrl().SetWindowText("");
}
void CMainFrame::OnSave()
{
pKeyView->SaveChar();
}
void CMainFrame::OnUpdateEmpty(CCmdUI *pCmdUI)
{
pCmdUI->Enable(pKeyView->GetEditCtrl().LineLength(0) > 0);
}
void CMainFrame::OnUpdateSave(CCmdUI *pCmdUI)
{
pCmdUI->Enable(pKeyView->GetEditCtrl().LineLength(0) > 0);
}
void CMainFrame::OnEditCopy()
{
pKeyView->GetEditCtrl().Copy();
}
void CMainFrame::OnUpdateEditCopy(CCmdUI* pCmdUI)
{
int nStart = 0, nEnd = 0;
pKeyView->GetEditCtrl().GetSel(nStart, nEnd);
pCmdUI->Enable(nStart != nEnd);
}
void CMainFrame::OnCRclick()
{
CPoint m_point;
CMenu m_menu;
m_menu.LoadMenu(IDR_RIGHT);
GetCursorPos(&m_point);
SetForegroundWindow();
m_menu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN|
TPM_RIGHTBUTTON,m_point.x,m_point.y,this);
m_menu.DestroyMenu();
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2010-2020 Alfresco Software, Ltd.
*
* 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.engine.history;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.api.internal.Internal;
import org.activiti.engine.query.Query;
import org.activiti.engine.runtime.ProcessInstanceQuery;
/**
* Allows programmatic querying of {@link HistoricProcessInstance}s.
*
*/
@Internal
public interface HistoricProcessInstanceQuery extends Query<HistoricProcessInstanceQuery, HistoricProcessInstance> {
/**
* Only select historic process instances with the given process instance. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.
*/
HistoricProcessInstanceQuery processInstanceId(String processInstanceId);
/**
* Only select historic process instances whose id is in the given set of ids. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.
*/
HistoricProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds);
/** Only select historic process instances for the given process definition */
HistoricProcessInstanceQuery processDefinitionId(String processDefinitionId);
/**
* Only select historic process instances that are defined by a process definition with the given key.
*/
HistoricProcessInstanceQuery processDefinitionKey(String processDefinitionKey);
/**
* Only select historic process instances that are defined by a process definition with one of the given process definition keys.
*/
HistoricProcessInstanceQuery processDefinitionKeyIn(List<String> processDefinitionKeys);
/**
* Only select historic process instances that don't have a process-definition of which the key is present in the given list
*/
HistoricProcessInstanceQuery processDefinitionKeyNotIn(List<String> processDefinitionKeys);
/** Only select historic process instances whose process definition category is processDefinitionCategory. */
HistoricProcessInstanceQuery processDefinitionCategory(String processDefinitionCategory);
/** Select process historic instances whose process definition name is processDefinitionName*/
HistoricProcessInstanceQuery processDefinitionName(String processDefinitionName);
/**
* Only select historic process instances with a certain process definition version.
* Particulary useful when used in combination with {@link #processDefinitionKey(String)}
*/
HistoricProcessInstanceQuery processDefinitionVersion(Integer processDefinitionVersion);
/** Only select historic process instances with the given business key */
HistoricProcessInstanceQuery processInstanceBusinessKey(String processInstanceBusinessKey);
/**
* Only select historic process instances that are defined by a process definition with the given deployment identifier.
*/
HistoricProcessInstanceQuery deploymentId(String deploymentId);
/**
* Only select historic process instances that are defined by a process definition with one of the given deployment identifiers.
*/
HistoricProcessInstanceQuery deploymentIdIn(List<String> deploymentIds);
/** Only select historic process instances that are completely finished. */
HistoricProcessInstanceQuery finished();
/** Only select historic process instance that are not yet finished. */
HistoricProcessInstanceQuery unfinished();
/** Only select historic process instances that are deleted. */
HistoricProcessInstanceQuery deleted();
/** Only select historic process instance that are not deleted. */
HistoricProcessInstanceQuery notDeleted();
/**
* Only select the historic process instances with which the user with the given id is involved.
*/
HistoricProcessInstanceQuery involvedUser(String userId);
/**
* Only select process instances which had a global variable with the given value when they ended. The type only applies to already ended process instances, otherwise use a
* {@link ProcessInstanceQuery} instead! of variable is determined based on the value, using types configured in {@link ProcessEngineConfiguration#getVariableTypes()}. Byte-arrays and
* {@link Serializable} objects (which are not primitive type wrappers) are not supported.
*
* @param name
* of the variable, cannot be null.
*/
HistoricProcessInstanceQuery variableValueEquals(String name, Object value);
/**
* Only select process instances which had at least one global variable with the given value when they ended. The type only applies to already ended process instances, otherwise use a
* {@link ProcessInstanceQuery} instead! of variable is determined based on the value, using types configured in {@link ProcessEngineConfiguration#getVariableTypes()}. Byte-arrays and
* {@link Serializable} objects (which are not primitive type wrappers) are not supported.
*/
HistoricProcessInstanceQuery variableValueEquals(Object value);
/**
* Only select historic process instances which have a local string variable with the given value, case insensitive.
*
* @param name
* name of the variable, cannot be null.
* @param value
* value of the variable, cannot be null.
*/
HistoricProcessInstanceQuery variableValueEqualsIgnoreCase(String name, String value);
/**
* Only select process instances which had a global variable with the given name, but with a different value than the passed value when they ended. Only select process instances which have a
* variable value greater than the passed value. Byte-arrays and {@link Serializable} objects (which are not primitive type wrappers) are not supported.
*
* @param name
* of the variable, cannot be null.
*/
HistoricProcessInstanceQuery variableValueNotEquals(String name, Object value);
/**
* Only select process instances which had a global variable value greater than the passed value when they ended. Booleans, Byte-arrays and {@link Serializable} objects (which are not primitive type
* wrappers) are not supported. Only select process instances which have a variable value greater than the passed value.
*
* @param name
* cannot be null.
* @param value
* cannot be null.
*/
HistoricProcessInstanceQuery variableValueGreaterThan(String name, Object value);
/**
* Only select process instances which had a global variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays and {@link Serializable} objects (which are not
* primitive type wrappers) are not supported. Only applies to already ended process instances, otherwise use a {@link ProcessInstanceQuery} instead!
*
* @param name
* cannot be null.
* @param value
* cannot be null.
*/
HistoricProcessInstanceQuery variableValueGreaterThanOrEqual(String name, Object value);
/**
* Only select process instances which had a global variable value less than the passed value when the ended. Only applies to already ended process instances, otherwise use a
* {@link ProcessInstanceQuery} instead! Booleans, Byte-arrays and {@link Serializable} objects (which are not primitive type wrappers) are not supported.
*
* @param name
* cannot be null.
* @param value
* cannot be null.
*/
HistoricProcessInstanceQuery variableValueLessThan(String name, Object value);
/**
* Only select process instances which has a global variable value less than or equal to the passed value when they ended. Only applies to already ended process instances, otherwise use a
* {@link ProcessInstanceQuery} instead! Booleans, Byte-arrays and {@link Serializable} objects (which are not primitive type wrappers) are not supported.
*
* @param name
* cannot be null.
* @param value
* cannot be null.
*/
HistoricProcessInstanceQuery variableValueLessThanOrEqual(String name, Object value);
/**
* Only select process instances which had global variable value like the given value when they ended. Only applies to already ended process instances, otherwise use a {@link ProcessInstanceQuery}
* instead! This can be used on string variables only.
*
* @param name
* cannot be null.
* @param value
* cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
*/
HistoricProcessInstanceQuery variableValueLike(String name, String value);
/** Only select process instances which had global variable value like (case insensitive)
* the given value when they ended. Only applies to already ended process instances,
* otherwise use a {@link ProcessInstanceQuery} instead! This can be used on string
* variables only.
* @param name cannot be null.
* @param value cannot be null. The string can include the
* wildcard character '%' to express like-strategy: starts with
* (string%), ends with (%string) or contains (%string%). */
HistoricProcessInstanceQuery variableValueLikeIgnoreCase(String name, String value);
/**
* Only select historic process instances that were started before the given date.
*/
HistoricProcessInstanceQuery startedBefore(Date date);
/**
* Only select historic process instances that were started after the given date.
*/
HistoricProcessInstanceQuery startedAfter(Date date);
/**
* Only select historic process instances that were started before the given date.
*/
HistoricProcessInstanceQuery finishedBefore(Date date);
/**
* Only select historic process instances that were started after the given date.
*/
HistoricProcessInstanceQuery finishedAfter(Date date);
/**
* Only select historic process instance that are started by the given user.
*/
HistoricProcessInstanceQuery startedBy(String userId);
/** Only select process instances that have the given tenant id. */
HistoricProcessInstanceQuery processInstanceTenantId(String tenantId);
/** Only select process instances with a tenant id like the given one. */
HistoricProcessInstanceQuery processInstanceTenantIdLike(String tenantIdLike);
/** Only select process instances that do not have a tenant id. */
HistoricProcessInstanceQuery processInstanceWithoutTenantId();
/**
* Begin an OR statement. Make sure you invoke the endOr method at the end of your OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.
*/
HistoricProcessInstanceQuery or();
/**
* End an OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.
*/
HistoricProcessInstanceQuery endOr();
/**
* Order by the process instance id (needs to be followed by {@link #asc()} or {@link #desc()}).
*/
HistoricProcessInstanceQuery orderByProcessInstanceId();
/**
* Order by the process definition id (needs to be followed by {@link #asc()} or {@link #desc()}).
*/
HistoricProcessInstanceQuery orderByProcessDefinitionId();
/**
* Order by the business key (needs to be followed by {@link #asc()} or {@link #desc()}).
*/
HistoricProcessInstanceQuery orderByProcessInstanceBusinessKey();
/**
* Order by the start time (needs to be followed by {@link #asc()} or {@link #desc()}).
*/
HistoricProcessInstanceQuery orderByProcessInstanceStartTime();
/**
* Order by the end time (needs to be followed by {@link #asc()} or {@link #desc()}).
*/
HistoricProcessInstanceQuery orderByProcessInstanceEndTime();
/**
* Order by the duration of the process instance (needs to be followed by {@link #asc()} or {@link #desc()}).
*/
HistoricProcessInstanceQuery orderByProcessInstanceDuration();
/**
* Order by tenant id (needs to be followed by {@link #asc()} or {@link #desc()}).
*/
HistoricProcessInstanceQuery orderByTenantId();
/**
* Only select historic process instances started by the given process instance. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.
*/
HistoricProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId);
/**
* Exclude sub processes from the query result;
*/
HistoricProcessInstanceQuery excludeSubprocesses(boolean excludeSubprocesses);
/**
* Include process variables in the process query result
*/
HistoricProcessInstanceQuery includeProcessVariables();
/**
* Limit process instance variables
*/
HistoricProcessInstanceQuery limitProcessInstanceVariables(Integer processInstanceVariablesLimit);
/**
* Only select process instances that failed due to an exception happening during a job execution.
*/
HistoricProcessInstanceQuery withJobException();
/**
* Only select process instances with the given name.
*/
HistoricProcessInstanceQuery processInstanceName(String name);
/**
* Only select process instances with a name like the given value.
*/
HistoricProcessInstanceQuery processInstanceNameLike(String nameLike);
/**
* Only select process instances with a name like the given value, ignoring upper/lower case.
*/
HistoricProcessInstanceQuery processInstanceNameLikeIgnoreCase(String nameLikeIgnoreCase);
/**
* Localize historic process name and description to specified locale.
*/
HistoricProcessInstanceQuery locale(String locale);
/**
* Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.
*/
HistoricProcessInstanceQuery withLocalizationFallback();
}
| {
"pile_set_name": "Github"
} |
.. _`The Networking Service`:
######################
The Networking Service
######################
*When communication endpoints are located on different computing nodes or on
different single processes, the data produced using the local Domain Service must
be communicated to the remote Domain Services and the other way around. The
Networking Service provides a bridge between the local Domain Service and a
network interface. Multiple Networking Services can exist next to each other; each
serving one or more physical network interfaces. The Networking Service is
responsible for forwarding data to the network and for receiving data from the
network.*
There are two implementations of the networking service:
`The Native Networking Service`_ and `The Secure Native Networking Service`_.
There are detailed descriptions of all of the available configuration
parameters and their purpose in the :ref:`Configuration <Configuration>`
section.
.. _`The Native Networking Service`:
The Native Networking Service
*****************************
For large-scale LAN-based systems that demand maximum throughput, the native
RTNetworking service is the optimal implementation of DDS networking for
Vortex OpenSplice and is both highly scalable and configurable.
*The Native Networking Service* can be configured to distinguish multiple
communication channels with different QoS policies. These policies will be used to
schedule individual messages to specific channels, which may be configured to
provide optimal performance for a specific application domain.
The exact fulfilment of these responsibilities is determined by the configuration of
the Networking Service.
Please refer to the :ref:`Configuration <Configuration>` section for
fully-detailed descriptions of how to configure:
+ ``//OpenSplice/NetworkService``
+ ``//OpenSplice/SNetworkService``
.. _`The Secure Native Networking Service`:
The Secure Native Networking Service
************************************
There is a secure version of the native networking service available.
Please refer to the :ref:`Configuration <Configuration>`
section for details.
.. _`Compression`:
Compression
===========
This section describes the options available for configuring compression of the data
packets sent by the Networking Service.
In early OpenSplice 6.x releases, the *zlib* library was used at its default setting
whenever the compression option on a network partition was enabled. Now
it is possible to configure *zlib* for less cpu usage or for more compression effort, or
to select a compressor written specifically for high speed, or to plug in an alternative
algorithm.
The configuration for compression in a Networking Service instance is contained in
the optional top-level Element Compression.
These settings apply to all partitions in which compression is enabled.
Please refer to the :ref:`Configuration <Configuration>` section for
a detailed description of:
+ ``//OpenSplice/NetworkService/Compression``
.. _`Availability`:
Availability
------------
The compression functionality is available on enterprise platforms (*i.e.* Linux,
Windows and Solaris). On embedded platforms there are no built-in compressors
included, but plugins may be used.
.. _`How to set the level parameter in zlib`:
How to set the level parameter in zlib
--------------------------------------
Set the Attribute ``PluginParameter`` to a single digit between ``0`` (no compression)
and ``9`` (maximum compression, more CPU usage). Leave the Attribute ``PluginLibrary``
and Attribute ``PluginInitFunction`` blank.
.. _`How to switch to other built-in compressors`:
How to switch to other built-in compressors
-------------------------------------------
Set the Attribute ``PluginInitFunction`` to the name of the initialisation
function of one of the built-in compressors. These are ``/ospl_comp_zlib_init/``,
``/ospl_comp_lzf_init/`` and ``/ospl_comp_snappy_init/`` for *zlib*, *lzf* and
*snappy* respectively. As a convenience, the short names ``zlib``, ``lzf`` and
``snappy`` are also recognized.
|info| |caution|
Please note that not all compressors are available on all platforms.
In this release *zlib* is available on Linux, Windows and Solaris;
*lzf* and *snappy* are available only on RedHat Linux.
.. _`How to write a plugin for another compression library`:
How to write a plugin for another compression library
-----------------------------------------------------
Other compression algorithms may be used by the Networking Service. In order to
do this it is necessary to build a library which maps the OpenSplice compression
API onto the algorithm in question. This library may contain the actual compressor
code or be dynamically linked to it.
Definitions for the compression API are provided in the include file
``plugin/nw_compPlugin.h``.
Five functions must be implemented.
The ``maxsize`` function.
This function is called when sizing a buffer into which to compress a network
packet. It should therefore return the worst-case (largest) possible size of
compressed data for a given uncompressed size. In most cases it is acceptable to
return the uncompressed size, as the compress operation is allowed to fail if the
resulting data is larger than the original (in which case the data is sent
uncompressed). However, *snappy* for example will not attempt compression
unless the destination buffer is large enough to take the worst possible result.
The ``compress`` function.
This function takes a block of data of a given size and compresses it into a
buffer of a given size. It returns the actual size of the compressed data, or zero
if an error ocurred (*e.g.* the destination buffer was not large enough).
The ``uncompress`` function.
This function takes a block of compressed data of given size and uncompresses
it into a buffer also of given size. It returns the actual size of the uncompressed
data, or zero if an error ocurred (*e.g.* the data was not in a valid compressed
format).
The ``exit`` function.
This function is called at service shutdown and frees any resources used
by the plugin.
The ``init`` function.
This function is called at service startup. It sets up the plugin by filling in a
structure containing pointers to the four functions listed above. It also is passed
the value of the Attribute ``PluginParameter``. The plugin configuration structure
includes a pointer to some unspecified state data which may be used to hold this
parameter and/or any storage required by the compressor. This pointer is passed
into the ``compress`` and ``exit`` functions.
By way of illustration, here is a simplified version of the code for *zlib*. The
implementation is merely a veneer on the *zlib* library to present the required API.
.. code-block:: cpp
#include "nw_compPlugin.h"
#include "os_heap.h"
#include
unsigned long ospl_comp_zlib_maxsize (unsigned long srcsize)
{
/* if the data can't be compressed into the same size buffer we'll send
uncompressed instead */
return srcsize;
}
unsigned long ospl_comp_zlib_compress (void *dest, unsigned long destlen,
const void *source, unsigned long srclen, void *param)
{
unsigned long compdsize = destlen;
if (compress2 (dest, &compdsize, source, srclen, *(int *)param) == Z_OK)
{
return compdsize;
}
else
{
return 0;
}
}
unsigned long ospl_comp_zlib_uncompress (void *dest, unsigned long
destlen, const void *source, unsigned long srclen)
{
unsigned long uncompdsize = destlen;
if (uncompress (dest, &uncompdsize, source, srclen) == Z_OK)
{
return uncompdsize;
}
else
{
return 0;
}
}
void ospl_comp_zlib_exit (void *param)
{
os_free (param);
}
void ospl_comp_zlib_init (nw_compressor *config, const char *param)
{
/* param should contain an integer from 0 to 9 */
int *iparam = os_malloc (sizeof (int));
if (strlen (param) == 1)
{
*iparam = atoi (param);
}
else
{
*iparam = Z_DEFAULT_COMPRESSION;
}
config->maxfn = ospl_comp_zlib_maxsize;
config->compfn = ospl_comp_zlib_compress;
config->uncompfn = ospl_comp_zlib_uncompress;
config->exitfn = ospl_comp_zlib_exit;
config->parameter = (void *)iparam;
}
.. _`How to configure for a plugin`:
How to configure for a plugin
=============================
**Step 1**:
Set Attribute ``PluginLibrary`` to the name of the library containing
the plugin implementation.
**Step 2**:
Set Attribute ``PluginInitFunction`` to the name of the initialisation
function within that library.
**Step 3**:
If the compression method is controlled by a parameter, set
Attribute ``PluginParameter`` to configure it.
Please refer to the :ref:`Configuration <Configuration>` section for
fully-detailed descriptions of how to configure:
+ ``//OpenSplice/NetworkService/Compression[@PluginLibrary]``
+ ``//OpenSplice/NetworkService/Compression[@PluginInitFunction]``
+ ``//OpenSplice/NetworkService/Compression[@PluginParameter]``
.. _`Constraints`:
Constraints
===========
|caution|
The Networking Service packet format does *not* include identification of
which compressor is in use.
*It is therefore necessary to use the* **same**
*configuration on all nodes.*
.. EoF
.. |caution| image:: ./images/icon-caution.*
:height: 6mm
.. |info| image:: ./images/icon-info.*
:height: 6mm
.. |windows| image:: ./images/icon-windows.*
:height: 6mm
.. |unix| image:: ./images/icon-unix.*
:height: 6mm
.. |linux| image:: ./images/icon-linux.*
:height: 6mm
.. |c| image:: ./images/icon-c.*
:height: 6mm
.. |cpp| image:: ./images/icon-cpp.*
:height: 6mm
.. |csharp| image:: ./images/icon-csharp.*
:height: 6mm
.. |java| image:: ./images/icon-java.*
:height: 6mm
| {
"pile_set_name": "Github"
} |
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Globalization;
using System.Text;
using Orleans.Runtime;
namespace Orleans.Metadata
{
/// <summary>
/// Information about a logical grain type <see cref="GrainType"/>.
/// </summary>
[Serializable]
public class GrainProperties
{
/// <summary>
/// Creates a <see cref="GrainProperties"/> instance.
/// </summary>
public GrainProperties(ImmutableDictionary<string, string> values)
{
this.Properties = values;
}
/// <summary>
/// Gets the properties.
/// </summary>
public ImmutableDictionary<string, string> Properties { get; }
/// <summary>
/// Returns a detailed string representation of this instance.
/// </summary>
public string ToDetailedString()
{
if (this.Properties is null) return string.Empty;
var result = new StringBuilder("[");
bool first = true;
foreach (var entry in this.Properties)
{
if (!first)
{
result.Append(", ");
}
result.Append($"\"{entry.Key}\": \"{entry.Value}\"");
first = false;
}
result.Append("]");
return result.ToString();
}
}
/// <summary>
/// Well-known grain properties.
/// </summary>
/// <seealso cref="GrainProperties"/>
public static class WellKnownGrainTypeProperties
{
/// <summary>
/// The name of the placement strategy for grains of this type.
/// </summary>
public const string PlacementStrategy = "placement-strategy";
/// <summary>
/// The directory policy for grains of this type.
/// </summary>
public const string GrainDirectory = "directory-policy";
/// <summary>
/// Whether or not messages to this grain are unordered.
/// </summary>
public const string Unordered = "unordered";
/// <summary>
/// Prefix for keys which indicate <see cref="GrainInterfaceType"/> of interfaces which a grain class implements.
/// </summary>
public const string ImplementedInterfacePrefix = "interface.";
/// <summary>
/// The period after which an idle grain will be deactivated.
/// </summary>
public const string IdleDeactivationPeriod = "idle-duration";
/// <summary>
/// The value for <see cref="IdleDeactivationPeriod"/> used to specify that the grain should not be deactivated due to idleness.
/// </summary>
public const string IndefiniteIdleDeactivationPeriodValue = "indefinite";
/// <summary>
/// The name of the primary implementation type. Used for convention-based matching of primary interface implementations.
/// </summary>
public const string TypeName = "type-name";
/// <summary>
/// The full name of the primary implementation type. Used for prefix-based matching of implementations.
/// </summary>
public const string FullTypeName = "full-type-name";
/// <summary>
/// The prefix for binding declarations
/// </summary>
public const string BindingPrefix = "binding";
/// <summary>
/// The key for defining a binding type.
/// </summary>
public const string BindingTypeKey = "type";
/// <summary>
/// The binding type for Orleans streams.
/// </summary>
public const string StreamBindingTypeValue = "stream";
/// <summary>
/// The key to specify a stream binding pattern.
/// </summary>
public const string StreamBindingPatternKey = "pattern";
/// <summary>
/// The key to specify a stream id mapper
/// </summary>
public const string StreamIdMapperKey = "streamid-mapper";
/// <summary>
/// Whether to include the namespace name in the grain id.
/// </summary>
public const string StreamBindingIncludeNamespaceKey = "include-namespace";
/// <summary>
/// Key type of the grain, if it implement a legacy interface. Valid values are nameof(String), nameof(Int64) and nameof(Guid)
/// </summary>
public const string LegacyGrainKeyType = "legacy-grain-key-type";
/// <summary>
/// Whether a grain is reentrant or not.
/// </summary>
public const string Reentrant = "reentrant";
/// <summary>
/// Specifies the name of a method used to determine if a request can interleave other requests.
/// </summary>
public const string MayInterleavePredicate = "may-interleave-predicate";
}
/// <summary>
/// Provides grain properties.
/// </summary>
public interface IGrainPropertiesProvider
{
/// <summary>
/// Adds grain properties to <paramref name="properties"/>.
/// </summary>
void Populate(Type grainClass, GrainType grainType, Dictionary<string, string> properties);
}
/// <summary>
/// Interface for <see cref="System.Attribute"/> classes which provide information about a grain.
/// </summary>
public interface IGrainPropertiesProviderAttribute
{
/// <summary>
/// Adds grain properties to <paramref name="properties"/>.
/// </summary>
void Populate(IServiceProvider services, Type grainClass, GrainType grainType, Dictionary<string, string> properties);
}
/// <summary>
/// Provides grain interface properties from attributes implementing <see cref="IGrainPropertiesProviderAttribute"/>.
/// </summary>
public sealed class AttributeGrainPropertiesProvider : IGrainPropertiesProvider
{
private readonly IServiceProvider serviceProvider;
/// <summary>
/// Creates a <see cref="AttributeGrainPropertiesProvider"/> instance.
/// </summary>
public AttributeGrainPropertiesProvider(IServiceProvider serviceProvider)
{
this.serviceProvider = serviceProvider;
}
/// <inheritdoc />
public void Populate(Type grainClass, GrainType grainType, Dictionary<string, string> properties)
{
foreach (var attr in grainClass.GetCustomAttributes(inherit: true))
{
if (attr is IGrainPropertiesProviderAttribute providerAttribute)
{
providerAttribute.Populate(this.serviceProvider, grainClass, grainType, properties);
}
}
}
}
/// <summary>
/// Interface for <see cref="System.Attribute"/> classes which provide information about a grain.
/// </summary>
public interface IGrainBindingsProviderAttribute
{
/// <summary>
/// Gets bindings for the type this attribute is attached to.
/// </summary>
IEnumerable<Dictionary<string, string>> GetBindings(IServiceProvider services, Type grainClass, GrainType grainType);
}
/// <summary>
/// Provides grain interface properties from attributes implementing <see cref="IGrainPropertiesProviderAttribute"/>.
/// </summary>
public sealed class AttributeGrainBindingsProvider : IGrainPropertiesProvider
{
/// <summary>
/// A hopefully unique name to describe bindings added by this provider.
/// Binding names are meaningless and are only used to group properties for a given binding together.
/// </summary>
private const string BindingPrefix = WellKnownGrainTypeProperties.BindingPrefix + ".attr-";
private readonly IServiceProvider serviceProvider;
/// <summary>
/// Creates a <see cref="AttributeGrainBindingsProvider"/> instance.
/// </summary>
public AttributeGrainBindingsProvider(IServiceProvider serviceProvider)
{
this.serviceProvider = serviceProvider;
}
/// <inheritdoc />
public void Populate(Type grainClass, GrainType grainType, Dictionary<string, string> properties)
{
var bindingIndex = 1;
foreach (var attr in grainClass.GetCustomAttributes(inherit: true))
{
if (!(attr is IGrainBindingsProviderAttribute providerAttribute))
{
continue;
}
foreach (var binding in providerAttribute.GetBindings(this.serviceProvider, grainClass, grainType))
{
foreach (var pair in binding)
{
properties[BindingPrefix + bindingIndex.ToString(CultureInfo.InvariantCulture) + '.' + pair.Key] = pair.Value;
}
++bindingIndex;
}
}
}
}
} | {
"pile_set_name": "Github"
} |
PCI with Driver Model
=====================
How busses are scanned
----------------------
Any config read will end up at pci_read_config(). This uses
uclass_get_device_by_seq() to get the PCI bus for a particular bus number.
Bus number 0 will need to be requested first, and the alias in the device
tree file will point to the correct device:
aliases {
pci0 = &pci;
};
pci: pci-controller {
compatible = "sandbox,pci";
...
};
If there is no alias the devices will be numbered sequentially in the device
tree.
The call to uclass_get_device() will cause the PCI bus to be probed.
This does a scan of the bus to locate available devices. These devices are
bound to their appropriate driver if available. If there is no driver, then
they are bound to a generic PCI driver which does nothing.
After probing a bus, the available devices will appear in the device tree
under that bus.
Note that this is all done on a lazy basis, as needed, so until something is
touched on PCI (eg: a call to pci_find_devices()) it will not be probed.
PCI devices can appear in the flattened device tree. If they do this serves to
specify the driver to use for the device. In this case they will be bound at
first. Each PCI device node must have a compatible string list as well as a
<reg> property, as defined by the IEEE Std 1275-1994 PCI bus binding document
v2.1. Note we must describe PCI devices with the same bus hierarchy as the
hardware, otherwise driver model cannot detect the correct parent/children
relationship during PCI bus enumeration thus PCI devices won't be bound to
their drivers accordingly. A working example like below:
pci {
#address-cells = <3>;
#size-cells = <2>;
compatible = "pci-x86";
u-boot,dm-pre-reloc;
ranges = <0x02000000 0x0 0x40000000 0x40000000 0 0x80000000
0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
0x01000000 0x0 0x2000 0x2000 0 0xe000>;
pcie@17,0 {
#address-cells = <3>;
#size-cells = <2>;
compatible = "pci-bridge";
u-boot,dm-pre-reloc;
reg = <0x0000b800 0x0 0x0 0x0 0x0>;
topcliff@0,0 {
#address-cells = <3>;
#size-cells = <2>;
compatible = "pci-bridge";
u-boot,dm-pre-reloc;
reg = <0x00010000 0x0 0x0 0x0 0x0>;
pciuart0: uart@a,1 {
compatible = "pci8086,8811.00",
"pci8086,8811",
"pciclass,070002",
"pciclass,0700",
"x86-uart";
u-boot,dm-pre-reloc;
reg = <0x00025100 0x0 0x0 0x0 0x0
0x01025110 0x0 0x0 0x0 0x0>;
......
};
......
};
};
......
};
In this example, the root PCI bus node is the "/pci" which matches "pci-x86"
driver. It has a subnode "pcie@17,0" with driver "pci-bridge". "pcie@17,0"
also has subnode "topcliff@0,0" which is a "pci-bridge" too. Under that bridge,
a PCI UART device "uart@a,1" is described. This exactly reflects the hardware
bus hierarchy: on the root PCI bus, there is a PCIe root port which connects
to a downstream device Topcliff chipset. Inside Topcliff chipset, it has a
PCIe-to-PCI bridge and all the chipset integrated devices like the PCI UART
device are on the PCI bus. Like other devices in the device tree, if we want
to bind PCI devices before relocation, "u-boot,dm-pre-reloc" must be declared
in each of these nodes.
If PCI devices are not listed in the device tree, U_BOOT_PCI_DEVICE can be used
to specify the driver to use for the device. The device tree takes precedence
over U_BOOT_PCI_DEVICE. Plese note with U_BOOT_PCI_DEVICE, only drivers with
DM_FLAG_PRE_RELOC will be bound before relocation. If neither device tree nor
U_BOOT_PCI_DEVICE is provided, the built-in driver (either pci_bridge_drv or
pci_generic_drv) will be used.
Sandbox
-------
With sandbox we need a device emulator for each device on the bus since there
is no real PCI bus. This works by looking in the device tree node for a
driver. For example:
pci@1f,0 {
compatible = "pci-generic";
reg = <0xf800 0 0 0 0>;
emul@1f,0 {
compatible = "sandbox,swap-case";
};
};
This means that there is a 'sandbox,swap-case' driver at that bus position.
Note that the first cell in the 'reg' value is the bus/device/function. See
PCI_BDF() for the encoding (it is also specified in the IEEE Std 1275-1994
PCI bus binding document, v2.1)
When this bus is scanned we will end up with something like this:
`- * pci-controller @ 05c660c8, 0
`- pci@1f,0 @ 05c661c8, 63488
`- emul@1f,0 @ 05c662c8
When accesses go to the pci@1f,0 device they are forwarded to its child, the
emulator.
| {
"pile_set_name": "Github"
} |
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Title>Sample Spreadsheet</Title>
<Subject>Spreadsheet for testing</Subject>
<Author>Nick Burch</Author>
<Keywords>Testing Sample Formulas</Keywords>
<Description>This is a sample spreadsheet, for use when testing things</Description>
<LastAuthor>God</LastAuthor>
<Created>2008-01-04T11:51:36Z</Created>
<LastSaved>2008-01-04T11:55:20Z</LastSaved>
<Version>14.0</Version>
</DocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<AllowPNG/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>1820</WindowHeight>
<WindowWidth>11300</WindowWidth>
<WindowTopX>360</WindowTopX>
<WindowTopY>60</WindowTopY>
<TabRatio>600</TabRatio>
<ActiveSheet>1</ActiveSheet>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s16">
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#DD0806"/>
</Style>
<Style ss:ID="s17">
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#003366"
ss:Bold="1"/>
<Interior ss:Color="#FCF305" ss:Pattern="Solid"/>
</Style>
</Styles>
<Worksheet ss:Name="First Sheet">
<Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="4" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="53" ss:DefaultRowHeight="14">
<Row>
<Cell><Data ss:Type="String">Test spreadsheet</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">2nd row</Data></Cell>
<Cell><Data ss:Type="String">2nd row 2nd column</Data></Cell>
</Row>
<Row ss:Index="4">
<Cell ss:StyleID="s16"><Data ss:Type="String">This one is red</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<Print>
<ValidPrinterInfo/>
<PaperSizeIndex>0</PaperSizeIndex>
<VerticalResolution>0</VerticalResolution>
<NumberofCopies>0</NumberofCopies>
</Print>
<PageLayoutZoom>0</PageLayoutZoom>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>3</ActiveRow>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<Worksheet ss:Name="Sheet Number 2">
<Table ss:ExpandedColumnCount="4" ss:ExpandedRowCount="7" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="53" ss:DefaultRowHeight="14">
<Row>
<Cell><Data ss:Type="String">Start of 2nd sheet</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">Sheet 2 row 2</Data></Cell>
</Row>
<Row ss:Index="4">
<Cell ss:StyleID="s17"><Data ss:Type="String">I'm in bold blue, on a yellow background</Data></Cell>
</Row>
<Row ss:Index="6">
<Cell><Data ss:Type="String">cb=1</Data></Cell>
<Cell><Data ss:Type="String">cb=10</Data></Cell>
<Cell><Data ss:Type="String">cb=2</Data></Cell>
<Cell><Data ss:Type="String">cb=sum</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="Number">1</Data></Cell>
<Cell><Data ss:Type="Number">10</Data></Cell>
<Cell><Data ss:Type="Number">2</Data></Cell>
<Cell ss:Formula="=SUM(RC[-3]:RC[-1])"><Data ss:Type="Number">13</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<PageLayoutZoom>0</PageLayoutZoom>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>3</ActiveRow>
<ActiveCol>3</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<Worksheet ss:Name="Sheet3">
<Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="53" ss:DefaultRowHeight="14">
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<PageLayoutZoom>0</PageLayoutZoom>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>
| {
"pile_set_name": "Github"
} |
#include "m68360_regs.h"
#include "m68360_pram.h"
#include "m68360_quicc.h"
#include "m68360_enet.h"
#ifdef CONFIG_M68360
#define CPM_INTERRUPT 4
/* see MC68360 User's Manual, p. 7-377 */
#define CPM_VECTOR_BASE 0x04 /* 3 MSbits of CPM vector */
#endif /* CONFIG_M68360 */
| {
"pile_set_name": "Github"
} |
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofRunApp( new ofApp());
}
| {
"pile_set_name": "Github"
} |
{
"activePlaceCount": 0,
"birth": {
"place": {
"name": "London, United Kingdom",
"placeName": "London",
"placeType": "inhabited_place"
},
"time": {
"startYear": 1864
}
},
"birthYear": 1864,
"date": "1864\u20131942",
"death": {
"place": {
"name": "Dalkey, \u00c9ire",
"placeName": "Dalkey",
"placeType": "inhabited_place"
},
"time": {
"startYear": 1942
}
},
"fc": "Julius Olsson",
"gender": "Male",
"id": 1717,
"mda": "Olsson, Julius",
"movements": [],
"startLetter": "O",
"totalWorks": 1,
"url": "http://www.tate.org.uk/art/artists/julius-olsson-1717"
} | {
"pile_set_name": "Github"
} |
.Language=English,English
"Change Case"
"&L. lower case"
"&T. Title Case"
"&U. UPPER CASE"
"&G. tOGGLE cASE"
"&C. Cyclic change"
"&Ok"
"&Cancel"
| {
"pile_set_name": "Github"
} |
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build ignore
/*
Input to cgo -godefs. See also mkerrors.sh and mkall.sh
*/
// +godefs map struct_in_addr [4]byte /* in_addr */
// +godefs map struct_in6_addr [16]byte /* in6_addr */
package unix
/*
#define KERNEL
#include <dirent.h>
#include <fcntl.h>
#include <signal.h>
#include <termios.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/event.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/ptrace.h>
#include <sys/resource.h>
#include <sys/select.h>
#include <sys/signal.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <sys/wait.h>
#include <net/bpf.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/route.h>
#include <netinet/in.h>
#include <netinet/icmp6.h>
#include <netinet/tcp.h>
enum {
sizeofPtr = sizeof(void*),
};
union sockaddr_all {
struct sockaddr s1; // this one gets used for fields
struct sockaddr_in s2; // these pad it out
struct sockaddr_in6 s3;
struct sockaddr_un s4;
struct sockaddr_dl s5;
};
struct sockaddr_any {
struct sockaddr addr;
char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
};
*/
import "C"
// Machine characteristics; for internal use.
const (
sizeofPtr = C.sizeofPtr
sizeofShort = C.sizeof_short
sizeofInt = C.sizeof_int
sizeofLong = C.sizeof_long
sizeofLongLong = C.sizeof_longlong
)
// Basic types
type (
_C_short C.short
_C_int C.int
_C_long C.long
_C_long_long C.longlong
)
// Time
type Timespec C.struct_timespec
type Timeval C.struct_timeval
// Processes
type Rusage C.struct_rusage
type Rlimit C.struct_rlimit
type _Gid_t C.gid_t
// Files
type Stat_t C.struct_stat
type Statfs_t C.struct_statfs
type Flock_t C.struct_flock
type Dirent C.struct_dirent
type Fsid C.fsid_t
// Sockets
type RawSockaddrInet4 C.struct_sockaddr_in
type RawSockaddrInet6 C.struct_sockaddr_in6
type RawSockaddrUnix C.struct_sockaddr_un
type RawSockaddrDatalink C.struct_sockaddr_dl
type RawSockaddr C.struct_sockaddr
type RawSockaddrAny C.struct_sockaddr_any
type _Socklen C.socklen_t
type Linger C.struct_linger
type Iovec C.struct_iovec
type IPMreq C.struct_ip_mreq
type IPv6Mreq C.struct_ipv6_mreq
type Msghdr C.struct_msghdr
type Cmsghdr C.struct_cmsghdr
type Inet6Pktinfo C.struct_in6_pktinfo
type IPv6MTUInfo C.struct_ip6_mtuinfo
type ICMPv6Filter C.struct_icmp6_filter
const (
SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in
SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
SizeofSockaddrAny = C.sizeof_struct_sockaddr_any
SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un
SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl
SizeofLinger = C.sizeof_struct_linger
SizeofIPMreq = C.sizeof_struct_ip_mreq
SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
SizeofMsghdr = C.sizeof_struct_msghdr
SizeofCmsghdr = C.sizeof_struct_cmsghdr
SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo
SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
)
// Ptrace requests
const (
PTRACE_TRACEME = C.PT_TRACE_ME
PTRACE_CONT = C.PT_CONTINUE
PTRACE_KILL = C.PT_KILL
)
// Events (kqueue, kevent)
type Kevent_t C.struct_kevent
// Select
type FdSet C.fd_set
// Routing and interface messages
const (
SizeofIfMsghdr = C.sizeof_struct_if_msghdr
SizeofIfData = C.sizeof_struct_if_data
SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr
SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr
SizeofRtMsghdr = C.sizeof_struct_rt_msghdr
SizeofRtMetrics = C.sizeof_struct_rt_metrics
)
type IfMsghdr C.struct_if_msghdr
type IfData C.struct_if_data
type IfaMsghdr C.struct_ifa_msghdr
type IfAnnounceMsghdr C.struct_if_announcemsghdr
type RtMsghdr C.struct_rt_msghdr
type RtMetrics C.struct_rt_metrics
type Mclpool C.struct_mclpool
// Berkeley packet filter
const (
SizeofBpfVersion = C.sizeof_struct_bpf_version
SizeofBpfStat = C.sizeof_struct_bpf_stat
SizeofBpfProgram = C.sizeof_struct_bpf_program
SizeofBpfInsn = C.sizeof_struct_bpf_insn
SizeofBpfHdr = C.sizeof_struct_bpf_hdr
)
type BpfVersion C.struct_bpf_version
type BpfStat C.struct_bpf_stat
type BpfProgram C.struct_bpf_program
type BpfInsn C.struct_bpf_insn
type BpfHdr C.struct_bpf_hdr
type BpfTimeval C.struct_bpf_timeval
// Terminal handling
type Termios C.struct_termios
// Sysctl
type Sysctlnode C.struct_sysctlnode
| {
"pile_set_name": "Github"
} |
package com.tencent.mm.app;
import android.app.Activity;
import android.app.Application.ActivityLifecycleCallbacks;
import android.os.Bundle;
import android.os.Process;
import com.tencent.mm.sdk.platformtools.v;
import com.tencent.smtt.sdk.WebView;
final class ToolsProfile$1
implements Application.ActivityLifecycleCallbacks
{
ToolsProfile$1(ToolsProfile paramToolsProfile) {}
public final void onActivityCreated(Activity paramActivity, Bundle paramBundle)
{
ToolsProfile.je();
}
public final void onActivityDestroyed(Activity paramActivity)
{
ToolsProfile.jf();
v.d("MicroMsg.ToolsProfile", "onActivityDestroyed, after destroy, activityInstanceNum = %d", new Object[] { Integer.valueOf(ToolsProfile.access$000()) });
if (ToolsProfile.access$000() == 0)
{
boolean bool = WebView.getTbsNeedReboot();
v.i("MicroMsg.ToolsProfile", "onActivityDestroyed, tbsNeedReboot = %b", new Object[] { Boolean.valueOf(bool) });
if (bool) {
Process.killProcess(Process.myPid());
}
}
}
public final void onActivityPaused(Activity paramActivity) {}
public final void onActivityResumed(Activity paramActivity) {}
public final void onActivitySaveInstanceState(Activity paramActivity, Bundle paramBundle) {}
public final void onActivityStarted(Activity paramActivity) {}
public final void onActivityStopped(Activity paramActivity) {}
}
/* Location:
* Qualified Name: com.tencent.mm.app.ToolsProfile.1
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: 7163253a2d8b90f4cbdd7b0630b84dcd
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2017 LINE Corporation
*
* LINE Corporation 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:
*
* 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.
*/
package com.linecorp.armeria.client.endpoint;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import com.linecorp.armeria.client.ClientRequestContext;
import com.linecorp.armeria.client.Endpoint;
final class RoundRobinStrategy implements EndpointSelectionStrategy {
static final RoundRobinStrategy INSTANCE = new RoundRobinStrategy();
private RoundRobinStrategy() {}
@Override
public EndpointSelector newSelector(EndpointGroup endpointGroup) {
return new RoundRobinSelector(endpointGroup);
}
/**
* A round robin select strategy.
*
* <p>For example, with node a, b and c, then select result is abc abc ...
*/
static class RoundRobinSelector extends AbstractEndpointSelector {
private final AtomicInteger sequence = new AtomicInteger();
RoundRobinSelector(EndpointGroup endpointGroup) {
super(endpointGroup);
}
@Override
public Endpoint selectNow(ClientRequestContext ctx) {
final List<Endpoint> endpoints = group().endpoints();
final int currentSequence = sequence.getAndIncrement();
if (endpoints.isEmpty()) {
return null;
}
return endpoints.get(Math.abs(currentSequence % endpoints.size()));
}
}
}
| {
"pile_set_name": "Github"
} |
// Tencent is pleased to support the open source community by making RapidJSON available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. 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.
#ifndef RAPIDJSON_READER_H_
#define RAPIDJSON_READER_H_
/*! \file reader.h */
#include "allocators.h"
#include "stream.h"
#include "encodedstream.h"
#include "internal/meta.h"
#include "internal/stack.h"
#include "internal/strtod.h"
#include <limits>
#if defined(RAPIDJSON_SIMD) && defined(_MSC_VER)
#include <intrin.h>
#pragma intrinsic(_BitScanForward)
#endif
#ifdef RAPIDJSON_SSE42
#include <nmmintrin.h>
#elif defined(RAPIDJSON_SSE2)
#include <emmintrin.h>
#endif
#ifdef _MSC_VER
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(4127) // conditional expression is constant
RAPIDJSON_DIAG_OFF(4702) // unreachable code
#endif
#ifdef __clang__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(old-style-cast)
RAPIDJSON_DIAG_OFF(padded)
RAPIDJSON_DIAG_OFF(switch-enum)
#endif
#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
#endif
//!@cond RAPIDJSON_HIDDEN_FROM_DOXYGEN
#define RAPIDJSON_NOTHING /* deliberately empty */
#ifndef RAPIDJSON_PARSE_ERROR_EARLY_RETURN
#define RAPIDJSON_PARSE_ERROR_EARLY_RETURN(value) \
RAPIDJSON_MULTILINEMACRO_BEGIN \
if (RAPIDJSON_UNLIKELY(HasParseError())) { return value; } \
RAPIDJSON_MULTILINEMACRO_END
#endif
#define RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID \
RAPIDJSON_PARSE_ERROR_EARLY_RETURN(RAPIDJSON_NOTHING)
//!@endcond
/*! \def RAPIDJSON_PARSE_ERROR_NORETURN
\ingroup RAPIDJSON_ERRORS
\brief Macro to indicate a parse error.
\param parseErrorCode \ref rapidjson::ParseErrorCode of the error
\param offset position of the error in JSON input (\c size_t)
This macros can be used as a customization point for the internal
error handling mechanism of RapidJSON.
A common usage model is to throw an exception instead of requiring the
caller to explicitly check the \ref rapidjson::GenericReader::Parse's
return value:
\code
#define RAPIDJSON_PARSE_ERROR_NORETURN(parseErrorCode,offset) \
throw ParseException(parseErrorCode, #parseErrorCode, offset)
#include <stdexcept> // std::runtime_error
#include "rapidjson/error/error.h" // rapidjson::ParseResult
struct ParseException : std::runtime_error, rapidjson::ParseResult {
ParseException(rapidjson::ParseErrorCode code, const char* msg, size_t offset)
: std::runtime_error(msg), ParseResult(code, offset) {}
};
#include "rapidjson/reader.h"
\endcode
\see RAPIDJSON_PARSE_ERROR, rapidjson::GenericReader::Parse
*/
#ifndef RAPIDJSON_PARSE_ERROR_NORETURN
#define RAPIDJSON_PARSE_ERROR_NORETURN(parseErrorCode, offset) \
RAPIDJSON_MULTILINEMACRO_BEGIN \
RAPIDJSON_ASSERT(!HasParseError()); /* Error can only be assigned once */ \
SetParseError(parseErrorCode, offset); \
RAPIDJSON_MULTILINEMACRO_END
#endif
/*! \def RAPIDJSON_PARSE_ERROR
\ingroup RAPIDJSON_ERRORS
\brief (Internal) macro to indicate and handle a parse error.
\param parseErrorCode \ref rapidjson::ParseErrorCode of the error
\param offset position of the error in JSON input (\c size_t)
Invokes RAPIDJSON_PARSE_ERROR_NORETURN and stops the parsing.
\see RAPIDJSON_PARSE_ERROR_NORETURN
\hideinitializer
*/
#ifndef RAPIDJSON_PARSE_ERROR
#define RAPIDJSON_PARSE_ERROR(parseErrorCode, offset) \
RAPIDJSON_MULTILINEMACRO_BEGIN \
RAPIDJSON_PARSE_ERROR_NORETURN(parseErrorCode, offset); \
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID; \
RAPIDJSON_MULTILINEMACRO_END
#endif
#include "error/error.h" // ParseErrorCode, ParseResult
RAPIDJSON_NAMESPACE_BEGIN
///////////////////////////////////////////////////////////////////////////////
// ParseFlag
/*! \def RAPIDJSON_PARSE_DEFAULT_FLAGS
\ingroup RAPIDJSON_CONFIG
\brief User-defined kParseDefaultFlags definition.
User can define this as any \c ParseFlag combinations.
*/
#ifndef RAPIDJSON_PARSE_DEFAULT_FLAGS
#define RAPIDJSON_PARSE_DEFAULT_FLAGS kParseNoFlags
#endif
//! Combination of parseFlags
/*! \see Reader::Parse, Document::Parse, Document::ParseInsitu, Document::ParseStream
*/
enum ParseFlag {
kParseNoFlags = 0, //!< No flags are set.
kParseInsituFlag = 1, //!< In-situ(destructive) parsing.
kParseValidateEncodingFlag = 2, //!< Validate encoding of JSON strings.
kParseIterativeFlag = 4, //!< Iterative(constant complexity in terms of function call stack size) parsing.
kParseStopWhenDoneFlag = 8, //!< After parsing a complete JSON root from stream, stop further processing the rest of stream. When this flag is used, parser will not generate kParseErrorDocumentRootNotSingular error.
kParseFullPrecisionFlag = 16, //!< Parse number in full precision (but slower).
kParseCommentsFlag = 32, //!< Allow one-line (//) and multi-line (/**/) comments.
kParseNumbersAsStringsFlag = 64, //!< Parse all numbers (ints/doubles) as strings.
kParseTrailingCommasFlag = 128, //!< Allow trailing commas at the end of objects and arrays.
kParseNanAndInfFlag = 256, //!< Allow parsing NaN, Inf, Infinity, -Inf and -Infinity as doubles.
kParseDefaultFlags = RAPIDJSON_PARSE_DEFAULT_FLAGS //!< Default parse flags. Can be customized by defining RAPIDJSON_PARSE_DEFAULT_FLAGS
};
///////////////////////////////////////////////////////////////////////////////
// Handler
/*! \class rapidjson::Handler
\brief Concept for receiving events from GenericReader upon parsing.
The functions return true if no error occurs. If they return false,
the event publisher should terminate the process.
\code
concept Handler {
typename Ch;
bool Null();
bool Bool(bool b);
bool Int(int i);
bool Uint(unsigned i);
bool Int64(int64_t i);
bool Uint64(uint64_t i);
bool Double(double d);
/// enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length)
bool RawNumber(const Ch* str, SizeType length, bool copy);
bool String(const Ch* str, SizeType length, bool copy);
bool StartObject();
bool Key(const Ch* str, SizeType length, bool copy);
bool EndObject(SizeType memberCount);
bool StartArray();
bool EndArray(SizeType elementCount);
};
\endcode
*/
///////////////////////////////////////////////////////////////////////////////
// BaseReaderHandler
//! Default implementation of Handler.
/*! This can be used as base class of any reader handler.
\note implements Handler concept
*/
template<typename Encoding = UTF8<>, typename Derived = void>
struct BaseReaderHandler {
typedef typename Encoding::Ch Ch;
typedef typename internal::SelectIf<internal::IsSame<Derived, void>, BaseReaderHandler, Derived>::Type Override;
bool Default() { return true; }
bool Null() { return static_cast<Override&>(*this).Default(); }
bool Bool(bool) { return static_cast<Override&>(*this).Default(); }
bool Int(int) { return static_cast<Override&>(*this).Default(); }
bool Uint(unsigned) { return static_cast<Override&>(*this).Default(); }
bool Int64(int64_t) { return static_cast<Override&>(*this).Default(); }
bool Uint64(uint64_t) { return static_cast<Override&>(*this).Default(); }
bool Double(double) { return static_cast<Override&>(*this).Default(); }
/// enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length)
bool RawNumber(const Ch* str, SizeType len, bool copy) { return static_cast<Override&>(*this).String(str, len, copy); }
bool String(const Ch*, SizeType, bool) { return static_cast<Override&>(*this).Default(); }
bool StartObject() { return static_cast<Override&>(*this).Default(); }
bool Key(const Ch* str, SizeType len, bool copy) { return static_cast<Override&>(*this).String(str, len, copy); }
bool EndObject(SizeType) { return static_cast<Override&>(*this).Default(); }
bool StartArray() { return static_cast<Override&>(*this).Default(); }
bool EndArray(SizeType) { return static_cast<Override&>(*this).Default(); }
};
///////////////////////////////////////////////////////////////////////////////
// StreamLocalCopy
namespace internal {
template<typename Stream, int = StreamTraits<Stream>::copyOptimization>
class StreamLocalCopy;
//! Do copy optimization.
template<typename Stream>
class StreamLocalCopy<Stream, 1> {
public:
StreamLocalCopy(Stream& original) : s(original), original_(original) {}
~StreamLocalCopy() { original_ = s; }
Stream s;
private:
StreamLocalCopy& operator=(const StreamLocalCopy&) /* = delete */;
Stream& original_;
};
//! Keep reference.
template<typename Stream>
class StreamLocalCopy<Stream, 0> {
public:
StreamLocalCopy(Stream& original) : s(original) {}
Stream& s;
private:
StreamLocalCopy& operator=(const StreamLocalCopy&) /* = delete */;
};
} // namespace internal
///////////////////////////////////////////////////////////////////////////////
// SkipWhitespace
//! Skip the JSON white spaces in a stream.
/*! \param is A input stream for skipping white spaces.
\note This function has SSE2/SSE4.2 specialization.
*/
template<typename InputStream>
void SkipWhitespace(InputStream& is) {
internal::StreamLocalCopy<InputStream> copy(is);
InputStream& s(copy.s);
typename InputStream::Ch c;
while ((c = s.Peek()) == ' ' || c == '\n' || c == '\r' || c == '\t')
s.Take();
}
inline const char* SkipWhitespace(const char* p, const char* end) {
while (p != end && (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t'))
++p;
return p;
}
#ifdef RAPIDJSON_SSE42
//! Skip whitespace with SSE 4.2 pcmpistrm instruction, testing 16 8-byte characters at once.
inline const char *SkipWhitespace_SIMD(const char* p) {
// Fast return for single non-whitespace
if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t')
++p;
else
return p;
// 16-byte align to the next boundary
const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & static_cast<size_t>(~15));
while (p != nextAligned)
if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t')
++p;
else
return p;
// The rest of string using SIMD
static const char whitespace[16] = " \n\r\t";
const __m128i w = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespace[0]));
for (;; p += 16) {
const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p));
const int r = _mm_cmpistri(w, s, _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_LEAST_SIGNIFICANT | _SIDD_NEGATIVE_POLARITY);
if (r != 16) // some of characters is non-whitespace
return p + r;
}
}
inline const char *SkipWhitespace_SIMD(const char* p, const char* end) {
// Fast return for single non-whitespace
if (p != end && (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t'))
++p;
else
return p;
// The middle of string using SIMD
static const char whitespace[16] = " \n\r\t";
const __m128i w = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespace[0]));
for (; p <= end - 16; p += 16) {
const __m128i s = _mm_loadu_si128(reinterpret_cast<const __m128i *>(p));
const int r = _mm_cmpistri(w, s, _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_LEAST_SIGNIFICANT | _SIDD_NEGATIVE_POLARITY);
if (r != 16) // some of characters is non-whitespace
return p + r;
}
return SkipWhitespace(p, end);
}
#elif defined(RAPIDJSON_SSE2)
//! Skip whitespace with SSE2 instructions, testing 16 8-byte characters at once.
inline const char *SkipWhitespace_SIMD(const char* p) {
// Fast return for single non-whitespace
if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t')
++p;
else
return p;
// 16-byte align to the next boundary
const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & static_cast<size_t>(~15));
while (p != nextAligned)
if (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t')
++p;
else
return p;
// The rest of string
#define C16(c) { c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c }
static const char whitespaces[4][16] = { C16(' '), C16('\n'), C16('\r'), C16('\t') };
#undef C16
const __m128i w0 = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespaces[0][0]));
const __m128i w1 = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespaces[1][0]));
const __m128i w2 = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespaces[2][0]));
const __m128i w3 = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespaces[3][0]));
for (;; p += 16) {
const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p));
__m128i x = _mm_cmpeq_epi8(s, w0);
x = _mm_or_si128(x, _mm_cmpeq_epi8(s, w1));
x = _mm_or_si128(x, _mm_cmpeq_epi8(s, w2));
x = _mm_or_si128(x, _mm_cmpeq_epi8(s, w3));
unsigned short r = static_cast<unsigned short>(~_mm_movemask_epi8(x));
if (r != 0) { // some of characters may be non-whitespace
#ifdef _MSC_VER // Find the index of first non-whitespace
unsigned long offset;
_BitScanForward(&offset, r);
return p + offset;
#else
return p + __builtin_ffs(r) - 1;
#endif
}
}
}
inline const char *SkipWhitespace_SIMD(const char* p, const char* end) {
// Fast return for single non-whitespace
if (p != end && (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t'))
++p;
else
return p;
// The rest of string
#define C16(c) { c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c }
static const char whitespaces[4][16] = { C16(' '), C16('\n'), C16('\r'), C16('\t') };
#undef C16
const __m128i w0 = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespaces[0][0]));
const __m128i w1 = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespaces[1][0]));
const __m128i w2 = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespaces[2][0]));
const __m128i w3 = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&whitespaces[3][0]));
for (; p <= end - 16; p += 16) {
const __m128i s = _mm_loadu_si128(reinterpret_cast<const __m128i *>(p));
__m128i x = _mm_cmpeq_epi8(s, w0);
x = _mm_or_si128(x, _mm_cmpeq_epi8(s, w1));
x = _mm_or_si128(x, _mm_cmpeq_epi8(s, w2));
x = _mm_or_si128(x, _mm_cmpeq_epi8(s, w3));
unsigned short r = static_cast<unsigned short>(~_mm_movemask_epi8(x));
if (r != 0) { // some of characters may be non-whitespace
#ifdef _MSC_VER // Find the index of first non-whitespace
unsigned long offset;
_BitScanForward(&offset, r);
return p + offset;
#else
return p + __builtin_ffs(r) - 1;
#endif
}
}
return SkipWhitespace(p, end);
}
#endif // RAPIDJSON_SSE2
#ifdef RAPIDJSON_SIMD
//! Template function specialization for InsituStringStream
template<> inline void SkipWhitespace(InsituStringStream& is) {
is.src_ = const_cast<char*>(SkipWhitespace_SIMD(is.src_));
}
//! Template function specialization for StringStream
template<> inline void SkipWhitespace(StringStream& is) {
is.src_ = SkipWhitespace_SIMD(is.src_);
}
template<> inline void SkipWhitespace(EncodedInputStream<UTF8<>, MemoryStream>& is) {
is.is_.src_ = SkipWhitespace_SIMD(is.is_.src_, is.is_.end_);
}
#endif // RAPIDJSON_SIMD
///////////////////////////////////////////////////////////////////////////////
// GenericReader
//! SAX-style JSON parser. Use \ref Reader for UTF8 encoding and default allocator.
/*! GenericReader parses JSON text from a stream, and send events synchronously to an
object implementing Handler concept.
It needs to allocate a stack for storing a single decoded string during
non-destructive parsing.
For in-situ parsing, the decoded string is directly written to the source
text string, no temporary buffer is required.
A GenericReader object can be reused for parsing multiple JSON text.
\tparam SourceEncoding Encoding of the input stream.
\tparam TargetEncoding Encoding of the parse output.
\tparam StackAllocator Allocator type for stack.
*/
template <typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
class GenericReader {
public:
typedef typename SourceEncoding::Ch Ch; //!< SourceEncoding character type
//! Constructor.
/*! \param stackAllocator Optional allocator for allocating stack memory. (Only use for non-destructive parsing)
\param stackCapacity stack capacity in bytes for storing a single decoded string. (Only use for non-destructive parsing)
*/
GenericReader(StackAllocator* stackAllocator = 0, size_t stackCapacity = kDefaultStackCapacity) : stack_(stackAllocator, stackCapacity), parseResult_() {}
//! Parse JSON text.
/*! \tparam parseFlags Combination of \ref ParseFlag.
\tparam InputStream Type of input stream, implementing Stream concept.
\tparam Handler Type of handler, implementing Handler concept.
\param is Input stream to be parsed.
\param handler The handler to receive events.
\return Whether the parsing is successful.
*/
template <unsigned parseFlags, typename InputStream, typename Handler>
ParseResult Parse(InputStream& is, Handler& handler) {
if (parseFlags & kParseIterativeFlag)
return IterativeParse<parseFlags>(is, handler);
parseResult_.Clear();
ClearStackOnExit scope(*this);
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_);
if (RAPIDJSON_UNLIKELY(is.Peek() == '\0')) {
RAPIDJSON_PARSE_ERROR_NORETURN(kParseErrorDocumentEmpty, is.Tell());
RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_);
}
else {
ParseValue<parseFlags>(is, handler);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_);
if (!(parseFlags & kParseStopWhenDoneFlag)) {
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_);
if (RAPIDJSON_UNLIKELY(is.Peek() != '\0')) {
RAPIDJSON_PARSE_ERROR_NORETURN(kParseErrorDocumentRootNotSingular, is.Tell());
RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_);
}
}
}
return parseResult_;
}
//! Parse JSON text (with \ref kParseDefaultFlags)
/*! \tparam InputStream Type of input stream, implementing Stream concept
\tparam Handler Type of handler, implementing Handler concept.
\param is Input stream to be parsed.
\param handler The handler to receive events.
\return Whether the parsing is successful.
*/
template <typename InputStream, typename Handler>
ParseResult Parse(InputStream& is, Handler& handler) {
return Parse<kParseDefaultFlags>(is, handler);
}
//! Initialize JSON text token-by-token parsing
/*!
*/
void IterativeParseInit() {
parseResult_.Clear();
state_ = IterativeParsingStartState;
}
//! Parse one token from JSON text
/*! \tparam InputStream Type of input stream, implementing Stream concept
\tparam Handler Type of handler, implementing Handler concept.
\param is Input stream to be parsed.
\param handler The handler to receive events.
\return Whether the parsing is successful.
*/
template <unsigned parseFlags, typename InputStream, typename Handler>
bool IterativeParseNext(InputStream& is, Handler& handler) {
while (RAPIDJSON_LIKELY(is.Peek() != '\0')) {
SkipWhitespaceAndComments<parseFlags>(is);
Token t = Tokenize(is.Peek());
IterativeParsingState n = Predict(state_, t);
IterativeParsingState d = Transit<parseFlags>(state_, t, n, is, handler);
// If we've finished or hit an error...
if (RAPIDJSON_UNLIKELY(IsIterativeParsingCompleteState(d))) {
// Report errors.
if (d == IterativeParsingErrorState) {
HandleError(state_, is);
return false;
}
// Transition to the finish state.
RAPIDJSON_ASSERT(d == IterativeParsingFinishState);
state_ = d;
// If StopWhenDone is not set...
if (!(parseFlags & kParseStopWhenDoneFlag)) {
// ... and extra non-whitespace data is found...
SkipWhitespaceAndComments<parseFlags>(is);
if (is.Peek() != '\0') {
// ... this is considered an error.
HandleError(state_, is);
return false;
}
}
// Success! We are done!
return true;
}
// Transition to the new state.
state_ = d;
// If we parsed anything other than a delimiter, we invoked the handler, so we can return true now.
if (!IsIterativeParsingDelimiterState(n))
return true;
}
// We reached the end of file.
stack_.Clear();
if (state_ != IterativeParsingFinishState) {
HandleError(state_, is);
return false;
}
return true;
}
//! Check if token-by-token parsing JSON text is complete
/*! \return Whether the JSON has been fully decoded.
*/
RAPIDJSON_FORCEINLINE bool IterativeParseComplete() {
return IsIterativeParsingCompleteState(state_);
}
//! Whether a parse error has occured in the last parsing.
bool HasParseError() const { return parseResult_.IsError(); }
//! Get the \ref ParseErrorCode of last parsing.
ParseErrorCode GetParseErrorCode() const { return parseResult_.Code(); }
//! Get the position of last parsing error in input, 0 otherwise.
size_t GetErrorOffset() const { return parseResult_.Offset(); }
protected:
void SetParseError(ParseErrorCode code, size_t offset) { parseResult_.Set(code, offset); }
private:
// Prohibit copy constructor & assignment operator.
GenericReader(const GenericReader&);
GenericReader& operator=(const GenericReader&);
void ClearStack() { stack_.Clear(); }
// clear stack on any exit from ParseStream, e.g. due to exception
struct ClearStackOnExit {
explicit ClearStackOnExit(GenericReader& r) : r_(r) {}
~ClearStackOnExit() { r_.ClearStack(); }
private:
GenericReader& r_;
ClearStackOnExit(const ClearStackOnExit&);
ClearStackOnExit& operator=(const ClearStackOnExit&);
};
template<unsigned parseFlags, typename InputStream>
void SkipWhitespaceAndComments(InputStream& is) {
SkipWhitespace(is);
if (parseFlags & kParseCommentsFlag) {
while (RAPIDJSON_UNLIKELY(Consume(is, '/'))) {
if (Consume(is, '*')) {
while (true) {
if (RAPIDJSON_UNLIKELY(is.Peek() == '\0'))
RAPIDJSON_PARSE_ERROR(kParseErrorUnspecificSyntaxError, is.Tell());
else if (Consume(is, '*')) {
if (Consume(is, '/'))
break;
}
else
is.Take();
}
}
else if (RAPIDJSON_LIKELY(Consume(is, '/')))
while (is.Peek() != '\0' && is.Take() != '\n') {}
else
RAPIDJSON_PARSE_ERROR(kParseErrorUnspecificSyntaxError, is.Tell());
SkipWhitespace(is);
}
}
}
// Parse object: { string : value, ... }
template<unsigned parseFlags, typename InputStream, typename Handler>
void ParseObject(InputStream& is, Handler& handler) {
RAPIDJSON_ASSERT(is.Peek() == '{');
is.Take(); // Skip '{'
if (RAPIDJSON_UNLIKELY(!handler.StartObject()))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
if (Consume(is, '}')) {
if (RAPIDJSON_UNLIKELY(!handler.EndObject(0))) // empty object
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
return;
}
for (SizeType memberCount = 0;;) {
if (RAPIDJSON_UNLIKELY(is.Peek() != '"'))
RAPIDJSON_PARSE_ERROR(kParseErrorObjectMissName, is.Tell());
ParseString<parseFlags>(is, handler, true);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
if (RAPIDJSON_UNLIKELY(!Consume(is, ':')))
RAPIDJSON_PARSE_ERROR(kParseErrorObjectMissColon, is.Tell());
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
ParseValue<parseFlags>(is, handler);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
++memberCount;
switch (is.Peek()) {
case ',':
is.Take();
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
break;
case '}':
is.Take();
if (RAPIDJSON_UNLIKELY(!handler.EndObject(memberCount)))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
return;
default:
RAPIDJSON_PARSE_ERROR(kParseErrorObjectMissCommaOrCurlyBracket, is.Tell()); break; // This useless break is only for making warning and coverage happy
}
if (parseFlags & kParseTrailingCommasFlag) {
if (is.Peek() == '}') {
if (RAPIDJSON_UNLIKELY(!handler.EndObject(memberCount)))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
is.Take();
return;
}
}
}
}
// Parse array: [ value, ... ]
template<unsigned parseFlags, typename InputStream, typename Handler>
void ParseArray(InputStream& is, Handler& handler) {
RAPIDJSON_ASSERT(is.Peek() == '[');
is.Take(); // Skip '['
if (RAPIDJSON_UNLIKELY(!handler.StartArray()))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
if (Consume(is, ']')) {
if (RAPIDJSON_UNLIKELY(!handler.EndArray(0))) // empty array
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
return;
}
for (SizeType elementCount = 0;;) {
ParseValue<parseFlags>(is, handler);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
++elementCount;
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
if (Consume(is, ',')) {
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
}
else if (Consume(is, ']')) {
if (RAPIDJSON_UNLIKELY(!handler.EndArray(elementCount)))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
return;
}
else
RAPIDJSON_PARSE_ERROR(kParseErrorArrayMissCommaOrSquareBracket, is.Tell());
if (parseFlags & kParseTrailingCommasFlag) {
if (is.Peek() == ']') {
if (RAPIDJSON_UNLIKELY(!handler.EndArray(elementCount)))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
is.Take();
return;
}
}
}
}
template<unsigned parseFlags, typename InputStream, typename Handler>
void ParseNull(InputStream& is, Handler& handler) {
RAPIDJSON_ASSERT(is.Peek() == 'n');
is.Take();
if (RAPIDJSON_LIKELY(Consume(is, 'u') && Consume(is, 'l') && Consume(is, 'l'))) {
if (RAPIDJSON_UNLIKELY(!handler.Null()))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
}
else
RAPIDJSON_PARSE_ERROR(kParseErrorValueInvalid, is.Tell());
}
template<unsigned parseFlags, typename InputStream, typename Handler>
void ParseTrue(InputStream& is, Handler& handler) {
RAPIDJSON_ASSERT(is.Peek() == 't');
is.Take();
if (RAPIDJSON_LIKELY(Consume(is, 'r') && Consume(is, 'u') && Consume(is, 'e'))) {
if (RAPIDJSON_UNLIKELY(!handler.Bool(true)))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
}
else
RAPIDJSON_PARSE_ERROR(kParseErrorValueInvalid, is.Tell());
}
template<unsigned parseFlags, typename InputStream, typename Handler>
void ParseFalse(InputStream& is, Handler& handler) {
RAPIDJSON_ASSERT(is.Peek() == 'f');
is.Take();
if (RAPIDJSON_LIKELY(Consume(is, 'a') && Consume(is, 'l') && Consume(is, 's') && Consume(is, 'e'))) {
if (RAPIDJSON_UNLIKELY(!handler.Bool(false)))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
}
else
RAPIDJSON_PARSE_ERROR(kParseErrorValueInvalid, is.Tell());
}
template<typename InputStream>
RAPIDJSON_FORCEINLINE static bool Consume(InputStream& is, typename InputStream::Ch expect) {
if (RAPIDJSON_LIKELY(is.Peek() == expect)) {
is.Take();
return true;
}
else
return false;
}
// Helper function to parse four hexidecimal digits in \uXXXX in ParseString().
template<typename InputStream>
unsigned ParseHex4(InputStream& is, size_t escapeOffset) {
unsigned codepoint = 0;
for (int i = 0; i < 4; i++) {
Ch c = is.Peek();
codepoint <<= 4;
codepoint += static_cast<unsigned>(c);
if (c >= '0' && c <= '9')
codepoint -= '0';
else if (c >= 'A' && c <= 'F')
codepoint -= 'A' - 10;
else if (c >= 'a' && c <= 'f')
codepoint -= 'a' - 10;
else {
RAPIDJSON_PARSE_ERROR_NORETURN(kParseErrorStringUnicodeEscapeInvalidHex, escapeOffset);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN(0);
}
is.Take();
}
return codepoint;
}
template <typename CharType>
class StackStream {
public:
typedef CharType Ch;
StackStream(internal::Stack<StackAllocator>& stack) : stack_(stack), length_(0) {}
RAPIDJSON_FORCEINLINE void Put(Ch c) {
*stack_.template Push<Ch>() = c;
++length_;
}
RAPIDJSON_FORCEINLINE void* Push(SizeType count) {
length_ += count;
return stack_.template Push<Ch>(count);
}
size_t Length() const { return length_; }
Ch* Pop() {
return stack_.template Pop<Ch>(length_);
}
private:
StackStream(const StackStream&);
StackStream& operator=(const StackStream&);
internal::Stack<StackAllocator>& stack_;
SizeType length_;
};
// Parse string and generate String event. Different code paths for kParseInsituFlag.
template<unsigned parseFlags, typename InputStream, typename Handler>
void ParseString(InputStream& is, Handler& handler, bool isKey = false) {
internal::StreamLocalCopy<InputStream> copy(is);
InputStream& s(copy.s);
RAPIDJSON_ASSERT(s.Peek() == '\"');
s.Take(); // Skip '\"'
bool success = false;
if (parseFlags & kParseInsituFlag) {
typename InputStream::Ch *head = s.PutBegin();
ParseStringToStream<parseFlags, SourceEncoding, SourceEncoding>(s, s);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
size_t length = s.PutEnd(head) - 1;
RAPIDJSON_ASSERT(length <= 0xFFFFFFFF);
const typename TargetEncoding::Ch* const str = reinterpret_cast<typename TargetEncoding::Ch*>(head);
success = (isKey ? handler.Key(str, SizeType(length), false) : handler.String(str, SizeType(length), false));
}
else {
StackStream<typename TargetEncoding::Ch> stackStream(stack_);
ParseStringToStream<parseFlags, SourceEncoding, TargetEncoding>(s, stackStream);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
SizeType length = static_cast<SizeType>(stackStream.Length()) - 1;
const typename TargetEncoding::Ch* const str = stackStream.Pop();
success = (isKey ? handler.Key(str, length, true) : handler.String(str, length, true));
}
if (RAPIDJSON_UNLIKELY(!success))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, s.Tell());
}
// Parse string to an output is
// This function handles the prefix/suffix double quotes, escaping, and optional encoding validation.
template<unsigned parseFlags, typename SEncoding, typename TEncoding, typename InputStream, typename OutputStream>
RAPIDJSON_FORCEINLINE void ParseStringToStream(InputStream& is, OutputStream& os) {
//!@cond RAPIDJSON_HIDDEN_FROM_DOXYGEN
#define Z16 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
static const char escape[256] = {
Z16, Z16, 0, 0,'\"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,'/',
Z16, Z16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,'\\', 0, 0, 0,
0, 0,'\b', 0, 0, 0,'\f', 0, 0, 0, 0, 0, 0, 0,'\n', 0,
0, 0,'\r', 0,'\t', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16
};
#undef Z16
//!@endcond
for (;;) {
// Scan and copy string before "\\\"" or < 0x20. This is an optional optimzation.
if (!(parseFlags & kParseValidateEncodingFlag))
ScanCopyUnescapedString(is, os);
Ch c = is.Peek();
if (RAPIDJSON_UNLIKELY(c == '\\')) { // Escape
size_t escapeOffset = is.Tell(); // For invalid escaping, report the inital '\\' as error offset
is.Take();
Ch e = is.Peek();
if ((sizeof(Ch) == 1 || unsigned(e) < 256) && RAPIDJSON_LIKELY(escape[static_cast<unsigned char>(e)])) {
is.Take();
os.Put(static_cast<typename TEncoding::Ch>(escape[static_cast<unsigned char>(e)]));
}
else if (RAPIDJSON_LIKELY(e == 'u')) { // Unicode
is.Take();
unsigned codepoint = ParseHex4(is, escapeOffset);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
if (RAPIDJSON_UNLIKELY(codepoint >= 0xD800 && codepoint <= 0xDBFF)) {
// Handle UTF-16 surrogate pair
if (RAPIDJSON_UNLIKELY(!Consume(is, '\\') || !Consume(is, 'u')))
RAPIDJSON_PARSE_ERROR(kParseErrorStringUnicodeSurrogateInvalid, escapeOffset);
unsigned codepoint2 = ParseHex4(is, escapeOffset);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN_VOID;
if (RAPIDJSON_UNLIKELY(codepoint2 < 0xDC00 || codepoint2 > 0xDFFF))
RAPIDJSON_PARSE_ERROR(kParseErrorStringUnicodeSurrogateInvalid, escapeOffset);
codepoint = (((codepoint - 0xD800) << 10) | (codepoint2 - 0xDC00)) + 0x10000;
}
TEncoding::Encode(os, codepoint);
}
else
RAPIDJSON_PARSE_ERROR(kParseErrorStringEscapeInvalid, escapeOffset);
}
else if (RAPIDJSON_UNLIKELY(c == '"')) { // Closing double quote
is.Take();
os.Put('\0'); // null-terminate the string
return;
}
else if (RAPIDJSON_UNLIKELY(static_cast<unsigned>(c) < 0x20)) { // RFC 4627: unescaped = %x20-21 / %x23-5B / %x5D-10FFFF
if (c == '\0')
RAPIDJSON_PARSE_ERROR(kParseErrorStringMissQuotationMark, is.Tell());
else
RAPIDJSON_PARSE_ERROR(kParseErrorStringInvalidEncoding, is.Tell());
}
else {
size_t offset = is.Tell();
if (RAPIDJSON_UNLIKELY((parseFlags & kParseValidateEncodingFlag ?
!Transcoder<SEncoding, TEncoding>::Validate(is, os) :
!Transcoder<SEncoding, TEncoding>::Transcode(is, os))))
RAPIDJSON_PARSE_ERROR(kParseErrorStringInvalidEncoding, offset);
}
}
}
template<typename InputStream, typename OutputStream>
static RAPIDJSON_FORCEINLINE void ScanCopyUnescapedString(InputStream&, OutputStream&) {
// Do nothing for generic version
}
#if defined(RAPIDJSON_SSE2) || defined(RAPIDJSON_SSE42)
// StringStream -> StackStream<char>
static RAPIDJSON_FORCEINLINE void ScanCopyUnescapedString(StringStream& is, StackStream<char>& os) {
const char* p = is.src_;
// Scan one by one until alignment (unaligned load may cross page boundary and cause crash)
const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & static_cast<size_t>(~15));
while (p != nextAligned)
if (RAPIDJSON_UNLIKELY(*p == '\"') || RAPIDJSON_UNLIKELY(*p == '\\') || RAPIDJSON_UNLIKELY(static_cast<unsigned>(*p) < 0x20)) {
is.src_ = p;
return;
}
else
os.Put(*p++);
// The rest of string using SIMD
static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' };
static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' };
static const char space[16] = { 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F };
const __m128i dq = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&dquote[0]));
const __m128i bs = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&bslash[0]));
const __m128i sp = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&space[0]));
for (;; p += 16) {
const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p));
const __m128i t1 = _mm_cmpeq_epi8(s, dq);
const __m128i t2 = _mm_cmpeq_epi8(s, bs);
const __m128i t3 = _mm_cmpeq_epi8(_mm_max_epu8(s, sp), sp); // s < 0x20 <=> max(s, 0x1F) == 0x1F
const __m128i x = _mm_or_si128(_mm_or_si128(t1, t2), t3);
unsigned short r = static_cast<unsigned short>(_mm_movemask_epi8(x));
if (RAPIDJSON_UNLIKELY(r != 0)) { // some of characters is escaped
SizeType length;
#ifdef _MSC_VER // Find the index of first escaped
unsigned long offset;
_BitScanForward(&offset, r);
length = offset;
#else
length = static_cast<SizeType>(__builtin_ffs(r) - 1);
#endif
if (length != 0) {
char* q = reinterpret_cast<char*>(os.Push(length));
for (size_t i = 0; i < length; i++)
q[i] = p[i];
p += length;
}
break;
}
_mm_storeu_si128(reinterpret_cast<__m128i *>(os.Push(16)), s);
}
is.src_ = p;
}
// InsituStringStream -> InsituStringStream
static RAPIDJSON_FORCEINLINE void ScanCopyUnescapedString(InsituStringStream& is, InsituStringStream& os) {
RAPIDJSON_ASSERT(&is == &os);
(void)os;
if (is.src_ == is.dst_) {
SkipUnescapedString(is);
return;
}
char* p = is.src_;
char *q = is.dst_;
// Scan one by one until alignment (unaligned load may cross page boundary and cause crash)
const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & static_cast<size_t>(~15));
while (p != nextAligned)
if (RAPIDJSON_UNLIKELY(*p == '\"') || RAPIDJSON_UNLIKELY(*p == '\\') || RAPIDJSON_UNLIKELY(static_cast<unsigned>(*p) < 0x20)) {
is.src_ = p;
is.dst_ = q;
return;
}
else
*q++ = *p++;
// The rest of string using SIMD
static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' };
static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' };
static const char space[16] = { 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F };
const __m128i dq = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&dquote[0]));
const __m128i bs = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&bslash[0]));
const __m128i sp = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&space[0]));
for (;; p += 16, q += 16) {
const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p));
const __m128i t1 = _mm_cmpeq_epi8(s, dq);
const __m128i t2 = _mm_cmpeq_epi8(s, bs);
const __m128i t3 = _mm_cmpeq_epi8(_mm_max_epu8(s, sp), sp); // s < 0x20 <=> max(s, 0x1F) == 0x1F
const __m128i x = _mm_or_si128(_mm_or_si128(t1, t2), t3);
unsigned short r = static_cast<unsigned short>(_mm_movemask_epi8(x));
if (RAPIDJSON_UNLIKELY(r != 0)) { // some of characters is escaped
size_t length;
#ifdef _MSC_VER // Find the index of first escaped
unsigned long offset;
_BitScanForward(&offset, r);
length = offset;
#else
length = static_cast<size_t>(__builtin_ffs(r) - 1);
#endif
for (const char* pend = p + length; p != pend; )
*q++ = *p++;
break;
}
_mm_storeu_si128(reinterpret_cast<__m128i *>(q), s);
}
is.src_ = p;
is.dst_ = q;
}
// When read/write pointers are the same for insitu stream, just skip unescaped characters
static RAPIDJSON_FORCEINLINE void SkipUnescapedString(InsituStringStream& is) {
RAPIDJSON_ASSERT(is.src_ == is.dst_);
char* p = is.src_;
// Scan one by one until alignment (unaligned load may cross page boundary and cause crash)
const char* nextAligned = reinterpret_cast<const char*>((reinterpret_cast<size_t>(p) + 15) & static_cast<size_t>(~15));
for (; p != nextAligned; p++)
if (RAPIDJSON_UNLIKELY(*p == '\"') || RAPIDJSON_UNLIKELY(*p == '\\') || RAPIDJSON_UNLIKELY(static_cast<unsigned>(*p) < 0x20)) {
is.src_ = is.dst_ = p;
return;
}
// The rest of string using SIMD
static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' };
static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' };
static const char space[16] = { 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F };
const __m128i dq = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&dquote[0]));
const __m128i bs = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&bslash[0]));
const __m128i sp = _mm_loadu_si128(reinterpret_cast<const __m128i *>(&space[0]));
for (;; p += 16) {
const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p));
const __m128i t1 = _mm_cmpeq_epi8(s, dq);
const __m128i t2 = _mm_cmpeq_epi8(s, bs);
const __m128i t3 = _mm_cmpeq_epi8(_mm_max_epu8(s, sp), sp); // s < 0x20 <=> max(s, 0x1F) == 0x1F
const __m128i x = _mm_or_si128(_mm_or_si128(t1, t2), t3);
unsigned short r = static_cast<unsigned short>(_mm_movemask_epi8(x));
if (RAPIDJSON_UNLIKELY(r != 0)) { // some of characters is escaped
size_t length;
#ifdef _MSC_VER // Find the index of first escaped
unsigned long offset;
_BitScanForward(&offset, r);
length = offset;
#else
length = static_cast<size_t>(__builtin_ffs(r) - 1);
#endif
p += length;
break;
}
}
is.src_ = is.dst_ = p;
}
#endif
template<typename InputStream, bool backup, bool pushOnTake>
class NumberStream;
template<typename InputStream>
class NumberStream<InputStream, false, false> {
public:
typedef typename InputStream::Ch Ch;
NumberStream(GenericReader& reader, InputStream& s) : is(s) { (void)reader; }
RAPIDJSON_FORCEINLINE Ch Peek() const { return is.Peek(); }
RAPIDJSON_FORCEINLINE Ch TakePush() { return is.Take(); }
RAPIDJSON_FORCEINLINE Ch Take() { return is.Take(); }
RAPIDJSON_FORCEINLINE void Push(char) {}
size_t Tell() { return is.Tell(); }
size_t Length() { return 0; }
const char* Pop() { return 0; }
protected:
NumberStream& operator=(const NumberStream&);
InputStream& is;
};
template<typename InputStream>
class NumberStream<InputStream, true, false> : public NumberStream<InputStream, false, false> {
typedef NumberStream<InputStream, false, false> Base;
public:
NumberStream(GenericReader& reader, InputStream& is) : Base(reader, is), stackStream(reader.stack_) {}
RAPIDJSON_FORCEINLINE Ch TakePush() {
stackStream.Put(static_cast<char>(Base::is.Peek()));
return Base::is.Take();
}
RAPIDJSON_FORCEINLINE void Push(char c) {
stackStream.Put(c);
}
size_t Length() { return stackStream.Length(); }
const char* Pop() {
stackStream.Put('\0');
return stackStream.Pop();
}
private:
StackStream<char> stackStream;
};
template<typename InputStream>
class NumberStream<InputStream, true, true> : public NumberStream<InputStream, true, false> {
typedef NumberStream<InputStream, true, false> Base;
public:
NumberStream(GenericReader& reader, InputStream& is) : Base(reader, is) {}
RAPIDJSON_FORCEINLINE Ch Take() { return Base::TakePush(); }
};
template<unsigned parseFlags, typename InputStream, typename Handler>
void ParseNumber(InputStream& is, Handler& handler) {
internal::StreamLocalCopy<InputStream> copy(is);
NumberStream<InputStream,
((parseFlags & kParseNumbersAsStringsFlag) != 0) ?
((parseFlags & kParseInsituFlag) == 0) :
((parseFlags & kParseFullPrecisionFlag) != 0),
(parseFlags & kParseNumbersAsStringsFlag) != 0 &&
(parseFlags & kParseInsituFlag) == 0> s(*this, copy.s);
size_t startOffset = s.Tell();
double d = 0.0;
bool useNanOrInf = false;
// Parse minus
bool minus = Consume(s, '-');
// Parse int: zero / ( digit1-9 *DIGIT )
unsigned i = 0;
uint64_t i64 = 0;
bool use64bit = false;
int significandDigit = 0;
if (RAPIDJSON_UNLIKELY(s.Peek() == '0')) {
i = 0;
s.TakePush();
}
else if (RAPIDJSON_LIKELY(s.Peek() >= '1' && s.Peek() <= '9')) {
i = static_cast<unsigned>(s.TakePush() - '0');
if (minus)
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
if (RAPIDJSON_UNLIKELY(i >= 214748364)) { // 2^31 = 2147483648
if (RAPIDJSON_LIKELY(i != 214748364 || s.Peek() > '8')) {
i64 = i;
use64bit = true;
break;
}
}
i = i * 10 + static_cast<unsigned>(s.TakePush() - '0');
significandDigit++;
}
else
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
if (RAPIDJSON_UNLIKELY(i >= 429496729)) { // 2^32 - 1 = 4294967295
if (RAPIDJSON_LIKELY(i != 429496729 || s.Peek() > '5')) {
i64 = i;
use64bit = true;
break;
}
}
i = i * 10 + static_cast<unsigned>(s.TakePush() - '0');
significandDigit++;
}
}
// Parse NaN or Infinity here
else if ((parseFlags & kParseNanAndInfFlag) && RAPIDJSON_LIKELY((s.Peek() == 'I' || s.Peek() == 'N'))) {
if (Consume(s, 'N')) {
if (Consume(s, 'a') && Consume(s, 'N')) {
d = std::numeric_limits<double>::quiet_NaN();
useNanOrInf = true;
}
}
else if (RAPIDJSON_LIKELY(Consume(s, 'I'))) {
if (Consume(s, 'n') && Consume(s, 'f')) {
d = (minus ? -std::numeric_limits<double>::infinity() : std::numeric_limits<double>::infinity());
useNanOrInf = true;
if (RAPIDJSON_UNLIKELY(s.Peek() == 'i' && !(Consume(s, 'i') && Consume(s, 'n')
&& Consume(s, 'i') && Consume(s, 't') && Consume(s, 'y')))) {
RAPIDJSON_PARSE_ERROR(kParseErrorValueInvalid, s.Tell());
}
}
}
if (RAPIDJSON_UNLIKELY(!useNanOrInf)) {
RAPIDJSON_PARSE_ERROR(kParseErrorValueInvalid, s.Tell());
}
}
else
RAPIDJSON_PARSE_ERROR(kParseErrorValueInvalid, s.Tell());
// Parse 64bit int
bool useDouble = false;
if (use64bit) {
if (minus)
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
if (RAPIDJSON_UNLIKELY(i64 >= RAPIDJSON_UINT64_C2(0x0CCCCCCC, 0xCCCCCCCC))) // 2^63 = 9223372036854775808
if (RAPIDJSON_LIKELY(i64 != RAPIDJSON_UINT64_C2(0x0CCCCCCC, 0xCCCCCCCC) || s.Peek() > '8')) {
d = static_cast<double>(i64);
useDouble = true;
break;
}
i64 = i64 * 10 + static_cast<unsigned>(s.TakePush() - '0');
significandDigit++;
}
else
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
if (RAPIDJSON_UNLIKELY(i64 >= RAPIDJSON_UINT64_C2(0x19999999, 0x99999999))) // 2^64 - 1 = 18446744073709551615
if (RAPIDJSON_LIKELY(i64 != RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) || s.Peek() > '5')) {
d = static_cast<double>(i64);
useDouble = true;
break;
}
i64 = i64 * 10 + static_cast<unsigned>(s.TakePush() - '0');
significandDigit++;
}
}
// Force double for big integer
if (useDouble) {
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
if (RAPIDJSON_UNLIKELY(d >= 1.7976931348623157e307)) // DBL_MAX / 10.0
RAPIDJSON_PARSE_ERROR(kParseErrorNumberTooBig, startOffset);
d = d * 10 + (s.TakePush() - '0');
}
}
// Parse frac = decimal-point 1*DIGIT
int expFrac = 0;
size_t decimalPosition;
if (Consume(s, '.')) {
decimalPosition = s.Length();
if (RAPIDJSON_UNLIKELY(!(s.Peek() >= '0' && s.Peek() <= '9')))
RAPIDJSON_PARSE_ERROR(kParseErrorNumberMissFraction, s.Tell());
if (!useDouble) {
#if RAPIDJSON_64BIT
// Use i64 to store significand in 64-bit architecture
if (!use64bit)
i64 = i;
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
if (i64 > RAPIDJSON_UINT64_C2(0x1FFFFF, 0xFFFFFFFF)) // 2^53 - 1 for fast path
break;
else {
i64 = i64 * 10 + static_cast<unsigned>(s.TakePush() - '0');
--expFrac;
if (i64 != 0)
significandDigit++;
}
}
d = static_cast<double>(i64);
#else
// Use double to store significand in 32-bit architecture
d = static_cast<double>(use64bit ? i64 : i);
#endif
useDouble = true;
}
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
if (significandDigit < 17) {
d = d * 10.0 + (s.TakePush() - '0');
--expFrac;
if (RAPIDJSON_LIKELY(d > 0.0))
significandDigit++;
}
else
s.TakePush();
}
}
else
decimalPosition = s.Length(); // decimal position at the end of integer.
// Parse exp = e [ minus / plus ] 1*DIGIT
int exp = 0;
if (Consume(s, 'e') || Consume(s, 'E')) {
if (!useDouble) {
d = static_cast<double>(use64bit ? i64 : i);
useDouble = true;
}
bool expMinus = false;
if (Consume(s, '+'))
;
else if (Consume(s, '-'))
expMinus = true;
if (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
exp = static_cast<int>(s.Take() - '0');
if (expMinus) {
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
exp = exp * 10 + static_cast<int>(s.Take() - '0');
if (exp >= 214748364) { // Issue #313: prevent overflow exponent
while (RAPIDJSON_UNLIKELY(s.Peek() >= '0' && s.Peek() <= '9')) // Consume the rest of exponent
s.Take();
}
}
}
else { // positive exp
int maxExp = 308 - expFrac;
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
exp = exp * 10 + static_cast<int>(s.Take() - '0');
if (RAPIDJSON_UNLIKELY(exp > maxExp))
RAPIDJSON_PARSE_ERROR(kParseErrorNumberTooBig, startOffset);
}
}
}
else
RAPIDJSON_PARSE_ERROR(kParseErrorNumberMissExponent, s.Tell());
if (expMinus)
exp = -exp;
}
// Finish parsing, call event according to the type of number.
bool cont = true;
if (parseFlags & kParseNumbersAsStringsFlag) {
if (parseFlags & kParseInsituFlag) {
s.Pop(); // Pop stack no matter if it will be used or not.
typename InputStream::Ch* head = is.PutBegin();
const size_t length = s.Tell() - startOffset;
RAPIDJSON_ASSERT(length <= 0xFFFFFFFF);
// unable to insert the \0 character here, it will erase the comma after this number
const typename TargetEncoding::Ch* const str = reinterpret_cast<typename TargetEncoding::Ch*>(head);
cont = handler.RawNumber(str, SizeType(length), false);
}
else {
SizeType numCharsToCopy = static_cast<SizeType>(s.Length());
StringStream srcStream(s.Pop());
StackStream<typename TargetEncoding::Ch> dstStream(stack_);
while (numCharsToCopy--) {
Transcoder<UTF8<>, TargetEncoding>::Transcode(srcStream, dstStream);
}
dstStream.Put('\0');
const typename TargetEncoding::Ch* str = dstStream.Pop();
const SizeType length = static_cast<SizeType>(dstStream.Length()) - 1;
cont = handler.RawNumber(str, SizeType(length), true);
}
}
else {
size_t length = s.Length();
const char* decimal = s.Pop(); // Pop stack no matter if it will be used or not.
if (useDouble) {
int p = exp + expFrac;
if (parseFlags & kParseFullPrecisionFlag)
d = internal::StrtodFullPrecision(d, p, decimal, length, decimalPosition, exp);
else
d = internal::StrtodNormalPrecision(d, p);
cont = handler.Double(minus ? -d : d);
}
else if (useNanOrInf) {
cont = handler.Double(d);
}
else {
if (use64bit) {
if (minus)
cont = handler.Int64(static_cast<int64_t>(~i64 + 1));
else
cont = handler.Uint64(i64);
}
else {
if (minus)
cont = handler.Int(static_cast<int32_t>(~i + 1));
else
cont = handler.Uint(i);
}
}
}
if (RAPIDJSON_UNLIKELY(!cont))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, startOffset);
}
// Parse any JSON value
template<unsigned parseFlags, typename InputStream, typename Handler>
void ParseValue(InputStream& is, Handler& handler) {
switch (is.Peek()) {
case 'n': ParseNull <parseFlags>(is, handler); break;
case 't': ParseTrue <parseFlags>(is, handler); break;
case 'f': ParseFalse <parseFlags>(is, handler); break;
case '"': ParseString<parseFlags>(is, handler); break;
case '{': ParseObject<parseFlags>(is, handler); break;
case '[': ParseArray <parseFlags>(is, handler); break;
default :
ParseNumber<parseFlags>(is, handler);
break;
}
}
// Iterative Parsing
// States
enum IterativeParsingState {
IterativeParsingFinishState = 0, // sink states at top
IterativeParsingErrorState, // sink states at top
IterativeParsingStartState,
// Object states
IterativeParsingObjectInitialState,
IterativeParsingMemberKeyState,
IterativeParsingMemberValueState,
IterativeParsingObjectFinishState,
// Array states
IterativeParsingArrayInitialState,
IterativeParsingElementState,
IterativeParsingArrayFinishState,
// Single value state
IterativeParsingValueState,
// Delimiter states (at bottom)
IterativeParsingElementDelimiterState,
IterativeParsingMemberDelimiterState,
IterativeParsingKeyValueDelimiterState,
cIterativeParsingStateCount
};
// Tokens
enum Token {
LeftBracketToken = 0,
RightBracketToken,
LeftCurlyBracketToken,
RightCurlyBracketToken,
CommaToken,
ColonToken,
StringToken,
FalseToken,
TrueToken,
NullToken,
NumberToken,
kTokenCount
};
RAPIDJSON_FORCEINLINE Token Tokenize(Ch c) {
//!@cond RAPIDJSON_HIDDEN_FROM_DOXYGEN
#define N NumberToken
#define N16 N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
// Maps from ASCII to Token
static const unsigned char tokenMap[256] = {
N16, // 00~0F
N16, // 10~1F
N, N, StringToken, N, N, N, N, N, N, N, N, N, CommaToken, N, N, N, // 20~2F
N, N, N, N, N, N, N, N, N, N, ColonToken, N, N, N, N, N, // 30~3F
N16, // 40~4F
N, N, N, N, N, N, N, N, N, N, N, LeftBracketToken, N, RightBracketToken, N, N, // 50~5F
N, N, N, N, N, N, FalseToken, N, N, N, N, N, N, N, NullToken, N, // 60~6F
N, N, N, N, TrueToken, N, N, N, N, N, N, LeftCurlyBracketToken, N, RightCurlyBracketToken, N, N, // 70~7F
N16, N16, N16, N16, N16, N16, N16, N16 // 80~FF
};
#undef N
#undef N16
//!@endcond
if (sizeof(Ch) == 1 || static_cast<unsigned>(c) < 256)
return static_cast<Token>(tokenMap[static_cast<unsigned char>(c)]);
else
return NumberToken;
}
RAPIDJSON_FORCEINLINE IterativeParsingState Predict(IterativeParsingState state, Token token) {
// current state x one lookahead token -> new state
static const char G[cIterativeParsingStateCount][kTokenCount] = {
// Finish(sink state)
{
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState
},
// Error(sink state)
{
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState
},
// Start
{
IterativeParsingArrayInitialState, // Left bracket
IterativeParsingErrorState, // Right bracket
IterativeParsingObjectInitialState, // Left curly bracket
IterativeParsingErrorState, // Right curly bracket
IterativeParsingErrorState, // Comma
IterativeParsingErrorState, // Colon
IterativeParsingValueState, // String
IterativeParsingValueState, // False
IterativeParsingValueState, // True
IterativeParsingValueState, // Null
IterativeParsingValueState // Number
},
// ObjectInitial
{
IterativeParsingErrorState, // Left bracket
IterativeParsingErrorState, // Right bracket
IterativeParsingErrorState, // Left curly bracket
IterativeParsingObjectFinishState, // Right curly bracket
IterativeParsingErrorState, // Comma
IterativeParsingErrorState, // Colon
IterativeParsingMemberKeyState, // String
IterativeParsingErrorState, // False
IterativeParsingErrorState, // True
IterativeParsingErrorState, // Null
IterativeParsingErrorState // Number
},
// MemberKey
{
IterativeParsingErrorState, // Left bracket
IterativeParsingErrorState, // Right bracket
IterativeParsingErrorState, // Left curly bracket
IterativeParsingErrorState, // Right curly bracket
IterativeParsingErrorState, // Comma
IterativeParsingKeyValueDelimiterState, // Colon
IterativeParsingErrorState, // String
IterativeParsingErrorState, // False
IterativeParsingErrorState, // True
IterativeParsingErrorState, // Null
IterativeParsingErrorState // Number
},
// MemberValue
{
IterativeParsingErrorState, // Left bracket
IterativeParsingErrorState, // Right bracket
IterativeParsingErrorState, // Left curly bracket
IterativeParsingObjectFinishState, // Right curly bracket
IterativeParsingMemberDelimiterState, // Comma
IterativeParsingErrorState, // Colon
IterativeParsingErrorState, // String
IterativeParsingErrorState, // False
IterativeParsingErrorState, // True
IterativeParsingErrorState, // Null
IterativeParsingErrorState // Number
},
// ObjectFinish(sink state)
{
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState
},
// ArrayInitial
{
IterativeParsingArrayInitialState, // Left bracket(push Element state)
IterativeParsingArrayFinishState, // Right bracket
IterativeParsingObjectInitialState, // Left curly bracket(push Element state)
IterativeParsingErrorState, // Right curly bracket
IterativeParsingErrorState, // Comma
IterativeParsingErrorState, // Colon
IterativeParsingElementState, // String
IterativeParsingElementState, // False
IterativeParsingElementState, // True
IterativeParsingElementState, // Null
IterativeParsingElementState // Number
},
// Element
{
IterativeParsingErrorState, // Left bracket
IterativeParsingArrayFinishState, // Right bracket
IterativeParsingErrorState, // Left curly bracket
IterativeParsingErrorState, // Right curly bracket
IterativeParsingElementDelimiterState, // Comma
IterativeParsingErrorState, // Colon
IterativeParsingErrorState, // String
IterativeParsingErrorState, // False
IterativeParsingErrorState, // True
IterativeParsingErrorState, // Null
IterativeParsingErrorState // Number
},
// ArrayFinish(sink state)
{
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState
},
// Single Value (sink state)
{
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState, IterativeParsingErrorState,
IterativeParsingErrorState
},
// ElementDelimiter
{
IterativeParsingArrayInitialState, // Left bracket(push Element state)
IterativeParsingArrayFinishState, // Right bracket
IterativeParsingObjectInitialState, // Left curly bracket(push Element state)
IterativeParsingErrorState, // Right curly bracket
IterativeParsingErrorState, // Comma
IterativeParsingErrorState, // Colon
IterativeParsingElementState, // String
IterativeParsingElementState, // False
IterativeParsingElementState, // True
IterativeParsingElementState, // Null
IterativeParsingElementState // Number
},
// MemberDelimiter
{
IterativeParsingErrorState, // Left bracket
IterativeParsingErrorState, // Right bracket
IterativeParsingErrorState, // Left curly bracket
IterativeParsingObjectFinishState, // Right curly bracket
IterativeParsingErrorState, // Comma
IterativeParsingErrorState, // Colon
IterativeParsingMemberKeyState, // String
IterativeParsingErrorState, // False
IterativeParsingErrorState, // True
IterativeParsingErrorState, // Null
IterativeParsingErrorState // Number
},
// KeyValueDelimiter
{
IterativeParsingArrayInitialState, // Left bracket(push MemberValue state)
IterativeParsingErrorState, // Right bracket
IterativeParsingObjectInitialState, // Left curly bracket(push MemberValue state)
IterativeParsingErrorState, // Right curly bracket
IterativeParsingErrorState, // Comma
IterativeParsingErrorState, // Colon
IterativeParsingMemberValueState, // String
IterativeParsingMemberValueState, // False
IterativeParsingMemberValueState, // True
IterativeParsingMemberValueState, // Null
IterativeParsingMemberValueState // Number
},
}; // End of G
return static_cast<IterativeParsingState>(G[state][token]);
}
// Make an advance in the token stream and state based on the candidate destination state which was returned by Transit().
// May return a new state on state pop.
template <unsigned parseFlags, typename InputStream, typename Handler>
RAPIDJSON_FORCEINLINE IterativeParsingState Transit(IterativeParsingState src, Token token, IterativeParsingState dst, InputStream& is, Handler& handler) {
(void)token;
switch (dst) {
case IterativeParsingErrorState:
return dst;
case IterativeParsingObjectInitialState:
case IterativeParsingArrayInitialState:
{
// Push the state(Element or MemeberValue) if we are nested in another array or value of member.
// In this way we can get the correct state on ObjectFinish or ArrayFinish by frame pop.
IterativeParsingState n = src;
if (src == IterativeParsingArrayInitialState || src == IterativeParsingElementDelimiterState)
n = IterativeParsingElementState;
else if (src == IterativeParsingKeyValueDelimiterState)
n = IterativeParsingMemberValueState;
// Push current state.
*stack_.template Push<SizeType>(1) = n;
// Initialize and push the member/element count.
*stack_.template Push<SizeType>(1) = 0;
// Call handler
bool hr = (dst == IterativeParsingObjectInitialState) ? handler.StartObject() : handler.StartArray();
// On handler short circuits the parsing.
if (!hr) {
RAPIDJSON_PARSE_ERROR_NORETURN(kParseErrorTermination, is.Tell());
return IterativeParsingErrorState;
}
else {
is.Take();
return dst;
}
}
case IterativeParsingMemberKeyState:
ParseString<parseFlags>(is, handler, true);
if (HasParseError())
return IterativeParsingErrorState;
else
return dst;
case IterativeParsingKeyValueDelimiterState:
RAPIDJSON_ASSERT(token == ColonToken);
is.Take();
return dst;
case IterativeParsingMemberValueState:
// Must be non-compound value. Or it would be ObjectInitial or ArrayInitial state.
ParseValue<parseFlags>(is, handler);
if (HasParseError()) {
return IterativeParsingErrorState;
}
return dst;
case IterativeParsingElementState:
// Must be non-compound value. Or it would be ObjectInitial or ArrayInitial state.
ParseValue<parseFlags>(is, handler);
if (HasParseError()) {
return IterativeParsingErrorState;
}
return dst;
case IterativeParsingMemberDelimiterState:
case IterativeParsingElementDelimiterState:
is.Take();
// Update member/element count.
*stack_.template Top<SizeType>() = *stack_.template Top<SizeType>() + 1;
return dst;
case IterativeParsingObjectFinishState:
{
// Transit from delimiter is only allowed when trailing commas are enabled
if (!(parseFlags & kParseTrailingCommasFlag) && src == IterativeParsingMemberDelimiterState) {
RAPIDJSON_PARSE_ERROR_NORETURN(kParseErrorObjectMissName, is.Tell());
return IterativeParsingErrorState;
}
// Get member count.
SizeType c = *stack_.template Pop<SizeType>(1);
// If the object is not empty, count the last member.
if (src == IterativeParsingMemberValueState)
++c;
// Restore the state.
IterativeParsingState n = static_cast<IterativeParsingState>(*stack_.template Pop<SizeType>(1));
// Transit to Finish state if this is the topmost scope.
if (n == IterativeParsingStartState)
n = IterativeParsingFinishState;
// Call handler
bool hr = handler.EndObject(c);
// On handler short circuits the parsing.
if (!hr) {
RAPIDJSON_PARSE_ERROR_NORETURN(kParseErrorTermination, is.Tell());
return IterativeParsingErrorState;
}
else {
is.Take();
return n;
}
}
case IterativeParsingArrayFinishState:
{
// Transit from delimiter is only allowed when trailing commas are enabled
if (!(parseFlags & kParseTrailingCommasFlag) && src == IterativeParsingElementDelimiterState) {
RAPIDJSON_PARSE_ERROR_NORETURN(kParseErrorValueInvalid, is.Tell());
return IterativeParsingErrorState;
}
// Get element count.
SizeType c = *stack_.template Pop<SizeType>(1);
// If the array is not empty, count the last element.
if (src == IterativeParsingElementState)
++c;
// Restore the state.
IterativeParsingState n = static_cast<IterativeParsingState>(*stack_.template Pop<SizeType>(1));
// Transit to Finish state if this is the topmost scope.
if (n == IterativeParsingStartState)
n = IterativeParsingFinishState;
// Call handler
bool hr = handler.EndArray(c);
// On handler short circuits the parsing.
if (!hr) {
RAPIDJSON_PARSE_ERROR_NORETURN(kParseErrorTermination, is.Tell());
return IterativeParsingErrorState;
}
else {
is.Take();
return n;
}
}
default:
// This branch is for IterativeParsingValueState actually.
// Use `default:` rather than
// `case IterativeParsingValueState:` is for code coverage.
// The IterativeParsingStartState is not enumerated in this switch-case.
// It is impossible for that case. And it can be caught by following assertion.
// The IterativeParsingFinishState is not enumerated in this switch-case either.
// It is a "derivative" state which cannot triggered from Predict() directly.
// Therefore it cannot happen here. And it can be caught by following assertion.
RAPIDJSON_ASSERT(dst == IterativeParsingValueState);
// Must be non-compound value. Or it would be ObjectInitial or ArrayInitial state.
ParseValue<parseFlags>(is, handler);
if (HasParseError()) {
return IterativeParsingErrorState;
}
return IterativeParsingFinishState;
}
}
template <typename InputStream>
void HandleError(IterativeParsingState src, InputStream& is) {
if (HasParseError()) {
// Error flag has been set.
return;
}
switch (src) {
case IterativeParsingStartState: RAPIDJSON_PARSE_ERROR(kParseErrorDocumentEmpty, is.Tell()); return;
case IterativeParsingFinishState: RAPIDJSON_PARSE_ERROR(kParseErrorDocumentRootNotSingular, is.Tell()); return;
case IterativeParsingObjectInitialState:
case IterativeParsingMemberDelimiterState: RAPIDJSON_PARSE_ERROR(kParseErrorObjectMissName, is.Tell()); return;
case IterativeParsingMemberKeyState: RAPIDJSON_PARSE_ERROR(kParseErrorObjectMissColon, is.Tell()); return;
case IterativeParsingMemberValueState: RAPIDJSON_PARSE_ERROR(kParseErrorObjectMissCommaOrCurlyBracket, is.Tell()); return;
case IterativeParsingKeyValueDelimiterState:
case IterativeParsingArrayInitialState:
case IterativeParsingElementDelimiterState: RAPIDJSON_PARSE_ERROR(kParseErrorValueInvalid, is.Tell()); return;
default: RAPIDJSON_ASSERT(src == IterativeParsingElementState); RAPIDJSON_PARSE_ERROR(kParseErrorArrayMissCommaOrSquareBracket, is.Tell()); return;
}
}
RAPIDJSON_FORCEINLINE bool IsIterativeParsingDelimiterState(IterativeParsingState s) {
return s >= IterativeParsingElementDelimiterState;
}
RAPIDJSON_FORCEINLINE bool IsIterativeParsingCompleteState(IterativeParsingState s) {
return s <= IterativeParsingErrorState;
}
template <unsigned parseFlags, typename InputStream, typename Handler>
ParseResult IterativeParse(InputStream& is, Handler& handler) {
parseResult_.Clear();
ClearStackOnExit scope(*this);
IterativeParsingState state = IterativeParsingStartState;
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_);
while (is.Peek() != '\0') {
Token t = Tokenize(is.Peek());
IterativeParsingState n = Predict(state, t);
IterativeParsingState d = Transit<parseFlags>(state, t, n, is, handler);
if (d == IterativeParsingErrorState) {
HandleError(state, is);
break;
}
state = d;
// Do not further consume streams if a root JSON has been parsed.
if ((parseFlags & kParseStopWhenDoneFlag) && state == IterativeParsingFinishState)
break;
SkipWhitespaceAndComments<parseFlags>(is);
RAPIDJSON_PARSE_ERROR_EARLY_RETURN(parseResult_);
}
// Handle the end of file.
if (state != IterativeParsingFinishState)
HandleError(state, is);
return parseResult_;
}
static const size_t kDefaultStackCapacity = 256; //!< Default stack capacity in bytes for storing a single decoded string.
internal::Stack<StackAllocator> stack_; //!< A stack for storing decoded string temporarily during non-destructive parsing.
ParseResult parseResult_;
IterativeParsingState state_;
}; // class GenericReader
//! Reader with UTF8 encoding and default allocator.
typedef GenericReader<UTF8<>, UTF8<> > Reader;
RAPIDJSON_NAMESPACE_END
#ifdef __clang__
RAPIDJSON_DIAG_POP
#endif
#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif
#ifdef _MSC_VER
RAPIDJSON_DIAG_POP
#endif
#endif // RAPIDJSON_READER_H_
| {
"pile_set_name": "Github"
} |
# Using the Editor
One you have opened or started a new project, the editor is divided into 2 main sections. Each section has multiple tabs.
## Wizard Tab
The Wizard tab is only visible if you've started from a Wizard such as the Data Bars or Mail To wizards. This will not show up for templates (templates provide starter code and data, but no custom editing interface).
Additional details about what wizards and templates are available can be found in the [Wizards & Templates](../wizards/index.md) section.
## Data Tab
The Data tab allows you to edit the sample data used in the preview tab. You can create additional rows or columns as needed and edit any of their values. Additional details can be found in the [Sample Data](./sample-data.md) section.
## Tree Tab
The tree tab contains the Elements Tree that helps you see the structure of the generated HTML elements. It can be helpful for complicated formats to help distinguish between elements and operations. Additional details can be found in the [Elements Tree](./tree.md) section.
## Preview Tab
The preview provides a live as-you-type preview of the format applied against your sample data.
>Note that you should always test your final format against an actual modern listview. The preview tab is very accurate but it is possible that additional styles/features could be introduced by O365 that are not yet reflected in Column Formatter. For this reason, the preview tab should be considered a highly accurate approximation.
## Code Tab
The code tab provides a custom editor where you can type your format's .json code directly. You will receive validation, intellisense, and as-you-type live previewing of your format. There are several features and options for the editor and additional details can be found in the [Editing Code](./code-editor.md) section.
## Side by Side Tab
The side by side tab splits the interface to show both the preview tab and the code tab.
## Additional Features
### Supports full localization
All strings have been provided to the code using localization opening the possibility to easily translate the project into multiple languages.
### Utilizes Office UI Fabric
Office UI Fabric was used for colors, icons, and typography. Additionally, the UI Fabric React Components were used wherever possible to ensure that Column Formatter matches the look and feel of Office 365 as much as possible. This keeps the experience from being jarring to end users, but also builds on knowledge they've already gained by using the rest of the suite.
The theme colors were also used as much as possible to ensure that Column Formatter will match your site regardless of what theme you choose.
### Contextual Awareness
Column Formatter is aware when it is running in a local workbench and automatically curtails those features that require a connected experience (O365 context) rather than throwing errors.
### Wizard / Templating system is setup to be extensible
Creating a new template is fairly simple just by implementing the necessary interface and registering the component. Wizards only require a few additional steps. This means that additional templates and wizards can be easily created as Column Formatting evolves.
## Related Items
- **[Properties](./properties.md)** - Overview of the property pane options
- **[Editing Code](./code-editor.md)** - Details of the Code editor and features
- **[Save Options](./saving.md)** - Overview of the various save options
- **[Sample Data](./sample-data.md)** - Overview of how to customize your sample data
- **[Elements Tree](./tree.md)** - Overview of what the Tree view provides
> Go [Home](../index.md)
 | {
"pile_set_name": "Github"
} |
<doxygenlayout version="1.0">
<!-- Navigation index tabs for HTML output -->
<navindex>
<tab type="mainpage" visible="yes" title="libopencm3"/>
<tab type="pages" visible="yes" title="General Information" intro=""/>
<tab type="user" visible="yes" url="../../html/index.html" title="Back to Top" intro=""/>
<tab type="user" visible="yes" url="../../cm3/html/modules.html" title="CM3 Core" intro=""/>
<tab type="user" visible="yes" url="../../usb/html/modules.html" title="Generic USB" intro=""/>
<tab type="user" visible="yes" url="../../stm32f0/html/modules.html" title="STM32F0" intro=""/>
<tab type="user" visible="yes" url="../../stm32f1/html/modules.html" title="STM32F1" intro=""/>
<tab type="user" visible="yes" url="../../stm32f2/html/modules.html" title="STM32F2" intro=""/>
<tab type="user" visible="yes" url="../../stm32f3/html/modules.html" title="STM32F3" intro=""/>
<tab type="user" visible="yes" url="../../stm32f4/html/modules.html" title="STM32F4" intro=""/>
<tab type="user" visible="yes" url="../../stm32l1/html/modules.html" title="STM32L1" intro=""/>
<tab type="user" visible="yes" url="../../lm3s/html/modules.html" title="LM3S" intro=""/>
<tab type="user" visible="yes" url="../../lm4f/html/modules.html" title="LM4F" intro=""/>
<tab type="user" visible="yes" url="../../lpc13xx/html/modules.html" title="LPC13" intro=""/>
<tab type="user" visible="yes" url="../../lpc17xx/html/modules.html" title="LPC17" intro=""/>
<tab type="user" visible="yes" url="../../lpc43xx/html/modules.html" title="LPC43" intro=""/>
<tab type="user" visible="yes" url="../../efm32g/html/modules.html" title="EFM32 Gecko" intro=""/>
<tab type="user" visible="yes" url="../../efm32gg/html/modules.html" title="EFM32 Giant Gecko" intro=""/>
<tab type="modules" visible="yes" title="EFM32 Leopard Gecko" intro=""/>
<tab type="user" visible="yes" url="../../efm32tg/html/modules.html" title="EFM32 Tiny Gecko" intro=""/>
<tab type="namespaces" visible="yes" title="">
<tab type="namespaces" visible="yes" title="" intro=""/>
<tab type="namespacemembers" visible="yes" title="" intro=""/>
</tab>
<tab type="classes" visible="yes" title="">
<tab type="classes" visible="yes" title="" intro=""/>
<tab type="classindex" visible="$ALPHABETICAL_INDEX" title=""/>
<tab type="hierarchy" visible="yes" title="" intro=""/>
<tab type="classmembers" visible="yes" title="" intro=""/>
</tab>
<tab type="files" visible="yes" title="">
<tab type="files" visible="yes" title="" intro=""/>
<tab type="globals" visible="yes" title="" intro=""/>
</tab>
<tab type="examples" visible="yes" title="" intro=""/>
</navindex>
<!-- Layout definition for a class page -->
<class>
<briefdescription visible="yes"/>
<includes visible="$SHOW_INCLUDE_FILES"/>
<inheritancegraph visible="$CLASS_GRAPH"/>
<collaborationgraph visible="$COLLABORATION_GRAPH"/>
<allmemberslink visible="yes"/>
<memberdecl>
<nestedclasses visible="yes" title=""/>
<publictypes title=""/>
<publicslots title=""/>
<signals title=""/>
<publicmethods title=""/>
<publicstaticmethods title=""/>
<publicattributes title=""/>
<publicstaticattributes title=""/>
<protectedtypes title=""/>
<protectedslots title=""/>
<protectedmethods title=""/>
<protectedstaticmethods title=""/>
<protectedattributes title=""/>
<protectedstaticattributes title=""/>
<packagetypes title=""/>
<packagemethods title=""/>
<packagestaticmethods title=""/>
<packageattributes title=""/>
<packagestaticattributes title=""/>
<properties title=""/>
<events title=""/>
<privatetypes title=""/>
<privateslots title=""/>
<privatemethods title=""/>
<privatestaticmethods title=""/>
<privateattributes title=""/>
<privatestaticattributes title=""/>
<friends title=""/>
<related title="" subtitle=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
<memberdef>
<typedefs title=""/>
<enums title=""/>
<constructors title=""/>
<functions title=""/>
<related title=""/>
<variables title=""/>
<properties title=""/>
<events title=""/>
</memberdef>
<usedfiles visible="$SHOW_USED_FILES"/>
<authorsection visible="yes"/>
</class>
<!-- Layout definition for a namespace page -->
<namespace>
<briefdescription visible="yes"/>
<memberdecl>
<nestednamespaces visible="yes" title=""/>
<classes visible="yes" title=""/>
<typedefs title=""/>
<enums title=""/>
<functions title=""/>
<variables title=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
<memberdef>
<typedefs title=""/>
<enums title=""/>
<functions title=""/>
<variables title=""/>
</memberdef>
<authorsection visible="yes"/>
</namespace>
<!-- Layout definition for a file page -->
<file>
<briefdescription visible="yes"/>
<includes visible="$SHOW_INCLUDE_FILES"/>
<includegraph visible="$INCLUDE_GRAPH"/>
<includedbygraph visible="$INCLUDED_BY_GRAPH"/>
<sourcelink visible="yes"/>
<memberdecl>
<classes visible="yes" title=""/>
<namespaces visible="yes" title=""/>
<defines title=""/>
<typedefs title=""/>
<enums title=""/>
<functions title=""/>
<variables title=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
<memberdef>
<defines title=""/>
<typedefs title=""/>
<enums title=""/>
<functions title=""/>
<variables title=""/>
</memberdef>
<authorsection/>
</file>
<!-- Layout definition for a group page -->
<group>
<briefdescription visible="yes"/>
<groupgraph visible="$GROUP_GRAPHS"/>
<memberdecl>
<classes visible="yes" title=""/>
<namespaces visible="yes" title=""/>
<dirs visible="yes" title=""/>
<nestedgroups visible="yes" title=""/>
<files visible="yes" title=""/>
<defines title=""/>
<typedefs title=""/>
<enums title=""/>
<enumvalues title=""/>
<functions title=""/>
<variables title=""/>
<signals title=""/>
<publicslots title=""/>
<protectedslots title=""/>
<privateslots title=""/>
<events title=""/>
<properties title=""/>
<friends title=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
<memberdef>
<pagedocs/>
<inlineclasses title=""/>
<defines title=""/>
<typedefs title=""/>
<enums title=""/>
<enumvalues title=""/>
<functions title=""/>
<variables title=""/>
<signals title=""/>
<publicslots title=""/>
<protectedslots title=""/>
<privateslots title=""/>
<events title=""/>
<properties title=""/>
<friends title=""/>
</memberdef>
<authorsection visible="yes"/>
</group>
<!-- Layout definition for a directory page -->
<directory>
<briefdescription visible="yes"/>
<directorygraph visible="yes"/>
<memberdecl>
<dirs visible="yes"/>
<files visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
</directory>
</doxygenlayout>
| {
"pile_set_name": "Github"
} |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to 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_GEOMETRY_STRATEGIES_WITHIN_HPP
#define BOOST_GEOMETRY_STRATEGIES_WITHIN_HPP
#include <boost/mpl/assert.hpp>
namespace boost { namespace geometry
{
namespace strategy { namespace within
{
namespace services
{
/*!
\brief Traits class binding a within determination strategy to a coordinate system
\ingroup within
\tparam TagContained tag (possibly casted) of point-type
\tparam TagContained tag (possibly casted) of (possibly) containing type
\tparam CsTagContained tag of coordinate system of point-type
\tparam CsTagContaining tag of coordinate system of (possibly) containing type
\tparam Geometry geometry-type of input (often point, or box)
\tparam GeometryContaining geometry-type of input (possibly) containing type
*/
template
<
typename TagContained,
typename TagContaining,
typename CastedTagContained,
typename CastedTagContaining,
typename CsTagContained,
typename CsTagContaining,
typename GeometryContained,
typename GeometryContaining
>
struct default_strategy
{
BOOST_MPL_ASSERT_MSG
(
false, NOT_IMPLEMENTED_FOR_THESE_TYPES
, (types<GeometryContained, GeometryContaining>)
);
};
} // namespace services
}} // namespace strategy::within
}} // namespace boost::geometry
#endif // BOOST_GEOMETRY_STRATEGIES_WITHIN_HPP
| {
"pile_set_name": "Github"
} |
import pypff
from web.common import Extension
from web.database import Database
class PSTViewer(Extension):
# Paths should be relative to the extensions folder
extension_type = 'filedetails'
extension_name = 'PSTViewer'
def recursive_walk_folders(self, node, path):
if node.get_display_name():
node_path = path + u"/" + unicode(node.get_display_name())
else:
node_path = path
for i in range(0, node.get_number_of_sub_messages()):
try:
msg = node.get_sub_message(i)
msg_dict = {
'delivery_time': msg.delivery_time,
'display_name': msg.display_name,
'att_count': msg.number_of_attachments,
'sender_name': msg.sender_name,
'subject': msg.subject,
'plain_body': msg.plain_text_body,
'html_body': msg.html_body,
'headers': msg.transport_headers,
'rtf_body': msg.rtf_body,
'conversation_topic': msg.conversation_topic,
'creation_time': msg.creation_time
}
if node.get_display_name() in self.email_dict:
self.email_dict[node.get_display_name()].append(msg_dict)
else:
self.email_dict[node.get_display_name()] = [msg_dict]
except Exception as e:
print "Error: ", e
for i in range(0, node.get_number_of_sub_folders()):
folder = node.get_sub_folder(i)
folder_name = folder.get_display_name()
self.recursive_walk_folders(node.get_sub_folder(i), node_path)
def run(self):
db = Database()
# https://github.com/williballenthin/python-registry
file_id = self.request.POST['file_id']
pst_file = db.get_filebyid(file_id)
if not pst_file:
raise IOError("File not found in DB")
try:
self.pst = pypff.file()
self.pst.open_file_object(pst_file)
except Exception as e:
raise
base_path = u""
root_node = self.pst.get_root_folder()
self.email_dict = {}
self.recursive_walk_folders(root_node, base_path)
# Store in DB Now
store_data = {'file_id': file_id, 'pst': self.email_dict}
db.create_datastore(store_data)
self.render_type = 'file'
self.render_data = {'PSTViewer': {'email_dict': self.email_dict, 'file_id': file_id}}
def display(self):
db = Database()
file_id = self.request.POST['file_id']
file_datastore = db.search_datastore({'file_id': file_id})
pst_results = None
for row in file_datastore:
if 'pst' in row:
pst_results = row['pst']
self.render_data = {'PSTViewer': {'email_dict': pst_results, 'file_id': file_id}}
| {
"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.dromara.soul.plugin.api;
import org.apache.commons.lang3.tuple.Pair;
import org.springframework.web.server.ServerWebExchange;
/**
* The interface Sign service.
*
* @author xiaoyu
*/
public interface SignService {
/**
* Sign verify pair.
* @param exchange the exchange
* @return the pair
*/
Pair<Boolean, String> signVerify(ServerWebExchange exchange);
}
| {
"pile_set_name": "Github"
} |
/* The contents of this file are subject to the Netscape Public
* License Version 1.1 (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.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code, released March
* 31, 1998.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
*/
/**
File Name: 11.6.1-3.js
ECMA Section: 11.6.1 The addition operator ( + )
Description:
The addition operator either performs string concatenation or numeric
addition.
The production AdditiveExpression : AdditiveExpression + MultiplicativeExpression
is evaluated as follows:
1. Evaluate AdditiveExpression.
2. Call GetValue(Result(1)).
3. Evaluate MultiplicativeExpression.
4. Call GetValue(Result(3)).
5. Call ToPrimitive(Result(2)).
6. Call ToPrimitive(Result(4)).
7. If Type(Result(5)) is String or Type(Result(6)) is String, go to step 12.
(Note that this step differs from step 3 in the algorithm for comparison
for the relational operators in using or instead of and.)
8. Call ToNumber(Result(5)).
9. Call ToNumber(Result(6)).
10. Apply the addition operation to Result(8) and Result(9). See the discussion below (11.6.3).
11. Return Result(10).
12. Call ToString(Result(5)).
13. Call ToString(Result(6)).
14. Concatenate Result(12) followed by Result(13).
15. Return Result(14).
Note that no hint is provided in the calls to ToPrimitive in steps 5 and 6.
All native ECMAScript objects except Date objects handle the absence of a
hint as if the hint Number were given; Date objects handle the absence of a
hint as if the hint String were given. Host objects may handle the absence
of a hint in some other manner.
This test does only covers cases where the Additive or Mulplicative expression
is a Date.
Author: [email protected]
Date: 12 november 1997
*/
var SECTION = "11.6.1-3";
var VERSION = "ECMA_1";
startTest();
var testcases = getTestCases();
writeHeaderToLog( SECTION + " The Addition operator ( + )");
test();
function test() {
for ( tc=0; tc < testcases.length; tc++ ) {
testcases[tc].passed = writeTestCaseResult(
testcases[tc].expect,
testcases[tc].actual,
testcases[tc].description +" = "+
testcases[tc].actual );
testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value ";
}
stopTest();
return ( testcases );
}
function getTestCases() {
var array = new Array();
var item = 0;
// tests for boolean primitive, boolean object, Object object, a "MyObject" whose value is
// a boolean primitive and a boolean object, and "MyValuelessObject", where the value is
// set in the object's prototype, not the object itself.
var DATE1 = new Date();
array[item++] = new TestCase( SECTION,
"var DATE1 = new Date(); DATE1 + DATE1",
DATE1.toString() + DATE1.toString(),
DATE1 + DATE1 );
array[item++] = new TestCase( SECTION,
"var DATE1 = new Date(); DATE1 + 0",
DATE1.toString() + 0,
DATE1 + 0 );
array[item++] = new TestCase( SECTION,
"var DATE1 = new Date(); DATE1 + new Number(0)",
DATE1.toString() + 0,
DATE1 + new Number(0) );
array[item++] = new TestCase( SECTION,
"var DATE1 = new Date(); DATE1 + true",
DATE1.toString() + "true",
DATE1 + true );
array[item++] = new TestCase( SECTION,
"var DATE1 = new Date(); DATE1 + new Boolean(true)",
DATE1.toString() + "true",
DATE1 + new Boolean(true) );
array[item++] = new TestCase( SECTION,
"var DATE1 = new Date(); DATE1 + new Boolean(true)",
DATE1.toString() + "true",
DATE1 + new Boolean(true) );
var MYOB1 = new MyObject( DATE1 );
var MYOB2 = new MyValuelessObject( DATE1 );
var MYOB3 = new MyProtolessObject( DATE1 );
var MYOB4 = new MyProtoValuelessObject( DATE1 );
array[item++] = new TestCase( SECTION,
"MYOB1 = new MyObject(DATE1); MYOB1 + new Number(1)",
"[object Object]1",
MYOB1 + new Number(1) );
array[item++] = new TestCase( SECTION,
"MYOB1 = new MyObject(DATE1); MYOB1 + 1",
"[object Object]1",
MYOB1 + 1 );
array[item++] = new TestCase( SECTION,
"MYOB2 = new MyValuelessObject(DATE1); MYOB3 + 'string'",
DATE1.toString() + "string",
MYOB2 + 'string' );
array[item++] = new TestCase( SECTION,
"MYOB2 = new MyValuelessObject(DATE1); MYOB3 + new String('string')",
DATE1.toString() + "string",
MYOB2 + new String('string') );
/*
array[item++] = new TestCase( SECTION,
"MYOB3 = new MyProtolessObject(DATE1); MYOB3 + new Boolean(true)",
DATE1.toString() + "true",
MYOB3 + new Boolean(true) );
*/
array[item++] = new TestCase( SECTION,
"MYOB1 = new MyObject(DATE1); MYOB1 + true",
"[object Object]true",
MYOB1 + true );
return ( array );
}
function MyProtoValuelessObject() {
this.valueOf = new Function ( "" );
this.__proto__ = null;
}
function MyProtolessObject( value ) {
this.valueOf = new Function( "return this.value" );
this.__proto__ = null;
this.value = value;
}
function MyValuelessObject(value) {
this.__proto__ = new MyPrototypeObject(value);
}
function MyPrototypeObject(value) {
this.valueOf = new Function( "return this.value;" );
this.toString = new Function( "return (this.value + '');" );
this.value = value;
}
function MyObject( value ) {
this.valueOf = new Function( "return this.value" );
this.value = value;
}
| {
"pile_set_name": "Github"
} |
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLContextEventInit)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `WebGlContextEventInit` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"]
pub type WebGlContextEventInit;
}
impl WebGlContextEventInit {
#[doc = "Construct a new `WebGlContextEventInit`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[doc = "Change the `bubbles` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"]
pub fn bubbles(&mut self, val: bool) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
&JsValue::from("bubbles"),
&JsValue::from(val),
);
debug_assert!(
r.is_ok(),
"setting properties should never fail on our dictionary objects"
);
let _ = r;
self
}
#[doc = "Change the `cancelable` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"]
pub fn cancelable(&mut self, val: bool) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
&JsValue::from("cancelable"),
&JsValue::from(val),
);
debug_assert!(
r.is_ok(),
"setting properties should never fail on our dictionary objects"
);
let _ = r;
self
}
#[doc = "Change the `composed` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"]
pub fn composed(&mut self, val: bool) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
&JsValue::from("composed"),
&JsValue::from(val),
);
debug_assert!(
r.is_ok(),
"setting properties should never fail on our dictionary objects"
);
let _ = r;
self
}
#[doc = "Change the `statusMessage` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"]
pub fn status_message(&mut self, val: &str) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
&JsValue::from("statusMessage"),
&JsValue::from(val),
);
debug_assert!(
r.is_ok(),
"setting properties should never fail on our dictionary objects"
);
let _ = r;
self
}
}
| {
"pile_set_name": "Github"
} |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/sagemaker/SageMakerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sagemaker/model/HyperParameterTuningJobConfig.h>
#include <aws/sagemaker/model/HyperParameterTrainingJobDefinition.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sagemaker/model/HyperParameterTuningJobWarmStartConfig.h>
#include <aws/sagemaker/model/Tag.h>
#include <utility>
namespace Aws
{
namespace SageMaker
{
namespace Model
{
/**
*/
class AWS_SAGEMAKER_API CreateHyperParameterTuningJobRequest : public SageMakerRequest
{
public:
CreateHyperParameterTuningJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateHyperParameterTuningJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the tuning job. This name is the prefix for the names of all
* training jobs that this tuning job launches. The name must be unique within the
* same AWS account and AWS Region. The name must have { } to { } characters. Valid
* characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case
* sensitive.</p>
*/
inline const Aws::String& GetHyperParameterTuningJobName() const{ return m_hyperParameterTuningJobName; }
/**
* <p>The name of the tuning job. This name is the prefix for the names of all
* training jobs that this tuning job launches. The name must be unique within the
* same AWS account and AWS Region. The name must have { } to { } characters. Valid
* characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case
* sensitive.</p>
*/
inline bool HyperParameterTuningJobNameHasBeenSet() const { return m_hyperParameterTuningJobNameHasBeenSet; }
/**
* <p>The name of the tuning job. This name is the prefix for the names of all
* training jobs that this tuning job launches. The name must be unique within the
* same AWS account and AWS Region. The name must have { } to { } characters. Valid
* characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case
* sensitive.</p>
*/
inline void SetHyperParameterTuningJobName(const Aws::String& value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName = value; }
/**
* <p>The name of the tuning job. This name is the prefix for the names of all
* training jobs that this tuning job launches. The name must be unique within the
* same AWS account and AWS Region. The name must have { } to { } characters. Valid
* characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case
* sensitive.</p>
*/
inline void SetHyperParameterTuningJobName(Aws::String&& value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName = std::move(value); }
/**
* <p>The name of the tuning job. This name is the prefix for the names of all
* training jobs that this tuning job launches. The name must be unique within the
* same AWS account and AWS Region. The name must have { } to { } characters. Valid
* characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case
* sensitive.</p>
*/
inline void SetHyperParameterTuningJobName(const char* value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName.assign(value); }
/**
* <p>The name of the tuning job. This name is the prefix for the names of all
* training jobs that this tuning job launches. The name must be unique within the
* same AWS account and AWS Region. The name must have { } to { } characters. Valid
* characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case
* sensitive.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobName(const Aws::String& value) { SetHyperParameterTuningJobName(value); return *this;}
/**
* <p>The name of the tuning job. This name is the prefix for the names of all
* training jobs that this tuning job launches. The name must be unique within the
* same AWS account and AWS Region. The name must have { } to { } characters. Valid
* characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case
* sensitive.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobName(Aws::String&& value) { SetHyperParameterTuningJobName(std::move(value)); return *this;}
/**
* <p>The name of the tuning job. This name is the prefix for the names of all
* training jobs that this tuning job launches. The name must be unique within the
* same AWS account and AWS Region. The name must have { } to { } characters. Valid
* characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case
* sensitive.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobName(const char* value) { SetHyperParameterTuningJobName(value); return *this;}
/**
* <p>The <a>HyperParameterTuningJobConfig</a> object that describes the tuning
* job, including the search strategy, the objective metric used to evaluate
* training jobs, ranges of parameters to search, and resource limits for the
* tuning job. For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html">How
* Hyperparameter Tuning Works</a>.</p>
*/
inline const HyperParameterTuningJobConfig& GetHyperParameterTuningJobConfig() const{ return m_hyperParameterTuningJobConfig; }
/**
* <p>The <a>HyperParameterTuningJobConfig</a> object that describes the tuning
* job, including the search strategy, the objective metric used to evaluate
* training jobs, ranges of parameters to search, and resource limits for the
* tuning job. For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html">How
* Hyperparameter Tuning Works</a>.</p>
*/
inline bool HyperParameterTuningJobConfigHasBeenSet() const { return m_hyperParameterTuningJobConfigHasBeenSet; }
/**
* <p>The <a>HyperParameterTuningJobConfig</a> object that describes the tuning
* job, including the search strategy, the objective metric used to evaluate
* training jobs, ranges of parameters to search, and resource limits for the
* tuning job. For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html">How
* Hyperparameter Tuning Works</a>.</p>
*/
inline void SetHyperParameterTuningJobConfig(const HyperParameterTuningJobConfig& value) { m_hyperParameterTuningJobConfigHasBeenSet = true; m_hyperParameterTuningJobConfig = value; }
/**
* <p>The <a>HyperParameterTuningJobConfig</a> object that describes the tuning
* job, including the search strategy, the objective metric used to evaluate
* training jobs, ranges of parameters to search, and resource limits for the
* tuning job. For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html">How
* Hyperparameter Tuning Works</a>.</p>
*/
inline void SetHyperParameterTuningJobConfig(HyperParameterTuningJobConfig&& value) { m_hyperParameterTuningJobConfigHasBeenSet = true; m_hyperParameterTuningJobConfig = std::move(value); }
/**
* <p>The <a>HyperParameterTuningJobConfig</a> object that describes the tuning
* job, including the search strategy, the objective metric used to evaluate
* training jobs, ranges of parameters to search, and resource limits for the
* tuning job. For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html">How
* Hyperparameter Tuning Works</a>.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobConfig(const HyperParameterTuningJobConfig& value) { SetHyperParameterTuningJobConfig(value); return *this;}
/**
* <p>The <a>HyperParameterTuningJobConfig</a> object that describes the tuning
* job, including the search strategy, the objective metric used to evaluate
* training jobs, ranges of parameters to search, and resource limits for the
* tuning job. For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html">How
* Hyperparameter Tuning Works</a>.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobConfig(HyperParameterTuningJobConfig&& value) { SetHyperParameterTuningJobConfig(std::move(value)); return *this;}
/**
* <p>The <a>HyperParameterTrainingJobDefinition</a> object that describes the
* training jobs that this tuning job launches, including static hyperparameters,
* input data configuration, output data configuration, resource configuration, and
* stopping condition.</p>
*/
inline const HyperParameterTrainingJobDefinition& GetTrainingJobDefinition() const{ return m_trainingJobDefinition; }
/**
* <p>The <a>HyperParameterTrainingJobDefinition</a> object that describes the
* training jobs that this tuning job launches, including static hyperparameters,
* input data configuration, output data configuration, resource configuration, and
* stopping condition.</p>
*/
inline bool TrainingJobDefinitionHasBeenSet() const { return m_trainingJobDefinitionHasBeenSet; }
/**
* <p>The <a>HyperParameterTrainingJobDefinition</a> object that describes the
* training jobs that this tuning job launches, including static hyperparameters,
* input data configuration, output data configuration, resource configuration, and
* stopping condition.</p>
*/
inline void SetTrainingJobDefinition(const HyperParameterTrainingJobDefinition& value) { m_trainingJobDefinitionHasBeenSet = true; m_trainingJobDefinition = value; }
/**
* <p>The <a>HyperParameterTrainingJobDefinition</a> object that describes the
* training jobs that this tuning job launches, including static hyperparameters,
* input data configuration, output data configuration, resource configuration, and
* stopping condition.</p>
*/
inline void SetTrainingJobDefinition(HyperParameterTrainingJobDefinition&& value) { m_trainingJobDefinitionHasBeenSet = true; m_trainingJobDefinition = std::move(value); }
/**
* <p>The <a>HyperParameterTrainingJobDefinition</a> object that describes the
* training jobs that this tuning job launches, including static hyperparameters,
* input data configuration, output data configuration, resource configuration, and
* stopping condition.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithTrainingJobDefinition(const HyperParameterTrainingJobDefinition& value) { SetTrainingJobDefinition(value); return *this;}
/**
* <p>The <a>HyperParameterTrainingJobDefinition</a> object that describes the
* training jobs that this tuning job launches, including static hyperparameters,
* input data configuration, output data configuration, resource configuration, and
* stopping condition.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithTrainingJobDefinition(HyperParameterTrainingJobDefinition&& value) { SetTrainingJobDefinition(std::move(value)); return *this;}
/**
* <p>A list of the <a>HyperParameterTrainingJobDefinition</a> objects launched for
* this tuning job.</p>
*/
inline const Aws::Vector<HyperParameterTrainingJobDefinition>& GetTrainingJobDefinitions() const{ return m_trainingJobDefinitions; }
/**
* <p>A list of the <a>HyperParameterTrainingJobDefinition</a> objects launched for
* this tuning job.</p>
*/
inline bool TrainingJobDefinitionsHasBeenSet() const { return m_trainingJobDefinitionsHasBeenSet; }
/**
* <p>A list of the <a>HyperParameterTrainingJobDefinition</a> objects launched for
* this tuning job.</p>
*/
inline void SetTrainingJobDefinitions(const Aws::Vector<HyperParameterTrainingJobDefinition>& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions = value; }
/**
* <p>A list of the <a>HyperParameterTrainingJobDefinition</a> objects launched for
* this tuning job.</p>
*/
inline void SetTrainingJobDefinitions(Aws::Vector<HyperParameterTrainingJobDefinition>&& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions = std::move(value); }
/**
* <p>A list of the <a>HyperParameterTrainingJobDefinition</a> objects launched for
* this tuning job.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithTrainingJobDefinitions(const Aws::Vector<HyperParameterTrainingJobDefinition>& value) { SetTrainingJobDefinitions(value); return *this;}
/**
* <p>A list of the <a>HyperParameterTrainingJobDefinition</a> objects launched for
* this tuning job.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithTrainingJobDefinitions(Aws::Vector<HyperParameterTrainingJobDefinition>&& value) { SetTrainingJobDefinitions(std::move(value)); return *this;}
/**
* <p>A list of the <a>HyperParameterTrainingJobDefinition</a> objects launched for
* this tuning job.</p>
*/
inline CreateHyperParameterTuningJobRequest& AddTrainingJobDefinitions(const HyperParameterTrainingJobDefinition& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions.push_back(value); return *this; }
/**
* <p>A list of the <a>HyperParameterTrainingJobDefinition</a> objects launched for
* this tuning job.</p>
*/
inline CreateHyperParameterTuningJobRequest& AddTrainingJobDefinitions(HyperParameterTrainingJobDefinition&& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the configuration for starting the hyperparameter tuning job using
* one or more previous tuning jobs as a starting point. The results of previous
* tuning jobs are used to inform which combinations of hyperparameters to search
* over in the new tuning job.</p> <p>All training jobs launched by the new
* hyperparameter tuning job are evaluated by using the objective metric. If you
* specify <code>IDENTICAL_DATA_AND_ALGORITHM</code> as the
* <code>WarmStartType</code> value for the warm start configuration, the training
* job that performs the best in the new tuning job is compared to the best
* training jobs from the parent tuning jobs. From these, the training job that
* performs the best as measured by the objective metric is returned as the overall
* best training job.</p> <p>All training jobs launched by parent
* hyperparameter tuning jobs and the new hyperparameter tuning jobs count against
* the limit of training jobs for the tuning job.</p>
*/
inline const HyperParameterTuningJobWarmStartConfig& GetWarmStartConfig() const{ return m_warmStartConfig; }
/**
* <p>Specifies the configuration for starting the hyperparameter tuning job using
* one or more previous tuning jobs as a starting point. The results of previous
* tuning jobs are used to inform which combinations of hyperparameters to search
* over in the new tuning job.</p> <p>All training jobs launched by the new
* hyperparameter tuning job are evaluated by using the objective metric. If you
* specify <code>IDENTICAL_DATA_AND_ALGORITHM</code> as the
* <code>WarmStartType</code> value for the warm start configuration, the training
* job that performs the best in the new tuning job is compared to the best
* training jobs from the parent tuning jobs. From these, the training job that
* performs the best as measured by the objective metric is returned as the overall
* best training job.</p> <p>All training jobs launched by parent
* hyperparameter tuning jobs and the new hyperparameter tuning jobs count against
* the limit of training jobs for the tuning job.</p>
*/
inline bool WarmStartConfigHasBeenSet() const { return m_warmStartConfigHasBeenSet; }
/**
* <p>Specifies the configuration for starting the hyperparameter tuning job using
* one or more previous tuning jobs as a starting point. The results of previous
* tuning jobs are used to inform which combinations of hyperparameters to search
* over in the new tuning job.</p> <p>All training jobs launched by the new
* hyperparameter tuning job are evaluated by using the objective metric. If you
* specify <code>IDENTICAL_DATA_AND_ALGORITHM</code> as the
* <code>WarmStartType</code> value for the warm start configuration, the training
* job that performs the best in the new tuning job is compared to the best
* training jobs from the parent tuning jobs. From these, the training job that
* performs the best as measured by the objective metric is returned as the overall
* best training job.</p> <p>All training jobs launched by parent
* hyperparameter tuning jobs and the new hyperparameter tuning jobs count against
* the limit of training jobs for the tuning job.</p>
*/
inline void SetWarmStartConfig(const HyperParameterTuningJobWarmStartConfig& value) { m_warmStartConfigHasBeenSet = true; m_warmStartConfig = value; }
/**
* <p>Specifies the configuration for starting the hyperparameter tuning job using
* one or more previous tuning jobs as a starting point. The results of previous
* tuning jobs are used to inform which combinations of hyperparameters to search
* over in the new tuning job.</p> <p>All training jobs launched by the new
* hyperparameter tuning job are evaluated by using the objective metric. If you
* specify <code>IDENTICAL_DATA_AND_ALGORITHM</code> as the
* <code>WarmStartType</code> value for the warm start configuration, the training
* job that performs the best in the new tuning job is compared to the best
* training jobs from the parent tuning jobs. From these, the training job that
* performs the best as measured by the objective metric is returned as the overall
* best training job.</p> <p>All training jobs launched by parent
* hyperparameter tuning jobs and the new hyperparameter tuning jobs count against
* the limit of training jobs for the tuning job.</p>
*/
inline void SetWarmStartConfig(HyperParameterTuningJobWarmStartConfig&& value) { m_warmStartConfigHasBeenSet = true; m_warmStartConfig = std::move(value); }
/**
* <p>Specifies the configuration for starting the hyperparameter tuning job using
* one or more previous tuning jobs as a starting point. The results of previous
* tuning jobs are used to inform which combinations of hyperparameters to search
* over in the new tuning job.</p> <p>All training jobs launched by the new
* hyperparameter tuning job are evaluated by using the objective metric. If you
* specify <code>IDENTICAL_DATA_AND_ALGORITHM</code> as the
* <code>WarmStartType</code> value for the warm start configuration, the training
* job that performs the best in the new tuning job is compared to the best
* training jobs from the parent tuning jobs. From these, the training job that
* performs the best as measured by the objective metric is returned as the overall
* best training job.</p> <p>All training jobs launched by parent
* hyperparameter tuning jobs and the new hyperparameter tuning jobs count against
* the limit of training jobs for the tuning job.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithWarmStartConfig(const HyperParameterTuningJobWarmStartConfig& value) { SetWarmStartConfig(value); return *this;}
/**
* <p>Specifies the configuration for starting the hyperparameter tuning job using
* one or more previous tuning jobs as a starting point. The results of previous
* tuning jobs are used to inform which combinations of hyperparameters to search
* over in the new tuning job.</p> <p>All training jobs launched by the new
* hyperparameter tuning job are evaluated by using the objective metric. If you
* specify <code>IDENTICAL_DATA_AND_ALGORITHM</code> as the
* <code>WarmStartType</code> value for the warm start configuration, the training
* job that performs the best in the new tuning job is compared to the best
* training jobs from the parent tuning jobs. From these, the training job that
* performs the best as measured by the objective metric is returned as the overall
* best training job.</p> <p>All training jobs launched by parent
* hyperparameter tuning jobs and the new hyperparameter tuning jobs count against
* the limit of training jobs for the tuning job.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithWarmStartConfig(HyperParameterTuningJobWarmStartConfig&& value) { SetWarmStartConfig(std::move(value)); return *this;}
/**
* <p>An array of key-value pairs. You can use tags to categorize your AWS
* resources in different ways, for example, by purpose, owner, or environment. For
* more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p> <p>Tags that you specify for the tuning job are also
* added to all training jobs that the tuning job launches.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>An array of key-value pairs. You can use tags to categorize your AWS
* resources in different ways, for example, by purpose, owner, or environment. For
* more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p> <p>Tags that you specify for the tuning job are also
* added to all training jobs that the tuning job launches.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>An array of key-value pairs. You can use tags to categorize your AWS
* resources in different ways, for example, by purpose, owner, or environment. For
* more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p> <p>Tags that you specify for the tuning job are also
* added to all training jobs that the tuning job launches.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>An array of key-value pairs. You can use tags to categorize your AWS
* resources in different ways, for example, by purpose, owner, or environment. For
* more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p> <p>Tags that you specify for the tuning job are also
* added to all training jobs that the tuning job launches.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>An array of key-value pairs. You can use tags to categorize your AWS
* resources in different ways, for example, by purpose, owner, or environment. For
* more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p> <p>Tags that you specify for the tuning job are also
* added to all training jobs that the tuning job launches.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>An array of key-value pairs. You can use tags to categorize your AWS
* resources in different ways, for example, by purpose, owner, or environment. For
* more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p> <p>Tags that you specify for the tuning job are also
* added to all training jobs that the tuning job launches.</p>
*/
inline CreateHyperParameterTuningJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>An array of key-value pairs. You can use tags to categorize your AWS
* resources in different ways, for example, by purpose, owner, or environment. For
* more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p> <p>Tags that you specify for the tuning job are also
* added to all training jobs that the tuning job launches.</p>
*/
inline CreateHyperParameterTuningJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>An array of key-value pairs. You can use tags to categorize your AWS
* resources in different ways, for example, by purpose, owner, or environment. For
* more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p> <p>Tags that you specify for the tuning job are also
* added to all training jobs that the tuning job launches.</p>
*/
inline CreateHyperParameterTuningJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_hyperParameterTuningJobName;
bool m_hyperParameterTuningJobNameHasBeenSet;
HyperParameterTuningJobConfig m_hyperParameterTuningJobConfig;
bool m_hyperParameterTuningJobConfigHasBeenSet;
HyperParameterTrainingJobDefinition m_trainingJobDefinition;
bool m_trainingJobDefinitionHasBeenSet;
Aws::Vector<HyperParameterTrainingJobDefinition> m_trainingJobDefinitions;
bool m_trainingJobDefinitionsHasBeenSet;
HyperParameterTuningJobWarmStartConfig m_warmStartConfig;
bool m_warmStartConfigHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace SageMaker
} // namespace Aws
| {
"pile_set_name": "Github"
} |
package im.actor.server.oauth
import com.typesafe.config.Config
sealed trait OAuth2Config {
def authUri: String
def tokenUri: String
def profileUri: String
def clientId: String
def clientSecret: String
}
case class OAuth2GoogleConfig(
authUri: String,
tokenUri: String,
profileUri: String,
clientId: String,
clientSecret: String,
scope: String
) extends OAuth2Config
object OAuth2GoogleConfig {
def load(config: Config): OAuth2GoogleConfig =
OAuth2GoogleConfig(
config.getString("auth-uri"),
config.getString("token-uri"),
config.getString("profile-uri"),
config.getString("client-id"),
config.getString("client-secret"),
config.getString("scope")
)
} | {
"pile_set_name": "Github"
} |
using NetworkSocket.Validation.Rules;
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace NetworkSocket.Validation
{
/// <summary>
/// 提供FluentApi扩展
/// </summary>
public static class FluentApiExtend
{
/// <summary>
/// 获取表达式的属性
/// </summary>
/// <typeparam name="T">模型类型</typeparam>
/// <typeparam name="TKey">属性类型</typeparam>
/// <param name="keySelector">属性选择</param>
/// <exception cref="ArgumentNullException"></exception>
/// <exception cref="ArgumentException"></exception>
/// <exception cref="NotSupportedException"></exception>
/// <returns></returns>
public static RuleProperty GetProperty<T, TKey>(Expression<Func<T, TKey>> keySelector)
{
if (keySelector == null)
{
throw new ArgumentNullException("keySelector");
}
var body = keySelector.Body as MemberExpression;
if (body == null)
{
throw new ArgumentException("表达式必须为MemberExpression ..", "keySelector");
}
if (body.Member.DeclaringType.IsAssignableFrom(typeof(T)) == false || body.Expression.NodeType != ExpressionType.Parameter)
{
throw new ArgumentException("无法解析的表达式 ..", "keySelector");
}
var propertyInfo = body.Member as PropertyInfo;
if (propertyInfo == null)
{
throw new ArgumentException("表达式选择的字段不是属性 ..", "keySelector");
}
var property = RuleProperty
.GetGetProperties(typeof(T))
.FirstOrDefault(item => item.Info == propertyInfo);
if (property == null)
{
throw new NotSupportedException(string.Format("属性{0}.{1}不支持验证 ..", typeof(T).Name, propertyInfo.Name));
}
return property;
}
/// <summary>
/// 要求必须输入
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <returns></returns>
public static FluentApi<T> Required<T, TKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector)
{
return fluent.SetRule(keySelector, new RequiredAttribute());
}
/// <summary>
/// 要求必须输入
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="errorMessage">错误提示消息</param>
/// <returns></returns>
public static FluentApi<T> Required<T, TKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, string errorMessage)
{
return fluent.SetRule(keySelector, new RequiredAttribute { ErrorMessage = errorMessage });
}
/// <summary>
/// 验证是邮箱格式
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <returns></returns>
public static FluentApi<T> Email<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector)
{
return fluent.SetRule(keySelector, new EmailAttribute());
}
/// <summary>
/// 验证是邮箱格式
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="errorMessage">错误提示消息</param>
/// <returns></returns>
public static FluentApi<T> Email<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, string errorMessage)
{
return fluent.SetRule(keySelector, new EmailAttribute { ErrorMessage = errorMessage });
}
/// <summary>
/// 验证是否和目标属性的值一致
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <typeparam name="TTargetKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="targetKeySelector">目标属性选择</param>
/// <returns></returns>
public static FluentApi<T> EqualTo<T, TKey, TTargetKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, Expression<Func<T, TTargetKey>> targetKeySelector)
{
var propertyName = FluentApiExtend.GetProperty(targetKeySelector).Name;
return fluent.SetRule(keySelector, new EqualToAttribute(propertyName));
}
/// <summary>
/// 验证是否和目标属性的值一致
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <typeparam name="TTargetKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="targetKeySelector">目标属性选择</param>
/// <param name="errorMessage">错误提示信息</param>
/// <returns></returns>
public static FluentApi<T> EqualTo<T, TKey, TTargetKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, Expression<Func<T, TTargetKey>> targetKeySelector, string errorMessage)
{
var propertyName = FluentApiExtend.GetProperty(targetKeySelector).Name;
return fluent.SetRule(keySelector, new EqualToAttribute(propertyName) { ErrorMessage = errorMessage });
}
/// <summary>
/// 验证输入的长度范围
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="maxLength">最大长度</param>
/// <returns></returns>
public static FluentApi<T> Length<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, int maxLength)
{
return fluent.SetRule(keySelector, new LengthAttribute(maxLength));
}
/// <summary>
/// 验证输入的长度范围
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="maxLength">最大长度</param>
/// <param name="errorMessage">错误提示信息</param>
/// <returns></returns>
public static FluentApi<T> Length<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, int maxLength, string errorMessage)
{
return fluent.SetRule(keySelector, new LengthAttribute(maxLength) { ErrorMessage = errorMessage });
}
/// <summary>
/// 验证输入的长度范围
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="maxLength">最大长度</param>
/// <param name="minValue">最小长度</param>
/// <returns></returns>
public static FluentApi<T> Length<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, int maxLength, int minValue)
{
return fluent.SetRule(keySelector, new LengthAttribute(maxLength) { MinimumLength = minValue });
}
/// <summary>
/// 验证输入的长度范围
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="maxLength">最大长度</param>
/// <param name="minValue">最小长度</param>
/// <param name="errorMessage">错误提示消息</param>
/// <returns></returns>
public static FluentApi<T> Length<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, int maxLength, int minValue, string errorMessage)
{
return fluent.SetRule(keySelector, new LengthAttribute(maxLength) { MinimumLength = minValue, ErrorMessage = errorMessage });
}
/// <summary>
/// 验证是否和正则表达式匹配
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="pattern">正则表达式</param>
/// <returns></returns>
public static FluentApi<T> Match<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, string pattern)
{
return fluent.SetRule(keySelector, new MatchAttribute(pattern));
}
/// <summary>
/// 验证是否和正则表达式匹配
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="pattern">正则表达式</param>
/// <param name="errorMessage">错误提示信息</param>
/// <returns></returns>
public static FluentApi<T> Match<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, string pattern, string errorMessage)
{
return fluent.SetRule(keySelector, new MatchAttribute(pattern) { ErrorMessage = errorMessage });
}
/// <summary>
/// 验证不要和目标属性的值一致
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <typeparam name="TTargetKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="targetKeySelector">目标属性选择</param>
/// <returns></returns>
public static FluentApi<T> NotEqualTo<T, TKey, TTargetKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, Expression<Func<T, TTargetKey>> targetKeySelector)
{
var propertyName = FluentApiExtend.GetProperty(targetKeySelector).Name;
return fluent.SetRule(keySelector, new NotEqualToAttribute(propertyName));
}
/// <summary>
/// 验证不要和目标属性的值一致
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <typeparam name="TTargetKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="targetKeySelector">目标属性选择</param>
/// <param name="errorMessage">错误提示信息</param>
/// <returns></returns>
public static FluentApi<T> NotEqualTo<T, TKey, TTargetKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, Expression<Func<T, TTargetKey>> targetKeySelector, string errorMessage)
{
var propertyName = FluentApiExtend.GetProperty(targetKeySelector).Name;
return fluent.SetRule(keySelector, new NotEqualToAttribute(propertyName) { ErrorMessage = errorMessage });
}
/// <summary>
/// 表示验证不要和正则表达式匹配
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="pattern">正则表达式</param>
/// <returns></returns>
public static FluentApi<T> NotMatch<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, string pattern)
{
return fluent.SetRule(keySelector, new NotMatchAttribute(pattern));
}
/// <summary>
/// 表示验证不要和正则表达式匹配
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="pattern">正则表达式</param>
/// <param name="errorMessage">错误提示信息</param>
/// <returns></returns>
public static FluentApi<T> NotMatch<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, string pattern, string errorMessage)
{
return fluent.SetRule(keySelector, new NotMatchAttribute(pattern) { ErrorMessage = errorMessage });
}
/// <summary>
/// 表示精度验证
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="min">最小精度</param>
/// <param name="max">最大精度</param>
/// <returns></returns>
public static FluentApi<T> Precision<T, TKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, int min, int max)
{
return fluent.SetRule(keySelector, new PrecisionAttribute(min, max));
}
/// <summary>
/// 表示精度验证
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="min">最小精度</param>
/// <param name="max">最大精度</param>
/// <param name="errorMessage">错误提示信息</param>
/// <returns></returns>
public static FluentApi<T> Precision<T, TKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, int min, int max, string errorMessage)
{
return fluent.SetRule(keySelector, new PrecisionAttribute(min, max) { ErrorMessage = errorMessage });
}
/// <summary>
/// 表示验值要在一定的区间中
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="minValue">最小值</param>
/// <param name="maxValue">最大值</param>
/// <returns></returns>
public static FluentApi<T> Range<T, TKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, int minValue, int maxValue)
{
return fluent.SetRule(keySelector, new RangeAttribute(minValue, maxValue));
}
/// <summary>
/// 表示验值要在一定的区间中
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="minValue">最小值</param>
/// <param name="maxValue">最大值</param>
/// <returns></returns>
public static FluentApi<T> Range<T, TKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, double minValue, double maxValue)
{
return fluent.SetRule(keySelector, new RangeAttribute(minValue, maxValue));
}
/// <summary>
/// 表示验值要在一定的区间中
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="minValue">最小值</param>
/// <param name="maxValue">最大值</param>
/// <param name="errorMessage">错误提示信息</param>
/// <returns></returns>
public static FluentApi<T> Range<T, TKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, int minValue, int maxValue, string errorMessage)
{
return fluent.SetRule(keySelector, new RangeAttribute(minValue, maxValue) { ErrorMessage = errorMessage });
}
/// <summary>
/// 表示验值要在一定的区间中
/// </summary>
/// <typeparam name="T"></typeparam>
/// <typeparam name="TKey"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="minValue">最小值</param>
/// <param name="maxValue">最大值</param>
/// <param name="errorMessage">错误提示信息</param>
/// <returns></returns>
public static FluentApi<T> Range<T, TKey>(this FluentApi<T> fluent, Expression<Func<T, TKey>> keySelector, double minValue, double maxValue, string errorMessage)
{
return fluent.SetRule(keySelector, new RangeAttribute(minValue, maxValue) { ErrorMessage = errorMessage });
}
/// <summary>
/// 表示验证是网络地址
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <returns></returns>
public static FluentApi<T> Url<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector)
{
return fluent.SetRule(keySelector, new UrlAttribute());
}
/// <summary>
/// 表示验证是网络地址
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="fluent"></param>
/// <param name="keySelector">属性选择</param>
/// <param name="errorMessage">错误提示信息</param>
/// <returns></returns>
public static FluentApi<T> Url<T>(this FluentApi<T> fluent, Expression<Func<T, string>> keySelector, string errorMessage)
{
return fluent.SetRule(keySelector, new UrlAttribute() { ErrorMessage = errorMessage });
}
}
}
| {
"pile_set_name": "Github"
} |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
// Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.10.23 at 08:50:01 AM PDT
//
package org.openpnp.model.eagle.xml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "hole")
public class Hole {
@XmlAttribute(name = "x", required = true)
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String x;
@XmlAttribute(name = "y", required = true)
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String y;
@XmlAttribute(name = "drill", required = true)
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String drill;
/**
* Gets the value of the x property.
*
* @return possible object is {@link String }
*
*/
public String getX() {
return x;
}
/**
* Sets the value of the x property.
*
* @param value allowed object is {@link String }
*
*/
public void setX(String value) {
this.x = value;
}
/**
* Gets the value of the y property.
*
* @return possible object is {@link String }
*
*/
public String getY() {
return y;
}
/**
* Sets the value of the y property.
*
* @param value allowed object is {@link String }
*
*/
public void setY(String value) {
this.y = value;
}
/**
* Gets the value of the drill property.
*
* @return possible object is {@link String }
*
*/
public String getDrill() {
return drill;
}
/**
* Sets the value of the drill property.
*
* @param value allowed object is {@link String }
*
*/
public void setDrill(String value) {
this.drill = value;
}
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 4903103
* @summary Can't compile subclasses of inner classes
*/
public class T4903103 {
private class InnerSuperclass extends T4903103 {}
private class InnerSubclass extends InnerSuperclass {}
public static void main(String[] args) {
new T4903103().new InnerSubclass();
}
}
| {
"pile_set_name": "Github"
} |
describe :date_new_bang, shared: true do
it "returns a new Date object set to Astronomical Julian Day 0 if no arguments passed" do
d = Date.send(@method)
d.ajd.should == 0
end
it "accepts astronomical julian day number, offset as a fraction of a day and returns a new Date object" do
d = Date.send(@method, 10, 0.5)
d.ajd.should == 10
d.jd.should == 11
end
end
| {
"pile_set_name": "Github"
} |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/ime/ime_window_view.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/views/ime/ime_window_frame_view.h"
#include "content/public/browser/web_contents.h"
#include "ui/gfx/image/image.h"
#include "ui/views/controls/webview/webview.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/widget/widget.h"
#if defined(OS_WIN)
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
#endif
namespace ui {
ImeNativeWindow* ImeWindow::CreateNativeWindow(ImeWindow* ime_window,
const gfx::Rect& bounds,
content::WebContents* contents) {
return new ImeWindowView(ime_window, bounds, contents);
}
ImeWindowView::ImeWindowView(ImeWindow* ime_window,
const gfx::Rect& bounds,
content::WebContents* contents)
: ime_window_(ime_window),
dragging_pointer_type_(PointerType::MOUSE),
dragging_state_(DragState::NO_DRAG),
window_(nullptr),
web_view_(nullptr) {
window_ = new views::Widget;
views::Widget::InitParams params(views::Widget::InitParams::TYPE_WINDOW);
params.delegate = this;
params.wants_mouse_events_when_inactive = true;
params.remove_standard_frame = false;
params.keep_on_top = true;
params.activatable = views::Widget::InitParams::ACTIVATABLE_NO;
params.visible_on_all_workspaces = false;
params.bounds = bounds;
window_->set_focus_on_creation(false);
window_->set_frame_type(views::Widget::FRAME_TYPE_FORCE_CUSTOM);
window_->Init(params);
window_->UpdateWindowTitle();
window_->UpdateWindowIcon();
web_view_ = new views::WebView(nullptr);
web_view_->SetWebContents(contents);
web_view_->SetFocusBehavior(FocusBehavior::NEVER);
AddChildView(web_view_);
SetLayoutManager(new views::FillLayout);
Layout();
// TODO(shuchen): supports auto cursor/composition aligning for
// follow-cursor window.
}
ImeWindowView::~ImeWindowView() {}
void ImeWindowView::Show() {
window_->ShowInactive();
}
void ImeWindowView::Hide() {
window_->Hide();
}
void ImeWindowView::Close() {
window_->Close();
}
void ImeWindowView::SetBounds(const gfx::Rect& bounds) {
window_->SetBounds(bounds);
}
gfx::Rect ImeWindowView::GetBounds() const {
return GetWidget()->GetWindowBoundsInScreen();
}
void ImeWindowView::UpdateWindowIcon() {
window_->UpdateWindowIcon();
}
bool ImeWindowView::IsVisible() const {
return GetWidget()->IsVisible();
}
void ImeWindowView::OnCloseButtonClicked() {
ime_window_->Close();
}
bool ImeWindowView::OnTitlebarPointerPressed(
const gfx::Point& pointer_location, PointerType pointer_type) {
if (dragging_state_ != DragState::NO_DRAG &&
dragging_pointer_type_ != pointer_type) {
return false;
}
dragging_state_ = DragState::POSSIBLE_DRAG;
pointer_location_on_press_ = pointer_location;
dragging_pointer_type_ = pointer_type;
return true;
}
bool ImeWindowView::OnTitlebarPointerDragged(
const gfx::Point& pointer_location, PointerType pointer_type) {
if (dragging_state_ == DragState::NO_DRAG)
return false;
if (dragging_pointer_type_ != pointer_type)
return false;
if (dragging_state_ == DragState::POSSIBLE_DRAG &&
ExceededDragThreshold(pointer_location - pointer_location_on_press_)) {
gfx::Rect bounds = GetWidget()->GetWindowBoundsInScreen();
bounds_on_drag_start_ = bounds;
dragging_state_ = DragState::ACTIVE_DRAG;
}
if (dragging_state_ == DragState::ACTIVE_DRAG) {
gfx::Point target_position = pointer_location -
(pointer_location_on_press_ - bounds_on_drag_start_.origin());
gfx::Rect bounds = GetWidget()->GetWindowBoundsInScreen();
bounds.set_origin(target_position);
GetWidget()->SetBounds(bounds);
}
return true;
}
void ImeWindowView::OnTitlebarPointerReleased(PointerType pointer_type) {
if (dragging_pointer_type_ == pointer_type &&
dragging_state_ == DragState::ACTIVE_DRAG) {
EndDragging();
}
}
void ImeWindowView::OnTitlebarPointerCaptureLost() {
if (dragging_state_ == DragState::ACTIVE_DRAG) {
GetWidget()->SetBounds(bounds_on_drag_start_);
EndDragging();
}
}
views::View* ImeWindowView::GetContentsView() {
return this;
}
views::NonClientFrameView* ImeWindowView::CreateNonClientFrameView(
views::Widget* widget) {
ImeWindowFrameView* frame_view = new ImeWindowFrameView(
this, ime_window_->mode());
frame_view->Init();
return frame_view;
}
bool ImeWindowView::CanActivate() const {
return false;
}
bool ImeWindowView::CanResize() const {
return false;
}
bool ImeWindowView::CanMaximize() const {
return false;
}
bool ImeWindowView::CanMinimize() const {
return false;
}
base::string16 ImeWindowView::GetWindowTitle() const {
return base::UTF8ToUTF16(ime_window_->title());
}
gfx::ImageSkia ImeWindowView::GetWindowAppIcon() {
return GetWindowIcon();
}
gfx::ImageSkia ImeWindowView::GetWindowIcon() {
return ime_window_->icon() ? ime_window_->icon()->image_skia()
: gfx::ImageSkia();
}
void ImeWindowView::DeleteDelegate() {
ime_window_->OnWindowDestroyed();
delete this;
}
ImeWindowFrameView* ImeWindowView::GetFrameView() const {
return static_cast<ImeWindowFrameView*>(
window_->non_client_view()->frame_view());
}
void ImeWindowView::EndDragging() {
dragging_state_ = DragState::NO_DRAG;
}
} // namespace ui
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="@color/step_bullet_green"/>
<size
android:width="@dimen/step_bullet_diameter"
android:height="@dimen/step_bullet_diameter"/>
</shape>
| {
"pile_set_name": "Github"
} |
{d "%w- %d %m-, %Y - %T"} - A "bwCPEDeviceConfigurationFTPLogin" event has occurred, from {t} device, named {m}.
"For the actual description, refer the BroadWorks FaultManagementGuide as it may contain variable data."
identifier = {I 1}
timeStamp = {S 2}
alarmName = {S 3}
systemName = {S 4}
severity = {T severity 5}
component = {T component 6}
subcomponent = {T subcomponent 7}
problemText = {S 8}
recommendedActionsText = {S 9}
(event [{e}])
| {
"pile_set_name": "Github"
} |
package org.mozilla.javascript.tools.shell;
import java.util.StringTokenizer;
/**
* Breaks a "contentType; charset=encoding" MIME type into content type and
* encoding parts.
* @version $Id: ParsedContentType.java,v 1.1 2008/10/18 09:17:10 szegedia%freemail.hu Exp $
*/
public final class ParsedContentType
{
private final String contentType;
private final String encoding;
public ParsedContentType(String mimeType)
{
String contentType = null;
String encoding = null;
if(mimeType != null)
{
StringTokenizer tok = new StringTokenizer(mimeType, ";");
if(tok.hasMoreTokens())
{
contentType = tok.nextToken().trim();
while(tok.hasMoreTokens())
{
String param = tok.nextToken().trim();
if(param.startsWith("charset="))
{
encoding = param.substring(8).trim();
int l = encoding.length();
if(l > 0)
{
if(encoding.charAt(0) == '"')
{
encoding = encoding.substring(1);
}
if(encoding.charAt(l - 1) == '"')
{
encoding = encoding.substring(0, l - 1);
}
}
break;
}
}
}
}
this.contentType = contentType;
this.encoding = encoding;
}
public String getContentType()
{
return contentType;
}
public String getEncoding()
{
return encoding;
}
} | {
"pile_set_name": "Github"
} |
# encoding: utf-8
require_relative 'reporting'
require 'pp'
module Spinach
class Reporter
# The FailureFile reporter outputs failing scenarios to a temporary file, one per line.
#
class FailureFile < Reporter
# Initializes the output filename and the temporary directory.
#
def initialize(*args)
super(*args)
# Generate a unique filename for this test run, or use the supplied option
@filename = options[:failure_filename] || ENV['SPINACH_FAILURE_FILE'] || "tmp/spinach-failures_#{Time.now.strftime('%F_%H-%M-%S-%L')}.txt"
# Create the temporary directory where we will output our file, if necessary
Dir.mkdir('tmp', 0755) unless Dir.exist?('tmp')
# Collect an array of failing scenarios
@failing_scenarios = []
end
attr_reader :failing_scenarios, :filename
# Writes all failing scenarios to a file, unless our run was successful.
#
# @param [Boolean] success
# Indicates whether the entire test run was successful
#
def after_run(success)
# Save our failed scenarios to a file
File.open(@filename, 'w') { |f| f.write @failing_scenarios.join("\n") } unless success
end
# Adds a failing step to the output buffer.
#
def on_failed_step(*args)
add_scenario(current_feature.filename, current_scenario.lines[0])
end
# Adds a step that has raised an error to the output buffer.
#
def on_error_step(*args)
add_scenario(current_feature.filename, current_scenario.lines[0])
end
private
# Adds a filename and line number to the output buffer, suitable for rerunning.
#
def add_scenario(filename, line)
@failing_scenarios << "#{filename}:#{line}"
end
end
end
end | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
bootstrap="vendor/autoload.php"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
checkForUnintentionallyCoveredCode="true"
forceCoversAnnotation="true"
verbose="true">
<testsuites>
<testsuite name="exporter">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true">
<directory>src</directory>
</whitelist>
</filter>
</phpunit>
| {
"pile_set_name": "Github"
} |
"""
>>> gotcha = []
>>> for _in, _out in (
... (
... "Practice makes perfect. you'll only get Perfect by practice. just practice!",
... [['practice', 3], ['perfect', 2], ['makes', 1], ['youll', 1], ['only', 1], ['get', 1], ['by', 1], ['just', 1]],
... ),
... (
... "Practice makes perfect. just practice! you'll only get Perfect by practice.",
... [['practice', 3], ['perfect', 2], ['makes', 1], ['just', 1], ['youll', 1], ['only', 1], ['get', 1], ['by', 1]],
... ),
... (
... "Practice makes perfect. you'll only get Perfect by practice. just practice by yourself!",
... [['practice', 3], ['perfect', 2], ['by', 2], ['makes', 1], ['youll', 1], ['only', 1], ['get', 1], ['just', 1], ['yourself', 1]],
... ),
... ):
... res = word_count_engine(_in)
... if res != _out: print(_in, res)
... gotcha.append(res == _out)
>>> bool(gotcha) and all(gotcha)
True
"""
def word_count_engine(document):
"""
:type document: str
:rtype: list[list[str]]
count and sort
time: O(n logn)
"""
ans = []
document = document and document.strip()
if not document:
return ans
document = ''.join(c for c in document if c.isalnum() or c == ' ')
word2idx = {}
for word in document.lower().strip().split():
if not word:
continue
if word not in word2idx:
ans.append([word, 0])
word2idx[word] = len(ans) - 1
i = word2idx[word]
ans[i][1] += 1
ans.sort(key=lambda x: x[1], reverse=True)
return ans
def word_count_engine2(document):
"""
:type document: str
:rtype: list[list[str]]
# TODO
LRU
time: O(n)
"""
pass
| {
"pile_set_name": "Github"
} |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the files COPYING and Copyright.html. COPYING can be found at the root *
* of the source code distribution tree; Copyright.html can be found at the *
* root level of an installed copy of the electronic HDF5 document set and *
* is linked from the top-level documents page. It can also be found at *
* http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
* access to either file, you may request a copy from [email protected]. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef SIO_STANDALONE_H__
#define SIO_PERF_H__
/* Header file for building h5perf by standalone mode.
* Created: Christian Chilan, 2005/5/18.
*/
/** From H5private.h **/
#include "H5public.h" /* Include Public Definitions */
/*
* Include ANSI-C header files.
*/
#ifdef H5_STDC_HEADERS
# include <assert.h>
# include <ctype.h>
# include <errno.h>
# include <fcntl.h>
# include <float.h>
# include <limits.h>
# include <math.h>
# include <signal.h>
# include <stdarg.h>
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
#endif
/* maximum of two, three, or four values */
#undef MAX
#define MAX(a,b) (((a)>(b)) ? (a) : (b))
#define MAX2(a,b) MAX(a,b)
#define MAX3(a,b,c) MAX(a,MAX(b,c))
#define MAX4(a,b,c,d) MAX(MAX(a,b),MAX(c,d))
/*
* A macro to portably increment enumerated types.
*/
#ifndef H5_INC_ENUM
# define H5_INC_ENUM(TYPE,VAR) (VAR)=((TYPE)((VAR)+1))
#endif
/*
* Redefine all the POSIX functions. We should never see a POSIX
* function (or any other non-HDF5 function) in the source!
*/
#define HDabort() abort()
#define HDabs(X) abs(X)
#define HDaccess(F,M) access(F, M)
#define HDacos(X) acos(X)
#ifdef H5_HAVE_ALARM
#define HDalarm(N) alarm(N)
#else /* H5_HAVE_ALARM */
#define HDalarm(N) (0)
#endif /* H5_HAVE_ALARM */
#define HDasctime(T) asctime(T)
#define HDasin(X) asin(X)
#define HDassert(X) assert(X)
#define HDatan(X) atan(X)
#define HDatan2(X,Y) atan2(X,Y)
#define HDatexit(F) atexit(F)
#define HDatof(S) atof(S)
#define HDatoi(S) atoi(S)
#define HDatol(S) atol(S)
#define HDBSDgettimeofday(S,P) BSDgettimeofday(S,P)
#define HDbsearch(K,B,N,Z,F) bsearch(K,B,N,Z,F)
#define HDcalloc(N,Z) calloc(N,Z)
#define HDceil(X) ceil(X)
#define HDcfgetispeed(T) cfgetispeed(T)
#define HDcfgetospeed(T) cfgetospeed(T)
#define HDcfsetispeed(T,S) cfsetispeed(T,S)
#define HDcfsetospeed(T,S) cfsetospeed(T,S)
#define HDchdir(S) chdir(S)
#define HDchmod(S,M) chmod(S,M)
#define HDchown(S,O,G) chown(S,O,G)
#define HDclearerr(F) clearerr(F)
#define HDclock() clock()
#define HDclose(F) close(F)
#define HDclosedir(D) closedir(D)
#define HDcos(X) cos(X)
#define HDcosh(X) cosh(X)
#define HDcreat(S,M) creat(S,M)
#define HDctermid(S) ctermid(S)
#define HDctime(T) ctime(T)
#define HDcuserid(S) cuserid(S)
#ifdef H5_HAVE_DIFFTIME
#define HDdifftime(X,Y) difftime(X,Y)
#else
#define HDdifftime(X,Y) ((double)(X)-(double)(Y))
#endif
#define HDdiv(X,Y) div(X,Y)
#define HDdup(F) dup(F)
#define HDdup2(F,I) dup2(F,I)
/* execl() variable arguments */
/* execle() variable arguments */
/* execlp() variable arguments */
#define HDexecv(S,AV) execv(S,AV)
#define HDexecve(S,AV,E) execve(S,AV,E)
#define HDexecvp(S,AV) execvp(S,AV)
#define HDexit(N) exit(N)
#define HD_exit(N) _exit(N)
#define HDexp(X) exp(X)
#define HDfabs(X) fabs(X)
/* use ABS() because fabsf() fabsl() are not common yet. */
#define HDfabsf(X) ABS(X)
#define HDfabsl(X) ABS(X)
#define HDfclose(F) fclose(F)
/* fcntl() variable arguments */
#define HDfdopen(N,S) fdopen(N,S)
#define HDfeof(F) feof(F)
#define HDferror(F) ferror(F)
#define HDfflush(F) fflush(F)
#define HDfgetc(F) fgetc(F)
#define HDfgetpos(F,P) fgetpos(F,P)
#define HDfgets(S,N,F) fgets(S,N,F)
#ifdef H5_HAVE_WIN32_API
#define HDfileno(F) _fileno(F)
#else /* H5_HAVE_WIN32_API */
#define HDfileno(F) fileno(F)
#endif /* H5_HAVE_WIN32_API */
#define HDfloor(X) floor(X)
#define HDfmod(X,Y) fmod(X,Y)
#define HDfopen(S,M) fopen(S,M)
#define HDfork() fork()
#define HDfpathconf(F,N) fpathconf(F,N)
H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...);
#define HDfputc(C,F) fputc(C,F)
#define HDfputs(S,F) fputs(S,F)
#define HDfread(M,Z,N,F) fread(M,Z,N,F)
#define HDfree(M) free(M)
#define HDfreopen(S,M,F) freopen(S,M,F)
#define HDfrexp(X,N) frexp(X,N)
/* Check for Cray-specific 'frexpf()' and 'frexpl()' routines */
#ifdef H5_HAVE_FREXPF
#define HDfrexpf(X,N) frexpf(X,N)
#else /* H5_HAVE_FREXPF */
#define HDfrexpf(X,N) frexp(X,N)
#endif /* H5_HAVE_FREXPF */
#ifdef H5_HAVE_FREXPL
#define HDfrexpl(X,N) frexpl(X,N)
#else /* H5_HAVE_FREXPL */
#define HDfrexpl(X,N) frexp(X,N)
#endif /* H5_HAVE_FREXPL */
/* fscanf() variable arguments */
#ifdef H5_HAVE_FSEEKO
#define HDfseek(F,O,W) fseeko(F,O,W)
#else
#define HDfseek(F,O,W) fseek(F,O,W)
#endif
#define HDfsetpos(F,P) fsetpos(F,P)
/* definitions related to the file stat utilities.
* Windows have its own function names.
* For Unix, if off_t is not 64bit big, try use the pseudo-standard
* xxx64 versions if available.
*/
#ifdef H5_HAVE_WIN32_API
#define HDfstat(F,B) _fstati64(F,B)
#define HDlstat(S,B) _lstati64(S,B)
#define HDstat(S,B) _stati64(S,B)
typedef struct _stati64 h5_stat_t;
typedef __int64 h5_stat_size_t;
#elif H5_SIZEOF_OFF_T!=8 && H5_SIZEOF_OFF64_T==8 && defined(H5_HAVE_STAT64)
#define HDfstat(F,B) fstat64(F,B)
#define HDlstat(S,B) lstat64(S,B)
#define HDstat(S,B) stat64(S,B)
typedef struct stat64 h5_stat_t;
typedef off64_t h5_stat_size_t;
#else
#define HDfstat(F,B) fstat(F,B)
#define HDlstat(S,B) lstat(S,B)
#define HDstat(S,B) stat(S,B)
typedef struct stat h5_stat_t;
typedef off_t h5_stat_size_t;
#endif
#define HDftell(F) ftell(F)
#define HDftruncate(F,L) ftruncate(F,L)
#define HDfwrite(M,Z,N,F) fwrite(M,Z,N,F)
#define HDgetc(F) getc(F)
#define HDgetchar() getchar()
#define HDgetcwd(S,Z) getcwd(S,Z)
#define HDgetegid() getegid()
#define HDgetenv(S) getenv(S)
#define HDgeteuid() geteuid()
#define HDgetgid() getgid()
#define HDgetgrgid(G) getgrgid(G)
#define HDgetgrnam(S) getgrnam(S)
#define HDgetgroups(Z,G) getgroups(Z,G)
#ifdef H5_HAVE_VISUAL_STUDIO
#define HDgetlogin() Wgetlogin()
#else /* H5_HAVE_VISUAL_STUDIO */
#define HDgetlogin() getlogin()
#endif /* H5_HAVE_VISUAL_STUDIO */
#define HDgetpgrp() getpgrp()
#define HDgetpid() getpid()
#define HDgetppid() getppid()
#define HDgetpwnam(S) getpwnam(S)
#define HDgetpwuid(U) getpwuid(U)
#define HDgetrusage(X,S) getrusage(X,S)
#define HDgets(S) gets(S)
#define HDgettimeofday(S,P) gettimeofday(S,P)
#define HDgetuid() getuid()
#define HDgmtime(T) gmtime(T)
#define HDisalnum(C) isalnum((int)(C)) /*cast for solaris warning*/
#define HDisalpha(C) isalpha((int)(C)) /*cast for solaris warning*/
#define HDisatty(F) isatty(F)
#define HDiscntrl(C) iscntrl((int)(C)) /*cast for solaris warning*/
#define HDisdigit(C) isdigit((int)(C)) /*cast for solaris warning*/
#define HDisgraph(C) isgraph((int)(C)) /*cast for solaris warning*/
#define HDislower(C) islower((int)(C)) /*cast for solaris warning*/
#define HDisprint(C) isprint((int)(C)) /*cast for solaris warning*/
#define HDispunct(C) ispunct((int)(C)) /*cast for solaris warning*/
#define HDisspace(C) isspace((int)(C)) /*cast for solaris warning*/
#define HDisupper(C) isupper((int)(C)) /*cast for solaris warning*/
#define HDisxdigit(C) isxdigit((int)(C)) /*cast for solaris warning*/
#define HDkill(P,S) kill(P,S)
#define HDlabs(X) labs(X)
#define HDldexp(X,N) ldexp(X,N)
#define HDldiv(X,Y) ldiv(X,Y)
#define HDlink(OLD,NEW) link(OLD,NEW)
#define HDlocaleconv() localeconv()
#define HDlocaltime(T) localtime(T)
#define HDlog(X) log(X)
#define HDlog10(X) log10(X)
#define HDlongjmp(J,N) longjmp(J,N)
#ifdef H5_HAVE_WIN32_API
#define HDlseek(F,O,W) _lseeki64(F,O,W)
#else
#ifdef H5_HAVE_LSEEK64
#define HDlseek(F,O,W) lseek64(F,O,W)
#else
#define HDlseek(F,O,W) lseek(F,O,W)
#endif
#endif
#define HDmalloc(Z) malloc(Z)
#define HDposix_memalign(P,A,Z) posix_memalign(P,A,Z)
#define HDmblen(S,N) mblen(S,N)
#define HDmbstowcs(P,S,Z) mbstowcs(P,S,Z)
#define HDmbtowc(P,S,Z) mbtowc(P,S,Z)
#define HDmemchr(S,C,Z) memchr(S,C,Z)
#define HDmemcmp(X,Y,Z) memcmp(X,Y,Z)
/*
* The (char*) casts are required for the DEC when optimizations are turned
* on and the source and/or destination are not aligned.
*/
#define HDmemcpy(X,Y,Z) memcpy((char*)(X),(const char*)(Y),Z)
#define HDmemmove(X,Y,Z) memmove((char*)(X),(const char*)(Y),Z)
/*
* The (void*) cast just avoids a compiler warning in H5_HAVE_VISUAL_STUDIO
*/
#ifdef H5_HAVE_VISUAL_STUDIO
#define HDmemset(X,C,Z) memset((void*)(X),C,Z)
#else /* H5_HAVE_VISUAL_STUDIO */
#define HDmemset(X,C,Z) memset(X,C,Z)
#endif /* H5_HAVE_VISUAL_STUDIO */
#ifdef H5_HAVE_WIN32_API
#define HDmkdir(S,M) _mkdir(S)
#else /* H5_HAVE_WIN32_API */
#define HDmkdir(S,M) mkdir(S,M)
#endif /* H5_HAVE_WIN32_API */
#define HDmkfifo(S,M) mkfifo(S,M)
#define HDmktime(T) mktime(T)
#define HDmodf(X,Y) modf(X,Y)
#ifdef _O_BINARY
#define HDopen(S,F,M) open(S,F|_O_BINARY,M)
#else
#define HDopen(S,F,M) open(S,F,M)
#endif
#define HDopendir(S) opendir(S)
#define HDpathconf(S,N) pathconf(S,N)
#define HDpause() pause()
#define HDperror(S) perror(S)
#define HDpipe(F) pipe(F)
#define HDpow(X,Y) pow(X,Y)
/* printf() variable arguments */
#define HDputc(C,F) putc(C,F)
#define HDputchar(C) putchar(C)
#define HDputs(S) puts(S)
#define HDqsort(M,N,Z,F) qsort(M,N,Z,F)
#define HDraise(N) raise(N)
#ifdef H5_HAVE_RAND_R
#define HDrandom() HDrand()
H5_DLL int HDrand(void);
#elif H5_HAVE_RANDOM
#define HDrand() random()
#define HDrandom() random()
#else
#define HDrand() rand()
#define HDrandom() rand()
#endif
#define HDread(F,M,Z) read(F,M,Z)
#define HDreaddir(D) readdir(D)
#define HDrealloc(M,Z) realloc(M,Z)
#ifdef H5_VMS
#ifdef __cplusplus
extern "C" {
#endif
int HDremove_all(const char * fname);
#ifdef __cplusplus
}
#endif
#define HDremove(S) HDremove_all(S)
#else
#define HDremove(S) remove(S)
#endif /*H5_VMS*/
#define HDrename(OLD,NEW) rename(OLD,NEW)
#define HDrewind(F) rewind(F)
#define HDrewinddir(D) rewinddir(D)
#define HDrmdir(S) rmdir(S)
/* scanf() variable arguments */
#define HDsetbuf(F,S) setbuf(F,S)
#define HDsetgid(G) setgid(G)
#define HDsetjmp(J) setjmp(J)
#define HDsetlocale(N,S) setlocale(N,S)
#define HDsetpgid(P,PG) setpgid(P,PG)
#define HDsetsid() setsid()
#define HDsetuid(U) setuid(U)
/* Windows does not permit setting the buffer size to values
less than 2. */
#ifndef H5_HAVE_WIN32_API
#define HDsetvbuf(F,S,M,Z) setvbuf(F,S,M,Z)
#else
#define HDsetvbuf(F,S,M,Z) setvbuf(F,S,M,(Z>1?Z:2))
#endif
#define HDsigaddset(S,N) sigaddset(S,N)
#define HDsigdelset(S,N) sigdelset(S,N)
#define HDsigemptyset(S) sigemptyset(S)
#define HDsigfillset(S) sigfillset(S)
#define HDsigismember(S,N) sigismember(S,N)
#define HDsiglongjmp(J,N) siglongjmp(J,N)
#define HDsignal(N,F) signal(N,F)
#define HDsigpending(S) sigpending(S)
#define HDsigprocmask(H,S,O) sigprocmask(H,S,O)
#define HDsigsetjmp(J,N) sigsetjmp(J,N)
#define HDsigsuspend(S) sigsuspend(S)
#define HDsin(X) sin(X)
#define HDsinh(X) sinh(X)
#define HDsleep(N) sleep(N)
#ifdef H5_HAVE_WIN32_API
#define HDsnprintf _snprintf /*varargs*/
#else
#define HDsnprintf snprintf /*varargs*/
#endif
/* sprintf() variable arguments */
#define HDsqrt(X) sqrt(X)
#ifdef H5_HAVE_RAND_R
H5_DLL void HDsrand(unsigned int seed);
#define HDsrandom(S) HDsrand(S)
#elif H5_HAVE_RANDOM
#define HDsrand(S) srandom(S)
#define HDsrandom(S) srandom(S)
#else
#define HDsrand(S) srand(S)
#define HDsrandom(S) srand(S)
#endif
/* sscanf() variable arguments */
#define HDstrcasecmp(X,Y) strcasecmp(X,Y)
#define HDstrcat(X,Y) strcat(X,Y)
#define HDstrchr(S,C) strchr(S,C)
#define HDstrcmp(X,Y) strcmp(X,Y)
#define HDstrcoll(X,Y) strcoll(X,Y)
#define HDstrcpy(X,Y) strcpy(X,Y)
#define HDstrcspn(X,Y) strcspn(X,Y)
#define HDstrerror(N) strerror(N)
#define HDstrftime(S,Z,F,T) strftime(S,Z,F,T)
#define HDstrlen(S) strlen(S)
#define HDstrncat(X,Y,Z) strncat(X,Y,Z)
#define HDstrncmp(X,Y,Z) strncmp(X,Y,Z)
#define HDstrncpy(X,Y,Z) strncpy(X,Y,Z)
#define HDstrpbrk(X,Y) strpbrk(X,Y)
#define HDstrrchr(S,C) strrchr(S,C)
#define HDstrspn(X,Y) strspn(X,Y)
#define HDstrstr(X,Y) strstr(X,Y)
#define HDstrtod(S,R) strtod(S,R)
#define HDstrtok(X,Y) strtok(X,Y)
#define HDstrtol(S,R,N) strtol(S,R,N)
H5_DLL int64_t HDstrtoll (const char *s, const char **rest, int base);
#define HDstrtoul(S,R,N) strtoul(S,R,N)
#define HDstrxfrm(X,Y,Z) strxfrm(X,Y,Z)
#define HDsysconf(N) sysconf(N)
#define HDsystem(S) system(S)
#define HDtan(X) tan(X)
#define HDtanh(X) tanh(X)
#define HDtcdrain(F) tcdrain(F)
#define HDtcflow(F,A) tcflow(F,A)
#define HDtcflush(F,N) tcflush(F,N)
#define HDtcgetattr(F,T) tcgetattr(F,T)
#define HDtcgetpgrp(F) tcgetpgrp(F)
#define HDtcsendbreak(F,N) tcsendbreak(F,N)
#define HDtcsetattr(F,O,T) tcsetattr(F,O,T)
#define HDtcsetpgrp(F,N) tcsetpgrp(F,N)
#define HDtime(T) time(T)
#define HDtimes(T) times(T)
#define HDtmpfile() tmpfile()
#define HDtmpnam(S) tmpnam(S)
#define HDtolower(C) tolower(C)
#define HDtoupper(C) toupper(C)
#define HDttyname(F) ttyname(F)
#define HDtzset() tzset()
#define HDumask(N) umask(N)
#define HDuname(S) uname(S)
#define HDungetc(C,F) ungetc(C,F)
#ifdef H5_HAVE_WIN32_API
#define HDunlink(S) _unlink(S)
#else
#define HDunlink(S) unlink(S)
#endif
#define HDutime(S,T) utime(S,T)
#define HDva_arg(A,T) va_arg(A,T)
#define HDva_end(A) va_end(A)
#define HDva_start(A,P) va_start(A,P)
#define HDvasprintf(RET,FMT,A) vasprintf(RET,FMT,A)
#define HDvfprintf(F,FMT,A) vfprintf(F,FMT,A)
#define HDvprintf(FMT,A) vprintf(FMT,A)
#define HDvsprintf(S,FMT,A) vsprintf(S,FMT,A)
#ifdef H5_HAVE_WIN32_API
# define HDvsnprintf(S,N,FMT,A) _vsnprintf(S,N,FMT,A)
#else
# define HDvsnprintf(S,N,FMT,A) vsnprintf(S,N,FMT,A)
#endif
#define HDwait(W) wait(W)
#define HDwaitpid(P,W,O) waitpid(P,W,O)
#define HDwcstombs(S,P,Z) wcstombs(S,P,Z)
#define HDwctomb(S,C) wctomb(S,C)
#define HDwrite(F,M,Z) write(F,M,Z)
/*
* And now for a couple non-Posix functions... Watch out for systems that
* define these in terms of macros.
*/
#ifdef H5_HAVE_WIN32_API
#define HDstrdup(S) _strdup(S)
#else /* H5_HAVE_WIN32_API */
#if !defined strdup && !defined H5_HAVE_STRDUP
extern char *strdup(const char *s);
#endif
#define HDstrdup(S) strdup(S)
#endif /* H5_HAVE_WIN32_API */
/*
* HDF Boolean type.
*/
#ifndef FALSE
# define FALSE 0
#endif
#ifndef TRUE
# define TRUE 1
#endif
/** From h5test.h **/
#ifdef H5_HAVE_PARALLEL
extern MPI_Info h5_io_info_g; /* MPI INFO object for IO */
#endif
#ifdef H5_HAVE_PARALLEL
H5TEST_DLL int h5_set_info_object(void);
H5TEST_DLL void h5_dump_info_object(MPI_Info info);
#endif
/** From h5tools_utils.h **/
extern int opt_err; /* getoption prints errors if this is on */
extern int opt_ind; /* token pointer */
extern const char *opt_arg; /* flag argument (or value) */
enum {
no_arg = 0, /* doesn't take an argument */
require_arg, /* requires an argument */
optional_arg /* argument is optional */
};
typedef struct long_options {
const char *name; /* name of the long option */
int has_arg; /* whether we should look for an arg */
char shortval; /* the shortname equivalent of long arg
* this gets returned from get_option */
} long_options;
extern int get_option(int argc, const char **argv, const char *opt,
const struct long_options *l_opt);
#endif
| {
"pile_set_name": "Github"
} |
Description:
Read a line from a stream, stopping at one of 2 delimiters, with bounded
memory allocation.
Files:
lib/getndelim2.h
lib/getndelim2.c
m4/getndelim2.m4
Depends-on:
ssize_t
stdbool
stdint
freadptr
freadseek
memchr2
configure.ac:
gl_GETNDELIM2
Makefile.am:
lib_SOURCES += getndelim2.c
Include:
"getndelim2.h"
License:
LGPLv2+
Maintainer:
all
| {
"pile_set_name": "Github"
} |
EXTRA_CFLAGS = -Idrivers/net/wireless/rt2860v2/include -Idrivers/net/wireless/rt2860v2/ate/include
obj-$(CONFIG_RT2860V2_STA) += rt2860v2_sta.o
rt2860v2_sta-objs += ../rt2860v2/common/crypt_md5.o
rt2860v2_sta-objs += ../rt2860v2/common/crypt_sha2.o
rt2860v2_sta-objs += ../rt2860v2/common/crypt_hmac.o
rt2860v2_sta-objs += ../rt2860v2/common/mlme.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_wep.o
rt2860v2_sta-objs += ../rt2860v2/common/action.o
rt2860v2_sta-objs += ../rt2860v2/common/ba_action.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_data.o
rt2860v2_sta-objs += ../rt2860v2/common/rtmp_init.o
rt2860v2_sta-objs += ../rt2860v2/common/rtmp_init_inf.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_tkip.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_aes.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_sync.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_sanity.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_info.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_wpa.o
rt2860v2_sta-objs += ../rt2860v2/common/dfs.o
#rt2860v2_sta-objs += ../rt2860v2/common/dfs_mcu.o
rt2860v2_sta-objs += ../rt2860v2/common/spectrum.o
rt2860v2_sta-objs += ../rt2860v2/common/rt_os_util.o
rt2860v2_sta-objs += ../rt2860v2/common/rtmp_timer.o
rt2860v2_sta-objs += ../rt2860v2/common/rt_channel.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_profile.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_asic.o
rt2860v2_sta-objs += ../rt2860v2/common/rtmp_swmcu.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_cfg.o
rt2860v2_sta-objs += ../rt2860v2/common/eeprom.o
rt2860v2_sta-objs += ../rt2860v2/common/ee_flash.o
#rt2860v2_sta-objs += ../rt2860v2/common/rtmp_mcu.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_mac_pci.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_data_pci.o
rt2860v2_sta-objs += ../rt2860v2/common/crypt_aes.o
rt2860v2_sta-objs += ../rt2860v2/common/crypt_arc4.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_cmd.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_wpa_adhoc.o
rt2860v2_sta-objs += ../rt2860v2/sta/assoc.o
rt2860v2_sta-objs += ../rt2860v2/sta/auth.o
rt2860v2_sta-objs += ../rt2860v2/sta/auth_rsp.o
rt2860v2_sta-objs += ../rt2860v2/sta/sync.o
rt2860v2_sta-objs += ../rt2860v2/sta/sanity.o
rt2860v2_sta-objs += ../rt2860v2/sta/rtmp_data.o
rt2860v2_sta-objs += ../rt2860v2/sta/connect.o
rt2860v2_sta-objs += ../rt2860v2/sta/wpa.o
rt2860v2_sta-objs += ../rt2860v2/sta/sta_cfg.o
rt2860v2_sta-objs += ../rt2860v2/os/linux/rt_proc.o
rt2860v2_sta-objs += ../rt2860v2/os/linux/rt_linux.o
rt2860v2_sta-objs += ../rt2860v2/os/linux/rt_profile.o
rt2860v2_sta-objs += ../rt2860v2/os/linux/rt_main_dev.o
rt2860v2_sta-objs += ../rt2860v2/os/linux/sta_ioctl.o
rt2860v2_sta-objs += ../rt2860v2/common/rt_ate.o
rt2860v2_sta-objs += ../rt2860v2/chips/rtmp_chip.o
rt2860v2_sta-objs += ../rt2860v2/os/linux/rbus_main_dev.o
rt2860v2_sta-objs += ../rt2860v2/os/linux/rt_pci_rbus.o
rt2860v2_sta-objs += ../rt2860v2/os/linux/rt_rbus_pci_util.o
rt2860v2_sta-objs += ../rt2860v2/os/linux/rt_rbus_pci_drv.o
ifeq ($(CONFIG_RALINK_RT2880),y)
rt2860v2_sta-objs += ../rt2860v2/chips/rt2880.o
endif
ifeq ($(CONFIG_RALINK_RT3052),y)
rt2860v2_sta-objs += ../rt2860v2/common/rt_rf.o
rt2860v2_sta-objs += ../rt2860v2/chips/rt305x.o
endif
ifeq ($(CONFIG_RALINK_RT3352),y)
rt2860v2_sta-objs += ../rt2860v2/common/rt_rf.o
rt2860v2_sta-objs += ../rt2860v2/chips/rt305x.o
rt2860v2_sta-objs += ../rt2860v2/chips/rt3352.o
endif
ifeq ($(CONFIG_RT3x52),y)
rt2860v2_sta-objs += ../rt2860v2/common/rt_rf.o
rt2860v2_sta-objs += ../rt2860v2/chips/rt305x.o
rt2860v2_sta-objs += ../rt2860v2/chips/rt3352.o
endif
ifeq ($(CONFIG_RALINK_RT5350),y)
rt2860v2_sta-objs += ../rt2860v2/common/rt_rf.o
rt2860v2_sta-objs += ../rt2860v2/chips/rt305x.o
rt2860v2_sta-objs += ../rt2860v2/chips/rt5350.o
endif
ifeq ($(CONFIG_RALINK_RT3883),y)
rt2860v2_ap-objs += ../rt2860v2/common/rt_rf.o
rt2860v2_ap-objs += ../rt2860v2/chips/rt3883.o
ifeq ($(CONFIG_RT2860V2_STA_TXBF),y)
rt2860v2_ap-objs += ../rt2860v2/common/cmm_txbf.o
rt2860v2_ap-objs += ../rt2860v2/common/cmm_txbf_cal.o
endif
endif
ifeq ($(CONFIG_RT2860V2_STA_LED),y)
rt2860v2_sta-objs += ../rt2860v2/common/rt_led.o
endif
ifeq ($(CONFIG_RT2860V2_STA_WMM_ACM),y)
rt2860v2_sta-objs += ../rt2860v2/common/acm_edca.o
rt2860v2_sta-objs += ../rt2860v2/common/acm_comm.o
rt2860v2_sta-objs += ../rt2860v2/common/acm_iocl.o
endif
#ifeq ($(CONFIG_RT2860V2_STA_WAPI),y)
#rt2860v2_sta-objs += wapi.obj
#rt2860v2_sta-objs += wapi_sms4.obj
#rt2860v2_sta-objs += wapi_crypt.obj
#endif
#ifeq ($(CONFIG_RT2860V2_RT3XXX_STA_ANTENNA_DIVERSITY),y)
#rt2860v2_sta-objs += ../rt2860v2/os/linux/ap_diversity.o
#endif
ifeq ($(CONFIG_RT2860V2_STA_MESH),y)
rt2860v2_sta-objs += ../rt2860v2/common/mesh_bmpkt.o
rt2860v2_sta-objs += ../rt2860v2/common/mesh_ctrl.o
rt2860v2_sta-objs += ../rt2860v2/common/mesh_link_mng.o
rt2860v2_sta-objs += ../rt2860v2/common/mesh_sanity.o
rt2860v2_sta-objs += ../rt2860v2/common/mesh_tlv.o
rt2860v2_sta-objs += ../rt2860v2/common/mesh.o
rt2860v2_sta-objs += ../rt2860v2/common/mesh_inf.o
rt2860v2_sta-objs += ../rt2860v2/common/mesh_forwarding.o
rt2860v2_sta-objs += ../rt2860v2/common/mesh_path_mng.o
endif
ifeq ($(CONFIG_RT2860V2_STA_DLS),y)
rt2860v2_sta-objs += ../rt2860v2/sta/dls.o
endif
ifeq ($(CONFIG_RT2860V2_STA_WSC),y)
rt2860v2_sta-objs += ../rt2860v2/common/wsc.o
rt2860v2_sta-objs += ../rt2860v2/common/wsc_tlv.o
rt2860v2_sta-objs += ../rt2860v2/common/crypt_biginteger.o
rt2860v2_sta-objs += ../rt2860v2/common/crypt_dh.o
endif
ifeq ($(CONFIG_RT2860V2_STA_ETH_CONVERT),y)
rt2860v2_sta-objs += ../rt2860v2/common/cmm_mat.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_mat_iparp.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_mat_pppoe.o
rt2860v2_sta-objs += ../rt2860v2/common/cmm_mat_ipv6.o
endif
ifeq ($(CONFIG_RT2860V2_STA_VIDEO_TURBINE),y)
rt2860v2_sta-objs += ../rt2860v2/common/cmm_video.o
endif
###################
# CFLAGS
##################
EXTRA_CFLAGS += -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT -DLINUX \
-Wall -Wstrict-prototypes -Wno-trigraphs
EXTRA_CFLAGS += -DCONFIG_STA_SUPPORT -DDBG -DRTMP_RBUS_SUPPORT -DRTMP_MAC_PCI
EXTRA_CFLAGS += -DDOT11_N_SUPPORT -DSTATS_COUNT_SUPPORT -DRELASE_EXCLUDE
EXTRA_CFLAGS += -DCONFIG_ATE -DCONFIG_QA -DNEW_TXCONT -DNEW_TXCARRSUPP -DCONFIG_RT2880_ATE_CMD_NEW
ifeq ($(CONFIG_RALINK_RT2880),y)
EXTRA_CFLAGS += -DRT2880
endif
ifeq ($(CONFIG_RALINK_RT3052),y)
ifeq ($(CONFIG_RALINK_RT3350),y)
EXTRA_CFLAGS += -DRT3350 -DRT305x -DRTMP_RF_RW_SUPPORT
else
EXTRA_CFLAGS += -DRT3052 -DRT305x -DRTMP_RF_RW_SUPPORT
endif
endif
ifeq ($(CONFIG_RALINK_RT3352),y)
EXTRA_CFLAGS += -DRT3352 -DRT305x -DRTMP_RF_RW_SUPPORT -DSPECIFIC_BCN_BUF_SUPPORT -DVCORECAL_SUPPORT
endif
ifeq ($(CONFIG_RT3x52),y)
EXTRA_CFLAGS += -DRT3052 -DRT3352 -DRT305x -DRTMP_RF_RW_SUPPORT -DSPECIFIC_BCN_BUF_SUPPORT -DVCORECAL_SUPPORT
endif
ifeq ($(CONFIG_RALINK_RT5350),y)
EXTRA_CFLAGS += -DRT5350 -DRT305x -DRTMP_RF_RW_SUPPORT -DVCORECAL_SUPPORT
endif
ifeq ($(CONFIG_RALINK_RT3883),y)
EXTRA_CFLAGS += -DRT3883 -DDOT11N_SS3_SUPPORT -DA_BAND_SUPPORT -DRTMP_RF_RW_SUPPORT -DSPECIFIC_BCN_BUF_SUPPORT -DVCORECAL_SUPPORT
ifeq ($(CONFIG_RT2860V2_AP_TXBF),y)
EXTRA_CFLAGS += -DTXBF_SUPPORT
endif
EXTRA_CFLAGS += -DSTREAM_MODE_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_STA_WPA_SUPPLICANT),y)
EXTRA_CFLAGS += -DWPA_SUPPLICANT_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_STA_WMM_ACM),y)
EXTRA_CFLAGS += -DWMM_ACM_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_STA_LED),y)
EXTRA_CFLAGS += -DLED_CONTROL_SUPPORT -DCONFIG_SWMCU_SUPPORT
ifeq ($(CONFIG_RT2860V2_STA_WSC),y)
EXTRA_CFLAGS += -DWSC_LED_SUPPORT
endif
endif
ifeq ($(CONFIG_RT2860V2_SNMP),y)
EXTRA_CFLAGS += -DSNMP_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_STA_CARRIER),y)
EXTRA_CFLAGS += -DCARRIER_DETECTION_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_EXT_CHANNEL_LIST),y)
EXTRA_CFLAGS += -DEXT_BUILD_CHANNEL_LIST
endif
ifeq ($(CONFIG_RT2860V2_STA_IDS),y)
EXTRA_CFLAGS += -DIDS_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_STA_DLS),y)
EXTRA_CFLAGS += -DQOS_DLS_SUPPORT
endif
#ifeq ($(CONFIG_RT2860V2_STA_WAPI),y)
#EXTRA_CFLAGS += -DWAPI_SUPPORT
#ifeq ($(CONFIG_RALINK_RT3052),y)
#EXTRA_CFLAGS += -DWAPI_SUPPORT -DSOFT_ENCRYPT
#endif
#endif
ifeq ($(CONFIG_RT2860V2_STA_MESH),y)
EXTRA_CFLAGS += -DMESH_SUPPORT -DINTEL_CMPC
endif
ifeq ($(CONFIG_RT2860V2_RT3XXX_STA_ANTENNA_DIVERSITY),y)
EXTRA_CFLAGS += -DRT3XXX_ANTENNA_DIVERSITY_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_HW_STA_ANTENNA_DIVERSITY),y)
EXTRA_CFLAGS += -DHW_ANTENNA_DIVERSITY_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_STA_WSC),y)
EXTRA_CFLAGS += -DWSC_STA_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_STA_ETH_CONVERT),y)
EXTRA_CFLAGS += -DETH_CONVERT_SUPPORT -DMAT_SUPPORT
endif
ifeq ($(CONFIG_RT2860V2_STA_VIDEO_TURBINE),y)
EXTRA_CFLAGS += -DVIDEO_TURBINE_SUPPORT
endif
ifeq ($(CONFIG_RA_NETWORK_WORKQUEUE_BH),y)
EXTRA_CFLAGS += -DWORKQUEUE_BH
endif
ifeq ($(CONFIG_RT2860V2_STA_RTMP_INTERNAL_TX_ALC),y)
EXTRA_CFLAGS += -DRTMP_INTERNAL_TX_ALC
endif
ifeq ($(CONFIG_RT2860V2_STA_80211N_DRAFT3),y)
EXTRA_CFLAGS += -DDOT11N_DRAFT3
endif
| {
"pile_set_name": "Github"
} |
### <em>function</em> <strong>`clrhash`</strong>
Syntax:
<strong>`clrhash`</strong> <em>parameters</em> => <em>return-type</em>
Documentation of parameters and return-results.
Examples (not from CLHS...):
```lisp
CL-USER> (example-code 'a 'b 'c)
'return-result
```
| {
"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 protoc-gen-gogo. DO NOT EDIT.
// source: k8s.io/kubernetes/vendor/k8s.io/api/batch/v1beta1/generated.proto
/*
Package v1beta1 is a generated protocol buffer package.
It is generated from these files:
k8s.io/kubernetes/vendor/k8s.io/api/batch/v1beta1/generated.proto
It has these top-level messages:
CronJob
CronJobList
CronJobSpec
CronJobStatus
JobTemplate
JobTemplateSpec
*/
package v1beta1
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import k8s_io_api_core_v1 "k8s.io/api/core/v1"
import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
import strings "strings"
import reflect "reflect"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
func (m *CronJob) Reset() { *m = CronJob{} }
func (*CronJob) ProtoMessage() {}
func (*CronJob) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
func (m *CronJobList) Reset() { *m = CronJobList{} }
func (*CronJobList) ProtoMessage() {}
func (*CronJobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
func (m *CronJobSpec) Reset() { *m = CronJobSpec{} }
func (*CronJobSpec) ProtoMessage() {}
func (*CronJobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
func (m *CronJobStatus) Reset() { *m = CronJobStatus{} }
func (*CronJobStatus) ProtoMessage() {}
func (*CronJobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
func (m *JobTemplate) Reset() { *m = JobTemplate{} }
func (*JobTemplate) ProtoMessage() {}
func (*JobTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
func (m *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} }
func (*JobTemplateSpec) ProtoMessage() {}
func (*JobTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
func init() {
proto.RegisterType((*CronJob)(nil), "k8s.io.api.batch.v1beta1.CronJob")
proto.RegisterType((*CronJobList)(nil), "k8s.io.api.batch.v1beta1.CronJobList")
proto.RegisterType((*CronJobSpec)(nil), "k8s.io.api.batch.v1beta1.CronJobSpec")
proto.RegisterType((*CronJobStatus)(nil), "k8s.io.api.batch.v1beta1.CronJobStatus")
proto.RegisterType((*JobTemplate)(nil), "k8s.io.api.batch.v1beta1.JobTemplate")
proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.api.batch.v1beta1.JobTemplateSpec")
}
func (m *CronJob) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CronJob) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n1
dAtA[i] = 0x12
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
n2, err := m.Spec.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
dAtA[i] = 0x1a
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
n3, err := m.Status.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n3
return i, nil
}
func (m *CronJobList) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CronJobList) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
n4, err := m.ListMeta.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n4
if len(m.Items) > 0 {
for _, msg := range m.Items {
dAtA[i] = 0x12
i++
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
return i, nil
}
func (m *CronJobSpec) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CronJobSpec) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule)))
i += copy(dAtA[i:], m.Schedule)
if m.StartingDeadlineSeconds != nil {
dAtA[i] = 0x10
i++
i = encodeVarintGenerated(dAtA, i, uint64(*m.StartingDeadlineSeconds))
}
dAtA[i] = 0x1a
i++
i = encodeVarintGenerated(dAtA, i, uint64(len(m.ConcurrencyPolicy)))
i += copy(dAtA[i:], m.ConcurrencyPolicy)
if m.Suspend != nil {
dAtA[i] = 0x20
i++
if *m.Suspend {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i++
}
dAtA[i] = 0x2a
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.JobTemplate.Size()))
n5, err := m.JobTemplate.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n5
if m.SuccessfulJobsHistoryLimit != nil {
dAtA[i] = 0x30
i++
i = encodeVarintGenerated(dAtA, i, uint64(*m.SuccessfulJobsHistoryLimit))
}
if m.FailedJobsHistoryLimit != nil {
dAtA[i] = 0x38
i++
i = encodeVarintGenerated(dAtA, i, uint64(*m.FailedJobsHistoryLimit))
}
return i, nil
}
func (m *CronJobStatus) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CronJobStatus) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Active) > 0 {
for _, msg := range m.Active {
dAtA[i] = 0xa
i++
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.LastScheduleTime != nil {
dAtA[i] = 0x22
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.LastScheduleTime.Size()))
n6, err := m.LastScheduleTime.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n6
}
return i, nil
}
func (m *JobTemplate) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *JobTemplate) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
n7, err := m.ObjectMeta.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n7
dAtA[i] = 0x12
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.Template.Size()))
n8, err := m.Template.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n8
return i, nil
}
func (m *JobTemplateSpec) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *JobTemplateSpec) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
n9, err := m.ObjectMeta.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n9
dAtA[i] = 0x12
i++
i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
n10, err := m.Spec.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n10
return i, nil
}
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return offset + 1
}
func (m *CronJob) Size() (n int) {
var l int
_ = l
l = m.ObjectMeta.Size()
n += 1 + l + sovGenerated(uint64(l))
l = m.Spec.Size()
n += 1 + l + sovGenerated(uint64(l))
l = m.Status.Size()
n += 1 + l + sovGenerated(uint64(l))
return n
}
func (m *CronJobList) Size() (n int) {
var l int
_ = l
l = m.ListMeta.Size()
n += 1 + l + sovGenerated(uint64(l))
if len(m.Items) > 0 {
for _, e := range m.Items {
l = e.Size()
n += 1 + l + sovGenerated(uint64(l))
}
}
return n
}
func (m *CronJobSpec) Size() (n int) {
var l int
_ = l
l = len(m.Schedule)
n += 1 + l + sovGenerated(uint64(l))
if m.StartingDeadlineSeconds != nil {
n += 1 + sovGenerated(uint64(*m.StartingDeadlineSeconds))
}
l = len(m.ConcurrencyPolicy)
n += 1 + l + sovGenerated(uint64(l))
if m.Suspend != nil {
n += 2
}
l = m.JobTemplate.Size()
n += 1 + l + sovGenerated(uint64(l))
if m.SuccessfulJobsHistoryLimit != nil {
n += 1 + sovGenerated(uint64(*m.SuccessfulJobsHistoryLimit))
}
if m.FailedJobsHistoryLimit != nil {
n += 1 + sovGenerated(uint64(*m.FailedJobsHistoryLimit))
}
return n
}
func (m *CronJobStatus) Size() (n int) {
var l int
_ = l
if len(m.Active) > 0 {
for _, e := range m.Active {
l = e.Size()
n += 1 + l + sovGenerated(uint64(l))
}
}
if m.LastScheduleTime != nil {
l = m.LastScheduleTime.Size()
n += 1 + l + sovGenerated(uint64(l))
}
return n
}
func (m *JobTemplate) Size() (n int) {
var l int
_ = l
l = m.ObjectMeta.Size()
n += 1 + l + sovGenerated(uint64(l))
l = m.Template.Size()
n += 1 + l + sovGenerated(uint64(l))
return n
}
func (m *JobTemplateSpec) Size() (n int) {
var l int
_ = l
l = m.ObjectMeta.Size()
n += 1 + l + sovGenerated(uint64(l))
l = m.Spec.Size()
n += 1 + l + sovGenerated(uint64(l))
return n
}
func sovGenerated(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozGenerated(x uint64) (n int) {
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *CronJob) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CronJob{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CronJobSpec", "CronJobSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "CronJobStatus", "CronJobStatus", 1), `&`, ``, 1) + `,`,
`}`,
}, "")
return s
}
func (this *CronJobList) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CronJobList{`,
`ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
`Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "CronJob", "CronJob", 1), `&`, ``, 1) + `,`,
`}`,
}, "")
return s
}
func (this *CronJobSpec) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CronJobSpec{`,
`Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`,
`StartingDeadlineSeconds:` + valueToStringGenerated(this.StartingDeadlineSeconds) + `,`,
`ConcurrencyPolicy:` + fmt.Sprintf("%v", this.ConcurrencyPolicy) + `,`,
`Suspend:` + valueToStringGenerated(this.Suspend) + `,`,
`JobTemplate:` + strings.Replace(strings.Replace(this.JobTemplate.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
`SuccessfulJobsHistoryLimit:` + valueToStringGenerated(this.SuccessfulJobsHistoryLimit) + `,`,
`FailedJobsHistoryLimit:` + valueToStringGenerated(this.FailedJobsHistoryLimit) + `,`,
`}`,
}, "")
return s
}
func (this *CronJobStatus) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CronJobStatus{`,
`Active:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Active), "ObjectReference", "k8s_io_api_core_v1.ObjectReference", 1), `&`, ``, 1) + `,`,
`LastScheduleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScheduleTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`,
`}`,
}, "")
return s
}
func (this *JobTemplate) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&JobTemplate{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Template:` + strings.Replace(strings.Replace(this.Template.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
`}`,
}, "")
return s
}
func (this *JobTemplateSpec) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&JobTemplateSpec{`,
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "k8s_io_api_batch_v1.JobSpec", 1), `&`, ``, 1) + `,`,
`}`,
}, "")
return s
}
func valueToStringGenerated(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
func (m *CronJob) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: CronJob: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CronJob: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CronJobList) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: CronJobList: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CronJobList: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Items = append(m.Items, CronJob{})
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CronJobSpec) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: CronJobSpec: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CronJobSpec: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Schedule = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", wireType)
}
var v int64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (int64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.StartingDeadlineSeconds = &v
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ConcurrencyPolicy = ConcurrencyPolicy(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
b := bool(v != 0)
m.Suspend = &b
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field JobTemplate", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.JobTemplate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulJobsHistoryLimit", wireType)
}
var v int32
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.SuccessfulJobsHistoryLimit = &v
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field FailedJobsHistoryLimit", wireType)
}
var v int32
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
m.FailedJobsHistoryLimit = &v
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CronJobStatus) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: CronJobStatus: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CronJobStatus: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Active = append(m.Active, k8s_io_api_core_v1.ObjectReference{})
if err := m.Active[len(m.Active)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.LastScheduleTime == nil {
m.LastScheduleTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{}
}
if err := m.LastScheduleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *JobTemplate) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: JobTemplate: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: JobTemplate: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *JobTemplateSpec) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: JobTemplateSpec: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: JobTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipGenerated(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenerated
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenerated
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenerated
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthGenerated
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenerated
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipGenerated(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
)
func init() {
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/batch/v1beta1/generated.proto", fileDescriptorGenerated)
}
var fileDescriptorGenerated = []byte{
// 771 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xcf, 0x6f, 0xe3, 0x44,
0x14, 0xc7, 0xe3, 0x34, 0xbf, 0x76, 0xc2, 0x42, 0xd7, 0xa0, 0x5d, 0x2b, 0x20, 0x27, 0x64, 0xb5,
0x22, 0x20, 0x76, 0x4c, 0x2b, 0x84, 0x38, 0x21, 0xad, 0x17, 0x2d, 0x50, 0x8a, 0x16, 0x39, 0x45,
0x48, 0xa8, 0x42, 0x1d, 0x8f, 0x5f, 0x92, 0x69, 0x6c, 0x8f, 0xe5, 0x19, 0x47, 0xca, 0x8d, 0x0b,
0x77, 0xfe, 0x11, 0x4e, 0xfc, 0x13, 0x11, 0xa7, 0x1e, 0x7b, 0x8a, 0xa8, 0xf9, 0x2f, 0x38, 0x21,
0x4f, 0x9c, 0x1f, 0xcd, 0x8f, 0xb6, 0x7b, 0xe9, 0xcd, 0xf3, 0xe6, 0xfb, 0xfd, 0xcc, 0xf3, 0x7b,
0x6f, 0x06, 0xbd, 0x18, 0x7e, 0x29, 0x30, 0xe3, 0xd6, 0x30, 0x71, 0x21, 0x0e, 0x41, 0x82, 0xb0,
0x46, 0x10, 0x7a, 0x3c, 0xb6, 0xf2, 0x0d, 0x12, 0x31, 0xcb, 0x25, 0x92, 0x0e, 0xac, 0xd1, 0x81,
0x0b, 0x92, 0x1c, 0x58, 0x7d, 0x08, 0x21, 0x26, 0x12, 0x3c, 0x1c, 0xc5, 0x5c, 0x72, 0xdd, 0x98,
0x29, 0x31, 0x89, 0x18, 0x56, 0x4a, 0x9c, 0x2b, 0x1b, 0xcf, 0xfb, 0x4c, 0x0e, 0x12, 0x17, 0x53,
0x1e, 0x58, 0x7d, 0xde, 0xe7, 0x96, 0x32, 0xb8, 0x49, 0x4f, 0xad, 0xd4, 0x42, 0x7d, 0xcd, 0x40,
0x8d, 0xa7, 0x5b, 0x8e, 0x5c, 0x3f, 0xad, 0xd1, 0x5e, 0x11, 0x51, 0x1e, 0xc3, 0x36, 0xcd, 0xe7,
0x4b, 0x4d, 0x40, 0xe8, 0x80, 0x85, 0x10, 0x8f, 0xad, 0x68, 0xd8, 0xcf, 0x02, 0xc2, 0x0a, 0x40,
0x92, 0x6d, 0x2e, 0x6b, 0x97, 0x2b, 0x4e, 0x42, 0xc9, 0x02, 0xd8, 0x30, 0x7c, 0x71, 0x9b, 0x41,
0xd0, 0x01, 0x04, 0x64, 0xdd, 0xd7, 0xfe, 0xbd, 0x88, 0xaa, 0x2f, 0x63, 0x1e, 0x1e, 0x71, 0x57,
0x3f, 0x43, 0xb5, 0x2c, 0x1f, 0x8f, 0x48, 0x62, 0x68, 0x2d, 0xad, 0x53, 0x3f, 0xfc, 0x0c, 0x2f,
0xeb, 0xb9, 0xc0, 0xe2, 0x68, 0xd8, 0xcf, 0x02, 0x02, 0x67, 0x6a, 0x3c, 0x3a, 0xc0, 0xaf, 0xdd,
0x73, 0xa0, 0xf2, 0x07, 0x90, 0xc4, 0xd6, 0x27, 0xd3, 0x66, 0x21, 0x9d, 0x36, 0xd1, 0x32, 0xe6,
0x2c, 0xa8, 0xfa, 0x37, 0xa8, 0x24, 0x22, 0xa0, 0x46, 0x51, 0xd1, 0x9f, 0xe1, 0x5d, 0xdd, 0xc2,
0x79, 0x4a, 0xdd, 0x08, 0xa8, 0xfd, 0x56, 0x8e, 0x2c, 0x65, 0x2b, 0x47, 0x01, 0xf4, 0xd7, 0xa8,
0x22, 0x24, 0x91, 0x89, 0x30, 0xf6, 0x14, 0xea, 0xa3, 0xdb, 0x51, 0x4a, 0x6e, 0xbf, 0x9d, 0xc3,
0x2a, 0xb3, 0xb5, 0x93, 0x63, 0xda, 0x7f, 0x69, 0xa8, 0x9e, 0x2b, 0x8f, 0x99, 0x90, 0xfa, 0xe9,
0x46, 0x2d, 0xf0, 0xdd, 0x6a, 0x91, 0xb9, 0x55, 0x25, 0xf6, 0xf3, 0x93, 0x6a, 0xf3, 0xc8, 0x4a,
0x1d, 0x5e, 0xa1, 0x32, 0x93, 0x10, 0x08, 0xa3, 0xd8, 0xda, 0xeb, 0xd4, 0x0f, 0x3f, 0xbc, 0x35,
0x7b, 0xfb, 0x61, 0x4e, 0x2b, 0x7f, 0x97, 0xf9, 0x9c, 0x99, 0xbd, 0xfd, 0x67, 0x69, 0x91, 0x75,
0x56, 0x1c, 0xfd, 0x53, 0x54, 0xcb, 0xfa, 0xec, 0x25, 0x3e, 0xa8, 0xac, 0x1f, 0x2c, 0xb3, 0xe8,
0xe6, 0x71, 0x67, 0xa1, 0xd0, 0x7f, 0x42, 0x4f, 0x84, 0x24, 0xb1, 0x64, 0x61, 0xff, 0x6b, 0x20,
0x9e, 0xcf, 0x42, 0xe8, 0x02, 0xe5, 0xa1, 0x27, 0x54, 0x83, 0xf6, 0xec, 0xf7, 0xd3, 0x69, 0xf3,
0x49, 0x77, 0xbb, 0xc4, 0xd9, 0xe5, 0xd5, 0x4f, 0xd1, 0x23, 0xca, 0x43, 0x9a, 0xc4, 0x31, 0x84,
0x74, 0xfc, 0x23, 0xf7, 0x19, 0x1d, 0xab, 0x36, 0x3d, 0xb0, 0x71, 0x9e, 0xcd, 0xa3, 0x97, 0xeb,
0x82, 0xff, 0xb6, 0x05, 0x9d, 0x4d, 0x90, 0xfe, 0x0c, 0x55, 0x45, 0x22, 0x22, 0x08, 0x3d, 0xa3,
0xd4, 0xd2, 0x3a, 0x35, 0xbb, 0x9e, 0x4e, 0x9b, 0xd5, 0xee, 0x2c, 0xe4, 0xcc, 0xf7, 0xf4, 0x33,
0x54, 0x3f, 0xe7, 0xee, 0x09, 0x04, 0x91, 0x4f, 0x24, 0x18, 0x65, 0xd5, 0xc2, 0x8f, 0x77, 0xd7,
0xf9, 0x68, 0x29, 0x56, 0x43, 0xf7, 0x6e, 0x9e, 0x69, 0x7d, 0x65, 0xc3, 0x59, 0x45, 0xea, 0xbf,
0xa2, 0x86, 0x48, 0x28, 0x05, 0x21, 0x7a, 0x89, 0x7f, 0xc4, 0x5d, 0xf1, 0x2d, 0x13, 0x92, 0xc7,
0xe3, 0x63, 0x16, 0x30, 0x69, 0x54, 0x5a, 0x5a, 0xa7, 0x6c, 0x9b, 0xe9, 0xb4, 0xd9, 0xe8, 0xee,
0x54, 0x39, 0x37, 0x10, 0x74, 0x07, 0x3d, 0xee, 0x11, 0xe6, 0x83, 0xb7, 0xc1, 0xae, 0x2a, 0x76,
0x23, 0x9d, 0x36, 0x1f, 0xbf, 0xda, 0xaa, 0x70, 0x76, 0x38, 0xdb, 0x7f, 0x6b, 0xe8, 0xe1, 0xb5,
0xfb, 0xa0, 0x7f, 0x8f, 0x2a, 0x84, 0x4a, 0x36, 0xca, 0xe6, 0x25, 0x1b, 0xc5, 0xa7, 0xab, 0x25,
0xca, 0xde, 0xb4, 0xe5, 0xfd, 0x76, 0xa0, 0x07, 0x59, 0x27, 0x60, 0x79, 0x89, 0x5e, 0x28, 0xab,
0x93, 0x23, 0x74, 0x1f, 0xed, 0xfb, 0x44, 0xc8, 0xf9, 0xa8, 0x9d, 0xb0, 0x00, 0x54, 0x93, 0xea,
0x87, 0x9f, 0xdc, 0xed, 0xf2, 0x64, 0x0e, 0xfb, 0xbd, 0x74, 0xda, 0xdc, 0x3f, 0x5e, 0xe3, 0x38,
0x1b, 0xe4, 0xf6, 0x44, 0x43, 0xab, 0xdd, 0xb9, 0x87, 0xe7, 0xeb, 0x67, 0x54, 0x93, 0xf3, 0x89,
0x2a, 0xbe, 0xe9, 0x44, 0x2d, 0x6e, 0xe2, 0x62, 0x9c, 0x16, 0xb0, 0xec, 0xf5, 0x79, 0x67, 0x4d,
0x7f, 0x0f, 0xbf, 0xf3, 0xd5, 0xb5, 0xd7, 0xf8, 0x83, 0x6d, 0xbf, 0x82, 0x6f, 0x78, 0x84, 0xed,
0xe7, 0x93, 0x2b, 0xb3, 0x70, 0x71, 0x65, 0x16, 0x2e, 0xaf, 0xcc, 0xc2, 0x6f, 0xa9, 0xa9, 0x4d,
0x52, 0x53, 0xbb, 0x48, 0x4d, 0xed, 0x32, 0x35, 0xb5, 0x7f, 0x52, 0x53, 0xfb, 0xe3, 0x5f, 0xb3,
0xf0, 0x4b, 0x35, 0x2f, 0xc8, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x9f, 0xb3, 0xdd, 0xdf,
0x07, 0x00, 0x00,
}
| {
"pile_set_name": "Github"
} |
/// <reference types="cypress" />
import Form from './Form.vue'
import { mount } from '@cypress/vue'
describe('Form', () => {
const getByLabelText = (text) => {
return cy
.contains('label', text)
.invoke('attr', 'for')
.then((id) => {
return cy.get('input#' + id)
})
}
it('User can type and see output on the screen', () => {
mount(Form)
// save references to input fields
getByLabelText('Name').as('name')
getByLabelText('Email').as('email')
cy.contains('Submit').as('submit')
// initially the submit button is disabled
cy.get('@submit').should('be.disabled')
// Update the name field.
cy.get('@name').type('James John')
cy.get('@submit').should('be.disabled')
// Add email.
cy.get('@email').type('[email protected]')
cy.get('@submit').should('not.be.disabled')
})
})
| {
"pile_set_name": "Github"
} |
// Copyright 2015 The etcd 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 httptypes defines how etcd's HTTP API entities are serialized to and
// deserialized from JSON.
package httptypes
import (
"encoding/json"
"github.com/coreos/etcd/pkg/types"
)
type Member struct {
ID string `json:"id"`
Name string `json:"name"`
PeerURLs []string `json:"peerURLs"`
ClientURLs []string `json:"clientURLs"`
}
type MemberCreateRequest struct {
PeerURLs types.URLs
}
type MemberUpdateRequest struct {
MemberCreateRequest
}
func (m *MemberCreateRequest) UnmarshalJSON(data []byte) error {
s := struct {
PeerURLs []string `json:"peerURLs"`
}{}
err := json.Unmarshal(data, &s)
if err != nil {
return err
}
urls, err := types.NewURLs(s.PeerURLs)
if err != nil {
return err
}
m.PeerURLs = urls
return nil
}
type MemberCollection []Member
func (c *MemberCollection) MarshalJSON() ([]byte, error) {
d := struct {
Members []Member `json:"members"`
}{
Members: []Member(*c),
}
return json.Marshal(d)
}
| {
"pile_set_name": "Github"
} |
package io.yawp.driver.postgresql.datastore;
import io.yawp.repository.Namespace;
public class NamespaceManager {
private static ThreadLocal<String> namespace = new ThreadLocal<>();
private NamespaceManager() {}
public static String get() {
String ns = namespace.get();
return ns == null ? Namespace.GLOBAL : ns;
}
public static void set(String ns) {
namespace.set(ns);
}
}
| {
"pile_set_name": "Github"
} |
#!/usr/bin/env python2
## -*- coding: utf-8 -*-
import sys
def sx(bits, value):
sign_bit = 1 << (bits - 1)
return (value & (sign_bit - 1)) - (value & sign_bit)
SymVar_0 = int(sys.argv[1])
ref_263 = SymVar_0
ref_278 = ref_263 # MOV operation
ref_5594 = ref_278 # MOV operation
ref_5670 = ref_5594 # MOV operation
ref_5684 = (ref_5670 >> (0x33 & 0x3F)) # SHR operation
ref_6638 = ref_278 # MOV operation
ref_6714 = ref_6638 # MOV operation
ref_6728 = ((ref_6714 << (0xD & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_6829 = ref_6728 # MOV operation
ref_6841 = ref_5684 # MOV operation
ref_6843 = (ref_6841 | ref_6829) # OR operation
ref_7774 = ref_6843 # MOV operation
ref_8723 = ref_278 # MOV operation
ref_8799 = ref_8723 # MOV operation
ref_8815 = ((((0x0) << 64 | ref_8799) / 0x6) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_9036 = ref_8815 # MOV operation
ref_9042 = (((sx(0x40, 0xFA0000000002C90C) * sx(0x40, ref_9036)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9970 = ref_9042 # MOV operation
ref_10888 = ref_9970 # MOV operation
ref_11786 = ref_7774 # MOV operation
ref_11862 = ref_11786 # MOV operation
ref_11874 = ref_10888 # MOV operation
ref_11876 = (ref_11874 | ref_11862) # OR operation
ref_12714 = ref_278 # MOV operation
ref_12790 = ref_12714 # MOV operation
ref_12802 = ref_11876 # MOV operation
ref_12804 = ((ref_12802 + ref_12790) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_13736 = ref_12804 # MOV operation
ref_15118 = ref_7774 # MOV operation
ref_15318 = ref_15118 # MOV operation
ref_15324 = ((ref_15318 - 0x2ED5CD7E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_15332 = ref_15324 # MOV operation
ref_15440 = ref_15332 # MOV operation
ref_15442 = ((0x28E5FC28 - ref_15440) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_15450 = ref_15442 # MOV operation
ref_15546 = ref_15450 # MOV operation
ref_15560 = (ref_15546 >> (0x2 & 0x3F)) # SHR operation
ref_15661 = ref_15560 # MOV operation
ref_15675 = (0x7 & ref_15661) # AND operation
ref_15776 = ref_15675 # MOV operation
ref_15790 = (0x1 | ref_15776) # OR operation
ref_16713 = ref_9970 # MOV operation
ref_17526 = ref_278 # MOV operation
ref_17602 = ref_17526 # MOV operation
ref_17614 = ref_16713 # MOV operation
ref_17616 = ((ref_17614 + ref_17602) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_17718 = ref_17616 # MOV operation
ref_17730 = ref_15790 # MOV operation
ref_17732 = (ref_17718 >> ((ref_17730 & 0xFF) & 0x3F)) # SHR operation
ref_18663 = ref_17732 # MOV operation
ref_19929 = ref_18663 # MOV operation
ref_20005 = ref_19929 # MOV operation
ref_20019 = (ref_20005 >> (0x1 & 0x3F)) # SHR operation
ref_20120 = ref_20019 # MOV operation
ref_20134 = (0x7 & ref_20120) # AND operation
ref_20235 = ref_20134 # MOV operation
ref_20249 = (0x1 | ref_20235) # OR operation
ref_21172 = ref_18663 # MOV operation
ref_21248 = ref_21172 # MOV operation
ref_21260 = ref_20249 # MOV operation
ref_21262 = (ref_21248 >> ((ref_21260 & 0xFF) & 0x3F)) # SHR operation
ref_22193 = ref_21262 # MOV operation
ref_22195 = ((ref_22193 >> 56) & 0xFF) # Byte reference - MOV operation
ref_22196 = ((ref_22193 >> 48) & 0xFF) # Byte reference - MOV operation
ref_22197 = ((ref_22193 >> 40) & 0xFF) # Byte reference - MOV operation
ref_22198 = ((ref_22193 >> 32) & 0xFF) # Byte reference - MOV operation
ref_22199 = ((ref_22193 >> 24) & 0xFF) # Byte reference - MOV operation
ref_22200 = ((ref_22193 >> 16) & 0xFF) # Byte reference - MOV operation
ref_22201 = ((ref_22193 >> 8) & 0xFF) # Byte reference - MOV operation
ref_22202 = (ref_22193 & 0xFF) # Byte reference - MOV operation
ref_24416 = ref_7774 # MOV operation
ref_24492 = ref_24416 # MOV operation
ref_24506 = (0x7 & ref_24492) # AND operation
ref_24607 = ref_24506 # MOV operation
ref_24621 = ((ref_24607 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_25544 = ref_13736 # MOV operation
ref_25620 = ref_25544 # MOV operation
ref_25632 = ref_24621 # MOV operation
ref_25634 = (ref_25632 | ref_25620) # OR operation
ref_26565 = ref_25634 # MOV operation
ref_28089 = ((((ref_22195) << 8 | ref_22196) << 8 | ref_22197) << 8 | ref_22198) # MOV operation
ref_28297 = (ref_28089 & 0xFFFFFFFF) # MOV operation
ref_29817 = ((((ref_22199) << 8 | ref_22200) << 8 | ref_22201) << 8 | ref_22202) # MOV operation
ref_31325 = (ref_29817 & 0xFFFFFFFF) # MOV operation
ref_31545 = (ref_28297 & 0xFFFFFFFF) # MOV operation
ref_33053 = (ref_31545 & 0xFFFFFFFF) # MOV operation
ref_35592 = ref_26565 # MOV operation
ref_35668 = ref_35592 # MOV operation
ref_35682 = (0x7 & ref_35668) # AND operation
ref_35783 = ref_35682 # MOV operation
ref_35797 = ((ref_35783 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_36720 = ref_26565 # MOV operation
ref_36796 = ref_36720 # MOV operation
ref_36808 = ref_35797 # MOV operation
ref_36810 = (ref_36808 | ref_36796) # OR operation
ref_37741 = ref_36810 # MOV operation
ref_39265 = (ref_31325 & 0xFFFFFFFF) # MOV operation
ref_39473 = (ref_39265 & 0xFFFFFFFF) # MOV operation
ref_40993 = (ref_33053 & 0xFFFFFFFF) # MOV operation
ref_42501 = (ref_40993 & 0xFFFFFFFF) # MOV operation
ref_42503 = (((ref_42501 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_42504 = (((ref_42501 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_42505 = (((ref_42501 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_42506 = ((ref_42501 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_42721 = (ref_39473 & 0xFFFFFFFF) # MOV operation
ref_44229 = (ref_42721 & 0xFFFFFFFF) # MOV operation
ref_44231 = (((ref_44229 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_44232 = (((ref_44229 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_44233 = (((ref_44229 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_44234 = ((ref_44229 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_46957 = ref_37741 # MOV operation
ref_47855 = ((((((((ref_42503) << 8 | ref_42504) << 8 | ref_42505) << 8 | ref_42506) << 8 | ref_44231) << 8 | ref_44232) << 8 | ref_44233) << 8 | ref_44234) # MOV operation
ref_48055 = ref_47855 # MOV operation
ref_48061 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_48055)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_48167 = ref_46957 # MOV operation
ref_48171 = ref_48061 # MOV operation
ref_48173 = (ref_48171 ^ ref_48167) # XOR operation
ref_48274 = ref_48173 # MOV operation
ref_48288 = (0xF & ref_48274) # AND operation
ref_48389 = ref_48288 # MOV operation
ref_48403 = (0x1 | ref_48389) # OR operation
ref_48516 = ref_48403 # MOV operation
ref_48518 = ((0x40 - ref_48516) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_48526 = ref_48518 # MOV operation
ref_49444 = ref_7774 # MOV operation
ref_50342 = ref_9970 # MOV operation
ref_50426 = ref_49444 # MOV operation
ref_50430 = ref_50342 # MOV operation
ref_50432 = (((sx(0x40, ref_50430) * sx(0x40, ref_50426)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_50530 = ref_50432 # MOV operation
ref_50542 = ref_48526 # MOV operation
ref_50544 = (ref_50530 >> ((ref_50542 & 0xFF) & 0x3F)) # SHR operation
ref_51699 = ref_37741 # MOV operation
ref_52597 = ((((((((ref_42503) << 8 | ref_42504) << 8 | ref_42505) << 8 | ref_42506) << 8 | ref_44231) << 8 | ref_44232) << 8 | ref_44233) << 8 | ref_44234) # MOV operation
ref_52797 = ref_52597 # MOV operation
ref_52803 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_52797)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_52909 = ref_51699 # MOV operation
ref_52913 = ref_52803 # MOV operation
ref_52915 = (ref_52913 ^ ref_52909) # XOR operation
ref_53016 = ref_52915 # MOV operation
ref_53030 = (0xF & ref_53016) # AND operation
ref_53131 = ref_53030 # MOV operation
ref_53145 = (0x1 | ref_53131) # OR operation
ref_54068 = ref_7774 # MOV operation
ref_54966 = ref_9970 # MOV operation
ref_55050 = ref_54068 # MOV operation
ref_55054 = ref_54966 # MOV operation
ref_55056 = (((sx(0x40, ref_55054) * sx(0x40, ref_55050)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_55154 = ref_55056 # MOV operation
ref_55166 = ref_53145 # MOV operation
ref_55168 = ((ref_55154 << ((ref_55166 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_55269 = ref_55168 # MOV operation
ref_55281 = ref_50544 # MOV operation
ref_55283 = (ref_55281 | ref_55269) # OR operation
ref_56138 = ref_55283 # MOV operation
ref_56349 = ref_56138 # MOV operation
ref_56351 = ref_56349 # MOV operation
print ref_56351 & 0xffffffffffffffff
| {
"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 "MMObject.h"
#import "ShareConfirmViewDelegate.h"
@class CMessageWrap, NSData, NSDictionary, NSString, ShareConfirmView;
@interface ShareMessageConfirmLogicHelper : MMObject <ShareConfirmViewDelegate>
{
ShareConfirmView *_confirmView;
CMessageWrap *_msgWrap;
id <ShareMessageConfirmLogicHelperDelegate> _delegate;
NSData *_imageData;
NSString *_thumbImageUrl;
unsigned int _scene;
_Bool _isShowTextView;
_Bool _isAddMessage;
_Bool _isAddTextMessage;
_Bool _isShowSendSuccessView;
unsigned int _style;
_Bool _hasBeenHidden;
NSDictionary *_userData;
}
@property(retain, nonatomic) NSDictionary *userData; // @synthesize userData=_userData;
@property(nonatomic) _Bool isShowSendSuccessView; // @synthesize isShowSendSuccessView=_isShowSendSuccessView;
@property(nonatomic) _Bool isAddTextMessage; // @synthesize isAddTextMessage=_isAddTextMessage;
@property(nonatomic) _Bool isAddMessage; // @synthesize isAddMessage=_isAddMessage;
@property(retain, nonatomic) NSString *thumbImageUrl; // @synthesize thumbImageUrl=_thumbImageUrl;
@property(retain, nonatomic) NSData *imageData; // @synthesize imageData=_imageData;
@property(retain, nonatomic) CMessageWrap *msgWrap; // @synthesize msgWrap=_msgWrap;
@property(nonatomic) __weak id <ShareMessageConfirmLogicHelperDelegate> delegate; // @synthesize delegate=_delegate;
- (void).cxx_destruct;
- (void)OnStayAtWeChat:(id)arg1;
- (void)OnBackToApp:(id)arg1;
- (void)OnError:(id)arg1;
- (void)OnCancel:(id)arg1;
- (void)OnSend:(id)arg1;
- (void)shareAppMessage;
- (void)rotateToOrientaion:(long long)arg1;
- (void)rotateToCurrentOrietation;
- (void)hideConfirmView;
- (void)showConfirmView;
- (void)showConfirmViewWithInputText:(id)arg1;
- (void)showConfirmViewWithInputText:(id)arg1 showText:(id)arg2;
- (void)setConfirmViewStyle:(int)arg1;
- (void)dealloc;
- (id)initWithMessageWrap:(id)arg1 isShowTextView:(_Bool)arg2 andAppScene:(unsigned int)arg3;
// 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"
} |
<table cellpadding="2" cellspacing="1" width="98%">
<tr>
<td width="100">选项列表</td>
<td><textarea name="setting[options]" rows="2" cols="20" id="options" style="height:100px;width:400px;">选项名称1|选项值1</textarea></td>
</tr>
<tr>
<td>选项类型</td>
<td>
<input type="radio" name="setting[boxtype]" value="radio" checked onclick="$('#setcols').show();$('#setsize').hide();"/> 单选按钮
<input type="radio" name="setting[boxtype]" value="checkbox" onclick="$('#setcols').show();$('setsize').hide();"/> 复选框
<input type="radio" name="setting[boxtype]" value="select" onclick="$('#setcols').hide();$('setsize').show();" /> 下拉框
<input type="radio" name="setting[boxtype]" value="multiple" onclick="$('#setcols').hide();$('setsize').show();" /> 多选列表框
</td>
</tr>
<tr>
<td>字段类型</td>
<td>
<select name="setting[fieldtype]" onchange="javascript:fieldtype_setting(this.value);">
<option value="varchar">字符 VARCHAR</option>
<option value="tinyint">整数 TINYINT(3)</option>
<option value="smallint">整数 SMALLINT(5)</option>
<option value="mediumint">整数 MEDIUMINT(8)</option>
<option value="int">整数 INT(10)</option>
</select> <span id="minnumber" style="display:none"><input type="radio" name="setting[minnumber]" value="1" checked/> <font color='red'>正整数</font> <input type="radio" name="setting[minnumber]" value="-1" /> 整数</span>
</td>
</tr>
<tbody id="setcols" style="display:">
<tr>
<td>列数</td>
<td><input type="text" name="setting[cols]" value="5" size="5" class="input-text"> 每行显示的选项个数</td>
</tr>
<tr>
<td>每列宽度</td>
<td><input type="text" name="setting[width]" value="80" size="5" class="input-text"> px</td>
</tr>
</tbody>
<tbody id="setsize" style="display:none">
<tr>
<td>高度</td>
<td><input type="text" name="setting[size]" value="1" size="5" class="input-text"> 行</td>
</tr>
</tbody>
<tr>
<td>默认值</td>
<td><input type="text" name="setting[defaultvalue]" size="40" class="input-text"></td>
</tr>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
function fieldtype_setting(obj) {
if(obj!='varchar') {
$('#minnumber').css('display','');
} else {
$('#minnumber').css('display','none');
}
}
//-->
</SCRIPT> | {
"pile_set_name": "Github"
} |
import sbt._
import Keys._
import Settings._
import java.io.{File, IOException, FileInputStream}
import org.apache.commons.codec.binary.Base64
import scala.util.parsing.json.JSON
import scalaj.http._
import scala.util.{Try, Success, Failure}
case class AssignmentInfo(
key: String,
itemId: String,
premiumItemId: Option[String],
partId: String,
styleSheet: Option[File => File]
)
case class MapMapString (map: Map[String, Map[String, String]])
/**
* Note: keep this class concrete (i.e., do not convert it to abstract class or trait).
*/
class StudentBuildLike protected() extends CommonBuild {
val assignmentInfo = SettingKey[AssignmentInfo]("assignmentInfo")
lazy val root = project.in(file(".")).settings(
submitSetting,
submitLocalSetting,
commonSourcePackages := Seq(), // see build.sbt
styleCheckSetting,
libraryDependencies += scalaTestDependency
).settings(packageSubmissionFiles: _*)
/** **********************************************************
* SUBMITTING A SOLUTION TO COURSERA
*/
val packageSubmission = TaskKey[File]("packageSubmission")
val sourceMappingsWithoutPackages =
(scalaSource, commonSourcePackages, unmanagedSources, unmanagedSourceDirectories, baseDirectory, compile in Test) map { (scalaSource, commonSourcePackages, srcs, sdirs, base, _) =>
val allFiles = srcs --- sdirs --- base
val commonSourcePaths = commonSourcePackages.map(scalaSource / _).map(_.getPath)
val withoutCommonSources = allFiles.filter(f => !commonSourcePaths.exists(f.getPath.startsWith))
withoutCommonSources pair (relativeTo(sdirs) | relativeTo(base) | flat)
}
val packageSubmissionFiles = {
// in the packageSubmission task we only use the sources of the assignment and not the common sources. We also do not package resources.
inConfig(Compile)(Defaults.packageTaskSettings(packageSubmission, sourceMappingsWithoutPackages))
}
/** Check that the jar exists, isn't empty, isn't crazy big, and can be read
* If so, encode jar as base64 so we can send it to Coursera
*/
def prepareJar(jar: File, s: TaskStreams): String = {
val errPrefix = "Error submitting assignment jar: "
val fileLength = jar.length()
if (!jar.exists()) {
s.log.error(errPrefix + "jar archive does not exist\n" + jar.getAbsolutePath)
failSubmit()
} else if (fileLength == 0L) {
s.log.error(errPrefix + "jar archive is empty\n" + jar.getAbsolutePath)
failSubmit()
} else if (fileLength > maxSubmitFileSize) {
s.log.error(errPrefix + "jar archive is too big. Allowed size: " +
maxSubmitFileSize + " bytes, found " + fileLength + " bytes.\n" +
jar.getAbsolutePath)
failSubmit()
} else {
val bytes = new Array[Byte](fileLength.toInt)
val sizeRead = try {
val is = new FileInputStream(jar)
val read = is.read(bytes)
is.close()
read
} catch {
case ex: IOException =>
s.log.error(errPrefix + "failed to read sources jar archive\n" + ex.toString)
failSubmit()
}
if (sizeRead != bytes.length) {
s.log.error(errPrefix + "failed to read the sources jar archive, size read: " + sizeRead)
failSubmit()
} else encodeBase64(bytes)
}
}
/** Task to submit solution locally to a given file path */
val submitLocal = inputKey[Unit]("submit local to a given file path")
lazy val submitLocalSetting = submitLocal := {
val args: Seq[String] = Def.spaceDelimited("<arg>").parsed
val s: TaskStreams = streams.value // for logging
val jar = (packageSubmission in Compile).value
val base64Jar = prepareJar(jar, s)
args match {
case path :: Nil =>
scala.tools.nsc.io.File(path).writeAll(base64Jar)
case _ =>
val inputErr =
s"""|Invalid input to `submitLocal`. The required syntax for `submitLocal` is:
|submitLocal <path>
""".stripMargin
s.log.error(inputErr)
failSubmit()
}
}
/** Task to submit a solution to coursera */
val submit = inputKey[Unit]("submit")
lazy val submitSetting = submit := {
val args: Seq[String] = Def.spaceDelimited("<arg>").parsed
val s: TaskStreams = streams.value // for logging
val jar = (packageSubmission in Compile).value
val assignmentDetails = assignmentInfo.value
val assignmentKey = assignmentDetails.key
val courseName =
course.value match {
case "capstone" => "scala-capstone"
case "bigdata" => "scala-spark-big-data"
case other => other
}
val partId = assignmentDetails.partId
val itemId = assignmentDetails.itemId
val premiumItemId = assignmentDetails.premiumItemId
val (email, secret) = args match {
case email :: secret :: Nil =>
(email, secret)
case _ =>
val inputErr =
s"""|Invalid input to `submit`. The required syntax for `submit` is:
|submit <email-address> <submit-token>
|
|The submit token is NOT YOUR LOGIN PASSWORD.
|It can be obtained from the assignment page:
|https://www.coursera.org/learn/$courseName/programming/$itemId
|${
premiumItemId.fold("") { id =>
s"""or (for premium learners):
|https://www.coursera.org/learn/$courseName/programming/$id
""".stripMargin
}
}
""".stripMargin
s.log.error(inputErr)
failSubmit()
}
val base64Jar = prepareJar(jar, s)
val json =
s"""|{
| "assignmentKey":"$assignmentKey",
| "submitterEmail":"$email",
| "secret":"$secret",
| "parts":{
| "$partId":{
| "output":"$base64Jar"
| }
| }
|}""".stripMargin
def postSubmission[T](data: String): Try[HttpResponse[String]] = {
val http = Http("https://www.coursera.org/api/onDemandProgrammingScriptSubmissions.v1")
val hs = List(
("Cache-Control", "no-cache"),
("Content-Type", "application/json")
)
s.log.info("Connecting to Coursera...")
val response = Try(http.postData(data)
.headers(hs)
.option(HttpOptions.connTimeout(10000)) // scalaj default timeout is only 100ms, changing that to 10s
.asString) // kick off HTTP POST
response
}
val connectMsg =
s"""|Attempting to submit "${assignment.value}" assignment in "$courseName" course
|Using:
|- email: $email
|- submit token: $secret""".stripMargin
s.log.info(connectMsg)
def reportCourseraResponse(response: HttpResponse[String]): Unit = {
val code = response.code
val respBody = response.body
/* Sample JSON response from Coursera
{
"message": "Invalid email or token.",
"details": {
"learnerMessage": "Invalid email or token."
}
}
*/
code match {
// case Success, Coursera responds with 2xx HTTP status code
case cde if cde >= 200 && cde < 300 =>
val successfulSubmitMsg =
s"""|Successfully connected to Coursera. (Status $code)
|
|Assignment submitted successfully!
|
|You can see how you scored by going to:
|https://www.coursera.org/learn/$courseName/programming/$itemId/
|${
premiumItemId.fold("") { id =>
s"""or (for premium learners):
|https://www.coursera.org/learn/$courseName/programming/$id
""".stripMargin
}
}
|and clicking on "My Submission".""".stripMargin
s.log.info(successfulSubmitMsg)
// case Failure, Coursera responds with 4xx HTTP status code (client-side failure)
case cde if cde >= 400 && cde < 500 =>
val result = JSON.parseFull(respBody)
val learnerMsg = result match {
case Some(resp: MapMapString) => // MapMapString to get around erasure
resp.map("details")("learnerMessage")
case Some(x) => // shouldn't happen
"Could not parse Coursera's response:\n" + x
case None =>
"Could not parse Coursera's response:\n" + respBody
}
val failedSubmitMsg =
s"""|Submission failed.
|There was something wrong while attempting to submit.
|Coursera says:
|$learnerMsg (Status $code)""".stripMargin
s.log.error(failedSubmitMsg)
}
}
// kick it all off, actually make request
postSubmission(json) match {
case Success(resp) => reportCourseraResponse(resp)
case Failure(e) =>
val failedConnectMsg =
s"""|Connection to Coursera failed.
|There was something wrong while attempting to connect to Coursera.
|Check your internet connection.
|${e.toString}""".stripMargin
s.log.error(failedConnectMsg)
}
}
def failSubmit(): Nothing = {
sys.error("Submission failed")
}
/**
* *****************
* DEALING WITH JARS
*/
def encodeBase64(bytes: Array[Byte]): String =
new String(Base64.encodeBase64(bytes))
/** *****************************************************************
* RUNNING WEIGHTED SCALATEST & STYLE CHECKER ON DEVELOPMENT SOURCES
*/
val styleCheck = TaskKey[Unit]("styleCheck")
val styleCheckSetting = styleCheck := {
val (_, sourceFiles, info, assignmentName) = ((compile in Compile).value, (sources in Compile).value, assignmentInfo.value, assignment.value)
val styleSheet = info.styleSheet
val logger = streams.value.log
styleSheet match {
case None => logger.warn("Can't check style: there is no style sheet provided.")
case Some(ss) =>
val (feedback, score) = StyleChecker.assess(sourceFiles, ss(baseDirectory.value).getPath)
logger.info(
s"""|$feedback
|Style Score: $score out of ${StyleChecker.maxResult}""".stripMargin)
}
}
}
| {
"pile_set_name": "Github"
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { SavingCompleteModalComponent } from './saving-complete-modal.component';
describe('SavingCompleteModalComponent', () => {
let component: SavingCompleteModalComponent;
let fixture: ComponentFixture<SavingCompleteModalComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [SavingCompleteModalComponent],
providers: [
NgbActiveModal,
],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SavingCompleteModalComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
| {
"pile_set_name": "Github"
} |
source_md5="960e6bc380065636a4bafd8532606322"
dest_md5="ddbcbed8207ce7798a6f82ec74a28a51"
| {
"pile_set_name": "Github"
} |
using System;
using System.Linq;
using System.Threading.Tasks;
using OrchardCore.ContentTypes.ViewModels;
using OrchardCore.Deployment;
using OrchardCore.DisplayManagement.Handlers;
using OrchardCore.DisplayManagement.ModelBinding;
using OrchardCore.DisplayManagement.Views;
namespace OrchardCore.ContentTypes.Deployment
{
public class ContentDefinitionDeploymentStepDriver : DisplayDriver<DeploymentStep, ContentDefinitionDeploymentStep>
{
public override IDisplayResult Display(ContentDefinitionDeploymentStep step)
{
return
Combine(
View("ContentDefinitionDeploymentStep_Fields_Summary", step).Location("Summary", "Content"),
View("ContentDefinitionDeploymentStep_Fields_Thumbnail", step).Location("Thumbnail", "Content")
);
}
public override IDisplayResult Edit(ContentDefinitionDeploymentStep step)
{
return Initialize<ContentDefinitionStepViewModel>("ContentDefinitionDeploymentStep_Fields_Edit", model =>
{
model.ContentParts = step.ContentParts;
model.ContentTypes = step.ContentTypes;
model.IncludeAll = step.IncludeAll;
}).Location("Content");
}
public override async Task<IDisplayResult> UpdateAsync(ContentDefinitionDeploymentStep step, IUpdateModel updater)
{
// Initializes the value to empty otherwise the model is not updated if no type is selected.
step.ContentTypes = Array.Empty<string>();
step.ContentParts = Array.Empty<string>();
await updater.TryUpdateModelAsync(
step,
Prefix,
x => x.ContentTypes,
x => x.ContentParts,
x => x.IncludeAll);
// don't have the selected option if include all
if (step.IncludeAll)
{
step.ContentTypes = Array.Empty<string>();
step.ContentParts = Array.Empty<string>();
}
else
{
step.ContentParts = step.ContentParts.Distinct().ToArray();
}
return Edit(step);
}
}
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<model ref="r:4cc5fae5-5c15-4e9e-97c5-f935f1e9571f(com.mbeddr.core.modules.generator.com.mbeddr.core.modules.util)">
<persistence version="9" />
<languages>
<use id="63e0e566-5131-447e-90e3-12ea330e1a00" name="com.mbeddr.mpsutil.blutil" version="1" />
<use id="c72da2b9-7cce-4447-8389-f407dc1158b7" name="jetbrains.mps.lang.structure" version="9" />
<use id="7a5dda62-9140-4668-ab76-d5ed1746f2b2" name="jetbrains.mps.lang.typesystem" version="5" />
<use id="9ded098b-ad6a-4657-bfd9-48636cfe8bc3" name="jetbrains.mps.lang.traceable" version="0" />
<devkit ref="a2eb3a43-fcc2-4200-80dc-c60110c4862d(jetbrains.mps.devkit.templates)" />
</languages>
<imports>
<import index="c4fa" ref="r:9f0e84b6-2ec7-4f9e-83e0-feedc77b63a3(com.mbeddr.core.statements.structure)" />
<import index="mj1l" ref="r:c371cf98-dcc8-4a43-8eb8-8a8096de18b2(com.mbeddr.core.expressions.structure)" />
<import index="tpck" ref="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" />
<import index="yq40" ref="r:152b3fc0-83a1-4bab-a8cd-565eb8483785(com.mbeddr.core.pointers.structure)" />
<import index="wyt6" ref="6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)" implicit="true" />
<import index="1s42" ref="r:d482a2e6-b3ef-4c45-883b-cf624a56b653(com.mbeddr.core.pointers.behavior)" implicit="true" />
<import index="xlxw" ref="6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.math(JDK/)" implicit="true" />
</imports>
<registry>
<language id="f3061a53-9226-4cc5-a443-f952ceaf5816" name="jetbrains.mps.baseLanguage">
<concept id="1082485599095" name="jetbrains.mps.baseLanguage.structure.BlockStatement" flags="nn" index="9aQIb">
<child id="1082485599096" name="statements" index="9aQI4" />
</concept>
<concept id="1215693861676" name="jetbrains.mps.baseLanguage.structure.BaseAssignmentExpression" flags="nn" index="d038R">
<child id="1068498886297" name="rValue" index="37vLTx" />
<child id="1068498886295" name="lValue" index="37vLTJ" />
</concept>
<concept id="4836112446988635817" name="jetbrains.mps.baseLanguage.structure.UndefinedType" flags="in" index="2jxLKc" />
<concept id="1202948039474" name="jetbrains.mps.baseLanguage.structure.InstanceMethodCallOperation" flags="nn" index="liA8E" />
<concept id="1465982738277781862" name="jetbrains.mps.baseLanguage.structure.PlaceholderMember" flags="ng" index="2tJIrI" />
<concept id="1239714755177" name="jetbrains.mps.baseLanguage.structure.AbstractUnaryNumberOperation" flags="nn" index="2$Kvd9">
<child id="1239714902950" name="expression" index="2$L3a6" />
</concept>
<concept id="1154032098014" name="jetbrains.mps.baseLanguage.structure.AbstractLoopStatement" flags="nn" index="2LF5Ji">
<child id="1154032183016" name="body" index="2LFqv$" />
</concept>
<concept id="1197027756228" name="jetbrains.mps.baseLanguage.structure.DotExpression" flags="nn" index="2OqwBi">
<child id="1197027771414" name="operand" index="2Oq$k0" />
<child id="1197027833540" name="operation" index="2OqNvi" />
</concept>
<concept id="1145552977093" name="jetbrains.mps.baseLanguage.structure.GenericNewExpression" flags="nn" index="2ShNRf">
<child id="1145553007750" name="creator" index="2ShVmc" />
</concept>
<concept id="1081236700938" name="jetbrains.mps.baseLanguage.structure.StaticMethodDeclaration" flags="ig" index="2YIFZL" />
<concept id="1081236700937" name="jetbrains.mps.baseLanguage.structure.StaticMethodCall" flags="nn" index="2YIFZM">
<reference id="1144433194310" name="classConcept" index="1Pybhc" />
</concept>
<concept id="1070534058343" name="jetbrains.mps.baseLanguage.structure.NullLiteral" flags="nn" index="10Nm6u" />
<concept id="1070534370425" name="jetbrains.mps.baseLanguage.structure.IntegerType" flags="in" index="10Oyi0" />
<concept id="1070534644030" name="jetbrains.mps.baseLanguage.structure.BooleanType" flags="in" index="10P_77" />
<concept id="1068390468198" name="jetbrains.mps.baseLanguage.structure.ClassConcept" flags="ig" index="312cEu" />
<concept id="1068431474542" name="jetbrains.mps.baseLanguage.structure.VariableDeclaration" flags="ng" index="33uBYm">
<child id="1068431790190" name="initializer" index="33vP2m" />
</concept>
<concept id="1068498886296" name="jetbrains.mps.baseLanguage.structure.VariableReference" flags="nn" index="37vLTw">
<reference id="1068581517664" name="variableDeclaration" index="3cqZAo" />
</concept>
<concept id="1068498886292" name="jetbrains.mps.baseLanguage.structure.ParameterDeclaration" flags="ir" index="37vLTG" />
<concept id="1068498886294" name="jetbrains.mps.baseLanguage.structure.AssignmentExpression" flags="nn" index="37vLTI" />
<concept id="4972933694980447171" name="jetbrains.mps.baseLanguage.structure.BaseVariableDeclaration" flags="ng" index="19Szcq">
<child id="5680397130376446158" name="type" index="1tU5fm" />
</concept>
<concept id="1068580123132" name="jetbrains.mps.baseLanguage.structure.BaseMethodDeclaration" flags="ng" index="3clF44">
<property id="4276006055363816570" name="isSynchronized" index="od$2w" />
<property id="1181808852946" name="isFinal" index="DiZV1" />
<child id="1068580123133" name="returnType" index="3clF45" />
<child id="1068580123134" name="parameter" index="3clF46" />
<child id="1068580123135" name="body" index="3clF47" />
</concept>
<concept id="1068580123155" name="jetbrains.mps.baseLanguage.structure.ExpressionStatement" flags="nn" index="3clFbF">
<child id="1068580123156" name="expression" index="3clFbG" />
</concept>
<concept id="1068580123159" name="jetbrains.mps.baseLanguage.structure.IfStatement" flags="nn" index="3clFbJ">
<child id="1082485599094" name="ifFalseStatement" index="9aQIa" />
<child id="1068580123160" name="condition" index="3clFbw" />
<child id="1068580123161" name="ifTrue" index="3clFbx" />
</concept>
<concept id="1068580123136" name="jetbrains.mps.baseLanguage.structure.StatementList" flags="sn" stub="5293379017992965193" index="3clFbS">
<child id="1068581517665" name="statement" index="3cqZAp" />
</concept>
<concept id="1068580320020" name="jetbrains.mps.baseLanguage.structure.IntegerConstant" flags="nn" index="3cmrfG">
<property id="1068580320021" name="value" index="3cmrfH" />
</concept>
<concept id="1068581242878" name="jetbrains.mps.baseLanguage.structure.ReturnStatement" flags="nn" index="3cpWs6">
<child id="1068581517676" name="expression" index="3cqZAk" />
</concept>
<concept id="1068581242864" name="jetbrains.mps.baseLanguage.structure.LocalVariableDeclarationStatement" flags="nn" index="3cpWs8">
<child id="1068581242865" name="localVariableDeclaration" index="3cpWs9" />
</concept>
<concept id="1068581242863" name="jetbrains.mps.baseLanguage.structure.LocalVariableDeclaration" flags="nr" index="3cpWsn" />
<concept id="1068581517677" name="jetbrains.mps.baseLanguage.structure.VoidType" flags="in" index="3cqZAl" />
<concept id="1081506773034" name="jetbrains.mps.baseLanguage.structure.LessThanExpression" flags="nn" index="3eOVzh" />
<concept id="1081516740877" name="jetbrains.mps.baseLanguage.structure.NotExpression" flags="nn" index="3fqX7Q">
<child id="1081516765348" name="expression" index="3fr31v" />
</concept>
<concept id="1204053956946" name="jetbrains.mps.baseLanguage.structure.IMethodCall" flags="ng" index="1ndlxa">
<reference id="1068499141037" name="baseMethodDeclaration" index="37wK5l" />
<child id="1068499141038" name="actualArgument" index="37wK5m" />
</concept>
<concept id="1107461130800" name="jetbrains.mps.baseLanguage.structure.Classifier" flags="ng" index="3pOWGL">
<child id="5375687026011219971" name="member" index="jymVt" unordered="true" />
</concept>
<concept id="7812454656619025412" name="jetbrains.mps.baseLanguage.structure.LocalMethodCall" flags="nn" index="1rXfSq" />
<concept id="1081773326031" name="jetbrains.mps.baseLanguage.structure.BinaryOperation" flags="nn" index="3uHJSO">
<child id="1081773367579" name="rightExpression" index="3uHU7w" />
<child id="1081773367580" name="leftExpression" index="3uHU7B" />
</concept>
<concept id="1214918800624" name="jetbrains.mps.baseLanguage.structure.PostfixIncrementExpression" flags="nn" index="3uNrnE" />
<concept id="1178549954367" name="jetbrains.mps.baseLanguage.structure.IVisible" flags="ng" index="1B3ioH">
<child id="1178549979242" name="visibility" index="1B3o_S" />
</concept>
<concept id="1144230876926" name="jetbrains.mps.baseLanguage.structure.AbstractForStatement" flags="nn" index="1DupvO">
<child id="1144230900587" name="variable" index="1Duv9x" />
</concept>
<concept id="1144231330558" name="jetbrains.mps.baseLanguage.structure.ForStatement" flags="nn" index="1Dw8fO">
<child id="1144231399730" name="condition" index="1Dwp0S" />
<child id="1144231408325" name="iteration" index="1Dwrff" />
</concept>
<concept id="1146644602865" name="jetbrains.mps.baseLanguage.structure.PublicVisibility" flags="nn" index="3Tm1VV" />
<concept id="1146644623116" name="jetbrains.mps.baseLanguage.structure.PrivateVisibility" flags="nn" index="3Tm6S6" />
</language>
<language id="63e0e566-5131-447e-90e3-12ea330e1a00" name="com.mbeddr.mpsutil.blutil">
<concept id="734120071946422046" name="com.mbeddr.mpsutil.blutil.structure.ExpressionChildValue" flags="ng" index="3kUt_e">
<child id="734120071946422047" name="expr" index="3kUt_f" />
</concept>
<concept id="4481811096720976618" name="com.mbeddr.mpsutil.blutil.structure.ConceptRef" flags="ng" index="1shVQo">
<reference id="4481811096720976619" name="concept" index="1shVQp" />
</concept>
<concept id="4481811096720537459" name="com.mbeddr.mpsutil.blutil.structure.ChildStep" flags="ng" index="1sne01">
<reference id="4481811096720607067" name="childLink" index="1snh0D" />
<child id="6308171743671982944" name="value" index="ccFIB" />
<child id="4481811096720537463" name="children" index="1sne05" />
</concept>
<concept id="4481811096720536877" name="com.mbeddr.mpsutil.blutil.structure.BuilderExpression" flags="ng" index="1sne9v">
<child id="4481811096720536927" name="root" index="1sne8H" />
</concept>
<concept id="4481811096720581223" name="com.mbeddr.mpsutil.blutil.structure.SimplePropertyStep" flags="ng" index="1snrkl">
<reference id="4481811096720581232" name="property" index="1snrk2" />
<child id="4481811096720588312" name="value" index="1snq_E" />
</concept>
</language>
<language id="fd392034-7849-419d-9071-12563d152375" name="jetbrains.mps.baseLanguage.closures">
<concept id="1199569711397" name="jetbrains.mps.baseLanguage.closures.structure.ClosureLiteral" flags="nn" index="1bVj0M">
<child id="1199569906740" name="parameter" index="1bW2Oz" />
<child id="1199569916463" name="body" index="1bW5cS" />
</concept>
</language>
<language id="7a5dda62-9140-4668-ab76-d5ed1746f2b2" name="jetbrains.mps.lang.typesystem">
<concept id="1176544042499" name="jetbrains.mps.lang.typesystem.structure.Node_TypeOperation" flags="nn" index="3JvlWi" />
</language>
<language id="7866978e-a0f0-4cc7-81bc-4d213d9375e1" name="jetbrains.mps.lang.smodel">
<concept id="1177026924588" name="jetbrains.mps.lang.smodel.structure.RefConcept_Reference" flags="nn" index="chp4Y">
<reference id="1177026940964" name="conceptDeclaration" index="cht4Q" />
</concept>
<concept id="1138411891628" name="jetbrains.mps.lang.smodel.structure.SNodeOperation" flags="nn" index="eCIE_">
<child id="1144104376918" name="parameter" index="1xVPHs" />
</concept>
<concept id="1179409122411" name="jetbrains.mps.lang.smodel.structure.Node_ConceptMethodCall" flags="nn" index="2qgKlT" />
<concept id="2396822768958367367" name="jetbrains.mps.lang.smodel.structure.AbstractTypeCastExpression" flags="nn" index="$5XWr">
<child id="6733348108486823193" name="leftExpression" index="1m5AlR" />
<child id="3906496115198199033" name="conceptArgument" index="3oSUPX" />
</concept>
<concept id="1145383075378" name="jetbrains.mps.lang.smodel.structure.SNodeListType" flags="in" index="2I9FWS">
<reference id="1145383142433" name="elementConcept" index="2I9WkF" />
</concept>
<concept id="1171305280644" name="jetbrains.mps.lang.smodel.structure.Node_GetDescendantsOperation" flags="nn" index="2Rf3mk" />
<concept id="1145567426890" name="jetbrains.mps.lang.smodel.structure.SNodeListCreator" flags="nn" index="2T8Vx0">
<child id="1145567471833" name="createdType" index="2T96Bj" />
</concept>
<concept id="1139613262185" name="jetbrains.mps.lang.smodel.structure.Node_GetParentOperation" flags="nn" index="1mfA1w" />
<concept id="1139621453865" name="jetbrains.mps.lang.smodel.structure.Node_IsInstanceOfOperation" flags="nn" index="1mIQ4w">
<child id="1177027386292" name="conceptArgument" index="cj9EA" />
</concept>
<concept id="1144100932627" name="jetbrains.mps.lang.smodel.structure.OperationParm_Inclusion" flags="ng" index="1xIGOp" />
<concept id="1144101972840" name="jetbrains.mps.lang.smodel.structure.OperationParm_Concept" flags="ng" index="1xMEDy">
<child id="1207343664468" name="conceptArgument" index="ri$Ld" />
</concept>
<concept id="1144146199828" name="jetbrains.mps.lang.smodel.structure.Node_CopyOperation" flags="nn" index="1$rogu" />
<concept id="1140137987495" name="jetbrains.mps.lang.smodel.structure.SNodeTypeCastExpression" flags="nn" index="1PxgMI" />
<concept id="1138055754698" name="jetbrains.mps.lang.smodel.structure.SNodeType" flags="in" index="3Tqbb2">
<reference id="1138405853777" name="concept" index="ehGHo" />
</concept>
<concept id="1138056143562" name="jetbrains.mps.lang.smodel.structure.SLinkAccess" flags="nn" index="3TrEf2">
<reference id="1138056516764" name="link" index="3Tt5mk" />
</concept>
<concept id="1138056282393" name="jetbrains.mps.lang.smodel.structure.SLinkListAccess" flags="nn" index="3Tsc0h">
<reference id="1138056546658" name="link" index="3TtcxE" />
</concept>
</language>
<language id="ceab5195-25ea-4f22-9b92-103b95ca8c0c" name="jetbrains.mps.lang.core">
<concept id="1169194658468" name="jetbrains.mps.lang.core.structure.INamedConcept" flags="ng" index="TrEIO">
<property id="1169194664001" name="name" index="TrG5h" />
</concept>
</language>
<language id="83888646-71ce-4f1c-9c53-c54016f6ad4f" name="jetbrains.mps.baseLanguage.collections">
<concept id="1204796164442" name="jetbrains.mps.baseLanguage.collections.structure.InternalSequenceOperation" flags="nn" index="23sCx2">
<child id="1204796294226" name="closure" index="23t8la" />
</concept>
<concept id="540871147943773365" name="jetbrains.mps.baseLanguage.collections.structure.SingleArgumentSequenceOperation" flags="nn" index="25WWJ4">
<child id="540871147943773366" name="argument" index="25WWJ7" />
</concept>
<concept id="1204980550705" name="jetbrains.mps.baseLanguage.collections.structure.VisitAllOperation" flags="nn" index="2es0OD" />
<concept id="1153943597977" name="jetbrains.mps.baseLanguage.collections.structure.ForEachStatement" flags="nn" index="2Gpval">
<child id="1153944400369" name="variable" index="2Gsz3X" />
<child id="1153944424730" name="inputSequence" index="2GsD0m" />
</concept>
<concept id="1153944193378" name="jetbrains.mps.baseLanguage.collections.structure.ForEachVariable" flags="nr" index="2GrKxI" />
<concept id="1153944233411" name="jetbrains.mps.baseLanguage.collections.structure.ForEachVariableReference" flags="nn" index="2GrUjf">
<reference id="1153944258490" name="variable" index="2Gs0qQ" />
</concept>
<concept id="1203518072036" name="jetbrains.mps.baseLanguage.collections.structure.SmartClosureParameterDeclaration" flags="ig" index="Rh6nW" />
<concept id="1160612413312" name="jetbrains.mps.baseLanguage.collections.structure.AddElementOperation" flags="nn" index="TSZUe" />
<concept id="1162934736510" name="jetbrains.mps.baseLanguage.collections.structure.GetElementOperation" flags="nn" index="34jXtK" />
<concept id="1162935959151" name="jetbrains.mps.baseLanguage.collections.structure.GetSizeOperation" flags="nn" index="34oBXx" />
<concept id="1165595910856" name="jetbrains.mps.baseLanguage.collections.structure.GetLastOperation" flags="nn" index="1yVyf7" />
</language>
</registry>
<node concept="312cEu" id="4U0cQfIXXsF">
<property role="TrG5h" value="ArrayCopyUtil" />
<node concept="2tJIrI" id="4U0cQfIXYdF" role="jymVt" />
<node concept="2YIFZL" id="4U0cQfJfkZI" role="jymVt">
<property role="TrG5h" value="validType" />
<property role="DiZV1" value="false" />
<property role="od$2w" value="false" />
<node concept="3clFbS" id="4U0cQfJfkSf" role="3clF47">
<node concept="3clFbJ" id="4U0cQfJfl4Y" role="3cqZAp">
<node concept="2OqwBi" id="4U0cQfJfll0" role="3clFbw">
<node concept="37vLTw" id="4U0cQfJfl6c" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJfkYB" resolve="type" />
</node>
<node concept="1mIQ4w" id="4U0cQfJflJd" role="2OqNvi">
<node concept="chp4Y" id="4U0cQfJflLT" role="cj9EA">
<ref role="cht4Q" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
</node>
</node>
<node concept="3clFbS" id="4U0cQfJfl50" role="3clFbx">
<node concept="3cpWs6" id="4U0cQfJfm3Y" role="3cqZAp">
<node concept="1rXfSq" id="4U0cQfJfm6g" role="3cqZAk">
<ref role="37wK5l" node="4U0cQfJfkZI" resolve="validType" />
<node concept="2OqwBi" id="4U0cQfJfm_4" role="37wK5m">
<node concept="1PxgMI" id="4U0cQfJfmik" role="2Oq$k0">
<node concept="chp4Y" id="4U0cQfJfmjS" role="3oSUPX">
<ref role="cht4Q" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
<node concept="37vLTw" id="4U0cQfJfm7Y" role="1m5AlR">
<ref role="3cqZAo" node="4U0cQfJfkYB" resolve="type" />
</node>
</node>
<node concept="3TrEf2" id="4U0cQfJfmZT" role="2OqNvi">
<ref role="3Tt5mk" to="c4fa:6IWRcVPT6tm" resolve="baseType" />
</node>
</node>
</node>
</node>
</node>
<node concept="9aQIb" id="4U0cQfJfpe0" role="9aQIa">
<node concept="3clFbS" id="4U0cQfJfpe1" role="9aQI4">
<node concept="3cpWs6" id="4U0cQfJfplE" role="3cqZAp">
<node concept="2OqwBi" id="4U0cQfJfocn" role="3cqZAk">
<node concept="2OqwBi" id="4U0cQfJfnPH" role="2Oq$k0">
<node concept="37vLTw" id="4U0cQfJfnHg" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJfkYB" resolve="type" />
</node>
<node concept="1mfA1w" id="4U0cQfJfnXh" role="2OqNvi" />
</node>
<node concept="1mIQ4w" id="4U0cQfJfooY" role="2OqNvi">
<node concept="chp4Y" id="4U0cQfJfoqV" role="cj9EA">
<ref role="cht4Q" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
</node>
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="37vLTG" id="4U0cQfJfkYB" role="3clF46">
<property role="TrG5h" value="type" />
<node concept="3Tqbb2" id="4U0cQfJfkZw" role="1tU5fm" />
</node>
<node concept="10P_77" id="4U0cQfJfkWb" role="3clF45" />
<node concept="3Tm1VV" id="4U0cQfJfkSe" role="1B3o_S" />
</node>
<node concept="2tJIrI" id="4U0cQfJfkOr" role="jymVt" />
<node concept="2YIFZL" id="4U0cQfIXYek" role="jymVt">
<property role="DiZV1" value="false" />
<property role="od$2w" value="false" />
<property role="TrG5h" value="flattenAssignment" />
<node concept="37vLTG" id="4U0cQfIY1PT" role="3clF46">
<property role="TrG5h" value="statementList" />
<node concept="3Tqbb2" id="4U0cQfIZv6p" role="1tU5fm">
<ref role="ehGHo" to="c4fa:3CmSUB7Fp_l" resolve="StatementList" />
</node>
</node>
<node concept="37vLTG" id="4U0cQfIYa7d" role="3clF46">
<property role="TrG5h" value="assignExpr" />
<node concept="3Tqbb2" id="4U0cQfIYa7e" role="1tU5fm">
<ref role="ehGHo" to="mj1l:1exqRp9kgd" resolve="AssignmentExpr" />
</node>
</node>
<node concept="3clFbS" id="4U0cQfIXYdY" role="3clF47">
<node concept="3cpWs8" id="4U0cQfJVTJ3" role="3cqZAp">
<node concept="3cpWsn" id="4U0cQfJVTJ4" role="3cpWs9">
<property role="TrG5h" value="leftBaseArrayType" />
<node concept="3Tqbb2" id="4U0cQfJVTJ1" role="1tU5fm">
<ref role="ehGHo" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
<node concept="2OqwBi" id="4U0cQfJW1iK" role="33vP2m">
<node concept="2OqwBi" id="4U0cQfJVUGN" role="2Oq$k0">
<node concept="2OqwBi" id="4U0cQfJVTJ5" role="2Oq$k0">
<node concept="2OqwBi" id="4U0cQfJVTJ6" role="2Oq$k0">
<node concept="37vLTw" id="4U0cQfJVTJ7" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfIYa7d" resolve="assignExpr" />
</node>
<node concept="3TrEf2" id="4U0cQfJVTJ8" role="2OqNvi">
<ref role="3Tt5mk" to="mj1l:7FQByU3CrD0" resolve="left" />
</node>
</node>
<node concept="3JvlWi" id="4U0cQfJVTJ9" role="2OqNvi" />
</node>
<node concept="2Rf3mk" id="4U0cQfJVVoa" role="2OqNvi">
<node concept="1xMEDy" id="4U0cQfJVVoc" role="1xVPHs">
<node concept="chp4Y" id="4U0cQfJVVXb" role="ri$Ld">
<ref role="cht4Q" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
</node>
<node concept="1xIGOp" id="4U0cQfJW796" role="1xVPHs" />
</node>
</node>
<node concept="1yVyf7" id="4U0cQfJW5Vm" role="2OqNvi" />
</node>
</node>
</node>
<node concept="3cpWs8" id="4U0cQfJWa53" role="3cqZAp">
<node concept="3cpWsn" id="4U0cQfJWa54" role="3cpWs9">
<property role="TrG5h" value="rightBaseArrayType" />
<node concept="3Tqbb2" id="4U0cQfJWa55" role="1tU5fm">
<ref role="ehGHo" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
<node concept="2OqwBi" id="4U0cQfJWa56" role="33vP2m">
<node concept="2OqwBi" id="4U0cQfJWa57" role="2Oq$k0">
<node concept="2OqwBi" id="4U0cQfJWa58" role="2Oq$k0">
<node concept="2OqwBi" id="4U0cQfJWa59" role="2Oq$k0">
<node concept="37vLTw" id="4U0cQfJWa5a" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfIYa7d" resolve="assignExpr" />
</node>
<node concept="3TrEf2" id="4U0cQfJWb7v" role="2OqNvi">
<ref role="3Tt5mk" to="mj1l:7FQByU3CrD1" resolve="right" />
</node>
</node>
<node concept="3JvlWi" id="4U0cQfJWa5c" role="2OqNvi" />
</node>
<node concept="2Rf3mk" id="4U0cQfJWa5d" role="2OqNvi">
<node concept="1xMEDy" id="4U0cQfJWa5e" role="1xVPHs">
<node concept="chp4Y" id="4U0cQfJWa5f" role="ri$Ld">
<ref role="cht4Q" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
</node>
<node concept="1xIGOp" id="4U0cQfJWa5g" role="1xVPHs" />
</node>
</node>
<node concept="1yVyf7" id="4U0cQfJWa5h" role="2OqNvi" />
</node>
</node>
</node>
<node concept="3cpWs8" id="4U0cQfJ9JKN" role="3cqZAp">
<node concept="3cpWsn" id="4U0cQfJ9JKO" role="3cpWs9">
<property role="TrG5h" value="leftArrayAccessExprs" />
<node concept="2I9FWS" id="4U0cQfJ9JKP" role="1tU5fm">
<ref role="2I9WkF" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
<node concept="1rXfSq" id="4U0cQfJ9KMf" role="33vP2m">
<ref role="37wK5l" node="4U0cQfJ8aXC" resolve="buttomUpAssignmExprs" />
<node concept="37vLTw" id="4U0cQfJVTJa" role="37wK5m">
<ref role="3cqZAo" node="4U0cQfJVTJ4" resolve="leftBaseArrayType" />
</node>
<node concept="10Nm6u" id="4U0cQfJgdLk" role="37wK5m" />
<node concept="2OqwBi" id="4U0cQfJ9KMm" role="37wK5m">
<node concept="37vLTw" id="4U0cQfJ9KMn" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfIYa7d" resolve="assignExpr" />
</node>
<node concept="3TrEf2" id="4U0cQfJ9KMo" role="2OqNvi">
<ref role="3Tt5mk" to="mj1l:7FQByU3CrD0" resolve="left" />
</node>
</node>
</node>
</node>
</node>
<node concept="3cpWs8" id="4U0cQfJ9I$3" role="3cqZAp">
<node concept="3cpWsn" id="4U0cQfJ9I$6" role="3cpWs9">
<property role="TrG5h" value="rightArrayAccessExprs" />
<node concept="2I9FWS" id="4U0cQfJ9I$1" role="1tU5fm">
<ref role="2I9WkF" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
<node concept="1rXfSq" id="4U0cQfJgeaI" role="33vP2m">
<ref role="37wK5l" node="4U0cQfJ8aXC" resolve="buttomUpAssignmExprs" />
<node concept="37vLTw" id="4U0cQfJWbUz" role="37wK5m">
<ref role="3cqZAo" node="4U0cQfJWa54" resolve="rightBaseArrayType" />
</node>
<node concept="10Nm6u" id="4U0cQfJgeaO" role="37wK5m" />
<node concept="2OqwBi" id="4U0cQfJgeaP" role="37wK5m">
<node concept="37vLTw" id="4U0cQfJgeaQ" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfIYa7d" resolve="assignExpr" />
</node>
<node concept="3TrEf2" id="4U0cQfJgfvv" role="2OqNvi">
<ref role="3Tt5mk" to="mj1l:7FQByU3CrD1" resolve="right" />
</node>
</node>
</node>
</node>
</node>
<node concept="1Dw8fO" id="4U0cQfJ9N9T" role="3cqZAp">
<node concept="3clFbS" id="4U0cQfJ9N9V" role="2LFqv$">
<node concept="3clFbF" id="4U0cQfIYcp$" role="3cqZAp">
<node concept="2OqwBi" id="4U0cQfIYg1G" role="3clFbG">
<node concept="2OqwBi" id="4U0cQfIZwRQ" role="2Oq$k0">
<node concept="37vLTw" id="4U0cQfIYcpy" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfIY1PT" resolve="statementList" />
</node>
<node concept="3Tsc0h" id="4U0cQfIZy09" role="2OqNvi">
<ref role="3TtcxE" to="c4fa:3CmSUB7Fp_m" resolve="statements" />
</node>
</node>
<node concept="TSZUe" id="4U0cQfIYneF" role="2OqNvi">
<node concept="1sne9v" id="4U0cQfIYwyK" role="25WWJ7">
<node concept="1sne01" id="4U0cQfIYwyL" role="1sne8H">
<ref role="1snh0D" to="tpck:4uZwTti3__2" resolve="smodelAttribute" />
<node concept="1sne01" id="4U0cQfIYxz0" role="1sne05">
<ref role="1snh0D" to="c4fa:6iIoqg1yCmj" resolve="expr" />
<node concept="1sne01" id="4U0cQfIYye1" role="1sne05">
<ref role="1snh0D" to="mj1l:7FQByU3CrD0" resolve="left" />
<node concept="3kUt_e" id="4U0cQfIYyet" role="ccFIB">
<node concept="2OqwBi" id="4U0cQfJaalS" role="3kUt_f">
<node concept="37vLTw" id="4U0cQfJa6$7" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJ9JKO" resolve="leftArrayAccessExprs" />
</node>
<node concept="34jXtK" id="4U0cQfJae7H" role="2OqNvi">
<node concept="37vLTw" id="4U0cQfJaec7" role="25WWJ7">
<ref role="3cqZAo" node="4U0cQfJ9N9W" resolve="index" />
</node>
</node>
</node>
</node>
</node>
<node concept="1sne01" id="4U0cQfIYygR" role="1sne05">
<ref role="1snh0D" to="mj1l:7FQByU3CrD1" resolve="right" />
<node concept="3kUt_e" id="4U0cQfIYyhm" role="ccFIB">
<node concept="2OqwBi" id="4U0cQfJaedN" role="3kUt_f">
<node concept="37vLTw" id="4U0cQfJaejx" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJ9I$6" resolve="rightArrayAccessExprs" />
</node>
<node concept="34jXtK" id="4U0cQfJaedP" role="2OqNvi">
<node concept="37vLTw" id="4U0cQfJaedQ" role="25WWJ7">
<ref role="3cqZAo" node="4U0cQfJ9N9W" resolve="index" />
</node>
</node>
</node>
</node>
</node>
<node concept="1shVQo" id="4U0cQfIYydk" role="ccFIB">
<ref role="1shVQp" to="mj1l:1exqRp9kgd" resolve="AssignmentExpr" />
</node>
</node>
<node concept="1shVQo" id="4U0cQfIYwP9" role="ccFIB">
<ref role="1shVQp" to="c4fa:6iIoqg1yCmi" resolve="ExpressionStatement" />
</node>
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3cpWsn" id="4U0cQfJ9N9W" role="1Duv9x">
<property role="TrG5h" value="index" />
<node concept="10Oyi0" id="4U0cQfJ9NAO" role="1tU5fm" />
<node concept="3cmrfG" id="4U0cQfJ9NEB" role="33vP2m">
<property role="3cmrfH" value="0" />
</node>
</node>
<node concept="3eOVzh" id="4U0cQfJ9PxS" role="1Dwp0S">
<node concept="2OqwBi" id="4U0cQfJ9Vrw" role="3uHU7w">
<node concept="37vLTw" id="4U0cQfJ9Q0N" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJ9JKO" resolve="leftArrayAccessExprs" />
</node>
<node concept="34oBXx" id="4U0cQfJa2Yg" role="2OqNvi" />
</node>
<node concept="37vLTw" id="4U0cQfJ9Oiv" role="3uHU7B">
<ref role="3cqZAo" node="4U0cQfJ9N9W" resolve="index" />
</node>
</node>
<node concept="3uNrnE" id="4U0cQfJa4eN" role="1Dwrff">
<node concept="37vLTw" id="4U0cQfJa4eP" role="2$L3a6">
<ref role="3cqZAo" node="4U0cQfJ9N9W" resolve="index" />
</node>
</node>
</node>
</node>
<node concept="3cqZAl" id="4U0cQfIXYdW" role="3clF45" />
<node concept="3Tm1VV" id="4U0cQfIXYdX" role="1B3o_S" />
</node>
<node concept="2tJIrI" id="4U0cQfIYbhj" role="jymVt" />
<node concept="2YIFZL" id="4U0cQfJ8aXC" role="jymVt">
<property role="TrG5h" value="buttomUpAssignmExprs" />
<property role="DiZV1" value="false" />
<property role="od$2w" value="false" />
<node concept="37vLTG" id="4U0cQfJ8ey8" role="3clF46">
<property role="TrG5h" value="type" />
<node concept="3Tqbb2" id="4U0cQfJ8eyK" role="1tU5fm">
<ref role="ehGHo" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
</node>
<node concept="37vLTG" id="4U0cQfJ8UuU" role="3clF46">
<property role="TrG5h" value="topLevelAccessExpr" />
<node concept="2I9FWS" id="4U0cQfJ8UYt" role="1tU5fm">
<ref role="2I9WkF" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
</node>
<node concept="37vLTG" id="4U0cQfJ9BXQ" role="3clF46">
<property role="TrG5h" value="expr" />
<node concept="3Tqbb2" id="4U0cQfJ9Cen" role="1tU5fm">
<ref role="ehGHo" to="mj1l:7FQByU3CrCM" resolve="Expression" />
</node>
</node>
<node concept="3clFbS" id="4U0cQfJ8aXD" role="3clF47">
<node concept="3cpWs8" id="4U0cQfJWBJy" role="3cqZAp">
<node concept="3cpWsn" id="4U0cQfJWBJz" role="3cpWs9">
<property role="TrG5h" value="res" />
<node concept="2I9FWS" id="4U0cQfJWBJ$" role="1tU5fm">
<ref role="2I9WkF" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
<node concept="2ShNRf" id="4U0cQfJXI2W" role="33vP2m">
<node concept="2T8Vx0" id="4U0cQfJXIbK" role="2ShVmc">
<node concept="2I9FWS" id="4U0cQfJXIbM" role="2T96Bj">
<ref role="2I9WkF" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
</node>
</node>
</node>
</node>
<node concept="1Dw8fO" id="4U0cQfJW$ef" role="3cqZAp">
<node concept="3clFbS" id="4U0cQfJW$eg" role="2LFqv$">
<node concept="3clFbJ" id="4U0cQfJXKEE" role="3cqZAp">
<node concept="3clFbS" id="4U0cQfJXKEG" role="3clFbx">
<node concept="3clFbF" id="4U0cQfJWCr1" role="3cqZAp">
<node concept="2OqwBi" id="4U0cQfJWGbI" role="3clFbG">
<node concept="37vLTw" id="4U0cQfJWCqZ" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJWBJz" resolve="res" />
</node>
<node concept="TSZUe" id="4U0cQfJWNI9" role="2OqNvi">
<node concept="1sne9v" id="4U0cQfJW$f5" role="25WWJ7">
<node concept="1sne01" id="4U0cQfJW$f6" role="1sne8H">
<ref role="1snh0D" to="tpck:4uZwTti3__2" resolve="smodelAttribute" />
<node concept="1sne01" id="4U0cQfJW$f7" role="1sne05">
<ref role="1snh0D" to="yq40:5sJgLFR$y$3" resolve="indexExpr" />
<node concept="1snrkl" id="4U0cQfJW$f8" role="1sne05">
<ref role="1snrk2" to="mj1l:1UQ4qqfV3yK" resolve="value" />
<node concept="2YIFZM" id="4U0cQfJW$f9" role="1snq_E">
<ref role="1Pybhc" to="wyt6:~String" resolve="String" />
<ref role="37wK5l" to="wyt6:~String.valueOf(int)" resolve="valueOf" />
<node concept="37vLTw" id="4U0cQfJW$fa" role="37wK5m">
<ref role="3cqZAo" node="4U0cQfJW$ff" resolve="i" />
</node>
</node>
</node>
<node concept="1shVQo" id="4U0cQfJW$fb" role="ccFIB">
<ref role="1shVQp" to="mj1l:7FQByU3CrDB" resolve="NumberLiteral" />
</node>
</node>
<node concept="1sne01" id="4U0cQfJW$fc" role="1sne05">
<ref role="1snh0D" to="mj1l:6iIoqg1yDLg" resolve="expression" />
<node concept="1shVQo" id="4U0cQfK8R9a" role="ccFIB">
<ref role="1shVQp" to="yq40:4AGl5dzxdX6" resolve="NullExpression" />
</node>
</node>
<node concept="1shVQo" id="4U0cQfJW$fe" role="ccFIB">
<ref role="1shVQp" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3fqX7Q" id="4U0cQfJXNcF" role="3clFbw">
<node concept="2OqwBi" id="4U0cQfJXNcH" role="3fr31v">
<node concept="2OqwBi" id="4U0cQfJXNcI" role="2Oq$k0">
<node concept="37vLTw" id="4U0cQfJXNcJ" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJ8ey8" resolve="type" />
</node>
<node concept="3TrEf2" id="4U0cQfJXNcK" role="2OqNvi">
<ref role="3Tt5mk" to="c4fa:6IWRcVPT6tm" resolve="baseType" />
</node>
</node>
<node concept="1mIQ4w" id="4U0cQfJXNcL" role="2OqNvi">
<node concept="chp4Y" id="4U0cQfJXNcM" role="cj9EA">
<ref role="cht4Q" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
</node>
</node>
</node>
<node concept="9aQIb" id="4U0cQfJXO3Q" role="9aQIa">
<node concept="3clFbS" id="4U0cQfJXO3R" role="9aQI4">
<node concept="2Gpval" id="4U0cQfJXOfR" role="3cqZAp">
<node concept="2GrKxI" id="4U0cQfJXOfS" role="2Gsz3X">
<property role="TrG5h" value="accessExpr" />
</node>
<node concept="37vLTw" id="4U0cQfJXOi9" role="2GsD0m">
<ref role="3cqZAo" node="4U0cQfJ8UuU" resolve="topLevelAccessExpr" />
</node>
<node concept="3clFbS" id="4U0cQfJXOfU" role="2LFqv$">
<node concept="3cpWs8" id="4U0cQfK86iU" role="3cqZAp">
<node concept="3cpWsn" id="4U0cQfK86iV" role="3cpWs9">
<property role="TrG5h" value="copy" />
<node concept="3Tqbb2" id="4U0cQfK86iw" role="1tU5fm">
<ref role="ehGHo" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
<node concept="2OqwBi" id="4U0cQfK86iW" role="33vP2m">
<node concept="2GrUjf" id="4U0cQfK86iX" role="2Oq$k0">
<ref role="2Gs0qQ" node="4U0cQfJXOfS" resolve="accessExpr" />
</node>
<node concept="1$rogu" id="4U0cQfK86iY" role="2OqNvi" />
</node>
</node>
</node>
<node concept="3cpWs8" id="4U0cQfKajIV" role="3cqZAp">
<node concept="3cpWsn" id="4U0cQfKajIW" role="3cpWs9">
<property role="TrG5h" value="bottomExpr" />
<node concept="3Tqbb2" id="4U0cQfKajIl" role="1tU5fm">
<ref role="ehGHo" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
<node concept="2OqwBi" id="4U0cQfKajIX" role="33vP2m">
<node concept="2OqwBi" id="4U0cQfKajIY" role="2Oq$k0">
<node concept="37vLTw" id="4U0cQfKajIZ" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfK86iV" resolve="copy" />
</node>
<node concept="2Rf3mk" id="4U0cQfKajJ0" role="2OqNvi">
<node concept="1xMEDy" id="4U0cQfKajJ1" role="1xVPHs">
<node concept="chp4Y" id="4U0cQfKajJ2" role="ri$Ld">
<ref role="cht4Q" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
</node>
<node concept="1xIGOp" id="4U0cQfKce0U" role="1xVPHs" />
</node>
</node>
<node concept="1yVyf7" id="4U0cQfKajJ3" role="2OqNvi" />
</node>
</node>
</node>
<node concept="3clFbF" id="4U0cQfK84TQ" role="3cqZAp">
<node concept="37vLTI" id="4U0cQfK87lm" role="3clFbG">
<node concept="2OqwBi" id="4U0cQfK85zB" role="37vLTJ">
<node concept="37vLTw" id="4U0cQfKak3C" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfKajIW" resolve="bottomExpr" />
</node>
<node concept="3TrEf2" id="4U0cQfK86Ky" role="2OqNvi">
<ref role="3Tt5mk" to="mj1l:6iIoqg1yDLg" resolve="expression" />
</node>
</node>
<node concept="1sne9v" id="4U0cQfK87qh" role="37vLTx">
<node concept="1sne01" id="4U0cQfK87qi" role="1sne8H">
<ref role="1snh0D" to="tpck:4uZwTti3__2" resolve="smodelAttribute" />
<node concept="1sne01" id="4U0cQfK87qj" role="1sne05">
<ref role="1snh0D" to="yq40:5sJgLFR$y$3" resolve="indexExpr" />
<node concept="1snrkl" id="4U0cQfK87qk" role="1sne05">
<ref role="1snrk2" to="mj1l:1UQ4qqfV3yK" resolve="value" />
<node concept="2YIFZM" id="4U0cQfK87ql" role="1snq_E">
<ref role="1Pybhc" to="wyt6:~String" resolve="String" />
<ref role="37wK5l" to="wyt6:~String.valueOf(int)" resolve="valueOf" />
<node concept="37vLTw" id="4U0cQfK87qm" role="37wK5m">
<ref role="3cqZAo" node="4U0cQfJW$ff" resolve="i" />
</node>
</node>
</node>
<node concept="1shVQo" id="4U0cQfK87qn" role="ccFIB">
<ref role="1shVQp" to="mj1l:7FQByU3CrDB" resolve="NumberLiteral" />
</node>
</node>
<node concept="1sne01" id="4U0cQfK87qo" role="1sne05">
<ref role="1snh0D" to="mj1l:6iIoqg1yDLg" resolve="expression" />
<node concept="1shVQo" id="4U0cQfK87Ak" role="ccFIB">
<ref role="1shVQp" to="yq40:4AGl5dzxdX6" resolve="NullExpression" />
</node>
</node>
<node concept="1shVQo" id="4U0cQfK87qt" role="ccFIB">
<ref role="1shVQp" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
</node>
</node>
</node>
</node>
<node concept="3clFbF" id="4U0cQfK888v" role="3cqZAp">
<node concept="2OqwBi" id="4U0cQfK8bZd" role="3clFbG">
<node concept="37vLTw" id="4U0cQfK88ew" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJWBJz" resolve="res" />
</node>
<node concept="TSZUe" id="4U0cQfK8jxD" role="2OqNvi">
<node concept="37vLTw" id="4U0cQfK8jyD" role="25WWJ7">
<ref role="3cqZAo" node="4U0cQfK86iV" resolve="copy" />
</node>
</node>
</node>
</node>
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3cpWsn" id="4U0cQfJW$ff" role="1Duv9x">
<property role="TrG5h" value="i" />
<node concept="10Oyi0" id="4U0cQfJW$fg" role="1tU5fm" />
<node concept="3cmrfG" id="4U0cQfJW$fh" role="33vP2m">
<property role="3cmrfH" value="0" />
</node>
</node>
<node concept="3eOVzh" id="4U0cQfJW$fi" role="1Dwp0S">
<node concept="37vLTw" id="4U0cQfJW$fj" role="3uHU7B">
<ref role="3cqZAo" node="4U0cQfJW$ff" resolve="i" />
</node>
<node concept="2OqwBi" id="4U0cQfJW$fk" role="3uHU7w">
<node concept="2OqwBi" id="4U0cQfJW$fl" role="2Oq$k0">
<node concept="1PxgMI" id="4U0cQfJW$fm" role="2Oq$k0">
<node concept="chp4Y" id="4U0cQfJW$fn" role="3oSUPX">
<ref role="cht4Q" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
<node concept="37vLTw" id="4U0cQfJW$fo" role="1m5AlR">
<ref role="3cqZAo" node="4U0cQfJ8ey8" resolve="type" />
</node>
</node>
<node concept="2qgKlT" id="4U0cQfJW$fp" role="2OqNvi">
<ref role="37wK5l" to="1s42:5Y5RBjHqwn9" resolve="getSize" />
</node>
</node>
<node concept="liA8E" id="4U0cQfJW$fq" role="2OqNvi">
<ref role="37wK5l" to="xlxw:~BigInteger.intValue()" resolve="intValue" />
</node>
</node>
</node>
<node concept="3uNrnE" id="4U0cQfJW$fr" role="1Dwrff">
<node concept="37vLTw" id="4U0cQfJW$fs" role="2$L3a6">
<ref role="3cqZAo" node="4U0cQfJW$ff" resolve="i" />
</node>
</node>
</node>
<node concept="3clFbJ" id="4U0cQfJWSUC" role="3cqZAp">
<node concept="3clFbS" id="4U0cQfJWSUE" role="3clFbx">
<node concept="3cpWs6" id="4U0cQfJWWQl" role="3cqZAp">
<node concept="1rXfSq" id="4U0cQfJWQcx" role="3cqZAk">
<ref role="37wK5l" node="4U0cQfJ8aXC" resolve="buttomUpAssignmExprs" />
<node concept="1PxgMI" id="4U0cQfJWWzQ" role="37wK5m">
<node concept="chp4Y" id="4U0cQfJWW_N" role="3oSUPX">
<ref role="cht4Q" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
<node concept="2OqwBi" id="4U0cQfJWRNY" role="1m5AlR">
<node concept="37vLTw" id="4U0cQfJWR$K" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJ8ey8" resolve="type" />
</node>
<node concept="1mfA1w" id="4U0cQfJWSdt" role="2OqNvi" />
</node>
</node>
<node concept="37vLTw" id="4U0cQfJWQcB" role="37wK5m">
<ref role="3cqZAo" node="4U0cQfJWBJz" resolve="res" />
</node>
<node concept="37vLTw" id="4U0cQfJWQcC" role="37wK5m">
<ref role="3cqZAo" node="4U0cQfJ9BXQ" resolve="expr" />
</node>
</node>
</node>
</node>
<node concept="2OqwBi" id="4U0cQfJWUK8" role="3clFbw">
<node concept="2OqwBi" id="4U0cQfJWTRg" role="2Oq$k0">
<node concept="37vLTw" id="4U0cQfJWT_i" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJ8ey8" resolve="type" />
</node>
<node concept="1mfA1w" id="4U0cQfJWUgh" role="2OqNvi" />
</node>
<node concept="1mIQ4w" id="4U0cQfJWVjf" role="2OqNvi">
<node concept="chp4Y" id="4U0cQfJWVle" role="cj9EA">
<ref role="cht4Q" to="yq40:4VhroexOKM1" resolve="ArrayType" />
</node>
</node>
</node>
<node concept="9aQIb" id="4U0cQfJWWCv" role="9aQIa">
<node concept="3clFbS" id="4U0cQfJWWCw" role="9aQI4">
<node concept="3clFbF" id="4U0cQfK8k9$" role="3cqZAp">
<node concept="2OqwBi" id="4U0cQfK8oi5" role="3clFbG">
<node concept="37vLTw" id="4U0cQfK8k9y" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJWBJz" resolve="res" />
</node>
<node concept="2es0OD" id="4U0cQfK8z_m" role="2OqNvi">
<node concept="1bVj0M" id="4U0cQfK8z_o" role="23t8la">
<node concept="3clFbS" id="4U0cQfK8z_p" role="1bW5cS">
<node concept="3clFbF" id="4U0cQfK8zDN" role="3cqZAp">
<node concept="37vLTI" id="4U0cQfK8QrH" role="3clFbG">
<node concept="2OqwBi" id="4U0cQfK8QHQ" role="37vLTx">
<node concept="37vLTw" id="4U0cQfK8QvZ" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfJ9BXQ" resolve="expr" />
</node>
<node concept="1$rogu" id="4U0cQfK8QZV" role="2OqNvi" />
</node>
<node concept="2OqwBi" id="4U0cQfK8O6Y" role="37vLTJ">
<node concept="2OqwBi" id="4U0cQfK8CwV" role="2Oq$k0">
<node concept="2OqwBi" id="4U0cQfK8zVs" role="2Oq$k0">
<node concept="37vLTw" id="4U0cQfK8zDM" role="2Oq$k0">
<ref role="3cqZAo" node="4U0cQfK8z_q" resolve="it" />
</node>
<node concept="2Rf3mk" id="4U0cQfK8$ES" role="2OqNvi">
<node concept="1xMEDy" id="4U0cQfK8$EU" role="1xVPHs">
<node concept="chp4Y" id="4U0cQfK8$HY" role="ri$Ld">
<ref role="cht4Q" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
</node>
<node concept="1xIGOp" id="4U0cQfKddZ$" role="1xVPHs" />
</node>
</node>
<node concept="1yVyf7" id="4U0cQfK8K6a" role="2OqNvi" />
</node>
<node concept="3TrEf2" id="4U0cQfK8PNo" role="2OqNvi">
<ref role="3Tt5mk" to="mj1l:6iIoqg1yDLg" resolve="expression" />
</node>
</node>
</node>
</node>
</node>
<node concept="Rh6nW" id="4U0cQfK8z_q" role="1bW2Oz">
<property role="TrG5h" value="it" />
<node concept="2jxLKc" id="4U0cQfK8z_r" role="1tU5fm" />
</node>
</node>
</node>
</node>
</node>
<node concept="3cpWs6" id="4U0cQfJWWIV" role="3cqZAp">
<node concept="37vLTw" id="4U0cQfJWWJW" role="3cqZAk">
<ref role="3cqZAo" node="4U0cQfJWBJz" resolve="res" />
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="2I9FWS" id="4U0cQfJcfev" role="3clF45">
<ref role="2I9WkF" to="yq40:5sJgLFR$y$1" resolve="ArrayAccessExpr" />
</node>
<node concept="3Tm6S6" id="4U0cQfJiktj" role="1B3o_S" />
</node>
<node concept="2tJIrI" id="4U0cQfIXYdK" role="jymVt" />
<node concept="3Tm1VV" id="4U0cQfIXXsG" role="1B3o_S" />
</node>
</model>
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated on Mon Apr 20 11:07:17 2020 by Eclipse SUMO Version v1_5_0+1213-65a3d57185
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<railsignal-block-output value="railsignal_blocks.xml"/>
</output>
<time>
<end value="200"/>
<step-length value="3.0"/>
</time>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<gui_only>
<tracker-interval value="3"/>
</gui_only>
</configuration>
-->
<tlsStates xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tlsstates_file.xsd">
<tlsState time="0.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="0.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="0.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="3.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="3.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="3.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="6.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="6.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="6.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="9.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="9.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="9.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="12.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="12.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="12.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="15.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="15.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="15.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="18.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="18.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="18.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="21.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="21.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="21.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="24.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="24.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="24.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="27.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="27.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="27.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="30.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="30.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="30.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="33.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="33.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="33.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="36.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="36.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="36.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="39.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="39.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="39.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="42.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="42.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="42.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="45.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="45.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="45.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="48.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="48.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="48.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="51.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="51.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="51.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="54.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="54.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="54.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="57.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="57.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="57.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="60.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="60.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="60.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="63.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="63.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="63.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="66.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="66.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="66.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="69.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="69.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="69.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="72.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="72.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="72.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="75.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="75.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="75.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="78.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="78.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="78.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="81.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="81.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="81.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="84.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="84.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="84.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="87.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="87.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="87.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="90.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="90.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="90.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="93.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="93.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="93.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="96.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="96.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="96.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="99.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="99.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="99.00" id="gneJ1" programID="0" phase="0" state="r"/>
<tlsState time="102.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="102.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="102.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="105.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="105.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="105.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="108.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="108.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="108.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="111.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="111.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="111.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="114.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="114.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="114.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="117.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="117.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="117.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="120.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="120.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="120.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="123.00" id="gneJ3" programID="0" phase="0" state="r"/>
<tlsState time="123.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="123.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="126.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="126.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="126.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="129.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="129.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="129.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="132.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="132.00" id="gneJ5" programID="0" phase="0" state="r"/>
<tlsState time="132.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="135.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="135.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="135.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="138.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="138.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="138.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="141.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="141.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="141.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="144.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="144.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="144.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="147.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="147.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="147.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="150.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="150.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="150.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="153.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="153.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="153.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="156.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="156.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="156.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="159.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="159.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="159.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="162.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="162.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="162.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="165.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="165.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="165.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="168.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="168.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="168.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="171.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="171.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="171.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="174.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="174.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="174.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="177.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="177.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="177.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="180.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="180.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="180.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="183.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="183.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="183.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="186.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="186.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="186.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="189.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="189.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="189.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="192.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="192.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="192.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="195.00" id="gneJ3" programID="0" phase="1" state="G"/>
<tlsState time="195.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="195.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="198.00" id="gneJ1" programID="0" phase="1" state="G"/>
<tlsState time="198.00" id="gneJ5" programID="0" phase="1" state="G"/>
<tlsState time="198.00" id="gneJ3" programID="0" phase="1" state="G"/>
</tlsStates>
| {
"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 disk
import (
"bytes"
"io/ioutil"
"net/http"
"net/url"
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
)
// copied from k8s.io/client-go/transport/round_trippers_test.go
type testRoundTripper struct {
Request *http.Request
Response *http.Response
Err error
}
func (rt *testRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
rt.Request = req
return rt.Response, rt.Err
}
func TestCacheRoundTripper(t *testing.T) {
rt := &testRoundTripper{}
cacheDir, err := ioutil.TempDir("", "cache-rt")
defer os.RemoveAll(cacheDir)
if err != nil {
t.Fatal(err)
}
cache := newCacheRoundTripper(cacheDir, rt)
// First call, caches the response
req := &http.Request{
Method: http.MethodGet,
URL: &url.URL{Host: "localhost"},
}
rt.Response = &http.Response{
Header: http.Header{"ETag": []string{`"123456"`}},
Body: ioutil.NopCloser(bytes.NewReader([]byte("Content"))),
StatusCode: http.StatusOK,
}
resp, err := cache.RoundTrip(req)
if err != nil {
t.Fatal(err)
}
content, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Fatal(err)
}
if string(content) != "Content" {
t.Errorf(`Expected Body to be "Content", got %q`, string(content))
}
// Second call, returns cached response
req = &http.Request{
Method: http.MethodGet,
URL: &url.URL{Host: "localhost"},
}
rt.Response = &http.Response{
StatusCode: http.StatusNotModified,
Body: ioutil.NopCloser(bytes.NewReader([]byte("Other Content"))),
}
resp, err = cache.RoundTrip(req)
if err != nil {
t.Fatal(err)
}
// Read body and make sure we have the initial content
content, err = ioutil.ReadAll(resp.Body)
resp.Body.Close()
if err != nil {
t.Fatal(err)
}
if string(content) != "Content" {
t.Errorf("Invalid content read from cache %q", string(content))
}
}
func TestCacheRoundTripperPathPerm(t *testing.T) {
assert := assert.New(t)
rt := &testRoundTripper{}
cacheDir, err := ioutil.TempDir("", "cache-rt")
os.RemoveAll(cacheDir)
defer os.RemoveAll(cacheDir)
if err != nil {
t.Fatal(err)
}
cache := newCacheRoundTripper(cacheDir, rt)
// First call, caches the response
req := &http.Request{
Method: http.MethodGet,
URL: &url.URL{Host: "localhost"},
}
rt.Response = &http.Response{
Header: http.Header{"ETag": []string{`"123456"`}},
Body: ioutil.NopCloser(bytes.NewReader([]byte("Content"))),
StatusCode: http.StatusOK,
}
resp, err := cache.RoundTrip(req)
if err != nil {
t.Fatal(err)
}
content, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Fatal(err)
}
if string(content) != "Content" {
t.Errorf(`Expected Body to be "Content", got %q`, string(content))
}
err = filepath.Walk(cacheDir, func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
if info.IsDir() {
assert.Equal(os.FileMode(0750), info.Mode().Perm())
} else {
assert.Equal(os.FileMode(0660), info.Mode().Perm())
}
return nil
})
assert.NoError(err)
}
| {
"pile_set_name": "Github"
} |
/*
* UVD_6_0 Register documentation
*
* Copyright (C) 2014 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER(S) 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.
*/
#ifndef UVD_6_0_SH_MASK_H
#define UVD_6_0_SH_MASK_H
#define UVD_SEMA_ADDR_LOW__ADDR_22_3_MASK 0xfffff
#define UVD_SEMA_ADDR_LOW__ADDR_22_3__SHIFT 0x0
#define UVD_SEMA_ADDR_HIGH__ADDR_42_23_MASK 0xfffff
#define UVD_SEMA_ADDR_HIGH__ADDR_42_23__SHIFT 0x0
#define UVD_SEMA_CMD__REQ_CMD_MASK 0xf
#define UVD_SEMA_CMD__REQ_CMD__SHIFT 0x0
#define UVD_SEMA_CMD__WR_PHASE_MASK 0x30
#define UVD_SEMA_CMD__WR_PHASE__SHIFT 0x4
#define UVD_SEMA_CMD__MODE_MASK 0x40
#define UVD_SEMA_CMD__MODE__SHIFT 0x6
#define UVD_SEMA_CMD__VMID_EN_MASK 0x80
#define UVD_SEMA_CMD__VMID_EN__SHIFT 0x7
#define UVD_SEMA_CMD__VMID_MASK 0xf00
#define UVD_SEMA_CMD__VMID__SHIFT 0x8
#define UVD_GPCOM_VCPU_CMD__CMD_SEND_MASK 0x1
#define UVD_GPCOM_VCPU_CMD__CMD_SEND__SHIFT 0x0
#define UVD_GPCOM_VCPU_CMD__CMD_MASK 0x7ffffffe
#define UVD_GPCOM_VCPU_CMD__CMD__SHIFT 0x1
#define UVD_GPCOM_VCPU_CMD__CMD_SOURCE_MASK 0x80000000
#define UVD_GPCOM_VCPU_CMD__CMD_SOURCE__SHIFT 0x1f
#define UVD_GPCOM_VCPU_DATA0__DATA0_MASK 0xffffffff
#define UVD_GPCOM_VCPU_DATA0__DATA0__SHIFT 0x0
#define UVD_GPCOM_VCPU_DATA1__DATA1_MASK 0xffffffff
#define UVD_GPCOM_VCPU_DATA1__DATA1__SHIFT 0x0
#define UVD_ENGINE_CNTL__ENGINE_START_MASK 0x1
#define UVD_ENGINE_CNTL__ENGINE_START__SHIFT 0x0
#define UVD_ENGINE_CNTL__ENGINE_START_MODE_MASK 0x2
#define UVD_ENGINE_CNTL__ENGINE_START_MODE__SHIFT 0x1
#define UVD_UDEC_ADDR_CONFIG__NUM_PIPES_MASK 0x7
#define UVD_UDEC_ADDR_CONFIG__NUM_PIPES__SHIFT 0x0
#define UVD_UDEC_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE_MASK 0x70
#define UVD_UDEC_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE__SHIFT 0x4
#define UVD_UDEC_ADDR_CONFIG__BANK_INTERLEAVE_SIZE_MASK 0x700
#define UVD_UDEC_ADDR_CONFIG__BANK_INTERLEAVE_SIZE__SHIFT 0x8
#define UVD_UDEC_ADDR_CONFIG__NUM_SHADER_ENGINES_MASK 0x3000
#define UVD_UDEC_ADDR_CONFIG__NUM_SHADER_ENGINES__SHIFT 0xc
#define UVD_UDEC_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE_MASK 0x70000
#define UVD_UDEC_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE__SHIFT 0x10
#define UVD_UDEC_ADDR_CONFIG__NUM_GPUS_MASK 0x700000
#define UVD_UDEC_ADDR_CONFIG__NUM_GPUS__SHIFT 0x14
#define UVD_UDEC_ADDR_CONFIG__MULTI_GPU_TILE_SIZE_MASK 0x3000000
#define UVD_UDEC_ADDR_CONFIG__MULTI_GPU_TILE_SIZE__SHIFT 0x18
#define UVD_UDEC_ADDR_CONFIG__ROW_SIZE_MASK 0x30000000
#define UVD_UDEC_ADDR_CONFIG__ROW_SIZE__SHIFT 0x1c
#define UVD_UDEC_ADDR_CONFIG__NUM_LOWER_PIPES_MASK 0x40000000
#define UVD_UDEC_ADDR_CONFIG__NUM_LOWER_PIPES__SHIFT 0x1e
#define UVD_UDEC_DB_ADDR_CONFIG__NUM_PIPES_MASK 0x7
#define UVD_UDEC_DB_ADDR_CONFIG__NUM_PIPES__SHIFT 0x0
#define UVD_UDEC_DB_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE_MASK 0x70
#define UVD_UDEC_DB_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE__SHIFT 0x4
#define UVD_UDEC_DB_ADDR_CONFIG__BANK_INTERLEAVE_SIZE_MASK 0x700
#define UVD_UDEC_DB_ADDR_CONFIG__BANK_INTERLEAVE_SIZE__SHIFT 0x8
#define UVD_UDEC_DB_ADDR_CONFIG__NUM_SHADER_ENGINES_MASK 0x3000
#define UVD_UDEC_DB_ADDR_CONFIG__NUM_SHADER_ENGINES__SHIFT 0xc
#define UVD_UDEC_DB_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE_MASK 0x70000
#define UVD_UDEC_DB_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE__SHIFT 0x10
#define UVD_UDEC_DB_ADDR_CONFIG__NUM_GPUS_MASK 0x700000
#define UVD_UDEC_DB_ADDR_CONFIG__NUM_GPUS__SHIFT 0x14
#define UVD_UDEC_DB_ADDR_CONFIG__MULTI_GPU_TILE_SIZE_MASK 0x3000000
#define UVD_UDEC_DB_ADDR_CONFIG__MULTI_GPU_TILE_SIZE__SHIFT 0x18
#define UVD_UDEC_DB_ADDR_CONFIG__ROW_SIZE_MASK 0x30000000
#define UVD_UDEC_DB_ADDR_CONFIG__ROW_SIZE__SHIFT 0x1c
#define UVD_UDEC_DB_ADDR_CONFIG__NUM_LOWER_PIPES_MASK 0x40000000
#define UVD_UDEC_DB_ADDR_CONFIG__NUM_LOWER_PIPES__SHIFT 0x1e
#define UVD_UDEC_DBW_ADDR_CONFIG__NUM_PIPES_MASK 0x7
#define UVD_UDEC_DBW_ADDR_CONFIG__NUM_PIPES__SHIFT 0x0
#define UVD_UDEC_DBW_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE_MASK 0x70
#define UVD_UDEC_DBW_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE__SHIFT 0x4
#define UVD_UDEC_DBW_ADDR_CONFIG__BANK_INTERLEAVE_SIZE_MASK 0x700
#define UVD_UDEC_DBW_ADDR_CONFIG__BANK_INTERLEAVE_SIZE__SHIFT 0x8
#define UVD_UDEC_DBW_ADDR_CONFIG__NUM_SHADER_ENGINES_MASK 0x3000
#define UVD_UDEC_DBW_ADDR_CONFIG__NUM_SHADER_ENGINES__SHIFT 0xc
#define UVD_UDEC_DBW_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE_MASK 0x70000
#define UVD_UDEC_DBW_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE__SHIFT 0x10
#define UVD_UDEC_DBW_ADDR_CONFIG__NUM_GPUS_MASK 0x700000
#define UVD_UDEC_DBW_ADDR_CONFIG__NUM_GPUS__SHIFT 0x14
#define UVD_UDEC_DBW_ADDR_CONFIG__MULTI_GPU_TILE_SIZE_MASK 0x3000000
#define UVD_UDEC_DBW_ADDR_CONFIG__MULTI_GPU_TILE_SIZE__SHIFT 0x18
#define UVD_UDEC_DBW_ADDR_CONFIG__ROW_SIZE_MASK 0x30000000
#define UVD_UDEC_DBW_ADDR_CONFIG__ROW_SIZE__SHIFT 0x1c
#define UVD_UDEC_DBW_ADDR_CONFIG__NUM_LOWER_PIPES_MASK 0x40000000
#define UVD_UDEC_DBW_ADDR_CONFIG__NUM_LOWER_PIPES__SHIFT 0x1e
#define UVD_POWER_STATUS_U__UVD_POWER_STATUS_MASK 0x3
#define UVD_POWER_STATUS_U__UVD_POWER_STATUS__SHIFT 0x0
#define UVD_LMI_RBC_RB_64BIT_BAR_LOW__BITS_31_0_MASK 0xffffffff
#define UVD_LMI_RBC_RB_64BIT_BAR_LOW__BITS_31_0__SHIFT 0x0
#define UVD_LMI_RBC_RB_64BIT_BAR_HIGH__BITS_63_32_MASK 0xffffffff
#define UVD_LMI_RBC_RB_64BIT_BAR_HIGH__BITS_63_32__SHIFT 0x0
#define UVD_LMI_RBC_IB_64BIT_BAR_LOW__BITS_31_0_MASK 0xffffffff
#define UVD_LMI_RBC_IB_64BIT_BAR_LOW__BITS_31_0__SHIFT 0x0
#define UVD_LMI_RBC_IB_64BIT_BAR_HIGH__BITS_63_32_MASK 0xffffffff
#define UVD_LMI_RBC_IB_64BIT_BAR_HIGH__BITS_63_32__SHIFT 0x0
#define UVD_LMI_VCPU_CACHE_64BIT_BAR_LOW__BITS_31_0_MASK 0xffffffff
#define UVD_LMI_VCPU_CACHE_64BIT_BAR_LOW__BITS_31_0__SHIFT 0x0
#define UVD_LMI_VCPU_CACHE_64BIT_BAR_HIGH__BITS_63_32_MASK 0xffffffff
#define UVD_LMI_VCPU_CACHE_64BIT_BAR_HIGH__BITS_63_32__SHIFT 0x0
#define UVD_SEMA_CNTL__SEMAPHORE_EN_MASK 0x1
#define UVD_SEMA_CNTL__SEMAPHORE_EN__SHIFT 0x0
#define UVD_SEMA_CNTL__ADVANCED_MODE_DIS_MASK 0x2
#define UVD_SEMA_CNTL__ADVANCED_MODE_DIS__SHIFT 0x1
#define UVD_LMI_EXT40_ADDR__ADDR_MASK 0xff
#define UVD_LMI_EXT40_ADDR__ADDR__SHIFT 0x0
#define UVD_LMI_EXT40_ADDR__INDEX_MASK 0x1f0000
#define UVD_LMI_EXT40_ADDR__INDEX__SHIFT 0x10
#define UVD_LMI_EXT40_ADDR__WRITE_ADDR_MASK 0x80000000
#define UVD_LMI_EXT40_ADDR__WRITE_ADDR__SHIFT 0x1f
#define UVD_CTX_INDEX__INDEX_MASK 0x1ff
#define UVD_CTX_INDEX__INDEX__SHIFT 0x0
#define UVD_CTX_DATA__DATA_MASK 0xffffffff
#define UVD_CTX_DATA__DATA__SHIFT 0x0
#define UVD_CGC_GATE__SYS_MASK 0x1
#define UVD_CGC_GATE__SYS__SHIFT 0x0
#define UVD_CGC_GATE__UDEC_MASK 0x2
#define UVD_CGC_GATE__UDEC__SHIFT 0x1
#define UVD_CGC_GATE__MPEG2_MASK 0x4
#define UVD_CGC_GATE__MPEG2__SHIFT 0x2
#define UVD_CGC_GATE__REGS_MASK 0x8
#define UVD_CGC_GATE__REGS__SHIFT 0x3
#define UVD_CGC_GATE__RBC_MASK 0x10
#define UVD_CGC_GATE__RBC__SHIFT 0x4
#define UVD_CGC_GATE__LMI_MC_MASK 0x20
#define UVD_CGC_GATE__LMI_MC__SHIFT 0x5
#define UVD_CGC_GATE__LMI_UMC_MASK 0x40
#define UVD_CGC_GATE__LMI_UMC__SHIFT 0x6
#define UVD_CGC_GATE__IDCT_MASK 0x80
#define UVD_CGC_GATE__IDCT__SHIFT 0x7
#define UVD_CGC_GATE__MPRD_MASK 0x100
#define UVD_CGC_GATE__MPRD__SHIFT 0x8
#define UVD_CGC_GATE__MPC_MASK 0x200
#define UVD_CGC_GATE__MPC__SHIFT 0x9
#define UVD_CGC_GATE__LBSI_MASK 0x400
#define UVD_CGC_GATE__LBSI__SHIFT 0xa
#define UVD_CGC_GATE__LRBBM_MASK 0x800
#define UVD_CGC_GATE__LRBBM__SHIFT 0xb
#define UVD_CGC_GATE__UDEC_RE_MASK 0x1000
#define UVD_CGC_GATE__UDEC_RE__SHIFT 0xc
#define UVD_CGC_GATE__UDEC_CM_MASK 0x2000
#define UVD_CGC_GATE__UDEC_CM__SHIFT 0xd
#define UVD_CGC_GATE__UDEC_IT_MASK 0x4000
#define UVD_CGC_GATE__UDEC_IT__SHIFT 0xe
#define UVD_CGC_GATE__UDEC_DB_MASK 0x8000
#define UVD_CGC_GATE__UDEC_DB__SHIFT 0xf
#define UVD_CGC_GATE__UDEC_MP_MASK 0x10000
#define UVD_CGC_GATE__UDEC_MP__SHIFT 0x10
#define UVD_CGC_GATE__WCB_MASK 0x20000
#define UVD_CGC_GATE__WCB__SHIFT 0x11
#define UVD_CGC_GATE__VCPU_MASK 0x40000
#define UVD_CGC_GATE__VCPU__SHIFT 0x12
#define UVD_CGC_GATE__SCPU_MASK 0x80000
#define UVD_CGC_GATE__SCPU__SHIFT 0x13
#define UVD_CGC_GATE__JPEG_MASK 0x100000
#define UVD_CGC_GATE__JPEG__SHIFT 0x14
#define UVD_CGC_GATE__JPEG2_MASK 0x200000
#define UVD_CGC_GATE__JPEG2__SHIFT 0x15
#define UVD_CGC_STATUS__SYS_SCLK_MASK 0x1
#define UVD_CGC_STATUS__SYS_SCLK__SHIFT 0x0
#define UVD_CGC_STATUS__SYS_DCLK_MASK 0x2
#define UVD_CGC_STATUS__SYS_DCLK__SHIFT 0x1
#define UVD_CGC_STATUS__SYS_VCLK_MASK 0x4
#define UVD_CGC_STATUS__SYS_VCLK__SHIFT 0x2
#define UVD_CGC_STATUS__UDEC_SCLK_MASK 0x8
#define UVD_CGC_STATUS__UDEC_SCLK__SHIFT 0x3
#define UVD_CGC_STATUS__UDEC_DCLK_MASK 0x10
#define UVD_CGC_STATUS__UDEC_DCLK__SHIFT 0x4
#define UVD_CGC_STATUS__UDEC_VCLK_MASK 0x20
#define UVD_CGC_STATUS__UDEC_VCLK__SHIFT 0x5
#define UVD_CGC_STATUS__MPEG2_SCLK_MASK 0x40
#define UVD_CGC_STATUS__MPEG2_SCLK__SHIFT 0x6
#define UVD_CGC_STATUS__MPEG2_DCLK_MASK 0x80
#define UVD_CGC_STATUS__MPEG2_DCLK__SHIFT 0x7
#define UVD_CGC_STATUS__MPEG2_VCLK_MASK 0x100
#define UVD_CGC_STATUS__MPEG2_VCLK__SHIFT 0x8
#define UVD_CGC_STATUS__REGS_SCLK_MASK 0x200
#define UVD_CGC_STATUS__REGS_SCLK__SHIFT 0x9
#define UVD_CGC_STATUS__REGS_VCLK_MASK 0x400
#define UVD_CGC_STATUS__REGS_VCLK__SHIFT 0xa
#define UVD_CGC_STATUS__RBC_SCLK_MASK 0x800
#define UVD_CGC_STATUS__RBC_SCLK__SHIFT 0xb
#define UVD_CGC_STATUS__LMI_MC_SCLK_MASK 0x1000
#define UVD_CGC_STATUS__LMI_MC_SCLK__SHIFT 0xc
#define UVD_CGC_STATUS__LMI_UMC_SCLK_MASK 0x2000
#define UVD_CGC_STATUS__LMI_UMC_SCLK__SHIFT 0xd
#define UVD_CGC_STATUS__IDCT_SCLK_MASK 0x4000
#define UVD_CGC_STATUS__IDCT_SCLK__SHIFT 0xe
#define UVD_CGC_STATUS__IDCT_VCLK_MASK 0x8000
#define UVD_CGC_STATUS__IDCT_VCLK__SHIFT 0xf
#define UVD_CGC_STATUS__MPRD_SCLK_MASK 0x10000
#define UVD_CGC_STATUS__MPRD_SCLK__SHIFT 0x10
#define UVD_CGC_STATUS__MPRD_DCLK_MASK 0x20000
#define UVD_CGC_STATUS__MPRD_DCLK__SHIFT 0x11
#define UVD_CGC_STATUS__MPRD_VCLK_MASK 0x40000
#define UVD_CGC_STATUS__MPRD_VCLK__SHIFT 0x12
#define UVD_CGC_STATUS__MPC_SCLK_MASK 0x80000
#define UVD_CGC_STATUS__MPC_SCLK__SHIFT 0x13
#define UVD_CGC_STATUS__MPC_DCLK_MASK 0x100000
#define UVD_CGC_STATUS__MPC_DCLK__SHIFT 0x14
#define UVD_CGC_STATUS__LBSI_SCLK_MASK 0x200000
#define UVD_CGC_STATUS__LBSI_SCLK__SHIFT 0x15
#define UVD_CGC_STATUS__LBSI_VCLK_MASK 0x400000
#define UVD_CGC_STATUS__LBSI_VCLK__SHIFT 0x16
#define UVD_CGC_STATUS__LRBBM_SCLK_MASK 0x800000
#define UVD_CGC_STATUS__LRBBM_SCLK__SHIFT 0x17
#define UVD_CGC_STATUS__WCB_SCLK_MASK 0x1000000
#define UVD_CGC_STATUS__WCB_SCLK__SHIFT 0x18
#define UVD_CGC_STATUS__VCPU_SCLK_MASK 0x2000000
#define UVD_CGC_STATUS__VCPU_SCLK__SHIFT 0x19
#define UVD_CGC_STATUS__VCPU_VCLK_MASK 0x4000000
#define UVD_CGC_STATUS__VCPU_VCLK__SHIFT 0x1a
#define UVD_CGC_STATUS__SCPU_SCLK_MASK 0x8000000
#define UVD_CGC_STATUS__SCPU_SCLK__SHIFT 0x1b
#define UVD_CGC_STATUS__SCPU_VCLK_MASK 0x10000000
#define UVD_CGC_STATUS__SCPU_VCLK__SHIFT 0x1c
#define UVD_CGC_STATUS__JPEG_ACTIVE_MASK 0x40000000
#define UVD_CGC_STATUS__JPEG_ACTIVE__SHIFT 0x1e
#define UVD_CGC_STATUS__ALL_DEC_ACTIVE_MASK 0x80000000
#define UVD_CGC_STATUS__ALL_DEC_ACTIVE__SHIFT 0x1f
#define UVD_CGC_CTRL__DYN_CLOCK_MODE_MASK 0x1
#define UVD_CGC_CTRL__DYN_CLOCK_MODE__SHIFT 0x0
#define UVD_CGC_CTRL__JPEG2_MODE_MASK 0x2
#define UVD_CGC_CTRL__JPEG2_MODE__SHIFT 0x1
#define UVD_CGC_CTRL__CLK_GATE_DLY_TIMER_MASK 0x3c
#define UVD_CGC_CTRL__CLK_GATE_DLY_TIMER__SHIFT 0x2
#define UVD_CGC_CTRL__CLK_OFF_DELAY_MASK 0x7c0
#define UVD_CGC_CTRL__CLK_OFF_DELAY__SHIFT 0x6
#define UVD_CGC_CTRL__UDEC_RE_MODE_MASK 0x800
#define UVD_CGC_CTRL__UDEC_RE_MODE__SHIFT 0xb
#define UVD_CGC_CTRL__UDEC_CM_MODE_MASK 0x1000
#define UVD_CGC_CTRL__UDEC_CM_MODE__SHIFT 0xc
#define UVD_CGC_CTRL__UDEC_IT_MODE_MASK 0x2000
#define UVD_CGC_CTRL__UDEC_IT_MODE__SHIFT 0xd
#define UVD_CGC_CTRL__UDEC_DB_MODE_MASK 0x4000
#define UVD_CGC_CTRL__UDEC_DB_MODE__SHIFT 0xe
#define UVD_CGC_CTRL__UDEC_MP_MODE_MASK 0x8000
#define UVD_CGC_CTRL__UDEC_MP_MODE__SHIFT 0xf
#define UVD_CGC_CTRL__SYS_MODE_MASK 0x10000
#define UVD_CGC_CTRL__SYS_MODE__SHIFT 0x10
#define UVD_CGC_CTRL__UDEC_MODE_MASK 0x20000
#define UVD_CGC_CTRL__UDEC_MODE__SHIFT 0x11
#define UVD_CGC_CTRL__MPEG2_MODE_MASK 0x40000
#define UVD_CGC_CTRL__MPEG2_MODE__SHIFT 0x12
#define UVD_CGC_CTRL__REGS_MODE_MASK 0x80000
#define UVD_CGC_CTRL__REGS_MODE__SHIFT 0x13
#define UVD_CGC_CTRL__RBC_MODE_MASK 0x100000
#define UVD_CGC_CTRL__RBC_MODE__SHIFT 0x14
#define UVD_CGC_CTRL__LMI_MC_MODE_MASK 0x200000
#define UVD_CGC_CTRL__LMI_MC_MODE__SHIFT 0x15
#define UVD_CGC_CTRL__LMI_UMC_MODE_MASK 0x400000
#define UVD_CGC_CTRL__LMI_UMC_MODE__SHIFT 0x16
#define UVD_CGC_CTRL__IDCT_MODE_MASK 0x800000
#define UVD_CGC_CTRL__IDCT_MODE__SHIFT 0x17
#define UVD_CGC_CTRL__MPRD_MODE_MASK 0x1000000
#define UVD_CGC_CTRL__MPRD_MODE__SHIFT 0x18
#define UVD_CGC_CTRL__MPC_MODE_MASK 0x2000000
#define UVD_CGC_CTRL__MPC_MODE__SHIFT 0x19
#define UVD_CGC_CTRL__LBSI_MODE_MASK 0x4000000
#define UVD_CGC_CTRL__LBSI_MODE__SHIFT 0x1a
#define UVD_CGC_CTRL__LRBBM_MODE_MASK 0x8000000
#define UVD_CGC_CTRL__LRBBM_MODE__SHIFT 0x1b
#define UVD_CGC_CTRL__WCB_MODE_MASK 0x10000000
#define UVD_CGC_CTRL__WCB_MODE__SHIFT 0x1c
#define UVD_CGC_CTRL__VCPU_MODE_MASK 0x20000000
#define UVD_CGC_CTRL__VCPU_MODE__SHIFT 0x1d
#define UVD_CGC_CTRL__SCPU_MODE_MASK 0x40000000
#define UVD_CGC_CTRL__SCPU_MODE__SHIFT 0x1e
#define UVD_CGC_CTRL__JPEG_MODE_MASK 0x80000000
#define UVD_CGC_CTRL__JPEG_MODE__SHIFT 0x1f
#define UVD_CGC_UDEC_STATUS__RE_SCLK_MASK 0x1
#define UVD_CGC_UDEC_STATUS__RE_SCLK__SHIFT 0x0
#define UVD_CGC_UDEC_STATUS__RE_DCLK_MASK 0x2
#define UVD_CGC_UDEC_STATUS__RE_DCLK__SHIFT 0x1
#define UVD_CGC_UDEC_STATUS__RE_VCLK_MASK 0x4
#define UVD_CGC_UDEC_STATUS__RE_VCLK__SHIFT 0x2
#define UVD_CGC_UDEC_STATUS__CM_SCLK_MASK 0x8
#define UVD_CGC_UDEC_STATUS__CM_SCLK__SHIFT 0x3
#define UVD_CGC_UDEC_STATUS__CM_DCLK_MASK 0x10
#define UVD_CGC_UDEC_STATUS__CM_DCLK__SHIFT 0x4
#define UVD_CGC_UDEC_STATUS__CM_VCLK_MASK 0x20
#define UVD_CGC_UDEC_STATUS__CM_VCLK__SHIFT 0x5
#define UVD_CGC_UDEC_STATUS__IT_SCLK_MASK 0x40
#define UVD_CGC_UDEC_STATUS__IT_SCLK__SHIFT 0x6
#define UVD_CGC_UDEC_STATUS__IT_DCLK_MASK 0x80
#define UVD_CGC_UDEC_STATUS__IT_DCLK__SHIFT 0x7
#define UVD_CGC_UDEC_STATUS__IT_VCLK_MASK 0x100
#define UVD_CGC_UDEC_STATUS__IT_VCLK__SHIFT 0x8
#define UVD_CGC_UDEC_STATUS__DB_SCLK_MASK 0x200
#define UVD_CGC_UDEC_STATUS__DB_SCLK__SHIFT 0x9
#define UVD_CGC_UDEC_STATUS__DB_DCLK_MASK 0x400
#define UVD_CGC_UDEC_STATUS__DB_DCLK__SHIFT 0xa
#define UVD_CGC_UDEC_STATUS__DB_VCLK_MASK 0x800
#define UVD_CGC_UDEC_STATUS__DB_VCLK__SHIFT 0xb
#define UVD_CGC_UDEC_STATUS__MP_SCLK_MASK 0x1000
#define UVD_CGC_UDEC_STATUS__MP_SCLK__SHIFT 0xc
#define UVD_CGC_UDEC_STATUS__MP_DCLK_MASK 0x2000
#define UVD_CGC_UDEC_STATUS__MP_DCLK__SHIFT 0xd
#define UVD_CGC_UDEC_STATUS__MP_VCLK_MASK 0x4000
#define UVD_CGC_UDEC_STATUS__MP_VCLK__SHIFT 0xe
#define UVD_CGC_UDEC_STATUS__JPEG_VCLK_MASK 0x8000
#define UVD_CGC_UDEC_STATUS__JPEG_VCLK__SHIFT 0xf
#define UVD_CGC_UDEC_STATUS__JPEG_SCLK_MASK 0x10000
#define UVD_CGC_UDEC_STATUS__JPEG_SCLK__SHIFT 0x10
#define UVD_CGC_UDEC_STATUS__JPEG2_VCLK_MASK 0x20000
#define UVD_CGC_UDEC_STATUS__JPEG2_VCLK__SHIFT 0x11
#define UVD_CGC_UDEC_STATUS__JPEG2_SCLK_MASK 0x40000
#define UVD_CGC_UDEC_STATUS__JPEG2_SCLK__SHIFT 0x12
#define UVD_LMI_CTRL2__SPH_DIS_MASK 0x1
#define UVD_LMI_CTRL2__SPH_DIS__SHIFT 0x0
#define UVD_LMI_CTRL2__STALL_ARB_MASK 0x2
#define UVD_LMI_CTRL2__STALL_ARB__SHIFT 0x1
#define UVD_LMI_CTRL2__ASSERT_UMC_URGENT_MASK 0x4
#define UVD_LMI_CTRL2__ASSERT_UMC_URGENT__SHIFT 0x2
#define UVD_LMI_CTRL2__MASK_UMC_URGENT_MASK 0x8
#define UVD_LMI_CTRL2__MASK_UMC_URGENT__SHIFT 0x3
#define UVD_LMI_CTRL2__MCIF_WR_WATERMARK_MASK 0x70
#define UVD_LMI_CTRL2__MCIF_WR_WATERMARK__SHIFT 0x4
#define UVD_LMI_CTRL2__DRCITF_BUBBLE_FIX_DIS_MASK 0x80
#define UVD_LMI_CTRL2__DRCITF_BUBBLE_FIX_DIS__SHIFT 0x7
#define UVD_LMI_CTRL2__STALL_ARB_UMC_MASK 0x100
#define UVD_LMI_CTRL2__STALL_ARB_UMC__SHIFT 0x8
#define UVD_LMI_CTRL2__MC_READ_ID_SEL_MASK 0x600
#define UVD_LMI_CTRL2__MC_READ_ID_SEL__SHIFT 0x9
#define UVD_LMI_CTRL2__MC_WRITE_ID_SEL_MASK 0x1800
#define UVD_LMI_CTRL2__MC_WRITE_ID_SEL__SHIFT 0xb
#define UVD_LMI_CTRL2__VCPU_NC0_EXT_EN_MASK 0x2000
#define UVD_LMI_CTRL2__VCPU_NC0_EXT_EN__SHIFT 0xd
#define UVD_LMI_CTRL2__VCPU_NC1_EXT_EN_MASK 0x4000
#define UVD_LMI_CTRL2__VCPU_NC1_EXT_EN__SHIFT 0xe
#define UVD_LMI_CTRL2__SPU_EXTRA_CID_EN_MASK 0x8000
#define UVD_LMI_CTRL2__SPU_EXTRA_CID_EN__SHIFT 0xf
#define UVD_LMI_CTRL2__RE_OFFLOAD_EN_MASK 0x10000
#define UVD_LMI_CTRL2__RE_OFFLOAD_EN__SHIFT 0x10
#define UVD_LMI_CTRL2__RE_OFLD_MIF_WR_REQ_NUM_MASK 0x1fe0000
#define UVD_LMI_CTRL2__RE_OFLD_MIF_WR_REQ_NUM__SHIFT 0x11
#define UVD_MASTINT_EN__OVERRUN_RST_MASK 0x1
#define UVD_MASTINT_EN__OVERRUN_RST__SHIFT 0x0
#define UVD_MASTINT_EN__VCPU_EN_MASK 0x2
#define UVD_MASTINT_EN__VCPU_EN__SHIFT 0x1
#define UVD_MASTINT_EN__SYS_EN_MASK 0x4
#define UVD_MASTINT_EN__SYS_EN__SHIFT 0x2
#define UVD_MASTINT_EN__INT_OVERRUN_MASK 0x7ffff0
#define UVD_MASTINT_EN__INT_OVERRUN__SHIFT 0x4
#define UVD_LMI_ADDR_EXT__VCPU_ADDR_EXT_MASK 0xf
#define UVD_LMI_ADDR_EXT__VCPU_ADDR_EXT__SHIFT 0x0
#define UVD_LMI_ADDR_EXT__CM_ADDR_EXT_MASK 0xf0
#define UVD_LMI_ADDR_EXT__CM_ADDR_EXT__SHIFT 0x4
#define UVD_LMI_ADDR_EXT__IT_ADDR_EXT_MASK 0xf00
#define UVD_LMI_ADDR_EXT__IT_ADDR_EXT__SHIFT 0x8
#define UVD_LMI_ADDR_EXT__VCPU_VM_ADDR_EXT_MASK 0xf000
#define UVD_LMI_ADDR_EXT__VCPU_VM_ADDR_EXT__SHIFT 0xc
#define UVD_LMI_ADDR_EXT__RE_ADDR_EXT_MASK 0xf0000
#define UVD_LMI_ADDR_EXT__RE_ADDR_EXT__SHIFT 0x10
#define UVD_LMI_ADDR_EXT__MP_ADDR_EXT_MASK 0xf00000
#define UVD_LMI_ADDR_EXT__MP_ADDR_EXT__SHIFT 0x14
#define UVD_LMI_ADDR_EXT__VCPU_NC0_ADDR_EXT_MASK 0xf000000
#define UVD_LMI_ADDR_EXT__VCPU_NC0_ADDR_EXT__SHIFT 0x18
#define UVD_LMI_ADDR_EXT__VCPU_NC1_ADDR_EXT_MASK 0xf0000000
#define UVD_LMI_ADDR_EXT__VCPU_NC1_ADDR_EXT__SHIFT 0x1c
#define UVD_LMI_CTRL__WRITE_CLEAN_TIMER_MASK 0xff
#define UVD_LMI_CTRL__WRITE_CLEAN_TIMER__SHIFT 0x0
#define UVD_LMI_CTRL__WRITE_CLEAN_TIMER_EN_MASK 0x100
#define UVD_LMI_CTRL__WRITE_CLEAN_TIMER_EN__SHIFT 0x8
#define UVD_LMI_CTRL__REQ_MODE_MASK 0x200
#define UVD_LMI_CTRL__REQ_MODE__SHIFT 0x9
#define UVD_LMI_CTRL__ASSERT_MC_URGENT_MASK 0x800
#define UVD_LMI_CTRL__ASSERT_MC_URGENT__SHIFT 0xb
#define UVD_LMI_CTRL__MASK_MC_URGENT_MASK 0x1000
#define UVD_LMI_CTRL__MASK_MC_URGENT__SHIFT 0xc
#define UVD_LMI_CTRL__DATA_COHERENCY_EN_MASK 0x2000
#define UVD_LMI_CTRL__DATA_COHERENCY_EN__SHIFT 0xd
#define UVD_LMI_CTRL__CRC_RESET_MASK 0x4000
#define UVD_LMI_CTRL__CRC_RESET__SHIFT 0xe
#define UVD_LMI_CTRL__CRC_SEL_MASK 0xf8000
#define UVD_LMI_CTRL__CRC_SEL__SHIFT 0xf
#define UVD_LMI_CTRL__DISABLE_ON_FWV_FAIL_MASK 0x100000
#define UVD_LMI_CTRL__DISABLE_ON_FWV_FAIL__SHIFT 0x14
#define UVD_LMI_CTRL__VCPU_DATA_COHERENCY_EN_MASK 0x200000
#define UVD_LMI_CTRL__VCPU_DATA_COHERENCY_EN__SHIFT 0x15
#define UVD_LMI_CTRL__CM_DATA_COHERENCY_EN_MASK 0x400000
#define UVD_LMI_CTRL__CM_DATA_COHERENCY_EN__SHIFT 0x16
#define UVD_LMI_CTRL__DB_DB_DATA_COHERENCY_EN_MASK 0x800000
#define UVD_LMI_CTRL__DB_DB_DATA_COHERENCY_EN__SHIFT 0x17
#define UVD_LMI_CTRL__DB_IT_DATA_COHERENCY_EN_MASK 0x1000000
#define UVD_LMI_CTRL__DB_IT_DATA_COHERENCY_EN__SHIFT 0x18
#define UVD_LMI_CTRL__IT_IT_DATA_COHERENCY_EN_MASK 0x2000000
#define UVD_LMI_CTRL__IT_IT_DATA_COHERENCY_EN__SHIFT 0x19
#define UVD_LMI_CTRL__MIF_MIF_DATA_COHERENCY_EN_MASK 0x4000000
#define UVD_LMI_CTRL__MIF_MIF_DATA_COHERENCY_EN__SHIFT 0x1a
#define UVD_LMI_CTRL__RFU_MASK 0xf8000000
#define UVD_LMI_CTRL__RFU__SHIFT 0x1b
#define UVD_LMI_STATUS__READ_CLEAN_MASK 0x1
#define UVD_LMI_STATUS__READ_CLEAN__SHIFT 0x0
#define UVD_LMI_STATUS__WRITE_CLEAN_MASK 0x2
#define UVD_LMI_STATUS__WRITE_CLEAN__SHIFT 0x1
#define UVD_LMI_STATUS__WRITE_CLEAN_RAW_MASK 0x4
#define UVD_LMI_STATUS__WRITE_CLEAN_RAW__SHIFT 0x2
#define UVD_LMI_STATUS__VCPU_LMI_WRITE_CLEAN_MASK 0x8
#define UVD_LMI_STATUS__VCPU_LMI_WRITE_CLEAN__SHIFT 0x3
#define UVD_LMI_STATUS__UMC_READ_CLEAN_MASK 0x10
#define UVD_LMI_STATUS__UMC_READ_CLEAN__SHIFT 0x4
#define UVD_LMI_STATUS__UMC_WRITE_CLEAN_MASK 0x20
#define UVD_LMI_STATUS__UMC_WRITE_CLEAN__SHIFT 0x5
#define UVD_LMI_STATUS__UMC_WRITE_CLEAN_RAW_MASK 0x40
#define UVD_LMI_STATUS__UMC_WRITE_CLEAN_RAW__SHIFT 0x6
#define UVD_LMI_STATUS__PENDING_UVD_MC_WRITE_MASK 0x80
#define UVD_LMI_STATUS__PENDING_UVD_MC_WRITE__SHIFT 0x7
#define UVD_LMI_STATUS__READ_CLEAN_RAW_MASK 0x100
#define UVD_LMI_STATUS__READ_CLEAN_RAW__SHIFT 0x8
#define UVD_LMI_STATUS__UMC_READ_CLEAN_RAW_MASK 0x200
#define UVD_LMI_STATUS__UMC_READ_CLEAN_RAW__SHIFT 0x9
#define UVD_LMI_STATUS__UMC_UVD_IDLE_MASK 0x400
#define UVD_LMI_STATUS__UMC_UVD_IDLE__SHIFT 0xa
#define UVD_LMI_STATUS__UMC_AVP_IDLE_MASK 0x800
#define UVD_LMI_STATUS__UMC_AVP_IDLE__SHIFT 0xb
#define UVD_LMI_STATUS__ADP_MC_READ_CLEAN_MASK 0x1000
#define UVD_LMI_STATUS__ADP_MC_READ_CLEAN__SHIFT 0xc
#define UVD_LMI_STATUS__ADP_UMC_READ_CLEAN_MASK 0x2000
#define UVD_LMI_STATUS__ADP_UMC_READ_CLEAN__SHIFT 0xd
#define UVD_LMI_SWAP_CNTL__RB_MC_SWAP_MASK 0x3
#define UVD_LMI_SWAP_CNTL__RB_MC_SWAP__SHIFT 0x0
#define UVD_LMI_SWAP_CNTL__IB_MC_SWAP_MASK 0xc
#define UVD_LMI_SWAP_CNTL__IB_MC_SWAP__SHIFT 0x2
#define UVD_LMI_SWAP_CNTL__RB_RPTR_MC_SWAP_MASK 0x30
#define UVD_LMI_SWAP_CNTL__RB_RPTR_MC_SWAP__SHIFT 0x4
#define UVD_LMI_SWAP_CNTL__VCPU_R_MC_SWAP_MASK 0xc0
#define UVD_LMI_SWAP_CNTL__VCPU_R_MC_SWAP__SHIFT 0x6
#define UVD_LMI_SWAP_CNTL__VCPU_W_MC_SWAP_MASK 0x300
#define UVD_LMI_SWAP_CNTL__VCPU_W_MC_SWAP__SHIFT 0x8
#define UVD_LMI_SWAP_CNTL__CM_MC_SWAP_MASK 0xc00
#define UVD_LMI_SWAP_CNTL__CM_MC_SWAP__SHIFT 0xa
#define UVD_LMI_SWAP_CNTL__IT_MC_SWAP_MASK 0x3000
#define UVD_LMI_SWAP_CNTL__IT_MC_SWAP__SHIFT 0xc
#define UVD_LMI_SWAP_CNTL__DB_R_MC_SWAP_MASK 0xc000
#define UVD_LMI_SWAP_CNTL__DB_R_MC_SWAP__SHIFT 0xe
#define UVD_LMI_SWAP_CNTL__DB_W_MC_SWAP_MASK 0x30000
#define UVD_LMI_SWAP_CNTL__DB_W_MC_SWAP__SHIFT 0x10
#define UVD_LMI_SWAP_CNTL__CSM_MC_SWAP_MASK 0xc0000
#define UVD_LMI_SWAP_CNTL__CSM_MC_SWAP__SHIFT 0x12
#define UVD_LMI_SWAP_CNTL__MP_REF16_MC_SWAP_MASK 0xc00000
#define UVD_LMI_SWAP_CNTL__MP_REF16_MC_SWAP__SHIFT 0x16
#define UVD_LMI_SWAP_CNTL__DBW_MC_SWAP_MASK 0x3000000
#define UVD_LMI_SWAP_CNTL__DBW_MC_SWAP__SHIFT 0x18
#define UVD_LMI_SWAP_CNTL__RB_WR_MC_SWAP_MASK 0xc000000
#define UVD_LMI_SWAP_CNTL__RB_WR_MC_SWAP__SHIFT 0x1a
#define UVD_LMI_SWAP_CNTL__RE_MC_SWAP_MASK 0x30000000
#define UVD_LMI_SWAP_CNTL__RE_MC_SWAP__SHIFT 0x1c
#define UVD_LMI_SWAP_CNTL__MP_MC_SWAP_MASK 0xc0000000
#define UVD_LMI_SWAP_CNTL__MP_MC_SWAP__SHIFT 0x1e
#define UVD_MP_SWAP_CNTL__MP_REF0_MC_SWAP_MASK 0x3
#define UVD_MP_SWAP_CNTL__MP_REF0_MC_SWAP__SHIFT 0x0
#define UVD_MP_SWAP_CNTL__MP_REF1_MC_SWAP_MASK 0xc
#define UVD_MP_SWAP_CNTL__MP_REF1_MC_SWAP__SHIFT 0x2
#define UVD_MP_SWAP_CNTL__MP_REF2_MC_SWAP_MASK 0x30
#define UVD_MP_SWAP_CNTL__MP_REF2_MC_SWAP__SHIFT 0x4
#define UVD_MP_SWAP_CNTL__MP_REF3_MC_SWAP_MASK 0xc0
#define UVD_MP_SWAP_CNTL__MP_REF3_MC_SWAP__SHIFT 0x6
#define UVD_MP_SWAP_CNTL__MP_REF4_MC_SWAP_MASK 0x300
#define UVD_MP_SWAP_CNTL__MP_REF4_MC_SWAP__SHIFT 0x8
#define UVD_MP_SWAP_CNTL__MP_REF5_MC_SWAP_MASK 0xc00
#define UVD_MP_SWAP_CNTL__MP_REF5_MC_SWAP__SHIFT 0xa
#define UVD_MP_SWAP_CNTL__MP_REF6_MC_SWAP_MASK 0x3000
#define UVD_MP_SWAP_CNTL__MP_REF6_MC_SWAP__SHIFT 0xc
#define UVD_MP_SWAP_CNTL__MP_REF7_MC_SWAP_MASK 0xc000
#define UVD_MP_SWAP_CNTL__MP_REF7_MC_SWAP__SHIFT 0xe
#define UVD_MP_SWAP_CNTL__MP_REF8_MC_SWAP_MASK 0x30000
#define UVD_MP_SWAP_CNTL__MP_REF8_MC_SWAP__SHIFT 0x10
#define UVD_MP_SWAP_CNTL__MP_REF9_MC_SWAP_MASK 0xc0000
#define UVD_MP_SWAP_CNTL__MP_REF9_MC_SWAP__SHIFT 0x12
#define UVD_MP_SWAP_CNTL__MP_REF10_MC_SWAP_MASK 0x300000
#define UVD_MP_SWAP_CNTL__MP_REF10_MC_SWAP__SHIFT 0x14
#define UVD_MP_SWAP_CNTL__MP_REF11_MC_SWAP_MASK 0xc00000
#define UVD_MP_SWAP_CNTL__MP_REF11_MC_SWAP__SHIFT 0x16
#define UVD_MP_SWAP_CNTL__MP_REF12_MC_SWAP_MASK 0x3000000
#define UVD_MP_SWAP_CNTL__MP_REF12_MC_SWAP__SHIFT 0x18
#define UVD_MP_SWAP_CNTL__MP_REF13_MC_SWAP_MASK 0xc000000
#define UVD_MP_SWAP_CNTL__MP_REF13_MC_SWAP__SHIFT 0x1a
#define UVD_MP_SWAP_CNTL__MP_REF14_MC_SWAP_MASK 0x30000000
#define UVD_MP_SWAP_CNTL__MP_REF14_MC_SWAP__SHIFT 0x1c
#define UVD_MP_SWAP_CNTL__MP_REF15_MC_SWAP_MASK 0xc0000000
#define UVD_MP_SWAP_CNTL__MP_REF15_MC_SWAP__SHIFT 0x1e
#define UVD_MPC_CNTL__REPLACEMENT_MODE_MASK 0x38
#define UVD_MPC_CNTL__REPLACEMENT_MODE__SHIFT 0x3
#define UVD_MPC_CNTL__PERF_RST_MASK 0x40
#define UVD_MPC_CNTL__PERF_RST__SHIFT 0x6
#define UVD_MPC_CNTL__DBG_MUX_MASK 0xf00
#define UVD_MPC_CNTL__DBG_MUX__SHIFT 0x8
#define UVD_MPC_CNTL__AVE_WEIGHT_MASK 0x30000
#define UVD_MPC_CNTL__AVE_WEIGHT__SHIFT 0x10
#define UVD_MPC_CNTL__URGENT_EN_MASK 0x40000
#define UVD_MPC_CNTL__URGENT_EN__SHIFT 0x12
#define UVD_MPC_SET_MUXA0__VARA_0_MASK 0x3f
#define UVD_MPC_SET_MUXA0__VARA_0__SHIFT 0x0
#define UVD_MPC_SET_MUXA0__VARA_1_MASK 0xfc0
#define UVD_MPC_SET_MUXA0__VARA_1__SHIFT 0x6
#define UVD_MPC_SET_MUXA0__VARA_2_MASK 0x3f000
#define UVD_MPC_SET_MUXA0__VARA_2__SHIFT 0xc
#define UVD_MPC_SET_MUXA0__VARA_3_MASK 0xfc0000
#define UVD_MPC_SET_MUXA0__VARA_3__SHIFT 0x12
#define UVD_MPC_SET_MUXA0__VARA_4_MASK 0x3f000000
#define UVD_MPC_SET_MUXA0__VARA_4__SHIFT 0x18
#define UVD_MPC_SET_MUXA1__VARA_5_MASK 0x3f
#define UVD_MPC_SET_MUXA1__VARA_5__SHIFT 0x0
#define UVD_MPC_SET_MUXA1__VARA_6_MASK 0xfc0
#define UVD_MPC_SET_MUXA1__VARA_6__SHIFT 0x6
#define UVD_MPC_SET_MUXA1__VARA_7_MASK 0x3f000
#define UVD_MPC_SET_MUXA1__VARA_7__SHIFT 0xc
#define UVD_MPC_SET_MUXB0__VARB_0_MASK 0x3f
#define UVD_MPC_SET_MUXB0__VARB_0__SHIFT 0x0
#define UVD_MPC_SET_MUXB0__VARB_1_MASK 0xfc0
#define UVD_MPC_SET_MUXB0__VARB_1__SHIFT 0x6
#define UVD_MPC_SET_MUXB0__VARB_2_MASK 0x3f000
#define UVD_MPC_SET_MUXB0__VARB_2__SHIFT 0xc
#define UVD_MPC_SET_MUXB0__VARB_3_MASK 0xfc0000
#define UVD_MPC_SET_MUXB0__VARB_3__SHIFT 0x12
#define UVD_MPC_SET_MUXB0__VARB_4_MASK 0x3f000000
#define UVD_MPC_SET_MUXB0__VARB_4__SHIFT 0x18
#define UVD_MPC_SET_MUXB1__VARB_5_MASK 0x3f
#define UVD_MPC_SET_MUXB1__VARB_5__SHIFT 0x0
#define UVD_MPC_SET_MUXB1__VARB_6_MASK 0xfc0
#define UVD_MPC_SET_MUXB1__VARB_6__SHIFT 0x6
#define UVD_MPC_SET_MUXB1__VARB_7_MASK 0x3f000
#define UVD_MPC_SET_MUXB1__VARB_7__SHIFT 0xc
#define UVD_MPC_SET_MUX__SET_0_MASK 0x7
#define UVD_MPC_SET_MUX__SET_0__SHIFT 0x0
#define UVD_MPC_SET_MUX__SET_1_MASK 0x38
#define UVD_MPC_SET_MUX__SET_1__SHIFT 0x3
#define UVD_MPC_SET_MUX__SET_2_MASK 0x1c0
#define UVD_MPC_SET_MUX__SET_2__SHIFT 0x6
#define UVD_MPC_SET_ALU__FUNCT_MASK 0x7
#define UVD_MPC_SET_ALU__FUNCT__SHIFT 0x0
#define UVD_MPC_SET_ALU__OPERAND_MASK 0xff0
#define UVD_MPC_SET_ALU__OPERAND__SHIFT 0x4
#define UVD_VCPU_CACHE_OFFSET0__CACHE_OFFSET0_MASK 0x1ffffff
#define UVD_VCPU_CACHE_OFFSET0__CACHE_OFFSET0__SHIFT 0x0
#define UVD_VCPU_CACHE_SIZE0__CACHE_SIZE0_MASK 0x1fffff
#define UVD_VCPU_CACHE_SIZE0__CACHE_SIZE0__SHIFT 0x0
#define UVD_VCPU_CACHE_OFFSET1__CACHE_OFFSET1_MASK 0x1ffffff
#define UVD_VCPU_CACHE_OFFSET1__CACHE_OFFSET1__SHIFT 0x0
#define UVD_VCPU_CACHE_SIZE1__CACHE_SIZE1_MASK 0x1fffff
#define UVD_VCPU_CACHE_SIZE1__CACHE_SIZE1__SHIFT 0x0
#define UVD_VCPU_CACHE_OFFSET2__CACHE_OFFSET2_MASK 0x1ffffff
#define UVD_VCPU_CACHE_OFFSET2__CACHE_OFFSET2__SHIFT 0x0
#define UVD_VCPU_CACHE_SIZE2__CACHE_SIZE2_MASK 0x1fffff
#define UVD_VCPU_CACHE_SIZE2__CACHE_SIZE2__SHIFT 0x0
#define UVD_VCPU_CNTL__IRQ_ERR_MASK 0xf
#define UVD_VCPU_CNTL__IRQ_ERR__SHIFT 0x0
#define UVD_VCPU_CNTL__AXI_MAX_BRST_SIZE_IS_4_MASK 0x10
#define UVD_VCPU_CNTL__AXI_MAX_BRST_SIZE_IS_4__SHIFT 0x4
#define UVD_VCPU_CNTL__PMB_ED_ENABLE_MASK 0x20
#define UVD_VCPU_CNTL__PMB_ED_ENABLE__SHIFT 0x5
#define UVD_VCPU_CNTL__PMB_SOFT_RESET_MASK 0x40
#define UVD_VCPU_CNTL__PMB_SOFT_RESET__SHIFT 0x6
#define UVD_VCPU_CNTL__RBBM_SOFT_RESET_MASK 0x80
#define UVD_VCPU_CNTL__RBBM_SOFT_RESET__SHIFT 0x7
#define UVD_VCPU_CNTL__ABORT_REQ_MASK 0x100
#define UVD_VCPU_CNTL__ABORT_REQ__SHIFT 0x8
#define UVD_VCPU_CNTL__CLK_EN_MASK 0x200
#define UVD_VCPU_CNTL__CLK_EN__SHIFT 0x9
#define UVD_VCPU_CNTL__TRCE_EN_MASK 0x400
#define UVD_VCPU_CNTL__TRCE_EN__SHIFT 0xa
#define UVD_VCPU_CNTL__TRCE_MUX_MASK 0x1800
#define UVD_VCPU_CNTL__TRCE_MUX__SHIFT 0xb
#define UVD_VCPU_CNTL__DBG_MUX_MASK 0xe000
#define UVD_VCPU_CNTL__DBG_MUX__SHIFT 0xd
#define UVD_VCPU_CNTL__JTAG_EN_MASK 0x10000
#define UVD_VCPU_CNTL__JTAG_EN__SHIFT 0x10
#define UVD_VCPU_CNTL__MIF_WR_LOW_THRESHOLD_BP_MASK 0x20000
#define UVD_VCPU_CNTL__MIF_WR_LOW_THRESHOLD_BP__SHIFT 0x11
#define UVD_VCPU_CNTL__TIMEOUT_DIS_MASK 0x40000
#define UVD_VCPU_CNTL__TIMEOUT_DIS__SHIFT 0x12
#define UVD_VCPU_CNTL__SUVD_EN_MASK 0x80000
#define UVD_VCPU_CNTL__SUVD_EN__SHIFT 0x13
#define UVD_VCPU_CNTL__PRB_TIMEOUT_VAL_MASK 0xff00000
#define UVD_VCPU_CNTL__PRB_TIMEOUT_VAL__SHIFT 0x14
#define UVD_VCPU_CNTL__CABAC_MB_ACC_MASK 0x10000000
#define UVD_VCPU_CNTL__CABAC_MB_ACC__SHIFT 0x1c
#define UVD_VCPU_CNTL__WMV9_EN_MASK 0x40000000
#define UVD_VCPU_CNTL__WMV9_EN__SHIFT 0x1e
#define UVD_VCPU_CNTL__RE_OFFLOAD_EN_MASK 0x80000000
#define UVD_VCPU_CNTL__RE_OFFLOAD_EN__SHIFT 0x1f
#define UVD_SOFT_RESET__RBC_SOFT_RESET_MASK 0x1
#define UVD_SOFT_RESET__RBC_SOFT_RESET__SHIFT 0x0
#define UVD_SOFT_RESET__LBSI_SOFT_RESET_MASK 0x2
#define UVD_SOFT_RESET__LBSI_SOFT_RESET__SHIFT 0x1
#define UVD_SOFT_RESET__LMI_SOFT_RESET_MASK 0x4
#define UVD_SOFT_RESET__LMI_SOFT_RESET__SHIFT 0x2
#define UVD_SOFT_RESET__VCPU_SOFT_RESET_MASK 0x8
#define UVD_SOFT_RESET__VCPU_SOFT_RESET__SHIFT 0x3
#define UVD_SOFT_RESET__UDEC_SOFT_RESET_MASK 0x10
#define UVD_SOFT_RESET__UDEC_SOFT_RESET__SHIFT 0x4
#define UVD_SOFT_RESET__CSM_SOFT_RESET_MASK 0x20
#define UVD_SOFT_RESET__CSM_SOFT_RESET__SHIFT 0x5
#define UVD_SOFT_RESET__CXW_SOFT_RESET_MASK 0x40
#define UVD_SOFT_RESET__CXW_SOFT_RESET__SHIFT 0x6
#define UVD_SOFT_RESET__TAP_SOFT_RESET_MASK 0x80
#define UVD_SOFT_RESET__TAP_SOFT_RESET__SHIFT 0x7
#define UVD_SOFT_RESET__MPC_SOFT_RESET_MASK 0x100
#define UVD_SOFT_RESET__MPC_SOFT_RESET__SHIFT 0x8
#define UVD_SOFT_RESET__JPEG_SCLK_RESET_STATUS_MASK 0x200
#define UVD_SOFT_RESET__JPEG_SCLK_RESET_STATUS__SHIFT 0x9
#define UVD_SOFT_RESET__IH_SOFT_RESET_MASK 0x400
#define UVD_SOFT_RESET__IH_SOFT_RESET__SHIFT 0xa
#define UVD_SOFT_RESET__MPRD_SOFT_RESET_MASK 0x800
#define UVD_SOFT_RESET__MPRD_SOFT_RESET__SHIFT 0xb
#define UVD_SOFT_RESET__IDCT_SOFT_RESET_MASK 0x1000
#define UVD_SOFT_RESET__IDCT_SOFT_RESET__SHIFT 0xc
#define UVD_SOFT_RESET__LMI_UMC_SOFT_RESET_MASK 0x2000
#define UVD_SOFT_RESET__LMI_UMC_SOFT_RESET__SHIFT 0xd
#define UVD_SOFT_RESET__SPH_SOFT_RESET_MASK 0x4000
#define UVD_SOFT_RESET__SPH_SOFT_RESET__SHIFT 0xe
#define UVD_SOFT_RESET__MIF_SOFT_RESET_MASK 0x8000
#define UVD_SOFT_RESET__MIF_SOFT_RESET__SHIFT 0xf
#define UVD_SOFT_RESET__LCM_SOFT_RESET_MASK 0x10000
#define UVD_SOFT_RESET__LCM_SOFT_RESET__SHIFT 0x10
#define UVD_SOFT_RESET__SUVD_SOFT_RESET_MASK 0x20000
#define UVD_SOFT_RESET__SUVD_SOFT_RESET__SHIFT 0x11
#define UVD_SOFT_RESET__LBSI_VCLK_RESET_STATUS_MASK 0x40000
#define UVD_SOFT_RESET__LBSI_VCLK_RESET_STATUS__SHIFT 0x12
#define UVD_SOFT_RESET__VCPU_VCLK_RESET_STATUS_MASK 0x80000
#define UVD_SOFT_RESET__VCPU_VCLK_RESET_STATUS__SHIFT 0x13
#define UVD_SOFT_RESET__UDEC_VCLK_RESET_STATUS_MASK 0x100000
#define UVD_SOFT_RESET__UDEC_VCLK_RESET_STATUS__SHIFT 0x14
#define UVD_SOFT_RESET__UDEC_DCLK_RESET_STATUS_MASK 0x200000
#define UVD_SOFT_RESET__UDEC_DCLK_RESET_STATUS__SHIFT 0x15
#define UVD_SOFT_RESET__MPC_DCLK_RESET_STATUS_MASK 0x400000
#define UVD_SOFT_RESET__MPC_DCLK_RESET_STATUS__SHIFT 0x16
#define UVD_SOFT_RESET__MPRD_VCLK_RESET_STATUS_MASK 0x800000
#define UVD_SOFT_RESET__MPRD_VCLK_RESET_STATUS__SHIFT 0x17
#define UVD_SOFT_RESET__MPRD_DCLK_RESET_STATUS_MASK 0x1000000
#define UVD_SOFT_RESET__MPRD_DCLK_RESET_STATUS__SHIFT 0x18
#define UVD_SOFT_RESET__IDCT_VCLK_RESET_STATUS_MASK 0x2000000
#define UVD_SOFT_RESET__IDCT_VCLK_RESET_STATUS__SHIFT 0x19
#define UVD_SOFT_RESET__MIF_DCLK_RESET_STATUS_MASK 0x4000000
#define UVD_SOFT_RESET__MIF_DCLK_RESET_STATUS__SHIFT 0x1a
#define UVD_SOFT_RESET__LCM_DCLK_RESET_STATUS_MASK 0x8000000
#define UVD_SOFT_RESET__LCM_DCLK_RESET_STATUS__SHIFT 0x1b
#define UVD_SOFT_RESET__SUVD_VCLK_RESET_STATUS_MASK 0x10000000
#define UVD_SOFT_RESET__SUVD_VCLK_RESET_STATUS__SHIFT 0x1c
#define UVD_SOFT_RESET__SUVD_DCLK_RESET_STATUS_MASK 0x20000000
#define UVD_SOFT_RESET__SUVD_DCLK_RESET_STATUS__SHIFT 0x1d
#define UVD_SOFT_RESET__RE_DCLK_RESET_STATUS_MASK 0x40000000
#define UVD_SOFT_RESET__RE_DCLK_RESET_STATUS__SHIFT 0x1e
#define UVD_SOFT_RESET__SRE_DCLK_RESET_STATUS_MASK 0x80000000
#define UVD_SOFT_RESET__SRE_DCLK_RESET_STATUS__SHIFT 0x1f
#define UVD_LMI_RBC_IB_VMID__IB_VMID_MASK 0xf
#define UVD_LMI_RBC_IB_VMID__IB_VMID__SHIFT 0x0
#define UVD_RBC_IB_SIZE__IB_SIZE_MASK 0x7ffff0
#define UVD_RBC_IB_SIZE__IB_SIZE__SHIFT 0x4
#define UVD_LMI_RBC_RB_VMID__RB_VMID_MASK 0xf
#define UVD_LMI_RBC_RB_VMID__RB_VMID__SHIFT 0x0
#define UVD_RBC_RB_RPTR__RB_RPTR_MASK 0x7ffff0
#define UVD_RBC_RB_RPTR__RB_RPTR__SHIFT 0x4
#define UVD_RBC_RB_WPTR__RB_WPTR_MASK 0x7ffff0
#define UVD_RBC_RB_WPTR__RB_WPTR__SHIFT 0x4
#define UVD_RBC_RB_CNTL__RB_BUFSZ_MASK 0x1f
#define UVD_RBC_RB_CNTL__RB_BUFSZ__SHIFT 0x0
#define UVD_RBC_RB_CNTL__RB_BLKSZ_MASK 0x1f00
#define UVD_RBC_RB_CNTL__RB_BLKSZ__SHIFT 0x8
#define UVD_RBC_RB_CNTL__RB_NO_FETCH_MASK 0x10000
#define UVD_RBC_RB_CNTL__RB_NO_FETCH__SHIFT 0x10
#define UVD_RBC_RB_CNTL__RB_WPTR_POLL_EN_MASK 0x100000
#define UVD_RBC_RB_CNTL__RB_WPTR_POLL_EN__SHIFT 0x14
#define UVD_RBC_RB_CNTL__RB_NO_UPDATE_MASK 0x1000000
#define UVD_RBC_RB_CNTL__RB_NO_UPDATE__SHIFT 0x18
#define UVD_RBC_RB_CNTL__RB_RPTR_WR_EN_MASK 0x10000000
#define UVD_RBC_RB_CNTL__RB_RPTR_WR_EN__SHIFT 0x1c
#define UVD_RBC_RB_RPTR_ADDR__RB_RPTR_ADDR_MASK 0xffffffff
#define UVD_RBC_RB_RPTR_ADDR__RB_RPTR_ADDR__SHIFT 0x0
#define UVD_STATUS__RBC_BUSY_MASK 0x1
#define UVD_STATUS__RBC_BUSY__SHIFT 0x0
#define UVD_STATUS__VCPU_REPORT_MASK 0xfe
#define UVD_STATUS__VCPU_REPORT__SHIFT 0x1
#define UVD_SEMA_TIMEOUT_STATUS__SEMAPHORE_WAIT_INCOMPLETE_TIMEOUT_STAT_MASK 0x1
#define UVD_SEMA_TIMEOUT_STATUS__SEMAPHORE_WAIT_INCOMPLETE_TIMEOUT_STAT__SHIFT 0x0
#define UVD_SEMA_TIMEOUT_STATUS__SEMAPHORE_WAIT_FAULT_TIMEOUT_STAT_MASK 0x2
#define UVD_SEMA_TIMEOUT_STATUS__SEMAPHORE_WAIT_FAULT_TIMEOUT_STAT__SHIFT 0x1
#define UVD_SEMA_TIMEOUT_STATUS__SEMAPHORE_SIGNAL_INCOMPLETE_TIMEOUT_STAT_MASK 0x4
#define UVD_SEMA_TIMEOUT_STATUS__SEMAPHORE_SIGNAL_INCOMPLETE_TIMEOUT_STAT__SHIFT 0x2
#define UVD_SEMA_TIMEOUT_STATUS__SEMAPHORE_TIMEOUT_CLEAR_MASK 0x8
#define UVD_SEMA_TIMEOUT_STATUS__SEMAPHORE_TIMEOUT_CLEAR__SHIFT 0x3
#define UVD_SEMA_WAIT_INCOMPLETE_TIMEOUT_CNTL__WAIT_INCOMPLETE_EN_MASK 0x1
#define UVD_SEMA_WAIT_INCOMPLETE_TIMEOUT_CNTL__WAIT_INCOMPLETE_EN__SHIFT 0x0
#define UVD_SEMA_WAIT_INCOMPLETE_TIMEOUT_CNTL__WAIT_INCOMPLETE_COUNT_MASK 0x1ffffe
#define UVD_SEMA_WAIT_INCOMPLETE_TIMEOUT_CNTL__WAIT_INCOMPLETE_COUNT__SHIFT 0x1
#define UVD_SEMA_WAIT_INCOMPLETE_TIMEOUT_CNTL__RESEND_TIMER_MASK 0x7000000
#define UVD_SEMA_WAIT_INCOMPLETE_TIMEOUT_CNTL__RESEND_TIMER__SHIFT 0x18
#define UVD_SEMA_WAIT_FAULT_TIMEOUT_CNTL__WAIT_FAULT_EN_MASK 0x1
#define UVD_SEMA_WAIT_FAULT_TIMEOUT_CNTL__WAIT_FAULT_EN__SHIFT 0x0
#define UVD_SEMA_WAIT_FAULT_TIMEOUT_CNTL__WAIT_FAULT_COUNT_MASK 0x1ffffe
#define UVD_SEMA_WAIT_FAULT_TIMEOUT_CNTL__WAIT_FAULT_COUNT__SHIFT 0x1
#define UVD_SEMA_WAIT_FAULT_TIMEOUT_CNTL__RESEND_TIMER_MASK 0x7000000
#define UVD_SEMA_WAIT_FAULT_TIMEOUT_CNTL__RESEND_TIMER__SHIFT 0x18
#define UVD_SEMA_SIGNAL_INCOMPLETE_TIMEOUT_CNTL__SIGNAL_INCOMPLETE_EN_MASK 0x1
#define UVD_SEMA_SIGNAL_INCOMPLETE_TIMEOUT_CNTL__SIGNAL_INCOMPLETE_EN__SHIFT 0x0
#define UVD_SEMA_SIGNAL_INCOMPLETE_TIMEOUT_CNTL__SIGNAL_INCOMPLETE_COUNT_MASK 0x1ffffe
#define UVD_SEMA_SIGNAL_INCOMPLETE_TIMEOUT_CNTL__SIGNAL_INCOMPLETE_COUNT__SHIFT 0x1
#define UVD_SEMA_SIGNAL_INCOMPLETE_TIMEOUT_CNTL__RESEND_TIMER_MASK 0x7000000
#define UVD_SEMA_SIGNAL_INCOMPLETE_TIMEOUT_CNTL__RESEND_TIMER__SHIFT 0x18
#define UVD_CONTEXT_ID__CONTEXT_ID_MASK 0xffffffff
#define UVD_CONTEXT_ID__CONTEXT_ID__SHIFT 0x0
#define UVD_SUVD_CGC_GATE__SRE_MASK 0x1
#define UVD_SUVD_CGC_GATE__SRE__SHIFT 0x0
#define UVD_SUVD_CGC_GATE__SIT_MASK 0x2
#define UVD_SUVD_CGC_GATE__SIT__SHIFT 0x1
#define UVD_SUVD_CGC_GATE__SMP_MASK 0x4
#define UVD_SUVD_CGC_GATE__SMP__SHIFT 0x2
#define UVD_SUVD_CGC_GATE__SCM_MASK 0x8
#define UVD_SUVD_CGC_GATE__SCM__SHIFT 0x3
#define UVD_SUVD_CGC_GATE__SDB_MASK 0x10
#define UVD_SUVD_CGC_GATE__SDB__SHIFT 0x4
#define UVD_SUVD_CGC_GATE__SRE_H264_MASK 0x20
#define UVD_SUVD_CGC_GATE__SRE_H264__SHIFT 0x5
#define UVD_SUVD_CGC_GATE__SRE_HEVC_MASK 0x40
#define UVD_SUVD_CGC_GATE__SRE_HEVC__SHIFT 0x6
#define UVD_SUVD_CGC_GATE__SIT_H264_MASK 0x80
#define UVD_SUVD_CGC_GATE__SIT_H264__SHIFT 0x7
#define UVD_SUVD_CGC_GATE__SIT_HEVC_MASK 0x100
#define UVD_SUVD_CGC_GATE__SIT_HEVC__SHIFT 0x8
#define UVD_SUVD_CGC_GATE__SCM_H264_MASK 0x200
#define UVD_SUVD_CGC_GATE__SCM_H264__SHIFT 0x9
#define UVD_SUVD_CGC_GATE__SCM_HEVC_MASK 0x400
#define UVD_SUVD_CGC_GATE__SCM_HEVC__SHIFT 0xa
#define UVD_SUVD_CGC_GATE__SDB_H264_MASK 0x800
#define UVD_SUVD_CGC_GATE__SDB_H264__SHIFT 0xb
#define UVD_SUVD_CGC_GATE__SDB_HEVC_MASK 0x1000
#define UVD_SUVD_CGC_GATE__SDB_HEVC__SHIFT 0xc
#define UVD_SUVD_CGC_STATUS__SRE_VCLK_MASK 0x1
#define UVD_SUVD_CGC_STATUS__SRE_VCLK__SHIFT 0x0
#define UVD_SUVD_CGC_STATUS__SRE_DCLK_MASK 0x2
#define UVD_SUVD_CGC_STATUS__SRE_DCLK__SHIFT 0x1
#define UVD_SUVD_CGC_STATUS__SIT_DCLK_MASK 0x4
#define UVD_SUVD_CGC_STATUS__SIT_DCLK__SHIFT 0x2
#define UVD_SUVD_CGC_STATUS__SMP_DCLK_MASK 0x8
#define UVD_SUVD_CGC_STATUS__SMP_DCLK__SHIFT 0x3
#define UVD_SUVD_CGC_STATUS__SCM_DCLK_MASK 0x10
#define UVD_SUVD_CGC_STATUS__SCM_DCLK__SHIFT 0x4
#define UVD_SUVD_CGC_STATUS__SDB_DCLK_MASK 0x20
#define UVD_SUVD_CGC_STATUS__SDB_DCLK__SHIFT 0x5
#define UVD_SUVD_CGC_STATUS__SRE_H264_VCLK_MASK 0x40
#define UVD_SUVD_CGC_STATUS__SRE_H264_VCLK__SHIFT 0x6
#define UVD_SUVD_CGC_STATUS__SRE_HEVC_VCLK_MASK 0x80
#define UVD_SUVD_CGC_STATUS__SRE_HEVC_VCLK__SHIFT 0x7
#define UVD_SUVD_CGC_STATUS__SIT_H264_DCLK_MASK 0x100
#define UVD_SUVD_CGC_STATUS__SIT_H264_DCLK__SHIFT 0x8
#define UVD_SUVD_CGC_STATUS__SIT_HEVC_DCLK_MASK 0x200
#define UVD_SUVD_CGC_STATUS__SIT_HEVC_DCLK__SHIFT 0x9
#define UVD_SUVD_CGC_STATUS__SCM_H264_DCLK_MASK 0x400
#define UVD_SUVD_CGC_STATUS__SCM_H264_DCLK__SHIFT 0xa
#define UVD_SUVD_CGC_STATUS__SCM_HEVC_DCLK_MASK 0x800
#define UVD_SUVD_CGC_STATUS__SCM_HEVC_DCLK__SHIFT 0xb
#define UVD_SUVD_CGC_STATUS__SDB_H264_DCLK_MASK 0x1000
#define UVD_SUVD_CGC_STATUS__SDB_H264_DCLK__SHIFT 0xc
#define UVD_SUVD_CGC_STATUS__SDB_HEVC_DCLK_MASK 0x2000
#define UVD_SUVD_CGC_STATUS__SDB_HEVC_DCLK__SHIFT 0xd
#define UVD_SUVD_CGC_CTRL__SRE_MODE_MASK 0x1
#define UVD_SUVD_CGC_CTRL__SRE_MODE__SHIFT 0x0
#define UVD_SUVD_CGC_CTRL__SIT_MODE_MASK 0x2
#define UVD_SUVD_CGC_CTRL__SIT_MODE__SHIFT 0x1
#define UVD_SUVD_CGC_CTRL__SMP_MODE_MASK 0x4
#define UVD_SUVD_CGC_CTRL__SMP_MODE__SHIFT 0x2
#define UVD_SUVD_CGC_CTRL__SCM_MODE_MASK 0x8
#define UVD_SUVD_CGC_CTRL__SCM_MODE__SHIFT 0x3
#define UVD_SUVD_CGC_CTRL__SDB_MODE_MASK 0x10
#define UVD_SUVD_CGC_CTRL__SDB_MODE__SHIFT 0x4
#define UVD_LMI_VMID_INTERNAL__VCPU_NC0_VMID_MASK 0xf
#define UVD_LMI_VMID_INTERNAL__VCPU_NC0_VMID__SHIFT 0x0
#define UVD_LMI_VMID_INTERNAL__VCPU_NC1_VMID_MASK 0xf0
#define UVD_LMI_VMID_INTERNAL__VCPU_NC1_VMID__SHIFT 0x4
#define UVD_LMI_VMID_INTERNAL__DPB_VMID_MASK 0xf00
#define UVD_LMI_VMID_INTERNAL__DPB_VMID__SHIFT 0x8
#define UVD_LMI_VMID_INTERNAL__DBW_VMID_MASK 0xf000
#define UVD_LMI_VMID_INTERNAL__DBW_VMID__SHIFT 0xc
#define UVD_LMI_VMID_INTERNAL__LBSI_VMID_MASK 0xf0000
#define UVD_LMI_VMID_INTERNAL__LBSI_VMID__SHIFT 0x10
#define UVD_LMI_VMID_INTERNAL__IDCT_VMID_MASK 0xf00000
#define UVD_LMI_VMID_INTERNAL__IDCT_VMID__SHIFT 0x14
#define UVD_LMI_VMID_INTERNAL__JPEG_VMID_MASK 0xf000000
#define UVD_LMI_VMID_INTERNAL__JPEG_VMID__SHIFT 0x18
#define UVD_LMI_VMID_INTERNAL__JPEG2_VMID_MASK 0xf0000000
#define UVD_LMI_VMID_INTERNAL__JPEG2_VMID__SHIFT 0x1c
#define UVD_LMI_VMID_INTERNAL2__MIF_GPGPU_VMID_MASK 0xf
#define UVD_LMI_VMID_INTERNAL2__MIF_GPGPU_VMID__SHIFT 0x0
#define UVD_LMI_VMID_INTERNAL2__MIF_CURR_VMID_MASK 0xf0
#define UVD_LMI_VMID_INTERNAL2__MIF_CURR_VMID__SHIFT 0x4
#define UVD_LMI_VMID_INTERNAL2__MIF_REF_VMID_MASK 0xf00
#define UVD_LMI_VMID_INTERNAL2__MIF_REF_VMID__SHIFT 0x8
#define UVD_LMI_VMID_INTERNAL2__MIF_DBW_VMID_MASK 0xf000
#define UVD_LMI_VMID_INTERNAL2__MIF_DBW_VMID__SHIFT 0xc
#define UVD_LMI_VMID_INTERNAL2__MIF_CM_COLOC_VMID_MASK 0xf0000
#define UVD_LMI_VMID_INTERNAL2__MIF_CM_COLOC_VMID__SHIFT 0x10
#define UVD_LMI_VMID_INTERNAL2__MIF_BSD_VMID_MASK 0xf00000
#define UVD_LMI_VMID_INTERNAL2__MIF_BSD_VMID__SHIFT 0x14
#define UVD_LMI_VMID_INTERNAL2__MIF_BSP_VMID_MASK 0xf000000
#define UVD_LMI_VMID_INTERNAL2__MIF_BSP_VMID__SHIFT 0x18
#define UVD_LMI_VMID_INTERNAL2__VDMA_VMID_MASK 0xf0000000
#define UVD_LMI_VMID_INTERNAL2__VDMA_VMID__SHIFT 0x1c
#define UVD_LMI_CACHE_CTRL__IT_EN_MASK 0x1
#define UVD_LMI_CACHE_CTRL__IT_EN__SHIFT 0x0
#define UVD_LMI_CACHE_CTRL__IT_FLUSH_MASK 0x2
#define UVD_LMI_CACHE_CTRL__IT_FLUSH__SHIFT 0x1
#define UVD_LMI_CACHE_CTRL__CM_EN_MASK 0x4
#define UVD_LMI_CACHE_CTRL__CM_EN__SHIFT 0x2
#define UVD_LMI_CACHE_CTRL__CM_FLUSH_MASK 0x8
#define UVD_LMI_CACHE_CTRL__CM_FLUSH__SHIFT 0x3
#define UVD_LMI_CACHE_CTRL__VCPU_EN_MASK 0x10
#define UVD_LMI_CACHE_CTRL__VCPU_EN__SHIFT 0x4
#define UVD_LMI_CACHE_CTRL__VCPU_FLUSH_MASK 0x20
#define UVD_LMI_CACHE_CTRL__VCPU_FLUSH__SHIFT 0x5
#define UVD_LMI_SWAP_CNTL2__SCPU_R_MC_SWAP_MASK 0x3
#define UVD_LMI_SWAP_CNTL2__SCPU_R_MC_SWAP__SHIFT 0x0
#define UVD_LMI_SWAP_CNTL2__SCPU_W_MC_SWAP_MASK 0xc
#define UVD_LMI_SWAP_CNTL2__SCPU_W_MC_SWAP__SHIFT 0x2
#define UVD_LMI_ADDR_EXT2__SCPU_ADDR_EXT_MASK 0xf
#define UVD_LMI_ADDR_EXT2__SCPU_ADDR_EXT__SHIFT 0x0
#define UVD_LMI_ADDR_EXT2__SCPU_VM_ADDR_EXT_MASK 0xf0
#define UVD_LMI_ADDR_EXT2__SCPU_VM_ADDR_EXT__SHIFT 0x4
#define UVD_LMI_ADDR_EXT2__SCPU_NC0_ADDR_EXT_MASK 0xf00
#define UVD_LMI_ADDR_EXT2__SCPU_NC0_ADDR_EXT__SHIFT 0x8
#define UVD_LMI_ADDR_EXT2__SCPU_NC1_ADDR_EXT_MASK 0xf000
#define UVD_LMI_ADDR_EXT2__SCPU_NC1_ADDR_EXT__SHIFT 0xc
#define UVD_CGC_MEM_CTRL__LMI_MC_LS_EN_MASK 0x1
#define UVD_CGC_MEM_CTRL__LMI_MC_LS_EN__SHIFT 0x0
#define UVD_CGC_MEM_CTRL__MPC_LS_EN_MASK 0x2
#define UVD_CGC_MEM_CTRL__MPC_LS_EN__SHIFT 0x1
#define UVD_CGC_MEM_CTRL__MPRD_LS_EN_MASK 0x4
#define UVD_CGC_MEM_CTRL__MPRD_LS_EN__SHIFT 0x2
#define UVD_CGC_MEM_CTRL__WCB_LS_EN_MASK 0x8
#define UVD_CGC_MEM_CTRL__WCB_LS_EN__SHIFT 0x3
#define UVD_CGC_MEM_CTRL__UDEC_RE_LS_EN_MASK 0x10
#define UVD_CGC_MEM_CTRL__UDEC_RE_LS_EN__SHIFT 0x4
#define UVD_CGC_MEM_CTRL__UDEC_CM_LS_EN_MASK 0x20
#define UVD_CGC_MEM_CTRL__UDEC_CM_LS_EN__SHIFT 0x5
#define UVD_CGC_MEM_CTRL__UDEC_IT_LS_EN_MASK 0x40
#define UVD_CGC_MEM_CTRL__UDEC_IT_LS_EN__SHIFT 0x6
#define UVD_CGC_MEM_CTRL__UDEC_DB_LS_EN_MASK 0x80
#define UVD_CGC_MEM_CTRL__UDEC_DB_LS_EN__SHIFT 0x7
#define UVD_CGC_MEM_CTRL__UDEC_MP_LS_EN_MASK 0x100
#define UVD_CGC_MEM_CTRL__UDEC_MP_LS_EN__SHIFT 0x8
#define UVD_CGC_MEM_CTRL__SYS_LS_EN_MASK 0x200
#define UVD_CGC_MEM_CTRL__SYS_LS_EN__SHIFT 0x9
#define UVD_CGC_MEM_CTRL__VCPU_LS_EN_MASK 0x400
#define UVD_CGC_MEM_CTRL__VCPU_LS_EN__SHIFT 0xa
#define UVD_CGC_MEM_CTRL__SCPU_LS_EN_MASK 0x800
#define UVD_CGC_MEM_CTRL__SCPU_LS_EN__SHIFT 0xb
#define UVD_CGC_MEM_CTRL__MIF_LS_EN_MASK 0x1000
#define UVD_CGC_MEM_CTRL__MIF_LS_EN__SHIFT 0xc
#define UVD_CGC_MEM_CTRL__LCM_LS_EN_MASK 0x2000
#define UVD_CGC_MEM_CTRL__LCM_LS_EN__SHIFT 0xd
#define UVD_CGC_MEM_CTRL__JPEG_LS_EN_MASK 0x4000
#define UVD_CGC_MEM_CTRL__JPEG_LS_EN__SHIFT 0xe
#define UVD_CGC_MEM_CTRL__JPEG2_LS_EN_MASK 0x8000
#define UVD_CGC_MEM_CTRL__JPEG2_LS_EN__SHIFT 0xf
#define UVD_CGC_MEM_CTRL__LS_SET_DELAY_MASK 0xf0000
#define UVD_CGC_MEM_CTRL__LS_SET_DELAY__SHIFT 0x10
#define UVD_CGC_MEM_CTRL__LS_CLEAR_DELAY_MASK 0xf00000
#define UVD_CGC_MEM_CTRL__LS_CLEAR_DELAY__SHIFT 0x14
#define UVD_CGC_CTRL2__DYN_OCLK_RAMP_EN_MASK 0x1
#define UVD_CGC_CTRL2__DYN_OCLK_RAMP_EN__SHIFT 0x0
#define UVD_CGC_CTRL2__DYN_RCLK_RAMP_EN_MASK 0x2
#define UVD_CGC_CTRL2__DYN_RCLK_RAMP_EN__SHIFT 0x1
#define UVD_CGC_CTRL2__GATER_DIV_ID_MASK 0x1c
#define UVD_CGC_CTRL2__GATER_DIV_ID__SHIFT 0x2
#define UVD_LMI_VMID_INTERNAL3__MIF_GEN_RD0_VMID_MASK 0xf
#define UVD_LMI_VMID_INTERNAL3__MIF_GEN_RD0_VMID__SHIFT 0x0
#define UVD_LMI_VMID_INTERNAL3__MIF_GEN_RD1_VMID_MASK 0xf0
#define UVD_LMI_VMID_INTERNAL3__MIF_GEN_RD1_VMID__SHIFT 0x4
#define UVD_LMI_VMID_INTERNAL3__MIF_GEN_WR0_VMID_MASK 0xf00
#define UVD_LMI_VMID_INTERNAL3__MIF_GEN_WR0_VMID__SHIFT 0x8
#define UVD_LMI_VMID_INTERNAL3__MIF_GEN_WR1_VMID_MASK 0xf000
#define UVD_LMI_VMID_INTERNAL3__MIF_GEN_WR1_VMID__SHIFT 0xc
#define UVD_PGFSM_CONFIG__UVD_PGFSM_FSM_ADDR_MASK 0xff
#define UVD_PGFSM_CONFIG__UVD_PGFSM_FSM_ADDR__SHIFT 0x0
#define UVD_PGFSM_CONFIG__UVD_PGFSM_POWER_DOWN_MASK 0x100
#define UVD_PGFSM_CONFIG__UVD_PGFSM_POWER_DOWN__SHIFT 0x8
#define UVD_PGFSM_CONFIG__UVD_PGFSM_POWER_UP_MASK 0x200
#define UVD_PGFSM_CONFIG__UVD_PGFSM_POWER_UP__SHIFT 0x9
#define UVD_PGFSM_CONFIG__UVD_PGFSM_P1_SELECT_MASK 0x400
#define UVD_PGFSM_CONFIG__UVD_PGFSM_P1_SELECT__SHIFT 0xa
#define UVD_PGFSM_CONFIG__UVD_PGFSM_P2_SELECT_MASK 0x800
#define UVD_PGFSM_CONFIG__UVD_PGFSM_P2_SELECT__SHIFT 0xb
#define UVD_PGFSM_CONFIG__UVD_PGFSM_WRITE_MASK 0x1000
#define UVD_PGFSM_CONFIG__UVD_PGFSM_WRITE__SHIFT 0xc
#define UVD_PGFSM_CONFIG__UVD_PGFSM_READ_MASK 0x2000
#define UVD_PGFSM_CONFIG__UVD_PGFSM_READ__SHIFT 0xd
#define UVD_PGFSM_CONFIG__UVD_PGFSM_REG_ADDR_MASK 0xf0000000
#define UVD_PGFSM_CONFIG__UVD_PGFSM_REG_ADDR__SHIFT 0x1c
#define UVD_PGFSM_READ_TILE1__UVD_PGFSM_READ_TILE1_VALUE_MASK 0xffffff
#define UVD_PGFSM_READ_TILE1__UVD_PGFSM_READ_TILE1_VALUE__SHIFT 0x0
#define UVD_PGFSM_READ_TILE2__UVD_PGFSM_READ_TILE2_VALUE_MASK 0xffffff
#define UVD_PGFSM_READ_TILE2__UVD_PGFSM_READ_TILE2_VALUE__SHIFT 0x0
#define UVD_POWER_STATUS__UVD_POWER_STATUS_MASK 0x3
#define UVD_POWER_STATUS__UVD_POWER_STATUS__SHIFT 0x0
#define UVD_POWER_STATUS__UVD_PG_MODE_MASK 0x4
#define UVD_POWER_STATUS__UVD_PG_MODE__SHIFT 0x2
#define UVD_POWER_STATUS__UVD_STATUS_CHECK_TIMEOUT_MASK 0x8
#define UVD_POWER_STATUS__UVD_STATUS_CHECK_TIMEOUT__SHIFT 0x3
#define UVD_POWER_STATUS__PWR_ON_CHECK_TIMEOUT_MASK 0x10
#define UVD_POWER_STATUS__PWR_ON_CHECK_TIMEOUT__SHIFT 0x4
#define UVD_POWER_STATUS__PWR_OFF_CHECK_TIMEOUT_MASK 0x20
#define UVD_POWER_STATUS__PWR_OFF_CHECK_TIMEOUT__SHIFT 0x5
#define UVD_POWER_STATUS__UVD_PGFSM_TIMEOUT_MODE_MASK 0xc0
#define UVD_POWER_STATUS__UVD_PGFSM_TIMEOUT_MODE__SHIFT 0x6
#define UVD_POWER_STATUS__UVD_PG_EN_MASK 0x100
#define UVD_POWER_STATUS__UVD_PG_EN__SHIFT 0x8
#define UVD_POWER_STATUS__PAUSE_DPG_REQ_MASK 0x200
#define UVD_POWER_STATUS__PAUSE_DPG_REQ__SHIFT 0x9
#define UVD_POWER_STATUS__PAUSE_DPG_ACK_MASK 0x400
#define UVD_POWER_STATUS__PAUSE_DPG_ACK__SHIFT 0xa
#define UVD_PGFSM_READ_TILE3__UVD_PGFSM_READ_TILE3_VALUE_MASK 0xffffff
#define UVD_PGFSM_READ_TILE3__UVD_PGFSM_READ_TILE3_VALUE__SHIFT 0x0
#define UVD_PGFSM_READ_TILE4__UVD_PGFSM_READ_TILE4_VALUE_MASK 0xffffff
#define UVD_PGFSM_READ_TILE4__UVD_PGFSM_READ_TILE4_VALUE__SHIFT 0x0
#define UVD_PGFSM_READ_TILE5__UVD_PGFSM_READ_TILE5_VALUE_MASK 0xffffff
#define UVD_PGFSM_READ_TILE5__UVD_PGFSM_READ_TILE5_VALUE__SHIFT 0x0
#define UVD_PGFSM_READ_TILE6__UVD_PGFSM_READ_TILE6_VALUE_MASK 0xffffff
#define UVD_PGFSM_READ_TILE6__UVD_PGFSM_READ_TILE6_VALUE__SHIFT 0x0
#define UVD_PGFSM_READ_TILE7__UVD_PGFSM_READ_TILE7_VALUE_MASK 0xffffff
#define UVD_PGFSM_READ_TILE7__UVD_PGFSM_READ_TILE7_VALUE__SHIFT 0x0
#define UVD_MIF_CURR_ADDR_CONFIG__NUM_PIPES_MASK 0x7
#define UVD_MIF_CURR_ADDR_CONFIG__NUM_PIPES__SHIFT 0x0
#define UVD_MIF_CURR_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE_MASK 0x70
#define UVD_MIF_CURR_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE__SHIFT 0x4
#define UVD_MIF_CURR_ADDR_CONFIG__BANK_INTERLEAVE_SIZE_MASK 0x700
#define UVD_MIF_CURR_ADDR_CONFIG__BANK_INTERLEAVE_SIZE__SHIFT 0x8
#define UVD_MIF_CURR_ADDR_CONFIG__NUM_SHADER_ENGINES_MASK 0x3000
#define UVD_MIF_CURR_ADDR_CONFIG__NUM_SHADER_ENGINES__SHIFT 0xc
#define UVD_MIF_CURR_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE_MASK 0x70000
#define UVD_MIF_CURR_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE__SHIFT 0x10
#define UVD_MIF_CURR_ADDR_CONFIG__NUM_GPUS_MASK 0x700000
#define UVD_MIF_CURR_ADDR_CONFIG__NUM_GPUS__SHIFT 0x14
#define UVD_MIF_CURR_ADDR_CONFIG__MULTI_GPU_TILE_SIZE_MASK 0x3000000
#define UVD_MIF_CURR_ADDR_CONFIG__MULTI_GPU_TILE_SIZE__SHIFT 0x18
#define UVD_MIF_CURR_ADDR_CONFIG__ROW_SIZE_MASK 0x30000000
#define UVD_MIF_CURR_ADDR_CONFIG__ROW_SIZE__SHIFT 0x1c
#define UVD_MIF_CURR_ADDR_CONFIG__NUM_LOWER_PIPES_MASK 0x40000000
#define UVD_MIF_CURR_ADDR_CONFIG__NUM_LOWER_PIPES__SHIFT 0x1e
#define UVD_MIF_REF_ADDR_CONFIG__NUM_PIPES_MASK 0x7
#define UVD_MIF_REF_ADDR_CONFIG__NUM_PIPES__SHIFT 0x0
#define UVD_MIF_REF_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE_MASK 0x70
#define UVD_MIF_REF_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE__SHIFT 0x4
#define UVD_MIF_REF_ADDR_CONFIG__BANK_INTERLEAVE_SIZE_MASK 0x700
#define UVD_MIF_REF_ADDR_CONFIG__BANK_INTERLEAVE_SIZE__SHIFT 0x8
#define UVD_MIF_REF_ADDR_CONFIG__NUM_SHADER_ENGINES_MASK 0x3000
#define UVD_MIF_REF_ADDR_CONFIG__NUM_SHADER_ENGINES__SHIFT 0xc
#define UVD_MIF_REF_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE_MASK 0x70000
#define UVD_MIF_REF_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE__SHIFT 0x10
#define UVD_MIF_REF_ADDR_CONFIG__NUM_GPUS_MASK 0x700000
#define UVD_MIF_REF_ADDR_CONFIG__NUM_GPUS__SHIFT 0x14
#define UVD_MIF_REF_ADDR_CONFIG__MULTI_GPU_TILE_SIZE_MASK 0x3000000
#define UVD_MIF_REF_ADDR_CONFIG__MULTI_GPU_TILE_SIZE__SHIFT 0x18
#define UVD_MIF_REF_ADDR_CONFIG__ROW_SIZE_MASK 0x30000000
#define UVD_MIF_REF_ADDR_CONFIG__ROW_SIZE__SHIFT 0x1c
#define UVD_MIF_REF_ADDR_CONFIG__NUM_LOWER_PIPES_MASK 0x40000000
#define UVD_MIF_REF_ADDR_CONFIG__NUM_LOWER_PIPES__SHIFT 0x1e
#define UVD_MIF_RECON1_ADDR_CONFIG__NUM_PIPES_MASK 0x7
#define UVD_MIF_RECON1_ADDR_CONFIG__NUM_PIPES__SHIFT 0x0
#define UVD_MIF_RECON1_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE_MASK 0x70
#define UVD_MIF_RECON1_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE__SHIFT 0x4
#define UVD_MIF_RECON1_ADDR_CONFIG__BANK_INTERLEAVE_SIZE_MASK 0x700
#define UVD_MIF_RECON1_ADDR_CONFIG__BANK_INTERLEAVE_SIZE__SHIFT 0x8
#define UVD_MIF_RECON1_ADDR_CONFIG__NUM_SHADER_ENGINES_MASK 0x3000
#define UVD_MIF_RECON1_ADDR_CONFIG__NUM_SHADER_ENGINES__SHIFT 0xc
#define UVD_MIF_RECON1_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE_MASK 0x70000
#define UVD_MIF_RECON1_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE__SHIFT 0x10
#define UVD_MIF_RECON1_ADDR_CONFIG__NUM_GPUS_MASK 0x700000
#define UVD_MIF_RECON1_ADDR_CONFIG__NUM_GPUS__SHIFT 0x14
#define UVD_MIF_RECON1_ADDR_CONFIG__MULTI_GPU_TILE_SIZE_MASK 0x3000000
#define UVD_MIF_RECON1_ADDR_CONFIG__MULTI_GPU_TILE_SIZE__SHIFT 0x18
#define UVD_MIF_RECON1_ADDR_CONFIG__ROW_SIZE_MASK 0x30000000
#define UVD_MIF_RECON1_ADDR_CONFIG__ROW_SIZE__SHIFT 0x1c
#define UVD_MIF_RECON1_ADDR_CONFIG__NUM_LOWER_PIPES_MASK 0x40000000
#define UVD_MIF_RECON1_ADDR_CONFIG__NUM_LOWER_PIPES__SHIFT 0x1e
#define UVD_MIF_SCLR_ADDR_CONFIG__NUM_PIPES_MASK 0x7
#define UVD_MIF_SCLR_ADDR_CONFIG__NUM_PIPES__SHIFT 0x0
#define UVD_MIF_SCLR_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE_MASK 0x70
#define UVD_MIF_SCLR_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE__SHIFT 0x4
#define UVD_MIF_SCLR_ADDR_CONFIG__BANK_INTERLEAVE_SIZE_MASK 0x700
#define UVD_MIF_SCLR_ADDR_CONFIG__BANK_INTERLEAVE_SIZE__SHIFT 0x8
#define UVD_MIF_SCLR_ADDR_CONFIG__NUM_SHADER_ENGINES_MASK 0x3000
#define UVD_MIF_SCLR_ADDR_CONFIG__NUM_SHADER_ENGINES__SHIFT 0xc
#define UVD_MIF_SCLR_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE_MASK 0x70000
#define UVD_MIF_SCLR_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE__SHIFT 0x10
#define UVD_MIF_SCLR_ADDR_CONFIG__NUM_GPUS_MASK 0x700000
#define UVD_MIF_SCLR_ADDR_CONFIG__NUM_GPUS__SHIFT 0x14
#define UVD_MIF_SCLR_ADDR_CONFIG__MULTI_GPU_TILE_SIZE_MASK 0x3000000
#define UVD_MIF_SCLR_ADDR_CONFIG__MULTI_GPU_TILE_SIZE__SHIFT 0x18
#define UVD_MIF_SCLR_ADDR_CONFIG__ROW_SIZE_MASK 0x30000000
#define UVD_MIF_SCLR_ADDR_CONFIG__ROW_SIZE__SHIFT 0x1c
#define UVD_MIF_SCLR_ADDR_CONFIG__NUM_LOWER_PIPES_MASK 0x40000000
#define UVD_MIF_SCLR_ADDR_CONFIG__NUM_LOWER_PIPES__SHIFT 0x1e
#define UVD_JPEG_ADDR_CONFIG__NUM_PIPES_MASK 0x7
#define UVD_JPEG_ADDR_CONFIG__NUM_PIPES__SHIFT 0x0
#define UVD_JPEG_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE_MASK 0x70
#define UVD_JPEG_ADDR_CONFIG__PIPE_INTERLEAVE_SIZE__SHIFT 0x4
#define UVD_JPEG_ADDR_CONFIG__BANK_INTERLEAVE_SIZE_MASK 0x700
#define UVD_JPEG_ADDR_CONFIG__BANK_INTERLEAVE_SIZE__SHIFT 0x8
#define UVD_JPEG_ADDR_CONFIG__NUM_SHADER_ENGINES_MASK 0x3000
#define UVD_JPEG_ADDR_CONFIG__NUM_SHADER_ENGINES__SHIFT 0xc
#define UVD_JPEG_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE_MASK 0x70000
#define UVD_JPEG_ADDR_CONFIG__SHADER_ENGINE_TILE_SIZE__SHIFT 0x10
#define UVD_JPEG_ADDR_CONFIG__NUM_GPUS_MASK 0x700000
#define UVD_JPEG_ADDR_CONFIG__NUM_GPUS__SHIFT 0x14
#define UVD_JPEG_ADDR_CONFIG__MULTI_GPU_TILE_SIZE_MASK 0x3000000
#define UVD_JPEG_ADDR_CONFIG__MULTI_GPU_TILE_SIZE__SHIFT 0x18
#define UVD_JPEG_ADDR_CONFIG__ROW_SIZE_MASK 0x30000000
#define UVD_JPEG_ADDR_CONFIG__ROW_SIZE__SHIFT 0x1c
#define UVD_JPEG_ADDR_CONFIG__NUM_LOWER_PIPES_MASK 0x40000000
#define UVD_JPEG_ADDR_CONFIG__NUM_LOWER_PIPES__SHIFT 0x1e
#endif /* UVD_6_0_SH_MASK_H */
| {
"pile_set_name": "Github"
} |
<?xml version="1.0"?>
<!--
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>
<artifactId>callback</artifactId>
<name>CXF sample using a callback object</name>
<description>CXF sample using a callback object</description>
<parent>
<groupId>org.apache.cxf.samples</groupId>
<artifactId>cxf-samples</artifactId>
<version>3.4.1-SNAPSHOT</version>
</parent>
<properties>
<cxf.version>${project.version}</cxf.version>
<wsdl.file>${basedir}/src/main/resources/basic_callback.wsdl</wsdl.file>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>generate-CallbackService</id>
<phase>generate-sources</phase>
<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>${wsdl.file}</wsdl>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>server</id>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>demo.callback.server.Server</mainClass>
<arguments>
<argument>${wsdl.file}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>client</id>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>demo.callback.client.Client</argument>
<argument>${wsdl.file}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.4.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>3.4.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>3.4.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
| {
"pile_set_name": "Github"
} |
debug conn: opening connection 10.2.96.127:57861 -> 10.2.104.129:80
debug grammar: parse error at byte 14 for field 4 in request_line: token /[[:blank:]]+/ doesn't match
debug grammar: parse error context: \x0aHost: --\x0a\x0a...
alert: id = = <>
severity = low
description = invalid http request_line
debug conn: dropping connection 10.2.96.127:57861 -> 10.2.104.129:80
debug core: applying policy default action for no connection found for tcp packet
alert: id = = <>
severity = low
description = no connection found for tcp packet
sources = {
address: 10.2.104.129
service: tcp/80
}
targets = {
address: 10.2.96.127
service: tcp/57859
}
debug core: applying policy default action for no connection found for tcp packet
alert: id = = <>
severity = low
description = no connection found for tcp packet
sources = {
address: 10.2.96.127
service: tcp/57859
}
targets = {
address: 10.2.104.129
service: tcp/80
}
debug lua: closing state
debug conn: <cleanup> connection
| {
"pile_set_name": "Github"
} |
/********************************************************
** Copyright 2002 Earth Resource Mapping Ltd.
** This document contains proprietary source code of
** Earth Resource Mapping Ltd, and can only be used under
** one of the three licenses as described in the
** license.txt file supplied with this distribution.
** See separate license.txt file for license details
** and conditions.
**
** This software is covered by US patent #6,442,298,
** #6,102,897 and #6,633,688. Rights to use these patents
** is included in the license agreements.
**
** FILE: $Archive: /NCS/Source/include/NCSJPCDefs.h $
** CREATED: 05/12/2002 3:27:34 PM
** AUTHOR: Simon Cope
** PURPOSE: NCSJPC Defines
** EDITS: [xx] ddMmmyy NAME COMMENTS
*******************************************************/
#ifndef NCSJPCDEFS_H
#define NCSJPCDEFS_H
//
// Disable dll-interface warning, compiler gives it on protected/private members.
// Disable truncated name mangling warning
//
#ifdef _MSC_VER
#pragma warning( disable : 4251 4786 4717 4275 4163)
#endif
//
// Remove unnecessary stubs to reduce binary size
//
#define NCSJPC_LEAN_AND_MEAN
#ifndef NCSDEFS_H
#include "NCSDefs.h"
#endif // NCSDEFS_H
#if defined(WIN32)&&!defined(_WIN32_WCE)&&((defined(_X86_) && defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 12008804))||(defined(_AMD64_) && defined(_MSC_VER) && _MSC_VER >= 1400))
//
// X86 "Multi Media Intrinsics" - ie, MMX, SSE, SSE2 optimisations
//
// Only defined if Win32, X86 and VC6 Processor Pack or newer _OR_ AMD64 and >= VS.NET 2005/AMD64 PlatformSDK compiler (ie, SSE intrinsics support in the compiler)
//
#define NCSJPC_X86_MMI
#if !defined(_AMD64_)
#define NCSJPC_X86_MMI_MMX
// Prevent mmintrin.h from being included
//#define _MMINTRIN_H_INCLUDED
#endif
#endif
//
// Use LCMS for ICC->RGB conversions, supports both
// restricted and full ICC profiles.
//
#define NCSJPC_USE_LCMS
//
// Use TinyXML for XML DOM Parsing
//
#define NCSJPC_USE_TINYXML
//
// Include ECW Decompression in lib
//
#define NCSJPC_ECW_SUPPORT
//
// Include ECW Compression in lib
//
#define ECW_COMPRESS
#ifndef NCSJPC_EXPORT
#define NCSJPC_EXPORT NCS_EXPORT
#endif // NCSJPC_EXPORT
#ifndef NCSJPC_EXPORT_ALL
#define NCSJPC_EXPORT_ALL NCS_EXPORT
#endif // NCSJPC_EXPORT_ALL
#define NCSJPC_2POW11 2048
#define NCSJP2_STRIP_HEIGHT 64
#endif // NCSJPCDEFS_H
| {
"pile_set_name": "Github"
} |
//* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Mozilla.
*
* The Initial Developer of the Original Code is IBM Corporation.
* Portions created by IBM Corporation are Copyright (C) 2003
* IBM Corporation. All Rights Reserved.
*
* Contributor(s):
* Darin Fisher <[email protected]>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/**
* nsTSubstringTuple_CharT
*
* Represents a tuple of string fragments. Built as a recursive binary tree.
* It is used to implement the concatenation of two or more string objects.
*
* NOTE: This class is a private implementation detail and should never be
* referenced outside the string code.
*/
class nsTSubstringTuple_CharT
{
public:
typedef CharT char_type;
typedef nsCharTraits<char_type> char_traits;
typedef nsTSubstringTuple_CharT self_type;
typedef nsTSubstring_CharT substring_type;
#ifdef MOZ_V1_STRING_ABI
typedef nsTAString_CharT base_string_type;
typedef nsTObsoleteAString_CharT obsolete_string_type;
#else
typedef nsTSubstring_CharT base_string_type;
#endif
typedef PRUint32 size_type;
public:
nsTSubstringTuple_CharT(const base_string_type* a, const base_string_type* b)
: mHead(nsnull)
, mFragA(a)
, mFragB(b) {}
nsTSubstringTuple_CharT(const self_type& head, const base_string_type* b)
: mHead(&head)
, mFragA(nsnull) // this fragment is ignored when head != nsnull
, mFragB(b) {}
/**
* computes the aggregate string length
*/
NS_COM size_type Length() const;
/**
* writes the aggregate string to the given buffer. bufLen is assumed
* to be equal to or greater than the value returned by the Length()
* method. the string written to |buf| is not null-terminated.
*/
NS_COM void WriteTo(char_type *buf, PRUint32 bufLen) const;
/**
* returns true if this tuple is dependent on (i.e., overlapping with)
* the given char sequence.
*/
NS_COM PRBool IsDependentOn(const char_type *start, const char_type *end) const;
private:
const self_type* mHead;
const base_string_type* mFragA;
const base_string_type* mFragB;
};
inline
const nsTSubstringTuple_CharT
operator+(const nsTSubstringTuple_CharT::base_string_type& a, const nsTSubstringTuple_CharT::base_string_type& b)
{
return nsTSubstringTuple_CharT(&a, &b);
}
inline
const nsTSubstringTuple_CharT
operator+(const nsTSubstringTuple_CharT& head, const nsTSubstringTuple_CharT::base_string_type& b)
{
return nsTSubstringTuple_CharT(head, &b);
}
| {
"pile_set_name": "Github"
} |
/*
LUFA Library
Copyright (C) Dean Camera, 2014.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
without fee, provided that the above copyright notice appear in
all copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of the author not be used in
advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
The author disclaims all warranties with regard to this
software, including all implied warranties of merchantability
and fitness. In no event shall the author be liable for any
special, indirect or consequential damages or any damages
whatsoever resulting from loss of use, data or profits, whether
in an action of contract, negligence or other tortious action,
arising out of or in connection with the use or performance of
this software.
*/
/** \file
* \brief Host mode driver for the library USB Audio 1.0 Class driver.
*
* Host mode driver for the library USB Audio 1.0 Class driver.
*
* \note This file should not be included directly. It is automatically included as needed by the USB module driver
* dispatch header located in LUFA/Drivers/USB.h.
*/
/** \ingroup Group_USBClassAudio
* \defgroup Group_USBClassAudioHost Audio 1.0 Class Host Mode Driver
*
* \section Sec_USBClassAudioHost_Dependencies Module Source Dependencies
* The following files must be built with any user project that uses this module:
* - LUFA/Drivers/USB/Class/Host/AudioClassHost.c <i>(Makefile source module name: LUFA_SRC_USBCLASS)</i>
*
* \section Sec_USBClassAudioHost_ModDescription Module Description
* Host Mode USB Class driver framework interface, for the Audio 1.0 USB Class driver.
*
* @{
*/
#ifndef __AUDIO_CLASS_HOST_H__
#define __AUDIO_CLASS_HOST_H__
/* Includes: */
#include "../../USB.h"
#include "../Common/AudioClassCommon.h"
/* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus)
extern "C" {
#endif
/* Preprocessor Checks: */
#if !defined(__INCLUDE_FROM_AUDIO_DRIVER)
#error Do not include this file directly. Include LUFA/Drivers/USB.h instead.
#endif
/* Public Interface - May be used in end-application: */
/* Type Defines: */
/** \brief Audio Class Host Mode Configuration and State Structure.
*
* Class state structure. An instance of this structure should be made within the user application,
* and passed to each of the Audio class driver functions as the \c AudioInterfaceInfo parameter. This
* stores each Audio interface's configuration and state information.
*/
typedef struct
{
struct
{
USB_Pipe_Table_t DataINPipe; /**< Data IN Pipe configuration table. */
USB_Pipe_Table_t DataOUTPipe; /**< Data OUT Pipe configuration table. */
} Config; /**< Config data for the USB class interface within the device. All elements in this section
* <b>must</b> be set or the interface will fail to enumerate and operate correctly.
*/
struct
{
bool IsActive; /**< Indicates if the current interface instance is connected to an attached device, valid
* after \ref Audio_Host_ConfigurePipes() is called and the Host state machine is in the
* Configured state.
*/
uint8_t ControlInterfaceNumber; /**< Interface index of the Audio Control interface within the attached device. */
uint8_t StreamingInterfaceNumber; /**< Interface index of the Audio Streaming interface within the attached device. */
uint8_t EnabledStreamingAltIndex; /**< Alternative setting index of the Audio Streaming interface when the stream is enabled. */
} State; /**< State data for the USB class interface within the device. All elements in this section
* <b>may</b> be set to initial values, but may also be ignored to default to sane values when
* the interface is enumerated.
*/
} USB_ClassInfo_Audio_Host_t;
/* Enums: */
/** Enum for the possible error codes returned by the \ref Audio_Host_ConfigurePipes() function. */
enum AUDIO_Host_EnumerationFailure_ErrorCodes_t
{
AUDIO_ENUMERROR_NoError = 0, /**< Configuration Descriptor was processed successfully. */
AUDIO_ENUMERROR_InvalidConfigDescriptor = 1, /**< The device returned an invalid Configuration Descriptor. */
AUDIO_ENUMERROR_NoCompatibleInterfaceFound = 2, /**< A compatible AUDIO interface was not found in the device's Configuration Descriptor. */
AUDIO_ENUMERROR_PipeConfigurationFailed = 3, /**< One or more pipes for the specified interface could not be configured correctly. */
};
/* Function Prototypes: */
/** Host interface configuration routine, to configure a given Audio host interface instance using the Configuration
* Descriptor read from an attached USB device. This function automatically updates the given Audio Host instance's
* state values and configures the pipes required to communicate with the interface if it is found within the
* device. This should be called once after the stack has enumerated the attached device, while the host state
* machine is in the Addressed state.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class host configuration and state.
* \param[in] ConfigDescriptorSize Length of the attached device's Configuration Descriptor.
* \param[in] ConfigDescriptorData Pointer to a buffer containing the attached device's Configuration Descriptor.
*
* \return A value from the \ref AUDIO_Host_EnumerationFailure_ErrorCodes_t enum.
*/
uint8_t Audio_Host_ConfigurePipes(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
uint16_t ConfigDescriptorSize,
void* ConfigDescriptorData) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(3);
/** Starts or stops the audio streaming for the given configured Audio Host interface, allowing for audio samples to be
* send and/or received.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class host configuration and state.
* \param[in] EnableStreaming Boolean true to enable streaming of the specified interface, \c false to disable
*
* \return A value from the \ref USB_Host_SendControlErrorCodes_t enum.
*/
uint8_t Audio_Host_StartStopStreaming(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
const bool EnableStreaming) ATTR_NON_NULL_PTR_ARG(1);
/** Gets or sets the specified property of a streaming audio class endpoint that is bound to a pipe in the given
* class instance.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class host configuration and state.
* \param[in] DataPipeIndex Index of the data pipe whose bound endpoint is to be altered.
* \param[in] EndpointProperty Property of the endpoint to get or set, a value from \ref Audio_ClassRequests_t.
* \param[in] EndpointControl Parameter of the endpoint to get or set, a value from \ref Audio_EndpointControls_t.
* \param[in,out] DataLength For SET operations, the length of the parameter data to set. For GET operations, the maximum
* length of the retrieved data.
* \param[in,out] Data Pointer to a location where the parameter data is stored for SET operations, or where
* the retrieved data is to be stored for GET operations.
*
* \return A value from the \ref USB_Host_SendControlErrorCodes_t enum.
*/
uint8_t Audio_Host_GetSetEndpointProperty(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
const uint8_t DataPipeIndex,
const uint8_t EndpointProperty,
const uint8_t EndpointControl,
const uint16_t DataLength,
void* const Data) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(6);
/* Inline Functions: */
/** General management task for a given Audio host class interface, required for the correct operation of
* the interface. This should be called frequently in the main program loop, before the master USB management task
* \ref USB_USBTask().
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class host configuration and state.
*/
static inline void Audio_Host_USBTask(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline void Audio_Host_USBTask(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
{
(void)AudioInterfaceInfo;
}
/** Determines if the given audio interface is ready for a sample to be read from it, and selects the streaming
* IN pipe ready for reading.
*
* \pre This function must only be called when the Host state machine is in the \ref HOST_STATE_Configured state or
* the call will fail.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class configuration and state.
*
* \return Boolean \c true if the given Audio interface has a sample to be read, \c false otherwise.
*/
static inline bool Audio_Host_IsSampleReceived(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline bool Audio_Host_IsSampleReceived(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
{
if ((USB_HostState != HOST_STATE_Configured) || !(AudioInterfaceInfo->State.IsActive))
return false;
bool SampleReceived = false;
Pipe_SelectPipe(AudioInterfaceInfo->Config.DataINPipe.Address);
Pipe_Unfreeze();
SampleReceived = Pipe_IsINReceived();
Pipe_Freeze();
return SampleReceived;
}
/** Determines if the given audio interface is ready to accept the next sample to be written to it, and selects
* the streaming OUT pipe ready for writing.
*
* \pre This function must only be called when the Host state machine is in the \ref HOST_STATE_Configured state or
* the call will fail.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class configuration and state.
*
* \return Boolean \c true if the given Audio interface is ready to accept the next sample, \c false otherwise.
*/
static inline bool Audio_Host_IsReadyForNextSample(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline bool Audio_Host_IsReadyForNextSample(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
{
if ((USB_HostState != HOST_STATE_Configured) || !(AudioInterfaceInfo->State.IsActive))
return false;
Pipe_SelectPipe(AudioInterfaceInfo->Config.DataOUTPipe.Address);
return Pipe_IsOUTReady();
}
/** Reads the next 8-bit audio sample from the current audio interface.
*
* \pre This should be preceded immediately by a call to the \ref Audio_Host_IsSampleReceived() function to ensure
* that the correct pipe is selected and ready for data.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class configuration and state.
*
* \return Signed 8-bit audio sample from the audio interface.
*/
static inline int8_t Audio_Host_ReadSample8(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline int8_t Audio_Host_ReadSample8(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
{
int8_t Sample;
(void)AudioInterfaceInfo;
Sample = Pipe_Read_8();
if (!(Pipe_BytesInPipe()))
{
Pipe_Unfreeze();
Pipe_ClearIN();
Pipe_Freeze();
}
return Sample;
}
/** Reads the next 16-bit audio sample from the current audio interface.
*
* \pre This should be preceded immediately by a call to the \ref Audio_Host_IsSampleReceived() function to ensure
* that the correct pipe is selected and ready for data.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class configuration and state.
*
* \return Signed 16-bit audio sample from the audio interface.
*/
static inline int16_t Audio_Host_ReadSample16(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline int16_t Audio_Host_ReadSample16(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
{
int16_t Sample;
(void)AudioInterfaceInfo;
Sample = (int16_t)Pipe_Read_16_LE();
if (!(Pipe_BytesInPipe()))
{
Pipe_Unfreeze();
Pipe_ClearIN();
Pipe_Freeze();
}
return Sample;
}
/** Reads the next 24-bit audio sample from the current audio interface.
*
* \pre This should be preceded immediately by a call to the \ref Audio_Host_IsSampleReceived() function to ensure
* that the correct pipe is selected and ready for data.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class configuration and state.
*
* \return Signed 24-bit audio sample from the audio interface.
*/
static inline int32_t Audio_Host_ReadSample24(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline int32_t Audio_Host_ReadSample24(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo)
{
int32_t Sample;
(void)AudioInterfaceInfo;
Sample = (((uint32_t)Pipe_Read_8() << 16) | Pipe_Read_16_LE());
if (!(Pipe_BytesInPipe()))
{
Pipe_Unfreeze();
Pipe_ClearIN();
Pipe_Freeze();
}
return Sample;
}
/** Writes the next 8-bit audio sample to the current audio interface.
*
* \pre This should be preceded immediately by a call to the \ref Audio_Host_IsReadyForNextSample() function to
* ensure that the correct pipe is selected and ready for data.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class configuration and state.
* \param[in] Sample Signed 8-bit audio sample.
*/
static inline void Audio_Host_WriteSample8(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
const int8_t Sample) ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline void Audio_Host_WriteSample8(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
const int8_t Sample)
{
(void)AudioInterfaceInfo;
Pipe_Write_8(Sample);
if (!(Pipe_IsReadWriteAllowed()))
{
Pipe_Unfreeze();
Pipe_ClearOUT();
Pipe_WaitUntilReady();
Pipe_Freeze();
}
}
/** Writes the next 16-bit audio sample to the current audio interface.
*
* \pre This should be preceded immediately by a call to the \ref Audio_Host_IsReadyForNextSample() function to
* ensure that the correct pipe is selected and ready for data.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class configuration and state.
* \param[in] Sample Signed 16-bit audio sample.
*/
static inline void Audio_Host_WriteSample16(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
const int16_t Sample) ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline void Audio_Host_WriteSample16(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
const int16_t Sample)
{
(void)AudioInterfaceInfo;
Pipe_Write_16_LE(Sample);
if (!(Pipe_IsReadWriteAllowed()))
{
Pipe_Unfreeze();
Pipe_ClearOUT();
Pipe_WaitUntilReady();
Pipe_Freeze();
}
}
/** Writes the next 24-bit audio sample to the current audio interface.
*
* \pre This should be preceded immediately by a call to the \ref Audio_Host_IsReadyForNextSample() function to
* ensure that the correct pipe is selected and ready for data.
*
* \param[in,out] AudioInterfaceInfo Pointer to a structure containing an Audio Class configuration and state.
* \param[in] Sample Signed 24-bit audio sample.
*/
static inline void Audio_Host_WriteSample24(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
const int32_t Sample) ATTR_NON_NULL_PTR_ARG(1) ATTR_ALWAYS_INLINE;
static inline void Audio_Host_WriteSample24(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
const int32_t Sample)
{
(void)AudioInterfaceInfo;
Pipe_Write_16_LE(Sample);
Pipe_Write_8(Sample >> 16);
if (!(Pipe_IsReadWriteAllowed()))
{
Pipe_Unfreeze();
Pipe_ClearOUT();
Pipe_WaitUntilReady();
Pipe_Freeze();
}
}
/* Private Interface - For use in library only: */
#if !defined(__DOXYGEN__)
/* Function Prototypes: */
#if defined(__INCLUDE_FROM_AUDIO_HOST_C)
static uint8_t DCOMP_Audio_Host_NextAudioControlInterface(void* CurrentDescriptor)
ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(1);
static uint8_t DCOMP_Audio_Host_NextAudioStreamInterface(void* CurrentDescriptor)
ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(1);
static uint8_t DCOMP_Audio_Host_NextAudioInterfaceDataEndpoint(void* CurrentDescriptor)
ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(1);
#endif
#endif
/* Disable C linkage for C++ Compilers: */
#if defined(__cplusplus)
}
#endif
#endif
/** @} */
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="th">
<translation id="IDS_ACCEPT_LANGUAGES">th-TH,th</translation>
<translation id="IDS_DEFAULT_ENCODING">windows-874</translation>
<translation id="IDS_USES_UNIVERSAL_DETECTOR">false</translation>
<translation id="IDS_SPELLCHECK_DICTIONARY">en-US</translation>
<translation id="IDS_OPTIONS_DIALOG_LEFT_COLUMN_WIDTH_CHARS">26</translation>
<translation id="IDS_OPTIONS_RESET_CONFIRM_BOX_WIDTH_CHARS">80</translation>
<translation id="IDS_URLPICKER_DIALOG_WIDTH_CHARS">80</translation>
<translation id="IDS_URLPICKER_DIALOG_HEIGHT_LINES">30</translation>
<translation id="IDS_URLPICKER_DIALOG_LEFT_COLUMN_WIDTH_CHARS">33</translation>
<translation id="IDS_PASSWORDS_DIALOG_WIDTH_CHARS">106</translation>
<translation id="IDS_PASSWORDS_DIALOG_HEIGHT_LINES">27</translation>
<translation id="IDS_CUSTOMIZE_SYNC_DIALOG_WIDTH_CHARS">60</translation>
<translation id="IDS_CUSTOMIZE_SYNC_DIALOG_HEIGHT_LINES">10</translation>
<translation id="IDS_BUGREPORT_DIALOG_WIDTH_CHARS">85</translation>
<translation id="IDS_BUGREPORT_DIALOG_HEIGHT_LINES">17</translation>
<translation id="IDS_CLEARDATA_DIALOG_WIDTH_CHARS">60</translation>
<translation id="IDS_IMPORT_DIALOG_WIDTH_CHARS">60</translation>
<translation id="IDS_IMPORT_DIALOG_HEIGHT_LINES">14</translation>
<translation id="IDS_ABOUT_DIALOG_WIDTH_CHARS">83</translation>
<translation id="IDS_ABOUT_DIALOG_MINIMUM_HEIGHT_LINES">4</translation>
<translation id="IDS_FONTSLANG_DIALOG_WIDTH_CHARS">97</translation>
<translation id="IDS_FONTSLANG_DIALOG_HEIGHT_LINES">26</translation>
<translation id="IDS_PAGEINFO_DIALOG_WIDTH_CHARS">70</translation>
<translation id="IDS_PAGEINFO_DIALOG_HEIGHT_LINES">25</translation>
<translation id="IDS_SEARCHENGINES_DIALOG_WIDTH_CHARS">95</translation>
<translation id="IDS_SEARCHENGINES_DIALOG_HEIGHT_LINES">25</translation>
<translation id="IDS_SHELFITEM_DIALOG_WIDTH_CHARS">80</translation>
<translation id="IDS_SHELFITEM_DIALOG_HEIGHT_LINES">30</translation>
<translation id="IDS_EDITBOOKMARK_DIALOG_WIDTH_CHARS">70</translation>
<translation id="IDS_EDITBOOKMARK_DIALOG_HEIGHT_LINES">25</translation>
<translation id="IDS_FIRSTRUN_DIALOG_WIDTH_CHARS">80</translation>
<translation id="IDS_FIRSTRUN_DIALOG_HEIGHT_LINES">19</translation>
<translation id="IDS_FIRSTRUNCUSTOMIZE_DIALOG_WIDTH_CHARS">80</translation>
<translation id="IDS_FIRSTRUNCUSTOMIZE_DIALOG_HEIGHT_LINES">17</translation>
<translation id="IDS_COOKIES_DIALOG_WIDTH_CHARS">80</translation>
<translation id="IDS_COOKIES_DIALOG_HEIGHT_LINES">29</translation>
<translation id="IDS_IMPORTPROGRESS_DIALOG_WIDTH_CHARS">75</translation>
<translation id="IDS_IMPORTPROGRESS_DIALOG_HEIGHT_LINES">16</translation>
<translation id="IDS_IMPORTLOCK_DIALOG_WIDTH_CHARS">50</translation>
<translation id="IDS_IMPORTLOCK_DIALOG_HEIGHT_LINES">8</translation>
<translation id="IDS_FIRSTRUNBUBBLE_DIALOG_WIDTH_CHARS">93</translation>
<translation id="IDS_FIRSTRUNBUBBLE_DIALOG_HEIGHT_LINES">12</translation>
<translation id="IDS_FIRSTRUNOEMBUBBLE_DIALOG_WIDTH_CHARS">70</translation>
<translation id="IDS_FIRSTRUNOEMBUBBLE_DIALOG_HEIGHT_LINES">4</translation>
<translation id="IDS_STATIC_ENCODING_LIST">windows-874</translation>
<translation id="IDS_BOOKMARK_MANAGER_DIALOG_WIDTH_CHARS">150</translation>
<translation id="IDS_BOOKMARK_MANAGER_DIALOG_HEIGHT_LINES">40</translation>
<translation id="IDS_DOWNLOAD_BIG_PROGRESS_SIZE">52</translation>
<translation id="IDS_SELECT_PROFILE_DIALOG_WIDTH_CHARS">60</translation>
<translation id="IDS_SELECT_PROFILE_DIALOG_HEIGHT_LINES">5</translation>
<translation id="IDS_NEW_PROFILE_DIALOG_WIDTH_CHARS">60</translation>
<translation id="IDS_SYNC_SETUP_WIZARD_WIDTH_CHARS">46</translation>
<translation id="IDS_SYNC_SETUP_WIZARD_HEIGHT_LINES">15</translation>
<translation id="IDS_CONFIRM_MESSAGE_BOX_DEFAULT_WIDTH_CHARS">50</translation>
<translation id="IDS_CONFIRM_MESSAGE_BOX_DEFAULT_HEIGHT_LINES">5</translation>
<translation id="IDS_CONFIRM_STOP_SYNCING_DIALOG_WIDTH_CHARS">60</translation>
<translation id="IDS_CONFIRM_STOP_SYNCING_DIALOG_HEIGHT_LINES">8</translation>
<translation id="IDS_DOWNLOAD_IN_PROGRESS_WIDTH_CHARS">67</translation>
<translation id="IDS_DOWNLOAD_IN_PROGRESS_MINIMUM_HEIGHT_LINES">4</translation>
</translationbundle>
| {
"pile_set_name": "Github"
} |
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package packages
import (
"bytes"
"encoding/json"
"fmt"
"go/types"
"io/ioutil"
"log"
"os"
"os/exec"
"path"
"path/filepath"
"reflect"
"regexp"
"strconv"
"strings"
"sync"
"time"
"unicode"
"golang.org/x/tools/go/internal/packagesdriver"
"golang.org/x/tools/internal/gopathwalk"
"golang.org/x/tools/internal/semver"
)
// debug controls verbose logging.
var debug, _ = strconv.ParseBool(os.Getenv("GOPACKAGESDEBUG"))
// A goTooOldError reports that the go command
// found by exec.LookPath is too old to use the new go list behavior.
type goTooOldError struct {
error
}
// responseDeduper wraps a driverResponse, deduplicating its contents.
type responseDeduper struct {
seenRoots map[string]bool
seenPackages map[string]*Package
dr *driverResponse
}
// init fills in r with a driverResponse.
func (r *responseDeduper) init(dr *driverResponse) {
r.dr = dr
r.seenRoots = map[string]bool{}
r.seenPackages = map[string]*Package{}
for _, pkg := range dr.Packages {
r.seenPackages[pkg.ID] = pkg
}
for _, root := range dr.Roots {
r.seenRoots[root] = true
}
}
func (r *responseDeduper) addPackage(p *Package) {
if r.seenPackages[p.ID] != nil {
return
}
r.seenPackages[p.ID] = p
r.dr.Packages = append(r.dr.Packages, p)
}
func (r *responseDeduper) addRoot(id string) {
if r.seenRoots[id] {
return
}
r.seenRoots[id] = true
r.dr.Roots = append(r.dr.Roots, id)
}
// goInfo contains global information from the go tool.
type goInfo struct {
rootDirs map[string]string
env goEnv
}
type goEnv struct {
modulesOn bool
}
func determineEnv(cfg *Config) goEnv {
buf, err := invokeGo(cfg, "env", "GOMOD")
if err != nil {
return goEnv{}
}
gomod := bytes.TrimSpace(buf.Bytes())
env := goEnv{}
env.modulesOn = len(gomod) > 0
return env
}
// goListDriver uses the go list command to interpret the patterns and produce
// the build system package structure.
// See driver for more details.
func goListDriver(cfg *Config, patterns ...string) (*driverResponse, error) {
var sizes types.Sizes
var sizeserr error
var sizeswg sync.WaitGroup
if cfg.Mode&NeedTypesSizes != 0 || cfg.Mode&NeedTypes != 0 {
sizeswg.Add(1)
go func() {
sizes, sizeserr = getSizes(cfg)
sizeswg.Done()
}()
}
// start fetching rootDirs
var info goInfo
var rootDirsReady, envReady = make(chan struct{}), make(chan struct{})
go func() {
info.rootDirs = determineRootDirs(cfg)
close(rootDirsReady)
}()
go func() {
info.env = determineEnv(cfg)
close(envReady)
}()
getGoInfo := func() *goInfo {
<-rootDirsReady
<-envReady
return &info
}
// always pass getGoInfo to golistDriver
golistDriver := func(cfg *Config, patterns ...string) (*driverResponse, error) {
return golistDriver(cfg, getGoInfo, patterns...)
}
// Determine files requested in contains patterns
var containFiles []string
var packagesNamed []string
restPatterns := make([]string, 0, len(patterns))
// Extract file= and other [querytype]= patterns. Report an error if querytype
// doesn't exist.
extractQueries:
for _, pattern := range patterns {
eqidx := strings.Index(pattern, "=")
if eqidx < 0 {
restPatterns = append(restPatterns, pattern)
} else {
query, value := pattern[:eqidx], pattern[eqidx+len("="):]
switch query {
case "file":
containFiles = append(containFiles, value)
case "pattern":
restPatterns = append(restPatterns, value)
case "iamashamedtousethedisabledqueryname":
packagesNamed = append(packagesNamed, value)
case "": // not a reserved query
restPatterns = append(restPatterns, pattern)
default:
for _, rune := range query {
if rune < 'a' || rune > 'z' { // not a reserved query
restPatterns = append(restPatterns, pattern)
continue extractQueries
}
}
// Reject all other patterns containing "="
return nil, fmt.Errorf("invalid query type %q in query pattern %q", query, pattern)
}
}
}
response := &responseDeduper{}
var err error
// See if we have any patterns to pass through to go list. Zero initial
// patterns also requires a go list call, since it's the equivalent of
// ".".
if len(restPatterns) > 0 || len(patterns) == 0 {
dr, err := golistDriver(cfg, restPatterns...)
if err != nil {
return nil, err
}
response.init(dr)
} else {
response.init(&driverResponse{})
}
sizeswg.Wait()
if sizeserr != nil {
return nil, sizeserr
}
// types.SizesFor always returns nil or a *types.StdSizes
response.dr.Sizes, _ = sizes.(*types.StdSizes)
var containsCandidates []string
if len(containFiles) != 0 {
if err := runContainsQueries(cfg, golistDriver, response, containFiles, getGoInfo); err != nil {
return nil, err
}
}
if len(packagesNamed) != 0 {
if err := runNamedQueries(cfg, golistDriver, response, packagesNamed); err != nil {
return nil, err
}
}
modifiedPkgs, needPkgs, err := processGolistOverlay(cfg, response, getGoInfo)
if err != nil {
return nil, err
}
if len(containFiles) > 0 {
containsCandidates = append(containsCandidates, modifiedPkgs...)
containsCandidates = append(containsCandidates, needPkgs...)
}
if err := addNeededOverlayPackages(cfg, golistDriver, response, needPkgs, getGoInfo); err != nil {
return nil, err
}
// Check candidate packages for containFiles.
if len(containFiles) > 0 {
for _, id := range containsCandidates {
pkg, ok := response.seenPackages[id]
if !ok {
response.addPackage(&Package{
ID: id,
Errors: []Error{
{
Kind: ListError,
Msg: fmt.Sprintf("package %s expected but not seen", id),
},
},
})
continue
}
for _, f := range containFiles {
for _, g := range pkg.GoFiles {
if sameFile(f, g) {
response.addRoot(id)
}
}
}
}
}
return response.dr, nil
}
func addNeededOverlayPackages(cfg *Config, driver driver, response *responseDeduper, pkgs []string, getGoInfo func() *goInfo) error {
if len(pkgs) == 0 {
return nil
}
drivercfg := *cfg
if getGoInfo().env.modulesOn {
drivercfg.BuildFlags = append(drivercfg.BuildFlags, "-mod=readonly")
}
dr, err := driver(&drivercfg, pkgs...)
if err != nil {
return err
}
for _, pkg := range dr.Packages {
response.addPackage(pkg)
}
_, needPkgs, err := processGolistOverlay(cfg, response, getGoInfo)
if err != nil {
return err
}
if err := addNeededOverlayPackages(cfg, driver, response, needPkgs, getGoInfo); err != nil {
return err
}
return nil
}
func runContainsQueries(cfg *Config, driver driver, response *responseDeduper, queries []string, goInfo func() *goInfo) error {
for _, query := range queries {
// TODO(matloob): Do only one query per directory.
fdir := filepath.Dir(query)
// Pass absolute path of directory to go list so that it knows to treat it as a directory,
// not a package path.
pattern, err := filepath.Abs(fdir)
if err != nil {
return fmt.Errorf("could not determine absolute path of file= query path %q: %v", query, err)
}
dirResponse, err := driver(cfg, pattern)
if err != nil || (len(dirResponse.Packages) == 1 && len(dirResponse.Packages[0].Errors) == 1) {
// There was an error loading the package. Try to load the file as an ad-hoc package.
// Usually the error will appear in a returned package, but may not if we're in modules mode
// and the ad-hoc is located outside a module.
var queryErr error
dirResponse, queryErr = driver(cfg, query)
if queryErr != nil {
// Return the original error if the attempt to fall back failed.
return err
}
// Special case to handle issue #33482:
// If this is a file= query for ad-hoc packages where the file only exists on an overlay,
// and exists outside of a module, add the file in for the package.
if len(dirResponse.Packages) == 1 && len(dirResponse.Packages) == 1 &&
dirResponse.Packages[0].ID == "command-line-arguments" && len(dirResponse.Packages[0].GoFiles) == 0 {
filename := filepath.Join(pattern, filepath.Base(query)) // avoid recomputing abspath
// TODO(matloob): check if the file is outside of a root dir?
for path := range cfg.Overlay {
if path == filename {
dirResponse.Packages[0].Errors = nil
dirResponse.Packages[0].GoFiles = []string{path}
dirResponse.Packages[0].CompiledGoFiles = []string{path}
}
}
}
}
isRoot := make(map[string]bool, len(dirResponse.Roots))
for _, root := range dirResponse.Roots {
isRoot[root] = true
}
for _, pkg := range dirResponse.Packages {
// Add any new packages to the main set
// We don't bother to filter packages that will be dropped by the changes of roots,
// that will happen anyway during graph construction outside this function.
// Over-reporting packages is not a problem.
response.addPackage(pkg)
// if the package was not a root one, it cannot have the file
if !isRoot[pkg.ID] {
continue
}
for _, pkgFile := range pkg.GoFiles {
if filepath.Base(query) == filepath.Base(pkgFile) {
response.addRoot(pkg.ID)
break
}
}
}
}
return nil
}
// modCacheRegexp splits a path in a module cache into module, module version, and package.
var modCacheRegexp = regexp.MustCompile(`(.*)@([^/\\]*)(.*)`)
func runNamedQueries(cfg *Config, driver driver, response *responseDeduper, queries []string) error {
// calling `go env` isn't free; bail out if there's nothing to do.
if len(queries) == 0 {
return nil
}
// Determine which directories are relevant to scan.
roots, modRoot, err := roots(cfg)
if err != nil {
return err
}
// Scan the selected directories. Simple matches, from GOPATH/GOROOT
// or the local module, can simply be "go list"ed. Matches from the
// module cache need special treatment.
var matchesMu sync.Mutex
var simpleMatches, modCacheMatches []string
add := func(root gopathwalk.Root, dir string) {
// Walk calls this concurrently; protect the result slices.
matchesMu.Lock()
defer matchesMu.Unlock()
path := dir
if dir != root.Path {
path = dir[len(root.Path)+1:]
}
if pathMatchesQueries(path, queries) {
switch root.Type {
case gopathwalk.RootModuleCache:
modCacheMatches = append(modCacheMatches, path)
case gopathwalk.RootCurrentModule:
// We'd need to read go.mod to find the full
// import path. Relative's easier.
rel, err := filepath.Rel(cfg.Dir, dir)
if err != nil {
// This ought to be impossible, since
// we found dir in the current module.
panic(err)
}
simpleMatches = append(simpleMatches, "./"+rel)
case gopathwalk.RootGOPATH, gopathwalk.RootGOROOT:
simpleMatches = append(simpleMatches, path)
}
}
}
startWalk := time.Now()
gopathwalk.Walk(roots, add, gopathwalk.Options{ModulesEnabled: modRoot != "", Debug: debug})
cfg.Logf("%v for walk", time.Since(startWalk))
// Weird special case: the top-level package in a module will be in
// whatever directory the user checked the repository out into. It's
// more reasonable for that to not match the package name. So, if there
// are any Go files in the mod root, query it just to be safe.
if modRoot != "" {
rel, err := filepath.Rel(cfg.Dir, modRoot)
if err != nil {
panic(err) // See above.
}
files, err := ioutil.ReadDir(modRoot)
for _, f := range files {
if strings.HasSuffix(f.Name(), ".go") {
simpleMatches = append(simpleMatches, rel)
break
}
}
}
addResponse := func(r *driverResponse) {
for _, pkg := range r.Packages {
response.addPackage(pkg)
for _, name := range queries {
if pkg.Name == name {
response.addRoot(pkg.ID)
break
}
}
}
}
if len(simpleMatches) != 0 {
resp, err := driver(cfg, simpleMatches...)
if err != nil {
return err
}
addResponse(resp)
}
// Module cache matches are tricky. We want to avoid downloading new
// versions of things, so we need to use the ones present in the cache.
// go list doesn't accept version specifiers, so we have to write out a
// temporary module, and do the list in that module.
if len(modCacheMatches) != 0 {
// Collect all the matches, deduplicating by major version
// and preferring the newest.
type modInfo struct {
mod string
major string
}
mods := make(map[modInfo]string)
var imports []string
for _, modPath := range modCacheMatches {
matches := modCacheRegexp.FindStringSubmatch(modPath)
mod, ver := filepath.ToSlash(matches[1]), matches[2]
importPath := filepath.ToSlash(filepath.Join(matches[1], matches[3]))
major := semver.Major(ver)
if prevVer, ok := mods[modInfo{mod, major}]; !ok || semver.Compare(ver, prevVer) > 0 {
mods[modInfo{mod, major}] = ver
}
imports = append(imports, importPath)
}
// Build the temporary module.
var gomod bytes.Buffer
gomod.WriteString("module modquery\nrequire (\n")
for mod, version := range mods {
gomod.WriteString("\t" + mod.mod + " " + version + "\n")
}
gomod.WriteString(")\n")
tmpCfg := *cfg
// We're only trying to look at stuff in the module cache, so
// disable the network. This should speed things up, and has
// prevented errors in at least one case, #28518.
tmpCfg.Env = append(append([]string{"GOPROXY=off"}, cfg.Env...))
var err error
tmpCfg.Dir, err = ioutil.TempDir("", "gopackages-modquery")
if err != nil {
return err
}
defer os.RemoveAll(tmpCfg.Dir)
if err := ioutil.WriteFile(filepath.Join(tmpCfg.Dir, "go.mod"), gomod.Bytes(), 0777); err != nil {
return fmt.Errorf("writing go.mod for module cache query: %v", err)
}
// Run the query, using the import paths calculated from the matches above.
resp, err := driver(&tmpCfg, imports...)
if err != nil {
return fmt.Errorf("querying module cache matches: %v", err)
}
addResponse(resp)
}
return nil
}
func getSizes(cfg *Config) (types.Sizes, error) {
return packagesdriver.GetSizesGolist(cfg.Context, cfg.BuildFlags, cfg.Env, cfg.Dir, usesExportData(cfg))
}
// roots selects the appropriate paths to walk based on the passed-in configuration,
// particularly the environment and the presence of a go.mod in cfg.Dir's parents.
func roots(cfg *Config) ([]gopathwalk.Root, string, error) {
stdout, err := invokeGo(cfg, "env", "GOROOT", "GOPATH", "GOMOD")
if err != nil {
return nil, "", err
}
fields := strings.Split(stdout.String(), "\n")
if len(fields) != 4 || len(fields[3]) != 0 {
return nil, "", fmt.Errorf("go env returned unexpected output: %q", stdout.String())
}
goroot, gopath, gomod := fields[0], filepath.SplitList(fields[1]), fields[2]
var modDir string
if gomod != "" {
modDir = filepath.Dir(gomod)
}
var roots []gopathwalk.Root
// Always add GOROOT.
roots = append(roots, gopathwalk.Root{filepath.Join(goroot, "/src"), gopathwalk.RootGOROOT})
// If modules are enabled, scan the module dir.
if modDir != "" {
roots = append(roots, gopathwalk.Root{modDir, gopathwalk.RootCurrentModule})
}
// Add either GOPATH/src or GOPATH/pkg/mod, depending on module mode.
for _, p := range gopath {
if modDir != "" {
roots = append(roots, gopathwalk.Root{filepath.Join(p, "/pkg/mod"), gopathwalk.RootModuleCache})
} else {
roots = append(roots, gopathwalk.Root{filepath.Join(p, "/src"), gopathwalk.RootGOPATH})
}
}
return roots, modDir, nil
}
// These functions were copied from goimports. See further documentation there.
// pathMatchesQueries is adapted from pkgIsCandidate.
// TODO: is it reasonable to do Contains here, rather than an exact match on a path component?
func pathMatchesQueries(path string, queries []string) bool {
lastTwo := lastTwoComponents(path)
for _, query := range queries {
if strings.Contains(lastTwo, query) {
return true
}
if hasHyphenOrUpperASCII(lastTwo) && !hasHyphenOrUpperASCII(query) {
lastTwo = lowerASCIIAndRemoveHyphen(lastTwo)
if strings.Contains(lastTwo, query) {
return true
}
}
}
return false
}
// lastTwoComponents returns at most the last two path components
// of v, using either / or \ as the path separator.
func lastTwoComponents(v string) string {
nslash := 0
for i := len(v) - 1; i >= 0; i-- {
if v[i] == '/' || v[i] == '\\' {
nslash++
if nslash == 2 {
return v[i:]
}
}
}
return v
}
func hasHyphenOrUpperASCII(s string) bool {
for i := 0; i < len(s); i++ {
b := s[i]
if b == '-' || ('A' <= b && b <= 'Z') {
return true
}
}
return false
}
func lowerASCIIAndRemoveHyphen(s string) (ret string) {
buf := make([]byte, 0, len(s))
for i := 0; i < len(s); i++ {
b := s[i]
switch {
case b == '-':
continue
case 'A' <= b && b <= 'Z':
buf = append(buf, b+('a'-'A'))
default:
buf = append(buf, b)
}
}
return string(buf)
}
// Fields must match go list;
// see $GOROOT/src/cmd/go/internal/load/pkg.go.
type jsonPackage struct {
ImportPath string
Dir string
Name string
Export string
GoFiles []string
CompiledGoFiles []string
CFiles []string
CgoFiles []string
CXXFiles []string
MFiles []string
HFiles []string
FFiles []string
SFiles []string
SwigFiles []string
SwigCXXFiles []string
SysoFiles []string
Imports []string
ImportMap map[string]string
Deps []string
TestGoFiles []string
TestImports []string
XTestGoFiles []string
XTestImports []string
ForTest string // q in a "p [q.test]" package, else ""
DepOnly bool
Error *jsonPackageError
}
type jsonPackageError struct {
ImportStack []string
Pos string
Err string
}
func otherFiles(p *jsonPackage) [][]string {
return [][]string{p.CFiles, p.CXXFiles, p.MFiles, p.HFiles, p.FFiles, p.SFiles, p.SwigFiles, p.SwigCXXFiles, p.SysoFiles}
}
// golistDriver uses the "go list" command to expand the pattern
// words and return metadata for the specified packages. dir may be
// "" and env may be nil, as per os/exec.Command.
func golistDriver(cfg *Config, rootsDirs func() *goInfo, words ...string) (*driverResponse, error) {
// go list uses the following identifiers in ImportPath and Imports:
//
// "p" -- importable package or main (command)
// "q.test" -- q's test executable
// "p [q.test]" -- variant of p as built for q's test executable
// "q_test [q.test]" -- q's external test package
//
// The packages p that are built differently for a test q.test
// are q itself, plus any helpers used by the external test q_test,
// typically including "testing" and all its dependencies.
// Run "go list" for complete
// information on the specified packages.
buf, err := invokeGo(cfg, golistargs(cfg, words)...)
if err != nil {
return nil, err
}
seen := make(map[string]*jsonPackage)
// Decode the JSON and convert it to Package form.
var response driverResponse
for dec := json.NewDecoder(buf); dec.More(); {
p := new(jsonPackage)
if err := dec.Decode(p); err != nil {
return nil, fmt.Errorf("JSON decoding failed: %v", err)
}
if p.ImportPath == "" {
// The documentation for go list says that “[e]rroneous packages will have
// a non-empty ImportPath”. If for some reason it comes back empty, we
// prefer to error out rather than silently discarding data or handing
// back a package without any way to refer to it.
if p.Error != nil {
return nil, Error{
Pos: p.Error.Pos,
Msg: p.Error.Err,
}
}
return nil, fmt.Errorf("package missing import path: %+v", p)
}
// Work around https://golang.org/issue/33157:
// go list -e, when given an absolute path, will find the package contained at
// that directory. But when no package exists there, it will return a fake package
// with an error and the ImportPath set to the absolute path provided to go list.
// Try to convert that absolute path to what its package path would be if it's
// contained in a known module or GOPATH entry. This will allow the package to be
// properly "reclaimed" when overlays are processed.
if filepath.IsAbs(p.ImportPath) && p.Error != nil {
pkgPath, ok := getPkgPath(p.ImportPath, rootsDirs)
if ok {
p.ImportPath = pkgPath
}
}
if old, found := seen[p.ImportPath]; found {
if !reflect.DeepEqual(p, old) {
return nil, fmt.Errorf("internal error: go list gives conflicting information for package %v", p.ImportPath)
}
// skip the duplicate
continue
}
seen[p.ImportPath] = p
pkg := &Package{
Name: p.Name,
ID: p.ImportPath,
GoFiles: absJoin(p.Dir, p.GoFiles, p.CgoFiles),
CompiledGoFiles: absJoin(p.Dir, p.CompiledGoFiles),
OtherFiles: absJoin(p.Dir, otherFiles(p)...),
}
// Work around https://golang.org/issue/28749:
// cmd/go puts assembly, C, and C++ files in CompiledGoFiles.
// Filter out any elements of CompiledGoFiles that are also in OtherFiles.
// We have to keep this workaround in place until go1.12 is a distant memory.
if len(pkg.OtherFiles) > 0 {
other := make(map[string]bool, len(pkg.OtherFiles))
for _, f := range pkg.OtherFiles {
other[f] = true
}
out := pkg.CompiledGoFiles[:0]
for _, f := range pkg.CompiledGoFiles {
if other[f] {
continue
}
out = append(out, f)
}
pkg.CompiledGoFiles = out
}
// Extract the PkgPath from the package's ID.
if i := strings.IndexByte(pkg.ID, ' '); i >= 0 {
pkg.PkgPath = pkg.ID[:i]
} else {
pkg.PkgPath = pkg.ID
}
if pkg.PkgPath == "unsafe" {
pkg.GoFiles = nil // ignore fake unsafe.go file
}
// Assume go list emits only absolute paths for Dir.
if p.Dir != "" && !filepath.IsAbs(p.Dir) {
log.Fatalf("internal error: go list returned non-absolute Package.Dir: %s", p.Dir)
}
if p.Export != "" && !filepath.IsAbs(p.Export) {
pkg.ExportFile = filepath.Join(p.Dir, p.Export)
} else {
pkg.ExportFile = p.Export
}
// imports
//
// Imports contains the IDs of all imported packages.
// ImportsMap records (path, ID) only where they differ.
ids := make(map[string]bool)
for _, id := range p.Imports {
ids[id] = true
}
pkg.Imports = make(map[string]*Package)
for path, id := range p.ImportMap {
pkg.Imports[path] = &Package{ID: id} // non-identity import
delete(ids, id)
}
for id := range ids {
if id == "C" {
continue
}
pkg.Imports[id] = &Package{ID: id} // identity import
}
if !p.DepOnly {
response.Roots = append(response.Roots, pkg.ID)
}
// Work around for pre-go.1.11 versions of go list.
// TODO(matloob): they should be handled by the fallback.
// Can we delete this?
if len(pkg.CompiledGoFiles) == 0 {
pkg.CompiledGoFiles = pkg.GoFiles
}
if p.Error != nil {
pkg.Errors = append(pkg.Errors, Error{
Pos: p.Error.Pos,
Msg: strings.TrimSpace(p.Error.Err), // Trim to work around golang.org/issue/32363.
})
}
response.Packages = append(response.Packages, pkg)
}
return &response, nil
}
// getPkgPath finds the package path of a directory if it's relative to a root directory.
func getPkgPath(dir string, goInfo func() *goInfo) (string, bool) {
for rdir, rpath := range goInfo().rootDirs {
// TODO(matloob): This doesn't properly handle symlinks.
r, err := filepath.Rel(rdir, dir)
if err != nil {
continue
}
if rpath != "" {
// We choose only ore root even though the directory even it can belong in multiple modules
// or GOPATH entries. This is okay because we only need to work with absolute dirs when a
// file is missing from disk, for instance when gopls calls go/packages in an overlay.
// Once the file is saved, gopls, or the next invocation of the tool will get the correct
// result straight from golist.
// TODO(matloob): Implement module tiebreaking?
return path.Join(rpath, filepath.ToSlash(r)), true
}
}
return "", false
}
// absJoin absolutizes and flattens the lists of files.
func absJoin(dir string, fileses ...[]string) (res []string) {
for _, files := range fileses {
for _, file := range files {
if !filepath.IsAbs(file) {
file = filepath.Join(dir, file)
}
res = append(res, file)
}
}
return res
}
func golistargs(cfg *Config, words []string) []string {
const findFlags = NeedImports | NeedTypes | NeedSyntax | NeedTypesInfo
fullargs := []string{
"list", "-e", "-json",
fmt.Sprintf("-compiled=%t", cfg.Mode&(NeedCompiledGoFiles|NeedSyntax|NeedTypesInfo|NeedTypesSizes) != 0),
fmt.Sprintf("-test=%t", cfg.Tests),
fmt.Sprintf("-export=%t", usesExportData(cfg)),
fmt.Sprintf("-deps=%t", cfg.Mode&NeedImports != 0),
// go list doesn't let you pass -test and -find together,
// probably because you'd just get the TestMain.
fmt.Sprintf("-find=%t", !cfg.Tests && cfg.Mode&findFlags == 0),
}
fullargs = append(fullargs, cfg.BuildFlags...)
fullargs = append(fullargs, "--")
fullargs = append(fullargs, words...)
return fullargs
}
// invokeGo returns the stdout of a go command invocation.
func invokeGo(cfg *Config, args ...string) (*bytes.Buffer, error) {
stdout := new(bytes.Buffer)
stderr := new(bytes.Buffer)
cmd := exec.CommandContext(cfg.Context, "go", args...)
// On darwin the cwd gets resolved to the real path, which breaks anything that
// expects the working directory to keep the original path, including the
// go command when dealing with modules.
// The Go stdlib has a special feature where if the cwd and the PWD are the
// same node then it trusts the PWD, so by setting it in the env for the child
// process we fix up all the paths returned by the go command.
cmd.Env = append(append([]string{}, cfg.Env...), "PWD="+cfg.Dir)
cmd.Dir = cfg.Dir
cmd.Stdout = stdout
cmd.Stderr = stderr
defer func(start time.Time) {
cfg.Logf("%s for %v, stderr: <<%s>>\n", time.Since(start), cmdDebugStr(cmd, args...), stderr)
}(time.Now())
if err := cmd.Run(); err != nil {
// Check for 'go' executable not being found.
if ee, ok := err.(*exec.Error); ok && ee.Err == exec.ErrNotFound {
return nil, fmt.Errorf("'go list' driver requires 'go', but %s", exec.ErrNotFound)
}
exitErr, ok := err.(*exec.ExitError)
if !ok {
// Catastrophic error:
// - context cancellation
return nil, fmt.Errorf("couldn't exec 'go %v': %s %T", args, err, err)
}
// Old go version?
if strings.Contains(stderr.String(), "flag provided but not defined") {
return nil, goTooOldError{fmt.Errorf("unsupported version of go: %s: %s", exitErr, stderr)}
}
// Related to #24854
if len(stderr.String()) > 0 && strings.Contains(stderr.String(), "unexpected directory layout") {
return nil, fmt.Errorf("%s", stderr.String())
}
// Is there an error running the C compiler in cgo? This will be reported in the "Error" field
// and should be suppressed by go list -e.
//
// This condition is not perfect yet because the error message can include other error messages than runtime/cgo.
isPkgPathRune := func(r rune) bool {
// From https://golang.org/ref/spec#Import_declarations:
// Implementation restriction: A compiler may restrict ImportPaths to non-empty strings
// using only characters belonging to Unicode's L, M, N, P, and S general categories
// (the Graphic characters without spaces) and may also exclude the
// characters !"#$%&'()*,:;<=>?[\]^`{|} and the Unicode replacement character U+FFFD.
return unicode.IsOneOf([]*unicode.RangeTable{unicode.L, unicode.M, unicode.N, unicode.P, unicode.S}, r) &&
strings.IndexRune("!\"#$%&'()*,:;<=>?[\\]^`{|}\uFFFD", r) == -1
}
if len(stderr.String()) > 0 && strings.HasPrefix(stderr.String(), "# ") {
if strings.HasPrefix(strings.TrimLeftFunc(stderr.String()[len("# "):], isPkgPathRune), "\n") {
return stdout, nil
}
}
// This error only appears in stderr. See golang.org/cl/166398 for a fix in go list to show
// the error in the Err section of stdout in case -e option is provided.
// This fix is provided for backwards compatibility.
if len(stderr.String()) > 0 && strings.Contains(stderr.String(), "named files must be .go files") {
output := fmt.Sprintf(`{"ImportPath": "command-line-arguments","Incomplete": true,"Error": {"Pos": "","Err": %q}}`,
strings.Trim(stderr.String(), "\n"))
return bytes.NewBufferString(output), nil
}
// Similar to the previous error, but currently lacks a fix in Go.
if len(stderr.String()) > 0 && strings.Contains(stderr.String(), "named files must all be in one directory") {
output := fmt.Sprintf(`{"ImportPath": "command-line-arguments","Incomplete": true,"Error": {"Pos": "","Err": %q}}`,
strings.Trim(stderr.String(), "\n"))
return bytes.NewBufferString(output), nil
}
// Backwards compatibility for Go 1.11 because 1.12 and 1.13 put the directory in the ImportPath.
// If the package doesn't exist, put the absolute path of the directory into the error message,
// as Go 1.13 list does.
const noSuchDirectory = "no such directory"
if len(stderr.String()) > 0 && strings.Contains(stderr.String(), noSuchDirectory) {
errstr := stderr.String()
abspath := strings.TrimSpace(errstr[strings.Index(errstr, noSuchDirectory)+len(noSuchDirectory):])
output := fmt.Sprintf(`{"ImportPath": %q,"Incomplete": true,"Error": {"Pos": "","Err": %q}}`,
abspath, strings.Trim(stderr.String(), "\n"))
return bytes.NewBufferString(output), nil
}
// Workaround for #29280: go list -e has incorrect behavior when an ad-hoc package doesn't exist.
// Note that the error message we look for in this case is different that the one looked for above.
if len(stderr.String()) > 0 && strings.Contains(stderr.String(), "no such file or directory") {
output := fmt.Sprintf(`{"ImportPath": "command-line-arguments","Incomplete": true,"Error": {"Pos": "","Err": %q}}`,
strings.Trim(stderr.String(), "\n"))
return bytes.NewBufferString(output), nil
}
// Workaround for #34273. go list -e with GO111MODULE=on has incorrect behavior when listing a
// directory outside any module.
if len(stderr.String()) > 0 && strings.Contains(stderr.String(), "outside available modules") {
output := fmt.Sprintf(`{"ImportPath": %q,"Incomplete": true,"Error": {"Pos": "","Err": %q}}`,
// TODO(matloob): command-line-arguments isn't correct here.
"command-line-arguments", strings.Trim(stderr.String(), "\n"))
return bytes.NewBufferString(output), nil
}
// Workaround for an instance of golang.org/issue/26755: go list -e will return a non-zero exit
// status if there's a dependency on a package that doesn't exist. But it should return
// a zero exit status and set an error on that package.
if len(stderr.String()) > 0 && strings.Contains(stderr.String(), "no Go files in") {
// try to extract package name from string
stderrStr := stderr.String()
var importPath string
colon := strings.Index(stderrStr, ":")
if colon > 0 && strings.HasPrefix(stderrStr, "go build ") {
importPath = stderrStr[len("go build "):colon]
}
output := fmt.Sprintf(`{"ImportPath": %q,"Incomplete": true,"Error": {"Pos": "","Err": %q}}`,
importPath, strings.Trim(stderrStr, "\n"))
return bytes.NewBufferString(output), nil
}
// Export mode entails a build.
// If that build fails, errors appear on stderr
// (despite the -e flag) and the Export field is blank.
// Do not fail in that case.
// The same is true if an ad-hoc package given to go list doesn't exist.
// TODO(matloob): Remove these once we can depend on go list to exit with a zero status with -e even when
// packages don't exist or a build fails.
if !usesExportData(cfg) && !containsGoFile(args) {
return nil, fmt.Errorf("go %v: %s: %s", args, exitErr, stderr)
}
}
// As of writing, go list -export prints some non-fatal compilation
// errors to stderr, even with -e set. We would prefer that it put
// them in the Package.Error JSON (see https://golang.org/issue/26319).
// In the meantime, there's nowhere good to put them, but they can
// be useful for debugging. Print them if $GOPACKAGESPRINTGOLISTERRORS
// is set.
if len(stderr.Bytes()) != 0 && os.Getenv("GOPACKAGESPRINTGOLISTERRORS") != "" {
fmt.Fprintf(os.Stderr, "%s stderr: <<%s>>\n", cmdDebugStr(cmd, args...), stderr)
}
// debugging
if false {
fmt.Fprintf(os.Stderr, "%s stdout: <<%s>>\n", cmdDebugStr(cmd, args...), stdout)
}
return stdout, nil
}
func containsGoFile(s []string) bool {
for _, f := range s {
if strings.HasSuffix(f, ".go") {
return true
}
}
return false
}
func cmdDebugStr(cmd *exec.Cmd, args ...string) string {
env := make(map[string]string)
for _, kv := range cmd.Env {
split := strings.Split(kv, "=")
k, v := split[0], split[1]
env[k] = v
}
var quotedArgs []string
for _, arg := range args {
quotedArgs = append(quotedArgs, strconv.Quote(arg))
}
return fmt.Sprintf("GOROOT=%v GOPATH=%v GO111MODULE=%v PWD=%v go %s", env["GOROOT"], env["GOPATH"], env["GO111MODULE"], env["PWD"], strings.Join(quotedArgs, " "))
}
| {
"pile_set_name": "Github"
} |
package me.moallemi.multinavhost
import androidx.test.InstrumentationRegistry
import androidx.test.runner.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getTargetContext()
assertEquals("me.moallemi.multinavhost", appContext.packageName)
}
}
| {
"pile_set_name": "Github"
} |
#import <XCTest/XCTest.h>
#import "NimbleSpecHelper.h"
@interface ObjCSatisfyAnyOfTest : XCTestCase
@end
@implementation ObjCSatisfyAnyOfTest
- (void)testPositiveMatches {
expect(@2).to(satisfyAnyOf(equal(@2), equal(@3)));
expect(@2).toNot(satisfyAnyOf(equal(@3), equal(@16)));
expect(@[@1, @2, @3]).to(satisfyAnyOf(equal(@[@1, @2, @3]), allPass(beLessThan(@4))));
expect(@NO).to(satisfyAnyOf(beTrue(), beFalse()));
expect(@YES).to(satisfyAnyOf(beTrue(), beFalse()));
}
- (void)testNegativeMatches {
expectFailureMessage(@"expected to match one of: {equal <3>}, or {equal <4>}, or {equal <5>}, got 2", ^{
expect(@2).to(satisfyAnyOf(equal(@3), equal(@4), equal(@5)));
});
expectFailureMessage(@"expected to match one of: {all be less than <4>, but failed first at element"
" <5> in <[5, 6, 7]>}, or {equal <(1, 2, 3, 4)>}, got (5,6,7)", ^{
expect(@[@5, @6, @7]).to(satisfyAnyOf(allPass(beLessThan(@4)), equal(@[@1, @2, @3, @4])));
});
expectFailureMessage(@"satisfyAnyOf must be called with at least one matcher", ^{
expect(@"turtles").to(satisfyAnyOf());
});
}
@end
| {
"pile_set_name": "Github"
} |
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* 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.
* #L%
*/
package gwt.material.design.client.ui.html;
import com.google.gwt.dom.client.Document;
import com.google.gwt.user.client.ui.Widget;
import gwt.material.design.client.base.MaterialWidget;
public class ListItem extends MaterialWidget {
public ListItem() {
super(Document.get().createLIElement());
}
public ListItem(String... initialClass) {
super(Document.get().createLIElement(), initialClass);
}
public ListItem(Widget item) {
this();
add(item);
}
} | {
"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 "NSOpenGLView.h"
#import "MRMarimbaBasicPlayback.h"
#import "MRMarimbaPlayback.h"
@class MPDocument, MRMarimbaViewInternal, MRRenderer, MRTouchSet;
@interface MRMarimbaView : NSOpenGLView <MRMarimbaPlayback, MRMarimbaBasicPlayback>
{
MRTouchSet *_touchSet;
MRMarimbaViewInternal *_internal;
void *_padding;
BOOL _whatever1;
BOOL _whatever2;
}
+ (id)defaultPixelFormat;
+ (void)initialize;
+ (BOOL)isPhotoApp;
@property(nonatomic) BOOL enableSlideDidChangeNotification; // @dynamic enableSlideDidChangeNotification;
- (void)didApplyStyle:(id)arg1;
- (void)didAddEffects:(id)arg1;
- (void)didLiveChanged:(id)arg1;
- (BOOL)effectRequestedSlidesAfterDelay:(id)arg1;
- (BOOL)effect:(id)arg1 requestedNumberOfSlides:(unsigned long long)arg2 firstSlideIndexStillNeeded:(unsigned long long)arg3;
- (BOOL)nearingEndForSerializerAfterDelay:(id)arg1;
- (BOOL)nearingEndForSerializer:(id)arg1;
- (void)touchesCancelled:(id)arg1;
- (BOOL)touchesEnded:(id)arg1;
- (void)touchesMoved:(id)arg1;
- (void)touchesBegan:(id)arg1;
- (void)beginEditingOfText:(id)arg1;
- (void)updateAntialiasLevel;
- (void)antialiasLevelDidChange:(id)arg1;
@property(nonatomic) long long antialiasingLevel;
- (void)ignoreAntialiasingLevelChanges;
- (void)trackingSelector:(id)arg1;
- (void)mouseUp:(id)arg1;
- (void)swipeWithEvent:(id)arg1;
- (void)mouseDown:(id)arg1;
- (struct CGImage *)snapshotAsCGImage;
- (struct CGImage *)snapshotAsCGImageForTime:(double)arg1 withSize:(struct CGSize)arg2;
- (void)drawRect:(struct CGRect)arg1;
- (void)removeFromSuperview;
- (void)viewDidEndLiveResize;
- (void)viewWillStartLiveResize;
- (void)reshape;
- (void)unlockRendering;
- (void)lockRendering;
- (void)_warmupRenderer;
- (void)warmupRenderer;
- (void)requestRendering:(BOOL)arg1;
@property(readonly, nonatomic) MRRenderer *renderer;
- (void)prevFrame;
- (void)nextFrame;
- (void)gotoBeginning;
- (void)gotoEnd;
- (void)goForth;
- (void)goBack;
@property(nonatomic) double volume;
@property(nonatomic) BOOL enableEvents;
@property(nonatomic) BOOL displaysFPS;
@property(nonatomic) BOOL stopWithVideo;
@property(readonly, nonatomic) double timeRemaining;
@property(nonatomic) double time;
- (void)pauseWhenStill;
- (void)pause;
- (void)play;
@property(readonly, nonatomic) BOOL isPlaying;
- (void)togglePlayback;
- (void)setAssetManager:(id)arg1;
@property(readonly) struct CGSize size;
@property(retain, nonatomic) MPDocument *document;
- (void)viewDidMoveToWindow;
- (void)cleanup;
- (void)finalize;
- (void)dealloc;
- (id)initWithFrame:(struct CGRect)arg1 document:(id)arg2 editable:(BOOL)arg3 playsAudio:(BOOL)arg4;
- (id)initWithFrame:(struct CGRect)arg1 document:(id)arg2;
- (id)initWithFrame:(struct CGRect)arg1 pixelFormat:(id)arg2;
- (id)initWithFrame:(struct CGRect)arg1;
- (void)_postNotificationForSlideChange:(id)arg1;
- (void)_slideDidAppear:(id)arg1;
- (void)gotoSlide:(id)arg1;
- (void)gotoPreviousSlide;
- (void)gotoNextSlide;
- (void)removeEffectContainersBeforeTime:(double)arg1;
- (id)currentSlide;
- (id)currentSlides;
- (void)watcherThread:(id)arg1;
- (void)callbackThread:(id)arg1;
- (long long)_mainLayerIndex;
- (id)_effectContainerForTime:(double)arg1;
- (id)_firstEffectContainer;
- (void)whenTransitionIsFinishedSendAction:(SEL)arg1 toTarget:(id)arg2;
- (BOOL)isInTransition;
- (id)_currentEffectContainer;
- (id)_currentEffectLayer;
- (void)moveToSubtitleForSlide:(id)arg1;
- (void)moveToTitleSlide;
- (void)moveToPreviousEffectContainer;
- (void)moveToNextEffectContainer;
- (void)moveToEffectContainer:(id)arg1 withStartOffset:(double)arg2 toStopOffset:(double)arg3 blocking:(BOOL)arg4;
- (id)displayedEffectContainers;
- (double)relativeTimeForLayer:(id)arg1;
- (double)relativeTimeForBackgroundAudio;
- (double)relativeTime;
- (void)cancelGesture:(id)arg1;
- (void)endGesture:(id)arg1;
- (void)doGesture:(id)arg1;
- (void)beginGesture:(id)arg1;
- (BOOL)endLiveUpdateForHitBlob:(id)arg1;
- (BOOL)beginLiveUpdateForHitBlob:(id)arg1;
- (struct CGPoint)convertPoint:(struct CGPoint)arg1 toHitBlob:(id)arg2;
- (BOOL)getOnScreenVertices:(struct CGPoint [4])arg1 forHitBlob:(id)arg2;
- (id)blobHitAtPoint:(struct CGPoint)arg1 fromObjectsForObjectIDs:(id)arg2 localPoint:(struct CGPoint *)arg3;
- (id)pixelFormatWithAntialiasingLevel:(long long)arg1;
- (void)resetRendererContext;
- (void)setBailTimeWatcher:(BOOL)arg1;
- (BOOL)bailTimeWatcher;
- (void)setLastSlideChange:(id)arg1;
- (id)lastSlideChange;
@end
| {
"pile_set_name": "Github"
} |
//-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// 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.
//-----------------------------------------------------------------------------
#ifndef _BUOYANCY_CONTROLLER_H_
#define _BUOYANCY_CONTROLLER_H_
#ifndef _PICKING_SCENE_CONTROLLER_H_
#include "2d/controllers/core/PickingSceneController.h"
#endif
#ifndef _VECTOR2_H_
#include "2d/core/vector2.h"
#endif
//------------------------------------------------------------------------------
class BuoyancyController : public PickingSceneController
{
private:
typedef PickingSceneController Parent;
/// The fluid area.
b2AABB mFluidArea;
/// The fluid density.
F32 mFluidDensity;
/// Fluid flow velocity for drag calculations.
Vector2 mFlowVelocity;
/// Linear drag co-efficient.
F32 mLinearDrag;
/// Linear drag co-efficient.
F32 mAngularDrag;
/// Gravity to use inside the fluid.
Vector2 mFluidGravity;
/// Whether to use the collision shape densities or assume a uniform density.
bool mUseShapeDensity;
/// The outer fluid surface normal.
Vector2 mSurfaceNormal;
protected:
F32 ComputeCircleSubmergedArea( const b2Transform& bodyTransform, const b2CircleShape* pShape, Vector2& center );
F32 ComputePolygonSubmergedArea( const b2Transform& bodyTransform, const b2PolygonShape* pShape, Vector2& center );
public:
BuoyancyController();
virtual ~BuoyancyController();
static void initPersistFields();
virtual void copyTo(SimObject* object);
/// Integration.
virtual void integrate( Scene* pScene, const F32 totalTime, const F32 elapsedTime, DebugStats* pDebugStats );
// Scene render.
virtual void renderOverlay( Scene* pScene, const SceneRenderState* pSceneRenderState, BatchRender* pBatchRenderer );
/// Declare Console Object.
DECLARE_CONOBJECT( BuoyancyController );
};
#endif // _BUOYANCY_CONTROLLER_H_
| {
"pile_set_name": "Github"
} |
SOURCE: CityscapesEasy
TARGET: CityscapesHard
DATA_DIRECTORY_SOURCE: ../ADVENT/data/Cityscapes
DATA_LIST_SOURCE: ../entropy_rank/easy_split.txt
DATA_LIST_TARGET: ../entropy_rank/hard_split.txt
NUM_WORKERS: 1
TRAIN:
INPUT_SIZE_SOURCE:
- 1024
- 512
DA_METHOD: AdvEnt
MODEL: DeepLabv2
RESTORE_FROM: ../ADVENT/pretrained_models/DeepLab_resnet_pretrained_imagenet.pth
MULTI_LEVEL: True
LAMBDA_ADV_MAIN: 0.001
LAMBDA_ADV_AUX: 0.0002
TEST:
MODE: best
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2013 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.google.common.jimfs;
import static com.google.common.truth.Truth.assertThat;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/**
* Tests for {@link FileFactory}.
*
* @author Colin Decker
*/
@RunWith(JUnit4.class)
public class FileFactoryTest {
private FileFactory factory;
@Before
public void setUp() {
factory = new FileFactory(new HeapDisk(2, 2, 0));
}
@Test
public void testCreateFiles_basic() {
File file = factory.createDirectory();
assertThat(file.id()).isEqualTo(0L);
assertThat(file.isDirectory()).isTrue();
file = factory.createRegularFile();
assertThat(file.id()).isEqualTo(1L);
assertThat(file.isRegularFile()).isTrue();
file = factory.createSymbolicLink(fakePath());
assertThat(file.id()).isEqualTo(2L);
assertThat(file.isSymbolicLink()).isTrue();
}
@Test
public void testCreateFiles_withSupplier() {
File file = factory.directoryCreator().get();
assertThat(file.id()).isEqualTo(0L);
assertThat(file.isDirectory()).isTrue();
file = factory.regularFileCreator().get();
assertThat(file.id()).isEqualTo(1L);
assertThat(file.isRegularFile()).isTrue();
file = factory.symbolicLinkCreator(fakePath()).get();
assertThat(file.id()).isEqualTo(2L);
assertThat(file.isSymbolicLink()).isTrue();
}
static JimfsPath fakePath() {
return PathServiceTest.fakeUnixPathService().emptyPath();
}
}
| {
"pile_set_name": "Github"
} |
grpc::Status Subscribe{{ name.upper_camel_case }}(grpc::ServerContext* /* context */, const mavsdk::rpc::{{ plugin_name.lower_snake_case }}::Subscribe{{ name.upper_camel_case }}Request* {% if params %}request{% else %}/* request */{% endif %}, grpc::ServerWriter<rpc::{{ plugin_name.lower_snake_case }}::{{ name.upper_camel_case }}Response>* writer) override
{
auto stream_closed_promise = std::make_shared<std::promise<void>>();
auto stream_closed_future = stream_closed_promise->get_future();
register_stream_stop_promise(stream_closed_promise);
auto is_finished = std::make_shared<bool>(false);
std::mutex subscribe_mutex{};
_{{ plugin_name.lower_snake_case }}.{% if not is_finite %}subscribe_{% endif %}{{ name.lower_snake_case }}{% if is_finite %}_async{% endif %}({% for param in params %}request->{{ param.name.lower_snake_case }}(), {% endfor %}
[this, &writer, &stream_closed_promise, is_finished, &subscribe_mutex](
{%- if has_result -%}mavsdk::{{ plugin_name.upper_camel_case }}::Result result,{%- endif -%}
const {% if return_type.is_repeated %}std::vector<{% if not return_type.is_primitive %}{{ package.lower_snake_case.split('.')[0] }}::{{ plugin_name.upper_camel_case }}::{% endif %}{{ return_type.inner_name }}>{% else %}{%- if not return_type.is_primitive %}{{ package.lower_snake_case.split('.')[0] }}::{{ plugin_name.upper_camel_case }}::{% endif %}{{ return_type.name }}{% endif %} {{ name.lower_snake_case }}) {
rpc::{{ plugin_name.lower_snake_case }}::{{ name.upper_camel_case }}Response rpc_response;
{% if return_type.is_primitive %}
rpc_response.set_{{ return_name.lower_snake_case }}({{ name.lower_snake_case }});
{% elif return_type.is_enum %}
rpc_response.set_{{ return_name.lower_snake_case }}(translateToRpc{{ return_type.name }}({{ name.lower_snake_case }}));
{% elif return_type.is_repeated %}
for (const auto& elem : {{ name.lower_snake_case }}) {
auto* ptr = rpc_response.add_{{ return_name.lower_snake_case }}();
ptr->CopyFrom(*translateToRpc{{ return_type.inner_name }}(elem).release());
}
{% else %}
rpc_response.set_allocated_{{ return_name.lower_snake_case }}(translateToRpc{{ return_type.inner_name }}({{ name.lower_snake_case }}).release());
{% endif %}
{% if has_result %}
auto rpc_result = translateToRpcResult(result);
auto* rpc_{{ plugin_name.lower_snake_case }}_result = new rpc::{{ plugin_name.lower_snake_case }}::{{ plugin_name.upper_camel_case }}Result();
rpc_{{ plugin_name.lower_snake_case }}_result->set_result(rpc_result);
std::stringstream ss;
ss << result;
rpc_{{ plugin_name.lower_snake_case }}_result->set_result_str(ss.str());
rpc_response.set_allocated_{{ plugin_name.lower_snake_case }}_result(rpc_{{ plugin_name.lower_snake_case }}_result);
{% endif %}
std::unique_lock<std::mutex> lock(subscribe_mutex);
if (!*is_finished && !writer->Write(rpc_response)) {
{% if not is_finite %}
_{{ plugin_name.lower_snake_case }}.subscribe_{{ name.lower_snake_case }}(nullptr);
{% endif %}
*is_finished = true;
unregister_stream_stop_promise(stream_closed_promise);
lock.unlock();
stream_closed_promise->set_value();
}
});
stream_closed_future.wait();
return grpc::Status::OK;
}
| {
"pile_set_name": "Github"
} |
version https://git-lfs.github.com/spec/v1
oid sha256:924b5e3cccb97f4dc86a07710133cb828797db9acedb0aa8a8da4d321ac2b0c6
size 7054
| {
"pile_set_name": "Github"
} |
<?php
namespace Doctrine\DBAL\Driver\PDOSqlsrv;
use Doctrine\DBAL\Driver\PDOConnection;
use Doctrine\DBAL\ParameterType;
use PDO;
use function strpos;
use function substr;
/**
* Sqlsrv Connection implementation.
*/
class Connection extends PDOConnection
{
/**
* {@inheritdoc}
*/
public function __construct($dsn, $user = null, $password = null, ?array $options = null)
{
parent::__construct($dsn, $user, $password, $options);
$this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
}
/**
* {@inheritDoc}
*/
public function lastInsertId($name = null)
{
if ($name === null) {
return parent::lastInsertId($name);
}
$stmt = $this->prepare('SELECT CONVERT(VARCHAR(MAX), current_value) FROM sys.sequences WHERE name = ?');
$stmt->execute([$name]);
return $stmt->fetchColumn();
}
/**
* {@inheritDoc}
*/
public function quote($value, $type = ParameterType::STRING)
{
$val = parent::quote($value, $type);
// Fix for a driver version terminating all values with null byte
if (strpos($val, "\0") !== false) {
$val = substr($val, 0, -1);
}
return $val;
}
}
| {
"pile_set_name": "Github"
} |
From 7ad21826dc40874b13465b3f542210cfdc81d70d Mon Sep 17 00:00:00 2001
From: Mykola Yurchenko <[email protected]>
Date: Tue, 4 Feb 2020 23:59:30 +0000
Subject: [PATCH 1/3] Add custom IPDR fields for IPFIX export
---
include/openvswitch/ofp-actions.h | 3 ++
lib/odp-util.h | 7 ++++-
lib/ofp-actions.c | 38 +++++++++++++++++++++--
ofproto/ipfix-enterprise-entities.def | 7 +++++
ofproto/ofproto-dpif-ipfix.c | 44 +++++++++++++++++++++++++++
ofproto/ofproto-dpif-xlate.c | 5 +++
6 files changed, 100 insertions(+), 4 deletions(-)
diff --git a/include/openvswitch/ofp-actions.h b/include/openvswitch/ofp-actions.h
index c8948e0d6..cd23d1322 100644
--- a/include/openvswitch/ofp-actions.h
+++ b/include/openvswitch/ofp-actions.h
@@ -1007,6 +1007,9 @@ struct ofpact_sample {
uint32_t obs_point_id;
ofp_port_t sampling_port;
enum nx_action_sample_direction direction;
+ uint8_t msisdn[16];
+ struct eth_addr apn_mac_addr;
+ uint8_t apn_name[24];
);
};
diff --git a/lib/odp-util.h b/lib/odp-util.h
index a03e82532..67bcbb096 100644
--- a/lib/odp-util.h
+++ b/lib/odp-util.h
@@ -331,6 +331,11 @@ struct user_action_cookie {
uint32_t obs_point_id; /* Observation Point ID. */
odp_port_t output_odp_port; /* The output odp port. */
enum nx_action_sample_direction direction;
+ ovs_be64 flow_metadata;
+ uint32_t app_name;
+ uint8_t msisdn[16];
+ struct eth_addr apn_mac_addr;
+ uint8_t apn_name[24];
} flow_sample;
struct {
@@ -350,7 +355,7 @@ struct user_action_cookie {
} controller;
};
};
-BUILD_ASSERT_DECL(sizeof(struct user_action_cookie) == 48);
+BUILD_ASSERT_DECL(sizeof(struct user_action_cookie) == 112);
size_t odp_put_userspace_action(uint32_t pid,
const void *userdata, size_t userdata_size,
diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c
index ddef3b0c8..7c12b748a 100644
--- a/lib/ofp-actions.c
+++ b/lib/ofp-actions.c
@@ -6041,10 +6041,13 @@ struct nx_action_sample2 {
ovs_be32 obs_domain_id; /* ID of sampling observation domain. */
ovs_be32 obs_point_id; /* ID of sampling observation point. */
ovs_be16 sampling_port; /* Sampling port. */
+ uint8_t msisdn[16];
+ struct eth_addr apn_mac_addr;
+ uint8_t apn_name[24];
uint8_t direction; /* NXAST_SAMPLE3 only. */
uint8_t zeros[5]; /* Pad to a multiple of 8 bytes */
};
- OFP_ASSERT(sizeof(struct nx_action_sample2) == 32);
+ OFP_ASSERT(sizeof(struct nx_action_sample2) == 80);
static enum ofperr
decode_NXAST_RAW_SAMPLE(const struct nx_action_sample *nas,
@@ -6081,6 +6084,9 @@ decode_SAMPLE2(const struct nx_action_sample2 *nas,
sample->obs_domain_id = ntohl(nas->obs_domain_id);
sample->obs_point_id = ntohl(nas->obs_point_id);
sample->sampling_port = u16_to_ofp(ntohs(nas->sampling_port));
+ sample->apn_mac_addr = nas->apn_mac_addr;
+ memcpy(&sample->msisdn, &nas->msisdn, 16);
+ memcpy(&sample->apn_name, &nas->apn_name, 24);
sample->direction = direction;
if (sample->probability == 0) {
@@ -6127,6 +6133,9 @@ encode_SAMPLE2(const struct ofpact_sample *sample,
nas->obs_point_id = htonl(sample->obs_point_id);
nas->sampling_port = htons(ofp_to_u16(sample->sampling_port));
nas->direction = sample->direction;
+ memcpy(&nas->msisdn, &sample->msisdn, 16);
+ nas->apn_mac_addr = sample->apn_mac_addr;
+ memcpy(&nas->apn_name, &sample->apn_name, 24);
}
static void
@@ -6159,8 +6168,11 @@ parse_SAMPLE(char *arg, const struct ofpact_parse_params *pp)
struct ofpact_sample *os = ofpact_put_SAMPLE(pp->ofpacts);
os->sampling_port = OFPP_NONE;
os->direction = NX_ACTION_SAMPLE_DEFAULT;
+ memset(&os->msisdn, 0, 16);
+ memset(&os->apn_name, 0, 24);
char *key, *value;
+ int i;
while (ofputil_parse_key_value(&arg, &key, &value)) {
char *error = NULL;
@@ -6169,6 +6181,20 @@ parse_SAMPLE(char *arg, const struct ofpact_parse_params *pp)
if (!error && os->probability == 0) {
error = xasprintf("invalid probability value \"%s\"", value);
}
+ } else if (!strcmp(key, "apn_name")) {
+ for (i = 0; i < 24; i++) {
+ os->apn_name[i] = (uint8_t)value[i];
+ if ((char)value[i] == '\0')
+ break;
+ }
+ } else if (!strcmp(key, "msisdn")) {
+ for (i = 0; i < 16; i++) {
+ os->msisdn[i] = (uint8_t)value[i];
+ if ((char)value[i] == '\0')
+ break;
+ }
+ } else if (!strcmp(key, "apn_mac_addr")) {
+ error = str_to_mac(value, &os->apn_mac_addr);
} else if (!strcmp(key, "collector_set_id")) {
error = str_to_u32(value, &os->collector_set_id);
} else if (!strcmp(key, "obs_domain_id")) {
@@ -6206,12 +6232,18 @@ format_SAMPLE(const struct ofpact_sample *a,
ds_put_format(fp->s, "%ssample(%s%sprobability=%s%"PRIu16
",%scollector_set_id=%s%"PRIu32
",%sobs_domain_id=%s%"PRIu32
- ",%sobs_point_id=%s%"PRIu32,
+ ",%sobs_point_id=%s%"PRIu32
+ ",%sapn_mac_addr=%s"ETH_ADDR_FMT
+ ",%smsisdn=%s%s"
+ ",%sapn_name=%s%s",
colors.paren, colors.end,
colors.param, colors.end, a->probability,
colors.param, colors.end, a->collector_set_id,
colors.param, colors.end, a->obs_domain_id,
- colors.param, colors.end, a->obs_point_id);
+ colors.param, colors.end, a->obs_point_id,
+ colors.param, colors.end, ETH_ADDR_ARGS(a->apn_mac_addr),
+ colors.param, colors.end, a->msisdn,
+ colors.param, colors.end, a->apn_name);
if (a->sampling_port != OFPP_NONE) {
ds_put_format(fp->s, ",%ssampling_port=%s", colors.param, colors.end);
ofputil_format_port(a->sampling_port, fp->port_map, fp->s);
diff --git a/ofproto/ipfix-enterprise-entities.def b/ofproto/ipfix-enterprise-entities.def
index 73a520c25..89e77ec45 100644
--- a/ofproto/ipfix-enterprise-entities.def
+++ b/ofproto/ipfix-enterprise-entities.def
@@ -14,4 +14,11 @@ IPFIX_ENTERPRISE_ENTITY(TUNNEL_SOURCE_TRANSPORT_PORT, 896, 2, tunnelSourceTransp
IPFIX_ENTERPRISE_ENTITY(TUNNEL_DESTINATION_TRANSPORT_PORT, 897, 2, tunnelDestinationTransportPort, IPFIX_ENTERPRISE_VMWARE)
IPFIX_ENTERPRISE_ENTITY(VIRTUAL_OBS_ID, 898, 0, virtualObsID, IPFIX_ENTERPRISE_VMWARE)
+#define IPFIX_ENTERPRISE_IPDR 6888
+IPFIX_ENTERPRISE_ENTITY(IMSI_REG, 899, 8, imsiRegister, IPFIX_ENTERPRISE_IPDR)
+IPFIX_ENTERPRISE_ENTITY(MSISDN, 900, 16, msisdn, IPFIX_ENTERPRISE_IPDR)
+IPFIX_ENTERPRISE_ENTITY(APN_MAC_ADDRESS, 901, 6, apnMacAddress, IPFIX_ENTERPRISE_IPDR)
+IPFIX_ENTERPRISE_ENTITY(APN_NAME, 902, 24, apnName, IPFIX_ENTERPRISE_IPDR)
+IPFIX_ENTERPRISE_ENTITY(APP_NAME, 903, 4, appName, IPFIX_ENTERPRISE_IPDR)
+
#undef IPFIX_ENTERPRISE_ENTITY
diff --git a/ofproto/ofproto-dpif-ipfix.c b/ofproto/ofproto-dpif-ipfix.c
index b8bd1b814..08699f341 100644
--- a/ofproto/ofproto-dpif-ipfix.c
+++ b/ofproto/ofproto-dpif-ipfix.c
@@ -404,6 +404,16 @@ struct ipfix_data_record_flow_key_tunnel {
});
BUILD_ASSERT_DECL(sizeof(struct ipfix_data_record_flow_key_tunnel) == 15);
+OVS_PACKED(
+struct ipfix_data_ipdr_fields {
+ ovs_be64 imsi; /* IMSI_REGISTER*/
+ uint8_t msisdn[16]; /* MSISDN */
+ struct eth_addr apn_mac_address; /* APN_MAC_ADDRESS */
+ uint8_t apn_name[24]; /* APN_NAME */
+ uint32_t app_name; /* APP_NAME */
+});
+BUILD_ASSERT_DECL(sizeof(struct ipfix_data_ipdr_fields) == 58);
+
/* Cf. IETF RFC 5102 Section 5.11.3. */
enum ipfix_flow_end_reason {
IDLE_TIMEOUT = 0x01,
@@ -536,6 +546,7 @@ BUILD_ASSERT_DECL(sizeof(struct ipfix_data_record_aggregated_tcp) == 48);
+ MAX(sizeof(struct ipfix_data_record_flow_key_icmp), \
sizeof(struct ipfix_data_record_flow_key_transport)) \
+ sizeof(struct ipfix_data_record_flow_key_tunnel) \
+ + sizeof(struct ipfix_data_ipdr_fields) \
+ MAX_TUNNEL_KEY_LEN)
#define MAX_DATA_RECORD_LEN \
@@ -1477,6 +1488,13 @@ ipfix_define_template_fields(enum ipfix_proto_l2 l2, enum ipfix_proto_l3 l3,
DEF(TUNNEL_KEY);
}
+ /* Custom IPDR fields */
+ DEF(IMSI_REG);
+ DEF(MSISDN);
+ DEF(APN_MAC_ADDRESS);
+ DEF(APN_NAME);
+ DEF(APP_NAME);
+
/* 2. Virtual observation ID, which is not a part of flow key. */
if (virtual_obs_id_set) {
DEF(VIRTUAL_OBS_ID);
@@ -2092,6 +2110,9 @@ ipfix_cache_entry_init(const struct dpif_ipfix *di,
uint64_t packet_delta_count, uint32_t obs_domain_id,
uint32_t obs_point_id, odp_port_t output_odp_port,
enum nx_action_sample_direction direction,
+ ovs_be64 flow_metadata, uint8_t *msisdn,
+ struct eth_addr *apn_mac_addr, uint8_t *apn_name,
+ uint32_t app_name,
const struct dpif_ipfix_port *tunnel_port,
const struct flow_tnl *tunnel_key,
struct dpif_ipfix_global_stats *stats,
@@ -2288,6 +2309,19 @@ ipfix_cache_entry_init(const struct dpif_ipfix *di,
tunnel_port->tunnel_key_length);
}
+ /* Add custom IPDR fields */
+ struct ipfix_data_ipdr_fields *ipdr_data;
+
+ ipdr_data = dp_packet_put_zeros(&msg, sizeof *ipdr_data);
+ ipdr_data->imsi = flow_metadata;
+ ipdr_data->app_name = app_name;
+ if (msisdn != NULL)
+ memcpy(&ipdr_data->msisdn, msisdn, 16);
+ if (apn_mac_addr != NULL)
+ memcpy(&ipdr_data->apn_mac_address, apn_mac_addr, sizeof(struct eth_addr));
+ if (apn_name != NULL)
+ memcpy(&ipdr_data->apn_name, apn_name, 24);
+
flow_key->flow_key_msg_part_size = dp_packet_size(&msg);
if (eth_addr_is_broadcast(flow->dl_dst)) {
@@ -2661,6 +2695,9 @@ dpif_ipfix_sample(const struct dpif_ipfix *di,
uint64_t packet_delta_count, uint32_t obs_domain_id,
uint32_t obs_point_id, odp_port_t output_odp_port,
enum nx_action_sample_direction direction,
+ ovs_be64 flow_metadata, uint8_t *msisdn,
+ struct eth_addr *apn_mac_addr, uint8_t *apn_name,
+ uint32_t app_name,
const struct dpif_ipfix_port *tunnel_port,
const struct flow_tnl *tunnel_key,
const struct dpif_ipfix_actions *ipfix_actions)
@@ -2676,6 +2713,9 @@ dpif_ipfix_sample(const struct dpif_ipfix *di,
flow, packet_delta_count,
obs_domain_id, obs_point_id,
output_odp_port, direction,
+ flow_metadata, msisdn,
+ apn_mac_addr, apn_name,
+ app_name,
tunnel_port, tunnel_key,
&exporter->ipfix_global_stats,
ipfix_actions);
@@ -2744,6 +2784,7 @@ dpif_ipfix_bridge_sample(struct dpif_ipfix *di, const struct dp_packet *packet,
di->bridge_exporter.options->obs_domain_id,
di->bridge_exporter.options->obs_point_id,
output_odp_port, NX_ACTION_SAMPLE_DEFAULT,
+ 0, NULL, NULL, NULL, 0, //not available for bridge export
tunnel_port, tunnel_key, ipfix_actions);
ovs_mutex_unlock(&mutex);
}
@@ -2789,6 +2830,9 @@ dpif_ipfix_flow_sample(struct dpif_ipfix *di, const struct dp_packet *packet,
cookie->flow_sample.obs_domain_id,
cookie->flow_sample.obs_point_id,
output_odp_port, cookie->flow_sample.direction,
+ cookie->flow_sample.flow_metadata, (uint8_t *)&cookie->flow_sample.msisdn,
+ (struct eth_addr *)&cookie->flow_sample.apn_mac_addr, (uint8_t *)&cookie->flow_sample.apn_name,
+ cookie->flow_sample.app_name,
tunnel_port, tunnel_key, ipfix_actions);
}
ovs_mutex_unlock(&mutex);
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index 0dc43d17a..a73c3d419 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -5537,6 +5537,11 @@ xlate_sample_action(struct xlate_ctx *ctx,
cookie.flow_sample.obs_point_id = os->obs_point_id;
cookie.flow_sample.output_odp_port = output_odp_port;
cookie.flow_sample.direction = os->direction;
+ cookie.flow_sample.flow_metadata = ctx->xin->flow.metadata;
+ cookie.flow_sample.app_name = ctx->xin->flow.regs[10];
+ memcpy(&cookie.flow_sample.msisdn, &os->msisdn, 16);
+ memcpy(&cookie.flow_sample.apn_mac_addr, &os->apn_mac_addr, sizeof(struct eth_addr));
+ memcpy(&cookie.flow_sample.apn_name, &os->apn_name, 24);
compose_sample_action(ctx, probability, &cookie, tunnel_out_port, false);
}
--
2.17.1
| {
"pile_set_name": "Github"
} |
#
# Generic S2 (Freeze) test
#
# This is the configuration file for sleepgraph. It contains
# all the tool arguments so that they don't have to be given on the
# command line. It also includes advanced settings for functions
# and kprobes. It is run like this
#
# sudo ./sleepgraph.py -config config/freeze.cfg
#
[Settings]
# ---- General Options ----
# Verbosity
# print verbose messages (default: false)
verbose: false
# Suspend Mode
# e.g. standby, mem, freeze, disk (default: mem)
mode: freeze
# Output Directory Format
# output folder for html, ftrace, and dmesg. Use {date} and {time} for current values
output-dir: freeze-{hostname}-{date}-{time}
# Automatic Wakeup
# Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
rtcwake: 15
# Add Logs
# add the dmesg and ftrace log to the html output (default: false)
addlogs: false
# Suspend/Resume Gap
# insert a small visible gap between suspend and resume on the timeline (default: false)
srgap: false
# ---- Advanced Options ----
# Command to execute in lieu of freeze (default: "")
# command: echo freeze > /sys/power/state
# Display user processes
# graph user processes and cpu usage in the timeline (default: false)
proc: false
# Display function calls
# graph source functions in the timeline (default: false)
dev: false
# Back to Back Suspend/Resume
# Run two suspend/resumes back to back (default: false)
x2: false
# Back to Back Suspend Delay
# Time delay between the two test runs in ms (default: 0 ms)
x2delay: 0
# Pre Suspend Delay
# Include an N ms delay before (1st) suspend (default: 0 ms)
predelay: 0
# Post Resume Delay
# Include an N ms delay after (last) resume (default: 0 ms)
postdelay: 0
# Minimum Device Length
# graph only devices longer than min in the timeline (default: 0.001 ms)
mindev: 0.001
# ---- Debug Options ----
# Callgraph
# gather detailed ftrace callgraph data on all timeline events (default: false)
callgraph: false
# Expand Callgraph
# pre-expand the callgraph data in the html output (default: disabled)
expandcg: false
# Minimum Callgraph Length
# provide callgraph data for blocks longer than min (default: 0.001 ms)
mincg: 1
# Timestamp Precision
# Number of significant digits in timestamps (0:S, [3:ms], 6:us)
timeprec: 3
# Device Filter
# show only devs whose name/driver includes one of these strings
# devicefilter: _cpu_up,_cpu_down,i915,usb
| {
"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.
#import <Foundation/Foundation.h>
@class FBSDKAccessToken;
typedef NS_ENUM(NSUInteger, FBSDKAdvertisingTrackingStatus)
{
FBSDKAdvertisingTrackingAllowed,
FBSDKAdvertisingTrackingDisallowed,
FBSDKAdvertisingTrackingUnspecified
} NS_SWIFT_NAME(AppEventsUtility.AdvertisingTrackingStatus);
typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushReason)
{
FBSDKAppEventsFlushReasonExplicit,
FBSDKAppEventsFlushReasonTimer,
FBSDKAppEventsFlushReasonSessionChange,
FBSDKAppEventsFlushReasonPersistedEvents,
FBSDKAppEventsFlushReasonEventThreshold,
FBSDKAppEventsFlushReasonEagerlyFlushingEvent
} NS_SWIFT_NAME(AppEventsUtility.FlushReason);
NS_SWIFT_NAME(AppEventsUtility)
@interface FBSDKAppEventsUtility : NSObject
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
@property (class, nonatomic, copy, readonly) NSString *advertiserID;
@property (class, nonatomic, assign, readonly) long unixTimeNow;
@property (class, nonatomic, assign, readonly) BOOL isDebugBuild;
+ (NSMutableDictionary *)activityParametersDictionaryForEvent:(NSString *)eventCategory
shouldAccessAdvertisingID:(BOOL)shouldAccessAdvertisingID;
+ (void)ensureOnMainThread:(NSString *)methodName className:(NSString *)className;
+ (NSString *)flushReasonToString:(FBSDKAppEventsFlushReason)flushReason;
+ (void)logAndNotify:(NSString *)msg allowLogAsDeveloperError:(BOOL)allowLogAsDeveloperError;
+ (void)logAndNotify:(NSString *)msg;
+ (NSString *)tokenStringToUseFor:(FBSDKAccessToken *)token;
+ (BOOL)validateIdentifier:(NSString *)identifier;
+ (NSNumber *)getNumberValue:(NSString *)text;
+ (BOOL)shouldDropAppEvent;
+ (BOOL)isSensitiveUserData:(NSString *)text;
+ (BOOL)isStandardEvent:(NSString *)event;
+ (long)convertToUnixTime:(NSDate *)date;
@end
| {
"pile_set_name": "Github"
} |
<h1><%= @article.name %></h1>
<%= simple_format @article.content %>
<p><%= link_to "Back to Articles", articles_path %></p>
<h2>Comments</h2>
<%= render "comments/comments" %>
<%= render "comments/form" %>
| {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.