text
stringlengths 2
100k
| meta
dict |
---|---|
---
title: Installation
redirect_from: "docs/v1.0.0-beta/installation/"
---
Ember CLI Deploy is a standard Ember CLI addon, so install it with
```
ember install ember-cli-deploy
```
As you configure your app's deploy pipeline, you will install additional plugins separately.
Check out [the upgrade guide](../upgrading) if you’re coming from an older version.
| {
"pile_set_name": "Github"
} |
@echo off
set main=./examples/tagtext/prev-next-page.js
cd ..
cd ..
npm run watch | {
"pile_set_name": "Github"
} |
{
"package": "com.xiaoenai.app",
"verified": false,
"authors": [
"zhxhwyzh14"
],
"last_update": {
"timestamp": 1573909761
},
"recommendation": "@recommended",
"behaviors": [
"@abuse"
]
} | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration> | {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>file</title>
</head>
<body>
<h1>{{ file_item['title'] }}</h1>
<p>{{ file_item['created_time'] }}</p>
<p>{{ file_item['content'] }}</p>
</body>
</html>
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<doi_batch xmlns="http://www.crossref.org/schema/4.4.0" xmlns:ai="http://www.crossref.org/AccessIndicators.xsd" xmlns:rel="http://www.crossref.org/relations.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4.4.0" xsi:schemaLocation="http://www.crossref.org/schema/4.4.0 http://www.crossref.org/schemas/crossref4.4.0.xsd">
<head>
<doi_batch_id>29d9ecd7b42d303318f4a47732c964f6</doi_batch_id>
<timestamp>20171025144227</timestamp>
<depositor>
<depositor_name>JOSS Admin</depositor_name>
<email_address>[email protected]</email_address>
</depositor>
<registrant>The Open Journal</registrant>
</head>
<body>
<journal>
<journal_metadata>
<full_title>The Journal of Open Source Software</full_title>
<abbrev_title>JOSS</abbrev_title>
<issn media_type="electronic">2475-9066</issn>
<doi_data>
<doi>10.21105/joss</doi>
<resource>http://joss.theoj.org</resource>
</doi_data>
</journal_metadata>
<journal_issue>
<publication_date media_type="online">
<month>10</month>
<year>2017</year>
</publication_date>
<journal_volume>
<volume>2</volume>
</journal_volume>
<issue>18</issue>
</journal_issue>
<journal_article publication_type="full_text">
<titles>
<title>bíogo/ncbi: interfaces to NCBI services for the Go language</title>
</titles>
<contributors><person_name sequence="first" contributor_role="author"><given_name>R</given_name><surname>Daniel Kortschak</surname><ORCID>http://orcid.org/0000-0001-8295-2301</ORCID></person_name><person_name sequence="additional" contributor_role="author"><given_name>David</given_name><surname>L Adelson</surname><ORCID>http://orcid.org/0000-0003-2404-5636</ORCID></person_name></contributors>
<publication_date>
<month>10</month>
<day>25</day>
<year>2017</year>
</publication_date>
<pages>
<first_page>234</first_page>
</pages>
<publisher_item>
<identifier id_type="doi">10.21105/joss.00234</identifier>
</publisher_item>
<ai:program name="AccessIndicators">
<ai:license_ref applies_to="vor">http://creativecommons.org/licenses/by/4.0/</ai:license_ref>
<ai:license_ref applies_to="am">http://creativecommons.org/licenses/by/4.0/</ai:license_ref>
<ai:license_ref applies_to="tdm">http://creativecommons.org/licenses/by/4.0/</ai:license_ref>
</ai:program>
<rel:program>
<rel:related_item>
<rel:description>Software archive</rel:description>
<rel:inter_work_relation relationship-type="references" identifier-type="doi">http://dx.doi.org/10.5281/zenodo.582354</rel:inter_work_relation>
</rel:related_item>
<rel:related_item>
<rel:description>GitHub review issue</rel:description>
<rel:inter_work_relation relationship-type="hasReview" identifier-type="uri">https://github.com/openjournals/joss-reviews/issues/234</rel:inter_work_relation>
</rel:related_item>
</rel:program>
<doi_data>
<doi>10.21105/joss.00234</doi>
<resource>http://joss.theoj.org/papers/10.21105/joss.00234</resource>
<collection property="text-mining">
<item>
<resource mime_type="application/pdf">http://www.theoj.org/joss-papers/joss.00234/10.21105.joss.00234.pdf</resource>
</item>
</collection>
</doi_data>
<citation_list><citation key="ref1"><unstructured_citation>for Biotechnology Information (US), National Center, Basic Local Alignment Search Tool, https://blast.ncbi.nlm.nih.gov/Blast.cgi, 2017-03-03</unstructured_citation></citation><citation key="ref2"><unstructured_citation>for Biotechnology Information (US), National Center, Entrez Programming Utilities Help, 2005, https://www.ncbi.nlm.nih.gov/books/NBK3836/, 2017-03-03</unstructured_citation></citation><citation key="ref3"><unstructured_citation>for Biotechnology Information (US), National Center, Common URL API, http://www.ncbi.nlm.nih.gov/BLAST/Doc/urlapi.html, 2017-03-03</unstructured_citation></citation><citation key="ref4"><unstructured_citation>for Biotechnology Information (US), National Center, Entrez Programming Utilities Help, 2010, https://www.ncbi.nlm.nih.gov/books/NBK25501/, 2017-03-03</unstructured_citation></citation><citation key="ref5"><unstructured_citation>Fields C., Bio-EUtilities, https://github.com/bioperl/Bio-EUtilities, 2017-03-03</unstructured_citation></citation><citation key="ref6"><unstructured_citation>Fields C., Bio-EUtilities, https://github.com/bioperl/bioperl-run, 2017-03-03</unstructured_citation></citation><citation key="ref7"><doi>10.1101/gr.361602</doi></citation><citation key="ref8"><doi>10.1093/bioinformatics/btp163</doi></citation></citation_list>
</journal_article>
</journal>
</body>
</doi_batch>
| {
"pile_set_name": "Github"
} |
<project name="external/yocto/github.com.DaveGamble.cJSON" remote="base" path="layers/meta-iot-cloud-dl/git/github.com.DaveGamble.cJSON.git" bare="True"/>
| {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: e7058442d03f84c478514e226306c883
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| {
"pile_set_name": "Github"
} |
#!/bin/sh
export QEMU_PROG="$(pwd)/x86_64-softmmu/qemu-system-x86_64"
export QEMU_IMG_PROG="$(pwd)/qemu-img"
export QEMU_IO_PROG="$(pwd)/qemu-io"
if [ ! -x $QEMU_PROG ]; then
echo "'make check-block' requires qemu-system-x86_64"
exit 1
fi
cd $SRC_PATH/tests/qemu-iotests
ret=0
./check -T -nocache -raw || ret=1
./check -T -nocache -qcow2 || ret=1
./check -T -nocache -qed|| ret=1
./check -T -nocache -vmdk|| ret=1
./check -T -nocache -vpc || ret=1
exit $ret
| {
"pile_set_name": "Github"
} |
/*********************************************************************/
/* */
/* Optimized BLAS libraries */
/* By Kazushige Goto <[email protected]> */
/* */
/* Copyright (c) The University of Texas, 2009. All rights reserved. */
/* UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING */
/* THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, */
/* NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY */
/* THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF */
/* TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO */
/* THE USE OF THE SOFTWARE OR DOCUMENTATION. */
/* Under no circumstances shall University be liable for incidental, */
/* special, indirect, direct or consequential damages or loss of */
/* profits, interruption of business, or related expenses which may */
/* arise from use of Software or Documentation, including but not */
/* limited to those resulting from defects in Software and/or */
/* Documentation, or loss or inaccuracy of data of any kind. */
/*********************************************************************/
#define ASSEMBLER
#include "common.h"
#ifdef linux
#ifndef __64BIT__
#define N r3
#define X r6
#define INCX r7
#define Y r8
#define INCY r9
#define PREA r4
#define YY r5
#else
#define N r3
#define X r7
#define INCX r8
#define Y r9
#define INCY r10
#define PREA r4
#define YY r5
#endif
#endif
#if defined(_AIX) || defined(__APPLE__)
#if !defined(__64BIT__) && defined(DOUBLE)
#define N r3
#define X r8
#define INCX r9
#define Y r10
#define INCY r4
#define PREA r5
#define YY r6
#else
#define N r3
#define X r7
#define INCX r8
#define Y r9
#define INCY r10
#define PREA r4
#define YY r5
#endif
#endif
#define ALPHA f24
#ifndef NEEDPARAM
#define STACKSIZE 96
PROLOGUE
PROFCODE
addi SP, SP, -STACKSIZE
li r0, 0
stfd f14, 0(SP)
stfd f15, 8(SP)
stfd f16, 16(SP)
stfd f17, 24(SP)
stfd f18, 32(SP)
stfd f19, 40(SP)
stfd f20, 48(SP)
stfd f21, 56(SP)
stfd f22, 64(SP)
stfd f23, 72(SP)
stfd f24, 80(SP)
#if (defined(_AIX) || defined(__APPLE__)) && !defined(__64BIT__) && defined(DOUBLE)
lwz INCY, 56 + STACKSIZE(SP)
#endif
fmr ALPHA, f1
slwi INCX, INCX, BASE_SHIFT
slwi INCY, INCY, BASE_SHIFT
#ifdef L1_DUALFETCH
li PREA, (L1_PREFETCHSIZE) / 2
#else
li PREA, (L1_PREFETCHSIZE)
#endif
cmpwi cr0, N, 0
ble- LL(999)
cmpwi cr0, INCX, SIZE
bne- cr0, LL(100)
cmpwi cr0, INCY, SIZE
bne- cr0, LL(100)
srawi. r0, N, 4
mtspr CTR, r0
beq- cr0, LL(50)
.align 4
LFD f0, 0 * SIZE(X)
LFD f1, 1 * SIZE(X)
LFD f2, 2 * SIZE(X)
LFD f3, 3 * SIZE(X)
LFD f8, 0 * SIZE(Y)
LFD f9, 1 * SIZE(Y)
LFD f10, 2 * SIZE(Y)
LFD f11, 3 * SIZE(Y)
LFD f4, 4 * SIZE(X)
LFD f5, 5 * SIZE(X)
LFD f6, 6 * SIZE(X)
LFD f7, 7 * SIZE(X)
LFD f12, 4 * SIZE(Y)
LFD f13, 5 * SIZE(Y)
LFD f14, 6 * SIZE(Y)
LFD f15, 7 * SIZE(Y)
bdz LL(20)
.align 4
LL(10):
FMADD f16, ALPHA, f0, f8
FMADD f17, ALPHA, f1, f9
FMADD f18, ALPHA, f2, f10
FMADD f19, ALPHA, f3, f11
LFD f0, 8 * SIZE(X)
LFD f1, 9 * SIZE(X)
LFD f2, 10 * SIZE(X)
LFD f3, 11 * SIZE(X)
LFD f8, 8 * SIZE(Y)
LFD f9, 9 * SIZE(Y)
LFD f10, 10 * SIZE(Y)
LFD f11, 11 * SIZE(Y)
STFD f16, 0 * SIZE(Y)
STFD f17, 1 * SIZE(Y)
STFD f18, 2 * SIZE(Y)
STFD f19, 3 * SIZE(Y)
FMADD f20, ALPHA, f4, f12
FMADD f21, ALPHA, f5, f13
FMADD f22, ALPHA, f6, f14
FMADD f23, ALPHA, f7, f15
LFD f4, 12 * SIZE(X)
LFD f5, 13 * SIZE(X)
LFD f6, 14 * SIZE(X)
LFD f7, 15 * SIZE(X)
LFD f12, 12 * SIZE(Y)
LFD f13, 13 * SIZE(Y)
LFD f14, 14 * SIZE(Y)
LFD f15, 15 * SIZE(Y)
STFD f20, 4 * SIZE(Y)
STFD f21, 5 * SIZE(Y)
STFD f22, 6 * SIZE(Y)
STFD f23, 7 * SIZE(Y)
FMADD f16, ALPHA, f0, f8
FMADD f17, ALPHA, f1, f9
FMADD f18, ALPHA, f2, f10
FMADD f19, ALPHA, f3, f11
LFD f0, 16 * SIZE(X)
LFD f1, 17 * SIZE(X)
LFD f2, 18 * SIZE(X)
LFD f3, 19 * SIZE(X)
LFD f8, 16 * SIZE(Y)
LFD f9, 17 * SIZE(Y)
LFD f10, 18 * SIZE(Y)
LFD f11, 19 * SIZE(Y)
STFD f16, 8 * SIZE(Y)
STFD f17, 9 * SIZE(Y)
STFD f18, 10 * SIZE(Y)
STFD f19, 11 * SIZE(Y)
FMADD f20, ALPHA, f4, f12
FMADD f21, ALPHA, f5, f13
FMADD f22, ALPHA, f6, f14
FMADD f23, ALPHA, f7, f15
LFD f4, 20 * SIZE(X)
LFD f5, 21 * SIZE(X)
LFD f6, 22 * SIZE(X)
LFD f7, 23 * SIZE(X)
LFD f12, 20 * SIZE(Y)
LFD f13, 21 * SIZE(Y)
LFD f14, 22 * SIZE(Y)
LFD f15, 23 * SIZE(Y)
STFD f20, 12 * SIZE(Y)
STFD f21, 13 * SIZE(Y)
STFD f22, 14 * SIZE(Y)
STFD f23, 15 * SIZE(Y)
#ifndef POWER6
dcbtst Y, PREA
#ifdef L1_DUALFETCH
dcbt X, PREA
#endif
#endif
addi X, X, 16 * SIZE
addi Y, Y, 16 * SIZE
#ifdef POWER6
dcbtst Y, PREA
L1_PREFETCH X, PREA
#endif
bdnz LL(10)
.align 4
LL(20):
FMADD f16, ALPHA, f0, f8
FMADD f17, ALPHA, f1, f9
FMADD f18, ALPHA, f2, f10
FMADD f19, ALPHA, f3, f11
LFD f0, 8 * SIZE(X)
LFD f1, 9 * SIZE(X)
LFD f2, 10 * SIZE(X)
LFD f3, 11 * SIZE(X)
LFD f8, 8 * SIZE(Y)
LFD f9, 9 * SIZE(Y)
LFD f10, 10 * SIZE(Y)
LFD f11, 11 * SIZE(Y)
FMADD f20, ALPHA, f4, f12
FMADD f21, ALPHA, f5, f13
FMADD f22, ALPHA, f6, f14
FMADD f23, ALPHA, f7, f15
LFD f4, 12 * SIZE(X)
LFD f5, 13 * SIZE(X)
LFD f6, 14 * SIZE(X)
LFD f7, 15 * SIZE(X)
LFD f12, 12 * SIZE(Y)
LFD f13, 13 * SIZE(Y)
LFD f14, 14 * SIZE(Y)
LFD f15, 15 * SIZE(Y)
STFD f16, 0 * SIZE(Y)
STFD f17, 1 * SIZE(Y)
STFD f18, 2 * SIZE(Y)
STFD f19, 3 * SIZE(Y)
FMADD f16, ALPHA, f0, f8
FMADD f17, ALPHA, f1, f9
FMADD f18, ALPHA, f2, f10
FMADD f19, ALPHA, f3, f11
STFD f20, 4 * SIZE(Y)
STFD f21, 5 * SIZE(Y)
STFD f22, 6 * SIZE(Y)
STFD f23, 7 * SIZE(Y)
FMADD f20, ALPHA, f4, f12
FMADD f21, ALPHA, f5, f13
FMADD f22, ALPHA, f6, f14
FMADD f23, ALPHA, f7, f15
STFD f16, 8 * SIZE(Y)
STFD f17, 9 * SIZE(Y)
STFD f18, 10 * SIZE(Y)
STFD f19, 11 * SIZE(Y)
STFD f20, 12 * SIZE(Y)
STFD f21, 13 * SIZE(Y)
STFD f22, 14 * SIZE(Y)
STFD f23, 15 * SIZE(Y)
addi X, X, 16 * SIZE
addi Y, Y, 16 * SIZE
.align 4
LL(50):
andi. r0, N, 15
mtspr CTR, r0
beq LL(999)
.align 4
LL(60):
LFD f0, 0 * SIZE(X)
LFD f8, 0 * SIZE(Y)
FMADD f16, ALPHA, f0, f8
STFD f16, 0 * SIZE(Y)
addi X, X, 1 * SIZE
addi Y, Y, 1 * SIZE
bdnz LL(60)
b LL(999)
.align 4
LL(100):
sub X, X, INCX
sub Y, Y, INCY
mr YY, Y
srawi. r0, N, 4
mtspr CTR, r0
beq- LL(150)
.align 4
LFDUX f0, X, INCX
LFDUX f1, X, INCX
LFDUX f2, X, INCX
LFDUX f3, X, INCX
LFDUX f8, Y, INCY
LFDUX f9, Y, INCY
LFDUX f10, Y, INCY
LFDUX f11, Y, INCY
LFDUX f4, X, INCX
LFDUX f5, X, INCX
LFDUX f6, X, INCX
LFDUX f7, X, INCX
LFDUX f12, Y, INCY
LFDUX f13, Y, INCY
LFDUX f14, Y, INCY
LFDUX f15, Y, INCY
bdz LL(120)
.align 4
LL(110):
FMADD f16, ALPHA, f0, f8
FMADD f17, ALPHA, f1, f9
FMADD f18, ALPHA, f2, f10
FMADD f19, ALPHA, f3, f11
LFDUX f0, X, INCX
LFDUX f1, X, INCX
LFDUX f2, X, INCX
LFDUX f3, X, INCX
LFDUX f8, Y, INCY
LFDUX f9, Y, INCY
LFDUX f10, Y, INCY
LFDUX f11, Y, INCY
FMADD f20, ALPHA, f4, f12
FMADD f21, ALPHA, f5, f13
FMADD f22, ALPHA, f6, f14
FMADD f23, ALPHA, f7, f15
LFDUX f4, X, INCX
LFDUX f5, X, INCX
LFDUX f6, X, INCX
LFDUX f7, X, INCX
LFDUX f12, Y, INCY
LFDUX f13, Y, INCY
LFDUX f14, Y, INCY
LFDUX f15, Y, INCY
STFDUX f16, YY, INCY
STFDUX f17, YY, INCY
STFDUX f18, YY, INCY
STFDUX f19, YY, INCY
FMADD f16, ALPHA, f0, f8
FMADD f17, ALPHA, f1, f9
FMADD f18, ALPHA, f2, f10
FMADD f19, ALPHA, f3, f11
LFDUX f0, X, INCX
LFDUX f1, X, INCX
LFDUX f2, X, INCX
LFDUX f3, X, INCX
LFDUX f8, Y, INCY
LFDUX f9, Y, INCY
LFDUX f10, Y, INCY
LFDUX f11, Y, INCY
STFDUX f20, YY, INCY
STFDUX f21, YY, INCY
STFDUX f22, YY, INCY
STFDUX f23, YY, INCY
FMADD f20, ALPHA, f4, f12
FMADD f21, ALPHA, f5, f13
FMADD f22, ALPHA, f6, f14
FMADD f23, ALPHA, f7, f15
LFDUX f4, X, INCX
LFDUX f5, X, INCX
LFDUX f6, X, INCX
LFDUX f7, X, INCX
LFDUX f12, Y, INCY
LFDUX f13, Y, INCY
LFDUX f14, Y, INCY
LFDUX f15, Y, INCY
STFDUX f16, YY, INCY
STFDUX f17, YY, INCY
STFDUX f18, YY, INCY
STFDUX f19, YY, INCY
STFDUX f20, YY, INCY
STFDUX f21, YY, INCY
STFDUX f22, YY, INCY
STFDUX f23, YY, INCY
bdnz LL(110)
.align 4
LL(120):
FMADD f16, ALPHA, f0, f8
FMADD f17, ALPHA, f1, f9
FMADD f18, ALPHA, f2, f10
FMADD f19, ALPHA, f3, f11
LFDUX f0, X, INCX
LFDUX f1, X, INCX
LFDUX f2, X, INCX
LFDUX f3, X, INCX
LFDUX f8, Y, INCY
LFDUX f9, Y, INCY
LFDUX f10, Y, INCY
LFDUX f11, Y, INCY
FMADD f20, ALPHA, f4, f12
FMADD f21, ALPHA, f5, f13
FMADD f22, ALPHA, f6, f14
FMADD f23, ALPHA, f7, f15
LFDUX f4, X, INCX
LFDUX f5, X, INCX
LFDUX f6, X, INCX
LFDUX f7, X, INCX
LFDUX f12, Y, INCY
LFDUX f13, Y, INCY
LFDUX f14, Y, INCY
LFDUX f15, Y, INCY
STFDUX f16, YY, INCY
STFDUX f17, YY, INCY
STFDUX f18, YY, INCY
STFDUX f19, YY, INCY
FMADD f16, ALPHA, f0, f8
FMADD f17, ALPHA, f1, f9
FMADD f18, ALPHA, f2, f10
FMADD f19, ALPHA, f3, f11
STFDUX f20, YY, INCY
STFDUX f21, YY, INCY
STFDUX f22, YY, INCY
STFDUX f23, YY, INCY
FMADD f20, ALPHA, f4, f12
FMADD f21, ALPHA, f5, f13
FMADD f22, ALPHA, f6, f14
FMADD f23, ALPHA, f7, f15
STFDUX f16, YY, INCY
STFDUX f17, YY, INCY
STFDUX f18, YY, INCY
STFDUX f19, YY, INCY
STFDUX f20, YY, INCY
STFDUX f21, YY, INCY
STFDUX f22, YY, INCY
STFDUX f23, YY, INCY
.align 4
LL(150):
andi. r0, N, 15
mtspr CTR, r0
beq LL(999)
.align 4
LL(160):
LFDUX f0, X, INCX
LFDUX f8, Y, INCY
FMADD f16, ALPHA, f0, f8
STFDUX f16, YY, INCY
bdnz LL(160)
.align 4
LL(999):
lfd f14, 0(SP)
lfd f15, 8(SP)
lfd f16, 16(SP)
lfd f17, 24(SP)
lfd f18, 32(SP)
lfd f19, 40(SP)
lfd f20, 48(SP)
lfd f21, 56(SP)
lfd f22, 64(SP)
lfd f23, 72(SP)
lfd f24, 80(SP)
addi SP, SP, STACKSIZE
blr
EPILOGUE
#endif
| {
"pile_set_name": "Github"
} |
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
| {
"pile_set_name": "Github"
} |
//
// OPZAppDelegate.m
// OpinionzAlertView
//
// Created by Opinionz.io on 09/06/2015.
// Copyright (c) 2015 Opinionz.io. All rights reserved.
//
#import "OPZAppDelegate.h"
@implementation OPZAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
| {
"pile_set_name": "Github"
} |
/*!
* Bootstrap Table of Contents v0.4.1 (http://afeld.github.io/bootstrap-toc/)
* Copyright 2015 Aidan Feldman
* Licensed under MIT (https://github.com/afeld/bootstrap-toc/blob/gh-pages/LICENSE.md) */
/* modified from https://github.com/twbs/bootstrap/blob/94b4076dd2efba9af71f0b18d4ee4b163aa9e0dd/docs/assets/css/src/docs.css#L548-L601 */
/* All levels of nav */
nav[data-toggle='toc'] .nav > li > a {
display: block;
padding: 4px 20px;
font-size: 13px;
font-weight: 500;
color: #767676;
}
nav[data-toggle='toc'] .nav > li > a:hover,
nav[data-toggle='toc'] .nav > li > a:focus {
padding-left: 19px;
color: #563d7c;
text-decoration: none;
background-color: transparent;
border-left: 1px solid #563d7c;
}
nav[data-toggle='toc'] .nav > .active > a,
nav[data-toggle='toc'] .nav > .active:hover > a,
nav[data-toggle='toc'] .nav > .active:focus > a {
padding-left: 18px;
font-weight: bold;
color: #563d7c;
background-color: transparent;
border-left: 2px solid #563d7c;
}
/* Nav: second level (shown on .active) */
nav[data-toggle='toc'] .nav .nav {
display: none; /* Hide by default, but at >768px, show it */
padding-bottom: 10px;
}
nav[data-toggle='toc'] .nav .nav > li > a {
padding-top: 1px;
padding-bottom: 1px;
padding-left: 30px;
font-size: 12px;
font-weight: normal;
}
nav[data-toggle='toc'] .nav .nav > li > a:hover,
nav[data-toggle='toc'] .nav .nav > li > a:focus {
padding-left: 29px;
}
nav[data-toggle='toc'] .nav .nav > .active > a,
nav[data-toggle='toc'] .nav .nav > .active:hover > a,
nav[data-toggle='toc'] .nav .nav > .active:focus > a {
padding-left: 28px;
font-weight: 500;
}
/* from https://github.com/twbs/bootstrap/blob/e38f066d8c203c3e032da0ff23cd2d6098ee2dd6/docs/assets/css/src/docs.css#L631-L634 */
nav[data-toggle='toc'] .nav > .active > ul {
display: block;
}
| {
"pile_set_name": "Github"
} |
/*
* Menyoo PC - Grand Theft Auto V single-player trainer mod
* Copyright (C) 2019 MAFINS
*
* 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.
*/
#pragma once
#include <vector>
#include <string>
#include <map>
class GTAentity;
namespace sub
{
// All animations subs
namespace AnimationSub_catind
{
struct NamedAnimation { std::string caption; std::string animDict, animName; };
extern const std::vector<AnimationSub_catind::NamedAnimation> vPresetPedAnims;
extern std::map<std::string, std::vector<std::string>> vAllPedAnims;
extern std::pair<const std::string, std::vector<std::string>>* selectedAnimDictPtr;
void PopulateAllPedAnimsList();
void Sub_AllPedAnims();
void Sub_AllPedAnims_InDict();
}
// Animation settings
//extern std::string _globalCustomAnim_dict, _globalCustomAnim_name;
//extern float _globalCustomAnim_speed, _globalCustomAnim_speedMult, _globalCustomAnim_rate;
//extern int _globalCustomAnim_duration, _globalCustomAnim_flag;
//extern bool _globalCustomAnim_lockPos;
// Animation Favourites
void GetFavouriteAnimations(std::vector<std::pair<std::string, std::string>>& result);
bool IsAnimationAFavourite(const std::string animDict, const std::string& animName);
void AddAnimationToFavourites(const std::string animDict, const std::string& animName);
void RemoveAnimationFromFavourites(const std::string animDict, const std::string& animName);
// Old animation subs
//void AddanimOption_(const std::string& text, const std::string& anim_dict, std::string anim_name = "", bool &extra_option_code = null);
void AnimationSub_StopAnimationCallback();
void AnimationSub_();
void AnimationSub_Settings();
void AnimationSub_Favourites();
void AnimationSub_Custom();
void AnimationSub_Deer();
void AnimationSub_Shark();
void AnimationSub_MissRappel();
void AnimationSub_GestSit();
void AnimationSub_Swat();
void AnimationSub_GuardReac();
void AnimationSub_RandArrest();
// Scenario animations
namespace AnimationSub_TaskScenarios
{
extern std::vector<std::string> vValues_TaskScenarios;
struct NamedScenario { std::string name; std::string label; };
extern std::vector<NamedScenario> vNamedScenarios;
//void __AddOption(const std::string& text, const std::string& scenarioLabel, int delay = -1, bool playEnterAnim = true);
//void stopScenarioPls();
void AnimationSub_TaskScenarios();
void AnimationSub_TaskScenarios2();
}
// Movement clipsets
std::string get_ped_movement_clipset(const GTAentity& ped);
void set_ped_movement_clipset(GTAentity ped, const std::string& setName);
std::string get_ped_weapon_movement_clipset(const GTAentity& ped);
void set_ped_weapon_movement_clipset(GTAentity ped, const std::string& setName);
//void AddmovgrpOption_(const std::string& text, std::string movgrp = "", bool &extra_option_code = null);
//void AddwmovgrpOption_(const std::string& text, std::string movgrp = "", bool &extra_option_code = null);
void MovementGroup_();
// Facial animations
namespace FacialAnims_catind
{
struct NamedFacialAnim { std::string caption; std::string animName; };
extern const std::vector<NamedFacialAnim> vFacialAnims;
void Sub_FacialMood();
}
}
| {
"pile_set_name": "Github"
} |
// ***************************************************************************
// *
// * Copyright (C) 2013 International Business Machines
// * Corporation and others. All Rights Reserved.
// * Tool: com.ibm.icu.dev.tool.cldr.LDML2ICUConverter.java
// * Source File:<path>/icu-config.xml & build.xml
// *
// ***************************************************************************
no_NO{
"%%ALIAS"{"nb_NO"}
}
| {
"pile_set_name": "Github"
} |
/*
* MPC85xx setup and early boot code plus other random bits.
*
* Maintained by Kumar Gala (see MAINTAINERS for contact information)
*
* Copyright 2005, 2011-2012 Freescale Semiconductor Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/reboot.h>
#include <linux/pci.h>
#include <linux/kdev_t.h>
#include <linux/major.h>
#include <linux/console.h>
#include <linux/delay.h>
#include <linux/seq_file.h>
#include <linux/initrd.h>
#include <linux/interrupt.h>
#include <linux/fsl_devices.h>
#include <linux/of_platform.h>
#include <asm/pgtable.h>
#include <asm/page.h>
#include <linux/atomic.h>
#include <asm/time.h>
#include <asm/io.h>
#include <asm/machdep.h>
#include <asm/ipic.h>
#include <asm/pci-bridge.h>
#include <asm/irq.h>
#include <mm/mmu_decl.h>
#include <asm/prom.h>
#include <asm/udbg.h>
#include <asm/mpic.h>
#include <asm/i8259.h>
#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
#include "mpc85xx.h"
/*
* The CDS board contains an FPGA/CPLD called "Cadmus", which collects
* various logic and performs system control functions.
* Here is the FPGA/CPLD register map.
*/
struct cadmus_reg {
u8 cm_ver; /* Board version */
u8 cm_csr; /* General control/status */
u8 cm_rst; /* Reset control */
u8 cm_hsclk; /* High speed clock */
u8 cm_hsxclk; /* High speed clock extended */
u8 cm_led; /* LED data */
u8 cm_pci; /* PCI control/status */
u8 cm_dma; /* DMA control */
u8 res[248]; /* Total 256 bytes */
};
static struct cadmus_reg *cadmus;
#ifdef CONFIG_PCI
#define ARCADIA_HOST_BRIDGE_IDSEL 17
#define ARCADIA_2ND_BRIDGE_IDSEL 3
static int mpc85xx_exclude_device(struct pci_controller *hose,
u_char bus, u_char devfn)
{
/* We explicitly do not go past the Tundra 320 Bridge */
if ((bus == 1) && (PCI_SLOT(devfn) == ARCADIA_2ND_BRIDGE_IDSEL))
return PCIBIOS_DEVICE_NOT_FOUND;
if ((bus == 0) && (PCI_SLOT(devfn) == ARCADIA_2ND_BRIDGE_IDSEL))
return PCIBIOS_DEVICE_NOT_FOUND;
else
return PCIBIOS_SUCCESSFUL;
}
static void mpc85xx_cds_restart(char *cmd)
{
struct pci_dev *dev;
u_char tmp;
if ((dev = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686,
NULL))) {
/* Use the VIA Super Southbridge to force a PCI reset */
pci_read_config_byte(dev, 0x47, &tmp);
pci_write_config_byte(dev, 0x47, tmp | 1);
/* Flush the outbound PCI write queues */
pci_read_config_byte(dev, 0x47, &tmp);
/*
* At this point, the harware reset should have triggered.
* However, if it doesn't work for some mysterious reason,
* just fall through to the default reset below.
*/
pci_dev_put(dev);
}
/*
* If we can't find the VIA chip (maybe the P2P bridge is disabled)
* or the VIA chip reset didn't work, just use the default reset.
*/
fsl_rstcr_restart(NULL);
}
static void __init mpc85xx_cds_pci_irq_fixup(struct pci_dev *dev)
{
u_char c;
if (dev->vendor == PCI_VENDOR_ID_VIA) {
switch (dev->device) {
case PCI_DEVICE_ID_VIA_82C586_1:
/*
* U-Boot does not set the enable bits
* for the IDE device. Force them on here.
*/
pci_read_config_byte(dev, 0x40, &c);
c |= 0x03; /* IDE: Chip Enable Bits */
pci_write_config_byte(dev, 0x40, c);
/*
* Since only primary interface works, force the
* IDE function to standard primary IDE interrupt
* w/ 8259 offset
*/
dev->irq = 14;
pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
break;
/*
* Force legacy USB interrupt routing
*/
case PCI_DEVICE_ID_VIA_82C586_2:
/* There are two USB controllers.
* Identify them by functon number
*/
if (PCI_FUNC(dev->devfn) == 3)
dev->irq = 11;
else
dev->irq = 10;
pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
default:
break;
}
}
}
static void skip_fake_bridge(struct pci_dev *dev)
{
/* Make it an error to skip the fake bridge
* in pci_setup_device() in probe.c */
dev->hdr_type = 0x7f;
}
DECLARE_PCI_FIXUP_EARLY(0x1957, 0x3fff, skip_fake_bridge);
DECLARE_PCI_FIXUP_EARLY(0x3fff, 0x1957, skip_fake_bridge);
DECLARE_PCI_FIXUP_EARLY(0xff3f, 0x5719, skip_fake_bridge);
#define PCI_DEVICE_ID_IDT_TSI310 0x01a7
/*
* Fix Tsi310 PCI-X bridge resource.
* Force the bridge to open a window from 0x0000-0x1fff in PCI I/O space.
* This allows legacy I/O(i8259, etc) on the VIA southbridge to be accessed.
*/
void mpc85xx_cds_fixup_bus(struct pci_bus *bus)
{
struct pci_dev *dev = bus->self;
struct resource *res = bus->resource[0];
if (dev != NULL &&
dev->vendor == PCI_VENDOR_ID_IBM &&
dev->device == PCI_DEVICE_ID_IDT_TSI310) {
if (res) {
res->start = 0;
res->end = 0x1fff;
res->flags = IORESOURCE_IO;
pr_info("mpc85xx_cds: PCI bridge resource fixup applied\n");
pr_info("mpc85xx_cds: %pR\n", res);
}
}
fsl_pcibios_fixup_bus(bus);
}
#ifdef CONFIG_PPC_I8259
static void mpc85xx_8259_cascade_handler(unsigned int irq,
struct irq_desc *desc)
{
unsigned int cascade_irq = i8259_irq();
if (cascade_irq != NO_IRQ)
/* handle an interrupt from the 8259 */
generic_handle_irq(cascade_irq);
/* check for any interrupts from the shared IRQ line */
handle_fasteoi_irq(irq, desc);
}
static irqreturn_t mpc85xx_8259_cascade_action(int irq, void *dev_id)
{
return IRQ_HANDLED;
}
static struct irqaction mpc85xxcds_8259_irqaction = {
.handler = mpc85xx_8259_cascade_action,
.flags = IRQF_SHARED | IRQF_NO_THREAD,
.name = "8259 cascade",
};
#endif /* PPC_I8259 */
#endif /* CONFIG_PCI */
static void __init mpc85xx_cds_pic_init(void)
{
struct mpic *mpic;
mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN,
0, 256, " OpenPIC ");
BUG_ON(mpic == NULL);
mpic_init(mpic);
}
#if defined(CONFIG_PPC_I8259) && defined(CONFIG_PCI)
static int mpc85xx_cds_8259_attach(void)
{
int ret;
struct device_node *np = NULL;
struct device_node *cascade_node = NULL;
int cascade_irq;
/* Initialize the i8259 controller */
for_each_node_by_type(np, "interrupt-controller")
if (of_device_is_compatible(np, "chrp,iic")) {
cascade_node = np;
break;
}
if (cascade_node == NULL) {
printk(KERN_DEBUG "Could not find i8259 PIC\n");
return -ENODEV;
}
cascade_irq = irq_of_parse_and_map(cascade_node, 0);
if (cascade_irq == NO_IRQ) {
printk(KERN_ERR "Failed to map cascade interrupt\n");
return -ENXIO;
}
i8259_init(cascade_node, 0);
of_node_put(cascade_node);
/*
* Hook the interrupt to make sure desc->action is never NULL.
* This is required to ensure that the interrupt does not get
* disabled when the last user of the shared IRQ line frees their
* interrupt.
*/
if ((ret = setup_irq(cascade_irq, &mpc85xxcds_8259_irqaction))) {
printk(KERN_ERR "Failed to setup cascade interrupt\n");
return ret;
}
/* Success. Connect our low-level cascade handler. */
irq_set_handler(cascade_irq, mpc85xx_8259_cascade_handler);
return 0;
}
machine_device_initcall(mpc85xx_cds, mpc85xx_cds_8259_attach);
#endif /* CONFIG_PPC_I8259 */
static void mpc85xx_cds_pci_assign_primary(void)
{
#ifdef CONFIG_PCI
struct device_node *np;
if (fsl_pci_primary)
return;
/*
* MPC85xx_CDS has ISA bridge but unfortunately there is no
* isa node in device tree. We now looking for i8259 node as
* a workaround for such a broken device tree. This routine
* is for complying to all device trees.
*/
np = of_find_node_by_name(NULL, "i8259");
while ((fsl_pci_primary = of_get_parent(np))) {
of_node_put(np);
np = fsl_pci_primary;
if ((of_device_is_compatible(np, "fsl,mpc8540-pci") ||
of_device_is_compatible(np, "fsl,mpc8548-pcie")) &&
of_device_is_available(np))
return;
}
#endif
}
/*
* Setup the architecture
*/
static void __init mpc85xx_cds_setup_arch(void)
{
struct device_node *np;
int cds_pci_slot;
if (ppc_md.progress)
ppc_md.progress("mpc85xx_cds_setup_arch()", 0);
np = of_find_compatible_node(NULL, NULL, "fsl,mpc8548cds-fpga");
if (!np) {
pr_err("Could not find FPGA node.\n");
return;
}
cadmus = of_iomap(np, 0);
of_node_put(np);
if (!cadmus) {
pr_err("Fail to map FPGA area.\n");
return;
}
if (ppc_md.progress) {
char buf[40];
cds_pci_slot = ((in_8(&cadmus->cm_csr) >> 6) & 0x3) + 1;
snprintf(buf, 40, "CDS Version = 0x%x in slot %d\n",
in_8(&cadmus->cm_ver), cds_pci_slot);
ppc_md.progress(buf, 0);
}
#ifdef CONFIG_PCI
ppc_md.pci_irq_fixup = mpc85xx_cds_pci_irq_fixup;
ppc_md.pci_exclude_device = mpc85xx_exclude_device;
#endif
mpc85xx_cds_pci_assign_primary();
fsl_pci_assign_primary();
}
static void mpc85xx_cds_show_cpuinfo(struct seq_file *m)
{
uint pvid, svid, phid1;
pvid = mfspr(SPRN_PVR);
svid = mfspr(SPRN_SVR);
seq_printf(m, "Vendor\t\t: Freescale Semiconductor\n");
seq_printf(m, "Machine\t\t: MPC85xx CDS (0x%x)\n",
in_8(&cadmus->cm_ver));
seq_printf(m, "PVR\t\t: 0x%x\n", pvid);
seq_printf(m, "SVR\t\t: 0x%x\n", svid);
/* Display cpu Pll setting */
phid1 = mfspr(SPRN_HID1);
seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f));
}
/*
* Called very early, device-tree isn't unflattened
*/
static int __init mpc85xx_cds_probe(void)
{
unsigned long root = of_get_flat_dt_root();
return of_flat_dt_is_compatible(root, "MPC85xxCDS");
}
machine_arch_initcall(mpc85xx_cds, mpc85xx_common_publish_devices);
define_machine(mpc85xx_cds) {
.name = "MPC85xx CDS",
.probe = mpc85xx_cds_probe,
.setup_arch = mpc85xx_cds_setup_arch,
.init_IRQ = mpc85xx_cds_pic_init,
.show_cpuinfo = mpc85xx_cds_show_cpuinfo,
.get_irq = mpic_get_irq,
#ifdef CONFIG_PCI
.restart = mpc85xx_cds_restart,
.pcibios_fixup_bus = mpc85xx_cds_fixup_bus,
#else
.restart = fsl_rstcr_restart,
#endif
.calibrate_decr = generic_calibrate_decr,
.progress = udbg_progress,
};
| {
"pile_set_name": "Github"
} |
/*
* Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* 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.
*/
#include <linux/cpumask.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/nd.h>
#include "nd.h"
static int nd_region_probe(struct device *dev)
{
int err, rc;
static unsigned long once;
struct nd_region_namespaces *num_ns;
struct nd_region *nd_region = to_nd_region(dev);
if (nd_region->num_lanes > num_online_cpus()
&& nd_region->num_lanes < num_possible_cpus()
&& !test_and_set_bit(0, &once)) {
dev_info(dev, "online cpus (%d) < concurrent i/o lanes (%d) < possible cpus (%d)\n",
num_online_cpus(), nd_region->num_lanes,
num_possible_cpus());
dev_info(dev, "setting nr_cpus=%d may yield better libnvdimm device performance\n",
nd_region->num_lanes);
}
rc = nd_blk_region_init(nd_region);
if (rc)
return rc;
rc = nd_region_register_namespaces(nd_region, &err);
num_ns = devm_kzalloc(dev, sizeof(*num_ns), GFP_KERNEL);
if (!num_ns)
return -ENOMEM;
if (rc < 0)
return rc;
num_ns->active = rc;
num_ns->count = rc + err;
dev_set_drvdata(dev, num_ns);
if (rc && err && rc == err)
return -ENODEV;
nd_region->btt_seed = nd_btt_create(nd_region);
nd_region->pfn_seed = nd_pfn_create(nd_region);
if (err == 0)
return 0;
/*
* Given multiple namespaces per region, we do not want to
* disable all the successfully registered peer namespaces upon
* a single registration failure. If userspace is missing a
* namespace that it expects it can disable/re-enable the region
* to retry discovery after correcting the failure.
* <regionX>/namespaces returns the current
* "<async-registered>/<total>" namespace count.
*/
dev_err(dev, "failed to register %d namespace%s, continuing...\n",
err, err == 1 ? "" : "s");
return 0;
}
static int child_unregister(struct device *dev, void *data)
{
nd_device_unregister(dev, ND_SYNC);
return 0;
}
static int nd_region_remove(struct device *dev)
{
struct nd_region *nd_region = to_nd_region(dev);
/* flush attribute readers and disable */
nvdimm_bus_lock(dev);
nd_region->ns_seed = NULL;
nd_region->btt_seed = NULL;
nd_region->pfn_seed = NULL;
dev_set_drvdata(dev, NULL);
nvdimm_bus_unlock(dev);
device_for_each_child(dev, NULL, child_unregister);
return 0;
}
static struct nd_device_driver nd_region_driver = {
.probe = nd_region_probe,
.remove = nd_region_remove,
.drv = {
.name = "nd_region",
},
.type = ND_DRIVER_REGION_BLK | ND_DRIVER_REGION_PMEM,
};
int __init nd_region_init(void)
{
return nd_driver_register(&nd_region_driver);
}
void nd_region_exit(void)
{
driver_unregister(&nd_region_driver.drv);
}
MODULE_ALIAS_ND_DEVICE(ND_DEVICE_REGION_PMEM);
MODULE_ALIAS_ND_DEVICE(ND_DEVICE_REGION_BLK);
| {
"pile_set_name": "Github"
} |
@marketplace-eng
| {
"pile_set_name": "Github"
} |
Bundle-Vendor = JKISS
Bundle-Name = DBeaver\u306E\u4ECA\u65E5\u306E\u30D2\u30F3\u30C8
command.org.jkiss.dbeaver.ext.ui.tipoftheday.showPopup.name = "\u4ECA\u65E5\u306E\u30D2\u30F3\u30C8"\u3092\u8868\u793A
command.org.jkiss.dbeaver.ext.ui.tipoftheday.showPopup.description = "\u4ECA\u65E5\u306E\u30D2\u30F3\u30C8"\u3092\u542B\u3080\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7\u30C0\u30A4\u30A2\u30ED\u30B0\u3092\u8868\u793A\u3059\u308B
| {
"pile_set_name": "Github"
} |
/*
LzmaDecode.h
LZMA Decoder interface
LZMA SDK 4.40 Copyright (c) 1999-2006 Igor Pavlov (2006-05-01)
http://www.7-zip.org/
LZMA SDK is licensed under two licenses:
1) GNU Lesser General Public License (GNU LGPL)
2) Common Public License (CPL)
It means that you can select one of these two licenses and
follow rules of that license.
SPECIAL EXCEPTION:
Igor Pavlov, as the author of this code, expressly permits you to
statically or dynamically link your code (or bind by name) to the
interfaces of this file without subjecting your linked code to the
terms of the CPL or GNU LGPL. Any modifications or additions
to this file, however, are subject to the LGPL or CPL terms.
*/
#ifndef __LZMADECODE_H
#define __LZMADECODE_H
#include "LzmaTypes.h"
/* #define _LZMA_IN_CB */
/* Use callback for input data */
/* #define _LZMA_OUT_READ */
/* Use read function for output data */
/* #define _LZMA_PROB32 */
/* It can increase speed on some 32-bit CPUs,
but memory usage will be doubled in that case */
/* #define _LZMA_LOC_OPT */
/* Enable local speed optimizations inside code */
#ifdef _LZMA_PROB32
#define CProb UInt32
#else
#define CProb UInt16
#endif
#define LZMA_RESULT_OK 0
#define LZMA_RESULT_DATA_ERROR 1
#ifdef _LZMA_IN_CB
typedef struct _ILzmaInCallback
{
int (*Read)(void *object, const unsigned char **buffer, SizeT *bufferSize);
} ILzmaInCallback;
#endif
#define LZMA_BASE_SIZE 1846
#define LZMA_LIT_SIZE 768
#define LZMA_PROPERTIES_SIZE 5
typedef struct _CLzmaProperties
{
int lc;
int lp;
int pb;
#ifdef _LZMA_OUT_READ
UInt32 DictionarySize;
#endif
}CLzmaProperties;
int LzmaDecodeProperties(CLzmaProperties *propsRes, const unsigned char *propsData, int size);
#define LzmaGetNumProbs(Properties) (LZMA_BASE_SIZE + (LZMA_LIT_SIZE << ((Properties)->lc + (Properties)->lp)))
#define kLzmaNeedInitId (-2)
typedef struct _CLzmaDecoderState
{
CLzmaProperties Properties;
CProb *Probs;
#ifdef _LZMA_IN_CB
const unsigned char *Buffer;
const unsigned char *BufferLim;
#endif
#ifdef _LZMA_OUT_READ
unsigned char *Dictionary;
UInt32 Range;
UInt32 Code;
UInt32 DictionaryPos;
UInt32 GlobalPos;
UInt32 DistanceLimit;
UInt32 Reps[4];
int State;
int RemainLen;
unsigned char TempDictionary[4];
#endif
} CLzmaDecoderState;
#ifdef _LZMA_OUT_READ
#define LzmaDecoderInit(vs) { (vs)->RemainLen = kLzmaNeedInitId; }
#endif
int LzmaDecode(CLzmaDecoderState *vs,
#ifdef _LZMA_IN_CB
ILzmaInCallback *inCallback,
#else
const unsigned char *inStream, SizeT inSize, SizeT *inSizeProcessed,
#endif
unsigned char *outStream, SizeT outSize, SizeT *outSizeProcessed);
#endif
| {
"pile_set_name": "Github"
} |
{
"rgba": [
0.88,
0.55,
0.51,
0.70
]
} | {
"pile_set_name": "Github"
} |
'use strict';
const EventEmitter = require('events');
const crypto = require('crypto');
const http = require('http');
const url = require('url');
const PerMessageDeflate = require('./permessage-deflate');
const extension = require('./extension');
const constants = require('./constants');
const WebSocket = require('./websocket');
/**
* Class representing a WebSocket server.
*
* @extends EventEmitter
*/
class WebSocketServer extends EventEmitter {
/**
* Create a `WebSocketServer` instance.
*
* @param {Object} options Configuration options
* @param {String} options.host The hostname where to bind the server
* @param {Number} options.port The port where to bind the server
* @param {http.Server} options.server A pre-created HTTP/S server to use
* @param {Function} options.verifyClient An hook to reject connections
* @param {Function} options.handleProtocols An hook to handle protocols
* @param {String} options.path Accept only connections matching this path
* @param {Boolean} options.noServer Enable no server mode
* @param {Boolean} options.clientTracking Specifies whether or not to track clients
* @param {(Boolean|Object)} options.perMessageDeflate Enable/disable permessage-deflate
* @param {Number} options.maxPayload The maximum allowed message size
* @param {Function} callback A listener for the `listening` event
*/
constructor (options, callback) {
super();
options = Object.assign({
maxPayload: 100 * 1024 * 1024,
perMessageDeflate: false,
handleProtocols: null,
clientTracking: true,
verifyClient: null,
noServer: false,
backlog: null, // use default (511 as implemented in net.js)
server: null,
host: null,
path: null,
port: null
}, options);
if (options.port == null && !options.server && !options.noServer) {
throw new TypeError(
'One of the "port", "server", or "noServer" options must be specified'
);
}
if (options.port != null) {
this._server = http.createServer((req, res) => {
const body = http.STATUS_CODES[426];
res.writeHead(426, {
'Content-Length': body.length,
'Content-Type': 'text/plain'
});
res.end(body);
});
this._server.listen(options.port, options.host, options.backlog, callback);
} else if (options.server) {
this._server = options.server;
}
if (this._server) {
this._removeListeners = addListeners(this._server, {
listening: this.emit.bind(this, 'listening'),
error: this.emit.bind(this, 'error'),
upgrade: (req, socket, head) => {
this.handleUpgrade(req, socket, head, (ws) => {
this.emit('connection', ws, req);
});
}
});
}
if (options.perMessageDeflate === true) options.perMessageDeflate = {};
if (options.clientTracking) this.clients = new Set();
this.options = options;
}
/**
* Returns the bound address, the address family name, and port of the server
* as reported by the operating system if listening on an IP socket.
* If the server is listening on a pipe or UNIX domain socket, the name is
* returned as a string.
*
* @return {(Object|String|null)} The address of the server
* @public
*/
address () {
if (this.options.noServer) {
throw new Error('The server is operating in "noServer" mode');
}
if (!this._server) return null;
return this._server.address();
}
/**
* Close the server.
*
* @param {Function} cb Callback
* @public
*/
close (cb) {
//
// Terminate all associated clients.
//
if (this.clients) {
for (const client of this.clients) client.terminate();
}
const server = this._server;
if (server) {
this._removeListeners();
this._removeListeners = this._server = null;
//
// Close the http server if it was internally created.
//
if (this.options.port != null) return server.close(cb);
}
if (cb) cb();
}
/**
* See if a given request should be handled by this server instance.
*
* @param {http.IncomingMessage} req Request object to inspect
* @return {Boolean} `true` if the request is valid, else `false`
* @public
*/
shouldHandle (req) {
if (this.options.path && url.parse(req.url).pathname !== this.options.path) {
return false;
}
return true;
}
/**
* Handle a HTTP Upgrade request.
*
* @param {http.IncomingMessage} req The request object
* @param {net.Socket} socket The network socket between the server and client
* @param {Buffer} head The first packet of the upgraded stream
* @param {Function} cb Callback
* @public
*/
handleUpgrade (req, socket, head, cb) {
socket.on('error', socketOnError);
const version = +req.headers['sec-websocket-version'];
const extensions = {};
if (
req.method !== 'GET' || req.headers.upgrade.toLowerCase() !== 'websocket' ||
!req.headers['sec-websocket-key'] || (version !== 8 && version !== 13) ||
!this.shouldHandle(req)
) {
return abortHandshake(socket, 400);
}
if (this.options.perMessageDeflate) {
const perMessageDeflate = new PerMessageDeflate(
this.options.perMessageDeflate,
true,
this.options.maxPayload
);
try {
const offers = extension.parse(
req.headers['sec-websocket-extensions']
);
if (offers[PerMessageDeflate.extensionName]) {
perMessageDeflate.accept(offers[PerMessageDeflate.extensionName]);
extensions[PerMessageDeflate.extensionName] = perMessageDeflate;
}
} catch (err) {
return abortHandshake(socket, 400);
}
}
//
// Optionally call external client verification handler.
//
if (this.options.verifyClient) {
const info = {
origin: req.headers[`${version === 8 ? 'sec-websocket-origin' : 'origin'}`],
secure: !!(req.connection.authorized || req.connection.encrypted),
req
};
if (this.options.verifyClient.length === 2) {
this.options.verifyClient(info, (verified, code, message, headers) => {
if (!verified) {
return abortHandshake(socket, code || 401, message, headers);
}
this.completeUpgrade(extensions, req, socket, head, cb);
});
return;
}
if (!this.options.verifyClient(info)) return abortHandshake(socket, 401);
}
this.completeUpgrade(extensions, req, socket, head, cb);
}
/**
* Upgrade the connection to WebSocket.
*
* @param {Object} extensions The accepted extensions
* @param {http.IncomingMessage} req The request object
* @param {net.Socket} socket The network socket between the server and client
* @param {Buffer} head The first packet of the upgraded stream
* @param {Function} cb Callback
* @private
*/
completeUpgrade (extensions, req, socket, head, cb) {
//
// Destroy the socket if the client has already sent a FIN packet.
//
if (!socket.readable || !socket.writable) return socket.destroy();
const key = crypto.createHash('sha1')
.update(req.headers['sec-websocket-key'] + constants.GUID, 'binary')
.digest('base64');
const headers = [
'HTTP/1.1 101 Switching Protocols',
'Upgrade: websocket',
'Connection: Upgrade',
`Sec-WebSocket-Accept: ${key}`
];
const ws = new WebSocket(null);
var protocol = req.headers['sec-websocket-protocol'];
if (protocol) {
protocol = protocol.trim().split(/ *, */);
//
// Optionally call external protocol selection handler.
//
if (this.options.handleProtocols) {
protocol = this.options.handleProtocols(protocol, req);
} else {
protocol = protocol[0];
}
if (protocol) {
headers.push(`Sec-WebSocket-Protocol: ${protocol}`);
ws.protocol = protocol;
}
}
if (extensions[PerMessageDeflate.extensionName]) {
const params = extensions[PerMessageDeflate.extensionName].params;
const value = extension.format({
[PerMessageDeflate.extensionName]: [params]
});
headers.push(`Sec-WebSocket-Extensions: ${value}`);
ws._extensions = extensions;
}
//
// Allow external modification/inspection of handshake headers.
//
this.emit('headers', headers, req);
socket.write(headers.concat('\r\n').join('\r\n'));
socket.removeListener('error', socketOnError);
ws.setSocket(socket, head, this.options.maxPayload);
if (this.clients) {
this.clients.add(ws);
ws.on('close', () => this.clients.delete(ws));
}
cb(ws);
}
}
module.exports = WebSocketServer;
/**
* Add event listeners on an `EventEmitter` using a map of <event, listener>
* pairs.
*
* @param {EventEmitter} server The event emitter
* @param {Object.<String, Function>} map The listeners to add
* @return {Function} A function that will remove the added listeners when called
* @private
*/
function addListeners (server, map) {
for (const event of Object.keys(map)) server.on(event, map[event]);
return function removeListeners () {
for (const event of Object.keys(map)) {
server.removeListener(event, map[event]);
}
};
}
/**
* Handle premature socket errors.
*
* @private
*/
function socketOnError () {
this.destroy();
}
/**
* Close the connection when preconditions are not fulfilled.
*
* @param {net.Socket} socket The socket of the upgrade request
* @param {Number} code The HTTP response status code
* @param {String} [message] The HTTP response body
* @param {Object} [headers] Additional HTTP response headers
* @private
*/
function abortHandshake (socket, code, message, headers) {
if (socket.writable) {
message = message || http.STATUS_CODES[code];
headers = Object.assign({
'Connection': 'close',
'Content-type': 'text/html',
'Content-Length': Buffer.byteLength(message)
}, headers);
socket.write(
`HTTP/1.1 ${code} ${http.STATUS_CODES[code]}\r\n` +
Object.keys(headers).map(h => `${h}: ${headers[h]}`).join('\r\n') +
'\r\n\r\n' +
message
);
}
socket.removeListener('error', socketOnError);
socket.destroy();
}
| {
"pile_set_name": "Github"
} |
# Copyright (C) 2003 - 2009 NetXen, Inc.
# Copyright (C) 2009 - QLogic Corporation.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# 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/>.
#
# The full GNU General Public License is included in this distribution
# in the file called "COPYING".
#
#
obj-$(CONFIG_NETXEN_NIC) := netxen_nic.o
netxen_nic-y := netxen_nic_hw.o netxen_nic_main.o netxen_nic_init.o \
netxen_nic_ethtool.o netxen_nic_ctx.o
| {
"pile_set_name": "Github"
} |
package com.alibaba.json.bvt.parser.taobao;
import org.junit.Assert;
import com.alibaba.fastjson.JSON;
import junit.framework.TestCase;
public class LongAsStringTest extends TestCase {
public void test_0 () throws Exception {
VO vo = JSON.parseObject("{\"value\":\"1001\"}", VO.class);
Assert.assertEquals(1001L, vo.value);
}
public static class VO {
public long value;
}
}
| {
"pile_set_name": "Github"
} |
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/email_to"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/title_to"
android:inputType="textEmailAddress" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/email_cc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/title_cc"
android:inputType="textEmailAddress" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/email_bcc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/title_bcc"
android:inputType="textEmailAddress" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/email_subject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/title_subject"
android:inputType="textEmailSubject" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/email_body"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/title_body"
android:inputType="textMultiLine"
tools:ignore="TextFields" />
</com.google.android.material.textfield.TextInputLayout>
<Button
android:id="@+id/button_send_email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_label_send_email" />
</LinearLayout>
</ScrollView>
| {
"pile_set_name": "Github"
} |
/*******************************************************************************
* Copyright (c) 2017, 2020 Pivotal, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Pivotal, Inc. - initial API and implementation
*******************************************************************************/
package org.springframework.ide.vscode.commons.yaml.reconcile;
import java.util.Collection;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import org.eclipse.lsp4j.DocumentSymbolParams;
import org.eclipse.lsp4j.Location;
import org.eclipse.lsp4j.SymbolInformation;
import org.eclipse.lsp4j.SymbolKind;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ide.vscode.commons.languageserver.util.DocumentSymbolHandler;
import org.springframework.ide.vscode.commons.languageserver.util.SimpleTextDocumentService;
import org.springframework.ide.vscode.commons.util.Assert;
import org.springframework.ide.vscode.commons.util.BadLocationException;
import org.springframework.ide.vscode.commons.util.text.DocumentRegion;
import org.springframework.ide.vscode.commons.util.text.TextDocument;
import org.springframework.ide.vscode.commons.yaml.ast.NodeUtil;
import org.springframework.ide.vscode.commons.yaml.schema.YType;
import org.yaml.snakeyaml.nodes.Node;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableList.Builder;
import com.google.common.collect.ImmutableSet;
/**
* Finds symbols in a yaml document based on type information cached
* during reconcile and stored in the {@link ASTTypeCache}. Because
* it relies on information computed during reconcile, this handler only
* works if it is invoked after a reconcile.
*
* @author Kris De Volder
*/
public class TypeBasedYamlSymbolHandler implements DocumentSymbolHandler {
final static Logger logger = LoggerFactory.getLogger(TypeBasedYamlSymbolHandler.class);
private ASTTypeCache astTypeCache;
private Set<YType> definitionTypes;
private SimpleTextDocumentService documents;
public TypeBasedYamlSymbolHandler(SimpleTextDocumentService documents, ASTTypeCache astTypeCache, Collection<YType> definitionTypes) {
Assert.isTrue(!definitionTypes.isEmpty()); // If there's no interesting types then you are better of using DocumentSymbolHandler.NO_SYMBOLS
this.documents = documents;
this.astTypeCache = astTypeCache;
this.definitionTypes = ImmutableSet.copyOf(definitionTypes);
for (YType yType : definitionTypes) {
astTypeCache.addInterestingType(yType);
}
}
@Override
public List<? extends SymbolInformation> handle(DocumentSymbolParams params) {
Builder<SymbolInformation> builder = ImmutableList.builder();
TextDocument doc = documents.getDocument(params.getTextDocument().getUri());
if (doc != null) {
for (Entry<Node, YType> entry : astTypeCache.getNodeTypes(params.getTextDocument().getUri()).getTypes().entrySet()) {
if (definitionTypes.contains(entry.getValue())) {
try {
builder.add(createSymbol(doc, entry.getKey(), entry.getValue()));
} catch (Exception e) {
logger.error("", e);
}
}
}
}
return builder.build();
}
protected SymbolInformation createSymbol(TextDocument doc, Node node, YType type) throws BadLocationException {
DocumentRegion region = NodeUtil.region(doc, node);
Location location = new Location(doc.getUri(), doc.toRange(region.getStart(), region.getLength()));
SymbolInformation symbol = new SymbolInformation();
symbol.setName(region.toString());
symbol.setKind(symbolKind(type));
symbol.setLocation(location);
symbol.setContainerName(containerName(type));
return symbol;
}
protected String containerName(YType type) {
return type.toString().replaceAll("(\\s)*[Nn]ame", "");
}
protected SymbolKind symbolKind(YType type) {
return SymbolKind.String; //TODO: try to return something different for different types of symbols
}
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="JavaScriptCore"
ProjectGUID="{011D10F1-B656-4A1B-A0C3-3842F02122C5}"
RootNamespace="JavaScriptCore"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
ConfigurationType="2"
InheritedPropertySheets=".\JavaScriptCoreDebug.vsprops"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
ConfigurationType="2"
InheritedPropertySheets=".\JavaScriptCoreRelease.vsprops"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release_PGO|Win32"
ConfigurationType="2"
InheritedPropertySheets=".\JavaScriptCoreReleasePGO.vsprops"
CharacterSet="1"
WholeProgramOptimization="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug_Cairo_CFLite|Win32"
ConfigurationType="2"
InheritedPropertySheets=".\JavaScriptCoreDebugCairoCFLite.vsprops"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release_Cairo_CFLite|Win32"
ConfigurationType="2"
InheritedPropertySheets=".\JavaScriptCoreReleaseCairoCFLite.vsprops"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug_All|Win32"
ConfigurationType="2"
InheritedPropertySheets=".\JavaScriptCoreDebugAll.vsprops"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Production|Win32"
ConfigurationType="2"
InheritedPropertySheets=".\JavaScriptCoreProduction.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release_PGO_Optimize|Win32"
ConfigurationType="2"
InheritedPropertySheets=".\JavaScriptCoreReleasePGOOptimize.vsprops"
CharacterSet="1"
WholeProgramOptimization="4"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="runtime"
>
<File
RelativePath="..\..\runtime\ArgList.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ArgList.h"
>
</File>
<File
RelativePath="..\..\runtime\Arguments.cpp"
>
</File>
<File
RelativePath="..\..\runtime\Arguments.h"
>
</File>
<File
RelativePath="..\..\runtime\ArrayConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ArrayConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\ArrayPrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ArrayPrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\BatchedTransitionOptimizer.h"
>
</File>
<File
RelativePath="..\..\runtime\BooleanConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\BooleanConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\BooleanObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\BooleanObject.h"
>
</File>
<File
RelativePath="..\..\runtime\BooleanPrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\BooleanPrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\CallData.cpp"
>
</File>
<File
RelativePath="..\..\runtime\CallData.h"
>
</File>
<File
RelativePath="..\..\runtime\ClassInfo.h"
>
</File>
<File
RelativePath="..\..\runtime\CommonIdentifiers.cpp"
>
</File>
<File
RelativePath="..\..\runtime\CommonIdentifiers.h"
>
</File>
<File
RelativePath="..\..\runtime\Completion.cpp"
>
</File>
<File
RelativePath="..\..\runtime\Completion.h"
>
</File>
<File
RelativePath="..\..\runtime\ConstructData.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ConstructData.h"
>
</File>
<File
RelativePath="..\..\runtime\DateConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\DateConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\DateConversion.cpp"
>
</File>
<File
RelativePath="..\..\runtime\DateConversion.h"
>
</File>
<File
RelativePath="..\..\runtime\DateInstance.cpp"
>
</File>
<File
RelativePath="..\..\runtime\DateInstance.h"
>
</File>
<File
RelativePath="..\..\runtime\DateInstanceCache.h"
>
</File>
<File
RelativePath="..\..\wtf\DateMath.cpp"
>
</File>
<File
RelativePath="..\..\wtf\DateMath.h"
>
</File>
<File
RelativePath="..\..\runtime\DatePrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\DatePrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\Error.cpp"
>
</File>
<File
RelativePath="..\..\runtime\Error.h"
>
</File>
<File
RelativePath="..\..\runtime\ErrorConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ErrorConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\ErrorInstance.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ErrorInstance.h"
>
</File>
<File
RelativePath="..\..\runtime\ErrorPrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ErrorPrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\ExceptionHelpers.cpp"
>
</File>
<File
RelativePath="..\..\interpreter\ExceptionHelpers.h"
>
</File>
<File
RelativePath="..\..\runtime\Executable.cpp"
>
</File>
<File
RelativePath="..\..\runtime\Executable.h"
>
</File>
<File
RelativePath="..\..\runtime\FunctionConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\FunctionConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\FunctionPrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\FunctionPrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\GCActivityCallback.cpp"
>
</File>
<File
RelativePath="..\..\runtime\GCActivityCallback.h"
>
</File>
<File
RelativePath="..\..\runtime\GetterSetter.cpp"
>
</File>
<File
RelativePath="..\..\runtime\GetterSetter.h"
>
</File>
<File
RelativePath="..\..\runtime\Identifier.cpp"
>
</File>
<File
RelativePath="..\..\runtime\Identifier.h"
>
</File>
<File
RelativePath="..\..\runtime\InitializeThreading.cpp"
>
</File>
<File
RelativePath="..\..\runtime\InitializeThreading.h"
>
</File>
<File
RelativePath="..\..\runtime\InternalFunction.cpp"
>
</File>
<File
RelativePath="..\..\runtime\InternalFunction.h"
>
</File>
<File
RelativePath="..\..\runtime\JSActivation.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSActivation.h"
>
</File>
<File
RelativePath="..\..\runtime\JSArray.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSArray.h"
>
</File>
<File
RelativePath="..\..\runtime\JSByteArray.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSByteArray.h"
>
</File>
<File
RelativePath="..\..\runtime\JSCell.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSCell.h"
>
</File>
<File
RelativePath="..\..\runtime\JSFunction.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSFunction.h"
>
</File>
<File
RelativePath="..\..\runtime\JSGlobalData.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSGlobalData.h"
>
</File>
<File
RelativePath="..\..\runtime\JSGlobalObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSGlobalObject.h"
>
</File>
<File
RelativePath="..\..\runtime\JSGlobalObjectFunctions.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSGlobalObjectFunctions.h"
>
</File>
<File
RelativePath="..\..\runtime\JSLock.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSLock.h"
>
</File>
<File
RelativePath="..\..\runtime\JSNotAnObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSNotAnObject.h"
>
</File>
<File
RelativePath="..\..\runtime\JSObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSObject.h"
>
</File>
<File
RelativePath="..\..\runtime\JSObjectWithGlobalObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSObjectWithGlobalObject.h"
>
</File>
<File
RelativePath="..\..\runtime\JSONObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSONObject.h"
>
</File>
<File
RelativePath="..\..\runtime\JSPropertyNameIterator.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSPropertyNameIterator.h"
>
</File>
<File
RelativePath="..\..\runtime\JSStaticScopeObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSStaticScopeObject.h"
>
</File>
<File
RelativePath="..\..\runtime\JSString.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSString.h"
>
</File>
<File
RelativePath="..\..\runtime\JSType.h"
>
</File>
<File
RelativePath="..\..\runtime\JSTypeInfo.h"
>
</File>
<File
RelativePath="..\..\runtime\JSValue.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSValue.h"
>
</File>
<File
RelativePath="..\..\runtime\JSValueInlineMethods.h"
>
</File>
<File
RelativePath="..\..\runtime\JSVariableObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSVariableObject.h"
>
</File>
<File
RelativePath="..\..\runtime\JSWrapperObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSWrapperObject.h"
>
</File>
<File
RelativePath="..\..\runtime\JSZombie.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSZombie.h"
>
</File>
<File
RelativePath="..\..\runtime\LiteralParser.cpp"
>
</File>
<File
RelativePath="..\..\runtime\LiteralParser.h"
>
</File>
<File
RelativePath="..\..\runtime\Lookup.cpp"
>
</File>
<File
RelativePath="..\..\runtime\Lookup.h"
>
</File>
<File
RelativePath="..\..\runtime\MathObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\MathObject.h"
>
</File>
<File
RelativePath="..\..\runtime\NativeErrorConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\NativeErrorConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\NativeErrorPrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\NativeErrorPrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\NumberConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\NumberConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\NumberObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\NumberObject.h"
>
</File>
<File
RelativePath="..\..\runtime\NumberPrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\NumberPrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\NumericStrings.h"
>
</File>
<File
RelativePath="..\..\runtime\ObjectConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ObjectConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\ObjectPrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ObjectPrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\Operations.cpp"
>
</File>
<File
RelativePath="..\..\runtime\Operations.h"
>
</File>
<File
RelativePath="..\..\runtime\PropertyDescriptor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\PropertyDescriptor.h"
>
</File>
<File
RelativePath="..\..\runtime\PropertyMapHashTable.h"
>
</File>
<File
RelativePath="..\..\runtime\PropertyNameArray.cpp"
>
</File>
<File
RelativePath="..\..\runtime\PropertyNameArray.h"
>
</File>
<File
RelativePath="..\..\runtime\PropertySlot.cpp"
>
</File>
<File
RelativePath="..\..\runtime\PropertySlot.h"
>
</File>
<File
RelativePath="..\..\runtime\Protect.h"
>
</File>
<File
RelativePath="..\..\runtime\RegExp.cpp"
>
</File>
<File
RelativePath="..\..\runtime\RegExp.h"
>
</File>
<File
RelativePath="..\..\runtime\RegExpCache.cpp"
>
</File>
<File
RelativePath="..\..\runtime\RegExpCache.h"
>
</File>
<File
RelativePath="..\..\runtime\RegExpConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\RegExpConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\RegExpKey.h"
>
</File>
<File
RelativePath="..\..\runtime\RegExpMatchesArray.h"
>
</File>
<File
RelativePath="..\..\runtime\RegExpObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\RegExpObject.h"
>
</File>
<File
RelativePath="..\..\runtime\RegExpPrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\RegExpPrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\RopeImpl.cpp"
>
</File>
<File
RelativePath="..\..\runtime\RopeImpl.h"
>
</File>
<File
RelativePath="..\..\runtime\ScopeChain.cpp"
>
</File>
<File
RelativePath="..\..\runtime\ScopeChain.h"
>
</File>
<File
RelativePath="..\..\runtime\ScopeChainMark.h"
>
</File>
<File
RelativePath="..\..\runtime\SmallStrings.cpp"
>
</File>
<File
RelativePath="..\..\runtime\SmallStrings.h"
>
</File>
<File
RelativePath="..\..\runtime\StrictEvalActivation.cpp"
>
</File>
<File
RelativePath="..\..\runtime\StrictEvalActivation.h"
>
</File>
<File
RelativePath="..\..\runtime\StringConstructor.cpp"
>
</File>
<File
RelativePath="..\..\runtime\StringConstructor.h"
>
</File>
<File
RelativePath="..\..\runtime\StringObject.cpp"
>
</File>
<File
RelativePath="..\..\runtime\StringObject.h"
>
</File>
<File
RelativePath="..\..\runtime\StringObjectThatMasqueradesAsUndefined.h"
>
</File>
<File
RelativePath="..\..\runtime\StringPrototype.cpp"
>
</File>
<File
RelativePath="..\..\runtime\StringPrototype.h"
>
</File>
<File
RelativePath="..\..\runtime\StringRecursionChecker.cpp"
>
</File>
<File
RelativePath="..\..\runtime\StringRecursionChecker.h"
>
</File>
<File
RelativePath="..\..\runtime\Structure.cpp"
>
</File>
<File
RelativePath="..\..\runtime\Structure.h"
>
</File>
<File
RelativePath="..\..\runtime\StructureChain.cpp"
>
</File>
<File
RelativePath="..\..\runtime\StructureChain.h"
>
</File>
<File
RelativePath="..\..\runtime\StructureTransitionTable.h"
>
</File>
<File
RelativePath="..\..\runtime\SymbolTable.h"
>
</File>
<File
RelativePath="..\..\runtime\Terminator.h"
>
</File>
<File
RelativePath="..\..\runtime\TimeoutChecker.cpp"
>
</File>
<File
RelativePath="..\..\runtime\TimeoutChecker.h"
>
</File>
<File
RelativePath="..\..\runtime\UString.cpp"
>
</File>
<File
RelativePath="..\..\runtime\UString.h"
>
</File>
<File
RelativePath="..\..\runtime\UStringBuilder.h"
>
</File>
<File
RelativePath="..\..\runtime\UStringConcatenate.h"
>
</File>
<File
RelativePath="..\..\runtime\UStringImpl.h"
>
</File>
<File
RelativePath="..\..\runtime\WeakGCMap.h"
>
</File>
<File
RelativePath="..\..\runtime\WeakRandom.h"
>
</File>
</Filter>
<Filter
Name="API"
>
<File
RelativePath="..\..\API\APICast.h"
>
</File>
<File
RelativePath="..\..\API\JavaScript.h"
>
</File>
<File
RelativePath="..\..\API\JavaScriptCore.h"
>
</File>
<File
RelativePath="..\..\runtime\JSAPIValueWrapper.cpp"
>
</File>
<File
RelativePath="..\..\runtime\JSAPIValueWrapper.h"
>
</File>
<File
RelativePath="..\..\API\JSBase.cpp"
>
</File>
<File
RelativePath="..\..\API\JSBase.h"
>
</File>
<File
RelativePath="..\..\API\JSBasePrivate.h"
>
</File>
<File
RelativePath="..\..\API\JSCallbackConstructor.cpp"
>
</File>
<File
RelativePath="..\..\API\JSCallbackConstructor.h"
>
</File>
<File
RelativePath="..\..\API\JSCallbackFunction.cpp"
>
</File>
<File
RelativePath="..\..\API\JSCallbackFunction.h"
>
</File>
<File
RelativePath="..\..\API\JSCallbackObject.cpp"
>
</File>
<File
RelativePath="..\..\API\JSCallbackObject.h"
>
</File>
<File
RelativePath="..\..\API\JSCallbackObjectFunctions.h"
>
</File>
<File
RelativePath="..\..\API\JSClassRef.cpp"
>
</File>
<File
RelativePath="..\..\API\JSClassRef.h"
>
</File>
<File
RelativePath="..\..\API\JSContextRef.cpp"
>
</File>
<File
RelativePath="..\..\API\JSContextRef.h"
>
</File>
<File
RelativePath="..\..\API\JSContextRefPrivate.h"
>
</File>
<File
RelativePath="..\..\API\JSObjectRef.cpp"
>
</File>
<File
RelativePath="..\..\API\JSObjectRef.h"
>
</File>
<File
RelativePath="..\..\API\JSRetainPtr.h"
>
</File>
<File
RelativePath="..\..\API\JSStringRef.cpp"
>
</File>
<File
RelativePath="..\..\API\JSStringRef.h"
>
</File>
<File
RelativePath="..\..\API\JSStringRefBSTR.cpp"
>
</File>
<File
RelativePath="..\..\API\JSStringRefBSTR.h"
>
</File>
<File
RelativePath="..\..\API\JSStringRefCF.cpp"
>
</File>
<File
RelativePath="..\..\API\JSStringRefCF.h"
>
</File>
<File
RelativePath="..\..\API\JSValueRef.cpp"
>
</File>
<File
RelativePath="..\..\API\JSValueRef.h"
>
</File>
<File
RelativePath="..\..\API\JSWeakObjectMapRefInternal.h"
>
</File>
<File
RelativePath="..\..\API\JSWeakObjectMapRefPrivate.cpp"
>
</File>
<File
RelativePath="..\..\API\JSWeakObjectMapRefPrivate.h"
>
</File>
<File
RelativePath="..\..\API\OpaqueJSString.cpp"
>
</File>
<File
RelativePath="..\..\API\OpaqueJSString.h"
>
</File>
<File
RelativePath="..\..\API\WebKitAvailability.h"
>
</File>
</Filter>
<Filter
Name="profiler"
>
<File
RelativePath="..\..\profiler\CallIdentifier.h"
>
</File>
<File
RelativePath="..\..\profiler\Profile.cpp"
>
</File>
<File
RelativePath="..\..\profiler\Profile.h"
>
</File>
<File
RelativePath="..\..\profiler\ProfileGenerator.cpp"
>
</File>
<File
RelativePath="..\..\profiler\ProfileGenerator.h"
>
</File>
<File
RelativePath="..\..\profiler\ProfileNode.cpp"
>
</File>
<File
RelativePath="..\..\profiler\ProfileNode.h"
>
</File>
<File
RelativePath="..\..\profiler\Profiler.cpp"
>
</File>
<File
RelativePath="..\..\profiler\Profiler.h"
>
</File>
</Filter>
<Filter
Name="bytecode"
>
<File
RelativePath="..\..\bytecode\CodeBlock.cpp"
>
</File>
<File
RelativePath="..\..\bytecode\CodeBlock.h"
>
</File>
<File
RelativePath="..\..\bytecode\EvalCodeCache.h"
>
</File>
<File
RelativePath="..\..\bytecode\Instruction.h"
>
</File>
<File
RelativePath="..\..\bytecode\JumpTable.cpp"
>
</File>
<File
RelativePath="..\..\bytecode\JumpTable.h"
>
</File>
<File
RelativePath="..\..\bytecode\Opcode.cpp"
>
</File>
<File
RelativePath="..\..\bytecode\Opcode.h"
>
</File>
<File
RelativePath="..\..\bytecode\SamplingTool.cpp"
>
</File>
<File
RelativePath="..\..\bytecode\SamplingTool.h"
>
</File>
<File
RelativePath="..\..\bytecode\StructureStubInfo.cpp"
>
</File>
<File
RelativePath="..\..\bytecode\StructureStubInfo.h"
>
</File>
</Filter>
<Filter
Name="debugger"
>
<File
RelativePath="..\..\debugger\Debugger.cpp"
>
</File>
<File
RelativePath="..\..\debugger\Debugger.h"
>
</File>
<File
RelativePath="..\..\debugger\DebuggerActivation.cpp"
>
</File>
<File
RelativePath="..\..\debugger\DebuggerActivation.h"
>
</File>
<File
RelativePath="..\..\debugger\DebuggerCallFrame.cpp"
>
</File>
<File
RelativePath="..\..\debugger\DebuggerCallFrame.h"
>
</File>
</Filter>
<Filter
Name="assembler"
>
<File
RelativePath="..\..\assembler\AbstractMacroAssembler.h"
>
</File>
<File
RelativePath="..\..\assembler\AssemblerBuffer.h"
>
</File>
<File
RelativePath="..\..\assembler\CodeLocation.h"
>
</File>
<File
RelativePath="..\..\assembler\LinkBuffer.h"
>
</File>
<File
RelativePath="..\..\assembler\MacroAssembler.h"
>
</File>
<File
RelativePath="..\..\assembler\MacroAssemblerX86.h"
>
</File>
<File
RelativePath="..\..\assembler\MacroAssemblerX86Common.h"
>
</File>
<File
RelativePath="..\..\assembler\RepatchBuffer.h"
>
</File>
<File
RelativePath="..\..\assembler\X86Assembler.h"
>
</File>
</Filter>
<Filter
Name="yarr"
>
<File
RelativePath="..\..\yarr\Yarr.h"
>
</File>
<File
RelativePath="..\..\yarr\YarrInterpreter.cpp"
>
</File>
<File
RelativePath="..\..\yarr\YarrInterpreter.h"
>
</File>
<File
RelativePath="..\..\yarr\YarrJIT.cpp"
>
</File>
<File
RelativePath="..\..\yarr\YarrJIT.h"
>
</File>
<File
RelativePath="..\..\yarr\YarrParser.h"
>
</File>
<File
RelativePath="..\..\yarr\YarrPattern.cpp"
>
</File>
<File
RelativePath="..\..\yarr\YarrPattern.h"
>
</File>
<File
RelativePath="..\..\yarr\YarrSyntaxChecker.cpp"
>
</File>
<File
RelativePath="..\..\yarr\YarrSyntaxChecker.h"
>
</File>
</Filter>
<Filter
Name="jit"
>
<File
RelativePath="..\..\jit\ExecutableAllocator.cpp"
>
</File>
<File
RelativePath="..\..\jit\ExecutableAllocator.h"
>
</File>
<File
RelativePath="..\..\jit\JIT.cpp"
>
</File>
<File
RelativePath="..\..\jit\JIT.h"
>
</File>
<File
RelativePath="..\..\jit\JITArithmetic.cpp"
>
</File>
<File
RelativePath="..\..\jit\JITArithmetic32_64.cpp"
>
</File>
<File
RelativePath="..\..\jit\JITCall.cpp"
>
</File>
<File
RelativePath="..\..\jit\JITCall32_64.cpp"
>
</File>
<File
RelativePath="..\..\jit\JITCode.h"
>
</File>
<File
RelativePath="..\..\jit\JITInlineMethods.h"
>
</File>
<File
RelativePath="..\..\jit\JITOpcodes.cpp"
>
</File>
<File
RelativePath="..\..\jit\JITOpcodes32_64.cpp"
>
</File>
<File
RelativePath="..\..\jit\JITPropertyAccess.cpp"
>
</File>
<File
RelativePath="..\..\jit\JITPropertyAccess32_64.cpp"
>
</File>
<File
RelativePath="..\..\jit\JITStubCall.h"
>
</File>
<File
RelativePath="..\..\jit\JITStubs.cpp"
>
</File>
<File
RelativePath="..\..\jit\JITStubs.h"
>
</File>
<File
RelativePath="..\..\jit\JSInterfaceJIT.h"
>
</File>
<File
RelativePath="..\..\jit\SpecializedThunkJIT.h"
>
</File>
<File
RelativePath="..\..\jit\ThunkGenerators.cpp"
>
</File>
<File
RelativePath="..\..\jit\ThunkGenerators.h"
>
</File>
</Filter>
<Filter
Name="interpreter"
>
<File
RelativePath="..\..\interpreter\CachedCall.h"
>
</File>
<File
RelativePath="..\..\interpreter\CallFrame.cpp"
>
</File>
<File
RelativePath="..\..\interpreter\CallFrame.h"
>
</File>
<File
RelativePath="..\..\interpreter\CallFrameClosure.h"
>
</File>
<File
RelativePath="..\..\interpreter\Interpreter.cpp"
>
</File>
<File
RelativePath="..\..\interpreter\Interpreter.h"
>
</File>
<File
RelativePath="..\..\interpreter\Register.h"
>
</File>
<File
RelativePath="..\..\interpreter\RegisterFile.cpp"
>
</File>
<File
RelativePath="..\..\interpreter\RegisterFile.h"
>
</File>
</Filter>
<Filter
Name="bytecompiler"
>
<File
RelativePath="..\..\bytecompiler\BytecodeGenerator.cpp"
>
</File>
<File
RelativePath="..\..\bytecompiler\BytecodeGenerator.h"
>
</File>
<File
RelativePath="..\..\bytecompiler\Label.h"
>
</File>
<File
RelativePath="..\..\bytecompiler\LabelScope.h"
>
</File>
<File
RelativePath="..\..\bytecompiler\NodesCodegen.cpp"
>
</File>
<File
RelativePath="..\..\bytecompiler\RegisterID.h"
>
</File>
</Filter>
<Filter
Name="parser"
>
<File
RelativePath="..\..\parser\ASTBuilder.h"
>
</File>
<File
RelativePath="..\..\parser\JSParser.cpp"
>
</File>
<File
RelativePath="..\..\parser\JSParser.h"
>
</File>
<File
RelativePath="..\..\parser\Lexer.cpp"
>
</File>
<File
RelativePath="..\..\parser\Lexer.h"
>
</File>
<File
RelativePath="..\..\parser\NodeConstructors.h"
>
</File>
<File
RelativePath="..\..\parser\NodeInfo.h"
>
</File>
<File
RelativePath="..\..\parser\Nodes.cpp"
>
</File>
<File
RelativePath="..\..\parser\Nodes.h"
>
</File>
<File
RelativePath="..\..\parser\Parser.cpp"
>
</File>
<File
RelativePath="..\..\parser\Parser.h"
>
</File>
<File
RelativePath="..\..\parser\ParserArena.cpp"
>
</File>
<File
RelativePath="..\..\parser\ParserArena.h"
>
</File>
<File
RelativePath="..\..\parser\ResultType.h"
>
</File>
<File
RelativePath="..\..\parser\SourceCode.h"
>
</File>
<File
RelativePath="..\..\parser\SourceProvider.h"
>
</File>
<File
RelativePath="..\..\parser\SourceProviderCache.cpp"
>
</File>
<File
RelativePath="..\..\parser\SourceProviderCache.h"
>
</File>
<File
RelativePath="..\..\parser\SourceProviderCacheItem.h"
>
</File>
<File
RelativePath="..\..\parser\SyntaxChecker.h"
>
</File>
</Filter>
<Filter
Name="Derived Sources"
>
<File
RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\ArrayPrototype.lut.h"
>
</File>
<File
RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\DatePrototype.lut.h"
>
</File>
<File
RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\lexer.lut.h"
>
</File>
<File
RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\MathObject.lut.h"
>
</File>
<File
RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\NumberConstructor.lut.h"
>
</File>
<File
RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\RegExpConstructor.lut.h"
>
</File>
<File
RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\RegExpObject.lut.h"
>
</File>
<File
RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\StringPrototype.lut.h"
>
</File>
</Filter>
<Filter
Name="heap"
>
<File
RelativePath="..\..\heap\ConservativeRoots.cpp"
>
</File>
<File
RelativePath="..\..\heap\ConservativeRoots.h"
>
</File>
<File
RelativePath="..\..\heap\MachineStackMarker.cpp"
>
</File>
<File
RelativePath="..\..\heap\MachineStackMarker.h"
>
</File>
<File
RelativePath="..\..\heap\MarkedBlock.cpp"
>
</File>
<File
RelativePath="..\..\heap\MarkedBlock.h"
>
</File>
<File
RelativePath="..\..\heap\MarkedSpace.cpp"
>
</File>
<File
RelativePath="..\..\heap\MarkedSpace.h"
>
</File>
<File
RelativePath="..\..\heap\MarkStack.cpp"
>
</File>
<File
RelativePath="..\..\heap\MarkStack.h"
>
</File>
<File
RelativePath="..\..\heap\MarkStackWin.cpp"
>
</File>
<File
RelativePath="..\..\heap\Heap.cpp"
>
</File>
<File
RelativePath="..\..\heap\Heap.h"
>
</File>
<File
RelativePath="..\..\heap\Strong.h"
>
</File>
<File
RelativePath="..\..\heap\Handle.h"
>
</File>
<File
RelativePath="..\..\heap\HandleHeap.cpp"
>
</File>
<File
RelativePath="..\..\heap\HandleHeap.h"
>
</File>
<File
RelativePath="..\..\heap\HandleStack.cpp"
>
</File>
<File
RelativePath="..\..\heap\HandleStack.h"
>
</File>
<File
RelativePath="..\..\heap\Local.h"
>
</File>
<File
RelativePath="..\..\heap\LocalScope.h"
>
</File>
<File
RelativePath="..\..\heap\Weak.h"
>
</File>
</Filter>
<File
RelativePath="..\..\config.h"
>
</File>
<File
RelativePath=".\JavaScriptCore.def"
>
</File>
<File
RelativePath=".\JavaScriptCore_debug.def"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
| {
"pile_set_name": "Github"
} |
The files in this directory contain the vocabularies of Universal Dependencies 1.4's training + dev + test corpus for 23 languages in the paper.
| {
"pile_set_name": "Github"
} |
sha256:cca5c58a65f5690a39894682d0d9fb15226a41f68297a48b2fbe47566aa03227
| {
"pile_set_name": "Github"
} |
/*
Ginkgo's Default Reporter
A number of command line flags are available to tweak Ginkgo's default output.
These are documented [here](http://onsi.github.io/ginkgo/#running_tests)
*/
package reporters
import (
"github.com/onsi/ginkgo/config"
"github.com/onsi/ginkgo/reporters/stenographer"
"github.com/onsi/ginkgo/types"
)
type DefaultReporter struct {
config config.DefaultReporterConfigType
stenographer stenographer.Stenographer
specSummaries []*types.SpecSummary
}
func NewDefaultReporter(config config.DefaultReporterConfigType, stenographer stenographer.Stenographer) *DefaultReporter {
return &DefaultReporter{
config: config,
stenographer: stenographer,
}
}
func (reporter *DefaultReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) {
reporter.stenographer.AnnounceSuite(summary.SuiteDescription, config.RandomSeed, config.RandomizeAllSpecs, reporter.config.Succinct)
if config.ParallelTotal > 1 {
reporter.stenographer.AnnounceParallelRun(config.ParallelNode, config.ParallelTotal, reporter.config.Succinct)
} else {
reporter.stenographer.AnnounceNumberOfSpecs(summary.NumberOfSpecsThatWillBeRun, summary.NumberOfTotalSpecs, reporter.config.Succinct)
}
}
func (reporter *DefaultReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary) {
if setupSummary.State != types.SpecStatePassed {
reporter.stenographer.AnnounceBeforeSuiteFailure(setupSummary, reporter.config.Succinct, reporter.config.FullTrace)
}
}
func (reporter *DefaultReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary) {
if setupSummary.State != types.SpecStatePassed {
reporter.stenographer.AnnounceAfterSuiteFailure(setupSummary, reporter.config.Succinct, reporter.config.FullTrace)
}
}
func (reporter *DefaultReporter) SpecWillRun(specSummary *types.SpecSummary) {
if reporter.config.Verbose && !reporter.config.Succinct && specSummary.State != types.SpecStatePending && specSummary.State != types.SpecStateSkipped {
reporter.stenographer.AnnounceSpecWillRun(specSummary)
}
}
func (reporter *DefaultReporter) SpecDidComplete(specSummary *types.SpecSummary) {
switch specSummary.State {
case types.SpecStatePassed:
if specSummary.IsMeasurement {
reporter.stenographer.AnnounceSuccessfulMeasurement(specSummary, reporter.config.Succinct)
} else if specSummary.RunTime.Seconds() >= reporter.config.SlowSpecThreshold {
reporter.stenographer.AnnounceSuccessfulSlowSpec(specSummary, reporter.config.Succinct)
} else {
reporter.stenographer.AnnounceSuccessfulSpec(specSummary)
if reporter.config.ReportPassed {
reporter.stenographer.AnnounceCapturedOutput(specSummary.CapturedOutput)
}
}
case types.SpecStatePending:
reporter.stenographer.AnnouncePendingSpec(specSummary, reporter.config.NoisyPendings && !reporter.config.Succinct)
case types.SpecStateSkipped:
reporter.stenographer.AnnounceSkippedSpec(specSummary, reporter.config.Succinct || !reporter.config.NoisySkippings, reporter.config.FullTrace)
case types.SpecStateTimedOut:
reporter.stenographer.AnnounceSpecTimedOut(specSummary, reporter.config.Succinct, reporter.config.FullTrace)
case types.SpecStatePanicked:
reporter.stenographer.AnnounceSpecPanicked(specSummary, reporter.config.Succinct, reporter.config.FullTrace)
case types.SpecStateFailed:
reporter.stenographer.AnnounceSpecFailed(specSummary, reporter.config.Succinct, reporter.config.FullTrace)
}
reporter.specSummaries = append(reporter.specSummaries, specSummary)
}
func (reporter *DefaultReporter) SpecSuiteDidEnd(summary *types.SuiteSummary) {
reporter.stenographer.SummarizeFailures(reporter.specSummaries)
reporter.stenographer.AnnounceSpecRunCompletion(summary, reporter.config.Succinct)
}
| {
"pile_set_name": "Github"
} |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Documenting code in Apache 2.4 - Apache HTTP Server Version 2.4</title>
<link href="../style/css/manual-zip.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-zip-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
<script src="../style/scripts/prettify.min.js" type="text/javascript">
</script>
</head>
<body id="manual-page" class="no-sidebar"><div id="page-header">
<p class="menu"><a href="../mod/index.html">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
<p class="apache">Apache HTTP Server Version 2.4</p>
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./index.html"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../index.html">Version 2.4</a> > <a href="./index.html">Developer Documentation</a></div><div id="page-content"><div id="preamble"><h1>Documenting code in Apache 2.4</h1>
<p>Apache 2.4 uses <a href="http://www.doxygen.org/">Doxygen</a> to
document the APIs and global variables in the code. This will explain
the basics of how to document using Doxygen.</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="brief" id="brief">Brief Description</a></h2>
<p>To start a documentation block, use <code>/**</code><br />
To end a documentation block, use <code>*/</code></p>
<p>In the middle of the block, there are multiple tags we can
use:</p>
<div class="example"><p><code>
Description of this functions purpose<br />
@param parameter_name description<br />
@return description<br />
@deffunc signature of the function<br />
</code></p></div>
<p>The <code>deffunc</code> is not always necessary. DoxyGen does not
have a full parser in it, so any prototype that use a macro in the
return type declaration is too complex for scandoc. Those functions
require a <code>deffunc</code>. An example (using &gt; rather
than >):</p>
<div class="example"><p><code>
/**<br />
* return the final element of the pathname<br />
* @param pathname The path to get the final element of<br />
* @return the final element of the path<br />
* @tip Examples:<br />
* <pre><br />
* "/foo/bar/gum" -&gt; "gum"<br />
* "/foo/bar/gum/" -&gt; ""<br />
* "gum" -&gt; "gum"<br />
* "wi\\n32\\stuff" -&gt; "stuff"<br />
* </pre><br />
* @deffunc const char * ap_filename_of_pathname(const char *pathname)<br />
*/
</code></p></div>
<p>At the top of the header file, always include:</p>
<div class="example"><p><code>
/**<br />
* @package Name of library header<br />
*/
</code></p></div>
<p>Doxygen uses a new HTML file for each package. The HTML files are named
{Name_of_library_header}.html, so try to be concise with your names.</p>
<p>For a further discussion of the possibilities please refer to
<a href="http://www.doxygen.org/">the Doxygen site</a>.</p>
</div></div>
<div id="footer">
<p class="apache">Copyright 2015 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="../mod/index.html">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
prettyPrint();
}
//--><!]]></script>
</body></html>
| {
"pile_set_name": "Github"
} |
# Patchwork - automated patch tracking system
# Copyright (C) 2008 Jeremy Kerr <[email protected]>
# Copyright (C) 2017 Stephen Finucane <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-or-later
import datetime
from email.encoders import encode_7or8bit
from email.header import Header
from email.mime.nonmultipart import MIMENonMultipart
from email.parser import HeaderParser
import email.utils
import re
from django.conf import settings
from django.http import Http404
from patchwork.models import CoverComment
from patchwork.models import Patch
from patchwork.models import PatchComment
from patchwork.parser import split_from_header
if settings.ENABLE_REST_API:
from rest_framework.authtoken.models import Token
class PatchMbox(MIMENonMultipart):
patch_charset = 'utf-8'
def __init__(self, _text):
MIMENonMultipart.__init__(self, 'text', 'plain',
**{'charset': self.patch_charset})
self.set_payload(_text.encode(self.patch_charset))
encode_7or8bit(self)
def _submission_to_mbox(submission):
"""Get an mbox representation of a single submission.
Handles both Patch and Cover objects.
Arguments:
submission: The Patch or Cover object to convert.
Returns:
A string for the mbox file.
"""
is_patch = isinstance(submission, Patch)
postscript_re = re.compile('\n-{2,3} ?\n')
body = ''
if submission.content:
body = submission.content.strip() + "\n"
parts = postscript_re.split(body, 1)
if len(parts) == 2:
(body, postscript) = parts
body = body.strip() + "\n"
postscript = postscript.rstrip()
else:
postscript = ''
# TODO(stephenfin): Make this use the tags infrastructure
if is_patch:
for comment in PatchComment.objects.filter(patch=submission):
body += comment.patch_responses
else:
for comment in CoverComment.objects.filter(cover=submission):
body += comment.patch_responses
if postscript:
body += '---\n' + postscript + '\n'
if is_patch and submission.diff:
body += '\n' + submission.diff
delta = submission.date - datetime.datetime.utcfromtimestamp(0)
utc_timestamp = delta.seconds + delta.days * 24 * 3600
mail = PatchMbox(body)
mail['X-Patchwork-Submitter'] = email.utils.formataddr((
str(Header(submission.submitter.name, mail.patch_charset)),
submission.submitter.email))
mail['X-Patchwork-Id'] = str(submission.id)
if is_patch and submission.delegate:
mail['X-Patchwork-Delegate'] = str(submission.delegate.email)
mail.set_unixfrom('From patchwork ' + submission.date.ctime())
orig_headers = HeaderParser().parsestr(str(submission.headers))
for key, val in orig_headers.items():
# we set these ourselves
if key in ['Content-Type', 'Content-Transfer-Encoding']:
continue
# we don't save GPG signatures described in RFC1847 [1] so this
# Content-Type value is invalid
# [1] https://tools.ietf.org/html/rfc1847
if key == 'Content-Type' and val == 'multipart/signed':
continue
if key == 'From':
name, addr = split_from_header(val)
if addr == submission.project.listemail:
# If From: is the list address (typically DMARC munging), then
# use the submitter details (which are cleaned up in the
# parser) in the From: field so that the patch author details
# are correct when applied with git am.
mail['X-Patchwork-Original-From'] = val
val = mail['X-Patchwork-Submitter']
mail[key] = val
if 'Date' not in mail:
mail['Date'] = email.utils.formatdate(utc_timestamp)
# NOTE(stephenfin) http://stackoverflow.com/a/28584090/613428
mail = mail.as_bytes(True).decode()
return mail
patch_to_mbox = _submission_to_mbox
cover_to_mbox = _submission_to_mbox
def bundle_to_mbox(bundle):
"""Get an mbox representation of a bundle.
Arguments:
patch: The Bundle object to convert.
Returns:
A string for the mbox file.
"""
return '\n'.join([patch_to_mbox(p) for p in bundle.ordered_patches()])
def series_patch_to_mbox(patch, series_id):
"""Get an mbox representation of a patch with dependencies.
Arguments:
patch: The Patch object to convert.
series_id: The series number to retrieve dependencies from, or
'*' if using the latest series.
Returns:
A string for the mbox file.
"""
if series_id != '*':
try:
series_id = int(series_id)
except ValueError:
raise Http404('Expected integer series value or *. Received: %r' %
series_id)
if patch.series.id != series_id:
raise Http404('Patch does not belong to series %d' % series_id)
mbox = []
# get the series-ified patch
for dep in patch.series.patches.filter(
number__lt=patch.number).order_by('number'):
mbox.append(patch_to_mbox(dep))
mbox.append(patch_to_mbox(patch))
return '\n'.join(mbox)
def series_to_mbox(series):
"""Get an mbox representation of an entire series.
Arguments:
series: The Series object to convert.
Returns:
A string for the mbox file.
"""
mbox = []
for patch in series.patches.all().order_by('number'):
mbox.append(patch_to_mbox(patch))
return '\n'.join(mbox)
def regenerate_token(user):
"""Generate (or regenerate) user API tokens.
Arguments:
user: The User object to generate a token for.
"""
Token.objects.filter(user=user).delete()
Token.objects.create(user=user)
| {
"pile_set_name": "Github"
} |
{
"appName": {
"message": "VkOpt"
},
"appDesc": {
"message": "Improve your VK.com. Official site and support: http://vkopt.net/"
}
} | {
"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.
-->
<head>
<title>Tutorial - Controller</title>
</head>
## [Helix Tutorial](./Tutorial.html): Controller
Next, let\'s implement the controller. This is the brain of the cluster. Helix makes sure there is exactly one active controller running the cluster.
### Start a Connection
The Helix manager requires the following parameters:
* clusterName: A logical name to represent the group of nodes
* instanceName: A logical name of the process creating the manager instance. Generally this is host:port
* instanceType: Type of the process. This can be one of the following types, in this case use CONTROLLER:
* CONTROLLER: Process that controls the cluster, any number of controllers can be started but only one will be active at any given time
* PARTICIPANT: Process that performs the actual task in the distributed system
* SPECTATOR: Process that observes the changes in the cluster
* ADMIN: To carry out system admin actions
* zkConnectString: Connection string to ZooKeeper. This is of the form host1:port1,host2:port2,host3:port3
```
manager = HelixManagerFactory.getZKHelixManager(clusterName,
instanceName,
instanceType,
zkConnectString);
```
### Controller Code
The Controller needs to know about all changes in the cluster. Helix takes care of this with the default implementation.
If you need additional functionality, see GenericHelixController on how to configure the pipeline.
```
manager = HelixManagerFactory.getZKHelixManager(clusterName,
instanceName,
InstanceType.CONTROLLER,
zkConnectString);
manager.connect();
```
The snippet above shows how the controller is started. You can also start the controller using command line interface.
```
cd helix/helix-core/target/helix-core-pkg/bin
./run-helix-controller.sh --zkSvr <Zookeeper ServerAddress (Required)> --cluster <Cluster name (Required)>
```
### Controller Deployment Modes
Helix provides multiple options to deploy the controller.
#### STANDALONE
The Controller can be started as a separate process to manage a cluster. This is the recommended approach. However, since one controller can be a single point of failure, multiple controller processes are required for reliability. Even if multiple controllers are running, only one will be actively managing the cluster at any time and is decided by a leader-election process. If the leader fails, another leader will take over managing the cluster.
Even though we recommend this method of deployment, it has the drawback of having to manage an additional service for each cluster. See the Controller as a Service option.
#### EMBEDDED
If setting up a separate controller process is not viable, then it is possible to embed the controller as a library in each of the participants.
#### CONTROLLER AS A SERVICE
One of the cool features we added in Helix was to use a set of controllers to manage a large number of clusters.
For example if you have X clusters to be managed, instead of deploying X*3 (3 controllers for fault tolerance) controllers for each cluster, one can deploy just 3 controllers. Each controller can manage X/3 clusters. If any controller fails, the remaining two will manage X/2 clusters.
Next, let\'s implement the controller. This is the brain of the cluster. Helix makes sure there is exactly one active controller running the cluster.
### Start the Helix agent
It requires the following parameters:
* clusterName: A logical name to represent the group of nodes
* instanceName: A logical name of the process creating the manager instance. Generally this is host:port.
* instanceType: Type of the process. This can be one of the following types, in this case use CONTROLLER:
* CONTROLLER: Process that controls the cluster, any number of controllers can be started but only one will be active at any given time.
* PARTICIPANT: Process that performs the actual task in the distributed system.
* SPECTATOR: Process that observes the changes in the cluster.
* ADMIN: To carry out system admin actions.
* zkConnectString: Connection string to Zookeeper. This is of the form host1:port1,host2:port2,host3:port3.
```
manager = HelixManagerFactory.getZKHelixManager(clusterName,
instanceName,
instanceType,
zkConnectString);
```
### Controller Code
The Controller needs to know about all changes in the cluster. Helix takes care of this with the default implementation.
If you need additional functionality, see GenericHelixController on how to configure the pipeline.
```
manager = HelixManagerFactory.getZKHelixManager(clusterName,
instanceName,
InstanceType.CONTROLLER,
zkConnectString);
manager.connect();
GenericHelixController controller = new GenericHelixController();
manager.addConfigChangeListener(controller);
manager.addLiveInstanceChangeListener(controller);
manager.addIdealStateChangeListener(controller);
manager.addExternalViewChangeListener(controller);
manager.addControllerListener(controller);
```
The snippet above shows how the controller is started. You can also start the controller using command line interface.
```
cd helix/helix-core/target/helix-core-pkg/bin
./run-helix-controller.sh --zkSvr <Zookeeper ServerAddress (Required)> --cluster <Cluster name (Required)>
```
### Controller Deployment Modes
Helix provides multiple options to deploy the controller.
#### STANDALONE
The Controller can be started as a separate process to manage a cluster. This is the recommended approach. However, since one controller can be a single point of failure, multiple controller processes are required for reliability. Even if multiple controllers are running, only one will be actively managing the cluster at any time and is decided by a leader-election process. If the leader fails, another leader will take over managing the cluster.
Even though we recommend this method of deployment, it has the drawback of having to manage an additional service for each cluster. See Controller As a Service option.
#### EMBEDDED
If setting up a separate controller process is not viable, then it is possible to embed the controller as a library in each of the participants.
#### CONTROLLER AS A SERVICE
One of the cool features we added in Helix is to use a set of controllers to manage a large number of clusters.
For example if you have X clusters to be managed, instead of deploying X*3 (3 controllers for fault tolerance) controllers for each cluster, one can deploy just 3 controllers. Each controller can manage X/3 clusters. If any controller fails, the remaining two will manage X/2 clusters.
| {
"pile_set_name": "Github"
} |
package oam
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
//
// Code generated by Alibaba Cloud SDK Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// RoleCell is a nested struct in oam response
type RoleCell struct {
RoleName string `json:"RoleName" xml:"RoleName"`
Attribute string `json:"Attribute" xml:"Attribute"`
RoleId string `json:"RoleId" xml:"RoleId"`
RoleCellId string `json:"RoleCellId" xml:"RoleCellId"`
Description string `json:"Description" xml:"Description"`
GmtModified string `json:"GmtModified" xml:"GmtModified"`
GrantOption string `json:"GrantOption" xml:"GrantOption"`
ActionList ActionListInListRoleCellByTagId `json:"ActionList" xml:"ActionList"`
}
| {
"pile_set_name": "Github"
} |
From 78046b68c1fc757162e32c83f59c3a94e794bf2e Mon Sep 17 00:00:00 2001
From: John Crispin <[email protected]>
Date: Sun, 28 Jul 2013 13:51:58 +0200
Subject: [PATCH 04/25] watchdog: MIPS: add ralink watchdog driver
Add a driver for the watchdog timer found on Ralink SoC
Signed-off-by: John Crispin <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
drivers/watchdog/Kconfig | 7 ++
drivers/watchdog/Makefile | 1 +
drivers/watchdog/rt2880_wdt.c | 208 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 216 insertions(+)
create mode 100644 drivers/watchdog/rt2880_wdt.c
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1113,6 +1113,13 @@ config LANTIQ_WDT
help
Hardware driver for the Lantiq SoC Watchdog Timer.
+config RALINK_WDT
+ tristate "Ralink SoC watchdog"
+ select WATCHDOG_CORE
+ depends on RALINK
+ help
+ Hardware driver for the Ralink SoC Watchdog Timer.
+
# PARISC Architecture
# POWERPC Architecture
--- a/drivers/watchdog/Makefile
+++ b/drivers/watchdog/Makefile
@@ -135,6 +135,7 @@ obj-$(CONFIG_TXX9_WDT) += txx9wdt.o
obj-$(CONFIG_OCTEON_WDT) += octeon-wdt.o
octeon-wdt-y := octeon-wdt-main.o octeon-wdt-nmi.o
obj-$(CONFIG_LANTIQ_WDT) += lantiq_wdt.o
+obj-$(CONFIG_RALINK_WDT) += rt2880_wdt.o
# PARISC Architecture
--- /dev/null
+++ b/drivers/watchdog/rt2880_wdt.c
@@ -0,0 +1,208 @@
+/*
+ * Ralink RT288x/RT3xxx/MT76xx built-in hardware watchdog timer
+ *
+ * Copyright (C) 2011 Gabor Juhos <[email protected]>
+ * Copyright (C) 2013 John Crispin <[email protected]>
+ *
+ * This driver was based on: drivers/watchdog/softdog.c
+ *
+ * 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.
+ */
+
+#include <linux/clk.h>
+#include <linux/reset.h>
+#include <linux/module.h>
+#include <linux/kernel.h>
+#include <linux/watchdog.h>
+#include <linux/miscdevice.h>
+#include <linux/moduleparam.h>
+#include <linux/platform_device.h>
+
+#include <asm/mach-ralink/ralink_regs.h>
+
+#define SYSC_RSTSTAT 0x38
+#define WDT_RST_CAUSE BIT(1)
+
+#define RALINK_WDT_TIMEOUT 30
+#define RALINK_WDT_PRESCALE 65536
+
+#define TIMER_REG_TMR1LOAD 0x00
+#define TIMER_REG_TMR1CTL 0x08
+
+#define TMRSTAT_TMR1RST BIT(5)
+
+#define TMR1CTL_ENABLE BIT(7)
+#define TMR1CTL_MODE_SHIFT 4
+#define TMR1CTL_MODE_MASK 0x3
+#define TMR1CTL_MODE_FREE_RUNNING 0x0
+#define TMR1CTL_MODE_PERIODIC 0x1
+#define TMR1CTL_MODE_TIMEOUT 0x2
+#define TMR1CTL_MODE_WDT 0x3
+#define TMR1CTL_PRESCALE_MASK 0xf
+#define TMR1CTL_PRESCALE_65536 0xf
+
+static struct clk *rt288x_wdt_clk;
+static unsigned long rt288x_wdt_freq;
+static void __iomem *rt288x_wdt_base;
+
+static bool nowayout = WATCHDOG_NOWAYOUT;
+module_param(nowayout, bool, 0);
+MODULE_PARM_DESC(nowayout,
+ "Watchdog cannot be stopped once started (default="
+ __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
+
+static inline void rt_wdt_w32(unsigned reg, u32 val)
+{
+ iowrite32(val, rt288x_wdt_base + reg);
+}
+
+static inline u32 rt_wdt_r32(unsigned reg)
+{
+ return ioread32(rt288x_wdt_base + reg);
+}
+
+static int rt288x_wdt_ping(struct watchdog_device *w)
+{
+ rt_wdt_w32(TIMER_REG_TMR1LOAD, w->timeout * rt288x_wdt_freq);
+
+ return 0;
+}
+
+static int rt288x_wdt_start(struct watchdog_device *w)
+{
+ u32 t;
+
+ t = rt_wdt_r32(TIMER_REG_TMR1CTL);
+ t &= ~(TMR1CTL_MODE_MASK << TMR1CTL_MODE_SHIFT |
+ TMR1CTL_PRESCALE_MASK);
+ t |= (TMR1CTL_MODE_WDT << TMR1CTL_MODE_SHIFT |
+ TMR1CTL_PRESCALE_65536);
+ rt_wdt_w32(TIMER_REG_TMR1CTL, t);
+
+ rt288x_wdt_ping(w);
+
+ t = rt_wdt_r32(TIMER_REG_TMR1CTL);
+ t |= TMR1CTL_ENABLE;
+ rt_wdt_w32(TIMER_REG_TMR1CTL, t);
+
+ return 0;
+}
+
+static int rt288x_wdt_stop(struct watchdog_device *w)
+{
+ u32 t;
+
+ rt288x_wdt_ping(w);
+
+ t = rt_wdt_r32(TIMER_REG_TMR1CTL);
+ t &= ~TMR1CTL_ENABLE;
+ rt_wdt_w32(TIMER_REG_TMR1CTL, t);
+
+ return 0;
+}
+
+static int rt288x_wdt_set_timeout(struct watchdog_device *w, unsigned int t)
+{
+ w->timeout = t;
+ rt288x_wdt_ping(w);
+
+ return 0;
+}
+
+static int rt288x_wdt_bootcause(void)
+{
+ if (rt_sysc_r32(SYSC_RSTSTAT) & WDT_RST_CAUSE)
+ return WDIOF_CARDRESET;
+
+ return 0;
+}
+
+static struct watchdog_info rt288x_wdt_info = {
+ .identity = "Ralink Watchdog",
+ .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE,
+};
+
+static struct watchdog_ops rt288x_wdt_ops = {
+ .owner = THIS_MODULE,
+ .start = rt288x_wdt_start,
+ .stop = rt288x_wdt_stop,
+ .ping = rt288x_wdt_ping,
+ .set_timeout = rt288x_wdt_set_timeout,
+};
+
+static struct watchdog_device rt288x_wdt_dev = {
+ .info = &rt288x_wdt_info,
+ .ops = &rt288x_wdt_ops,
+ .min_timeout = 1,
+};
+
+static int rt288x_wdt_probe(struct platform_device *pdev)
+{
+ struct resource *res;
+ int ret;
+
+ res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+ rt288x_wdt_base = devm_request_and_ioremap(&pdev->dev, res);
+ if (IS_ERR(rt288x_wdt_base))
+ return PTR_ERR(rt288x_wdt_base);
+
+ rt288x_wdt_clk = devm_clk_get(&pdev->dev, NULL);
+ if (IS_ERR(rt288x_wdt_clk))
+ return PTR_ERR(rt288x_wdt_clk);
+
+ device_reset(&pdev->dev);
+
+ rt288x_wdt_freq = clk_get_rate(rt288x_wdt_clk) / RALINK_WDT_PRESCALE;
+
+ rt288x_wdt_dev.dev = &pdev->dev;
+ rt288x_wdt_dev.bootstatus = rt288x_wdt_bootcause();
+
+ rt288x_wdt_dev.max_timeout = (0xfffful / rt288x_wdt_freq);
+ rt288x_wdt_dev.timeout = rt288x_wdt_dev.max_timeout;
+
+ watchdog_set_nowayout(&rt288x_wdt_dev, nowayout);
+
+ ret = watchdog_register_device(&rt288x_wdt_dev);
+ if (!ret)
+ dev_info(&pdev->dev, "Initialized\n");
+
+ return 0;
+}
+
+static int rt288x_wdt_remove(struct platform_device *pdev)
+{
+ watchdog_unregister_device(&rt288x_wdt_dev);
+
+ return 0;
+}
+
+static void rt288x_wdt_shutdown(struct platform_device *pdev)
+{
+ rt288x_wdt_stop(&rt288x_wdt_dev);
+}
+
+static const struct of_device_id rt288x_wdt_match[] = {
+ { .compatible = "ralink,rt2880-wdt" },
+ {},
+};
+MODULE_DEVICE_TABLE(of, rt288x_wdt_match);
+
+static struct platform_driver rt288x_wdt_driver = {
+ .probe = rt288x_wdt_probe,
+ .remove = rt288x_wdt_remove,
+ .shutdown = rt288x_wdt_shutdown,
+ .driver = {
+ .name = KBUILD_MODNAME,
+ .owner = THIS_MODULE,
+ .of_match_table = rt288x_wdt_match,
+ },
+};
+
+module_platform_driver(rt288x_wdt_driver);
+
+MODULE_DESCRIPTION("MediaTek/Ralink RT288x/RT3xxx hardware watchdog driver");
+MODULE_AUTHOR("Gabor Juhos <[email protected]");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);
| {
"pile_set_name": "Github"
} |
# ssh-scripts
Collection of scripts to use with SSH.
This is not an official Google product.
## `ssmodem`
Upload/download files inline with an interactive SSH session.
```
./ssmodem shell.example.com
Password: <…>
user@host$ ls
user@host$ rz
[… garbage …]
^]
> [u]pload/[d]ownload/[t]ype: u
> Local file name: foo.*
[… garbage …]
user@host$ ls
foo.crt
foo.key
user@host$
```
## `oassh`
Reconnect typing password and `screen -x` if you get disconnected.
```
./oassh shell.example.com
Overly attached password: <…>
Immediate command: <…>
[… logged in…]
```
| {
"pile_set_name": "Github"
} |
//
// TestEmailMacOSDAO.m
// UnitTestApp
//
// Created by Makara Khloth on 2/12/15.
//
//
#import <GHUnitIOS/GHUnit.h>
#import "DatabaseManager.h"
#import "DAOFactory.h"
#import "DetailedCount.h"
#import "DefCommonEventData.h"
#import "FxEmailMacOSEvent.h"
#import "FxRecipient.h"
#import "FxRecipientWrapper.h"
#import "FxAttachment.h"
#import "FxAttachmentWrapper.h"
#import "EmailMacOSDAO.h"
#import "RecipientDAO.h"
#import "AttachmentDAO.h"
static NSString* const kEventDateTime = @"11:11:11 2011-11-11";
@interface TestEmailMacOSDAO : GHTestCase {
@private
DatabaseManager* mDatabaseManager;
}
@end
@implementation TestEmailMacOSDAO
- (void) setUp {
if (!mDatabaseManager) {
mDatabaseManager = [[DatabaseManager alloc] init];
[mDatabaseManager dropDB];
} else {
[mDatabaseManager dropDB];
}
}
- (void) tearDown {
}
- (void) dealloc {
[mDatabaseManager release];
[super dealloc];
}
- (void) testNormalTest {
FxEmailMacOSEvent* event = [[FxEmailMacOSEvent alloc] init];
[event setDateTime:kEventDateTime];
[event setMDirection:kEventDirectionOut];
[event setMUserLogonName:@"Ophat"];
[event setMApplicationID:@"com.kbak.kmobile"];
[event setMApplicationName:@"KBank Mobile"];
[event setMTitle:@"iTune Connect"];
[event setMEmailServiceType:kEmailServiceTypeYahoo];
[event setMSenderEmail:@"[email protected]"];
[event setMSenderName:@"Mr. A and MR M'c B"];
[event setMSubject:@"Hello B, introduction"];
[event setMBody:@"GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)"
"Copyright 2004 Free Software Foundation, Inc."
"GDB is free software, covered by the GNU General Public License, and you are"
"welcome to change it and/or distribute copies of it under certain conditions."
"Type \"show copying\" to see the conditions."];
FxAttachment* attachment = [[FxAttachment alloc] init];
[attachment setFullPath:@"/hello/world/application/documents/Test/112112-thumbnail.gif"];
[event setMAttachments:[NSArray arrayWithObject:attachment]];
[attachment release];
NSMutableArray *recipients = [NSMutableArray array];
FxRecipient* recipient = [[FxRecipient alloc] init];
[recipient setRecipContactName:@"Mr. Jame 007"];
[recipient setRecipNumAddr:@"[email protected]"];
[recipient setRecipType:kFxRecipientTO];
[recipients addObject:recipient];
[recipient release];
recipient = [[FxRecipient alloc] init];
[recipient setRecipContactName:@"Mr. Jame 069"];
[recipient setRecipNumAddr:@"[email protected]"];
[recipient setRecipType:kFxRecipientCC];
[recipients addObject:recipient];
[recipient release];
[event setMRecipients:recipients];
EmailMacOSDAO* dao = [DAOFactory dataAccessObject:[event eventType] withSqlite3:[mDatabaseManager sqlite3db]];
RecipientDAO* recipDAO = [[RecipientDAO alloc] initWithSqlite3:[mDatabaseManager sqlite3db]];
AttachmentDAO* attDAO = [[AttachmentDAO alloc] initWithSqlite3:[mDatabaseManager sqlite3db]];
NSInteger lastInsertedRowId = 0;
[dao insertEvent:event];
lastInsertedRowId = [mDatabaseManager lastInsertRowId];
for (recipient in [event mRecipients]) {
FxRecipientWrapper* recipWrapper = [[FxRecipientWrapper alloc] init];
[recipWrapper setRecipient:recipient];
[recipWrapper setEmailId:lastInsertedRowId];
[recipDAO insertRow:recipWrapper];
[recipWrapper release];
}
for (attachment in [event mAttachments]) {
FxAttachmentWrapper* attWrapper = [[FxAttachmentWrapper alloc] init];
[attWrapper setEmailId:lastInsertedRowId];
[attWrapper setAttachment:attachment];
[attDAO insertRow:attWrapper];
[attWrapper release];
}
DetailedCount* detailedCount = [dao countEvent];
GHAssertEquals([detailedCount totalCount], 1, @"Count event after insert passed");
GHAssertEquals([detailedCount outCount], 1, @"Count event after insert passed");
NSInteger recipCount = [recipDAO countRow];
NSInteger attCount = [attDAO countRow];
GHAssertEquals(recipCount, 2, @"Count recipient after insert passed");
GHAssertEquals(attCount, 1, @"Count attachment after insert passed");
NSInteger lastEventId = 0;
NSArray* eventArray = [dao selectMaxEvent:33];
for (FxEmailMacOSEvent* event1 in eventArray) {
lastEventId = [event1 eventId];
GHAssertEqualStrings([event dateTime], [event1 dateTime], @"Compare date time");
GHAssertEquals([event mDirection], [event1 mDirection], @"Compare direction");
GHAssertEqualStrings([event mUserLogonName], [event1 mUserLogonName], @"Compare user logon name");
GHAssertEqualStrings([event mApplicationID], [event1 mApplicationID], @"Compare application id");
GHAssertEqualStrings([event mApplicationName], [event1 mApplicationName], @"Compare application name");
GHAssertEqualStrings([event mTitle], [event1 mTitle], @"Compare title");
GHAssertEquals([event mEmailServiceType], [event1 mEmailServiceType], @"Compare email service type");
GHAssertEqualStrings([event mSenderEmail], [event1 mSenderEmail], @"Compare sender email");
GHAssertEqualStrings([event mSenderName], [event1 mSenderName], @"Compare sender name");
GHAssertEqualStrings([event mBody], [event1 mBody], @"Compare body");
GHAssertEqualStrings([event mSubject], [event1 mSubject], @"Compare subject");
}
FxEmailMacOSEvent* tmpEvent = (FxEmailMacOSEvent*)[dao selectEvent:lastEventId];
GHAssertEqualStrings([event dateTime], [tmpEvent dateTime], @"Compare date time");
GHAssertEquals([event mDirection], [tmpEvent mDirection], @"Compare direction");
GHAssertEqualStrings([event mUserLogonName], [tmpEvent mUserLogonName], @"Compare user logon name");
GHAssertEqualStrings([event mApplicationID], [tmpEvent mApplicationID], @"Compare application id");
GHAssertEqualStrings([event mApplicationName], [tmpEvent mApplicationName], @"Compare application name");
GHAssertEqualStrings([event mTitle], [tmpEvent mTitle], @"Compare title");
GHAssertEquals([event mEmailServiceType], [tmpEvent mEmailServiceType], @"Compare email service type");
GHAssertEqualStrings([event mSenderEmail], [tmpEvent mSenderEmail], @"Compare sender email");
GHAssertEqualStrings([event mSenderName], [tmpEvent mSenderName], @"Compare sender name");
GHAssertEqualStrings([event mBody], [tmpEvent mBody], @"Compare body");
GHAssertEqualStrings([event mSubject], [tmpEvent mSubject], @"Compare subject");
NSString* newUpdate = @"/hello/world/application/documents/Test/112112-thumbnail.bmp"
"GDB is free software, covered by the GNU General Public License, and you are";
[tmpEvent setMBody:newUpdate];
[dao updateEvent:tmpEvent];
tmpEvent = (FxEmailMacOSEvent*)[dao selectEvent:lastEventId];
GHAssertEqualStrings([event dateTime], [tmpEvent dateTime], @"Compare date time");
GHAssertEquals([event mDirection], [tmpEvent mDirection], @"Compare direction");
GHAssertEqualStrings([event mUserLogonName], [tmpEvent mUserLogonName], @"Compare user logon name");
GHAssertEqualStrings([event mApplicationID], [tmpEvent mApplicationID], @"Compare application id");
GHAssertEqualStrings([event mApplicationName], [tmpEvent mApplicationName], @"Compare application name");
GHAssertEqualStrings([event mTitle], [tmpEvent mTitle], @"Compare title");
GHAssertEquals([event mEmailServiceType], [tmpEvent mEmailServiceType], @"Compare email service type");
GHAssertEqualStrings([event mSenderEmail], [tmpEvent mSenderEmail], @"Compare sender email");
GHAssertEqualStrings([event mSenderName], [tmpEvent mSenderName], @"Compare sender name");
GHAssertEqualStrings(newUpdate, [tmpEvent mBody], @"Compare body");
GHAssertEqualStrings([event mSubject], [tmpEvent mSubject], @"Compare subject");
detailedCount = [dao countEvent];
GHAssertEquals([detailedCount totalCount], 1, @"Count event after update passed");
[dao deleteEvent:192039]; // No exception when execute delete sql with not found event id
[dao deleteEvent:lastEventId];
detailedCount = [dao countEvent];
GHAssertEquals([detailedCount totalCount], 0, @"Count event after delete passed");
// Trigger testing...
recipCount = [recipDAO countRow];
attCount = [attDAO countRow];
GHAssertEquals(recipCount, 0, @"Count recipient after delete passed");
GHAssertEquals(attCount, 0, @"Count attachment after delete passed");
[recipDAO release];
[attDAO release];
[event release];
}
- (void) testStressTest {
FxEmailMacOSEvent* event = [[FxEmailMacOSEvent alloc] init];
[event setDateTime:kEventDateTime];
[event setMDirection:kEventDirectionOut];
[event setMUserLogonName:@"Ophat"];
[event setMApplicationID:@"com.kbak.kmobile"];
[event setMApplicationName:@"KBank Mobile"];
[event setMTitle:@"iTune Connect"];
[event setMEmailServiceType:kEmailServiceTypeLiveHotmail];
[event setMSenderEmail:@"[email protected]"];
[event setMSenderName:@"Mr. A and MR M'c B"];
[event setMSubject:@"Hello B, introduction"];
[event setMBody:@"GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)"
"Copyright 2004 Free Software Foundation, Inc."
"GDB is free software, covered by the GNU General Public License, and you are"
"welcome to change it and/or distribute copies of it under certain conditions."
"Type \"show copying\" to see the conditions."];
FxAttachment* attachment = [[FxAttachment alloc] init];
[attachment setFullPath:@"/hello/world/application/documents/Test/112112-thumbnail.gif"];
[event setMAttachments:[NSArray arrayWithObject:attachment]];
[attachment release];
NSMutableArray *recipients = [NSMutableArray array];
FxRecipient* recipient = [[FxRecipient alloc] init];
[recipient setRecipContactName:@"Mr. Jame 007"];
[recipient setRecipNumAddr:@"[email protected]"];
[recipient setRecipType:kFxRecipientTO];
[recipients addObject:recipient];
[recipient release];
recipient = [[FxRecipient alloc] init];
[recipient setRecipContactName:@"Mr. Jame 069"];
[recipient setRecipNumAddr:@"[email protected]"];
[recipient setRecipType:kFxRecipientCC];
[recipients addObject:recipient];
[recipient release];
[event setMRecipients:recipients];
EmailMacOSDAO* dao = [DAOFactory dataAccessObject:[event eventType] withSqlite3:[mDatabaseManager sqlite3db]];
RecipientDAO* recipDAO = [[RecipientDAO alloc] initWithSqlite3:[mDatabaseManager sqlite3db]];
AttachmentDAO* attDAO = [[AttachmentDAO alloc] initWithSqlite3:[mDatabaseManager sqlite3db]];
NSInteger maxInsertEvent = 1000;
NSInteger i;
for (i = 0; i < maxInsertEvent; i++) {
NSInteger lastInsertedRowId = 0;
[event setMBody:[NSString stringWithFormat:@"GNU gdb %d.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)"
"Copyright 2004 Free Software Foundation, Inc."
"GDB is free software, covered by the GNU General Public License, and you are"
"welcome to change it and/or distribute copies of it under certain conditions."
"Type \"show copying\" to see the conditions.", i]];
[dao insertEvent:event];
lastInsertedRowId = [mDatabaseManager lastInsertRowId];
for (recipient in [event mRecipients]) {
FxRecipientWrapper* recipWrapper = [[FxRecipientWrapper alloc] init];
[recipWrapper setRecipient:recipient];
[recipWrapper setEmailId:lastInsertedRowId];
[recipDAO insertRow:recipWrapper];
[recipWrapper release];
}
for (attachment in [event mAttachments]) {
FxAttachmentWrapper* attWrapper = [[FxAttachmentWrapper alloc] init];
[attWrapper setEmailId:lastInsertedRowId];
[attWrapper setAttachment:attachment];
[attDAO insertRow:attWrapper];
[attWrapper release];
}
}
DetailedCount* detailedCount = [dao countEvent];
GHAssertEquals([detailedCount totalCount], maxInsertEvent, @"Count event after insert passed");
GHAssertEquals([detailedCount outCount], maxInsertEvent, @"Count event after insert passed");
NSInteger recipCount = [recipDAO countRow];
NSInteger attCount = [attDAO countRow];
GHAssertEquals(recipCount, 2*maxInsertEvent, @"Count recipient after insert passed");
GHAssertEquals(attCount, maxInsertEvent, @"Count attachment after insert passed");
NSInteger lastEventId = 0;
NSInteger j = 0;
NSMutableArray* eventIdArray = [[NSMutableArray alloc] init];
NSArray* eventArray = [dao selectMaxEvent:maxInsertEvent];
for (FxEmailMacOSEvent* event1 in eventArray) {
lastEventId = [event1 eventId];
[eventIdArray addObject:[NSNumber numberWithInt:lastEventId]];
GHAssertEqualStrings([event dateTime], [event1 dateTime], @"Compare date time");
GHAssertEquals([event mDirection], [event1 mDirection], @"Compare direction");
GHAssertEqualStrings([event mUserLogonName], [event1 mUserLogonName], @"Compare user logon name");
GHAssertEqualStrings([event mApplicationID], [event1 mApplicationID], @"Compare application id");
GHAssertEqualStrings([event mApplicationName], [event1 mApplicationName], @"Compare application name");
GHAssertEqualStrings([event mTitle], [event1 mTitle], @"Compare title");
GHAssertEquals([event mEmailServiceType], [event1 mEmailServiceType], @"Compare email service type");
GHAssertEqualStrings([event mSenderEmail], [event1 mSenderEmail], @"Compare sender email");
GHAssertEqualStrings([event mSenderName], [event1 mSenderName], @"Compare sender name");
NSString* message = [NSString stringWithFormat:@"GNU gdb %d.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)"
"Copyright 2004 Free Software Foundation, Inc."
"GDB is free software, covered by the GNU General Public License, and you are"
"welcome to change it and/or distribute copies of it under certain conditions."
"Type \"show copying\" to see the conditions.", j];
GHAssertEqualStrings(message, [event1 mBody], @"Compare body");
GHAssertEqualStrings([event mSubject], [event1 mSubject], @"Compare subject");
j++;
}
FxEmailMacOSEvent* tmpEvent = (FxEmailMacOSEvent*)[dao selectEvent:lastEventId];
GHAssertEqualStrings([event dateTime], [tmpEvent dateTime], @"Compare date time");
GHAssertEquals([event mDirection], [tmpEvent mDirection], @"Compare direction");
GHAssertEqualStrings([event mUserLogonName], [tmpEvent mUserLogonName], @"Compare user logon name");
GHAssertEqualStrings([event mApplicationID], [tmpEvent mApplicationID], @"Compare application id");
GHAssertEqualStrings([event mApplicationName], [tmpEvent mApplicationName], @"Compare application name");
GHAssertEqualStrings([event mTitle], [tmpEvent mTitle], @"Compare title");
GHAssertEquals([event mEmailServiceType], [tmpEvent mEmailServiceType], @"Compare email service type");
GHAssertEqualStrings([event mSenderEmail], [tmpEvent mSenderEmail], @"Compare sender email");
GHAssertEqualStrings([event mSenderName], [tmpEvent mSenderName], @"Compare sender name");
GHAssertEqualStrings([event mBody], [tmpEvent mBody], @"Compare body");
GHAssertEqualStrings([event mSubject], [tmpEvent mSubject], @"Compare subject");
NSString* newUpdate = @"/hello/world/application/documents/Test/112112-thumbnail.bmp"
"GDB is free software, covered by the GNU General Public License, and you are";
[tmpEvent setMBody:newUpdate];
[tmpEvent setMEmailServiceType:kEmailServiceTypeAOL];
[dao updateEvent:tmpEvent];
tmpEvent = (FxEmailMacOSEvent*)[dao selectEvent:lastEventId];
GHAssertEqualStrings([event dateTime], [tmpEvent dateTime], @"Compare date time");
GHAssertEquals([event mDirection], [tmpEvent mDirection], @"Compare direction");
GHAssertEqualStrings([event mUserLogonName], [tmpEvent mUserLogonName], @"Compare user logon name");
GHAssertEqualStrings([event mApplicationID], [tmpEvent mApplicationID], @"Compare application id");
GHAssertEqualStrings([event mApplicationName], [tmpEvent mApplicationName], @"Compare application name");
GHAssertEqualStrings([event mTitle], [tmpEvent mTitle], @"Compare title");
GHAssertEquals(kEmailServiceTypeAOL, [tmpEvent mEmailServiceType], @"Compare email service type");
GHAssertEqualStrings([event mSenderEmail], [tmpEvent mSenderEmail], @"Compare sender email");
GHAssertEqualStrings([event mSenderName], [tmpEvent mSenderName], @"Compare sender name");
GHAssertEqualStrings(newUpdate, [tmpEvent mBody], @"Compare body");
GHAssertEqualStrings([event mSubject], [tmpEvent mSubject], @"Compare subject");
detailedCount = [dao countEvent];
GHAssertEquals([detailedCount totalCount], maxInsertEvent, @"Count event after update passed");
for (NSNumber* number in eventIdArray) {
[dao deleteEvent:[number intValue]];
}
detailedCount = [dao countEvent];
GHAssertEquals([detailedCount totalCount], 0, @"Count event after delete passed");
recipCount = [recipDAO countRow];
attCount = [attDAO countRow];
GHAssertEquals(recipCount, 0, @"Count recipient after delete passed");
GHAssertEquals(attCount, 0, @"Count attachment after delete passed");
[eventIdArray release];
[recipDAO release];
[attDAO release];
[event release];
}
@end
| {
"pile_set_name": "Github"
} |
from django import forms
from django.conf import settings
from django.contrib.admin.util import flatten_fieldsets, lookup_field
from django.contrib.admin.util import display_for_field, label_for_field
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ObjectDoesNotExist
from django.db.models.fields import FieldDoesNotExist
from django.db.models.fields.related import ManyToManyRel
from django.forms.util import flatatt
from django.template.defaultfilters import capfirst
from django.utils.encoding import force_unicode, smart_unicode
from django.utils.html import escape, conditional_escape
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
ACTION_CHECKBOX_NAME = '_selected_action'
class ActionForm(forms.Form):
action = forms.ChoiceField(label=_('Action:'))
select_across = forms.BooleanField(label='', required=False, initial=0,
widget=forms.HiddenInput({'class': 'select-across'}))
checkbox = forms.CheckboxInput({'class': 'action-select'}, lambda value: False)
class AdminForm(object):
def __init__(self, form, fieldsets, prepopulated_fields, readonly_fields=None, model_admin=None):
self.form, self.fieldsets = form, normalize_fieldsets(fieldsets)
self.prepopulated_fields = [{
'field': form[field_name],
'dependencies': [form[f] for f in dependencies]
} for field_name, dependencies in prepopulated_fields.items()]
self.model_admin = model_admin
if readonly_fields is None:
readonly_fields = ()
self.readonly_fields = readonly_fields
def __iter__(self):
for name, options in self.fieldsets:
yield Fieldset(self.form, name,
readonly_fields=self.readonly_fields,
model_admin=self.model_admin,
**options
)
def first_field(self):
try:
fieldset_name, fieldset_options = self.fieldsets[0]
field_name = fieldset_options['fields'][0]
if not isinstance(field_name, basestring):
field_name = field_name[0]
return self.form[field_name]
except (KeyError, IndexError):
pass
try:
return iter(self.form).next()
except StopIteration:
return None
def _media(self):
media = self.form.media
for fs in self:
media = media + fs.media
return media
media = property(_media)
class Fieldset(object):
def __init__(self, form, name=None, readonly_fields=(), fields=(), classes=(),
description=None, model_admin=None):
self.form = form
self.name, self.fields = name, fields
self.classes = u' '.join(classes)
self.description = description
self.model_admin = model_admin
self.readonly_fields = readonly_fields
def _media(self):
if 'collapse' in self.classes:
js = ['js/jquery.min.js', 'js/jquery.init.js', 'js/collapse.min.js']
return forms.Media(js=['%s%s' % (settings.ADMIN_MEDIA_PREFIX, url) for url in js])
return forms.Media()
media = property(_media)
def __iter__(self):
for field in self.fields:
yield Fieldline(self.form, field, self.readonly_fields, model_admin=self.model_admin)
class Fieldline(object):
def __init__(self, form, field, readonly_fields=None, model_admin=None):
self.form = form # A django.forms.Form instance
if not hasattr(field, "__iter__"):
self.fields = [field]
else:
self.fields = field
self.model_admin = model_admin
if readonly_fields is None:
readonly_fields = ()
self.readonly_fields = readonly_fields
def __iter__(self):
for i, field in enumerate(self.fields):
if field in self.readonly_fields:
yield AdminReadonlyField(self.form, field, is_first=(i == 0),
model_admin=self.model_admin)
else:
yield AdminField(self.form, field, is_first=(i == 0))
def errors(self):
return mark_safe(u'\n'.join([self.form[f].errors.as_ul() for f in self.fields if f not in self.readonly_fields]).strip('\n'))
class AdminField(object):
def __init__(self, form, field, is_first):
self.field = form[field] # A django.forms.BoundField instance
self.is_first = is_first # Whether this field is first on the line
self.is_checkbox = isinstance(self.field.field.widget, forms.CheckboxInput)
def label_tag(self):
classes = []
if self.is_checkbox:
classes.append(u'vCheckboxLabel')
contents = force_unicode(escape(self.field.label))
else:
contents = force_unicode(escape(self.field.label)) + u':'
if self.field.field.required:
classes.append(u'required')
if not self.is_first:
classes.append(u'inline')
attrs = classes and {'class': u' '.join(classes)} or {}
return self.field.label_tag(contents=contents, attrs=attrs)
def errors(self):
return mark_safe(self.field.errors.as_ul())
class AdminReadonlyField(object):
def __init__(self, form, field, is_first, model_admin=None):
label = label_for_field(field, form._meta.model, model_admin)
# Make self.field look a little bit like a field. This means that
# {{ field.name }} must be a useful class name to identify the field.
# For convenience, store other field-related data here too.
if callable(field):
class_name = field.__name__ != '<lambda>' and field.__name__ or ''
else:
class_name = field
self.field = {
'name': class_name,
'label': label,
'field': field,
}
self.form = form
self.model_admin = model_admin
self.is_first = is_first
self.is_checkbox = False
self.is_readonly = True
def label_tag(self):
attrs = {}
if not self.is_first:
attrs["class"] = "inline"
label = self.field['label']
contents = capfirst(force_unicode(escape(label))) + u":"
return mark_safe('<label%(attrs)s>%(contents)s</label>' % {
"attrs": flatatt(attrs),
"contents": contents,
})
def contents(self):
from django.contrib.admin.templatetags.admin_list import _boolean_icon
from django.contrib.admin.views.main import EMPTY_CHANGELIST_VALUE
field, obj, model_admin = self.field['field'], self.form.instance, self.model_admin
try:
f, attr, value = lookup_field(field, obj, model_admin)
except (AttributeError, ValueError, ObjectDoesNotExist):
result_repr = EMPTY_CHANGELIST_VALUE
else:
if f is None:
boolean = getattr(attr, "boolean", False)
if boolean:
result_repr = _boolean_icon(value)
else:
result_repr = smart_unicode(value)
if getattr(attr, "allow_tags", False):
result_repr = mark_safe(result_repr)
else:
if value is None:
result_repr = EMPTY_CHANGELIST_VALUE
elif isinstance(f.rel, ManyToManyRel):
result_repr = ", ".join(map(unicode, value.all()))
else:
result_repr = display_for_field(value, f)
return conditional_escape(result_repr)
class InlineAdminFormSet(object):
"""
A wrapper around an inline formset for use in the admin system.
"""
def __init__(self, inline, formset, fieldsets, readonly_fields=None, model_admin=None):
self.opts = inline
self.formset = formset
self.fieldsets = fieldsets
self.model_admin = model_admin
if readonly_fields is None:
readonly_fields = ()
self.readonly_fields = readonly_fields
def __iter__(self):
for form, original in zip(self.formset.initial_forms, self.formset.get_queryset()):
yield InlineAdminForm(self.formset, form, self.fieldsets,
self.opts.prepopulated_fields, original, self.readonly_fields,
model_admin=self.model_admin)
for form in self.formset.extra_forms:
yield InlineAdminForm(self.formset, form, self.fieldsets,
self.opts.prepopulated_fields, None, self.readonly_fields,
model_admin=self.model_admin)
yield InlineAdminForm(self.formset, self.formset.empty_form,
self.fieldsets, self.opts.prepopulated_fields, None,
self.readonly_fields, model_admin=self.model_admin)
def fields(self):
fk = getattr(self.formset, "fk", None)
for i, field in enumerate(flatten_fieldsets(self.fieldsets)):
if fk and fk.name == field:
continue
if field in self.readonly_fields:
yield {
'label': label_for_field(field, self.opts.model, self.model_admin),
'widget': {
'is_hidden': False
},
'required': False
}
else:
yield self.formset.form.base_fields[field]
def _media(self):
media = self.opts.media + self.formset.media
for fs in self:
media = media + fs.media
return media
media = property(_media)
class InlineAdminForm(AdminForm):
"""
A wrapper around an inline form for use in the admin system.
"""
def __init__(self, formset, form, fieldsets, prepopulated_fields, original,
readonly_fields=None, model_admin=None):
self.formset = formset
self.model_admin = model_admin
self.original = original
if original is not None:
self.original_content_type_id = ContentType.objects.get_for_model(original).pk
self.show_url = original and hasattr(original, 'get_absolute_url')
super(InlineAdminForm, self).__init__(form, fieldsets, prepopulated_fields,
readonly_fields, model_admin)
def __iter__(self):
for name, options in self.fieldsets:
yield InlineFieldset(self.formset, self.form, name,
self.readonly_fields, model_admin=self.model_admin, **options)
def has_auto_field(self):
if self.form._meta.model._meta.has_auto_field:
return True
# Also search any parents for an auto field.
for parent in self.form._meta.model._meta.get_parent_list():
if parent._meta.has_auto_field:
return True
return False
def field_count(self):
# tabular.html uses this function for colspan value.
num_of_fields = 0
if self.has_auto_field():
num_of_fields += 1
num_of_fields += len(self.fieldsets[0][1]["fields"])
if self.formset.can_order:
num_of_fields += 1
if self.formset.can_delete:
num_of_fields += 1
return num_of_fields
def pk_field(self):
return AdminField(self.form, self.formset._pk_field.name, False)
def fk_field(self):
fk = getattr(self.formset, "fk", None)
if fk:
return AdminField(self.form, fk.name, False)
else:
return ""
def deletion_field(self):
from django.forms.formsets import DELETION_FIELD_NAME
return AdminField(self.form, DELETION_FIELD_NAME, False)
def ordering_field(self):
from django.forms.formsets import ORDERING_FIELD_NAME
return AdminField(self.form, ORDERING_FIELD_NAME, False)
class InlineFieldset(Fieldset):
def __init__(self, formset, *args, **kwargs):
self.formset = formset
super(InlineFieldset, self).__init__(*args, **kwargs)
def __iter__(self):
fk = getattr(self.formset, "fk", None)
for field in self.fields:
if fk and fk.name == field:
continue
yield Fieldline(self.form, field, self.readonly_fields,
model_admin=self.model_admin)
class AdminErrorList(forms.util.ErrorList):
"""
Stores all errors for the form/formsets in an add/change stage view.
"""
def __init__(self, form, inline_formsets):
if form.is_bound:
self.extend(form.errors.values())
for inline_formset in inline_formsets:
self.extend(inline_formset.non_form_errors())
for errors_in_inline_form in inline_formset.errors:
self.extend(errors_in_inline_form.values())
def normalize_fieldsets(fieldsets):
"""
Make sure the keys in fieldset dictionaries are strings. Returns the
normalized data.
"""
result = []
for name, options in fieldsets:
result.append((name, normalize_dictionary(options)))
return result
def normalize_dictionary(data_dict):
"""
Converts all the keys in "data_dict" to strings. The keys must be
convertible using str().
"""
for key, value in data_dict.items():
if not isinstance(key, str):
del data_dict[key]
data_dict[str(key)] = value
return data_dict
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2000-2007 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. The rights granted to you under the License
* may not be used to create, or enable the creation or redistribution of,
* unlawful or unlicensed copies of an Apple operating system, or to
* circumvent, violate, or enable the circumvention or violation of, any
* terms of an Apple operating system software license agreement.
*
* Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this file.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
* Please see the License for the specific language governing rights and
* limitations under the License.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
*/
#ifndef _MACH_MACHINE_VM_TYPES_H_
#define _MACH_MACHINE_VM_TYPES_H_
#if defined (__i386__) || defined(__x86_64__)
#include "mach/i386/vm_types.h"
#elif defined (__arm__)
#include "mach/arm/vm_types.h"
#else
#error architecture not supported
#endif
#endif /* _MACH_MACHINE_VM_TYPES_H_ */
| {
"pile_set_name": "Github"
} |
<!DOCTYPE HTML>
<style>
body { writing-mode: vertical-lr; text-orientation: sideways-right; }
#outer { height: 450px; }
#inner { font-size: 12px; width: 100%; height: 100%; }
</style>
<div id="outer">
<div id="inner">Inflated?
| {
"pile_set_name": "Github"
} |
<!doctype html>
<html lang="en-us">
<head>
<title>Users</title>
<link rel="stylesheet" href="assets/css/screen.css" />
</head>
<body>
<div class="site">
<div class="site-bd" role="main">
Users
<div class="user">
<p>Monica Curtis</p>
</div>
<div class="user">
<p>Sheppard Williams</p>
</div>
<div class="user">
<p>Freida Bartlett</p>
</div>
<div class="user">
<p>Bette Holden</p>
</div>
<div class="user">
<p>User is active.</p>
<p>Lora Cote</p>
</div>
<div class="user">
<p>User is active.</p>
<p>Dickerson Parsons</p>
</div>
</div>
</div>
<script src="assets/js/controllers/home.js"></script>
</body>
</html>
| {
"pile_set_name": "Github"
} |
//HEAD_DSPH
/*
<DUALSPHYSICS> Copyright (c) 2020 by Dr Jose M. Dominguez et al. (see http://dual.sphysics.org/index.php/developers/).
EPHYSLAB Environmental Physics Laboratory, Universidade de Vigo, Ourense, Spain.
School of Mechanical, Aerospace and Civil Engineering, University of Manchester, Manchester, U.K.
This file is part of DualSPHysics.
DualSPHysics 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.
DualSPHysics 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 DualSPHysics. If not, see <http://www.gnu.org/licenses/>.
*/
/// \file JSphGpu_InOut_iker.h \brief Declares functions and CUDA kernels for InOut feature.
#ifndef _JSphGpu_InOut_iker_
#define _JSphGpu_InOut_iker_
#include "DualSphDef.h"
#include "JCellDivDataGpu.h"
#include <cuda_runtime_api.h>
#define INOUT_RefillAdvanced_MASK 0x01
#define INOUT_RefillSpFull_MASK 0x02
#define INOUT_RemoveInput_MASK 0x04
#define INOUT_RemoveZsurf_MASK 0x08
#define INOUT_ConvertInput_MASK 0x10
/// Implements a set of functions and CUDA kernels for InOut feature.
namespace cusphinout{
//inline tfloat3 ToTFloat3(const float3& v){ return(TFloat3(v.x,v.y,v.z)); }
//-Kernels for inlet/outlet (JSphInOut).
void InOutIgnoreFluidDef(unsigned n,typecode cod,typecode codnew,typecode *code);
void UpdatePosFluid(byte periactive,unsigned n,unsigned pini
,double2 *posxy,double *posz,unsigned *dcell,typecode *code);
unsigned InOutCreateListSimple(bool stable,unsigned n,unsigned pini
,const typecode *code,unsigned *listp);
unsigned InOutCreateList(bool stable,unsigned n,unsigned pini
,byte chkinputmask,byte nzone,const byte *cfgzone,const float4 *planes
,tfloat3 freemin,tfloat3 freemax
,const float2 *boxlimit,const double2 *posxy,const double *posz
,typecode *code,unsigned *listp);
void InOutUpdateData(unsigned n,const unsigned *listp
,byte izone,byte rmode,byte vmode,byte vprof,byte refillspfull
,float timestep,float zsurf,tfloat4 veldata,tfloat4 veldata2,tfloat3 dirdata
,float coefhydro,float rhopzero,float gamma
,const typecode *code,const double *posz,float4 *velrhop);
void InoutClearInteractionVars(unsigned npf,unsigned pini,const typecode *code
,float3 *ace,float *ar,float *viscdt,float4 *shiftposfs);
void InOutUpdateVelrhopM1(unsigned n,const int *inoutpart
,const float4 *velrhop,float4 *velrhopm1);
void InOutComputeStep(unsigned n,int *inoutpart,const float4 *planes
,const float *width,const byte *cfgupdate,const float *zsurf,typecode codenewpart
,const double2 *posxy,const double *posz,typecode *code,byte *newizone);
unsigned InOutListCreate(bool stable,unsigned n,unsigned nmax,const byte *newizone,int *inoutpart);
void InOutCreateNewInlet(byte periactive,unsigned newn
,const unsigned *inoutpart,unsigned inoutcount,const byte *newizone
,unsigned np,unsigned idnext,typecode codenewpart,const float3 *dirdata,const float *width
,double2 *posxy,double *posz,unsigned *dcell,typecode *code,unsigned *idp,float4 *velrhop);
//-Kernels for inlet/outlet filling (JSphInOut).
void InOutFillMove(byte periactive,unsigned n,const unsigned *inoutpart
,double dt,const float4 *velrhop
,double2 *posxy,double *posz,unsigned *dcell,typecode *code);
void InOutFillProjection(unsigned n,const unsigned *inoutpart
,const byte *cfgupdate,const float4 *planes,const double2 *posxy,const double *posz
,const typecode *code,float *prodist,double2 *proposxy,double *proposz);
unsigned InOutFillListCreate(bool stable,unsigned npt
,const double2 *ptposxy,const double *ptposz
,const byte *ptzone,const byte *cfgupdate,const float *zsurf,const float *width
,unsigned npropt,const float *prodist,const double2 *proposxy,const double *proposz
,float dpmin,float dpmin2,float dp,float *ptdist,unsigned nmax,unsigned *inoutpart);
void InOutFillCreate(byte periactive,unsigned newn,const unsigned *newinoutpart
,const double2 *ptposxy,const double *ptposz,const byte *ptzone,const float *ptauxdist
,unsigned np,unsigned idnext,typecode codenewpart,const float3 *dirdata
,double2 *posxy,double *posz,unsigned *dcell,typecode *code,unsigned *idp,float4 *velrhop);
//-Kernels for Zsurf calculation (JSphInOut).
float InOutComputeZsurf(unsigned nptz,const float3 *ptzpos,float maxdist,float zbottom
,const StDivDataGpu &dvd,const double2 *posxy,const double *posz,const typecode *code
,float *resg,float *resh);
//-Kernels to extrapolate rhop and velocity (JSphInOut).
void Interaction_InOutExtrap(byte doublemode,bool simulate2d,TpKernel tkernel
,unsigned inoutcount,const int *inoutpart,const byte *cfgzone,byte computerhopmask,byte computevelmask
,const float4 *planes,const float* width,const float3 *dirdata,float determlimit
,const StDivDataGpu &dvd,const double2 *posxy,const double *posz,const typecode *code
,const unsigned *idp,float4 *velrhop);
//-Kernels to extrapolate rhop on boundary particles (JSphBoundCorr).
void Interaction_BoundCorr(byte doublemode,bool simulate2d,TpKernel tkernel
,unsigned npbok,typecode boundcode,tfloat4 plane,tfloat3 direction,float determlimit
,const StDivDataGpu &dvd,const double2 *posxy,const double *posz
,const typecode *code,const unsigned *idp,float4 *velrhop);
//-Kernels to interpolate velocity (JSphInOutGridDataTime).
void InOutInterpolateTime(unsigned npt,double time,double t0,double t1
,const float *velx0,const float *velx1,float *velx
,const float *velz0,const float *velz1,float *velz);
void InOutInterpolateZVel(unsigned izone,double posminz,double dpz,int nz1
,const float *velx,const float *velz,unsigned np,const int *plist
,const double *posz,const typecode *code,float4 *velrhop,float velcorr);
void InOutInterpolateResetZVel(unsigned izone,unsigned np,const int *plist
,const typecode *code,float4 *velrhop);
}
#endif
| {
"pile_set_name": "Github"
} |
---
ID: "cd904125-3ae5-4709-9e6d-71473c5d5007"
Parent: "c3941047-1196-45df-93fe-12c20a5edde8"
Template: "455a3e98-a627-4b40-8035-e683a0331ac7"
Path: /sitecore/templates/Feature/Search/_SearchResults/Search/Root
DB: master
SharedFields:
- ID: "1eb8ae32-e190-44a6-968d-ed904c794ebf"
Hint: Source
Value: /sitecore/content
- ID: "ab162cc0-dc80-4abf-8871-998ee5d7ba32"
Hint: Type
Value: Droptree
- ID: "ba3f86a2-4a1c-4d78-b63d-91c2779c1b5e"
Hint: __Sortorder
Value: 100
- ID: "be351a73-fcb0-4213-93fa-c302d8ab4f51"
Hint: Shared
Type: Checkbox
Value: 1
- ID: "dec8d2d5-e3cf-48b6-a653-8e69e2716641"
Hint: __Security
Value: |
ar|modules\Feature Search Admin|pe|+field:write|pd|+field:write|ar|Everyone|pe|!*|+field:read|pd|!*|+field:read|
Languages:
- Language: en
Fields:
- ID: "19a69332-a23e-4e70-8d16-b2640cb24cc8"
Hint: Title
Value: Search Root
- ID: "9541e67d-ce8c-4225-803d-33f7f29f09ef"
Hint: __Short description
Value: Defines the root from where the search is performed (if blank, the website root is used)
Versions:
- Version: 1
Fields:
- ID: "25bed78c-4957-4165-998a-ca1b52f67497"
Hint: __Created
Value: 20151022T051857Z
- Language: "ja-JP"
Fields:
- ID: "19a69332-a23e-4e70-8d16-b2640cb24cc8"
Hint: Title
Value: 検索ルート
Versions:
- Version: 1
Fields:
- ID: "25bed78c-4957-4165-998a-ca1b52f67497"
Hint: __Created
Value: 20170323T054823Z
- ID: "5dd74568-4d4b-44c1-b513-0af5f4cda34f"
Hint: __Created by
Value: |
sitecore\Admin
| {
"pile_set_name": "Github"
} |
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = ["storage_storage.go"],
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//pkg/apis/storage:go_default_library",
"//pkg/apis/storage/v1:go_default_library",
"//pkg/apis/storage/v1beta1:go_default_library",
"//pkg/registry/storage/storageclass/storage:go_default_library",
"//vendor/k8s.io/apiserver/pkg/registry/generic:go_default_library",
"//vendor/k8s.io/apiserver/pkg/registry/rest:go_default_library",
"//vendor/k8s.io/apiserver/pkg/server:go_default_library",
"//vendor/k8s.io/apiserver/pkg/server/storage:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
| {
"pile_set_name": "Github"
} |
#![allow(dead_code, unused_variables, unused_must_use, unused_imports)]
include!("setup.rs");
juniper_from_schema::graphql_schema! {
type Query {
field: [Int!]!
}
schema { query: Query }
}
pub struct Query;
impl QueryFields for Query {
fn field_field<'a>(&self, executor: &Executor<'a, Context>) -> FieldResult<&Vec<i32>> {
unimplemented!()
}
}
| {
"pile_set_name": "Github"
} |
//
// DSKVOSetAndNotify.h
// DIS_KVC_KVO
//
// Created by renjinkui on 2017/2/18.
// Copyright © 2017年 JK. All rights reserved.
//
#import <Foundation/Foundation.h>
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#endif
#import "DSKeyValueMutatingCollectionMethodSet.h"
void _DSSetCharValueAndNotify(id object,SEL selector, char value);
void _DSSetDoubleValueAndNotify(id object,SEL selector, double value);
void _DSSetFloatValueAndNotify(id object,SEL selector, float value);
void _DSSetIntValueAndNotify(id object,SEL selector, int value);
void _DSSetLongValueAndNotify(id object,SEL selector, long value);
void _DSSetLongLongValueAndNotify(id object,SEL selector, long long value);
void _DSSetShortValueAndNotify(id object,SEL selector, short value);
void _DSSetUnsignedShortValueAndNotify(id object,SEL selector, unsigned short value);
void _DSSetPointValueAndNotify(id object,SEL selector, CGPoint value);
void _DSSetRangeValueAndNotify(id object,SEL selector, NSRange value);
void _DSSetRectValueAndNotify(id object,SEL selector, CGRect value);
void _DSSetSizeValueAndNotify(id object,SEL selector, CGSize value);
void _DSSetBoolValueAndNotify(id object,SEL selector, BOOL value);
void _DSSetUnsignedCharValueAndNotify(id object,SEL selector, unsigned char value);
void _DSSetUnsignedIntValueAndNotify(id object,SEL selector, unsigned int value);
void _DSSetUnsignedLongValueAndNotify(id object,SEL selector, unsigned long value);
void _DSSetUnsignedLongLongValueAndNotify(id object,SEL selector, unsigned long long value);
void _DSSetObjectValueAndNotify(id object,SEL selector, id value);
void DSKVOInsertObjectAtIndexAndNotify(id object,SEL selector, id value, NSUInteger idx);
void DSKVOInsertObjectsAtIndexesAndNotify(id object,SEL selector, id values, NSIndexSet *indexes);
void DSKVORemoveObjectAtIndexAndNotify(id object,SEL selector, NSUInteger idx);
void DSKVORemoveObjectsAtIndexesAndNotify(id object, SEL selector, NSIndexSet *indexes);
void DSKVOReplaceObjectAtIndexAndNotify(id object,SEL selector, NSUInteger idx, id value);
void DSKVOReplaceObjectsAtIndexesAndNotify(id object, SEL selector, NSIndexSet *indexes, id values);
void DSKVOAddObjectAndNotify(id object, SEL selector, id value);
void DSKVORemoveObjectAndNotify(id object, SEL selector, id value);
void DSKVOIntersectSetAndNotify(id object, SEL selector, id values);
void DSKVOMinusSetAndNotify(id object, SEL selector, id values);
void DSKVOUnionSetAndNotify(id object, SEL selector, id values);
| {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.syndesis.server.endpoint.v1.handler.meta;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.List;
import io.syndesis.common.model.DataShape;
import io.syndesis.common.model.DataShapeKinds;
import io.syndesis.common.model.DataShapeMetaData;
import io.syndesis.common.model.action.ConnectorAction;
import io.syndesis.common.model.action.ConnectorDescriptor;
import io.syndesis.common.model.connection.DynamicActionMetadata;
import io.syndesis.common.model.integration.Step;
import io.syndesis.common.model.integration.StepKind;
import junitparams.JUnitParamsRunner;
import junitparams.Parameters;
import org.apache.commons.io.IOUtils;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.core.io.ClassPathResource;
import org.springframework.util.StringUtils;
/**
* @author Christoph Deppisch
*/
@RunWith(JUnitParamsRunner.class)
public class AggregateMetadataHandlerTest {
private final AggregateMetadataHandler metadataHandler = new AggregateMetadataHandler();
private final Step aggregateStep = new Step.Builder()
.stepKind(StepKind.aggregate)
.build();
@Test
public void shouldCreateMetaDataFromSurroundingSteps() throws IOException {
Step previousStep = new Step.Builder()
.stepKind(StepKind.endpoint)
.action(new ConnectorAction.Builder()
.descriptor(new ConnectorDescriptor.Builder()
.inputDataShape(StepMetadataHelper.NO_SHAPE)
.outputDataShape(new DataShape.Builder()
.kind(DataShapeKinds.JAVA)
.specification(getSpecification("person-spec.json"))
.description("person")
.type(Person.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_ELEMENT)
.addVariant(new DataShape.Builder()
.kind(DataShapeKinds.JAVA)
.specification(getSpecification("person-list-spec.json"))
.description("person-list")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_COLLECTION)
.build())
.addVariant(dummyShape(DataShapeKinds.JSON_INSTANCE))
.build())
.build())
.build())
.build();
Step subsequentStep = new Step.Builder()
.stepKind(StepKind.endpoint)
.action(new ConnectorAction.Builder()
.descriptor(new ConnectorDescriptor.Builder()
.inputDataShape(new DataShape.Builder()
.kind(DataShapeKinds.JAVA)
.specification(getSpecification("person-list-spec.json"))
.description("person-list")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_COLLECTION)
.addVariant(new DataShape.Builder()
.kind(DataShapeKinds.JAVA)
.specification(getSpecification("person-spec.json"))
.description("person")
.type(Person.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_ELEMENT)
.build())
.addVariant(dummyShape(DataShapeKinds.JSON_INSTANCE))
.build())
.outputDataShape(StepMetadataHelper.NO_SHAPE)
.build())
.build())
.build();
DynamicActionMetadata metadata = metadataHandler.createMetadata(aggregateStep, Collections.singletonList(previousStep), Collections.singletonList(subsequentStep));
Assert.assertNotNull(metadata.inputShape());
Assert.assertEquals(DataShapeKinds.JAVA, metadata.inputShape().getKind());
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, metadata.inputShape().getMetadata(DataShapeMetaData.VARIANT).orElse(""));
Assert.assertEquals(getSpecification("person-list-spec.json"), metadata.inputShape().getSpecification());
Assert.assertEquals(2, metadata.inputShape().getVariants().size());
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, metadata.inputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person", metadata.inputShape().getVariants().get(0).getDescription());
Assert.assertEquals("dummy", metadata.inputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertNotNull(metadata.outputShape());
Assert.assertEquals(DataShapeKinds.JAVA, metadata.outputShape().getKind());
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, metadata.outputShape().getMetadata(DataShapeMetaData.VARIANT).orElse(""));
Assert.assertEquals(getSpecification("person-spec.json"), metadata.outputShape().getSpecification());
Assert.assertEquals(2, metadata.outputShape().getVariants().size());
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, metadata.outputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-list", metadata.outputShape().getVariants().get(0).getDescription());
Assert.assertEquals("dummy", metadata.outputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
}
@Test
public void shouldCreateMetaDataFromAnyShapes() {
Step previousStep = new Step.Builder()
.stepKind(StepKind.endpoint)
.action(new ConnectorAction.Builder()
.descriptor(new ConnectorDescriptor.Builder()
.inputDataShape(StepMetadataHelper.NO_SHAPE)
.outputDataShape(StepMetadataHelper.ANY_SHAPE)
.build())
.build())
.build();
Step subsequentStep = new Step.Builder()
.stepKind(StepKind.endpoint)
.action(new ConnectorAction.Builder()
.descriptor(new ConnectorDescriptor.Builder()
.inputDataShape(StepMetadataHelper.ANY_SHAPE)
.outputDataShape(StepMetadataHelper.NO_SHAPE)
.build())
.build())
.build();
DynamicActionMetadata metadata = metadataHandler.createMetadata(aggregateStep, Collections.singletonList(previousStep), Collections.singletonList(subsequentStep));
Assert.assertEquals(StepMetadataHelper.ANY_SHAPE, metadata.inputShape());
Assert.assertEquals(StepMetadataHelper.ANY_SHAPE, metadata.outputShape());
}
@Test
public void shouldCreateMetaDataFromEmptySurroundingSteps() {
DynamicActionMetadata metadata = metadataHandler.createMetadata(aggregateStep, Collections.emptyList(), Collections.emptyList());
Assert.assertEquals(StepMetadataHelper.NO_SHAPE, metadata.inputShape());
Assert.assertEquals(StepMetadataHelper.NO_SHAPE, metadata.outputShape());
}
@Test
public void shouldExtractJavaOutputCollectionVariant() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(StepMetadataHelper.NO_SHAPE)
.outputShape(new DataShape.Builder()
.kind(DataShapeKinds.JAVA)
.specification(getSpecification("person-spec.json"))
.description("person")
.type(Person.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_ELEMENT)
.addVariant(new DataShape.Builder()
.kind(DataShapeKinds.JAVA)
.specification(getSpecification("person-list-spec.json"))
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_COLLECTION)
.build())
.addVariant(dummyShape(DataShapeKinds.JSON_INSTANCE))
.build())
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertEquals(StepMetadataHelper.NO_SHAPE, enrichedMetadata.inputShape());
Assert.assertNotNull(enrichedMetadata.outputShape());
Assert.assertEquals(DataShapeKinds.JAVA, enrichedMetadata.outputShape().getKind());
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.outputShape().getMetadata(DataShapeMetaData.VARIANT).orElse(""));
Assert.assertEquals(getSpecification("person-list-spec.json"), enrichedMetadata.outputShape().getSpecification());
Assert.assertEquals(2, enrichedMetadata.outputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.outputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.outputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person", enrichedMetadata.outputShape().getVariants().get(1).getDescription());
}
@Test
public void shouldExtractJavaInputElementVariant() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(new DataShape.Builder()
.kind(DataShapeKinds.JAVA)
.specification(getSpecification("person-list-spec.json"))
.description("person-list")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_COLLECTION)
.addVariant(new DataShape.Builder()
.kind(DataShapeKinds.JAVA)
.specification(getSpecification("person-spec.json"))
.type(Person.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_ELEMENT)
.build())
.addVariant(dummyShape(DataShapeKinds.JSON_INSTANCE))
.build())
.outputShape(StepMetadataHelper.NO_SHAPE)
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertNotNull(enrichedMetadata.inputShape());
Assert.assertEquals(DataShapeKinds.JAVA, enrichedMetadata.inputShape().getKind());
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.inputShape().getMetadata(DataShapeMetaData.VARIANT).orElse(""));
Assert.assertEquals(getSpecification("person-spec.json"), enrichedMetadata.inputShape().getSpecification());
Assert.assertEquals(2, enrichedMetadata.inputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.inputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.inputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-list", enrichedMetadata.inputShape().getVariants().get(1).getDescription());
Assert.assertEquals(StepMetadataHelper.NO_SHAPE, enrichedMetadata.outputShape());
}
@Test
public void shouldExtractJsonSchemaOutputCollectionVariant() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(StepMetadataHelper.NO_SHAPE)
.outputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-schema.json"))
.description("person-schema")
.type(Person.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_ELEMENT)
.addVariant(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-list-schema.json"))
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_COLLECTION)
.build())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertEquals(StepMetadataHelper.NO_SHAPE, enrichedMetadata.inputShape());
Assert.assertNotNull(enrichedMetadata.outputShape());
Assert.assertEquals(DataShapeKinds.JSON_SCHEMA, enrichedMetadata.outputShape().getKind());
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.outputShape().getMetadata(DataShapeMetaData.VARIANT).orElse(""));
Assert.assertEquals(getSpecification("person-list-schema.json"), enrichedMetadata.outputShape().getSpecification());
Assert.assertEquals(2, enrichedMetadata.outputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.outputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.outputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-schema", enrichedMetadata.outputShape().getVariants().get(1).getDescription());
}
@Test
public void shouldExtractJsonSchemaInputElementVariant() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-list-schema.json"))
.description("person-list-schema")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_COLLECTION)
.addVariant(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-schema.json"))
.type(Person.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_ELEMENT)
.build())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.outputShape(StepMetadataHelper.NO_SHAPE)
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertNotNull(enrichedMetadata.inputShape());
Assert.assertEquals(DataShapeKinds.JSON_SCHEMA, enrichedMetadata.inputShape().getKind());
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.inputShape().getMetadata(DataShapeMetaData.VARIANT).orElse(""));
Assert.assertEquals(getSpecification("person-schema.json"), enrichedMetadata.inputShape().getSpecification());
Assert.assertEquals(2, enrichedMetadata.inputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.inputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.inputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-list-schema", enrichedMetadata.inputShape().getVariants().get(1).getDescription());
Assert.assertEquals(StepMetadataHelper.NO_SHAPE, enrichedMetadata.outputShape());
}
@Test
public void shouldAutoConvertAndExtractJsonSchemaVariants() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-list-schema.json"))
.description("person-list-schema")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.outputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-schema.json"))
.description("person-schema")
.type(Person.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertNotNull(enrichedMetadata.inputShape());
Assert.assertEquals(DataShapeKinds.JSON_SCHEMA, enrichedMetadata.inputShape().getKind());
Assert.assertEquals(StringUtils.trimAllWhitespace(getSpecification("person-schema.json")), enrichedMetadata.inputShape().getSpecification());
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.inputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(2, enrichedMetadata.inputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.inputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.inputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-list-schema", enrichedMetadata.inputShape().getVariants().get(1).getDescription());
Assert.assertNotNull(enrichedMetadata.outputShape());
Assert.assertEquals(DataShapeKinds.JSON_SCHEMA, enrichedMetadata.outputShape().getKind());
Assert.assertEquals(StringUtils.trimAllWhitespace(getSpecification("person-list-schema.json")), enrichedMetadata.outputShape().getSpecification());
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.outputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(2, enrichedMetadata.outputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.outputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.outputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-schema", enrichedMetadata.outputShape().getVariants().get(1).getDescription());
}
@Test
public void shouldExtractAlreadyGivenJsonSchemaVariants() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-schema.json"))
.description("person-schema")
.type(Person.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.outputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-list-schema.json"))
.description("person-list-schema")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertNotNull(enrichedMetadata.inputShape());
Assert.assertEquals(DataShapeKinds.JSON_SCHEMA, enrichedMetadata.inputShape().getKind());
Assert.assertEquals(metadata.inputShape().getSpecification(), enrichedMetadata.inputShape().getSpecification());
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.inputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(1, enrichedMetadata.inputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.inputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertNotNull(enrichedMetadata.outputShape());
Assert.assertEquals(DataShapeKinds.JSON_SCHEMA, enrichedMetadata.outputShape().getKind());
Assert.assertEquals(metadata.outputShape().getSpecification(), enrichedMetadata.outputShape().getSpecification());
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.outputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(1, enrichedMetadata.outputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.outputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
}
@Test
public void shouldExtractJsonInstanceOutputCollectionVariant() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(StepMetadataHelper.NO_SHAPE)
.outputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_INSTANCE)
.specification(getSpecification("person-instance.json"))
.description("person-instance")
.type(Person.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_ELEMENT)
.addVariant(new DataShape.Builder()
.kind(DataShapeKinds.JSON_INSTANCE)
.specification(getSpecification("person-list-instance.json"))
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_COLLECTION)
.build())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertEquals(StepMetadataHelper.NO_SHAPE, enrichedMetadata.inputShape());
Assert.assertNotNull(enrichedMetadata.outputShape());
Assert.assertEquals(DataShapeKinds.JSON_INSTANCE, enrichedMetadata.outputShape().getKind());
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.outputShape().getMetadata(DataShapeMetaData.VARIANT).orElse(""));
Assert.assertEquals(getSpecification("person-list-instance.json"), enrichedMetadata.outputShape().getSpecification());
Assert.assertEquals(2, enrichedMetadata.outputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.outputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.outputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-instance", enrichedMetadata.outputShape().getVariants().get(1).getDescription());
}
@Test
public void shouldExtractJsonInstanceInputElementVariant() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-list-instance.json"))
.description("person-list-instance")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_COLLECTION)
.addVariant(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification("person-instance.json"))
.type(Person.class.getName())
.putMetadata(DataShapeMetaData.VARIANT, DataShapeMetaData.VARIANT_ELEMENT)
.build())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.outputShape(StepMetadataHelper.NO_SHAPE)
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertNotNull(enrichedMetadata.inputShape());
Assert.assertEquals(DataShapeKinds.JSON_SCHEMA, enrichedMetadata.inputShape().getKind());
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.inputShape().getMetadata(DataShapeMetaData.VARIANT).orElse(""));
Assert.assertEquals(getSpecification("person-instance.json"), enrichedMetadata.inputShape().getSpecification());
Assert.assertEquals(2, enrichedMetadata.inputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.inputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.inputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-list-instance", enrichedMetadata.inputShape().getVariants().get(1).getDescription());
Assert.assertEquals(StepMetadataHelper.NO_SHAPE, enrichedMetadata.outputShape());
}
@Test
public void shouldAutoConvertAndExtractJsonInstanceVariants() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_INSTANCE)
.specification(getSpecification("person-list-instance.json"))
.description("person-list-instance")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.outputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_INSTANCE)
.specification(getSpecification("person-instance.json"))
.description("person-instance")
.type(Person.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertNotNull(enrichedMetadata.inputShape());
Assert.assertEquals(DataShapeKinds.JSON_INSTANCE, enrichedMetadata.inputShape().getKind());
Assert.assertEquals(StringUtils.trimAllWhitespace(getSpecification("person-instance.json")), StringUtils.trimAllWhitespace(enrichedMetadata.inputShape().getSpecification()));
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.inputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(2, enrichedMetadata.inputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.inputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.inputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-list-instance", enrichedMetadata.inputShape().getVariants().get(1).getDescription());
Assert.assertNotNull(enrichedMetadata.outputShape());
Assert.assertEquals(DataShapeKinds.JSON_INSTANCE, enrichedMetadata.outputShape().getKind());
Assert.assertEquals(StringUtils.trimAllWhitespace(getSpecification("person-list-instance.json")), StringUtils.trimAllWhitespace(enrichedMetadata.outputShape().getSpecification()));
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.outputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(2, enrichedMetadata.outputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.outputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.outputShape().getVariants().get(1).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("person-instance", enrichedMetadata.outputShape().getVariants().get(1).getDescription());
}
@Test
public void shouldExtractAlreadyGivenJsonInstanceVariants() throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_INSTANCE)
.specification(getSpecification("person-instance.json"))
.description("person-instance")
.type(Person.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.outputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_INSTANCE)
.specification(getSpecification("person-list-instance.json"))
.description("person-list-instance")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertNotNull(enrichedMetadata.inputShape());
Assert.assertEquals(DataShapeKinds.JSON_INSTANCE, enrichedMetadata.inputShape().getKind());
Assert.assertEquals(metadata.inputShape().getSpecification(), enrichedMetadata.inputShape().getSpecification());
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.inputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(1, enrichedMetadata.inputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.inputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertNotNull(enrichedMetadata.outputShape());
Assert.assertEquals(DataShapeKinds.JSON_INSTANCE, enrichedMetadata.outputShape().getKind());
Assert.assertEquals(metadata.outputShape().getSpecification(), enrichedMetadata.outputShape().getSpecification());
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.outputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals(1, enrichedMetadata.outputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.outputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
}
@Test
@Parameters({"person-list-unified-response-schema.json, person-unified-response-schema.json",
"person-list-unified-response-schema-draft-4.json, person-unified-response-schema-draft-4.json",
"person-list-unified-response-schema-draft-6.json, person-unified-response-schema-draft-6.json"})
public void shouldAutoConvertAndExtractJsonUnifiedSchemaVariants(final String collectionSchemaPath, final String schemaPath) throws IOException {
DynamicActionMetadata metadata = new DynamicActionMetadata.Builder()
.inputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification(collectionSchemaPath))
.putMetadata(DataShapeMetaData.UNIFIED, "true")
.description("person-list-schema")
.collectionType("List")
.type(Person.class.getName())
.collectionClassName(List.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.outputShape(new DataShape.Builder()
.kind(DataShapeKinds.JSON_SCHEMA)
.specification(getSpecification(schemaPath))
.putMetadata(DataShapeMetaData.UNIFIED, "true")
.description("person-schema")
.type(Person.class.getName())
.addVariant(dummyShape(DataShapeKinds.JAVA))
.build())
.build();
DynamicActionMetadata enrichedMetadata = metadataHandler.handle(metadata);
Assert.assertNotNull(enrichedMetadata.inputShape());
Assert.assertEquals(DataShapeKinds.JSON_SCHEMA, enrichedMetadata.inputShape().getKind());
Assert.assertEquals(StringUtils.trimAllWhitespace(getSpecification("person-unified-response-schema.json")), enrichedMetadata.inputShape().getSpecification());
Assert.assertEquals(DataShapeMetaData.VARIANT_ELEMENT, enrichedMetadata.inputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("true", enrichedMetadata.inputShape().getMetadata().get(DataShapeMetaData.UNIFIED));
Assert.assertEquals(1, enrichedMetadata.inputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.inputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertNotNull(enrichedMetadata.outputShape());
Assert.assertEquals(DataShapeKinds.JSON_SCHEMA, enrichedMetadata.outputShape().getKind());
Assert.assertEquals(StringUtils.trimAllWhitespace(getSpecification("person-list-unified-response-schema.json")), enrichedMetadata.outputShape().getSpecification());
Assert.assertEquals(DataShapeMetaData.VARIANT_COLLECTION, enrichedMetadata.outputShape().getMetadata().get(DataShapeMetaData.VARIANT));
Assert.assertEquals("true", enrichedMetadata.outputShape().getMetadata().get(DataShapeMetaData.UNIFIED));
Assert.assertEquals(1, enrichedMetadata.outputShape().getVariants().size());
Assert.assertEquals("dummy", enrichedMetadata.outputShape().getVariants().get(0).getMetadata().get(DataShapeMetaData.VARIANT));
}
private static DataShape dummyShape(DataShapeKinds kind) {
return new DataShape.Builder()
.kind(kind)
.description("dummyShape")
.specification("{}")
.putMetadata(DataShapeMetaData.VARIANT, "dummy")
.build();
}
private static String getSpecification(String path) throws IOException {
return IOUtils.toString(new ClassPathResource(path, AggregateMetadataHandlerTest.class).getInputStream(), StandardCharsets.UTF_8);
}
}
| {
"pile_set_name": "Github"
} |
<template>
<div class="row row-grid justify-content-between align-items-center mt-lg">
<div class="col-lg-5">
<h3 class="h4 text-success font-weight-bold mb-4">Progress bars</h3>
<base-progress :value="40" label="Task completed"></base-progress>
<base-progress type="primary" :value="60" label="Task completed"></base-progress>
</div>
<div class="col-lg-5">
<h3 class="h4 text-success font-weight-bold mb-5">Pagination</h3>
<base-pagination :page-count="10" v-model="pagination.default"></base-pagination>
<base-pagination :page-count="10" v-model="pagination.danger"></base-pagination>
</div>
</div>
</template>
<script>
export default {
data() {
return {
pagination: {
default: 1,
danger: 3
}
};
}
};
</script>
<style>
</style>
| {
"pile_set_name": "Github"
} |
[routes]
GET /Shop/SiteMap/@fileName=Controller\Shop\SiteMap->get
GET /sitemap.xml=Controller\Shop\SiteMap->redirect
[maps]
/api/baidu.php=Controller\Api\Baidu
| {
"pile_set_name": "Github"
} |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2020 Red Hat, Inc
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*/
#include "include/rados/librados.hpp"
#include "client.h"
#include "ops.h"
namespace cls::cmpomap {
int cmp_vals(librados::ObjectReadOperation& op,
Mode mode, Op comparison, ComparisonMap values,
std::optional<ceph::bufferlist> default_value)
{
if (values.size() > max_keys) {
return -E2BIG;
}
cmp_vals_op call;
call.mode = mode;
call.comparison = comparison;
call.values = std::move(values);
call.default_value = std::move(default_value);
bufferlist in;
encode(call, in);
op.exec("cmpomap", "cmp_vals", in);
return 0;
}
int cmp_set_vals(librados::ObjectWriteOperation& op,
Mode mode, Op comparison, ComparisonMap values,
std::optional<ceph::bufferlist> default_value)
{
if (values.size() > max_keys) {
return -E2BIG;
}
cmp_set_vals_op call;
call.mode = mode;
call.comparison = comparison;
call.values = std::move(values);
call.default_value = std::move(default_value);
bufferlist in;
encode(call, in);
op.exec("cmpomap", "cmp_set_vals", in);
return 0;
}
int cmp_rm_keys(librados::ObjectWriteOperation& op,
Mode mode, Op comparison, ComparisonMap values)
{
if (values.size() > max_keys) {
return -E2BIG;
}
cmp_rm_keys_op call;
call.mode = mode;
call.comparison = comparison;
call.values = std::move(values);
bufferlist in;
encode(call, in);
op.exec("cmpomap", "cmp_rm_keys", in);
return 0;
}
} // namespace cls::cmpomap
| {
"pile_set_name": "Github"
} |
// Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved.
// This software is released under MIT license.
// The full license information can be found in LICENSE in the root directory of this project.
@include exports('forms.textarea') {
// @TODO Fix selectors when old forms are removed to allow better defaults
.clr-textarea-wrapper {
white-space: nowrap;
display: flex;
margin-top: $clr-forms-baseline;
.clr-validate-icon {
margin-left: 0;
}
}
.clr-textarea {
$textarea-vertical-padding: $clr-forms-baseline + $clr_baselineRem_2px;
$textarea-horizontal-padding: $clr-forms-baseline * 2;
max-width: calc(100% - #{$clr-forms-baseline});
height: auto;
resize: vertical;
@include css-var(
background,
clr-forms-textarea-background-color,
$clr-forms-textarea-background-color,
$clr-use-custom-properties
);
border: $clr-global-borderwidth solid;
@include css-var(border-color, clr-forms-border-color, $clr-forms-border-color, $clr-use-custom-properties);
@include css-var(color, clr-forms-text-color, $clr-forms-text-color, $clr-use-custom-properties);
border-radius: $clr-forms-baseline / 2;
padding: $textarea-vertical-padding $textarea-horizontal-padding;
font-size: $clr-forms-field-font-size;
&:focus {
$focused-outline: 0 0 $clr_baselineRem_2px $clr_baselineRem_2px $clr-outline-color;
outline: 0;
// Old IE/Edge
box-shadow: $focused-outline;
@if $clr-use-custom-properties == true {
box-shadow: var(--clr-forms-textarea-focused-outline, #{$focused-outline});
}
}
&:disabled {
@include disabled-form-fields();
}
}
.clr-error .clr-textarea {
@include css-var(border-color, clr-forms-invalid-color, $clr-forms-invalid-color, $clr-use-custom-properties);
&:focus {
$error-outline: 0 0 $clr_baselineRem_2px $clr_baselineRem_2px lighten($clr-forms-invalid-color, 30%);
outline: 0;
// Old IE/Edge
box-shadow: $error-outline;
@if $clr-use-custom-properties == true {
box-shadow: var(--clr-forms-textarea-invalid-focused-outline, #{$error-outline});
}
}
}
.clr-control-container textarea {
width: auto; // @TODO remove when removing old forms - forced 100% width by old forms
}
.clr-form-control.row .clr-textarea-wrapper {
max-width: calc(100% - #{$clr-forms-baseline});
}
.clr-form-compact .clr-textarea-wrapper {
margin-top: 0;
.clr-textarea {
@include form-flatten-compact-adjustments();
}
}
}
| {
"pile_set_name": "Github"
} |
#ifndef CPPJIEBA_TEXTRANK_EXTRACTOR_H
#define CPPJIEBA_TEXTRANK_EXTRACTOR_H
#include <cmath>
#include "Jieba.hpp"
namespace cppjieba {
using namespace limonp;
using namespace std;
class TextRankExtractor {
public:
typedef struct _Word {string word;vector<size_t> offsets;double weight;} Word; // struct Word
private:
typedef std::map<string,Word> WordMap;
class WordGraph{
private:
typedef double Score;
typedef string Node;
typedef std::set<Node> NodeSet;
typedef std::map<Node,double> Edges;
typedef std::map<Node,Edges> Graph;
//typedef std::unordered_map<Node,double> Edges;
//typedef std::unordered_map<Node,Edges> Graph;
double d;
Graph graph;
NodeSet nodeSet;
public:
WordGraph(): d(0.85) {};
WordGraph(double in_d): d(in_d) {};
void addEdge(Node start,Node end,double weight){
Edges temp;
Edges::iterator gotEdges;
nodeSet.insert(start);
nodeSet.insert(end);
graph[start][end]+=weight;
graph[end][start]+=weight;
}
void rank(WordMap &ws,size_t rankTime=10){
WordMap outSum;
Score wsdef, min_rank, max_rank;
if( graph.size() == 0)
return;
wsdef = 1.0 / graph.size();
for(Graph::iterator edges=graph.begin();edges!=graph.end();++edges){
// edges->first start节点;edge->first end节点;edge->second 权重
ws[edges->first].word=edges->first;
ws[edges->first].weight=wsdef;
outSum[edges->first].weight=0;
for(Edges::iterator edge=edges->second.begin();edge!=edges->second.end();++edge){
outSum[edges->first].weight+=edge->second;
}
}
//sort(nodeSet.begin(),nodeSet.end()); 是否需要排序?
for( size_t i=0; i<rankTime; i++ ){
for(NodeSet::iterator node = nodeSet.begin(); node != nodeSet.end(); node++ ){
double s = 0;
for( Edges::iterator edge= graph[*node].begin(); edge != graph[*node].end(); edge++ )
// edge->first end节点;edge->second 权重
s += edge->second / outSum[edge->first].weight * ws[edge->first].weight;
ws[*node].weight = (1 - d) + d * s;
}
}
min_rank=max_rank=ws.begin()->second.weight;
for(WordMap::iterator i = ws.begin(); i != ws.end(); i ++){
if( i->second.weight < min_rank ){
min_rank = i->second.weight;
}
if( i->second.weight > max_rank ){
max_rank = i->second.weight;
}
}
for(WordMap::iterator i = ws.begin(); i != ws.end(); i ++){
ws[i->first].weight = (i->second.weight - min_rank / 10.0) / (max_rank - min_rank / 10.0);
}
}
};
public:
TextRankExtractor(const string& dictPath,
const string& hmmFilePath,
const string& stopWordPath,
const string& userDict = "")
: segment_(dictPath, hmmFilePath, userDict) {
LoadStopWordDict(stopWordPath);
}
TextRankExtractor(const DictTrie* dictTrie,
const HMMModel* model,
const string& stopWordPath)
: segment_(dictTrie, model) {
LoadStopWordDict(stopWordPath);
}
TextRankExtractor(const Jieba& jieba, const string& stopWordPath) : segment_(jieba.GetDictTrie(), jieba.GetHMMModel()) {
LoadStopWordDict(stopWordPath);
}
~TextRankExtractor() {
}
void Extract(const string& sentence, vector<string>& keywords, size_t topN) const {
vector<Word> topWords;
Extract(sentence, topWords, topN);
for (size_t i = 0; i < topWords.size(); i++) {
keywords.push_back(topWords[i].word);
}
}
void Extract(const string& sentence, vector<pair<string, double> >& keywords, size_t topN) const {
vector<Word> topWords;
Extract(sentence, topWords, topN);
for (size_t i = 0; i < topWords.size(); i++) {
keywords.push_back(pair<string, double>(topWords[i].word, topWords[i].weight));
}
}
void Extract(const string& sentence, vector<Word>& keywords, size_t topN, size_t span=5,size_t rankTime=10) const {
vector<string> words;
segment_.Cut(sentence, words);
TextRankExtractor::WordGraph graph;
WordMap wordmap;
size_t offset = 0;
for(size_t i=0; i < words.size(); i++){
size_t t = offset;
offset += words[i].size();
if (IsSingleWord(words[i]) || stopWords_.find(words[i]) != stopWords_.end()) {
continue;
}
for(size_t j=i+1,skip=0;j<i+span+skip && j<words.size();j++){
if (IsSingleWord(words[j]) || stopWords_.find(words[j]) != stopWords_.end()) {
skip++;
continue;
}
graph.addEdge(words[i],words[j],1);
}
wordmap[words[i]].offsets.push_back(t);
}
if (offset != sentence.size()) {
XLOG(ERROR) << "words illegal";
return;
}
graph.rank(wordmap,rankTime);
keywords.clear();
keywords.reserve(wordmap.size());
for (WordMap::iterator itr = wordmap.begin(); itr != wordmap.end(); ++itr) {
keywords.push_back(itr->second);
}
topN = min(topN, keywords.size());
partial_sort(keywords.begin(), keywords.begin() + topN, keywords.end(), Compare);
keywords.resize(topN);
}
private:
void LoadStopWordDict(const string& filePath) {
ifstream ifs(filePath.c_str());
XCHECK(ifs.is_open()) << "open " << filePath << " failed";
string line ;
while (getline(ifs, line)) {
stopWords_.insert(line);
}
assert(stopWords_.size());
}
static bool Compare(const Word &x,const Word &y){
return x.weight > y.weight;
}
MixSegment segment_;
unordered_set<string> stopWords_;
}; // class TextRankExtractor
inline ostream& operator << (ostream& os, const TextRankExtractor::Word& word) {
return os << "{\"word\": \"" << word.word << "\", \"offset\": " << word.offsets << ", \"weight\": " << word.weight << "}";
}
} // namespace cppjieba
#endif
| {
"pile_set_name": "Github"
} |
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<!--
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.
-->
<!-- not a package-info.java, because we already defined this package in spatial/ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Classes to support <code>StandardAnalyzer</code> component testing
</body>
</html>
| {
"pile_set_name": "Github"
} |
mha.mhachain.comp.smoothgains_bridge.mhachain.mbc.dc.gtdata = [...
[-9.2 -9.2];[1.7429 1.7429];[7.0857 7.0857];[6.8286 6.8286];[6.5714 6.5714];[4.9143 4.9143];[-1.6429 -1.6429];[-15.2 -15.2]; ...
[-9.2 -9.2];[1.7429 1.7429];[7.0857 7.0857];[6.8286 6.8286];[6.5714 6.5714];[4.9143 4.9143];[-1.6429 -1.6429];[-15.2 -15.2]; ...
]
| {
"pile_set_name": "Github"
} |
using Microsoft.ProgramSynthesis;
using Microsoft.ProgramSynthesis.Features;
namespace ProseTutorial
{
public class RankingScore : Feature<double>
{
public RankingScore(Grammar grammar) : base(grammar, "Score")
{
}
[FeatureCalculator(nameof(Semantics.Substring))]
public static double Substring(double v, double start, double end)
{
return start * end;
}
[FeatureCalculator(nameof(Semantics.AbsPos))]
public static double AbsPos(double v, double k)
{
return k;
}
[FeatureCalculator("k", Method = CalculationMethod.FromLiteral)]
public static double K(int k)
{
return 1.0;
}
}
} | {
"pile_set_name": "Github"
} |
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package authorizerfactory
import (
"context"
"testing"
"k8s.io/apiserver/pkg/authentication/user"
"k8s.io/apiserver/pkg/authorization/authorizer"
)
func TestNewAlwaysAllowAuthorizer(t *testing.T) {
aaa := NewAlwaysAllowAuthorizer()
if decision, _, _ := aaa.Authorize(context.Background(), nil); decision != authorizer.DecisionAllow {
t.Errorf("AlwaysAllowAuthorizer.Authorize did not authorize successfully.")
}
}
func TestNewAlwaysDenyAuthorizer(t *testing.T) {
ada := NewAlwaysDenyAuthorizer()
if decision, _, _ := ada.Authorize(context.Background(), nil); decision == authorizer.DecisionAllow {
t.Errorf("AlwaysDenyAuthorizer.Authorize returned nil instead of error.")
}
}
func TestPrivilegedGroupAuthorizer(t *testing.T) {
auth := NewPrivilegedGroups("allow-01", "allow-01")
yes := authorizer.AttributesRecord{User: &user.DefaultInfo{Groups: []string{"no", "allow-01"}}}
no := authorizer.AttributesRecord{User: &user.DefaultInfo{Groups: []string{"no", "deny-01"}}}
if authorized, _, _ := auth.Authorize(context.Background(), yes); authorized != authorizer.DecisionAllow {
t.Errorf("failed")
}
if authorized, _, _ := auth.Authorize(context.Background(), no); authorized == authorizer.DecisionAllow {
t.Errorf("failed")
}
}
| {
"pile_set_name": "Github"
} |
glabel func_809E1E80
/* 005D0 809E1E80 000570C0 */ sll $t6, $a1, 3
/* 005D4 809E1E84 01C47821 */ addu $t7, $t6, $a0
/* 005D8 809E1E88 03E00008 */ jr $ra
/* 005DC 809E1E8C 91E20000 */ lbu $v0, 0x0000($t7) ## 00000000
| {
"pile_set_name": "Github"
} |
{
"data": [
{
"author": "Edward Norton",
"quote": "I've always thought of acting as more of an exercise in empathy, which is not to be confused with sympathy. You're trying to get inside a certain emotional reality or motivational reality and try to figure out what that's about so you can represent it."
},
{
"author": "Julie Andrews",
"quote": "Perseverance is failing 19 times and succeeding the 20th."
},
{
"author": "Robert Foster Bennett",
"quote": "A desire to be in charge of our own lives, a need for control, is born in each of us. It is essential to our mental health, and our success, that we take control."
},
{
"author": "Bear Bryant",
"quote": "I want to make sure I don't interfere with the success of that team next year. I don't see any way I could go to practice like most of 'em do, and not hurt the team. I'd go nuts if I tried doing that."
},
{
"author": "Arnold H. Glasow",
"quote": "Success isn't a result of spontaneous combustion. You must set yourself on fire."
},
{
"author": "John F. Kennedy",
"quote": "Victory has a thousand fathers, but defeat is an orphan."
},
{
"author": "Ron Jaworski",
"quote": "Positive thinking is the key to success in business, education, pro football, anything that you can mention. I go out there thinking that I'm going to complete every pass."
},
{
"author": "Bernard Law Montgomery",
"quote": "Every soldier must know, before he goes into battle, how the little battle he is to fight fits into the larger picture, and how the success of his fighting will influence the battle as a whole."
},
{
"author": "Robin Williams",
"quote": "No matter what people tell you, words and ideas can change the world."
},
{
"author": "Thomas J. Stanley",
"quote": "Before you can become a millionaire, you must learn to think like one. You must learn how to motivate yourself to counter fear with courage. Making critical decisions about your career, business, investments and other resources conjures up fear, fear that is part of the process of becoming a financial success."
},
{
"author": "James Mark Baldwin",
"quote": "Feeling is the consciousness of the resulting conditions - of success, failure, equilibrium, compromise or balance, in this continuous rivalry of ideas."
},
{
"author": "Elias Canetti",
"quote": "Success listens only to applause. To all else it is deaf."
},
{
"author": "Bernie Mac",
"quote": "There's no success story. Everybody's got a ghetto story. You always want to make it bigger than what it is."
},
{
"author": "Henry Ward Beecher",
"quote": "Tears are often the telescope by which men see far into heaven."
},
{
"author": "Stephen Curry",
"quote": "I've always believed that success for anyone is all about drive, dedication, and desire, but for me, it's also been about confidence and faith."
},
{
"author": "Jim Carrey",
"quote": "I feel like I want to take care of everyone and I also feel this terrible guilt if I am unable to. And I have felt this way ever since all this success started."
},
{
"author": "Danny Thomas",
"quote": "Success has nothing to do with what you gain in life or accomplish for yourself. It's what you do for others."
},
{
"author": "Theodore Roosevelt",
"quote": "With self-discipline most anything is possible."
},
{
"author": "Tony Robbins",
"quote": "It is in your moments of decision that your destiny is shaped."
},
{
"author": "George Lucas",
"quote": "'Star Wars' is fun, its exciting, its inspirational, and people respond to that. It's what they want."
},
{
"author": "Ireland Baldwin",
"quote": "I want to be an inspirational model. I want people to look at me and say, 'Wow, she looks healthy.'"
},
{
"author": "Nelson Mandela",
"quote": "It always seems impossible until it's done."
},
{
"author": "Henry Wadsworth Longfellow",
"quote": "The talent of success is nothing more than doing what you can do well, and doing well whatever you do without thought of fame. If it comes at all it will come because it is deserved, not because it is sought after."
},
{
"author": "Christa McAuliffe",
"quote": "Reach for the stars."
},
{
"author": "Aaron Paul",
"quote": "I saw a lot of people have success handed to them that then exploited it. They didn't protect it or cherish it."
}
]
} | {
"pile_set_name": "Github"
} |
{
"name": "descriptor:command1",
"hidden": false,
"usage": [
"descriptor:command1",
"alias1",
"alias2"
],
"description": "command 1 description",
"help": "command 1 help",
"definition": {
"arguments": [],
"options": []
}
}
| {
"pile_set_name": "Github"
} |
#include "input/shmem.h"
#include "input/common.h"
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
typedef unsigned int u32_t;
typedef short s16_t;
int rc;
// See issue #375
// Hard-coded in squeezelite's output_vis.c, but
// this should be the same as mmap_area->buf_size
// if you were to dynamically allocate.
#define VIS_BUF_SIZE 16384
typedef struct {
pthread_rwlock_t rwlock;
u32_t buf_size;
u32_t buf_index;
bool running;
u32_t rate;
time_t updated;
s16_t buffer[VIS_BUF_SIZE];
} vis_t;
// input: SHMEM
void *input_shmem(void *data) {
struct audio_data *audio = (struct audio_data *)data;
vis_t *mmap_area;
int fd; /* file descriptor to mmaped area */
int mmap_count = sizeof(vis_t);
int buf_frames;
struct timespec req = {.tv_sec = 0, .tv_nsec = 0};
s16_t silence_buffer[VIS_BUF_SIZE];
for (int i = 0; i < VIS_BUF_SIZE; i++)
silence_buffer[i] = 0;
printf("input_shmem: source: %s", audio->source);
fd = shm_open(audio->source, O_RDWR, 0666);
if (fd < 0) {
printf("Could not open source '%s': %s\n", audio->source, strerror(errno));
exit(EXIT_FAILURE);
} else {
mmap_area = mmap(NULL, sizeof(vis_t), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
if ((intptr_t)mmap_area == -1) {
printf("mmap failed - check if squeezelite is running with visualization enabled\n");
exit(EXIT_FAILURE);
}
}
while (!audio->terminate) {
// audio rate may change between songs (e.g. 44.1kHz to 96kHz)
audio->rate = mmap_area->rate;
buf_frames = mmap_area->buf_size / 2;
// reread after the whole buffer has changed
req.tv_nsec = (1000000 / mmap_area->rate) * buf_frames;
if (mmap_area->running) {
// Frames are written by squeezelite to the buffer array starting from
// buffer[buf_index + 1], looping around the whole array.
// Thus, the starting position only affects the phase spectrum of the
// fft, and not the power spectrum, so we can just read in the
// whole buffer.
pthread_mutex_lock(&lock);
write_to_fftw_input_buffers(buf_frames, mmap_area->buffer, audio);
pthread_mutex_unlock(&lock);
nanosleep(&req, NULL);
} else {
write_to_fftw_input_buffers(buf_frames, silence_buffer, audio);
nanosleep(&req, NULL);
}
}
// cleanup
if (fd > 0) {
if (close(fd) != 0) {
printf("Could not close file descriptor %d: %s", fd, strerror(errno));
}
} else {
printf("Wrong file descriptor %d", fd);
}
if (munmap(mmap_area, mmap_count) != 0) {
printf("Could not munmap() area %p+%d. %s", mmap_area, mmap_count, strerror(errno));
}
return 0;
}
| {
"pile_set_name": "Github"
} |
// This test is a minimal version of an ICE in the dropck-eyepatch tests
// found in the fix for #54943. In particular, this test is in unreachable
// code as the initial fix for this ICE only worked if the code was reachable.
// check-pass
fn foo<T>(_t: T) {
}
fn main() {
return;
struct A<'a, B: 'a>(&'a B);
let (a1, a2): (String, A<_>) = (String::from("auto"), A(&"this"));
foo((a1, a2));
}
| {
"pile_set_name": "Github"
} |
/*########################################################################
Filename: MenuWndHook.cpp
----------------------------------------------------
Remarks: ...
----------------------------------------------------
Author: 成真
Email: [email protected]
[email protected]
Created: 7/4/2003 17:38
6/20/2012 黄建雄,修改为使用SSkin皮肤绘制非客户区边框,支持边框大小配置
########################################################################*/
#include "souistd.h"
#include "helper/SMenuWndHook.h"
#include "res.mgr/Sskinpool.h"
#include "core/Sskin.h"
#ifdef _WIN64
#define GWL_WNDPROC GWLP_WNDPROC
#endif//_WIN64
namespace SOUI
{
const TCHAR CoolMenu_oldProc[] = _T("CoolMenu_oldProc");
#define SM_CXMENUBORDER 3 //默认菜单边框大小
/*########################################################################
------------------------------------------------
class CMenuWndHook
------------------------------------------------
########################################################################*/
SMap <HWND,SMenuWndHook*> SMenuWndHook::m_WndMenuMap;
HHOOK SMenuWndHook::m_hMenuHook = NULL;
SStringW SMenuWndHook::m_strSkinName;
SMenuWndHook::SMenuWndHook (HWND hWnd)
: m_hWnd(hWnd)
{
}
SMenuWndHook::~SMenuWndHook ()
{
WNDPROC oldWndProc = (WNDPROC)::GetProp(m_hWnd, CoolMenu_oldProc);
if (oldWndProc != NULL)
{
::SetWindowLongPtr(m_hWnd, GWLP_WNDPROC, (LONG_PTR)oldWndProc);
::RemoveProp(m_hWnd, CoolMenu_oldProc);
}
m_WndMenuMap.RemoveKey(m_hWnd);
}
void SMenuWndHook::InstallHook(HINSTANCE hInst,LPCWSTR pszSkinName)
{
if (m_hMenuHook == NULL )
{
m_hMenuHook = ::SetWindowsHookEx(WH_CALLWNDPROC, WindowHook,
hInst, ::GetCurrentThreadId());
m_strSkinName=pszSkinName;
}
}
void SMenuWndHook::UnInstallHook()
{
SPOSITION pos= m_WndMenuMap.GetStartPosition();
while(pos)
{
SMap<HWND,SMenuWndHook*>::CPair *p=m_WndMenuMap.GetNext(pos);
delete p->m_value;
}
m_WndMenuMap.RemoveAll();
if (m_hMenuHook != NULL)
{
::UnhookWindowsHookEx(m_hMenuHook);
}
}
SMenuWndHook* SMenuWndHook::GetWndHook(HWND hwnd)
{
SMap<HWND,SMenuWndHook*>::CPair *p=m_WndMenuMap.Lookup(hwnd);
if(!p) return NULL;
return p->m_value;
}
SMenuWndHook* SMenuWndHook::AddWndHook(HWND hwnd)
{
SMenuWndHook* pWnd = GetWndHook(hwnd);
if(pWnd) return pWnd;
pWnd = new SMenuWndHook(hwnd);
if (pWnd != NULL)
{
m_WndMenuMap[hwnd]=pWnd;
}
return pWnd;
}
/*########################################################################
------------------------------------------------
消息过程
------------------------------------------------
########################################################################*/
LRESULT CALLBACK SMenuWndHook::WindowHook(int code, WPARAM wParam, LPARAM lParam)
{
CWPSTRUCT* pStruct = (CWPSTRUCT*)lParam;
while (code == HC_ACTION)
{
HWND hWnd = pStruct->hwnd;
if (pStruct->message != WM_CREATE && pStruct->message != 0x01E2)
{
break;
}
// 是否为菜单类 ----------------------------------------
TCHAR strClassName[10];
int Count = ::GetClassName (hWnd, strClassName, sizeof(strClassName) / sizeof(strClassName[0]));
if (Count != 6 || _tcscmp(strClassName, _T("#32768")) != 0 )
{
break;
}
// 是否已经被子类化 ------------------------------------
if (::GetProp(hWnd, CoolMenu_oldProc) != NULL )
{
break;
}
AddWndHook(pStruct->hwnd);
// 取得原来的窗口过程 ----------------------------------
WNDPROC oldWndProc = (WNDPROC)::GetWindowLongPtr(hWnd, GWLP_WNDPROC);
if (oldWndProc == NULL)
{
break;
}
SASSERT(oldWndProc != CoolMenuProc);
// 保存到窗口的属性中 ----------------------------------
if (!SetProp(hWnd, CoolMenu_oldProc, oldWndProc) )
{
break;
}
// 子类化 ----------------------------------------------
if (!SetWindowLongPtr(hWnd, GWLP_WNDPROC,(LONG_PTR)CoolMenuProc) )
{
::RemoveProp(hWnd, CoolMenu_oldProc);
break;
}
break;
}
return CallNextHookEx (m_hMenuHook, code, wParam, lParam);
}
LRESULT CALLBACK SMenuWndHook::CoolMenuProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
WNDPROC oldWndProc = (WNDPROC)::GetProp(hWnd, CoolMenu_oldProc);
SMenuWndHook* pWnd = NULL;
switch (uMsg)
{
case WM_CREATE:
{
LRESULT lResult = CallWindowProc(oldWndProc, hWnd, uMsg, wParam, lParam);
if ((pWnd = GetWndHook(hWnd)) != NULL)
{
lResult = (LRESULT)pWnd->OnCreate((LPCREATESTRUCT)lParam);
}
return lResult;
}
break;
case WM_NCCALCSIZE:
{
LRESULT lResult = CallWindowProc(oldWndProc, hWnd, uMsg, wParam, lParam);
if ((pWnd = GetWndHook(hWnd)) != NULL)
{
pWnd->OnNcCalcsize((BOOL)wParam,(NCCALCSIZE_PARAMS*)lParam);
}
return lResult;
}
break;
case WM_WINDOWPOSCHANGING:
{
if ((pWnd = GetWndHook(hWnd)) != NULL)
{
pWnd->OnWindowPosChanging((LPWINDOWPOS)lParam);
}
}
break;
case WM_WINDOWPOSCHANGED:
{
LRESULT lResult = CallWindowProc(oldWndProc, hWnd, uMsg, wParam, lParam);
if ((pWnd = GetWndHook(hWnd)) != NULL)
{
pWnd->OnWindowPosChanged();
}
return lResult;
}
break;
case WM_PRINT:
{
LRESULT lResult = CallWindowProc(oldWndProc, hWnd, uMsg, wParam, lParam);
if ((pWnd = GetWndHook(hWnd)) != NULL)
{
pWnd->OnPrint((HDC)wParam);
}
return lResult;
}
break;
case WM_NCPAINT:
{
if ((pWnd = GetWndHook(hWnd)) != NULL)
{
pWnd->OnNcPaint();
return 0;
}
}
break;
case WM_NCDESTROY:
{
if ((pWnd = GetWndHook(hWnd)) != NULL)
{
pWnd->OnNcDestroy();
}
}
break;
}
return CallWindowProc(oldWndProc, hWnd, uMsg, wParam, lParam);
}
/*########################################################################
------------------------------------------------
消息处理函数
------------------------------------------------
########################################################################*/
int SMenuWndHook::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
SetClassLong(m_hWnd, GCL_STYLE, GetClassLong(m_hWnd, GCL_STYLE) & ~CS_DROPSHADOW);
return 0;
}
void SMenuWndHook::OnWindowPosChanging(WINDOWPOS *pWindowPos)
{
if(m_strSkinName.IsEmpty()) return;
ISkinObj *pSkin=GETSKIN(m_strSkinName,100);
if(!pSkin || !pSkin->IsClass(SSkinImgFrame::GetClassName())) return;
SSkinImgFrame *pBorderSkin=static_cast<SSkinImgFrame*>(pSkin);
if(!pBorderSkin) return;
pWindowPos->cx += pBorderSkin->GetMargin().left+pBorderSkin->GetMargin().right-SM_CXMENUBORDER*2;
pWindowPos->cy += pBorderSkin->GetMargin().top+pBorderSkin->GetMargin().bottom-SM_CXMENUBORDER*2;
}
void SMenuWndHook::OnNcCalcsize(BOOL bValidCalc,NCCALCSIZE_PARAMS* lpncsp)
{
if(m_strSkinName.IsEmpty()) return;
ISkinObj *pSkin=GETSKIN(m_strSkinName,100);
if(!pSkin || !pSkin->IsClass(SSkinImgFrame::GetClassName())) return;
SSkinImgFrame *pBorderSkin=static_cast<SSkinImgFrame*>(pSkin);
if(!pBorderSkin) return;
lpncsp->rgrc[0].left=lpncsp->lppos->x+pBorderSkin->GetMargin().left;
lpncsp->rgrc[0].top=lpncsp->lppos->y+pBorderSkin->GetMargin().top;
lpncsp->rgrc[0].right=lpncsp->lppos->x+lpncsp->lppos->cx-pBorderSkin->GetMargin().right;
lpncsp->rgrc[0].bottom=lpncsp->lppos->y+lpncsp->lppos->cy-pBorderSkin->GetMargin().bottom;
}
void SMenuWndHook::OnNcPaint()
{
HDC dc=GetWindowDC(m_hWnd);
OnPrint(dc);
ReleaseDC(m_hWnd,dc);
}
void SMenuWndHook::OnPrint(HDC dc)
{
if(m_strSkinName.IsEmpty()) return;
ISkinObj *pSkin=GETSKIN(m_strSkinName,100);
if(!pSkin) return;
SSkinImgList *pBorderSkin=static_cast<SSkinImgList*>(pSkin);
if(!pBorderSkin) return;
CRect rcClient;
GetClientRect(m_hWnd,&rcClient);
ClientToScreen(m_hWnd,(LPPOINT)&rcClient);
ClientToScreen(m_hWnd,((LPPOINT)&rcClient)+1);
CRect rcWnd;
GetWindowRect(m_hWnd, &rcWnd);
rcClient.OffsetRect(-rcWnd.TopLeft());
int nSave = ::SaveDC(dc);
::ExcludeClipRect(dc,rcClient.left,rcClient.top,rcClient.right,rcClient.bottom);
rcWnd.MoveToXY(0,0);
SAutoRefPtr<IRenderTarget> pRT;
GETRENDERFACTORY->CreateRenderTarget(&pRT,rcWnd.Width(),rcWnd.Height());
pBorderSkin->DrawByIndex(pRT,rcWnd,0);
HDC hmemdc=pRT->GetDC(0);
::BitBlt(dc,0,0,rcWnd.Width(),rcWnd.Height(),hmemdc,0,0,SRCCOPY);
pRT->ReleaseDC(hmemdc);
::RestoreDC(dc,nSave);
}
void SMenuWndHook::OnNcDestroy()
{
delete this;
}
//不能设计窗口半透明,设置区域后,非客户区位置发生改变,不明白原因。
void SMenuWndHook::OnWindowPosChanged()
{
/*
CRect rcWnd;
GetWindowRect(m_hWnd,&rcWnd);
rcWnd.MoveToXY(0,0);
HRGN hRgn = ::CreateEllipticRgnIndirect(&rcWnd);
SetWindowRgn(m_hWnd,hRgn,TRUE);
DeleteObject(hRgn);
*/
}
}//namespace SOUI | {
"pile_set_name": "Github"
} |
#!/bin/bash
set -e ;
issuer_file=$1
namespace={{ .Release.Namespace }}
echo "Creating the certmanager issuer..."
set +e ; # The CRD may not exist yet. We need to retry until this passes
while ! kubectl --namespace=$namespace apply -f ${issuer_file:=issuer.yml}; do
sleep 1;
done ;
set -e ; # reset `e` as active
| {
"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.
// +build !386,!amd64,!amd64p32,!arm64
package cpu
func archInit() {
if err := readHWCAP(); err != nil {
return
}
doinit()
Initialized = true
}
| {
"pile_set_name": "Github"
} |
import "hash"
rule n3ed_5913c5a6ddab1b32
{
meta:
copyright="Copyright (c) 2014-2017 Support Intelligence Inc, All Rights Reserved."
engine="saphire/1.2.2 divinorum/0.99 icewater/0.3.01"
viz_url="http://icewater.io/en/cluster/query?h64=n3ed.5913c5a6ddab1b32"
cluster="n3ed.5913c5a6ddab1b32"
cluster_size="32 samples"
filetype = "pe"
tlp = "amber"
version = "icewater foxtail"
author = "Rick Wesson (@wessorh) [email protected]"
date = "20171009"
license = "RIL v1.0 see https://raw.githubusercontent.com/SupportIntelligence/Icewater/master/LICENSE"
family="ramnit nimnul bmnup"
md5_hashes="['bb411d121db028b9dffc8eafc08f5125', 'c0afb78d1532a1dd8c0b1cc98154fdcf', 'a6e093a12fb5e8c9d570b912d36b3a96']"
condition:
filesize > 262144 and filesize < 1048576
and hash.md5(418756,1036) == "210f6608b2efbfbe03110188284f4477"
}
| {
"pile_set_name": "Github"
} |
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnustep-base
DESCRIPTION="libart_lgpl back-end component for the GNUstep GUI Library"
HOMEPAGE="http://www.gnustep.org"
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 ppc sparc x86 ~amd64-linux ~x86-linux"
IUSE="opengl xim"
RDEPEND="${GNUSTEP_CORE_DEPEND}
=gnustep-base/gnustep-gui-${PV%.*}*
opengl? ( virtual/opengl virtual/glu )
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXmu
x11-libs/libXt
x11-libs/libXft
x11-libs/libXrender
>=media-libs/freetype-2.1.9
>=media-libs/libart_lgpl-2.3
>=gnustep-base/mknfonts-0.5-r1
media-fonts/dejavu
!gnustep-base/gnustep-back-cairo
!gnustep-base/gnustep-back-xlib"
DEPEND="${RDEPEND}"
S=${WORKDIR}/gnustep-back-${PV}
src_configure() {
egnustep_env
myconf="$(use_enable opengl glx)"
myconf="$myconf $(use_enable xim)"
myconf="$myconf --enable-server=x11"
myconf="$myconf --enable-graphics=art"
econf $myconf
}
src_compile() {
gnustep-base_src_compile
# Create font lists for DejaVu
einfo "Generating nfonts support files"
(
cd Fonts
export "${GS_ENV[@]}"
${GNUSTEP_SYSTEM_TOOLS}/mknfonts \
$(fc-list : file|grep -v '\.gz'|cut -d: -f1) \
|| die "nfonts support files creation failed"
# Trim whitepsaces
for fdir in *\ */; do
mv "$fdir" `echo $fdir | tr -d [:space:]`
done
)
}
src_install() {
gnustep-base_src_install
mkdir -p "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
cp -pPR Fonts/*.nfont "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
}
gnustep_config_script() {
echo "echo ' * setting normal font to DejaVuSans'"
echo "defaults write NSGlobalDomain NSFont DejaVuSans"
echo "echo ' * setting bold font to DejaVuSans-Bold'"
echo "defaults write NSGlobalDomain NSBoldFont DejaVuSans-Bold"
echo "echo ' * setting fixed font to DejaVuSansMono'"
echo "defaults write NSGlobalDomain NSUserFixedPitchFont DejaVuSansMono"
}
| {
"pile_set_name": "Github"
} |
<?php
/*
* This file is part of SwiftMailer.
* (c) 2004-2009 Chris Corbyn
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Standard factory for creating CharacterReaders.
*
* @author Chris Corbyn
*/
class Swift_CharacterReaderFactory_SimpleCharacterReaderFactory implements Swift_CharacterReaderFactory
{
/**
* A map of charset patterns to their implementation classes.
*
* @var array
*/
private static $_map = array();
/**
* Factories which have already been loaded.
*
* @var Swift_CharacterReaderFactory[]
*/
private static $_loaded = array();
/**
* Creates a new CharacterReaderFactory.
*/
public function __construct()
{
$this->init();
}
public function __wakeup()
{
$this->init();
}
public function init()
{
if (count(self::$_map) > 0) {
return;
}
$prefix = 'Swift_CharacterReader_';
$singleByte = array(
'class' => $prefix . 'GenericFixedWidthReader',
'constructor' => array(1)
);
$doubleByte = array(
'class' => $prefix . 'GenericFixedWidthReader',
'constructor' => array(2)
);
$fourBytes = array(
'class' => $prefix . 'GenericFixedWidthReader',
'constructor' => array(4)
);
// Utf-8
self::$_map['utf-?8'] = array(
'class' => $prefix . 'Utf8Reader',
'constructor' => array()
);
//7-8 bit charsets
self::$_map['(us-)?ascii'] = $singleByte;
self::$_map['(iso|iec)-?8859-?[0-9]+'] = $singleByte;
self::$_map['windows-?125[0-9]'] = $singleByte;
self::$_map['cp-?[0-9]+'] = $singleByte;
self::$_map['ansi'] = $singleByte;
self::$_map['macintosh'] = $singleByte;
self::$_map['koi-?7'] = $singleByte;
self::$_map['koi-?8-?.+'] = $singleByte;
self::$_map['mik'] = $singleByte;
self::$_map['(cork|t1)'] = $singleByte;
self::$_map['v?iscii'] = $singleByte;
//16 bits
self::$_map['(ucs-?2|utf-?16)'] = $doubleByte;
//32 bits
self::$_map['(ucs-?4|utf-?32)'] = $fourBytes;
// Fallback
self::$_map['.*'] = $singleByte;
}
/**
* Returns a CharacterReader suitable for the charset applied.
*
* @param string $charset
*
* @return Swift_CharacterReader
*/
public function getReaderFor($charset)
{
$charset = trim(strtolower($charset));
foreach (self::$_map as $pattern => $spec) {
$re = '/^' . $pattern . '$/D';
if (preg_match($re, $charset)) {
if (!array_key_exists($pattern, self::$_loaded)) {
$reflector = new ReflectionClass($spec['class']);
if ($reflector->getConstructor()) {
$reader = $reflector->newInstanceArgs($spec['constructor']);
} else {
$reader = $reflector->newInstance();
}
self::$_loaded[$pattern] = $reader;
}
return self::$_loaded[$pattern];
}
}
}
}
| {
"pile_set_name": "Github"
} |
---
title: MacScript Function
keywords: vblr6.chm1010848
f1_keywords:
- vblr6.chm1010848
ms.prod: office
ms.assetid: d845de85-a0d8-e10e-1174-8571e42bb8d2
ms.date: 06/08/2017
---
# MacScript Function
**Note** This function has been deprecated, therefore it is no longer supported. For information, see this [Stack Overflow article](http://stackoverflow.com/a/30949324/209942).
Executes an AppleScript script and returns a value returned by the script, if any.
**Syntax**
**MacScript**_script_
The _script_ argument is a [String expression](vbe-glossary.md). The **String** expression either can be a series of AppleScript commands or can specify the name of an AppleScript script or a script file.
**Remarks**
Multiline scripts can be created by embedding carriage-return characters ( **Chr(** 13 **)** ).
```
ThePath$ = Macscript("ChooseFile")
```
| {
"pile_set_name": "Github"
} |
import copy
import locale
import os
import random
import string
from functools import wraps
from types import ModuleType
from typing import Union
import numpy as np
import pandas as pd
import pytest
from dateutil.parser import parse
from great_expectations.core import (
ExpectationConfigurationSchema,
ExpectationSuiteValidationResultSchema,
ExpectationValidationResultSchema,
)
from great_expectations.dataset import PandasDataset, SparkDFDataset, SqlAlchemyDataset
from great_expectations.dataset.util import (
get_sql_dialect_floating_point_infinity_value,
)
from great_expectations.profile import ColumnsExistProfiler
expectationValidationResultSchema = ExpectationValidationResultSchema()
expectationSuiteValidationResultSchema = ExpectationSuiteValidationResultSchema()
expectationConfigurationSchema = ExpectationConfigurationSchema()
try:
from sqlalchemy import create_engine
except ImportError:
create_engine = None
try:
import sqlalchemy.dialects.sqlite as sqlitetypes
SQLITE_TYPES = {
"VARCHAR": sqlitetypes.VARCHAR,
"CHAR": sqlitetypes.CHAR,
"INTEGER": sqlitetypes.INTEGER,
"SMALLINT": sqlitetypes.SMALLINT,
"DATETIME": sqlitetypes.DATETIME(truncate_microseconds=True),
"DATE": sqlitetypes.DATE,
"FLOAT": sqlitetypes.FLOAT,
"BOOLEAN": sqlitetypes.BOOLEAN,
"TIMESTAMP": sqlitetypes.TIMESTAMP,
}
except ImportError:
sqlitetypes = None
SQLITE_TYPES = {}
try:
import sqlalchemy.dialects.postgresql as postgresqltypes
POSTGRESQL_TYPES = {
"TEXT": postgresqltypes.TEXT,
"CHAR": postgresqltypes.CHAR,
"INTEGER": postgresqltypes.INTEGER,
"SMALLINT": postgresqltypes.SMALLINT,
"BIGINT": postgresqltypes.BIGINT,
"TIMESTAMP": postgresqltypes.TIMESTAMP,
"DATE": postgresqltypes.DATE,
"DOUBLE_PRECISION": postgresqltypes.DOUBLE_PRECISION,
"BOOLEAN": postgresqltypes.BOOLEAN,
"NUMERIC": postgresqltypes.NUMERIC,
}
except ImportError:
postgresqltypes = None
POSTGRESQL_TYPES = {}
try:
import sqlalchemy.dialects.mysql as mysqltypes
MYSQL_TYPES = {
"TEXT": mysqltypes.TEXT,
"CHAR": mysqltypes.CHAR,
"INTEGER": mysqltypes.INTEGER,
"SMALLINT": mysqltypes.SMALLINT,
"BIGINT": mysqltypes.BIGINT,
"DATETIME": mysqltypes.DATETIME,
"TIMESTAMP": mysqltypes.TIMESTAMP,
"DATE": mysqltypes.DATE,
"FLOAT": mysqltypes.FLOAT,
"DOUBLE": mysqltypes.DOUBLE,
"BOOLEAN": mysqltypes.BOOLEAN,
"TINYINT": mysqltypes.TINYINT,
}
except ImportError:
mysqltypes = None
MYSQL_TYPES = {}
try:
import sqlalchemy.dialects.mssql as mssqltypes
MSSQL_TYPES = {
"BIGINT": mssqltypes.BIGINT,
"BINARY": mssqltypes.BINARY,
"BIT": mssqltypes.BIT,
"CHAR": mssqltypes.CHAR,
"DATE": mssqltypes.DATE,
"DATETIME": mssqltypes.DATETIME,
"DATETIME2": mssqltypes.DATETIME2,
"DATETIMEOFFSET": mssqltypes.DATETIMEOFFSET,
"DECIMAL": mssqltypes.DECIMAL,
"FLOAT": mssqltypes.FLOAT,
"IMAGE": mssqltypes.IMAGE,
"INTEGER": mssqltypes.INTEGER,
"MONEY": mssqltypes.MONEY,
"NCHAR": mssqltypes.NCHAR,
"NTEXT": mssqltypes.NTEXT,
"NUMERIC": mssqltypes.NUMERIC,
"NVARCHAR": mssqltypes.NVARCHAR,
"REAL": mssqltypes.REAL,
"SMALLDATETIME": mssqltypes.SMALLDATETIME,
"SMALLINT": mssqltypes.SMALLINT,
"SMALLMONEY": mssqltypes.SMALLMONEY,
"SQL_VARIANT": mssqltypes.SQL_VARIANT,
"TEXT": mssqltypes.TEXT,
"TIME": mssqltypes.TIME,
"TIMESTAMP": mssqltypes.TIMESTAMP,
"TINYINT": mssqltypes.TINYINT,
"UNIQUEIDENTIFIER": mssqltypes.UNIQUEIDENTIFIER,
"VARBINARY": mssqltypes.VARBINARY,
"VARCHAR": mssqltypes.VARCHAR,
}
except ImportError:
mssqltypes = None
MSSQL_TYPES = {}
def modify_locale(func):
@wraps(func)
def locale_wrapper(*args, **kwargs):
old_locale = locale.setlocale(locale.LC_TIME, None)
print(old_locale)
# old_locale = locale.getlocale(locale.LC_TIME) Why not getlocale? not sure
try:
new_locale = locale.setlocale(locale.LC_TIME, "en_US.UTF-8")
assert new_locale == "en_US.UTF-8"
func(*args, **kwargs)
except Exception:
raise
finally:
locale.setlocale(locale.LC_TIME, old_locale)
return locale_wrapper
# Taken from the following stackoverflow:
# https://stackoverflow.com/questions/23549419/assert-that-two-dictionaries-are-almost-equal
def assertDeepAlmostEqual(expected, actual, *args, **kwargs):
"""
Assert that two complex structures have almost equal contents.
Compares lists, dicts and tuples recursively. Checks numeric values
using pyteset.approx and checks all other values with an assertion equality statement
Accepts additional positional and keyword arguments and pass those
intact to pytest.approx() (that's how you specify comparison
precision).
"""
is_root = "__trace" not in kwargs
trace = kwargs.pop("__trace", "ROOT")
try:
# if isinstance(expected, (int, float, long, complex)):
if isinstance(expected, (int, float, complex)):
assert expected == pytest.approx(actual, *args, **kwargs)
elif isinstance(expected, (list, tuple, np.ndarray)):
assert len(expected) == len(actual)
for index in range(len(expected)):
v1, v2 = expected[index], actual[index]
assertDeepAlmostEqual(v1, v2, __trace=repr(index), *args, **kwargs)
elif isinstance(expected, dict):
assert set(expected) == set(actual)
for key in expected:
assertDeepAlmostEqual(
expected[key], actual[key], __trace=repr(key), *args, **kwargs
)
else:
assert expected == actual
except AssertionError as exc:
exc.__dict__.setdefault("traces", []).append(trace)
if is_root:
trace = " -> ".join(reversed(exc.traces))
exc = AssertionError("{}\nTRACE: {}".format(str(exc), trace))
raise exc
def get_dataset(
dataset_type,
data,
schemas=None,
profiler=ColumnsExistProfiler,
caching=True,
table_name=None,
sqlite_db_path=None,
):
"""Utility to create datasets for json-formatted tests.
"""
df = pd.DataFrame(data)
if dataset_type == "PandasDataset":
if schemas and "pandas" in schemas:
schema = schemas["pandas"]
pandas_schema = {}
for (key, value) in schema.items():
# Note, these are just names used in our internal schemas to build datasets *for internal tests*
# Further, some changes in pandas internal about how datetimes are created means to support pandas
# pre- 0.25, we need to explicitly specify when we want timezone.
# We will use timestamp for timezone-aware (UTC only) dates in our tests
if value.lower() in ["timestamp", "datetime64[ns, tz]"]:
df[key] = pd.to_datetime(df[key], utc=True)
continue
elif value.lower() in ["datetime", "datetime64", "datetime64[ns]"]:
df[key] = pd.to_datetime(df[key])
continue
try:
type_ = np.dtype(value)
except TypeError:
type_ = getattr(pd.core.dtypes.dtypes, value)
# If this raises AttributeError it's okay: it means someone built a bad test
pandas_schema[key] = type_
# pandas_schema = {key: np.dtype(value) for (key, value) in schemas["pandas"].items()}
df = df.astype(pandas_schema)
return PandasDataset(df, profiler=profiler, caching=caching)
elif dataset_type == "sqlite":
if not create_engine:
return None
if sqlite_db_path is not None:
engine = create_engine(f"sqlite:////{sqlite_db_path}")
else:
engine = create_engine("sqlite://")
conn = engine.connect()
# Add the data to the database as a new table
sql_dtypes = {}
if (
schemas
and "sqlite" in schemas
and isinstance(engine.dialect, sqlitetypes.dialect)
):
schema = schemas["sqlite"]
sql_dtypes = {col: SQLITE_TYPES[dtype] for (col, dtype) in schema.items()}
for col in schema:
type_ = schema[col]
if type_ in ["INTEGER", "SMALLINT", "BIGINT"]:
df[col] = pd.to_numeric(df[col], downcast="signed")
elif type_ in ["FLOAT", "DOUBLE", "DOUBLE_PRECISION"]:
df[col] = pd.to_numeric(df[col])
min_value_dbms = get_sql_dialect_floating_point_infinity_value(
schema=dataset_type, negative=True
)
max_value_dbms = get_sql_dialect_floating_point_infinity_value(
schema=dataset_type, negative=False
)
for api_schema_type in ["api_np", "api_cast"]:
min_value_api = get_sql_dialect_floating_point_infinity_value(
schema=api_schema_type, negative=True
)
max_value_api = get_sql_dialect_floating_point_infinity_value(
schema=api_schema_type, negative=False
)
df.replace(
to_replace=[min_value_api, max_value_api],
value=[min_value_dbms, max_value_dbms],
inplace=True,
)
elif type_ in ["DATETIME", "TIMESTAMP"]:
df[col] = pd.to_datetime(df[col])
if table_name is None:
table_name = "test_data_" + "".join(
[random.choice(string.ascii_letters + string.digits) for _ in range(8)]
)
df.to_sql(
name=table_name,
con=conn,
index=False,
dtype=sql_dtypes,
if_exists="replace",
)
# Build a SqlAlchemyDataset using that database
return SqlAlchemyDataset(
table_name, engine=conn, profiler=profiler, caching=caching
)
elif dataset_type == "postgresql":
if not create_engine:
return None
# Create a new database
engine = create_engine("postgresql://postgres@localhost/test_ci")
conn = engine.connect()
sql_dtypes = {}
if (
schemas
and "postgresql" in schemas
and isinstance(engine.dialect, postgresqltypes.dialect)
):
schema = schemas["postgresql"]
sql_dtypes = {
col: POSTGRESQL_TYPES[dtype] for (col, dtype) in schema.items()
}
for col in schema:
type_ = schema[col]
if type_ in ["INTEGER", "SMALLINT", "BIGINT"]:
df[col] = pd.to_numeric(df[col], downcast="signed")
elif type_ in ["FLOAT", "DOUBLE", "DOUBLE_PRECISION"]:
df[col] = pd.to_numeric(df[col])
min_value_dbms = get_sql_dialect_floating_point_infinity_value(
schema=dataset_type, negative=True
)
max_value_dbms = get_sql_dialect_floating_point_infinity_value(
schema=dataset_type, negative=False
)
for api_schema_type in ["api_np", "api_cast"]:
min_value_api = get_sql_dialect_floating_point_infinity_value(
schema=api_schema_type, negative=True
)
max_value_api = get_sql_dialect_floating_point_infinity_value(
schema=api_schema_type, negative=False
)
df.replace(
to_replace=[min_value_api, max_value_api],
value=[min_value_dbms, max_value_dbms],
inplace=True,
)
elif type_ in ["DATETIME", "TIMESTAMP"]:
df[col] = pd.to_datetime(df[col])
if table_name is None:
table_name = "test_data_" + "".join(
[random.choice(string.ascii_letters + string.digits) for _ in range(8)]
)
df.to_sql(
name=table_name,
con=conn,
index=False,
dtype=sql_dtypes,
if_exists="replace",
)
# Build a SqlAlchemyDataset using that database
return SqlAlchemyDataset(
table_name, engine=conn, profiler=profiler, caching=caching
)
elif dataset_type == "mysql":
if not create_engine:
return None
engine = create_engine("mysql+pymysql://root@localhost/test_ci")
conn = engine.connect()
sql_dtypes = {}
if (
schemas
and "mysql" in schemas
and isinstance(engine.dialect, mysqltypes.dialect)
):
schema = schemas["mysql"]
sql_dtypes = {col: MYSQL_TYPES[dtype] for (col, dtype) in schema.items()}
for col in schema:
type_ = schema[col]
if type_ in ["INTEGER", "SMALLINT", "BIGINT"]:
df[col] = pd.to_numeric(df[col], downcast="signed")
elif type_ in ["FLOAT", "DOUBLE", "DOUBLE_PRECISION"]:
df[col] = pd.to_numeric(df[col])
min_value_dbms = get_sql_dialect_floating_point_infinity_value(
schema=dataset_type, negative=True
)
max_value_dbms = get_sql_dialect_floating_point_infinity_value(
schema=dataset_type, negative=False
)
for api_schema_type in ["api_np", "api_cast"]:
min_value_api = get_sql_dialect_floating_point_infinity_value(
schema=api_schema_type, negative=True
)
max_value_api = get_sql_dialect_floating_point_infinity_value(
schema=api_schema_type, negative=False
)
df.replace(
to_replace=[min_value_api, max_value_api],
value=[min_value_dbms, max_value_dbms],
inplace=True,
)
elif type_ in ["DATETIME", "TIMESTAMP"]:
df[col] = pd.to_datetime(df[col])
if table_name is None:
table_name = "test_data_" + "".join(
[random.choice(string.ascii_letters + string.digits) for _ in range(8)]
)
df.to_sql(
name=table_name,
con=conn,
index=False,
dtype=sql_dtypes,
if_exists="replace",
)
# Build a SqlAlchemyDataset using that database
return SqlAlchemyDataset(
table_name, engine=conn, profiler=profiler, caching=caching
)
elif dataset_type == "mssql":
if not create_engine:
return None
engine = create_engine(
"mssql+pyodbc://sa:ReallyStrongPwd1234%^&*@localhost:1433/test_ci?driver=ODBC Driver 17 for SQL Server&charset=utf8&autocommit=true",
# echo=True,
)
# If "autocommit" is not desired to be on by default, then use the following pattern when explicit "autocommit"
# is desired (e.g., for temporary tables, "autocommit" is off by default, so the override option may be useful).
# engine.execute(sa.text(sql_query_string).execution_options(autocommit=True))
conn = engine.connect()
sql_dtypes = {}
if (
schemas
and dataset_type in schemas
and isinstance(engine.dialect, mssqltypes.dialect)
):
schema = schemas[dataset_type]
sql_dtypes = {col: MSSQL_TYPES[dtype] for (col, dtype) in schema.items()}
for col in schema:
type_ = schema[col]
if type_ in ["INTEGER", "SMALLINT", "BIGINT"]:
df[col] = pd.to_numeric(df[col], downcast="signed")
elif type_ in ["FLOAT"]:
df[col] = pd.to_numeric(df[col])
min_value_dbms = get_sql_dialect_floating_point_infinity_value(
schema=dataset_type, negative=True
)
max_value_dbms = get_sql_dialect_floating_point_infinity_value(
schema=dataset_type, negative=False
)
for api_schema_type in ["api_np", "api_cast"]:
min_value_api = get_sql_dialect_floating_point_infinity_value(
schema=api_schema_type, negative=True
)
max_value_api = get_sql_dialect_floating_point_infinity_value(
schema=api_schema_type, negative=False
)
df.replace(
to_replace=[min_value_api, max_value_api],
value=[min_value_dbms, max_value_dbms],
inplace=True,
)
elif type_ in ["DATETIME", "TIMESTAMP"]:
df[col] = pd.to_datetime(df[col])
if table_name is None:
table_name = "test_data_" + "".join(
[random.choice(string.ascii_letters + string.digits) for _ in range(8)]
)
df.to_sql(
name=table_name,
con=conn,
index=False,
dtype=sql_dtypes,
if_exists="replace",
)
# Build a SqlAlchemyDataset using that database
return SqlAlchemyDataset(
table_name, engine=conn, profiler=profiler, caching=caching
)
elif dataset_type == "SparkDFDataset":
import pyspark.sql.types as sparktypes
from pyspark.sql import SparkSession
SPARK_TYPES = {
"StringType": sparktypes.StringType,
"IntegerType": sparktypes.IntegerType,
"LongType": sparktypes.LongType,
"DateType": sparktypes.DateType,
"TimestampType": sparktypes.TimestampType,
"FloatType": sparktypes.FloatType,
"DoubleType": sparktypes.DoubleType,
"BooleanType": sparktypes.BooleanType,
"DataType": sparktypes.DataType,
"NullType": sparktypes.NullType,
}
spark = SparkSession.builder.getOrCreate()
# We need to allow null values in some column types that do not support them natively, so we skip
# use of df in this case.
data_reshaped = list(
zip(*[v for _, v in data.items()])
) # create a list of rows
if schemas and "spark" in schemas:
schema = schemas["spark"]
# sometimes first method causes Spark to throw a TypeError
try:
spark_schema = sparktypes.StructType(
[
sparktypes.StructField(
column, SPARK_TYPES[schema[column]](), True
)
for column in schema
]
)
# We create these every time, which is painful for testing
# However nuance around null treatment as well as the desire
# for real datetime support in tests makes this necessary
data = copy.deepcopy(data)
if "ts" in data:
print(data)
print(schema)
for col in schema:
type_ = schema[col]
if type_ in ["IntegerType", "LongType"]:
# Ints cannot be None...but None can be valid in Spark (as Null)
vals = []
for val in data[col]:
if val is None:
vals.append(val)
else:
vals.append(int(val))
data[col] = vals
elif type_ in ["FloatType", "DoubleType"]:
vals = []
for val in data[col]:
if val is None:
vals.append(val)
else:
vals.append(float(val))
data[col] = vals
elif type_ in ["DateType", "TimestampType"]:
vals = []
for val in data[col]:
if val is None:
vals.append(val)
else:
vals.append(parse(val))
data[col] = vals
# Do this again, now that we have done type conversion using the provided schema
data_reshaped = list(
zip(*[v for _, v in data.items()])
) # create a list of rows
spark_df = spark.createDataFrame(data_reshaped, schema=spark_schema)
except TypeError:
string_schema = sparktypes.StructType(
[
sparktypes.StructField(column, sparktypes.StringType())
for column in schema
]
)
spark_df = spark.createDataFrame(data_reshaped, string_schema)
for c in spark_df.columns:
spark_df = spark_df.withColumn(
c, spark_df[c].cast(SPARK_TYPES[schema[c]]())
)
elif len(data_reshaped) == 0:
# if we have an empty dataset and no schema, need to assign an arbitrary type
columns = list(data.keys())
spark_schema = sparktypes.StructType(
[
sparktypes.StructField(column, sparktypes.StringType())
for column in columns
]
)
spark_df = spark.createDataFrame(data_reshaped, spark_schema)
else:
# if no schema provided, uses Spark's schema inference
columns = list(data.keys())
spark_df = spark.createDataFrame(data_reshaped, columns)
return SparkDFDataset(spark_df, profiler=profiler, caching=caching)
else:
raise ValueError("Unknown dataset_type " + str(dataset_type))
def candidate_getter_is_on_temporary_notimplemented_list(context, getter):
if context in ["sqlite"]:
return getter in ["get_column_modes", "get_column_stdev"]
if context in ["postgresql", "mysql", "mssql"]:
return getter in ["get_column_modes"]
if context == "SparkDFDataset":
return getter in []
def candidate_test_is_on_temporary_notimplemented_list(context, expectation_type):
if context in ["sqlite", "postgresql", "mysql", "mssql"]:
return expectation_type in [
# "expect_column_to_exist",
# "expect_table_row_count_to_be_between",
# "expect_table_row_count_to_equal",
# "expect_table_columns_to_match_ordered_list",
# "expect_column_values_to_be_unique",
# "expect_column_values_to_not_be_null",
# "expect_column_values_to_be_null",
# "expect_column_values_to_be_of_type",
# "expect_column_values_to_be_in_type_list",
# "expect_column_values_to_be_in_set",
# "expect_column_values_to_not_be_in_set",
# "expect_column_distinct_values_to_be_in_set",
# "expect_column_distinct_values_to_equal_set",
# "expect_column_distinct_values_to_contain_set",
# "expect_column_values_to_be_between",
"expect_column_values_to_be_increasing",
"expect_column_values_to_be_decreasing",
# "expect_column_value_lengths_to_be_between",
# "expect_column_value_lengths_to_equal",
# "expect_column_values_to_match_regex",
# "expect_column_values_to_not_match_regex",
# "expect_column_values_to_match_regex_list",
# "expect_column_values_to_not_match_regex_list",
# "expect_column_values_to_match_like_pattern",
# "expect_column_values_to_not_match_like_pattern",
# "expect_column_values_to_match_like_pattern_list",
# "expect_column_values_to_not_match_like_pattern_list",
"expect_column_values_to_match_strftime_format",
"expect_column_values_to_be_dateutil_parseable",
"expect_column_values_to_be_json_parseable",
"expect_column_values_to_match_json_schema",
# "expect_column_mean_to_be_between",
# "expect_column_median_to_be_between",
# "expect_column_quantile_values_to_be_between",
"expect_column_stdev_to_be_between",
# "expect_column_unique_value_count_to_be_between",
# "expect_column_proportion_of_unique_values_to_be_between",
"expect_column_most_common_value_to_be_in_set",
# "expect_column_sum_to_be_between",
# "expect_column_min_to_be_between",
# "expect_column_max_to_be_between",
# "expect_column_chisquare_test_p_value_to_be_greater_than",
"expect_column_bootstrapped_ks_test_p_value_to_be_greater_than",
# "expect_column_kl_divergence_to_be_less_than",
"expect_column_parameterized_distribution_ks_test_p_value_to_be_greater_than",
"expect_column_pair_values_to_be_equal",
"expect_column_pair_values_A_to_be_greater_than_B",
"expect_column_pair_values_to_be_in_set",
"expect_select_column_values_to_be_unique_within_record",
"expect_compound_columns_to_be_unique",
"expect_multicolumn_values_to_be_unique",
"expect_column_pair_cramers_phi_value_to_be_less_than",
# "expect_table_row_count_to_equal_other_table",
"expect_multicolumn_sum_to_equal",
]
if context == "SparkDFDataset":
return expectation_type in [
# "expect_column_to_exist",
# "expect_table_row_count_to_be_between",
# "expect_table_row_count_to_equal",
# "expect_table_columns_to_match_ordered_list",
# "expect_column_values_to_be_unique",
# "expect_column_values_to_not_be_null",
# "expect_column_values_to_be_null",
# "expect_column_values_to_be_of_type",
# "expect_column_values_to_be_in_type_list",
# "expect_column_values_to_be_in_set",
# "expect_column_values_to_not_be_in_set",
# "expect_column_distinct_values_to_be_in_set",
# "expect_column_distinct_values_to_equal_set",
# "expect_column_distinct_values_to_contain_set",
# "expect_column_values_to_be_between",
# "expect_column_values_to_be_increasing",
# "expect_column_values_to_be_decreasing",
# "expect_column_value_lengths_to_be_between",
# "expect_column_value_lengths_to_equal",
# "expect_column_values_to_match_regex",
# "expect_column_values_to_not_match_regex",
# "expect_column_values_to_match_regex_list",
"expect_column_values_to_not_match_regex_list",
# "expect_column_values_to_match_strftime_format",
"expect_column_values_to_be_dateutil_parseable",
"expect_column_values_to_be_json_parseable",
# "expect_column_values_to_match_json_schema",
# "expect_column_mean_to_be_between",
# "expect_column_median_to_be_between",
# "expect_column_quantile_values_to_be_between",
# "expect_column_stdev_to_be_between",
# "expect_column_unique_value_count_to_be_between",
# "expect_column_proportion_of_unique_values_to_be_between",
# "expect_column_most_common_value_to_be_in_set",
# "expect_column_sum_to_be_between",
# "expect_column_min_to_be_between",
# "expect_column_max_to_be_between",
# "expect_column_chisquare_test_p_value_to_be_greater_than",
"expect_column_bootstrapped_ks_test_p_value_to_be_greater_than",
# "expect_column_kl_divergence_to_be_less_than",
"expect_column_parameterized_distribution_ks_test_p_value_to_be_greater_than",
# "expect_column_pair_values_to_be_equal",
# "expect_column_pair_values_A_to_be_greater_than_B",
# "expect_column_pair_values_to_be_in_set",
# "expect_select_column_values_to_be_unique_within_record",
"expect_compound_columns_to_be_unique",
# "expect_multicolumn_values_to_be_unique",
"expect_column_pair_cramers_phi_value_to_be_less_than",
"expect_table_row_count_to_equal_other_table",
# "expect_multicolumn_sum_to_equal",
]
if context == "PandasDataset":
return expectation_type in [
"expect_table_row_count_to_equal_other_table",
]
return False
def evaluate_json_test(data_asset, expectation_type, test):
"""
This method will evaluate the result of a test build using the Great Expectations json test format.
NOTE: Tests can be suppressed for certain data types if the test contains the Key 'suppress_test_for' with a list
of DataAsset types to suppress, such as ['SQLAlchemy', 'Pandas'].
:param data_asset: (DataAsset) A great expectations DataAsset
:param expectation_type: (string) the name of the expectation to be run using the test input
:param test: (dict) a dictionary containing information for the test to be run. The dictionary must include:
- title: (string) the name of the test
- exact_match_out: (boolean) If true, match the 'out' dictionary exactly against the result of the expectation
- in: (dict or list) a dictionary of keyword arguments to use to evaluate the expectation or a list of positional arguments
- out: (dict) the dictionary keys against which to make assertions. Unless exact_match_out is true, keys must\
come from the following list:
- success
- observed_value
- unexpected_index_list
- unexpected_list
- details
- traceback_substring (if present, the string value will be expected as a substring of the exception_traceback)
:return: None. asserts correctness of results.
"""
data_asset.set_default_expectation_argument("result_format", "COMPLETE")
data_asset.set_default_expectation_argument("include_config", False)
if "title" not in test:
raise ValueError("Invalid test configuration detected: 'title' is required.")
if "exact_match_out" not in test:
raise ValueError(
"Invalid test configuration detected: 'exact_match_out' is required."
)
if "in" not in test:
raise ValueError("Invalid test configuration detected: 'in' is required.")
if "out" not in test:
raise ValueError("Invalid test configuration detected: 'out' is required.")
# Support tests with positional arguments
if isinstance(test["in"], list):
result = getattr(data_asset, expectation_type)(*test["in"])
# As well as keyword arguments
else:
result = getattr(data_asset, expectation_type)(**test["in"])
check_json_test_result(test=test, result=result, data_asset=data_asset)
def check_json_test_result(test, result, data_asset=None):
# Check results
if test["exact_match_out"] is True:
assert expectationValidationResultSchema.load(test["out"]) == result
else:
# Convert result to json since our tests are reading from json so cannot easily contain richer types (e.g. NaN)
# NOTE - 20191031 - JPC - we may eventually want to change these tests as we update our view on how
# representations, serializations, and objects should interact and how much of that is shown to the user.
result = result.to_json_dict()
for key, value in test["out"].items():
# Apply our great expectations-specific test logic
if key == "success":
assert result["success"] == value
elif key == "observed_value":
if "tolerance" in test:
if isinstance(value, dict):
assert set(value.keys()) == set(
result["result"]["observed_value"].keys()
)
for k, v in value.items():
assert np.allclose(
result["result"]["observed_value"][k],
v,
rtol=test["tolerance"],
)
else:
assert np.allclose(
result["result"]["observed_value"],
value,
rtol=test["tolerance"],
)
else:
assert value == result["result"]["observed_value"]
# NOTE: This is a key used ONLY for testing cases where an expectation is legitimately allowed to return
# any of multiple possible observed_values. expect_column_values_to_be_of_type is one such expectation.
elif key == "observed_value_list":
assert result["result"]["observed_value"] in value
elif key == "unexpected_index_list":
if isinstance(data_asset, (SqlAlchemyDataset, SparkDFDataset)):
pass
else:
assert result["result"]["unexpected_index_list"] == value
elif key == "unexpected_list":
# check if value can be sorted; if so, sort so arbitrary ordering of results does not cause failure
if (isinstance(value, list)) & (len(value) >= 1):
if type(value[0].__lt__(value[0])) != type(NotImplemented):
value = value.sort()
result["result"]["unexpected_list"] = result["result"][
"unexpected_list"
].sort()
assert result["result"]["unexpected_list"] == value, (
"expected "
+ str(value)
+ " but got "
+ str(result["result"]["unexpected_list"])
)
elif key == "details":
assert result["result"]["details"] == value
elif key == "value_counts":
for val_count in value:
assert val_count in result["result"]["details"]["value_counts"]
elif key.startswith("observed_cdf"):
if "x_-1" in key:
if key.endswith("gt"):
assert (
result["result"]["details"]["observed_cdf"]["x"][-1] > value
)
else:
assert (
result["result"]["details"]["observed_cdf"]["x"][-1]
== value
)
elif "x_0" in key:
if key.endswith("lt"):
assert (
result["result"]["details"]["observed_cdf"]["x"][0] < value
)
else:
assert (
result["result"]["details"]["observed_cdf"]["x"][0] == value
)
else:
raise ValueError(
"Invalid test specification: unknown key " + key + " in 'out'"
)
elif key == "traceback_substring":
assert result["exception_info"]["raised_exception"]
assert value in result["exception_info"]["exception_traceback"], (
"expected to find "
+ value
+ " in "
+ result["exception_info"]["exception_traceback"]
)
elif key == "expected_partition":
assert np.allclose(
result["result"]["details"]["expected_partition"]["bins"],
value["bins"],
)
assert np.allclose(
result["result"]["details"]["expected_partition"]["weights"],
value["weights"],
)
if "tail_weights" in result["result"]["details"]["expected_partition"]:
assert np.allclose(
result["result"]["details"]["expected_partition"][
"tail_weights"
],
value["tail_weights"],
)
elif key == "observed_partition":
assert np.allclose(
result["result"]["details"]["observed_partition"]["bins"],
value["bins"],
)
assert np.allclose(
result["result"]["details"]["observed_partition"]["weights"],
value["weights"],
)
if "tail_weights" in result["result"]["details"]["observed_partition"]:
assert np.allclose(
result["result"]["details"]["observed_partition"][
"tail_weights"
],
value["tail_weights"],
)
else:
raise ValueError(
"Invalid test specification: unknown key " + key + " in 'out'"
)
def safe_remove(path):
if path is not None:
try:
os.remove(path)
except OSError as e:
print(e)
| {
"pile_set_name": "Github"
} |
from PIL import Image
import numpy as np
def save_gif(single_seq, fname):
"""Save a single gif consisting of image sequence in single_seq to fname."""
img_seq = [Image.fromarray(img.astype(np.float32) * 255, 'F').convert("L") for img in single_seq]
img = img_seq[0]
img.save(fname, save_all=True, append_images=img_seq[1:])
def save_gifs(seq, prefix):
"""Save several gifs.
Args:
seq: Shape (num_gifs, IMG_SIZE, IMG_SIZE)
prefix: prefix-idx.gif will be the final filename.
"""
for idx, single_seq in enumerate(seq):
save_gif(single_seq, "{}-{}.gif".format(prefix, idx))
| {
"pile_set_name": "Github"
} |
/* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
Sound Channel Process Functions - SGI/IRIX
Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 2003-2008
Copyright (C) GuoJunBo <[email protected]> 2003
Copyright (C) Jeremy Meng <[email protected]> 2004-2005
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/>.
*/
/*
* Oracle GPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the General Public License version 2 (GPLv2) at this time for any software where
* a choice of GPL license versions is made available with the language indicating
* that GPLv2 or any later version may be used, or where a choice of which version
* of the GPL is applied is otherwise unspecified.
*/
#include "rdesktop.h"
#include <errno.h>
#include <dmedia/audio.h>
/* #define IRIX_DEBUG 1 */
#define IRIX_MAX_VOL 65535
ALconfig audioconfig;
ALport output_port;
static int g_snd_rate;
static int width = AL_SAMPLE_16;
static char *sgi_output_device = NULL;
double min_volume, max_volume, volume_range;
int resource, maxFillable;
int combinedFrameSize;
void sgi_play(void);
void
sgi_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv)
{
/* We need to be called rather often... */
if (output_port != (ALport) 0 && !rdpsnd_queue_empty())
FD_SET(0, wfds);
}
void
sgi_check_fds(fd_set * rfds, fd_set * wfds)
{
if (output_port == (ALport) 0)
return;
if (!rdpsnd_queue_empty())
sgi_play();
}
RD_BOOL
sgi_open(void)
{
ALparamInfo pinfo;
static int warned = 0;
#if (defined(IRIX_DEBUG))
fprintf(stderr, "sgi_open: begin\n");
#endif
if (!warned && sgi_output_device)
{
warning("device-options not supported for libao-driver\n");
warned = 1;
}
if (alGetParamInfo(AL_DEFAULT_OUTPUT, AL_GAIN, &pinfo) < 0)
{
fprintf(stderr, "sgi_open: alGetParamInfo failed: %s\n",
alGetErrorString(oserror()));
}
min_volume = alFixedToDouble(pinfo.min.ll);
max_volume = alFixedToDouble(pinfo.max.ll);
volume_range = (max_volume - min_volume);
#if (defined(IRIX_DEBUG))
fprintf(stderr, "sgi_open: minvol = %lf, maxvol= %lf, range = %lf.\n",
min_volume, max_volume, volume_range);
#endif
audioconfig = alNewConfig();
if (audioconfig == (ALconfig) 0)
{
fprintf(stderr, "sgi_open: alNewConfig failed: %s\n", alGetErrorString(oserror()));
return False;
}
output_port = alOpenPort("rdpsnd", "w", 0);
if (output_port == (ALport) 0)
{
fprintf(stderr, "sgi_open: alOpenPort failed: %s\n", alGetErrorString(oserror()));
return False;
}
#if (defined(IRIX_DEBUG))
fprintf(stderr, "sgi_open: returning\n");
#endif
return True;
}
void
sgi_close(void)
{
/* Ack all remaining packets */
#if (defined(IRIX_DEBUG))
fprintf(stderr, "sgi_close: begin\n");
#endif
while (!rdpsnd_queue_empty())
rdpsnd_queue_next(0);
alDiscardFrames(output_port, 0);
alClosePort(output_port);
output_port = (ALport) 0;
alFreeConfig(audioconfig);
#if (defined(IRIX_DEBUG))
fprintf(stderr, "sgi_close: returning\n");
#endif
}
RD_BOOL
sgi_format_supported(RD_WAVEFORMATEX * pwfx)
{
if (pwfx->wFormatTag != WAVE_FORMAT_PCM)
return False;
if ((pwfx->nChannels != 1) && (pwfx->nChannels != 2))
return False;
if ((pwfx->wBitsPerSample != 8) && (pwfx->wBitsPerSample != 16))
return False;
return True;
}
RD_BOOL
sgi_set_format(RD_WAVEFORMATEX * pwfx)
{
int channels;
int frameSize, channelCount;
ALpv params;
#if (defined(IRIX_DEBUG))
fprintf(stderr, "sgi_set_format: init...\n");
#endif
if (pwfx->wBitsPerSample == 8)
width = AL_SAMPLE_8;
else if (pwfx->wBitsPerSample == 16)
width = AL_SAMPLE_16;
/* Limited support to configure an opened audio port in IRIX. The
number of channels is a static setting and can not be changed after
a port is opened. So if the number of channels remains the same, we
can configure other settings; otherwise we have to reopen the audio
port, using same config. */
channels = pwfx->nChannels;
g_snd_rate = pwfx->nSamplesPerSec;
alSetSampFmt(audioconfig, AL_SAMPFMT_TWOSCOMP);
alSetWidth(audioconfig, width);
if (channels != alGetChannels(audioconfig))
{
alClosePort(output_port);
alSetChannels(audioconfig, channels);
output_port = alOpenPort("rdpsnd", "w", audioconfig);
if (output_port == (ALport) 0)
{
fprintf(stderr, "sgi_set_format: alOpenPort failed: %s\n",
alGetErrorString(oserror()));
return False;
}
}
resource = alGetResource(output_port);
maxFillable = alGetFillable(output_port);
channelCount = alGetChannels(audioconfig);
frameSize = alGetWidth(audioconfig);
if (frameSize == 0 || channelCount == 0)
{
fprintf(stderr, "sgi_set_format: bad frameSize or channelCount\n");
return False;
}
combinedFrameSize = frameSize * channelCount;
params.param = AL_RATE;
params.value.ll = (long long) g_snd_rate << 32;
if (alSetParams(resource, ¶ms, 1) < 0)
{
fprintf(stderr, "wave_set_format: alSetParams failed: %s\n",
alGetErrorString(oserror()));
return False;
}
if (params.sizeOut < 0)
{
fprintf(stderr, "wave_set_format: invalid rate %d\n", g_snd_rate);
return False;
}
#if (defined(IRIX_DEBUG))
fprintf(stderr, "sgi_set_format: returning...\n");
#endif
return True;
}
void
sgi_volume(uint16 left, uint16 right)
{
double gainleft, gainright;
ALpv pv[1];
ALfixed gain[8];
#if (defined(IRIX_DEBUG))
fprintf(stderr, "sgi_volume: begin\n");
fprintf(stderr, "left='%d', right='%d'\n", left, right);
#endif
gainleft = (double) left / IRIX_MAX_VOL;
gainright = (double) right / IRIX_MAX_VOL;
gain[0] = alDoubleToFixed(min_volume + gainleft * volume_range);
gain[1] = alDoubleToFixed(min_volume + gainright * volume_range);
pv[0].param = AL_GAIN;
pv[0].value.ptr = gain;
pv[0].sizeIn = 8;
if (alSetParams(AL_DEFAULT_OUTPUT, pv, 1) < 0)
{
fprintf(stderr, "sgi_volume: alSetParams failed: %s\n",
alGetErrorString(oserror()));
return;
}
#if (defined(IRIX_DEBUG))
fprintf(stderr, "sgi_volume: returning\n");
#endif
}
void
sgi_play(void)
{
struct audio_packet *packet;
ssize_t len;
unsigned int i;
STREAM out;
int gf;
while (1)
{
if (rdpsnd_queue_empty())
return;
packet = rdpsnd_queue_current_packet();
out = &packet->s;
len = out->end - out->p;
alWriteFrames(output_port, out->p, len / combinedFrameSize);
out->p += len;
if (out->p == out->end)
{
gf = alGetFilled(output_port);
if (gf < (4 * maxFillable / 10))
{
rdpsnd_queue_next(0);
}
else
{
#if (defined(IRIX_DEBUG))
/* fprintf(stderr,"Busy playing...\n"); */
#endif
usleep(10);
return;
}
}
}
}
struct audio_driver *
sgi_register(char *options)
{
static struct audio_driver sgi_driver;
memset(&sgi_driver, 0, sizeof(sgi_driver));
sgi_driver.name = "sgi";
sgi_driver.description = "SGI output driver";
sgi_driver.add_fds = sgi_add_fds;
sgi_driver.check_fds = sgi_check_fds;
sgi_driver.wave_out_open = sgi_open;
sgi_driver.wave_out_close = sgi_close;
sgi_driver.wave_out_format_supported = sgi_format_supported;
sgi_driver.wave_out_set_format = sgi_set_format;
sgi_driver.wave_out_volume = sgi_volume;
sgi_driver.need_byteswap_on_be = 1;
sgi_driver.need_resampling = 0;
if (options)
{
sgi_output_device = xstrdup(options);
}
return &sgi_driver;
}
| {
"pile_set_name": "Github"
} |
name: Kubernetes Javascript Client - Validation
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '12', '10' ]
name: Node ${{ matrix.node }} validation
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
# Pre-check to validate that versions match between package.json
# and package-lock.json. Needs to run before npm install
- run: node version-check.js
- run: npm install
- run: npm test
- run: npm run lint
| {
"pile_set_name": "Github"
} |
/* $XFree86$ */
/* $XdotOrg$ */
/*
* General structure definitions for universal mode switching modules
*
* Copyright (C) 2001-2005 by Thomas Winischhofer, Vienna, Austria
*
* If distributed as part of the Linux kernel, the following license terms
* apply:
*
* * This program is free software; you can redistribute it and/or modify
* * it under the terms of the GNU General Public License as published by
* * the Free Software Foundation; either version 2 of the named License,
* * or 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, write to the Free Software
* * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
*
* Otherwise, the following license terms apply:
*
* * Redistribution and use in source and binary forms, with or without
* * modification, are permitted provided that the following conditions
* * are met:
* * 1) Redistributions of source code must retain the above copyright
* * notice, this list of conditions and the following disclaimer.
* * 2) Redistributions in binary form must reproduce the above copyright
* * notice, this list of conditions and the following disclaimer in the
* * documentation and/or other materials provided with the distribution.
* * 3) The name of the author may not be used to endorse or promote products
* * derived from this software without specific prior written permission.
* *
* * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Author: Thomas Winischhofer <[email protected]>
*
*/
#ifndef _VSTRUCT_H_
#define _VSTRUCT_H_
struct SiS_PanelDelayTbl {
unsigned char timer[2];
};
struct SiS_LCDData {
unsigned short RVBHCMAX;
unsigned short RVBHCFACT;
unsigned short VGAHT;
unsigned short VGAVT;
unsigned short LCDHT;
unsigned short LCDVT;
};
struct SiS_TVData {
unsigned short RVBHCMAX;
unsigned short RVBHCFACT;
unsigned short VGAHT;
unsigned short VGAVT;
unsigned short TVHDE;
unsigned short TVVDE;
unsigned short RVBHRS;
unsigned char FlickerMode;
unsigned short HALFRVBHRS;
unsigned short RVBHRS2;
unsigned char RY1COE;
unsigned char RY2COE;
unsigned char RY3COE;
unsigned char RY4COE;
};
struct SiS_LVDSData {
unsigned short VGAHT;
unsigned short VGAVT;
unsigned short LCDHT;
unsigned short LCDVT;
};
struct SiS_LVDSDes {
unsigned short LCDHDES;
unsigned short LCDVDES;
};
struct SiS_LVDSCRT1Data {
unsigned char CR[15];
};
struct SiS_CHTVRegData {
unsigned char Reg[16];
};
struct SiS_St {
unsigned char St_ModeID;
unsigned short St_ModeFlag;
unsigned char St_StTableIndex;
unsigned char St_CRT2CRTC;
unsigned char St_ResInfo;
unsigned char VB_StTVFlickerIndex;
unsigned char VB_StTVEdgeIndex;
unsigned char VB_StTVYFilterIndex;
unsigned char St_PDC;
};
struct SiS_VBMode {
unsigned char ModeID;
unsigned char VB_TVDelayIndex;
unsigned char VB_TVFlickerIndex;
unsigned char VB_TVPhaseIndex;
unsigned char VB_TVYFilterIndex;
unsigned char VB_LCDDelayIndex;
unsigned char _VB_LCDHIndex;
unsigned char _VB_LCDVIndex;
};
struct SiS_StandTable_S {
unsigned char CRT_COLS;
unsigned char ROWS;
unsigned char CHAR_HEIGHT;
unsigned short CRT_LEN;
unsigned char SR[4];
unsigned char MISC;
unsigned char CRTC[0x19];
unsigned char ATTR[0x14];
unsigned char GRC[9];
};
struct SiS_Ext {
unsigned char Ext_ModeID;
unsigned short Ext_ModeFlag;
unsigned short Ext_VESAID;
unsigned char Ext_RESINFO;
unsigned char VB_ExtTVFlickerIndex;
unsigned char VB_ExtTVEdgeIndex;
unsigned char VB_ExtTVYFilterIndex;
unsigned char VB_ExtTVYFilterIndexROM661;
unsigned char REFindex;
char ROMMODEIDX661;
};
struct SiS_Ext2 {
unsigned short Ext_InfoFlag;
unsigned char Ext_CRT1CRTC;
unsigned char Ext_CRTVCLK;
unsigned char Ext_CRT2CRTC;
unsigned char Ext_CRT2CRTC_NS;
unsigned char ModeID;
unsigned short XRes;
unsigned short YRes;
unsigned char Ext_PDC;
unsigned char Ext_FakeCRT2CRTC;
unsigned char Ext_FakeCRT2Clk;
unsigned char Ext_CRT1CRTC_NORM;
unsigned char Ext_CRTVCLK_NORM;
unsigned char Ext_CRT1CRTC_WIDE;
unsigned char Ext_CRTVCLK_WIDE;
};
struct SiS_Part2PortTbl {
unsigned char CR[12];
};
struct SiS_CRT1Table {
unsigned char CR[17];
};
struct SiS_MCLKData {
unsigned char SR28,SR29,SR2A;
unsigned short CLOCK;
};
struct SiS_VCLKData {
unsigned char SR2B,SR2C;
unsigned short CLOCK;
};
struct SiS_VBVCLKData {
unsigned char Part4_A,Part4_B;
unsigned short CLOCK;
};
struct SiS_StResInfo_S {
unsigned short HTotal;
unsigned short VTotal;
};
struct SiS_ModeResInfo_S {
unsigned short HTotal;
unsigned short VTotal;
unsigned char XChar;
unsigned char YChar;
};
/* Defines for SiS_CustomT */
/* Never change these for sisfb compatibility */
#define CUT_NONE 0
#define CUT_FORCENONE 1
#define CUT_BARCO1366 2
#define CUT_BARCO1024 3
#define CUT_COMPAQ1280 4
#define CUT_COMPAQ12802 5
#define CUT_PANEL848 6
#define CUT_CLEVO1024 7
#define CUT_CLEVO10242 8
#define CUT_CLEVO1400 9
#define CUT_CLEVO14002 10
#define CUT_UNIWILL1024 11
#define CUT_ASUSL3000D 12
#define CUT_UNIWILL10242 13
#define CUT_ACER1280 14
#define CUT_COMPAL1400_1 15
#define CUT_COMPAL1400_2 16
#define CUT_ASUSA2H_1 17
#define CUT_ASUSA2H_2 18
#define CUT_UNKNOWNLCD 19
#define CUT_AOP8060 20
#define CUT_PANEL856 21
struct SiS_Private
{
unsigned char ChipType;
unsigned char ChipRevision;
void *ivideo;
unsigned char *VirtualRomBase;
bool UseROM;
unsigned char SISIOMEMTYPE *VideoMemoryAddress;
unsigned int VideoMemorySize;
SISIOADDRESS IOAddress;
SISIOADDRESS IOAddress2; /* For dual chip XGI volari */
SISIOADDRESS RelIO;
SISIOADDRESS SiS_P3c4;
SISIOADDRESS SiS_P3d4;
SISIOADDRESS SiS_P3c0;
SISIOADDRESS SiS_P3ce;
SISIOADDRESS SiS_P3c2;
SISIOADDRESS SiS_P3ca;
SISIOADDRESS SiS_P3c6;
SISIOADDRESS SiS_P3c7;
SISIOADDRESS SiS_P3c8;
SISIOADDRESS SiS_P3c9;
SISIOADDRESS SiS_P3cb;
SISIOADDRESS SiS_P3cc;
SISIOADDRESS SiS_P3cd;
SISIOADDRESS SiS_P3da;
SISIOADDRESS SiS_Part1Port;
SISIOADDRESS SiS_Part2Port;
SISIOADDRESS SiS_Part3Port;
SISIOADDRESS SiS_Part4Port;
SISIOADDRESS SiS_Part5Port;
SISIOADDRESS SiS_VidCapt;
SISIOADDRESS SiS_VidPlay;
unsigned short SiS_IF_DEF_LVDS;
unsigned short SiS_IF_DEF_CH70xx;
unsigned short SiS_IF_DEF_CONEX;
unsigned short SiS_IF_DEF_TRUMPION;
unsigned short SiS_IF_DEF_DSTN;
unsigned short SiS_IF_DEF_FSTN;
unsigned short SiS_SysFlags;
unsigned char SiS_VGAINFO;
bool SiS_UseROM;
bool SiS_ROMNew;
bool SiS_XGIROM;
bool SiS_NeedRomModeData;
bool PanelSelfDetected;
bool DDCPortMixup;
int SiS_CHOverScan;
bool SiS_CHSOverScan;
bool SiS_ChSW;
bool SiS_UseLCDA;
int SiS_UseOEM;
unsigned int SiS_CustomT;
int SiS_UseWide, SiS_UseWideCRT2;
int SiS_TVBlue;
unsigned short SiS_Backup70xx;
bool HaveEMI;
bool HaveEMILCD;
bool OverruleEMI;
unsigned char EMI_30,EMI_31,EMI_32,EMI_33;
unsigned short SiS_EMIOffset;
unsigned short SiS_PWDOffset;
short PDC, PDCA;
unsigned char SiS_MyCR63;
unsigned short SiS_CRT1Mode;
unsigned short SiS_flag_clearbuffer;
int SiS_RAMType;
unsigned char SiS_ChannelAB;
unsigned char SiS_DataBusWidth;
unsigned short SiS_ModeType;
unsigned short SiS_VBInfo;
unsigned short SiS_TVMode;
unsigned short SiS_LCDResInfo;
unsigned short SiS_LCDTypeInfo;
unsigned short SiS_LCDInfo;
unsigned short SiS_LCDInfo661;
unsigned short SiS_VBType;
unsigned short SiS_VBExtInfo;
unsigned short SiS_YPbPr;
unsigned short SiS_SelectCRT2Rate;
unsigned short SiS_SetFlag;
unsigned short SiS_RVBHCFACT;
unsigned short SiS_RVBHCMAX;
unsigned short SiS_RVBHRS;
unsigned short SiS_RVBHRS2;
unsigned short SiS_VGAVT;
unsigned short SiS_VGAHT;
unsigned short SiS_VT;
unsigned short SiS_HT;
unsigned short SiS_VGAVDE;
unsigned short SiS_VGAHDE;
unsigned short SiS_VDE;
unsigned short SiS_HDE;
unsigned short SiS_NewFlickerMode;
unsigned short SiS_RY1COE;
unsigned short SiS_RY2COE;
unsigned short SiS_RY3COE;
unsigned short SiS_RY4COE;
unsigned short SiS_LCDHDES;
unsigned short SiS_LCDVDES;
SISIOADDRESS SiS_DDC_Port;
unsigned short SiS_DDC_Index;
unsigned short SiS_DDC_Data;
unsigned short SiS_DDC_NData;
unsigned short SiS_DDC_Clk;
unsigned short SiS_DDC_NClk;
unsigned short SiS_DDC_DeviceAddr;
unsigned short SiS_DDC_ReadAddr;
unsigned short SiS_DDC_SecAddr;
unsigned short SiS_ChrontelInit;
bool SiS_SensibleSR11;
unsigned short SiS661LCD2TableSize;
unsigned short SiS_PanelMinLVDS;
unsigned short SiS_PanelMin301;
const struct SiS_St *SiS_SModeIDTable;
const struct SiS_StandTable_S *SiS_StandTable;
const struct SiS_Ext *SiS_EModeIDTable;
const struct SiS_Ext2 *SiS_RefIndex;
const struct SiS_VBMode *SiS_VBModeIDTable;
const struct SiS_CRT1Table *SiS_CRT1Table;
const struct SiS_MCLKData *SiS_MCLKData_0;
const struct SiS_MCLKData *SiS_MCLKData_1;
struct SiS_VCLKData *SiS_VCLKData;
struct SiS_VBVCLKData *SiS_VBVCLKData;
const struct SiS_StResInfo_S *SiS_StResInfo;
const struct SiS_ModeResInfo_S *SiS_ModeResInfo;
const unsigned char *pSiS_OutputSelect;
const unsigned char *pSiS_SoftSetting;
const unsigned char *SiS_SR15;
const struct SiS_PanelDelayTbl *SiS_PanelDelayTbl;
const struct SiS_PanelDelayTbl *SiS_PanelDelayTblLVDS;
/* SiS bridge */
const struct SiS_LCDData *SiS_ExtLCD1024x768Data;
const struct SiS_LCDData *SiS_St2LCD1024x768Data;
const struct SiS_LCDData *SiS_LCD1280x720Data;
const struct SiS_LCDData *SiS_StLCD1280x768_2Data;
const struct SiS_LCDData *SiS_ExtLCD1280x768_2Data;
const struct SiS_LCDData *SiS_LCD1280x800Data;
const struct SiS_LCDData *SiS_LCD1280x800_2Data;
const struct SiS_LCDData *SiS_LCD1280x854Data;
const struct SiS_LCDData *SiS_LCD1280x960Data;
const struct SiS_LCDData *SiS_ExtLCD1280x1024Data;
const struct SiS_LCDData *SiS_St2LCD1280x1024Data;
const struct SiS_LCDData *SiS_StLCD1400x1050Data;
const struct SiS_LCDData *SiS_ExtLCD1400x1050Data;
const struct SiS_LCDData *SiS_StLCD1600x1200Data;
const struct SiS_LCDData *SiS_ExtLCD1600x1200Data;
const struct SiS_LCDData *SiS_LCD1680x1050Data;
const struct SiS_LCDData *SiS_NoScaleData;
const struct SiS_TVData *SiS_StPALData;
const struct SiS_TVData *SiS_ExtPALData;
const struct SiS_TVData *SiS_StNTSCData;
const struct SiS_TVData *SiS_ExtNTSCData;
const struct SiS_TVData *SiS_St1HiTVData;
const struct SiS_TVData *SiS_St2HiTVData;
const struct SiS_TVData *SiS_ExtHiTVData;
const struct SiS_TVData *SiS_St525iData;
const struct SiS_TVData *SiS_St525pData;
const struct SiS_TVData *SiS_St750pData;
const struct SiS_TVData *SiS_Ext525iData;
const struct SiS_TVData *SiS_Ext525pData;
const struct SiS_TVData *SiS_Ext750pData;
const unsigned char *SiS_NTSCTiming;
const unsigned char *SiS_PALTiming;
const unsigned char *SiS_HiTVExtTiming;
const unsigned char *SiS_HiTVSt1Timing;
const unsigned char *SiS_HiTVSt2Timing;
const unsigned char *SiS_HiTVGroup3Data;
const unsigned char *SiS_HiTVGroup3Simu;
#if 0
const unsigned char *SiS_HiTVTextTiming;
const unsigned char *SiS_HiTVGroup3Text;
#endif
const struct SiS_Part2PortTbl *SiS_CRT2Part2_1024x768_1;
const struct SiS_Part2PortTbl *SiS_CRT2Part2_1024x768_2;
const struct SiS_Part2PortTbl *SiS_CRT2Part2_1024x768_3;
/* LVDS, Chrontel */
const struct SiS_LVDSData *SiS_LVDS320x240Data_1;
const struct SiS_LVDSData *SiS_LVDS320x240Data_2;
const struct SiS_LVDSData *SiS_LVDS640x480Data_1;
const struct SiS_LVDSData *SiS_LVDS800x600Data_1;
const struct SiS_LVDSData *SiS_LVDS1024x600Data_1;
const struct SiS_LVDSData *SiS_LVDS1024x768Data_1;
const struct SiS_LVDSData *SiS_LVDSBARCO1366Data_1;
const struct SiS_LVDSData *SiS_LVDSBARCO1366Data_2;
const struct SiS_LVDSData *SiS_LVDSBARCO1024Data_1;
const struct SiS_LVDSData *SiS_LVDS848x480Data_1;
const struct SiS_LVDSData *SiS_LVDS848x480Data_2;
const struct SiS_LVDSData *SiS_CHTVUNTSCData;
const struct SiS_LVDSData *SiS_CHTVONTSCData;
const struct SiS_LVDSData *SiS_CHTVUPALData;
const struct SiS_LVDSData *SiS_CHTVOPALData;
const struct SiS_LVDSData *SiS_CHTVUPALMData;
const struct SiS_LVDSData *SiS_CHTVOPALMData;
const struct SiS_LVDSData *SiS_CHTVUPALNData;
const struct SiS_LVDSData *SiS_CHTVOPALNData;
const struct SiS_LVDSData *SiS_CHTVSOPALData;
const struct SiS_LVDSDes *SiS_PanelType04_1a;
const struct SiS_LVDSDes *SiS_PanelType04_2a;
const struct SiS_LVDSDes *SiS_PanelType04_1b;
const struct SiS_LVDSDes *SiS_PanelType04_2b;
const struct SiS_LVDSCRT1Data *SiS_LVDSCRT1320x240_1;
const struct SiS_LVDSCRT1Data *SiS_LVDSCRT1320x240_2;
const struct SiS_LVDSCRT1Data *SiS_LVDSCRT1320x240_2_H;
const struct SiS_LVDSCRT1Data *SiS_LVDSCRT1320x240_3;
const struct SiS_LVDSCRT1Data *SiS_LVDSCRT1320x240_3_H;
const struct SiS_LVDSCRT1Data *SiS_LVDSCRT1640x480_1;
const struct SiS_LVDSCRT1Data *SiS_LVDSCRT1640x480_1_H;
const struct SiS_LVDSCRT1Data *SiS_CHTVCRT1UNTSC;
const struct SiS_LVDSCRT1Data *SiS_CHTVCRT1ONTSC;
const struct SiS_LVDSCRT1Data *SiS_CHTVCRT1UPAL;
const struct SiS_LVDSCRT1Data *SiS_CHTVCRT1OPAL;
const struct SiS_LVDSCRT1Data *SiS_CHTVCRT1SOPAL;
const struct SiS_CHTVRegData *SiS_CHTVReg_UNTSC;
const struct SiS_CHTVRegData *SiS_CHTVReg_ONTSC;
const struct SiS_CHTVRegData *SiS_CHTVReg_UPAL;
const struct SiS_CHTVRegData *SiS_CHTVReg_OPAL;
const struct SiS_CHTVRegData *SiS_CHTVReg_UPALM;
const struct SiS_CHTVRegData *SiS_CHTVReg_OPALM;
const struct SiS_CHTVRegData *SiS_CHTVReg_UPALN;
const struct SiS_CHTVRegData *SiS_CHTVReg_OPALN;
const struct SiS_CHTVRegData *SiS_CHTVReg_SOPAL;
const unsigned char *SiS_CHTVVCLKUNTSC;
const unsigned char *SiS_CHTVVCLKONTSC;
const unsigned char *SiS_CHTVVCLKUPAL;
const unsigned char *SiS_CHTVVCLKOPAL;
const unsigned char *SiS_CHTVVCLKUPALM;
const unsigned char *SiS_CHTVVCLKOPALM;
const unsigned char *SiS_CHTVVCLKUPALN;
const unsigned char *SiS_CHTVVCLKOPALN;
const unsigned char *SiS_CHTVVCLKSOPAL;
unsigned short PanelXRes, PanelHT;
unsigned short PanelYRes, PanelVT;
unsigned short PanelHRS, PanelHRE;
unsigned short PanelVRS, PanelVRE;
unsigned short PanelVCLKIdx300;
unsigned short PanelVCLKIdx315;
bool Alternate1600x1200;
bool UseCustomMode;
bool CRT1UsesCustomMode;
unsigned short CHDisplay;
unsigned short CHSyncStart;
unsigned short CHSyncEnd;
unsigned short CHTotal;
unsigned short CHBlankStart;
unsigned short CHBlankEnd;
unsigned short CVDisplay;
unsigned short CVSyncStart;
unsigned short CVSyncEnd;
unsigned short CVTotal;
unsigned short CVBlankStart;
unsigned short CVBlankEnd;
unsigned int CDClock;
unsigned int CFlags;
unsigned char CCRT1CRTC[17];
unsigned char CSR2B;
unsigned char CSR2C;
unsigned short CSRClock;
unsigned short CSRClock_CRT1;
unsigned short CModeFlag;
unsigned short CModeFlag_CRT1;
unsigned short CInfoFlag;
int LVDSHL;
bool Backup;
unsigned char Backup_Mode;
unsigned char Backup_14;
unsigned char Backup_15;
unsigned char Backup_16;
unsigned char Backup_17;
unsigned char Backup_18;
unsigned char Backup_19;
unsigned char Backup_1a;
unsigned char Backup_1b;
unsigned char Backup_1c;
unsigned char Backup_1d;
unsigned char Init_P4_0E;
int UsePanelScaler;
int CenterScreen;
unsigned short CP_Vendor, CP_Product;
bool CP_HaveCustomData;
int CP_PreferredX, CP_PreferredY, CP_PreferredIndex;
int CP_MaxX, CP_MaxY, CP_MaxClock;
unsigned char CP_PrefSR2B, CP_PrefSR2C;
unsigned short CP_PrefClock;
bool CP_Supports64048075;
int CP_HDisplay[7], CP_VDisplay[7]; /* For Custom LCD panel dimensions */
int CP_HTotal[7], CP_VTotal[7];
int CP_HSyncStart[7], CP_VSyncStart[7];
int CP_HSyncEnd[7], CP_VSyncEnd[7];
int CP_HBlankStart[7], CP_VBlankStart[7];
int CP_HBlankEnd[7], CP_VBlankEnd[7];
int CP_Clock[7];
bool CP_DataValid[7];
bool CP_HSync_P[7], CP_VSync_P[7], CP_SyncValid[7];
};
#endif
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0910"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
| {
"pile_set_name": "Github"
} |
/*
* Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
#ifndef HEADER_EBCDIC_H
# define HEADER_EBCDIC_H
# include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Avoid name clashes with other applications */
# define os_toascii _openssl_os_toascii
# define os_toebcdic _openssl_os_toebcdic
# define ebcdic2ascii _openssl_ebcdic2ascii
# define ascii2ebcdic _openssl_ascii2ebcdic
extern const unsigned char os_toascii[256];
extern const unsigned char os_toebcdic[256];
void *ebcdic2ascii(void *dest, const void *srce, size_t count);
void *ascii2ebcdic(void *dest, const void *srce, size_t count);
#ifdef __cplusplus
}
#endif
#endif
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="NullableNotNullManager">
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
<option name="myNullables">
<value>
<list size="12">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
<item index="2" class="java.lang.String" itemvalue="javax.annotation.CheckForNull" />
<item index="3" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
<item index="4" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
<item index="5" class="java.lang.String" itemvalue="androidx.annotation.Nullable" />
<item index="6" class="java.lang.String" itemvalue="androidx.annotation.RecentlyNullable" />
<item index="7" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.qual.Nullable" />
<item index="8" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.compatqual.NullableDecl" />
<item index="9" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.compatqual.NullableType" />
<item index="10" class="java.lang.String" itemvalue="android.annotation.Nullable" />
<item index="11" class="java.lang.String" itemvalue="com.android.annotations.Nullable" />
</list>
</value>
</option>
<option name="myNotNulls">
<value>
<list size="11">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
<item index="4" class="java.lang.String" itemvalue="androidx.annotation.NonNull" />
<item index="5" class="java.lang.String" itemvalue="androidx.annotation.RecentlyNonNull" />
<item index="6" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.qual.NonNull" />
<item index="7" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.compatqual.NonNullDecl" />
<item index="8" class="java.lang.String" itemvalue="org.checkerframework.checker.nullness.compatqual.NonNullType" />
<item index="9" class="java.lang.String" itemvalue="android.annotation.NonNull" />
<item index="10" class="java.lang.String" itemvalue="com.android.annotations.NonNull" />
</list>
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project> | {
"pile_set_name": "Github"
} |
#include "botpch.h"
#include "../../playerbot.h"
#include "WarriorMultipliers.h"
#include "DpsWarriorStrategy.h"
using namespace ai;
class DpsWarriorStrategyActionNodeFactory : public NamedObjectFactory<ActionNode>
{
public:
DpsWarriorStrategyActionNodeFactory()
{
creators["overpower"] = &overpower;
creators["melee"] = &melee;
creators["charge"] = &charge;
creators["bloodthirst"] = &bloodthirst;
creators["rend"] = &rend;
creators["mocking blow"] = &mocking_blow;
creators["death wish"] = &death_wish;
creators["execute"] = &execute;
}
private:
static ActionNode* overpower(PlayerbotAI* ai)
{
return new ActionNode ("overpower",
/*P*/ NULL,
/*A*/ NextAction::array(0, new NextAction("melee"), NULL),
/*C*/ NULL);
}
static ActionNode* melee(PlayerbotAI* ai)
{
return new ActionNode ("melee",
/*P*/ NextAction::array(0, new NextAction("charge"), NULL),
/*A*/ NULL,
/*C*/ NULL);
}
static ActionNode* charge(PlayerbotAI* ai)
{
return new ActionNode ("charge",
/*P*/ NextAction::array(0, new NextAction("battle stance"), NULL),
/*A*/ NextAction::array(0, new NextAction("reach melee"), NULL),
/*C*/ NULL);
}
static ActionNode* bloodthirst(PlayerbotAI* ai)
{
return new ActionNode ("bloodthirst",
/*P*/ NextAction::array(0, new NextAction("battle stance"), NULL),
/*A*/ NextAction::array(0, new NextAction("heroic strike"), NULL),
/*C*/ NULL);
}
static ActionNode* rend(PlayerbotAI* ai)
{
return new ActionNode ("rend",
/*P*/ NextAction::array(0, new NextAction("battle stance"), NULL),
/*A*/ NULL,
/*C*/ NULL);
}
static ActionNode* mocking_blow(PlayerbotAI* ai)
{
return new ActionNode ("mocking blow",
/*P*/ NextAction::array(0, new NextAction("battle stance"), NULL),
/*A*/ NextAction::array(0, NULL),
/*C*/ NULL);
}
static ActionNode* death_wish(PlayerbotAI* ai)
{
return new ActionNode ("death wish",
/*P*/ NULL,
/*A*/ NextAction::array(0, new NextAction("berserker rage"), NULL),
/*C*/ NULL);
}
static ActionNode* execute(PlayerbotAI* ai)
{
return new ActionNode ("execute",
/*P*/ NextAction::array(0, new NextAction("battle stance"), NULL),
/*A*/ NextAction::array(0, new NextAction("heroic strike"), NULL),
/*C*/ NULL);
}
};
DpsWarriorStrategy::DpsWarriorStrategy(PlayerbotAI* ai) : GenericWarriorStrategy(ai)
{
actionNodeFactories.Add(new DpsWarriorStrategyActionNodeFactory());
}
NextAction** DpsWarriorStrategy::getDefaultActions()
{
return NextAction::array(0, new NextAction("bloodthirst", ACTION_NORMAL + 1), NULL);
}
void DpsWarriorStrategy::InitTriggers(std::list<TriggerNode*> &triggers)
{
GenericWarriorStrategy::InitTriggers(triggers);
triggers.push_back(new TriggerNode(
"enemy out of melee",
NextAction::array(0, new NextAction("charge", ACTION_NORMAL + 9), NULL)));
triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("execute", ACTION_HIGH + 4), NULL)));
triggers.push_back(new TriggerNode(
"hamstring",
NextAction::array(0, new NextAction("hamstring", ACTION_INTERRUPT), NULL)));
triggers.push_back(new TriggerNode(
"victory rush",
NextAction::array(0, new NextAction("victory rush", ACTION_HIGH + 3), NULL)));
triggers.push_back(new TriggerNode(
"death wish",
NextAction::array(0, new NextAction("death wish", ACTION_HIGH + 2), NULL)));
}
void DpsWarrirorAoeStrategy::InitTriggers(std::list<TriggerNode*> &triggers)
{
triggers.push_back(new TriggerNode(
"rend on attacker",
NextAction::array(0, new NextAction("rend on attacker", ACTION_HIGH + 1), NULL)));
triggers.push_back(new TriggerNode(
"light aoe",
NextAction::array(0, new NextAction("thunder clap", ACTION_HIGH + 2), new NextAction("demoralizing shout", ACTION_HIGH + 2), NULL)));
triggers.push_back(new TriggerNode(
"medium aoe",
NextAction::array(0, new NextAction("cleave", ACTION_HIGH + 3), NULL)));
}
| {
"pile_set_name": "Github"
} |
# Microsoft Developer Studio Project File - Name="语法" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=语法 - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "语法.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "语法.mak" CFG="语法 - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "语法 - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "语法 - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "语法 - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD BASE RSC /l 0x804 /d "NDEBUG"
# ADD RSC /l 0x804 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
!ELSEIF "$(CFG)" == "语法 - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "YYDEBUG" /YX /FD /GZ /c
# ADD BASE RSC /l 0x804 /d "_DEBUG"
# ADD RSC /l 0x804 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib yld.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "语法 - Win32 Release"
# Name "语法 - Win32 Debug"
# Begin Source File
SOURCE=".\词法.c"
# End Source File
# Begin Source File
SOURCE=".\语法.c"
# End Source File
# End Target
# End Project
| {
"pile_set_name": "Github"
} |
---
sidebar: manual
---
# Migration from v1.9.x to v2.0.11
The following does not apply to you. Please just follow the steps for the
[v1.9.x to v2.0.x](/win-acme/manual/upgrading/to-v2.0.0) migration.
# Migration from v2.0.x to v2.0.11
You will have to delete the files `Registration_v2` and `Signer_v2` from the ConfigurationPath,
which is `%programdata%\win-acme` by default. Then you will have to manually renew once to
create a new account with the ACME server.
The reason for this is that v2.0.11 runs on .NET Framework 4.6.1 which required us to drop support
for the elliptic curve account signers. | {
"pile_set_name": "Github"
} |
hubot:
image: easypi/hubot-arm
ports:
- "8080:8080"
volumes:
- ./data:/home/hubot/scripts
environment:
- HUBOT_SLACK_TOKEN=xoxb-xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx
- HUBOT_AUTH_ADMIN=UXXXXXXXX
restart: unless-stopped
| {
"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
*
* 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 org.apache.cayenne.dbsync.merge.factory;
import org.apache.cayenne.dba.DbAdapter;
import org.apache.cayenne.dbsync.merge.token.MergerToken;
import org.apache.cayenne.dbsync.merge.token.db.CreateTableToDb;
import org.apache.cayenne.dbsync.merge.token.db.DropRelationshipToDb;
import org.apache.cayenne.dbsync.merge.token.db.SetAllowNullToDb;
import org.apache.cayenne.dbsync.merge.token.db.SetColumnTypeToDb;
import org.apache.cayenne.dbsync.merge.token.db.SetNotNullToDb;
import org.apache.cayenne.map.DbAttribute;
import org.apache.cayenne.map.DbEntity;
import org.apache.cayenne.map.DbJoin;
import org.apache.cayenne.map.DbRelationship;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class OpenBaseMergerTokenFactory extends DefaultMergerTokenFactory {
@Override
public MergerToken createCreateTableToDb(DbEntity entity) {
return new CreateTableToDb(entity) {
@Override
public List<String> createSql(DbAdapter adapter) {
List<String> sqls = new ArrayList<>();
// create table first as OpenBase adapter created primary key in its
// getPkGenerator().createAutoPkStatements
sqls.add(adapter.createTable(getEntity()));
sqls.addAll(adapter.getPkGenerator().createAutoPkStatements(
Collections.singletonList(getEntity())));
return sqls;
}
};
}
@Override
public MergerToken createDropRelationshipToDb(
final DbEntity entity,
final DbRelationship rel) {
return new DropRelationshipToDb(entity, rel) {
@Override
public List<String> createSql(DbAdapter adapter) {
// FK_NAME form jdbc metadata seem to be wrong. It contain a column name
// and not the 'relationshipName'
// TODO: tell openbase developer mail list
DbEntity source = getEntity();
DbEntity dest = rel.getTargetEntity();
// only use the first. See adapter
// TODO: can we be sure this is the first and same as used by the adapter?
DbJoin join = rel.getJoins().get(0);
// see comment in adapter for why source and dest is switched around..
return Collections.singletonList("delete from _SYS_RELATIONSHIP where "
+ " source_table = '" + dest.getFullyQualifiedName() + "'"
+ " and source_column = '" + join.getTargetName() + "'"
+ " and dest_table = '" + source.getFullyQualifiedName() + "'"
+ " and dest_column = '" + join.getSourceName() + "'");
}
};
}
@Override
public MergerToken createSetColumnTypeToDb(
final DbEntity entity,
final DbAttribute columnOriginal,
final DbAttribute columnNew) {
return new SetColumnTypeToDb(entity, columnOriginal, columnNew) {
@Override
public List<String> createSql(DbAdapter adapter) {
List<String> sqls = new ArrayList<>();
if (columnOriginal.getMaxLength() != columnNew.getMaxLength()) {
sqls.add("ALTER TABLE "
+ entity.getFullyQualifiedName()
+ " COLUMN "
+ columnNew.getName()
+ " SET LENGTH "
+ columnNew.getMaxLength());
}
return sqls;
}
};
}
@Override
public MergerToken createSetNotNullToDb(DbEntity entity, DbAttribute column) {
return new SetNotNullToDb(entity, column) {
@Override
public List<String> createSql(DbAdapter adapter) {
return Collections.singletonList("ALTER TABLE " + getEntity().getFullyQualifiedName()
+ " COLUMN " + getColumn().getName() + " SET NOT NULL");
}
};
}
@Override
public MergerToken createSetAllowNullToDb(DbEntity entity, DbAttribute column) {
return new SetAllowNullToDb(entity, column) {
@Override
public List<String> createSql(DbAdapter adapter) {
return Collections.singletonList("ALTER TABLE " + getEntity().getFullyQualifiedName()
+ " COLUMN " + getColumn().getName() + " SET NULL");
}
};
}
}
| {
"pile_set_name": "Github"
} |
{
"description": "Top 1000 U.S. cities by population (2016 estimates)",
"source": "US Census American Community Survey 2016 5-year Data",
"cities": [
{
"city": "New York",
"state": "New York",
"population": 8461961
},
{
"city": "Los Angeles",
"state": "California",
"population": 3918872
},
{
"city": "Chicago",
"state": "Illinois",
"population": 2714017
},
{
"city": "Houston",
"state": "Texas",
"population": 2240582
},
{
"city": "Philadelphia",
"state": "Pennsylvania",
"population": 1559938
},
{
"city": "Phoenix",
"state": "Arizona",
"population": 1555324
},
{
"city": "San Antonio",
"state": "Texas",
"population": 1439358
},
{
"city": "San Diego",
"state": "California",
"population": 1374812
},
{
"city": "Dallas",
"state": "Texas",
"population": 1278433
},
{
"city": "San Jose",
"state": "California",
"population": 1009363
},
{
"city": "Austin",
"state": "Texas",
"population": 907779
},
{
"city": "Jacksonville",
"state": "Florida",
"population": 856616
},
{
"city": "San Francisco",
"state": "California",
"population": 850282
},
{
"city": "Indianapolis",
"state": "Indiana",
"population": 846674
},
{
"city": "Columbus",
"state": "Ohio",
"population": 837038
},
{
"city": "Fort Worth",
"state": "Texas",
"population": 815930
},
{
"city": "Charlotte",
"state": "North Carolina",
"population": 808834
},
{
"city": "Detroit",
"state": "Michigan",
"population": 683443
},
{
"city": "El Paso",
"state": "Texas",
"population": 678058
},
{
"city": "Seattle",
"state": "Washington",
"population": 668849
},
{
"city": "Denver",
"state": "Colorado",
"population": 663303
},
{
"city": "Washington",
"state": "District of Columbia",
"population": 659009
},
{
"city": "Boston",
"state": "Massachusetts",
"population": 658279
},
{
"city": "Memphis",
"state": "Tennessee",
"population": 655857
},
{
"city": "Nashville-Davidson",
"state": "Tennessee",
"population": 643771
},
{
"city": "Baltimore",
"state": "Maryland",
"population": 621000
},
{
"city": "Portland",
"state": "Oregon",
"population": 620589
},
{
"city": "Oklahoma City",
"state": "Oklahoma",
"population": 620015
},
{
"city": "Las Vegas",
"state": "Nevada",
"population": 613295
},
{
"city": "Louisville/Jefferson County",
"state": "Kentucky",
"population": 611573
},
{
"city": "Milwaukee",
"state": "Wisconsin",
"population": 598672
},
{
"city": "Albuquerque",
"state": "New Mexico",
"population": 556859
},
{
"city": "Tucson",
"state": "Arizona",
"population": 527586
},
{
"city": "Fresno",
"state": "California",
"population": 513807
},
{
"city": "Sacramento",
"state": "California",
"population": 484530
},
{
"city": "Kansas City",
"state": "Missouri",
"population": 471767
},
{
"city": "Mesa",
"state": "Arizona",
"population": 470456
},
{
"city": "Long Beach",
"state": "California",
"population": 469793
},
{
"city": "Atlanta",
"state": "Georgia",
"population": 456378
},
{
"city": "Virginia Beach",
"state": "Virginia",
"population": 449733
},
{
"city": "Colorado Springs",
"state": "Colorado",
"population": 448759
},
{
"city": "Omaha",
"state": "Nebraska",
"population": 443072
},
{
"city": "Raleigh",
"state": "North Carolina",
"population": 441326
},
{
"city": "Miami",
"state": "Florida",
"population": 432622
},
{
"city": "Oakland",
"state": "California",
"population": 412040
},
{
"city": "Minneapolis",
"state": "Minnesota",
"population": 404670
},
{
"city": "Tulsa",
"state": "Oklahoma",
"population": 399906
},
{
"city": "Cleveland",
"state": "Ohio",
"population": 389165
},
{
"city": "Wichita",
"state": "Kansas",
"population": 388033
},
{
"city": "Arlington",
"state": "Texas",
"population": 383899
},
{
"city": "New Orleans",
"state": "Louisiana",
"population": 382922
},
{
"city": "Bakersfield",
"state": "California",
"population": 367555
},
{
"city": "Tampa",
"state": "Florida",
"population": 361477
},
{
"city": "Aurora",
"state": "Colorado",
"population": 351131
},
{
"city": "San Juan",
"state": "Puerto Rico",
"population": 350402
},
{
"city": "Honolulu",
"state": "Hawaii",
"population": 349597
},
{
"city": "Anaheim",
"state": "California",
"population": 346776
},
{
"city": "Santa Ana",
"state": "California",
"population": 333605
},
{
"city": "Corpus Christi",
"state": "Texas",
"population": 320050
},
{
"city": "Riverside",
"state": "California",
"population": 318678
},
{
"city": "St. Louis",
"state": "Missouri",
"population": 316030
},
{
"city": "Lexington-Fayette",
"state": "Kentucky",
"population": 311529
},
{
"city": "Pittsburgh",
"state": "Pennsylvania",
"population": 305305
},
{
"city": "Stockton",
"state": "California",
"population": 301443
},
{
"city": "Anchorage",
"state": "Alaska",
"population": 299321
},
{
"city": "Cincinnati",
"state": "Ohio",
"population": 298011
},
{
"city": "St. Paul",
"state": "Minnesota",
"population": 297160
},
{
"city": "Greensboro",
"state": "North Carolina",
"population": 282177
},
{
"city": "Toledo",
"state": "Ohio",
"population": 280854
},
{
"city": "Newark",
"state": "New Jersey",
"population": 280139
},
{
"city": "Plano",
"state": "Texas",
"population": 279088
},
{
"city": "Henderson",
"state": "Nevada",
"population": 277872
},
{
"city": "Lincoln",
"state": "Nebraska",
"population": 273018
},
{
"city": "Orlando",
"state": "Florida",
"population": 263306
},
{
"city": "Jersey City",
"state": "New Jersey",
"population": 261666
},
{
"city": "Fort Wayne",
"state": "Indiana",
"population": 260954
},
{
"city": "Chula Vista",
"state": "California",
"population": 260598
},
{
"city": "Buffalo",
"state": "New York",
"population": 258989
},
{
"city": "St. Petersburg",
"state": "Florida",
"population": 253585
},
{
"city": "Durham",
"state": "North Carolina",
"population": 251761
},
{
"city": "Laredo",
"state": "Texas",
"population": 251671
},
{
"city": "Irvine",
"state": "California",
"population": 246992
},
{
"city": "Madison",
"state": "Wisconsin",
"population": 246034
},
{
"city": "Norfolk",
"state": "Virginia",
"population": 245724
},
{
"city": "Lubbock",
"state": "Texas",
"population": 244507
},
{
"city": "Chandler",
"state": "Arizona",
"population": 242131
},
{
"city": "Glendale",
"state": "Arizona",
"population": 239943
},
{
"city": "Winston-Salem",
"state": "North Carolina",
"population": 238474
},
{
"city": "Reno",
"state": "Nevada",
"population": 237121
},
{
"city": "Hialeah",
"state": "Florida",
"population": 235626
},
{
"city": "Garland",
"state": "Texas",
"population": 234810
},
{
"city": "Scottsdale",
"state": "Arizona",
"population": 234495
},
{
"city": "Chesapeake",
"state": "Virginia",
"population": 233194
},
{
"city": "Irving",
"state": "Texas",
"population": 232013
},
{
"city": "North Las Vegas",
"state": "Nevada",
"population": 230436
},
{
"city": "Paradise",
"state": "Nevada",
"population": 229666
},
{
"city": "Baton Rouge",
"state": "Louisiana",
"population": 228694
},
{
"city": "Fremont",
"state": "California",
"population": 227934
},
{
"city": "Gilbert",
"state": "Arizona",
"population": 226832
},
{
"city": "Arlington",
"state": "Virginia",
"population": 226092
},
{
"city": "Boise City",
"state": "Idaho",
"population": 218677
},
{
"city": "Richmond",
"state": "Virginia",
"population": 216773
},
{
"city": "San Bernardino",
"state": "California",
"population": 214581
},
{
"city": "Des Moines",
"state": "Iowa",
"population": 212859
},
{
"city": "Birmingham",
"state": "Alabama",
"population": 212424
},
{
"city": "Spokane",
"state": "Washington",
"population": 212078
},
{
"city": "Rochester",
"state": "New York",
"population": 210291
},
{
"city": "Modesto",
"state": "California",
"population": 208512
},
{
"city": "Tacoma",
"state": "Washington",
"population": 205602
},
{
"city": "Fontana",
"state": "California",
"population": 205228
},
{
"city": "Oxnard",
"state": "California",
"population": 204752
},
{
"city": "Fayetteville",
"state": "North Carolina",
"population": 203670
},
{
"city": "Moreno Valley",
"state": "California",
"population": 202061
},
{
"city": "Montgomery",
"state": "Alabama",
"population": 201717
},
{
"city": "Aurora",
"state": "Illinois",
"population": 200907
},
{
"city": "Columbus",
"state": "Georgia",
"population": 200303
},
{
"city": "Yonkers",
"state": "New York",
"population": 199725
},
{
"city": "Huntington Beach",
"state": "California",
"population": 198724
},
{
"city": "Shreveport",
"state": "Louisiana",
"population": 198571
},
{
"city": "Akron",
"state": "Ohio",
"population": 198508
},
{
"city": "Glendale",
"state": "California",
"population": 197895
},
{
"city": "Little Rock",
"state": "Arkansas",
"population": 197640
},
{
"city": "Amarillo",
"state": "Texas",
"population": 197570
},
{
"city": "Augusta-Richmond County",
"state": "Georgia",
"population": 196784
},
{
"city": "Grand Rapids",
"state": "Michigan",
"population": 193887
},
{
"city": "Mobile",
"state": "Alabama",
"population": 193717
},
{
"city": "Sunrise Manor",
"state": "Nevada",
"population": 192873
},
{
"city": "Salt Lake City",
"state": "Utah",
"population": 191446
},
{
"city": "Spring Valley",
"state": "Nevada",
"population": 190661
},
{
"city": "Huntsville",
"state": "Alabama",
"population": 188973
},
{
"city": "Tallahassee",
"state": "Florida",
"population": 188466
},
{
"city": "Grand Prairie",
"state": "Texas",
"population": 185631
},
{
"city": "Knoxville",
"state": "Tennessee",
"population": 183927
},
{
"city": "Overland Park",
"state": "Kansas",
"population": 183775
},
{
"city": "Worcester",
"state": "Massachusetts",
"population": 183677
},
{
"city": "Brownsville",
"state": "Texas",
"population": 182110
},
{
"city": "Newport News",
"state": "Virginia",
"population": 181606
},
{
"city": "Santa Clarita",
"state": "California",
"population": 180303
},
{
"city": "Providence",
"state": "Rhode Island",
"population": 178851
},
{
"city": "Port St. Lucie",
"state": "Florida",
"population": 175652
},
{
"city": "Chattanooga",
"state": "Tennessee",
"population": 175462
},
{
"city": "Fort Lauderdale",
"state": "Florida",
"population": 175153
},
{
"city": "Tempe",
"state": "Arizona",
"population": 174708
},
{
"city": "Garden Grove",
"state": "California",
"population": 174676
},
{
"city": "Oceanside",
"state": "California",
"population": 173829
},
{
"city": "Bayamon",
"state": "Puerto Rico",
"population": 173550
},
{
"city": "Rancho Cucamonga",
"state": "California",
"population": 173309
},
{
"city": "Santa Rosa",
"state": "California",
"population": 173165
},
{
"city": "Jackson",
"state": "Mississippi",
"population": 172039
},
{
"city": "Cape Coral",
"state": "Florida",
"population": 170063
},
{
"city": "Vancouver",
"state": "Washington",
"population": 169982
},
{
"city": "Ontario",
"state": "California",
"population": 169389
},
{
"city": "Sioux Falls",
"state": "South Dakota",
"population": 167884
},
{
"city": "Springfield",
"state": "Missouri",
"population": 165138
},
{
"city": "Pembroke Pines",
"state": "Florida",
"population": 164753
},
{
"city": "Elk Grove",
"state": "California",
"population": 163634
},
{
"city": "Salem",
"state": "Oregon",
"population": 161975
},
{
"city": "Eugene",
"state": "Oregon",
"population": 161649
},
{
"city": "Corona",
"state": "California",
"population": 161614
},
{
"city": "Lancaster",
"state": "California",
"population": 159651
},
{
"city": "Peoria",
"state": "Arizona",
"population": 158677
},
{
"city": "Fort Collins",
"state": "Colorado",
"population": 157251
},
{
"city": "Palmdale",
"state": "California",
"population": 156823
},
{
"city": "McKinney",
"state": "Texas",
"population": 156821
},
{
"city": "Salinas",
"state": "California",
"population": 155889
},
{
"city": "Cary",
"state": "North Carolina",
"population": 155822
},
{
"city": "Hayward",
"state": "California",
"population": 154507
},
{
"city": "Springfield",
"state": "Massachusetts",
"population": 153991
},
{
"city": "Macon-Bibb County",
"state": "Georgia",
"population": 153925
},
{
"city": "Pasadena",
"state": "Texas",
"population": 153286
},
{
"city": "Pomona",
"state": "California",
"population": 151807
},
{
"city": "Alexandria",
"state": "Virginia",
"population": 151473
},
{
"city": "Escondido",
"state": "California",
"population": 149912
},
{
"city": "Lakewood",
"state": "Colorado",
"population": 149793
},
{
"city": "Kansas City",
"state": "Kansas",
"population": 149755
},
{
"city": "Rockford",
"state": "Illinois",
"population": 149597
},
{
"city": "Sunnyvale",
"state": "California",
"population": 149596
},
{
"city": "Hollywood",
"state": "Florida",
"population": 148114
},
{
"city": "Carolina",
"state": "Puerto Rico",
"population": 147806
},
{
"city": "Joliet",
"state": "Illinois",
"population": 147515
},
{
"city": "Torrance",
"state": "California",
"population": 147307
},
{
"city": "Bridgeport",
"state": "Connecticut",
"population": 147022
},
{
"city": "Paterson",
"state": "New Jersey",
"population": 146894
},
{
"city": "Clarksville",
"state": "Tennessee",
"population": 146281
},
{
"city": "Naperville",
"state": "Illinois",
"population": 145789
},
{
"city": "Frisco",
"state": "Texas",
"population": 145646
},
{
"city": "Metairie",
"state": "Louisiana",
"population": 144772
},
{
"city": "Savannah",
"state": "Georgia",
"population": 144717
},
{
"city": "Syracuse",
"state": "New York",
"population": 144350
},
{
"city": "Mesquite",
"state": "Texas",
"population": 143771
},
{
"city": "Dayton",
"state": "Ohio",
"population": 141143
},
{
"city": "Pasadena",
"state": "California",
"population": 140268
},
{
"city": "Orange",
"state": "California",
"population": 139919
},
{
"city": "Fullerton",
"state": "California",
"population": 139491
},
{
"city": "Killeen",
"state": "Texas",
"population": 138745
},
{
"city": "McAllen",
"state": "Texas",
"population": 138475
},
{
"city": "Hampton",
"state": "Virginia",
"population": 136789
},
{
"city": "Bellevue",
"state": "Washington",
"population": 136718
},
{
"city": "Warren",
"state": "Michigan",
"population": 135069
},
{
"city": "West Valley City",
"state": "Utah",
"population": 134609
},
{
"city": "Miramar",
"state": "Florida",
"population": 133741
},
{
"city": "Olathe",
"state": "Kansas",
"population": 132787
},
{
"city": "Columbia",
"state": "South Carolina",
"population": 132537
},
{
"city": "Sterling Heights",
"state": "Michigan",
"population": 131674
},
{
"city": "Waco",
"state": "Texas",
"population": 130659
},
{
"city": "Thornton",
"state": "Colorado",
"population": 130511
},
{
"city": "New Haven",
"state": "Connecticut",
"population": 130405
},
{
"city": "Charleston",
"state": "South Carolina",
"population": 129888
},
{
"city": "Enterprise",
"state": "Nevada",
"population": 129620
},
{
"city": "Cedar Rapids",
"state": "Iowa",
"population": 129537
},
{
"city": "Carrollton",
"state": "Texas",
"population": 129266
},
{
"city": "Visalia",
"state": "California",
"population": 128738
},
{
"city": "Thousand Oaks",
"state": "California",
"population": 128623
},
{
"city": "Gainesville",
"state": "Florida",
"population": 128610
},
{
"city": "Denton",
"state": "Texas",
"population": 128421
},
{
"city": "Roseville",
"state": "California",
"population": 128276
},
{
"city": "Midland",
"state": "Texas",
"population": 128051
},
{
"city": "Elizabeth",
"state": "New Jersey",
"population": 128042
},
{
"city": "Coral Springs",
"state": "Florida",
"population": 127673
},
{
"city": "Surprise",
"state": "Arizona",
"population": 127492
},
{
"city": "Topeka",
"state": "Kansas",
"population": 127472
},
{
"city": "Stamford",
"state": "Connecticut",
"population": 127410
},
{
"city": "Concord",
"state": "California",
"population": 126938
},
{
"city": "Simi Valley",
"state": "California",
"population": 126126
},
{
"city": "Lafayette",
"state": "Louisiana",
"population": 125808
},
{
"city": "Kent",
"state": "Washington",
"population": 125492
},
{
"city": "Hartford",
"state": "Connecticut",
"population": 124320
},
{
"city": "East Los Angeles",
"state": "California",
"population": 124191
},
{
"city": "Ponce",
"state": "Puerto Rico",
"population": 123328
},
{
"city": "Santa Clara",
"state": "California",
"population": 122725
},
{
"city": "Abilene",
"state": "Texas",
"population": 122612
},
{
"city": "Murfreesboro",
"state": "Tennessee",
"population": 122007
},
{
"city": "Victorville",
"state": "California",
"population": 121320
},
{
"city": "Athens-Clarke County",
"state": "Georgia",
"population": 120813
},
{
"city": "Evansville",
"state": "Indiana",
"population": 120156
},
{
"city": "Vallejo",
"state": "California",
"population": 119644
},
{
"city": "Allentown",
"state": "Pennsylvania",
"population": 119624
},
{
"city": "Norman",
"state": "Oklahoma",
"population": 118974
},
{
"city": "Berkeley",
"state": "California",
"population": 118585
},
{
"city": "Ann Arbor",
"state": "Michigan",
"population": 118087
},
{
"city": "Beaumont",
"state": "Texas",
"population": 117729
},
{
"city": "Independence",
"state": "Missouri",
"population": 117217
},
{
"city": "Columbia",
"state": "Missouri",
"population": 117165
},
{
"city": "Springfield",
"state": "Illinois",
"population": 116745
},
{
"city": "Peoria",
"state": "Illinois",
"population": 115990
},
{
"city": "Fargo",
"state": "North Dakota",
"population": 115950
},
{
"city": "Provo",
"state": "Utah",
"population": 115718
},
{
"city": "El Monte",
"state": "California",
"population": 115665
},
{
"city": "Lansing",
"state": "Michigan",
"population": 114773
},
{
"city": "Odessa",
"state": "Texas",
"population": 114258
},
{
"city": "Wilmington",
"state": "North Carolina",
"population": 113724
},
{
"city": "Arvada",
"state": "Colorado",
"population": 113532
},
{
"city": "Downey",
"state": "California",
"population": 113223
},
{
"city": "Round Rock",
"state": "Texas",
"population": 112767
},
{
"city": "Miami Gardens",
"state": "Florida",
"population": 112514
},
{
"city": "Costa Mesa",
"state": "California",
"population": 112439
},
{
"city": "Lehigh Acres",
"state": "Florida",
"population": 112279
},
{
"city": "Carlsbad",
"state": "California",
"population": 112008
},
{
"city": "Elgin",
"state": "Illinois",
"population": 111919
},
{
"city": "Westminster",
"state": "Colorado",
"population": 111770
},
{
"city": "Clearwater",
"state": "Florida",
"population": 111747
},
{
"city": "Rochester",
"state": "Minnesota",
"population": 111396
},
{
"city": "Inglewood",
"state": "California",
"population": 111012
},
{
"city": "Fairfield",
"state": "California",
"population": 110953
},
{
"city": "West Jordan",
"state": "Utah",
"population": 110928
},
{
"city": "Manchester",
"state": "New Hampshire",
"population": 110231
},
{
"city": "Gresham",
"state": "Oregon",
"population": 110042
},
{
"city": "Lowell",
"state": "Massachusetts",
"population": 109871
},
{
"city": "Brandon",
"state": "Florida",
"population": 109784
},
{
"city": "Waterbury",
"state": "Connecticut",
"population": 109211
},
{
"city": "Billings",
"state": "Montana",
"population": 109089
},
{
"city": "San Buenaventura (Ventura)",
"state": "California",
"population": 109067
},
{
"city": "High Point",
"state": "North Carolina",
"population": 108982
},
{
"city": "Temecula",
"state": "California",
"population": 108965
},
{
"city": "Cambridge",
"state": "Massachusetts",
"population": 108757
},
{
"city": "Antioch",
"state": "California",
"population": 108675
},
{
"city": "Murrieta",
"state": "California",
"population": 108583
},
{
"city": "Pueblo",
"state": "Colorado",
"population": 108385
},
{
"city": "The Woodlands",
"state": "Texas",
"population": 108373
},
{
"city": "Richardson",
"state": "Texas",
"population": 108350
},
{
"city": "Richmond",
"state": "California",
"population": 108303
},
{
"city": "Centennial",
"state": "Colorado",
"population": 107862
},
{
"city": "West Covina",
"state": "California",
"population": 107634
},
{
"city": "Highlands Ranch",
"state": "Colorado",
"population": 106596
},
{
"city": "Everett",
"state": "Washington",
"population": 106580
},
{
"city": "Palm Bay",
"state": "Florida",
"population": 106573
},
{
"city": "Norwalk",
"state": "California",
"population": 106360
},
{
"city": "Pearland",
"state": "Texas",
"population": 106238
},
{
"city": "North Charleston",
"state": "South Carolina",
"population": 106113
},
{
"city": "Pompano Beach",
"state": "Florida",
"population": 106004
},
{
"city": "Daly City",
"state": "California",
"population": 105543
},
{
"city": "Boulder",
"state": "Colorado",
"population": 105420
},
{
"city": "Wichita Falls",
"state": "Texas",
"population": 105013
},
{
"city": "West Palm Beach",
"state": "Florida",
"population": 104978
},
{
"city": "Green Bay",
"state": "Wisconsin",
"population": 104951
},
{
"city": "Broken Arrow",
"state": "Oklahoma",
"population": 104869
},
{
"city": "College Station",
"state": "Texas",
"population": 104684
},
{
"city": "Burbank",
"state": "California",
"population": 104583
},
{
"city": "Santa Maria",
"state": "California",
"population": 103642
},
{
"city": "Columbia",
"state": "Maryland",
"population": 103439
},
{
"city": "Spring Hill",
"state": "Florida",
"population": 102929
},
{
"city": "El Cajon",
"state": "California",
"population": 102894
},
{
"city": "Lakeland",
"state": "Florida",
"population": 102714
},
{
"city": "Rialto",
"state": "California",
"population": 102418
},
{
"city": "Lewisville",
"state": "Texas",
"population": 102327
},
{
"city": "Davenport",
"state": "Iowa",
"population": 102305
},
{
"city": "San Mateo",
"state": "California",
"population": 102224
},
{
"city": "Sandy Springs",
"state": "Georgia",
"population": 102212
},
{
"city": "Clovis",
"state": "California",
"population": 102148
},
{
"city": "Tyler",
"state": "Texas",
"population": 101946
},
{
"city": "Las Cruces",
"state": "New Mexico",
"population": 101459
},
{
"city": "South Bend",
"state": "Indiana",
"population": 101037
},
{
"city": "Jurupa Valley",
"state": "California",
"population": 100737
},
{
"city": "Hillsboro",
"state": "Oregon",
"population": 100462
},
{
"city": "Erie",
"state": "Pennsylvania",
"population": 100157
},
{
"city": "Kenosha",
"state": "Wisconsin",
"population": 99865
},
{
"city": "Roanoke",
"state": "Virginia",
"population": 99329
},
{
"city": "Greeley",
"state": "Colorado",
"population": 98975
},
{
"city": "Flint",
"state": "Michigan",
"population": 98918
},
{
"city": "Davie",
"state": "Florida",
"population": 98717
},
{
"city": "San Angelo",
"state": "Texas",
"population": 98694
},
{
"city": "Vista",
"state": "California",
"population": 98560
},
{
"city": "Renton",
"state": "Washington",
"population": 98499
},
{
"city": "Albany",
"state": "New York",
"population": 98425
},
{
"city": "Compton",
"state": "California",
"population": 97740
},
{
"city": "Arden-Arcade",
"state": "California",
"population": 96898
},
{
"city": "Lawton",
"state": "Oklahoma",
"population": 96728
},
{
"city": "Tuscaloosa",
"state": "Alabama",
"population": 96352
},
{
"city": "Mission Viejo",
"state": "California",
"population": 96178
},
{
"city": "Portsmouth",
"state": "Virginia",
"population": 96071
},
{
"city": "Vacaville",
"state": "California",
"population": 95607
},
{
"city": "Dearborn",
"state": "Michigan",
"population": 95520
},
{
"city": "South Gate",
"state": "California",
"population": 95219
},
{
"city": "New Bedford",
"state": "Massachusetts",
"population": 94988
},
{
"city": "League City",
"state": "Texas",
"population": 94976
},
{
"city": "Beaverton",
"state": "Oregon",
"population": 94865
},
{
"city": "Livonia",
"state": "Michigan",
"population": 94849
},
{
"city": "Brockton",
"state": "Massachusetts",
"population": 94813
},
{
"city": "Sparks",
"state": "Nevada",
"population": 94718
},
{
"city": "Allen",
"state": "Texas",
"population": 94710
},
{
"city": "Lee's Summit",
"state": "Missouri",
"population": 94257
},
{
"city": "Federal Way",
"state": "Washington",
"population": 93986
},
{
"city": "Roswell",
"state": "Georgia",
"population": 93968
},
{
"city": "Yuma",
"state": "Arizona",
"population": 93704
},
{
"city": "Quincy",
"state": "Massachusetts",
"population": 93349
},
{
"city": "Yakima",
"state": "Washington",
"population": 93338
},
{
"city": "Spokane Valley",
"state": "Washington",
"population": 93322
},
{
"city": "Orem",
"state": "Utah",
"population": 93220
},
{
"city": "Sandy",
"state": "Utah",
"population": 93141
},
{
"city": "Rio Rancho",
"state": "New Mexico",
"population": 92966
},
{
"city": "Carson",
"state": "California",
"population": 92780
},
{
"city": "Hesperia",
"state": "California",
"population": 92664
},
{
"city": "Lawrence",
"state": "Kansas",
"population": 92611
},
{
"city": "Santa Monica",
"state": "California",
"population": 92247
},
{
"city": "Lynn",
"state": "Massachusetts",
"population": 92074
},
{
"city": "Miami Beach",
"state": "Florida",
"population": 91784
},
{
"city": "Boca Raton",
"state": "Florida",
"population": 91702
},
{
"city": "Westminster",
"state": "California",
"population": 91635
},
{
"city": "San Marcos",
"state": "California",
"population": 91479
},
{
"city": "Redding",
"state": "California",
"population": 91320
},
{
"city": "Sunrise",
"state": "Florida",
"population": 91177
},
{
"city": "Santa Barbara",
"state": "California",
"population": 90922
},
{
"city": "Plantation",
"state": "Florida",
"population": 90878
},
{
"city": "Longmont",
"state": "Colorado",
"population": 90719
},
{
"city": "Germantown",
"state": "Maryland",
"population": 90494
},
{
"city": "Greenville",
"state": "North Carolina",
"population": 89745
},
{
"city": "Chico",
"state": "California",
"population": 89377
},
{
"city": "San Leandro",
"state": "California",
"population": 89039
},
{
"city": "Fall River",
"state": "Massachusetts",
"population": 88902
},
{
"city": "Toms River",
"state": "New Jersey",
"population": 88537
},
{
"city": "San Tan Valley",
"state": "Arizona",
"population": 88507
},
{
"city": "Edmond",
"state": "Oklahoma",
"population": 88342
},
{
"city": "Newton",
"state": "Massachusetts",
"population": 88317
},
{
"city": "Meridian",
"state": "Idaho",
"population": 88247
},
{
"city": "Waukegan",
"state": "Illinois",
"population": 88159
},
{
"city": "Norwalk",
"state": "Connecticut",
"population": 87930
},
{
"city": "Reading",
"state": "Pennsylvania",
"population": 87899
},
{
"city": "Nampa",
"state": "Idaho",
"population": 87896
},
{
"city": "Fort Smith",
"state": "Arkansas",
"population": 87712
},
{
"city": "Asheville",
"state": "North Carolina",
"population": 87531
},
{
"city": "Deltona",
"state": "Florida",
"population": 87387
},
{
"city": "Nashua",
"state": "New Hampshire",
"population": 87279
},
{
"city": "Suffolk",
"state": "Virginia",
"population": 87061
},
{
"city": "Carmel",
"state": "Indiana",
"population": 86940
},
{
"city": "Hawthorne",
"state": "California",
"population": 86938
},
{
"city": "Alafaya",
"state": "Florida",
"population": 86868
},
{
"city": "Newport Beach",
"state": "California",
"population": 86813
},
{
"city": "Whittier",
"state": "California",
"population": 86630
},
{
"city": "Livermore",
"state": "California",
"population": 86493
},
{
"city": "Tracy",
"state": "California",
"population": 86382
},
{
"city": "Duluth",
"state": "Minnesota",
"population": 86164
},
{
"city": "Citrus Heights",
"state": "California",
"population": 85954
},
{
"city": "Fishers",
"state": "Indiana",
"population": 85887
},
{
"city": "Kirkland",
"state": "Washington",
"population": 85812
},
{
"city": "Concord",
"state": "North Carolina",
"population": 85753
},
{
"city": "Sugar Land",
"state": "Texas",
"population": 85681
},
{
"city": "Clifton",
"state": "New Jersey",
"population": 85578
},
{
"city": "Indio",
"state": "California",
"population": 85401
},
{
"city": "Bloomington",
"state": "Minnesota",
"population": 85080
},
{
"city": "Menifee",
"state": "California",
"population": 84978
},
{
"city": "Ogden",
"state": "Utah",
"population": 84900
},
{
"city": "Alhambra",
"state": "California",
"population": 84866
},
{
"city": "Champaign",
"state": "Illinois",
"population": 84672
},
{
"city": "Riverview",
"state": "Florida",
"population": 84590
},
{
"city": "Trenton",
"state": "New Jersey",
"population": 84559
},
{
"city": "Bellingham",
"state": "Washington",
"population": 84462
},
{
"city": "Bend",
"state": "Oregon",
"population": 84416
},
{
"city": "Edinburg",
"state": "Texas",
"population": 84399
},
{
"city": "Hoover",
"state": "Alabama",
"population": 84100
},
{
"city": "O'Fallon",
"state": "Missouri",
"population": 84018
},
{
"city": "Cicero",
"state": "Illinois",
"population": 83972
},
{
"city": "Danbury",
"state": "Connecticut",
"population": 83890
},
{
"city": "Chino",
"state": "California",
"population": 83670
},
{
"city": "Bloomington",
"state": "Indiana",
"population": 83093
},
{
"city": "Troy",
"state": "Michigan",
"population": 82982
},
{
"city": "Johns Creek",
"state": "Georgia",
"population": 82930
},
{
"city": "Santa Fe",
"state": "New Mexico",
"population": 82927
},
{
"city": "Buena Park",
"state": "California",
"population": 82771
},
{
"city": "Hemet",
"state": "California",
"population": 82748
},
{
"city": "Sioux City",
"state": "Iowa",
"population": 82666
},
{
"city": "Redwood City",
"state": "California",
"population": 82595
},
{
"city": "Town 'n' Country",
"state": "Florida",
"population": 82554
},
{
"city": "Westland",
"state": "Michigan",
"population": 82218
},
{
"city": "Mission",
"state": "Texas",
"population": 82200
},
{
"city": "Longview",
"state": "Texas",
"population": 82184
},
{
"city": "Warwick",
"state": "Rhode Island",
"population": 81881
},
{
"city": "Merced",
"state": "California",
"population": 81461
},
{
"city": "Farmington Hills",
"state": "Michigan",
"population": 81154
},
{
"city": "Lakewood",
"state": "California",
"population": 81054
},
{
"city": "Palm Coast",
"state": "Florida",
"population": 80948
},
{
"city": "Cranston",
"state": "Rhode Island",
"population": 80882
},
{
"city": "Largo",
"state": "Florida",
"population": 80678
},
{
"city": "Lake Forest",
"state": "California",
"population": 80658
},
{
"city": "Avondale",
"state": "Arizona",
"population": 80631
},
{
"city": "Fayetteville",
"state": "Arkansas",
"population": 80552
},
{
"city": "Bryan",
"state": "Texas",
"population": 80552
},
{
"city": "Parma",
"state": "Ohio",
"population": 80088
},
{
"city": "Napa",
"state": "California",
"population": 79567
},
{
"city": "Somerville",
"state": "Massachusetts",
"population": 79507
},
{
"city": "Tustin",
"state": "California",
"population": 79396
},
{
"city": "Lawrence",
"state": "Massachusetts",
"population": 79337
},
{
"city": "New Rochelle",
"state": "New York",
"population": 79299
},
{
"city": "Melbourne",
"state": "Florida",
"population": 78911
},
{
"city": "Medford",
"state": "Oregon",
"population": 78856
},
{
"city": "Mountain View",
"state": "California",
"population": 78827
},
{
"city": "Brooklyn Park",
"state": "Minnesota",
"population": 78823
},
{
"city": "Lynchburg",
"state": "Virginia",
"population": 78755
},
{
"city": "Deerfield Beach",
"state": "Florida",
"population": 78642
},
{
"city": "St. George",
"state": "Utah",
"population": 78573
},
{
"city": "Bloomington",
"state": "Illinois",
"population": 78368
},
{
"city": "Hammond",
"state": "Indiana",
"population": 78349
},
{
"city": "Caguas",
"state": "Puerto Rico",
"population": 78225
},
{
"city": "Silver Spring",
"state": "Maryland",
"population": 78038
},
{
"city": "Kennewick",
"state": "Washington",
"population": 77975
},
{
"city": "Racine",
"state": "Wisconsin",
"population": 77931
},
{
"city": "Mount Pleasant",
"state": "South Carolina",
"population": 77907
},
{
"city": "Gary",
"state": "Indiana",
"population": 77858
},
{
"city": "Bellflower",
"state": "California",
"population": 77687
},
{
"city": "Alameda",
"state": "California",
"population": 77409
},
{
"city": "Chino Hills",
"state": "California",
"population": 77266
},
{
"city": "Pleasanton",
"state": "California",
"population": 77046
},
{
"city": "St. Joseph",
"state": "Missouri",
"population": 76901
},
{
"city": "Baldwin Park",
"state": "California",
"population": 76511
},
{
"city": "Scranton",
"state": "Pennsylvania",
"population": 76380
},
{
"city": "Springdale",
"state": "Arkansas",
"population": 76188
},
{
"city": "Camden",
"state": "New Jersey",
"population": 76005
},
{
"city": "Kalamazoo",
"state": "Michigan",
"population": 75885
},
{
"city": "Upland",
"state": "California",
"population": 75851
},
{
"city": "Arlington Heights",
"state": "Illinois",
"population": 75721
},
{
"city": "Albany",
"state": "Georgia",
"population": 75657
},
{
"city": "Auburn",
"state": "Washington",
"population": 75607
},
{
"city": "Evanston",
"state": "Illinois",
"population": 75472
},
{
"city": "Baytown",
"state": "Texas",
"population": 75310
},
{
"city": "Pharr",
"state": "Texas",
"population": 75172
},
{
"city": "Bethlehem",
"state": "Pennsylvania",
"population": 75110
},
{
"city": "Plymouth",
"state": "Minnesota",
"population": 75105
},
{
"city": "Lake Charles",
"state": "Louisiana",
"population": 75044
},
{
"city": "Folsom",
"state": "California",
"population": 74960
},
{
"city": "Wyoming",
"state": "Michigan",
"population": 74692
},
{
"city": "Cheektowaga",
"state": "New York",
"population": 74673
},
{
"city": "Kendall",
"state": "Florida",
"population": 74559
},
{
"city": "Conroe",
"state": "Texas",
"population": 74482
},
{
"city": "San Ramon",
"state": "California",
"population": 74366
},
{
"city": "Schaumburg",
"state": "Illinois",
"population": 74366
},
{
"city": "Bolingbrook",
"state": "Illinois",
"population": 74320
},
{
"city": "Decatur",
"state": "Illinois",
"population": 74063
},
{
"city": "Gastonia",
"state": "North Carolina",
"population": 73877
},
{
"city": "Perris",
"state": "California",
"population": 73718
},
{
"city": "Manteca",
"state": "California",
"population": 73570
},
{
"city": "Union City",
"state": "California",
"population": 73500
},
{
"city": "Milpitas",
"state": "California",
"population": 73447
},
{
"city": "Appleton",
"state": "Wisconsin",
"population": 73446
},
{
"city": "Dale City",
"state": "Virginia",
"population": 73384
},
{
"city": "Loveland",
"state": "Colorado",
"population": 73360
},
{
"city": "Warner Robins",
"state": "Georgia",
"population": 73265
},
{
"city": "Centreville",
"state": "Virginia",
"population": 73084
},
{
"city": "Southfield",
"state": "Michigan",
"population": 73055
},
{
"city": "Rochester Hills",
"state": "Michigan",
"population": 72987
},
{
"city": "New Britain",
"state": "Connecticut",
"population": 72876
},
{
"city": "Boynton Beach",
"state": "Florida",
"population": 72748
},
{
"city": "Atascocita",
"state": "Texas",
"population": 72713
},
{
"city": "Jonesboro",
"state": "Arkansas",
"population": 72638
},
{
"city": "Goodyear",
"state": "Arizona",
"population": 72629
},
{
"city": "Rapid City",
"state": "South Dakota",
"population": 72441
},
{
"city": "Waldorf",
"state": "Maryland",
"population": 72413
},
{
"city": "Layton",
"state": "Utah",
"population": 72413
},
{
"city": "Iowa City",
"state": "Iowa",
"population": 72385
},
{
"city": "Canton",
"state": "Ohio",
"population": 72163
},
{
"city": "Waukesha",
"state": "Wisconsin",
"population": 72016
},
{
"city": "Missouri City",
"state": "Texas",
"population": 71732
},
{
"city": "Guaynabo",
"state": "Puerto Rico",
"population": 71667
},
{
"city": "Wilmington",
"state": "Delaware",
"population": 71502
},
{
"city": "Apple Valley",
"state": "California",
"population": 71455
},
{
"city": "Pawtucket",
"state": "Rhode Island",
"population": 71389
},
{
"city": "Gulfport",
"state": "Mississippi",
"population": 71265
},
{
"city": "Lafayette",
"state": "Indiana",
"population": 71249
},
{
"city": "Lynwood",
"state": "California",
"population": 71233
},
{
"city": "Turlock",
"state": "California",
"population": 71166
},
{
"city": "Temple",
"state": "Texas",
"population": 71138
},
{
"city": "Fort Myers",
"state": "Florida",
"population": 71051
},
{
"city": "Ellicott City",
"state": "Maryland",
"population": 70780
},
{
"city": "Framingham",
"state": "Massachusetts",
"population": 70743
},
{
"city": "Franklin",
"state": "Tennessee",
"population": 70625
},
{
"city": "Passaic",
"state": "New Jersey",
"population": 70536
},
{
"city": "Lauderhill",
"state": "Florida",
"population": 70452
},
{
"city": "Redlands",
"state": "California",
"population": 70442
},
{
"city": "Rock Hill",
"state": "South Carolina",
"population": 70251
},
{
"city": "Missoula",
"state": "Montana",
"population": 70117
},
{
"city": "Flower Mound",
"state": "Texas",
"population": 69966
},
{
"city": "Pine Hills",
"state": "Florida",
"population": 69733
},
{
"city": "Muncie",
"state": "Indiana",
"population": 69583
},
{
"city": "Rancho Cordova",
"state": "California",
"population": 69482
},
{
"city": "The Villages",
"state": "Florida",
"population": 69457
},
{
"city": "Flagstaff",
"state": "Arizona",
"population": 69270
},
{
"city": "Palatine",
"state": "Illinois",
"population": 69098
},
{
"city": "Glen Burnie",
"state": "Maryland",
"population": 69060
},
{
"city": "Bismarck",
"state": "North Dakota",
"population": 68981
},
{
"city": "Union City",
"state": "New Jersey",
"population": 68965
},
{
"city": "Weston",
"state": "Florida",
"population": 68893
},
{
"city": "Casas Adobes",
"state": "Arizona",
"population": 68695
},
{
"city": "Pasco",
"state": "Washington",
"population": 68567
},
{
"city": "Jacksonville",
"state": "North Carolina",
"population": 68404
},
{
"city": "Waterloo",
"state": "Iowa",
"population": 68357
},
{
"city": "St. Charles",
"state": "Missouri",
"population": 68341
},
{
"city": "Frederick",
"state": "Maryland",
"population": 68229
},
{
"city": "Mount Vernon",
"state": "New York",
"population": 68217
},
{
"city": "Dothan",
"state": "Alabama",
"population": 68066
},
{
"city": "Pittsburg",
"state": "California",
"population": 67998
},
{
"city": "North Richland Hills",
"state": "Texas",
"population": 67994
},
{
"city": "Redondo Beach",
"state": "California",
"population": 67664
},
{
"city": "Eau Claire",
"state": "Wisconsin",
"population": 67654
},
{
"city": "Walnut Creek",
"state": "California",
"population": 67568
},
{
"city": "Yorba Linda",
"state": "California",
"population": 67362
},
{
"city": "Jackson",
"state": "Tennessee",
"population": 67162
},
{
"city": "Bossier City",
"state": "Louisiana",
"population": 67152
},
{
"city": "New Braunfels",
"state": "Texas",
"population": 67097
},
{
"city": "Maple Grove",
"state": "Minnesota",
"population": 66969
},
{
"city": "Kenner",
"state": "Louisiana",
"population": 66954
},
{
"city": "Davis",
"state": "California",
"population": 66886
},
{
"city": "Kissimmee",
"state": "Florida",
"population": 66840
},
{
"city": "St. Cloud",
"state": "Minnesota",
"population": 66770
},
{
"city": "Oshkosh",
"state": "Wisconsin",
"population": 66713
},
{
"city": "Woodbury",
"state": "Minnesota",
"population": 66699
},
{
"city": "Palo Alto",
"state": "California",
"population": 66649
},
{
"city": "Portland",
"state": "Maine",
"population": 66649
},
{
"city": "Camarillo",
"state": "California",
"population": 66630
},
{
"city": "South San Francisco",
"state": "California",
"population": 66587
},
{
"city": "Yuba City",
"state": "California",
"population": 66147
},
{
"city": "Victoria",
"state": "Texas",
"population": 66139
},
{
"city": "Gaithersburg",
"state": "Maryland",
"population": 66104
},
{
"city": "North Little Rock",
"state": "Arkansas",
"population": 66042
},
{
"city": "Eagan",
"state": "Minnesota",
"population": 65874
},
{
"city": "Bayonne",
"state": "New Jersey",
"population": 65772
},
{
"city": "Homestead",
"state": "Florida",
"population": 65688
},
{
"city": "Harlingen",
"state": "Texas",
"population": 65634
},
{
"city": "Schenectady",
"state": "New York",
"population": 65554
},
{
"city": "Johnson City",
"state": "Tennessee",
"population": 65415
},
{
"city": "Mayaguez",
"state": "Puerto Rico",
"population": 65396
},
{
"city": "Rockville",
"state": "Maryland",
"population": 65171
},
{
"city": "Youngstown",
"state": "Ohio",
"population": 65161
},
{
"city": "San Clemente",
"state": "California",
"population": 65082
},
{
"city": "Delray Beach",
"state": "Florida",
"population": 65044
},
{
"city": "Laguna Niguel",
"state": "California",
"population": 64984
},
{
"city": "Marysville",
"state": "Washington",
"population": 64955
},
{
"city": "Skokie",
"state": "Illinois",
"population": 64873
},
{
"city": "East Orange",
"state": "New Jersey",
"population": 64621
},
{
"city": "Shawnee",
"state": "Kansas",
"population": 64444
},
{
"city": "Conway",
"state": "Arkansas",
"population": 64184
},
{
"city": "Daytona Beach",
"state": "Florida",
"population": 64105
},
{
"city": "Ames",
"state": "Iowa",
"population": 64073
},
{
"city": "Janesville",
"state": "Wisconsin",
"population": 63880
},
{
"city": "Lodi",
"state": "California",
"population": 63842
},
{
"city": "Tamarac",
"state": "Florida",
"population": 63747
},
{
"city": "Pico Rivera",
"state": "California",
"population": 63724
},
{
"city": "Lorain",
"state": "Ohio",
"population": 63714
},
{
"city": "Carmichael",
"state": "California",
"population": 63631
},
{
"city": "Cedar Park",
"state": "Texas",
"population": 63551
},
{
"city": "Montebello",
"state": "California",
"population": 63416
},
{
"city": "Madera",
"state": "California",
"population": 63398
},
{
"city": "Florence-Graham",
"state": "California",
"population": 63390
},
{
"city": "Santa Cruz",
"state": "California",
"population": 63310
},
{
"city": "Eden Prairie",
"state": "Minnesota",
"population": 63206
},
{
"city": "West Hartford",
"state": "Connecticut",
"population": 63187
},
{
"city": "Mansfield",
"state": "Texas",
"population": 63141
},
{
"city": "Alpharetta",
"state": "Georgia",
"population": 63013
},
{
"city": "Cheyenne",
"state": "Wyoming",
"population": 62879
},
{
"city": "Castro Valley",
"state": "California",
"population": 62825
},
{
"city": "Bowling Green",
"state": "Kentucky",
"population": 62824
},
{
"city": "Greenville",
"state": "South Carolina",
"population": 62776
},
{
"city": "South Jordan",
"state": "Utah",
"population": 62751
},
{
"city": "Waltham",
"state": "Massachusetts",
"population": 62699
},
{
"city": "Bethesda",
"state": "Maryland",
"population": 62608
},
{
"city": "Broomfield",
"state": "Colorado",
"population": 62449
},
{
"city": "Haverhill",
"state": "Massachusetts",
"population": 62340
},
{
"city": "Dundalk",
"state": "Maryland",
"population": 62337
},
{
"city": "Council Bluffs",
"state": "Iowa",
"population": 62326
},
{
"city": "Hamilton",
"state": "Ohio",
"population": 62259
},
{
"city": "Encinitas",
"state": "California",
"population": 62160
},
{
"city": "Coon Rapids",
"state": "Minnesota",
"population": 62159
},
{
"city": "North Miami",
"state": "Florida",
"population": 62158
},
{
"city": "Poinciana",
"state": "Florida",
"population": 62145
},
{
"city": "Sammamish",
"state": "Washington",
"population": 62136
},
{
"city": "Rogers",
"state": "Arkansas",
"population": 61979
},
{
"city": "Taylor",
"state": "Michigan",
"population": 61716
},
{
"city": "Tulare",
"state": "California",
"population": 61664
},
{
"city": "La Habra",
"state": "California",
"population": 61660
},
{
"city": "West Des Moines",
"state": "Iowa",
"population": 61624
},
{
"city": "Brentwood",
"state": "New York",
"population": 61438
},
{
"city": "Wellington",
"state": "Florida",
"population": 61371
},
{
"city": "Utica",
"state": "New York",
"population": 61337
},
{
"city": "Blaine",
"state": "Minnesota",
"population": 61210
},
{
"city": "Millcreek",
"state": "Utah",
"population": 61191
},
{
"city": "Burnsville",
"state": "Minnesota",
"population": 61158
},
{
"city": "Terre Haute",
"state": "Indiana",
"population": 61021
},
{
"city": "Monterey Park",
"state": "California",
"population": 61001
},
{
"city": "Vineland",
"state": "New Jersey",
"population": 60876
},
{
"city": "North Port",
"state": "Florida",
"population": 60871
},
{
"city": "Malden",
"state": "Massachusetts",
"population": 60732
},
{
"city": "Grand Junction",
"state": "Colorado",
"population": 60630
},
{
"city": "Springfield",
"state": "Oregon",
"population": 60611
},
{
"city": "Jupiter",
"state": "Florida",
"population": 60597
},
{
"city": "West Allis",
"state": "Wisconsin",
"population": 60543
},
{
"city": "Rocklin",
"state": "California",
"population": 60509
},
{
"city": "Taylorsville",
"state": "Utah",
"population": 60448
},
{
"city": "Bristol",
"state": "Connecticut",
"population": 60437
},
{
"city": "National City",
"state": "California",
"population": 60349
},
{
"city": "Auburn",
"state": "Alabama",
"population": 60318
},
{
"city": "Cupertino",
"state": "California",
"population": 60297
},
{
"city": "Palm Harbor",
"state": "Florida",
"population": 60236
},
{
"city": "Lake Elsinore",
"state": "California",
"population": 60230
},
{
"city": "Meriden",
"state": "Connecticut",
"population": 60203
},
{
"city": "Reston",
"state": "Virginia",
"population": 60070
},
{
"city": "Pontiac",
"state": "Michigan",
"population": 59920
},
{
"city": "St. Clair Shores",
"state": "Michigan",
"population": 59916
},
{
"city": "Gardena",
"state": "California",
"population": 59898
},
{
"city": "Lakeville",
"state": "Minnesota",
"population": 59786
},
{
"city": "Springfield",
"state": "Ohio",
"population": 59761
},
{
"city": "Petaluma",
"state": "California",
"population": 59757
},
{
"city": "Marietta",
"state": "Georgia",
"population": 59714
},
{
"city": "Moore",
"state": "Oklahoma",
"population": 59501
},
{
"city": "Lakewood",
"state": "Washington",
"population": 59489
},
{
"city": "Great Falls",
"state": "Montana",
"population": 59479
},
{
"city": "Georgetown",
"state": "Texas",
"population": 59436
},
{
"city": "Casper",
"state": "Wyoming",
"population": 59397
},
{
"city": "Lancaster",
"state": "Pennsylvania",
"population": 59341
},
{
"city": "South Whittier",
"state": "California",
"population": 59313
},
{
"city": "Buckeye",
"state": "Arizona",
"population": 59310
},
{
"city": "Redmond",
"state": "Washington",
"population": 59268
},
{
"city": "Kendale Lakes",
"state": "Florida",
"population": 59217
},
{
"city": "Rowlett",
"state": "Texas",
"population": 59203
},
{
"city": "Brookline",
"state": "Massachusetts",
"population": 59180
},
{
"city": "La Mesa",
"state": "California",
"population": 59125
},
{
"city": "Chapel Hill",
"state": "North Carolina",
"population": 59005
},
{
"city": "San Rafael",
"state": "California",
"population": 58948
},
{
"city": "Idaho Falls",
"state": "Idaho",
"population": 58933
},
{
"city": "Huntington Park",
"state": "California",
"population": 58921
},
{
"city": "Royal Oak",
"state": "Michigan",
"population": 58823
},
{
"city": "Port Orange",
"state": "Florida",
"population": 58780
},
{
"city": "Des Plaines",
"state": "Illinois",
"population": 58755
},
{
"city": "Noblesville",
"state": "Indiana",
"population": 58719
},
{
"city": "Owensboro",
"state": "Kentucky",
"population": 58685
},
{
"city": "Orland Park",
"state": "Illinois",
"population": 58612
},
{
"city": "Spring",
"state": "Texas",
"population": 58608
},
{
"city": "Dubuque",
"state": "Iowa",
"population": 58535
},
{
"city": "Porterville",
"state": "California",
"population": 58472
},
{
"city": "Bartlett",
"state": "Tennessee",
"population": 58318
},
{
"city": "Novi",
"state": "Michigan",
"population": 58233
},
{
"city": "Eastvale",
"state": "California",
"population": 58217
},
{
"city": "Towson",
"state": "Maryland",
"population": 58189
},
{
"city": "Kokomo",
"state": "Indiana",
"population": 58075
},
{
"city": "Port Charlotte",
"state": "Florida",
"population": 58001
},
{
"city": "White Plains",
"state": "New York",
"population": 57925
},
{
"city": "Ocala",
"state": "Florida",
"population": 57873
},
{
"city": "Tonawanda",
"state": "New York",
"population": 57844
},
{
"city": "Tamiami",
"state": "Florida",
"population": 57796
},
{
"city": "Arcadia",
"state": "California",
"population": 57755
},
{
"city": "San Marcos",
"state": "Texas",
"population": 57743
},
{
"city": "Coconut Creek",
"state": "Florida",
"population": 57731
},
{
"city": "Bowie",
"state": "Maryland",
"population": 57633
},
{
"city": "Woodland",
"state": "California",
"population": 57552
},
{
"city": "Fountainebleau",
"state": "Florida",
"population": 57357
},
{
"city": "Medford",
"state": "Massachusetts",
"population": 57180
},
{
"city": "Tinley Park",
"state": "Illinois",
"population": 57125
},
{
"city": "Sanford",
"state": "Florida",
"population": 57039
},
{
"city": "Midwest City",
"state": "Oklahoma",
"population": 56930
},
{
"city": "Brentwood",
"state": "California",
"population": 56923
},
{
"city": "Santee",
"state": "California",
"population": 56839
},
{
"city": "Oak Lawn",
"state": "Illinois",
"population": 56774
},
{
"city": "Valdosta",
"state": "Georgia",
"population": 56717
},
{
"city": "Fountain Valley",
"state": "California",
"population": 56670
},
{
"city": "Taunton",
"state": "Massachusetts",
"population": 56504
},
{
"city": "Diamond Bar",
"state": "California",
"population": 56456
},
{
"city": "New Brunswick",
"state": "New Jersey",
"population": 56427
},
{
"city": "Berwyn",
"state": "Illinois",
"population": 56414
},
{
"city": "Dearborn Heights",
"state": "Michigan",
"population": 56329
},
{
"city": "Lehi",
"state": "Utah",
"population": 56314
},
{
"city": "Margate",
"state": "Florida",
"population": 56245
},
{
"city": "Rocky Mount",
"state": "North Carolina",
"population": 56175
},
{
"city": "The Hammocks",
"state": "Florida",
"population": 56105
},
{
"city": "Chicopee",
"state": "Massachusetts",
"population": 56100
},
{
"city": "Manhattan",
"state": "Kansas",
"population": 55909
},
{
"city": "Grand Forks",
"state": "North Dakota",
"population": 55831
},
{
"city": "St. Peters",
"state": "Missouri",
"population": 55820
},
{
"city": "Corvallis",
"state": "Oregon",
"population": 55766
},
{
"city": "Kettering",
"state": "Ohio",
"population": 55720
},
{
"city": "Pflugerville",
"state": "Texas",
"population": 55712
},
{
"city": "Weymouth Town",
"state": "Massachusetts",
"population": 55601
},
{
"city": "Hempstead",
"state": "New York",
"population": 55454
},
{
"city": "Decatur",
"state": "Alabama",
"population": 55419
},
{
"city": "Anderson",
"state": "Indiana",
"population": 55342
},
{
"city": "South Hill",
"state": "Washington",
"population": 55194
},
{
"city": "Hendersonville",
"state": "Tennessee",
"population": 55073
},
{
"city": "Shoreline",
"state": "Washington",
"population": 55021
},
{
"city": "West Haven",
"state": "Connecticut",
"population": 54972
},
{
"city": "Paramount",
"state": "California",
"population": 54941
},
{
"city": "Port Arthur",
"state": "Texas",
"population": 54913
},
{
"city": "Hanford",
"state": "California",
"population": 54912
},
{
"city": "Aloha",
"state": "Oregon",
"population": 54908
},
{
"city": "Novato",
"state": "California",
"population": 54790
},
{
"city": "Smyrna",
"state": "Georgia",
"population": 54788
},
{
"city": "Lakewood",
"state": "New Jersey",
"population": 54679
},
{
"city": "Pocatello",
"state": "Idaho",
"population": 54592
},
{
"city": "Greenwood",
"state": "Indiana",
"population": 54564
},
{
"city": "Mount Prospect",
"state": "Illinois",
"population": 54552
},
{
"city": "Normal",
"state": "Illinois",
"population": 54534
},
{
"city": "Dublin",
"state": "California",
"population": 54523
},
{
"city": "Rosemead",
"state": "California",
"population": 54507
},
{
"city": "Highland",
"state": "California",
"population": 54490
},
{
"city": "Sarasota",
"state": "Florida",
"population": 54425
},
{
"city": "Carson City",
"state": "Nevada",
"population": 54412
},
{
"city": "Hacienda Heights",
"state": "California",
"population": 54033
},
{
"city": "Elyria",
"state": "Ohio",
"population": 53928
},
{
"city": "Colton",
"state": "California",
"population": 53856
},
{
"city": "Castle Rock",
"state": "Colorado",
"population": 53789
},
{
"city": "Euless",
"state": "Texas",
"population": 53675
},
{
"city": "Blue Springs",
"state": "Missouri",
"population": 53641
},
{
"city": "Wheaton",
"state": "Illinois",
"population": 53568
},
{
"city": "Doral",
"state": "Florida",
"population": 53426
},
{
"city": "Ankeny",
"state": "Iowa",
"population": 53413
},
{
"city": "Cathedral City",
"state": "California",
"population": 53268
},
{
"city": "Pensacola",
"state": "Florida",
"population": 53250
},
{
"city": "Richland",
"state": "Washington",
"population": 53227
},
{
"city": "Revere",
"state": "Massachusetts",
"population": 53165
},
{
"city": "Hoboken",
"state": "New Jersey",
"population": 53136
},
{
"city": "Lake Havasu City",
"state": "Arizona",
"population": 53058
},
{
"city": "Bellevue",
"state": "Nebraska",
"population": 52993
},
{
"city": "Bradenton",
"state": "Florida",
"population": 52985
},
{
"city": "Watsonville",
"state": "California",
"population": 52915
},
{
"city": "Yucaipa",
"state": "California",
"population": 52886
},
{
"city": "Kingsport",
"state": "Tennessee",
"population": 52871
},
{
"city": "Gilroy",
"state": "California",
"population": 52576
},
{
"city": "Burlington",
"state": "North Carolina",
"population": 52570
},
{
"city": "Delano",
"state": "California",
"population": 52538
},
{
"city": "West New York",
"state": "New Jersey",
"population": 52407
},
{
"city": "Levittown",
"state": "Pennsylvania",
"population": 52407
},
{
"city": "Elkhart",
"state": "Indiana",
"population": 52378
},
{
"city": "Stratford",
"state": "Connecticut",
"population": 52300
},
{
"city": "Perth Amboy",
"state": "New Jersey",
"population": 52265
},
{
"city": "Peabody",
"state": "Massachusetts",
"population": 52235
},
{
"city": "Florissant",
"state": "Missouri",
"population": 52218
},
{
"city": "Placentia",
"state": "California",
"population": 52168
},
{
"city": "La Crosse",
"state": "Wisconsin",
"population": 52140
},
{
"city": "Aspen Hill",
"state": "Maryland",
"population": 52028
},
{
"city": "Milford",
"state": "Connecticut",
"population": 52005
},
{
"city": "Oak Park",
"state": "Illinois",
"population": 51989
},
{
"city": "Harrisonburg",
"state": "Virginia",
"population": 51979
},
{
"city": "Albany",
"state": "Oregon",
"population": 51919
},
{
"city": "Palm Beach Gardens",
"state": "Florida",
"population": 51865
},
{
"city": "DeSoto",
"state": "Texas",
"population": 51854
},
{
"city": "Southaven",
"state": "Mississippi",
"population": 51816
},
{
"city": "Battle Creek",
"state": "Michigan",
"population": 51763
},
{
"city": "Commerce City",
"state": "Colorado",
"population": 51731
},
{
"city": "Hoffman Estates",
"state": "Illinois",
"population": 51727
},
{
"city": "Huntersville",
"state": "North Carolina",
"population": 51701
},
{
"city": "Minnetonka",
"state": "Minnesota",
"population": 51651
},
{
"city": "Casa Grande",
"state": "Arizona",
"population": 51571
},
{
"city": "Brookhaven",
"state": "Georgia",
"population": 51567
},
{
"city": "West Sacramento",
"state": "California",
"population": 51386
},
{
"city": "Catalina Foothills",
"state": "Arizona",
"population": 51329
},
{
"city": "Glendora",
"state": "California",
"population": 51285
},
{
"city": "Joplin",
"state": "Missouri",
"population": 51231
},
{
"city": "Wesley Chapel",
"state": "Florida",
"population": 51229
},
{
"city": "Lenexa",
"state": "Kansas",
"population": 51206
},
{
"city": "Irondequoit",
"state": "New York",
"population": 51135
},
{
"city": "Levittown",
"state": "New York",
"population": 51073
},
{
"city": "Palm Desert",
"state": "California",
"population": 51045
},
{
"city": "Pinellas Park",
"state": "Florida",
"population": 50946
},
{
"city": "Grand Island",
"state": "Nebraska",
"population": 50895
},
{
"city": "Enid",
"state": "Oklahoma",
"population": 50891
},
{
"city": "Lakewood",
"state": "Ohio",
"population": 50866
},
{
"city": "East Hartford",
"state": "Connecticut",
"population": 50834
},
{
"city": "Tigard",
"state": "Oregon",
"population": 50787
},
{
"city": "Kentwood",
"state": "Michigan",
"population": 50761
},
{
"city": "Apple Valley",
"state": "Minnesota",
"population": 50602
},
{
"city": "Plainfield",
"state": "New Jersey",
"population": 50578
},
{
"city": "Grapevine",
"state": "Texas",
"population": 50538
},
{
"city": "Coral Gables",
"state": "Florida",
"population": 50533
},
{
"city": "Caldwell",
"state": "Idaho",
"population": 50288
},
{
"city": "Rowland Heights",
"state": "California",
"population": 50281
},
{
"city": "Aliso Viejo",
"state": "California",
"population": 50219
},
{
"city": "Charleston",
"state": "West Virginia",
"population": 50210
},
{
"city": "Burien",
"state": "Washington",
"population": 50187
},
{
"city": "Edina",
"state": "Minnesota",
"population": 49976
},
{
"city": "North Bethesda",
"state": "Maryland",
"population": 49971
},
{
"city": "Saginaw",
"state": "Michigan",
"population": 49892
},
{
"city": "Troy",
"state": "New York",
"population": 49881
},
{
"city": "Country Club",
"state": "Florida",
"population": 49815
},
{
"city": "Bonita Springs",
"state": "Florida",
"population": 49807
},
{
"city": "Cerritos",
"state": "California",
"population": 49797
},
{
"city": "Wheaton",
"state": "Maryland",
"population": 49764
},
{
"city": "Ashburn",
"state": "Virginia",
"population": 49692
},
{
"city": "Poway",
"state": "California",
"population": 49675
},
{
"city": "Olympia",
"state": "Washington",
"population": 49608
},
{
"city": "Wilson",
"state": "North Carolina",
"population": 49558
},
{
"city": "Downers Grove",
"state": "Illinois",
"population": 49555
},
{
"city": "Logan",
"state": "Utah",
"population": 49539
},
{
"city": "Florin",
"state": "California",
"population": 49486
},
{
"city": "Galveston",
"state": "Texas",
"population": 49443
},
{
"city": "Leesburg",
"state": "Virginia",
"population": 49401
},
{
"city": "Monroe",
"state": "Louisiana",
"population": 49361
},
{
"city": "Cuyahoga Falls",
"state": "Ohio",
"population": 49353
},
{
"city": "Niagara Falls",
"state": "New York",
"population": 49180
},
{
"city": "Harrisburg",
"state": "Pennsylvania",
"population": 49160
},
{
"city": "La Mirada",
"state": "California",
"population": 49130
},
{
"city": "Methuen Town",
"state": "Massachusetts",
"population": 49043
},
{
"city": "Rancho Santa Margarita",
"state": "California",
"population": 49038
},
{
"city": "Severn",
"state": "Maryland",
"population": 49017
},
{
"city": "Cypress",
"state": "California",
"population": 48978
},
{
"city": "McLean",
"state": "Virginia",
"population": 48867
},
{
"city": "Bedford",
"state": "Texas",
"population": 48864
},
{
"city": "Murray",
"state": "Utah",
"population": 48834
},
{
"city": "Sheboygan",
"state": "Wisconsin",
"population": 48813
},
{
"city": "Huntington",
"state": "West Virginia",
"population": 48735
},
{
"city": "Covina",
"state": "California",
"population": 48539
},
{
"city": "Middletown",
"state": "Ohio",
"population": 48527
},
{
"city": "Azusa",
"state": "California",
"population": 48498
},
{
"city": "Newark",
"state": "Ohio",
"population": 48477
},
{
"city": "Parker",
"state": "Colorado",
"population": 48442
},
{
"city": "Roswell",
"state": "New Mexico",
"population": 48407
},
{
"city": "East Lansing",
"state": "Michigan",
"population": 48395
},
{
"city": "Antelope",
"state": "California",
"population": 48325
},
{
"city": "Mishawaka",
"state": "Indiana",
"population": 48234
},
{
"city": "Dunwoody",
"state": "Georgia",
"population": 48128
},
{
"city": "Stillwater",
"state": "Oklahoma",
"population": 48104
},
{
"city": "Alexandria",
"state": "Louisiana",
"population": 48044
},
{
"city": "Collierville",
"state": "Tennessee",
"population": 48005
},
{
"city": "Tuckahoe",
"state": "Virginia",
"population": 47997
},
{
"city": "East Honolulu",
"state": "Hawaii",
"population": 47957
},
{
"city": "Summerville",
"state": "South Carolina",
"population": 47919
},
{
"city": "Euclid",
"state": "Ohio",
"population": 47863
},
{
"city": "Portage",
"state": "Michigan",
"population": 47854
},
{
"city": "Coeur d'Alene",
"state": "Idaho",
"population": 47842
},
{
"city": "Chesterfield",
"state": "Missouri",
"population": 47717
},
{
"city": "Salina",
"state": "Kansas",
"population": 47676
},
{
"city": "Roseville",
"state": "Michigan",
"population": 47606
},
{
"city": "St. Louis Park",
"state": "Minnesota",
"population": 47486
},
{
"city": "Bel Air South",
"state": "Maryland",
"population": 47480
},
{
"city": "Cedar Hill",
"state": "Texas",
"population": 47457
},
{
"city": "Lawrence",
"state": "Indiana",
"population": 47415
},
{
"city": "Wauwatosa",
"state": "Wisconsin",
"population": 47388
},
{
"city": "Minot",
"state": "North Dakota",
"population": 47338
},
{
"city": "East Providence",
"state": "Rhode Island",
"population": 47260
},
{
"city": "Pearl City",
"state": "Hawaii",
"population": 47241
},
{
"city": "Ceres",
"state": "California",
"population": 47231
},
{
"city": "Apopka",
"state": "Florida",
"population": 47023
},
{
"city": "Middletown",
"state": "Connecticut",
"population": 46933
},
{
"city": "Mansfield",
"state": "Ohio",
"population": 46902
},
{
"city": "Mentor",
"state": "Ohio",
"population": 46896
},
{
"city": "Hattiesburg",
"state": "Mississippi",
"population": 46846
},
{
"city": "North Highlands",
"state": "California",
"population": 46841
},
{
"city": "Texas City",
"state": "Texas",
"population": 46811
},
{
"city": "San Luis Obispo",
"state": "California",
"population": 46716
},
{
"city": "Palm Springs",
"state": "California",
"population": 46714
},
{
"city": "Twin Falls",
"state": "Idaho",
"population": 46623
},
{
"city": "Glenview",
"state": "Illinois",
"population": 46559
},
{
"city": "Columbus",
"state": "Indiana",
"population": 46474
},
{
"city": "Jeffersonville",
"state": "Indiana",
"population": 46415
},
{
"city": "Draper",
"state": "Utah",
"population": 46399
},
{
"city": "Madison",
"state": "Alabama",
"population": 46396
},
{
"city": "San Jacinto",
"state": "California",
"population": 46375
},
{
"city": "Binghamton",
"state": "New York",
"population": 46277
},
{
"city": "Trujillo Alto",
"state": "Puerto Rico",
"population": 46226
},
{
"city": "Beavercreek",
"state": "Ohio",
"population": 46086
},
{
"city": "Potomac",
"state": "Maryland",
"population": 45882
},
{
"city": "Elmhurst",
"state": "Illinois",
"population": 45742
},
{
"city": "Kannapolis",
"state": "North Carolina",
"population": 45685
},
{
"city": "Lincoln",
"state": "California",
"population": 45675
},
{
"city": "Wylie",
"state": "Texas",
"population": 45655
},
{
"city": "Lacey",
"state": "Washington",
"population": 45644
},
{
"city": "Hilo",
"state": "Hawaii",
"population": 45579
},
{
"city": "Charlottesville",
"state": "Virginia",
"population": 45538
},
{
"city": "Maricopa",
"state": "Arizona",
"population": 45473
},
{
"city": "Pine Bluff",
"state": "Arkansas",
"population": 45404
},
{
"city": "Smyrna",
"state": "Tennessee",
"population": 45369
},
{
"city": "Biloxi",
"state": "Mississippi",
"population": 45271
},
{
"city": "Altoona",
"state": "Pennsylvania",
"population": 45209
},
{
"city": "West Seneca",
"state": "New York",
"population": 45197
},
{
"city": "Cleveland Heights",
"state": "Ohio",
"population": 45160
},
{
"city": "Littleton",
"state": "Colorado",
"population": 45072
},
{
"city": "Altadena",
"state": "California",
"population": 45001
},
{
"city": "Titusville",
"state": "Florida",
"population": 44746
},
{
"city": "Lake Ridge",
"state": "Virginia",
"population": 44685
},
{
"city": "Newark",
"state": "California",
"population": 44677
},
{
"city": "Everett",
"state": "Massachusetts",
"population": 44636
},
{
"city": "Strongsville",
"state": "Ohio",
"population": 44622
},
{
"city": "West Lafayette",
"state": "Indiana",
"population": 44543
},
{
"city": "Barnstable Town",
"state": "Massachusetts",
"population": 44498
},
{
"city": "Arlington",
"state": "Massachusetts",
"population": 44408
},
{
"city": "Sierra Vista",
"state": "Arizona",
"population": 44381
},
{
"city": "Hackensack",
"state": "New Jersey",
"population": 44271
},
{
"city": "Sayreville",
"state": "New Jersey",
"population": 44260
},
{
"city": "Keller",
"state": "Texas",
"population": 44250
},
{
"city": "St. Cloud",
"state": "Florida",
"population": 44198
},
{
"city": "Attleboro",
"state": "Massachusetts",
"population": 44121
},
{
"city": "Farmington",
"state": "New Mexico",
"population": 44067
},
{
"city": "Lombard",
"state": "Illinois",
"population": 44025
},
{
"city": "Cutler Bay",
"state": "Florida",
"population": 44002
},
{
"city": "Blacksburg",
"state": "Virginia",
"population": 43973
},
{
"city": "Apex",
"state": "North Carolina",
"population": 43893
},
{
"city": "Fort Pierce",
"state": "Florida",
"population": 43883
},
{
"city": "Dublin",
"state": "Ohio",
"population": 43874
},
{
"city": "University",
"state": "Florida",
"population": 43871
},
{
"city": "Haltom City",
"state": "Texas",
"population": 43864
},
{
"city": "York",
"state": "Pennsylvania",
"population": 43848
},
{
"city": "Coachella",
"state": "California",
"population": 43826
},
{
"city": "Danville",
"state": "California",
"population": 43758
},
{
"city": "North Miami Beach",
"state": "Florida",
"population": 43722
},
{
"city": "El Centro",
"state": "California",
"population": 43699
},
{
"city": "Lompoc",
"state": "California",
"population": 43678
},
{
"city": "Oakland Park",
"state": "Florida",
"population": 43660
},
{
"city": "Pittsfield",
"state": "Massachusetts",
"population": 43632
},
{
"city": "El Dorado Hills",
"state": "California",
"population": 43495
},
{
"city": "Bountiful",
"state": "Utah",
"population": 43428
},
{
"city": "West Babylon",
"state": "New York",
"population": 43359
},
{
"city": "Cleveland",
"state": "Tennessee",
"population": 43276
},
{
"city": "DeKalb",
"state": "Illinois",
"population": 43269
},
{
"city": "Freeport",
"state": "New York",
"population": 43217
},
{
"city": "Annandale",
"state": "Virginia",
"population": 43158
},
{
"city": "Bothell",
"state": "Washington",
"population": 43153
},
{
"city": "Jefferson City",
"state": "Missouri",
"population": 43143
},
{
"city": "North Lauderdale",
"state": "Florida",
"population": 43087
},
{
"city": "Fond du Lac",
"state": "Wisconsin",
"population": 43018
},
{
"city": "Hicksville",
"state": "New York",
"population": 42856
},
{
"city": "Bell Gardens",
"state": "California",
"population": 42805
},
{
"city": "Moline",
"state": "Illinois",
"population": 42805
},
{
"city": "Salem",
"state": "Massachusetts",
"population": 42804
},
{
"city": "San Bruno",
"state": "California",
"population": 42736
},
{
"city": "Belleville",
"state": "Illinois",
"population": 42729
},
{
"city": "Fairfield",
"state": "Ohio",
"population": 42640
},
{
"city": "Concord",
"state": "New Hampshire",
"population": 42634
},
{
"city": "Altamonte Springs",
"state": "Florida",
"population": 42557
},
{
"city": "Burlington",
"state": "Vermont",
"population": 42556
},
{
"city": "Bentonville",
"state": "Arkansas",
"population": 42499
},
{
"city": "Rancho Palos Verdes",
"state": "California",
"population": 42412
},
{
"city": "Arecibo",
"state": "Puerto Rico",
"population": 42412
},
{
"city": "Oro Valley",
"state": "Arizona",
"population": 42379
},
{
"city": "Danville",
"state": "Virginia",
"population": 42360
},
{
"city": "Burke",
"state": "Virginia",
"population": 42290
},
{
"city": "Beaumont",
"state": "California",
"population": 42191
},
{
"city": "State College",
"state": "Pennsylvania",
"population": 42074
},
{
"city": "Midland",
"state": "Michigan",
"population": 42063
},
{
"city": "Kearny",
"state": "New Jersey",
"population": 42029
},
{
"city": "Catonsville",
"state": "Maryland",
"population": 42027
},
{
"city": "Burleson",
"state": "Texas",
"population": 41962
},
{
"city": "Urbana",
"state": "Illinois",
"population": 41941
},
{
"city": "Rohnert Park",
"state": "California",
"population": 41928
},
{
"city": "Plainfield",
"state": "Illinois",
"population": 41881
},
{
"city": "Morgan Hill",
"state": "California",
"population": 41839
},
{
"city": "Bozeman",
"state": "Montana",
"population": 41761
},
{
"city": "Rockwall",
"state": "Texas",
"population": 41672
},
{
"city": "Hutchinson",
"state": "Kansas",
"population": 41661
},
{
"city": "Linden",
"state": "New Jersey",
"population": 41595
},
{
"city": "Waipahu",
"state": "Hawaii",
"population": 41590
},
{
"city": "Urbandale",
"state": "Iowa",
"population": 41578
},
{
"city": "Buffalo Grove",
"state": "Illinois",
"population": 41554
},
{
"city": "Riverton",
"state": "Utah",
"population": 41521
},
{
"city": "Westfield",
"state": "Massachusetts",
"population": 41486
},
{
"city": "Bartlett",
"state": "Illinois",
"population": 41475
},
{
"city": "Findlay",
"state": "Ohio",
"population": 41412
},
{
"city": "South Valley",
"state": "New Mexico",
"population": 41397
}
]
}
| {
"pile_set_name": "Github"
} |
# locally computed
sha256 b26adf2d503d01299718390ae39dab4691a67220de09423be0364e9a060bf7e4 xcursor-transparent-theme-0.1.1.tar.gz
| {
"pile_set_name": "Github"
} |
using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace AsyncConverter.Tests.Test.Data.FixReturnValueToTaskTests
{
public class Class
{
public async Task TestAsync()
{
var awaitingClass = new AwaitingClass();
await awaitingClass;
await awaitingClass;
}
}
class AwaitingClass
{
public TaskAwaiter GetAwaiter() => throw new NotSupportedException();
}
}
---------------------------------------------------------
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2017 Broadcom. All Rights Reserved.
* The term "Broadcom" refers to Broadcom Limited and/or its subsidiaries.
*
* 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. The full GNU General
* Public License is included in this distribution in the file called COPYING.
*
* Contact Information:
* [email protected]
*
*/
#ifndef _BEISCSI_MAIN_
#define _BEISCSI_MAIN_
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/if_ether.h>
#include <linux/in.h>
#include <linux/ctype.h>
#include <linux/module.h>
#include <linux/aer.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/iscsi_proto.h>
#include <scsi/libiscsi.h>
#include <scsi/scsi_transport_iscsi.h>
#define DRV_NAME "be2iscsi"
#define BUILD_STR "11.4.0.0"
#define BE_NAME "Emulex OneConnect" \
"Open-iSCSI Driver version" BUILD_STR
#define DRV_DESC BE_NAME " " "Driver"
#define BE_VENDOR_ID 0x19A2
#define ELX_VENDOR_ID 0x10DF
/* DEVICE ID's for BE2 */
#define BE_DEVICE_ID1 0x212
#define OC_DEVICE_ID1 0x702
#define OC_DEVICE_ID2 0x703
/* DEVICE ID's for BE3 */
#define BE_DEVICE_ID2 0x222
#define OC_DEVICE_ID3 0x712
/* DEVICE ID for SKH */
#define OC_SKH_ID1 0x722
#define BE2_IO_DEPTH 1024
#define BE2_MAX_SESSIONS 256
#define BE2_TMFS 16
#define BE2_NOPOUT_REQ 16
#define BE2_SGE 32
#define BE2_DEFPDU_HDR_SZ 64
#define BE2_DEFPDU_DATA_SZ 8192
#define BE2_MAX_NUM_CQ_PROC 512
#define MAX_CPUS 64
#define BEISCSI_MAX_NUM_CPUS 7
#define BEISCSI_VER_STRLEN 32
#define BEISCSI_SGLIST_ELEMENTS 30
/**
* BE_INVLDT_CMD_TBL_SZ is 128 which is total number commands that can
* be invalidated at a time, consider it before changing the value of
* BEISCSI_CMD_PER_LUN.
*/
#define BEISCSI_CMD_PER_LUN 128 /* scsi_host->cmd_per_lun */
#define BEISCSI_MAX_SECTORS 1024 /* scsi_host->max_sectors */
#define BEISCSI_TEMPLATE_HDR_PER_CXN_SIZE 128 /* Template size per cxn */
#define BEISCSI_MAX_CMD_LEN 16 /* scsi_host->max_cmd_len */
#define BEISCSI_NUM_MAX_LUN 256 /* scsi_host->max_lun */
#define BEISCSI_NUM_DEVICES_SUPPORTED 0x01
#define BEISCSI_MAX_FRAGS_INIT 192
#define BE_NUM_MSIX_ENTRIES 1
#define BE_SENSE_INFO_SIZE 258
#define BE_ISCSI_PDU_HEADER_SIZE 64
#define BE_MIN_MEM_SIZE 16384
#define MAX_CMD_SZ 65536
#define IIOC_SCSI_DATA 0x05 /* Write Operation */
/**
* hardware needs the async PDU buffers to be posted in multiples of 8
* So have atleast 8 of them by default
*/
#define HWI_GET_ASYNC_PDU_CTX(phwi, ulp_num) \
(phwi->phwi_ctxt->pasync_ctx[ulp_num])
/********* Memory BAR register ************/
#define PCICFG_MEMBAR_CTRL_INT_CTRL_OFFSET 0xfc
/**
* Host Interrupt Enable, if set interrupts are enabled although "PCI Interrupt
* Disable" may still globally block interrupts in addition to individual
* interrupt masks; a mechanism for the device driver to block all interrupts
* atomically without having to arbitrate for the PCI Interrupt Disable bit
* with the OS.
*/
#define MEMBAR_CTRL_INT_CTRL_HOSTINTR_MASK (1 << 29) /* bit 29 */
/********* ISR0 Register offset **********/
#define CEV_ISR0_OFFSET 0xC18
#define CEV_ISR_SIZE 4
/**
* Macros for reading/writing a protection domain or CSR registers
* in BladeEngine.
*/
#define DB_TXULP0_OFFSET 0x40
#define DB_RXULP0_OFFSET 0xA0
/********* Event Q door bell *************/
#define DB_EQ_OFFSET DB_CQ_OFFSET
#define DB_EQ_RING_ID_LOW_MASK 0x1FF /* bits 0 - 8 */
/* Clear the interrupt for this eq */
#define DB_EQ_CLR_SHIFT (9) /* bit 9 */
/* Must be 1 */
#define DB_EQ_EVNT_SHIFT (10) /* bit 10 */
/* Higher Order EQ_ID bit */
#define DB_EQ_RING_ID_HIGH_MASK 0x1F /* bits 11 - 15 */
#define DB_EQ_HIGH_SET_SHIFT 11
#define DB_EQ_HIGH_FEILD_SHIFT 9
/* Number of event entries processed */
#define DB_EQ_NUM_POPPED_SHIFT (16) /* bits 16 - 28 */
/* Rearm bit */
#define DB_EQ_REARM_SHIFT (29) /* bit 29 */
/********* Compl Q door bell *************/
#define DB_CQ_OFFSET 0x120
#define DB_CQ_RING_ID_LOW_MASK 0x3FF /* bits 0 - 9 */
/* Higher Order CQ_ID bit */
#define DB_CQ_RING_ID_HIGH_MASK 0x1F /* bits 11 - 15 */
#define DB_CQ_HIGH_SET_SHIFT 11
#define DB_CQ_HIGH_FEILD_SHIFT 10
/* Number of event entries processed */
#define DB_CQ_NUM_POPPED_SHIFT (16) /* bits 16 - 28 */
/* Rearm bit */
#define DB_CQ_REARM_SHIFT (29) /* bit 29 */
#define GET_HWI_CONTROLLER_WS(pc) (pc->phwi_ctrlr)
#define HWI_GET_DEF_BUFQ_ID(pc, ulp_num) (((struct hwi_controller *)\
(GET_HWI_CONTROLLER_WS(pc)))->default_pdu_data[ulp_num].id)
#define HWI_GET_DEF_HDRQ_ID(pc, ulp_num) (((struct hwi_controller *)\
(GET_HWI_CONTROLLER_WS(pc)))->default_pdu_hdr[ulp_num].id)
#define PAGES_REQUIRED(x) \
((x < PAGE_SIZE) ? 1 : ((x + PAGE_SIZE - 1) / PAGE_SIZE))
#define BEISCSI_MSI_NAME 20 /* size of msi_name string */
#define MEM_DESCR_OFFSET 8
#define BEISCSI_DEFQ_HDR 1
#define BEISCSI_DEFQ_DATA 0
enum be_mem_enum {
HWI_MEM_ADDN_CONTEXT,
HWI_MEM_WRB,
HWI_MEM_WRBH,
HWI_MEM_SGLH,
HWI_MEM_SGE,
HWI_MEM_TEMPLATE_HDR_ULP0,
HWI_MEM_ASYNC_HEADER_BUF_ULP0, /* 6 */
HWI_MEM_ASYNC_DATA_BUF_ULP0,
HWI_MEM_ASYNC_HEADER_RING_ULP0,
HWI_MEM_ASYNC_DATA_RING_ULP0,
HWI_MEM_ASYNC_HEADER_HANDLE_ULP0,
HWI_MEM_ASYNC_DATA_HANDLE_ULP0, /* 11 */
HWI_MEM_ASYNC_PDU_CONTEXT_ULP0,
HWI_MEM_TEMPLATE_HDR_ULP1,
HWI_MEM_ASYNC_HEADER_BUF_ULP1, /* 14 */
HWI_MEM_ASYNC_DATA_BUF_ULP1,
HWI_MEM_ASYNC_HEADER_RING_ULP1,
HWI_MEM_ASYNC_DATA_RING_ULP1,
HWI_MEM_ASYNC_HEADER_HANDLE_ULP1,
HWI_MEM_ASYNC_DATA_HANDLE_ULP1, /* 19 */
HWI_MEM_ASYNC_PDU_CONTEXT_ULP1,
ISCSI_MEM_GLOBAL_HEADER,
SE_MEM_MAX
};
struct be_bus_address32 {
unsigned int address_lo;
unsigned int address_hi;
};
struct be_bus_address64 {
unsigned long long address;
};
struct be_bus_address {
union {
struct be_bus_address32 a32;
struct be_bus_address64 a64;
} u;
};
struct mem_array {
struct be_bus_address bus_address; /* Bus address of location */
void *virtual_address; /* virtual address to the location */
unsigned int size; /* Size required by memory block */
};
struct be_mem_descriptor {
unsigned int index; /* Index of this memory parameter */
unsigned int category; /* type indicates cached/non-cached */
unsigned int num_elements; /* number of elements in this
* descriptor
*/
unsigned int alignment_mask; /* Alignment mask for this block */
unsigned int size_in_bytes; /* Size required by memory block */
struct mem_array *mem_array;
};
struct sgl_handle {
unsigned int sgl_index;
unsigned int type;
unsigned int cid;
struct iscsi_task *task;
struct iscsi_sge *pfrag;
};
struct hba_parameters {
unsigned int ios_per_ctrl;
unsigned int cxns_per_ctrl;
unsigned int icds_per_ctrl;
unsigned int num_sge_per_io;
unsigned int defpdu_hdr_sz;
unsigned int defpdu_data_sz;
unsigned int num_cq_entries;
unsigned int num_eq_entries;
unsigned int wrbs_per_cxn;
unsigned int hwi_ws_sz;
/**
* These are calculated from other params. They're here
* for debug purposes
*/
unsigned int num_mcc_pages;
unsigned int num_mcc_cq_pages;
unsigned int num_cq_pages;
unsigned int num_eq_pages;
unsigned int num_async_pdu_buf_pages;
unsigned int num_async_pdu_buf_sgl_pages;
unsigned int num_async_pdu_buf_cq_pages;
unsigned int num_async_pdu_hdr_pages;
unsigned int num_async_pdu_hdr_sgl_pages;
unsigned int num_async_pdu_hdr_cq_pages;
unsigned int num_sge;
};
#define BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, cri) \
(phwi_ctrlr->wrb_context[cri].ulp_num)
struct hwi_wrb_context {
spinlock_t wrb_lock;
struct list_head wrb_handle_list;
struct list_head wrb_handle_drvr_list;
struct wrb_handle **pwrb_handle_base;
struct wrb_handle **pwrb_handle_basestd;
struct iscsi_wrb *plast_wrb;
unsigned short alloc_index;
unsigned short free_index;
unsigned short wrb_handles_available;
unsigned short cid;
uint8_t ulp_num; /* ULP to which CID binded */
uint16_t register_set;
uint16_t doorbell_format;
uint32_t doorbell_offset;
};
struct ulp_cid_info {
unsigned short *cid_array;
unsigned short avlbl_cids;
unsigned short cid_alloc;
unsigned short cid_free;
};
#include "be.h"
#define chip_be2(phba) (phba->generation == BE_GEN2)
#define chip_be3_r(phba) (phba->generation == BE_GEN3)
#define is_chip_be2_be3r(phba) (chip_be3_r(phba) || (chip_be2(phba)))
#define BEISCSI_ULP0 0
#define BEISCSI_ULP1 1
#define BEISCSI_ULP_COUNT 2
#define BEISCSI_ULP0_LOADED 0x01
#define BEISCSI_ULP1_LOADED 0x02
#define BEISCSI_ULP_AVLBL_CID(phba, ulp_num) \
(((struct ulp_cid_info *)phba->cid_array_info[ulp_num])->avlbl_cids)
#define BEISCSI_ULP0_AVLBL_CID(phba) \
BEISCSI_ULP_AVLBL_CID(phba, BEISCSI_ULP0)
#define BEISCSI_ULP1_AVLBL_CID(phba) \
BEISCSI_ULP_AVLBL_CID(phba, BEISCSI_ULP1)
struct beiscsi_hba {
struct hba_parameters params;
struct hwi_controller *phwi_ctrlr;
unsigned int mem_req[SE_MEM_MAX];
/* PCI BAR mapped addresses */
u8 __iomem *csr_va; /* CSR */
u8 __iomem *db_va; /* Door Bell */
u8 __iomem *pci_va; /* PCI Config */
struct be_bus_address csr_pa; /* CSR */
struct be_bus_address db_pa; /* CSR */
struct be_bus_address pci_pa; /* CSR */
/* PCI representation of our HBA */
struct pci_dev *pcidev;
unsigned int num_cpus;
unsigned int nxt_cqid;
char *msi_name[MAX_CPUS];
struct be_mem_descriptor *init_mem;
unsigned short io_sgl_alloc_index;
unsigned short io_sgl_free_index;
unsigned short io_sgl_hndl_avbl;
struct sgl_handle **io_sgl_hndl_base;
struct sgl_handle **sgl_hndl_array;
unsigned short eh_sgl_alloc_index;
unsigned short eh_sgl_free_index;
unsigned short eh_sgl_hndl_avbl;
struct sgl_handle **eh_sgl_hndl_base;
spinlock_t io_sgl_lock;
spinlock_t mgmt_sgl_lock;
spinlock_t async_pdu_lock;
struct list_head hba_queue;
#define BE_MAX_SESSION 2048
#define BE_INVALID_CID 0xffff
#define BE_SET_CID_TO_CRI(cri_index, cid) \
(phba->cid_to_cri_map[cid] = cri_index)
#define BE_GET_CRI_FROM_CID(cid) (phba->cid_to_cri_map[cid])
unsigned short cid_to_cri_map[BE_MAX_SESSION];
struct ulp_cid_info *cid_array_info[BEISCSI_ULP_COUNT];
struct iscsi_endpoint **ep_array;
struct beiscsi_conn **conn_table;
struct Scsi_Host *shost;
struct iscsi_iface *ipv4_iface;
struct iscsi_iface *ipv6_iface;
struct {
/**
* group together since they are used most frequently
* for cid to cri conversion
*/
#define BEISCSI_PHYS_PORT_MAX 4
unsigned int phys_port;
/* valid values of phys_port id are 0, 1, 2, 3 */
unsigned int eqid_count;
unsigned int cqid_count;
unsigned int iscsi_cid_start[BEISCSI_ULP_COUNT];
#define BEISCSI_GET_CID_COUNT(phba, ulp_num) \
(phba->fw_config.iscsi_cid_count[ulp_num])
unsigned int iscsi_cid_count[BEISCSI_ULP_COUNT];
unsigned int iscsi_icd_count[BEISCSI_ULP_COUNT];
unsigned int iscsi_icd_start[BEISCSI_ULP_COUNT];
unsigned int iscsi_chain_start[BEISCSI_ULP_COUNT];
unsigned int iscsi_chain_count[BEISCSI_ULP_COUNT];
unsigned short iscsi_features;
uint16_t dual_ulp_aware;
unsigned long ulp_supported;
} fw_config;
unsigned long state;
#define BEISCSI_HBA_ONLINE 0
#define BEISCSI_HBA_LINK_UP 1
#define BEISCSI_HBA_BOOT_FOUND 2
#define BEISCSI_HBA_BOOT_WORK 3
#define BEISCSI_HBA_UER_SUPP 4
#define BEISCSI_HBA_PCI_ERR 5
#define BEISCSI_HBA_FW_TIMEOUT 6
#define BEISCSI_HBA_IN_UE 7
#define BEISCSI_HBA_IN_TPE 8
/* error bits */
#define BEISCSI_HBA_IN_ERR ((1 << BEISCSI_HBA_PCI_ERR) | \
(1 << BEISCSI_HBA_FW_TIMEOUT) | \
(1 << BEISCSI_HBA_IN_UE) | \
(1 << BEISCSI_HBA_IN_TPE))
u8 optic_state;
struct delayed_work eqd_update;
/* update EQ delay timer every 1000ms */
#define BEISCSI_EQD_UPDATE_INTERVAL 1000
struct timer_list hw_check;
/* check for UE every 1000ms */
#define BEISCSI_UE_DETECT_INTERVAL 1000
u32 ue2rp;
struct delayed_work recover_port;
struct work_struct sess_work;
bool mac_addr_set;
u8 mac_address[ETH_ALEN];
u8 port_name;
u8 port_speed;
char fw_ver_str[BEISCSI_VER_STRLEN];
struct workqueue_struct *wq; /* The actuak work queue */
struct be_ctrl_info ctrl;
unsigned int generation;
unsigned int interface_handle;
struct be_aic_obj aic_obj[MAX_CPUS];
unsigned int attr_log_enable;
int (*iotask_fn)(struct iscsi_task *,
struct scatterlist *sg,
uint32_t num_sg, uint32_t xferlen,
uint32_t writedir);
struct boot_struct {
int retry;
unsigned int tag;
unsigned int s_handle;
struct be_dma_mem nonemb_cmd;
enum {
BEISCSI_BOOT_REOPEN_SESS = 1,
BEISCSI_BOOT_GET_SHANDLE,
BEISCSI_BOOT_GET_SINFO,
BEISCSI_BOOT_LOGOUT_SESS,
BEISCSI_BOOT_CREATE_KSET,
} action;
struct mgmt_session_info boot_sess;
struct iscsi_boot_kset *boot_kset;
} boot_struct;
struct work_struct boot_work;
};
#define beiscsi_hba_in_error(phba) ((phba)->state & BEISCSI_HBA_IN_ERR)
#define beiscsi_hba_is_online(phba) \
(!beiscsi_hba_in_error((phba)) && \
test_bit(BEISCSI_HBA_ONLINE, &phba->state))
struct beiscsi_session {
struct dma_pool *bhs_pool;
};
/**
* struct beiscsi_conn - iscsi connection structure
*/
struct beiscsi_conn {
struct iscsi_conn *conn;
struct beiscsi_hba *phba;
u32 exp_statsn;
u32 doorbell_offset;
u32 beiscsi_conn_cid;
struct beiscsi_endpoint *ep;
unsigned short login_in_progress;
struct wrb_handle *plogin_wrb_handle;
struct sgl_handle *plogin_sgl_handle;
struct beiscsi_session *beiscsi_sess;
struct iscsi_task *task;
};
/* This structure is used by the chip */
struct pdu_data_out {
u32 dw[12];
};
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
struct amap_pdu_data_out {
u8 opcode[6]; /* opcode */
u8 rsvd0[2]; /* should be 0 */
u8 rsvd1[7];
u8 final_bit; /* F bit */
u8 rsvd2[16];
u8 ahs_length[8]; /* no AHS */
u8 data_len_hi[8];
u8 data_len_lo[16]; /* DataSegmentLength */
u8 lun[64];
u8 itt[32]; /* ITT; initiator task tag */
u8 ttt[32]; /* TTT; valid for R2T or 0xffffffff */
u8 rsvd3[32];
u8 exp_stat_sn[32];
u8 rsvd4[32];
u8 data_sn[32];
u8 buffer_offset[32];
u8 rsvd5[32];
};
struct be_cmd_bhs {
struct iscsi_scsi_req iscsi_hdr;
unsigned char pad1[16];
struct pdu_data_out iscsi_data_pdu;
unsigned char pad2[BE_SENSE_INFO_SIZE -
sizeof(struct pdu_data_out)];
};
struct beiscsi_io_task {
struct wrb_handle *pwrb_handle;
struct sgl_handle *psgl_handle;
struct beiscsi_conn *conn;
struct scsi_cmnd *scsi_cmnd;
int num_sg;
struct hwi_wrb_context *pwrb_context;
itt_t libiscsi_itt;
struct be_cmd_bhs *cmd_bhs;
struct be_bus_address bhs_pa;
unsigned short bhs_len;
dma_addr_t mtask_addr;
uint32_t mtask_data_count;
uint8_t wrb_type;
};
struct be_nonio_bhs {
struct iscsi_hdr iscsi_hdr;
unsigned char pad1[16];
struct pdu_data_out iscsi_data_pdu;
unsigned char pad2[BE_SENSE_INFO_SIZE -
sizeof(struct pdu_data_out)];
};
struct be_status_bhs {
struct iscsi_scsi_req iscsi_hdr;
unsigned char pad1[16];
/**
* The plus 2 below is to hold the sense info length that gets
* DMA'ed by RxULP
*/
unsigned char sense_info[BE_SENSE_INFO_SIZE];
};
struct iscsi_sge {
u32 dw[4];
};
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
struct amap_iscsi_sge {
u8 addr_hi[32];
u8 addr_lo[32];
u8 sge_offset[22]; /* DWORD 2 */
u8 rsvd0[9]; /* DWORD 2 */
u8 last_sge; /* DWORD 2 */
u8 len[17]; /* DWORD 3 */
u8 rsvd1[15]; /* DWORD 3 */
};
struct beiscsi_offload_params {
u32 dw[6];
};
#define OFFLD_PARAMS_ERL 0x00000003
#define OFFLD_PARAMS_DDE 0x00000004
#define OFFLD_PARAMS_HDE 0x00000008
#define OFFLD_PARAMS_IR2T 0x00000010
#define OFFLD_PARAMS_IMD 0x00000020
#define OFFLD_PARAMS_DATA_SEQ_INORDER 0x00000040
#define OFFLD_PARAMS_PDU_SEQ_INORDER 0x00000080
#define OFFLD_PARAMS_MAX_R2T 0x00FFFF00
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
struct amap_beiscsi_offload_params {
u8 max_burst_length[32];
u8 max_send_data_segment_length[32];
u8 first_burst_length[32];
u8 erl[2];
u8 dde[1];
u8 hde[1];
u8 ir2t[1];
u8 imd[1];
u8 data_seq_inorder[1];
u8 pdu_seq_inorder[1];
u8 max_r2t[16];
u8 pad[8];
u8 exp_statsn[32];
u8 max_recv_data_segment_length[32];
};
struct hd_async_handle {
struct list_head link;
struct be_bus_address pa;
void *pbuffer;
u32 buffer_len;
u16 index;
u16 cri;
u8 is_header;
u8 is_final;
u8 in_use;
};
#define BEISCSI_ASYNC_HDQ_SIZE(phba, ulp) \
(BEISCSI_GET_CID_COUNT((phba), (ulp)) * 2)
/**
* This has list of async PDUs that are waiting to be processed.
* Buffers live in this list for a brief duration before they get
* processed and posted back to hardware.
* Note that we don't really need one cri_wait_queue per async_entry.
* We need one cri_wait_queue per CRI. Its easier to manage if this
* is tagged along with the async_entry.
*/
struct hd_async_entry {
struct cri_wait_queue {
unsigned short hdr_len;
unsigned int bytes_received;
unsigned int bytes_needed;
struct list_head list;
} wq;
/* handles posted to FW resides here */
struct hd_async_handle *header;
struct hd_async_handle *data;
};
struct hd_async_buf_context {
struct be_bus_address pa_base;
void *va_base;
void *ring_base;
struct hd_async_handle *handle_base;
u32 buffer_size;
u16 pi;
};
/**
* hd_async_context is declared for each ULP supporting iSCSI function.
*/
struct hd_async_context {
struct hd_async_buf_context async_header;
struct hd_async_buf_context async_data;
u16 num_entries;
/**
* When unsol PDU is in, it needs to be chained till all the bytes are
* received and then processing is done. hd_async_entry is created
* based on the cid_count for each ULP. When unsol PDU comes in based
* on the conn_id it needs to be added to the correct async_entry wq.
* Below defined cid_to_async_cri_map is used to reterive the
* async_cri_map for a particular connection.
*
* This array is initialized after beiscsi_create_wrb_rings returns.
*
* - this method takes more memory space, fixed to 2K
* - any support for connections greater than this the array size needs
* to be incremented
*/
#define BE_GET_ASYNC_CRI_FROM_CID(cid) (pasync_ctx->cid_to_async_cri_map[cid])
unsigned short cid_to_async_cri_map[BE_MAX_SESSION];
/**
* This is a variable size array. Don`t add anything after this field!!
*/
struct hd_async_entry *async_entry;
};
struct i_t_dpdu_cqe {
u32 dw[4];
} __packed;
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
struct amap_i_t_dpdu_cqe {
u8 db_addr_hi[32];
u8 db_addr_lo[32];
u8 code[6];
u8 cid[10];
u8 dpl[16];
u8 index[16];
u8 num_cons[10];
u8 rsvd0[4];
u8 final;
u8 valid;
} __packed;
struct amap_i_t_dpdu_cqe_v2 {
u8 db_addr_hi[32]; /* DWORD 0 */
u8 db_addr_lo[32]; /* DWORD 1 */
u8 code[6]; /* DWORD 2 */
u8 num_cons; /* DWORD 2*/
u8 rsvd0[8]; /* DWORD 2 */
u8 dpl[17]; /* DWORD 2 */
u8 index[16]; /* DWORD 3 */
u8 cid[13]; /* DWORD 3 */
u8 rsvd1; /* DWORD 3 */
u8 final; /* DWORD 3 */
u8 valid; /* DWORD 3 */
} __packed;
#define CQE_VALID_MASK 0x80000000
#define CQE_CODE_MASK 0x0000003F
#define CQE_CID_MASK 0x0000FFC0
#define EQE_VALID_MASK 0x00000001
#define EQE_MAJORCODE_MASK 0x0000000E
#define EQE_RESID_MASK 0xFFFF0000
struct be_eq_entry {
u32 dw[1];
} __packed;
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
struct amap_eq_entry {
u8 valid; /* DWORD 0 */
u8 major_code[3]; /* DWORD 0 */
u8 minor_code[12]; /* DWORD 0 */
u8 resource_id[16]; /* DWORD 0 */
} __packed;
struct cq_db {
u32 dw[1];
} __packed;
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
struct amap_cq_db {
u8 qid[10];
u8 event[1];
u8 rsvd0[5];
u8 num_popped[13];
u8 rearm[1];
u8 rsvd1[2];
} __packed;
void beiscsi_process_eq(struct beiscsi_hba *phba);
struct iscsi_wrb {
u32 dw[16];
} __packed;
#define WRB_TYPE_MASK 0xF0000000
#define SKH_WRB_TYPE_OFFSET 27
#define BE_WRB_TYPE_OFFSET 28
#define ADAPTER_SET_WRB_TYPE(pwrb, wrb_type, type_offset) \
(pwrb->dw[0] |= (wrb_type << type_offset))
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
struct amap_iscsi_wrb {
u8 lun[14]; /* DWORD 0 */
u8 lt; /* DWORD 0 */
u8 invld; /* DWORD 0 */
u8 wrb_idx[8]; /* DWORD 0 */
u8 dsp; /* DWORD 0 */
u8 dmsg; /* DWORD 0 */
u8 undr_run; /* DWORD 0 */
u8 over_run; /* DWORD 0 */
u8 type[4]; /* DWORD 0 */
u8 ptr2nextwrb[8]; /* DWORD 1 */
u8 r2t_exp_dtl[24]; /* DWORD 1 */
u8 sgl_icd_idx[12]; /* DWORD 2 */
u8 rsvd0[20]; /* DWORD 2 */
u8 exp_data_sn[32]; /* DWORD 3 */
u8 iscsi_bhs_addr_hi[32]; /* DWORD 4 */
u8 iscsi_bhs_addr_lo[32]; /* DWORD 5 */
u8 cmdsn_itt[32]; /* DWORD 6 */
u8 dif_ref_tag[32]; /* DWORD 7 */
u8 sge0_addr_hi[32]; /* DWORD 8 */
u8 sge0_addr_lo[32]; /* DWORD 9 */
u8 sge0_offset[22]; /* DWORD 10 */
u8 pbs; /* DWORD 10 */
u8 dif_mode[2]; /* DWORD 10 */
u8 rsvd1[6]; /* DWORD 10 */
u8 sge0_last; /* DWORD 10 */
u8 sge0_len[17]; /* DWORD 11 */
u8 dif_meta_tag[14]; /* DWORD 11 */
u8 sge0_in_ddr; /* DWORD 11 */
u8 sge1_addr_hi[32]; /* DWORD 12 */
u8 sge1_addr_lo[32]; /* DWORD 13 */
u8 sge1_r2t_offset[22]; /* DWORD 14 */
u8 rsvd2[9]; /* DWORD 14 */
u8 sge1_last; /* DWORD 14 */
u8 sge1_len[17]; /* DWORD 15 */
u8 ref_sgl_icd_idx[12]; /* DWORD 15 */
u8 rsvd3[2]; /* DWORD 15 */
u8 sge1_in_ddr; /* DWORD 15 */
} __packed;
struct amap_iscsi_wrb_v2 {
u8 r2t_exp_dtl[25]; /* DWORD 0 */
u8 rsvd0[2]; /* DWORD 0*/
u8 type[5]; /* DWORD 0 */
u8 ptr2nextwrb[8]; /* DWORD 1 */
u8 wrb_idx[8]; /* DWORD 1 */
u8 lun[16]; /* DWORD 1 */
u8 sgl_idx[16]; /* DWORD 2 */
u8 ref_sgl_icd_idx[16]; /* DWORD 2 */
u8 exp_data_sn[32]; /* DWORD 3 */
u8 iscsi_bhs_addr_hi[32]; /* DWORD 4 */
u8 iscsi_bhs_addr_lo[32]; /* DWORD 5 */
u8 cq_id[16]; /* DWORD 6 */
u8 rsvd1[16]; /* DWORD 6 */
u8 cmdsn_itt[32]; /* DWORD 7 */
u8 sge0_addr_hi[32]; /* DWORD 8 */
u8 sge0_addr_lo[32]; /* DWORD 9 */
u8 sge0_offset[24]; /* DWORD 10 */
u8 rsvd2[7]; /* DWORD 10 */
u8 sge0_last; /* DWORD 10 */
u8 sge0_len[17]; /* DWORD 11 */
u8 rsvd3[7]; /* DWORD 11 */
u8 diff_enbl; /* DWORD 11 */
u8 u_run; /* DWORD 11 */
u8 o_run; /* DWORD 11 */
u8 invld; /* DWORD 11 */
u8 dsp; /* DWORD 11 */
u8 dmsg; /* DWORD 11 */
u8 rsvd4; /* DWORD 11 */
u8 lt; /* DWORD 11 */
u8 sge1_addr_hi[32]; /* DWORD 12 */
u8 sge1_addr_lo[32]; /* DWORD 13 */
u8 sge1_r2t_offset[24]; /* DWORD 14 */
u8 rsvd5[7]; /* DWORD 14 */
u8 sge1_last; /* DWORD 14 */
u8 sge1_len[17]; /* DWORD 15 */
u8 rsvd6[15]; /* DWORD 15 */
} __packed;
struct wrb_handle *alloc_wrb_handle(struct beiscsi_hba *phba, unsigned int cid,
struct hwi_wrb_context **pcontext);
void
free_mgmt_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle);
void beiscsi_free_mgmt_task_handles(struct beiscsi_conn *beiscsi_conn,
struct iscsi_task *task);
void hwi_ring_cq_db(struct beiscsi_hba *phba,
unsigned int id, unsigned int num_processed,
unsigned char rearm);
unsigned int beiscsi_process_cq(struct be_eq_obj *pbe_eq, int budget);
void beiscsi_process_mcc_cq(struct beiscsi_hba *phba);
struct pdu_nop_out {
u32 dw[12];
};
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
struct amap_pdu_nop_out {
u8 opcode[6]; /* opcode 0x00 */
u8 i_bit; /* I Bit */
u8 x_bit; /* reserved; should be 0 */
u8 fp_bit_filler1[7];
u8 f_bit; /* always 1 */
u8 reserved1[16];
u8 ahs_length[8]; /* no AHS */
u8 data_len_hi[8];
u8 data_len_lo[16]; /* DataSegmentLength */
u8 lun[64];
u8 itt[32]; /* initiator id for ping or 0xffffffff */
u8 ttt[32]; /* target id for ping or 0xffffffff */
u8 cmd_sn[32];
u8 exp_stat_sn[32];
u8 reserved5[128];
};
#define PDUBASE_OPCODE_MASK 0x0000003F
#define PDUBASE_DATALENHI_MASK 0x0000FF00
#define PDUBASE_DATALENLO_MASK 0xFFFF0000
struct pdu_base {
u32 dw[16];
} __packed;
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
struct amap_pdu_base {
u8 opcode[6];
u8 i_bit; /* immediate bit */
u8 x_bit; /* reserved, always 0 */
u8 reserved1[24]; /* opcode-specific fields */
u8 ahs_length[8]; /* length units is 4 byte words */
u8 data_len_hi[8];
u8 data_len_lo[16]; /* DatasegmentLength */
u8 lun[64]; /* lun or opcode-specific fields */
u8 itt[32]; /* initiator task tag */
u8 reserved4[224];
};
struct iscsi_target_context_update_wrb {
u32 dw[16];
} __packed;
/**
* Pseudo amap definition in which each bit of the actual structure is defined
* as a byte: used to calculate offset/shift/mask of each field
*/
#define BE_TGT_CTX_UPDT_CMD 0x07
struct amap_iscsi_target_context_update_wrb {
u8 lun[14]; /* DWORD 0 */
u8 lt; /* DWORD 0 */
u8 invld; /* DWORD 0 */
u8 wrb_idx[8]; /* DWORD 0 */
u8 dsp; /* DWORD 0 */
u8 dmsg; /* DWORD 0 */
u8 undr_run; /* DWORD 0 */
u8 over_run; /* DWORD 0 */
u8 type[4]; /* DWORD 0 */
u8 ptr2nextwrb[8]; /* DWORD 1 */
u8 max_burst_length[19]; /* DWORD 1 */
u8 rsvd0[5]; /* DWORD 1 */
u8 rsvd1[15]; /* DWORD 2 */
u8 max_send_data_segment_length[17]; /* DWORD 2 */
u8 first_burst_length[14]; /* DWORD 3 */
u8 rsvd2[2]; /* DWORD 3 */
u8 tx_wrbindex_drv_msg[8]; /* DWORD 3 */
u8 rsvd3[5]; /* DWORD 3 */
u8 session_state[3]; /* DWORD 3 */
u8 rsvd4[16]; /* DWORD 4 */
u8 tx_jumbo; /* DWORD 4 */
u8 hde; /* DWORD 4 */
u8 dde; /* DWORD 4 */
u8 erl[2]; /* DWORD 4 */
u8 domain_id[5]; /* DWORD 4 */
u8 mode; /* DWORD 4 */
u8 imd; /* DWORD 4 */
u8 ir2t; /* DWORD 4 */
u8 notpredblq[2]; /* DWORD 4 */
u8 compltonack; /* DWORD 4 */
u8 stat_sn[32]; /* DWORD 5 */
u8 pad_buffer_addr_hi[32]; /* DWORD 6 */
u8 pad_buffer_addr_lo[32]; /* DWORD 7 */
u8 pad_addr_hi[32]; /* DWORD 8 */
u8 pad_addr_lo[32]; /* DWORD 9 */
u8 rsvd5[32]; /* DWORD 10 */
u8 rsvd6[32]; /* DWORD 11 */
u8 rsvd7[32]; /* DWORD 12 */
u8 rsvd8[32]; /* DWORD 13 */
u8 rsvd9[32]; /* DWORD 14 */
u8 rsvd10[32]; /* DWORD 15 */
} __packed;
#define BEISCSI_MAX_RECV_DATASEG_LEN (64 * 1024)
#define BEISCSI_MAX_CXNS 1
struct amap_iscsi_target_context_update_wrb_v2 {
u8 max_burst_length[24]; /* DWORD 0 */
u8 rsvd0[3]; /* DWORD 0 */
u8 type[5]; /* DWORD 0 */
u8 ptr2nextwrb[8]; /* DWORD 1 */
u8 wrb_idx[8]; /* DWORD 1 */
u8 rsvd1[16]; /* DWORD 1 */
u8 max_send_data_segment_length[24]; /* DWORD 2 */
u8 rsvd2[8]; /* DWORD 2 */
u8 first_burst_length[24]; /* DWORD 3 */
u8 rsvd3[8]; /* DOWRD 3 */
u8 max_r2t[16]; /* DWORD 4 */
u8 rsvd4; /* DWORD 4 */
u8 hde; /* DWORD 4 */
u8 dde; /* DWORD 4 */
u8 erl[2]; /* DWORD 4 */
u8 rsvd5[6]; /* DWORD 4 */
u8 imd; /* DWORD 4 */
u8 ir2t; /* DWORD 4 */
u8 rsvd6[3]; /* DWORD 4 */
u8 stat_sn[32]; /* DWORD 5 */
u8 rsvd7[32]; /* DWORD 6 */
u8 rsvd8[32]; /* DWORD 7 */
u8 max_recv_dataseg_len[24]; /* DWORD 8 */
u8 rsvd9[8]; /* DWORD 8 */
u8 rsvd10[32]; /* DWORD 9 */
u8 rsvd11[32]; /* DWORD 10 */
u8 max_cxns[16]; /* DWORD 11 */
u8 rsvd12[11]; /* DWORD 11*/
u8 invld; /* DWORD 11 */
u8 rsvd13;/* DWORD 11*/
u8 dmsg; /* DWORD 11 */
u8 data_seq_inorder; /* DWORD 11 */
u8 pdu_seq_inorder; /* DWORD 11 */
u8 rsvd14[32]; /*DWORD 12 */
u8 rsvd15[32]; /* DWORD 13 */
u8 rsvd16[32]; /* DWORD 14 */
u8 rsvd17[32]; /* DWORD 15 */
} __packed;
struct be_ring {
u32 pages; /* queue size in pages */
u32 id; /* queue id assigned by beklib */
u32 num; /* number of elements in queue */
u32 cidx; /* consumer index */
u32 pidx; /* producer index -- not used by most rings */
u32 item_size; /* size in bytes of one object */
u8 ulp_num; /* ULP to which CID binded */
u16 register_set;
u16 doorbell_format;
u32 doorbell_offset;
void *va; /* The virtual address of the ring. This
* should be last to allow 32 & 64 bit debugger
* extensions to work.
*/
};
struct hwi_controller {
struct list_head io_sgl_list;
struct list_head eh_sgl_list;
struct sgl_handle *psgl_handle_base;
struct hwi_wrb_context *wrb_context;
struct be_ring default_pdu_hdr[BEISCSI_ULP_COUNT];
struct be_ring default_pdu_data[BEISCSI_ULP_COUNT];
struct hwi_context_memory *phwi_ctxt;
};
enum hwh_type_enum {
HWH_TYPE_IO = 1,
HWH_TYPE_LOGOUT = 2,
HWH_TYPE_TMF = 3,
HWH_TYPE_NOP = 4,
HWH_TYPE_IO_RD = 5,
HWH_TYPE_LOGIN = 11,
HWH_TYPE_INVALID = 0xFFFFFFFF
};
struct wrb_handle {
unsigned short wrb_index;
struct iscsi_task *pio_handle;
struct iscsi_wrb *pwrb;
};
struct hwi_context_memory {
/* Adaptive interrupt coalescing (AIC) info */
u16 min_eqd; /* in usecs */
u16 max_eqd; /* in usecs */
u16 cur_eqd; /* in usecs */
struct be_eq_obj be_eq[MAX_CPUS];
struct be_queue_info be_cq[MAX_CPUS - 1];
struct be_queue_info *be_wrbq;
/**
* Create array of ULP number for below entries as DEFQ
* will be created for both ULP if iSCSI Protocol is
* loaded on both ULP.
*/
struct be_queue_info be_def_hdrq[BEISCSI_ULP_COUNT];
struct be_queue_info be_def_dataq[BEISCSI_ULP_COUNT];
struct hd_async_context *pasync_ctx[BEISCSI_ULP_COUNT];
};
void beiscsi_start_boot_work(struct beiscsi_hba *phba, unsigned int s_handle);
/* Logging related definitions */
#define BEISCSI_LOG_INIT 0x0001 /* Initialization events */
#define BEISCSI_LOG_MBOX 0x0002 /* Mailbox Events */
#define BEISCSI_LOG_MISC 0x0004 /* Miscllaneous Events */
#define BEISCSI_LOG_EH 0x0008 /* Error Handler */
#define BEISCSI_LOG_IO 0x0010 /* IO Code Path */
#define BEISCSI_LOG_CONFIG 0x0020 /* CONFIG Code Path */
#define BEISCSI_LOG_ISCSI 0x0040 /* SCSI/iSCSI Protocol related Logs */
#define __beiscsi_log(phba, level, fmt, arg...) \
shost_printk(level, phba->shost, fmt, __LINE__, ##arg)
#define beiscsi_log(phba, level, mask, fmt, arg...) \
do { \
uint32_t log_value = phba->attr_log_enable; \
if (((mask) & log_value) || (level[1] <= '3')) \
__beiscsi_log(phba, level, fmt, ##arg); \
} while (0);
#endif
| {
"pile_set_name": "Github"
} |
var breakpoints = require('./mediaQuery');
var stylus = require('stylus');
var nodes = stylus.nodes;
module.exports = function() {
return function(style) {
for (var key in breakpoints) {
style.define(key, (function(key) {
return function() {
return new nodes.Unit(parseInt(breakpoints[key], 10), 'px')
}
})(key));
}
};
};
| {
"pile_set_name": "Github"
} |
/* Bad example */
.t { ... }
.red { ... }
.header { ... }
/* Good example */
.tweet { ... }
.important { ... }
.tweet-header { ... }
| {
"pile_set_name": "Github"
} |
<?php
/**
* Smarty Internal Plugin Compile Object Funtion
*
* Compiles code for registered objects as function
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Object Function Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Private_Object_Function extends Smarty_Internal_CompileBase {
/**
* Attribute definition: Overwrites base class.
*
* @var array
* @see Smarty_Internal_CompileBase
*/
public $optional_attributes = array('_any');
/**
* Compiles code for the execution of function plugin
*
* @param array $args array with attributes from parser
* @param object $compiler compiler object
* @param array $parameter array with compilation parameter
* @param string $tag name of function
* @param string $method name of method to call
* @return string compiled code
*/
public function compile($args, $compiler, $parameter, $tag, $method)
{
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);
if ($_attr['nocache'] === true) {
$compiler->tag_nocache = true;
}
unset($_attr['nocache']);
$_assign = null;
if (isset($_attr['assign'])) {
$_assign = $_attr['assign'];
unset($_attr['assign']);
}
// convert attributes into parameter array string
if ($compiler->smarty->registered_objects[$tag][2]) {
$_paramsArray = array();
foreach ($_attr as $_key => $_value) {
if (is_int($_key)) {
$_paramsArray[] = "$_key=>$_value";
} else {
$_paramsArray[] = "'$_key'=>$_value";
}
}
$_params = 'array(' . implode(",", $_paramsArray) . ')';
$return = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}({$_params},\$_smarty_tpl)";
} else {
$_params = implode(",", $_attr);
$return = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}({$_params})";
}
if (empty($_assign)) {
// This tag does create output
$compiler->has_output = true;
$output = "<?php echo {$return};?>\n";
} else {
$output = "<?php \$_smarty_tpl->assign({$_assign},{$return});?>\n";
}
return $output;
}
}
?> | {
"pile_set_name": "Github"
} |
//jQuery.Class
// This is a modified version of John Resig's class
// http://ejohn.org/blog/simple-javascript-inheritance/
// It provides class level inheritance and callbacks.
//!steal-clean
steal("jquery","jquery/lang/string",function( $ ) {
// =============== HELPERS =================
// if we are initializing a new class
var initializing = false,
makeArray = $.makeArray,
isFunction = $.isFunction,
isArray = $.isArray,
extend = $.extend,
getObject = $.String.getObject,
concatArgs = function(arr, args){
return arr.concat(makeArray(args));
},
// tests if we can get super in .toString()
fnTest = /xyz/.test(function() {
xyz;
}) ? /\b_super\b/ : /.*/,
// overwrites an object with methods, sets up _super
// newProps - new properties
// oldProps - where the old properties might be
// addTo - what we are adding to
inheritProps = function( newProps, oldProps, addTo ) {
addTo = addTo || newProps
for ( var name in newProps ) {
// Check if we're overwriting an existing function
addTo[name] = isFunction(newProps[name]) &&
isFunction(oldProps[name]) &&
fnTest.test(newProps[name]) ? (function( name, fn ) {
return function() {
var tmp = this._super,
ret;
// Add a new ._super() method that is the same method
// but on the super-class
this._super = oldProps[name];
// The method only need to be bound temporarily, so we
// remove it when we're done executing
ret = fn.apply(this, arguments);
this._super = tmp;
return ret;
};
})(name, newProps[name]) : newProps[name];
}
},
STR_PROTOTYPE = 'prototype'
/**
* @class jQuery.Class
* @plugin jquery/class
* @parent jquerymx
* @download dist/jquery/jquery.class.js
* @test jquery/class/qunit.html
* @description Easy inheritance in JavaScript.
*
* Class provides simulated inheritance in JavaScript. Use Class to bridge the gap between
* jQuery's functional programming style and Object Oriented Programming. It
* is based off John Resig's [http://ejohn.org/blog/simple-javascript-inheritance/|Simple Class]
* Inheritance library. Besides prototypal inheritance, it includes a few important features:
*
* - Static inheritance
* - Introspection
* - Namespaces
* - Setup and initialization methods
* - Easy callback function creation
*
*
* The [mvc.class Get Started with jQueryMX] has a good walkthrough of $.Class.
*
* ## Static v. Prototype
*
* Before learning about Class, it's important to
* understand the difference between
* a class's __static__ and __prototype__ properties.
*
* //STATIC
* MyClass.staticProperty //shared property
*
* //PROTOTYPE
* myclass = new MyClass()
* myclass.prototypeMethod() //instance method
*
* A static (or class) property is on the Class constructor
* function itself
* and can be thought of being shared by all instances of the
* Class. Prototype propertes are available only on instances of the Class.
*
* ## A Basic Class
*
* The following creates a Monster class with a
* name (for introspection), static, and prototype members.
* Every time a monster instance is created, the static
* count is incremented.
*
* @codestart
* $.Class('Monster',
* /* @static *|
* {
* count: 0
* },
* /* @prototype *|
* {
* init: function( name ) {
*
* // saves name on the monster instance
* this.name = name;
*
* // sets the health
* this.health = 10;
*
* // increments count
* this.constructor.count++;
* },
* eat: function( smallChildren ){
* this.health += smallChildren;
* },
* fight: function() {
* this.health -= 2;
* }
* });
*
* hydra = new Monster('hydra');
*
* dragon = new Monster('dragon');
*
* hydra.name // -> hydra
* Monster.count // -> 2
* Monster.shortName // -> 'Monster'
*
* hydra.eat(2); // health = 12
*
* dragon.fight(); // health = 8
*
* @codeend
*
*
* Notice that the prototype <b>init</b> function is called when a new instance of Monster is created.
*
*
* ## Inheritance
*
* When a class is extended, all static and prototype properties are available on the new class.
* If you overwrite a function, you can call the base class's function by calling
* <code>this._super</code>. Lets create a SeaMonster class. SeaMonsters are less
* efficient at eating small children, but more powerful fighters.
*
*
* Monster("SeaMonster",{
* eat: function( smallChildren ) {
* this._super(smallChildren / 2);
* },
* fight: function() {
* this.health -= 1;
* }
* });
*
* lockNess = new SeaMonster('Lock Ness');
* lockNess.eat(4); //health = 12
* lockNess.fight(); //health = 11
*
* ### Static property inheritance
*
* You can also inherit static properties in the same way:
*
* $.Class("First",
* {
* staticMethod: function() { return 1;}
* },{})
*
* First("Second",{
* staticMethod: function() { return this._super()+1;}
* },{})
*
* Second.staticMethod() // -> 2
*
* ## Namespaces
*
* Namespaces are a good idea! We encourage you to namespace all of your code.
* It makes it possible to drop your code into another app without problems.
* Making a namespaced class is easy:
*
*
* $.Class("MyNamespace.MyClass",{},{});
*
* new MyNamespace.MyClass()
*
*
* <h2 id='introspection'>Introspection</h2>
*
* Often, it's nice to create classes whose name helps determine functionality. Ruby on
* Rails's [http://api.rubyonrails.org/classes/ActiveRecord/Base.html|ActiveRecord] ORM class
* is a great example of this. Unfortunately, JavaScript doesn't have a way of determining
* an object's name, so the developer must provide a name. Class fixes this by taking a String name for the class.
*
* $.Class("MyOrg.MyClass",{},{})
* MyOrg.MyClass.shortName //-> 'MyClass'
* MyOrg.MyClass.fullName //-> 'MyOrg.MyClass'
*
* The fullName (with namespaces) and the shortName (without namespaces) are added to the Class's
* static properties.
*
*
* ## Setup and initialization methods
*
* <p>
* Class provides static and prototype initialization functions.
* These come in two flavors - setup and init.
* Setup is called before init and
* can be used to 'normalize' init's arguments.
* </p>
* <div class='whisper'>PRO TIP: Typically, you don't need setup methods in your classes. Use Init instead.
* Reserve setup methods for when you need to do complex pre-processing of your class before init is called.
*
* </div>
* @codestart
* $.Class("MyClass",
* {
* setup: function() {} //static setup
* init: function() {} //static constructor
* },
* {
* setup: function() {} //prototype setup
* init: function() {} //prototype constructor
* })
* @codeend
*
* ### Setup
*
* Setup functions are called before init functions. Static setup functions are passed
* the base class followed by arguments passed to the extend function.
* Prototype static functions are passed the Class constructor
* function arguments.
*
* If a setup function returns an array, that array will be used as the arguments
* for the following init method. This provides setup functions the ability to normalize
* arguments passed to the init constructors. They are also excellent places
* to put setup code you want to almost always run.
*
*
* The following is similar to how [jQuery.Controller.prototype.setup]
* makes sure init is always called with a jQuery element and merged options
* even if it is passed a raw
* HTMLElement and no second parameter.
*
* $.Class("jQuery.Controller",{
* ...
* },{
* setup: function( el, options ) {
* ...
* return [$(el),
* $.extend(true,
* this.Class.defaults,
* options || {} ) ]
* }
* })
*
* Typically, you won't need to make or overwrite setup functions.
*
* ### Init
*
* Init functions are called after setup functions.
* Typically, they receive the same arguments
* as their preceding setup function. The Foo class's <code>init</code> method
* gets called in the following example:
*
* $.Class("Foo", {
* init: function( arg1, arg2, arg3 ) {
* this.sum = arg1+arg2+arg3;
* }
* })
* var foo = new Foo(1,2,3);
* foo.sum //-> 6
*
* ## Proxies
*
* Similar to jQuery's proxy method, Class provides a
* [jQuery.Class.static.proxy proxy]
* function that returns a callback to a method that will always
* have
* <code>this</code> set to the class or instance of the class.
*
*
* The following example uses this.proxy to make sure
* <code>this.name</code> is available in <code>show</code>.
*
* $.Class("Todo",{
* init: function( name ) {
* this.name = name
* },
* get: function() {
* $.get("/stuff",this.proxy('show'))
* },
* show: function( txt ) {
* alert(this.name+txt)
* }
* })
* new Todo("Trash").get()
*
* Callback is available as a static and prototype method.
*
* ## Demo
*
* @demo jquery/class/class.html
*
*
* @constructor
*
* To create a Class call:
*
* $.Class( [NAME , STATIC,] PROTOTYPE ) -> Class
*
* <div class='params'>
* <div class='param'><label>NAME</label><code>{optional:String}</code>
* <p>If provided, this sets the shortName and fullName of the
* class and adds it and any necessary namespaces to the
* window object.</p>
* </div>
* <div class='param'><label>STATIC</label><code>{optional:Object}</code>
* <p>If provided, this creates static properties and methods
* on the class.</p>
* </div>
* <div class='param'><label>PROTOTYPE</label><code>{Object}</code>
* <p>Creates prototype methods on the class.</p>
* </div>
* </div>
*
* When a Class is created, the static [jQuery.Class.static.setup setup]
* and [jQuery.Class.static.init init] methods are called.
*
* To create an instance of a Class, call:
*
* new Class([args ... ]) -> instance
*
* The created instance will have all the
* prototype properties and methods defined by the PROTOTYPE object.
*
* When an instance is created, the prototype [jQuery.Class.prototype.setup setup]
* and [jQuery.Class.prototype.init init] methods
* are called.
*/
clss = $.Class = function() {
if (arguments.length) {
return clss.extend.apply(clss, arguments);
}
};
/* @Static*/
extend(clss, {
/**
* @function proxy
* Returns a callback function for a function on this Class.
* Proxy ensures that 'this' is set appropriately.
* @codestart
* $.Class("MyClass",{
* getData: function() {
* this.showing = null;
* $.get("data.json",this.proxy('gotData'),'json')
* },
* gotData: function( data ) {
* this.showing = data;
* }
* },{});
* MyClass.showData();
* @codeend
* <h2>Currying Arguments</h2>
* Additional arguments to proxy will fill in arguments on the returning function.
* @codestart
* $.Class("MyClass",{
* getData: function( <b>callback</b> ) {
* $.get("data.json",this.proxy('process',<b>callback</b>),'json');
* },
* process: function( <b>callback</b>, jsonData ) { //callback is added as first argument
* jsonData.processed = true;
* callback(jsonData);
* }
* },{});
* MyClass.getData(showDataFunc)
* @codeend
* <h2>Nesting Functions</h2>
* Proxy can take an array of functions to call as
* the first argument. When the returned callback function
* is called each function in the array is passed the return value of the prior function. This is often used
* to eliminate currying initial arguments.
* @codestart
* $.Class("MyClass",{
* getData: function( callback ) {
* //calls process, then callback with value from process
* $.get("data.json",this.proxy(['process2',callback]),'json')
* },
* process2: function( type,jsonData ) {
* jsonData.processed = true;
* return [jsonData];
* }
* },{});
* MyClass.getData(showDataFunc);
* @codeend
* @param {String|Array} fname If a string, it represents the function to be called.
* If it is an array, it will call each function in order and pass the return value of the prior function to the
* next function.
* @return {Function} the callback function.
*/
proxy: function( funcs ) {
//args that should be curried
var args = makeArray(arguments),
self;
// get the functions to callback
funcs = args.shift();
// if there is only one function, make funcs into an array
if (!isArray(funcs) ) {
funcs = [funcs];
}
// keep a reference to us in self
self = this;
//!steal-remove-start
for( var i =0; i< funcs.length;i++ ) {
if(typeof funcs[i] == "string" && !isFunction(this[funcs[i]])){
throw ("class.js "+( this.fullName || this.Class.fullName)+" does not have a "+funcs[i]+"method!");
}
}
//!steal-remove-end
return function class_cb() {
// add the arguments after the curried args
var cur = concatArgs(args, arguments),
isString,
length = funcs.length,
f = 0,
func;
// go through each function to call back
for (; f < length; f++ ) {
func = funcs[f];
if (!func ) {
continue;
}
// set called with the name of the function on self (this is how this.view works)
isString = typeof func == "string";
if ( isString && self._set_called ) {
self.called = func;
}
// call the function
cur = (isString ? self[func] : func).apply(self, cur || []);
// pass the result to the next function (if there is a next function)
if ( f < length - 1 ) {
cur = !isArray(cur) || cur._use_call ? [cur] : cur
}
}
return cur;
}
},
/**
* @function newInstance
* Creates a new instance of the class. This method is useful for creating new instances
* with arbitrary parameters.
* <h3>Example</h3>
* @codestart
* $.Class("MyClass",{},{})
* var mc = MyClass.newInstance.apply(null, new Array(parseInt(Math.random()*10,10))
* @codeend
* @return {class} instance of the class
*/
newInstance: function() {
// get a raw instance objet (init is not called)
var inst = this.rawInstance(),
args;
// call setup if there is a setup
if ( inst.setup ) {
args = inst.setup.apply(inst, arguments);
}
// call init if there is an init, if setup returned args, use those as the arguments
if ( inst.init ) {
inst.init.apply(inst, isArray(args) ? args : arguments);
}
return inst;
},
/**
* Setup gets called on the inherting class with the base class followed by the
* inheriting class's raw properties.
*
* Setup will deeply extend a static defaults property on the base class with
* properties on the base class. For example:
*
* $.Class("MyBase",{
* defaults : {
* foo: 'bar'
* }
* },{})
*
* MyBase("Inheriting",{
* defaults : {
* newProp : 'newVal'
* }
* },{}
*
* Inheriting.defaults -> {foo: 'bar', 'newProp': 'newVal'}
*
* @param {Object} baseClass the base class that is being inherited from
* @param {String} fullName the name of the new class
* @param {Object} staticProps the static properties of the new class
* @param {Object} protoProps the prototype properties of the new class
*/
setup: function( baseClass, fullName ) {
// set defaults as the merger of the parent defaults and this object's defaults
this.defaults = extend(true, {}, baseClass.defaults, this.defaults);
return arguments;
},
rawInstance: function() {
// prevent running init
initializing = true;
var inst = new this();
initializing = false;
// allow running init
return inst;
},
/**
* Extends a class with new static and prototype functions. There are a variety of ways
* to use extend:
*
* // with className, static and prototype functions
* $.Class('Task',{ STATIC },{ PROTOTYPE })
* // with just classname and prototype functions
* $.Class('Task',{ PROTOTYPE })
* // with just a className
* $.Class('Task')
*
* You no longer have to use <code>.extend</code>. Instead, you can pass those options directly to
* $.Class (and any inheriting classes):
*
* // with className, static and prototype functions
* $.Class('Task',{ STATIC },{ PROTOTYPE })
* // with just classname and prototype functions
* $.Class('Task',{ PROTOTYPE })
* // with just a className
* $.Class('Task')
*
* @param {String} [fullName] the classes name (used for classes w/ introspection)
* @param {Object} [klass] the new classes static/class functions
* @param {Object} [proto] the new classes prototype functions
*
* @return {jQuery.Class} returns the new class
*/
extend: function( fullName, klass, proto ) {
// figure out what was passed and normalize it
if ( typeof fullName != 'string' ) {
proto = klass;
klass = fullName;
fullName = null;
}
if (!proto ) {
proto = klass;
klass = null;
}
proto = proto || {};
var _super_class = this,
_super = this[STR_PROTOTYPE],
name, shortName, namespace, prototype;
// Instantiate a base class (but only create the instance,
// don't run the init constructor)
initializing = true;
prototype = new this();
initializing = false;
// Copy the properties over onto the new prototype
inheritProps(proto, _super, prototype);
// The dummy class constructor
function Class() {
// All construction is actually done in the init method
if ( initializing ) return;
// we are being called w/o new, we are extending
if ( this.constructor !== Class && arguments.length ) {
return arguments.callee.extend.apply(arguments.callee, arguments)
} else { //we are being called w/ new
return this.Class.newInstance.apply(this.Class, arguments)
}
}
// Copy old stuff onto class
for ( name in this ) {
if ( this.hasOwnProperty(name) ) {
Class[name] = this[name];
}
}
// copy new static props on class
inheritProps(klass, this, Class);
// do namespace stuff
if ( fullName ) {
var parts = fullName.split(/\./),
shortName = parts.pop(),
current = getObject(parts.join('.'), window, true),
namespace = current;
//!steal-remove-start
if (!Class.nameOk ) {
//steal.dev.isHappyName(fullName)
}
if(current[shortName]){
steal.dev.warn("class.js There's already something called "+fullName)
}
//!steal-remove-end
current[shortName] = Class;
}
// set things that can't be overwritten
extend(Class, {
prototype: prototype,
/**
* @attribute namespace
* The namespaces object
*
* $.Class("MyOrg.MyClass",{},{})
* MyOrg.MyClass.namespace //-> MyOrg
*
*/
namespace: namespace,
/**
* @attribute shortName
* The name of the class without its namespace, provided for introspection purposes.
*
* $.Class("MyOrg.MyClass",{},{})
* MyOrg.MyClass.shortName //-> 'MyClass'
* MyOrg.MyClass.fullName //-> 'MyOrg.MyClass'
*
*/
shortName: shortName,
constructor: Class,
/**
* @attribute fullName
* The full name of the class, including namespace, provided for introspection purposes.
*
* $.Class("MyOrg.MyClass",{},{})
* MyOrg.MyClass.shortName //-> 'MyClass'
* MyOrg.MyClass.fullName //-> 'MyOrg.MyClass'
*
*/
fullName: fullName
});
//make sure our prototype looks nice
Class[STR_PROTOTYPE].Class = Class[STR_PROTOTYPE].constructor = Class;
// call the class setup
var args = Class.setup.apply(Class, concatArgs([_super_class],arguments));
// call the class init
if ( Class.init ) {
Class.init.apply(Class, args || concatArgs([_super_class],arguments));
}
/* @Prototype*/
return Class;
/**
* @function setup
* If a setup method is provided, it is called when a new
* instances is created. It gets passed the same arguments that
* were given to the Class constructor function (<code> new Class( arguments ... )</code>).
*
* $.Class("MyClass",
* {
* setup: function( val ) {
* this.val = val;
* }
* })
* var mc = new MyClass("Check Check")
* mc.val //-> 'Check Check'
*
* Setup is called before [jQuery.Class.prototype.init init]. If setup
* return an array, those arguments will be used for init.
*
* $.Class("jQuery.Controller",{
* setup : function(htmlElement, rawOptions){
* return [$(htmlElement),
* $.extend({}, this.Class.defaults, rawOptions )]
* }
* })
*
* <div class='whisper'>PRO TIP:
* Setup functions are used to normalize constructor arguments and provide a place for
* setup code that extending classes don't have to remember to call _super to
* run.
* </div>
*
* Setup is not defined on $.Class itself, so calling super in inherting classes
* will break. Don't do the following:
*
* $.Class("Thing",{
* setup : function(){
* this._super(); // breaks!
* }
* })
*
* @return {Array|undefined} If an array is return, [jQuery.Class.prototype.init] is
* called with those arguments; otherwise, the original arguments are used.
*/
//break up
/**
* @function init
* If an <code>init</code> method is provided, it gets called when a new instance
* is created. Init gets called after [jQuery.Class.prototype.setup setup], typically with the
* same arguments passed to the Class
* constructor: (<code> new Class( arguments ... )</code>).
*
* $.Class("MyClass",
* {
* init: function( val ) {
* this.val = val;
* }
* })
* var mc = new MyClass(1)
* mc.val //-> 1
*
* [jQuery.Class.prototype.setup Setup] is able to modify the arguments passed to init. Read
* about it there.
*
*/
//Breaks up code
/**
* @attribute constructor
*
* A reference to the Class (or constructor function). This allows you to access
* a class's static properties from an instance.
*
* ### Quick Example
*
* // a class with a static property
* $.Class("MyClass", {staticProperty : true}, {});
*
* // a new instance of myClass
* var mc1 = new MyClass();
*
* // read the static property from the instance:
* mc1.constructor.staticProperty //-> true
*
* Getting static properties with the constructor property, like
* [jQuery.Class.static.fullName fullName], is very common.
*
*/
}
})
clss.callback = clss[STR_PROTOTYPE].callback = clss[STR_PROTOTYPE].
/**
* @function proxy
* Returns a method that sets 'this' to the current instance. This does the same thing as
* and is described better in [jQuery.Class.static.proxy].
* The only difference is this proxy works
* on a instance instead of a class.
* @param {String|Array} fname If a string, it represents the function to be called.
* If it is an array, it will call each function in order and pass the return value of the prior function to the
* next function.
* @return {Function} the callback function
*/
proxy = clss.proxy;
})();
| {
"pile_set_name": "Github"
} |
// Copyright (c) 2013, Vastech SA (PTY) LTD. All rights reserved.
// http://github.com/gogo/protobuf/gogoproto
//
// Go support for Protocol Buffers - Google's data interchange format
//
// Copyright 2014 The Go Authors. All rights reserved.
// https://github.com/golang/protobuf
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
syntax = "proto2";
package proto2.maps;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.goproto_enum_prefix_all) = false;
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true;
option (gogoproto.stringer_all) = true;
option (gogoproto.gostring_all) = true;
option (gogoproto.face_all) = true;
option (gogoproto.description_all) = true;
option (gogoproto.testgen_all) = true;
option (gogoproto.populate_all) = true;
option (gogoproto.benchgen_all) = true;
option (gogoproto.unmarshaler_all) = false;
option (gogoproto.marshaler_all) = false;
option (gogoproto.sizer_all) = true;
option (gogoproto.goproto_enum_stringer_all) = false;
option (gogoproto.enum_stringer_all) = true;
option (gogoproto.unsafe_marshaler_all) = false;
option (gogoproto.unsafe_unmarshaler_all) = false;
message FloatingPoint {
optional double f = 1;
}
enum MapEnum {
MA = 0;
MB = 1;
MC = 2;
}
message AllMaps {
map<string, double> StringToDoubleMap = 1;
map<string, float> StringToFloatMap = 2;
map<int32, int32> Int32Map = 3;
map<int64, int64> Int64Map = 4;
map<uint32, uint32> Uint32Map = 5;
map<uint64, uint64> Uint64Map = 6;
map<sint32, sint32> Sint32Map = 7;
map<sint64, sint64> Sint64Map = 8;
map<fixed32, fixed32> Fixed32Map = 9;
map<sfixed32, sfixed32> Sfixed32Map = 10;
map<fixed64, fixed64> Fixed64Map = 11;
map<sfixed64, sfixed64> Sfixed64Map = 12;
map<bool, bool> BoolMap = 13;
map<string, string> StringMap = 14;
map<string, bytes> StringToBytesMap = 15;
map<string, MapEnum> StringToEnumMap = 16;
map<string, FloatingPoint> StringToMsgMap = 17;
}
message AllMapsOrdered {
option (gogoproto.stable_marshaler) = true;
map<string, double> StringToDoubleMap = 1;
map<string, float> StringToFloatMap = 2;
map<int32, int32> Int32Map = 3;
map<int64, int64> Int64Map = 4;
map<uint32, uint32> Uint32Map = 5;
map<uint64, uint64> Uint64Map = 6;
map<sint32, sint32> Sint32Map = 7;
map<sint64, sint64> Sint64Map = 8;
map<fixed32, fixed32> Fixed32Map = 9;
map<sfixed32, sfixed32> Sfixed32Map = 10;
map<fixed64, fixed64> Fixed64Map = 11;
map<sfixed64, sfixed64> Sfixed64Map = 12;
map<bool, bool> BoolMap = 13;
map<string, string> StringMap = 14;
map<string, bytes> StringToBytesMap = 15;
map<string, MapEnum> StringToEnumMap = 16;
map<string, FloatingPoint> StringToMsgMap = 17;
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="_000_Search_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Search_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMSnapShotDiskOnly_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMSnapShotDiskOnly_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_add_storage_system_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_add_storage_system_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Alert2_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Alert2_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_7" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_7.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_Reboot_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_Reboot_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_10" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_10.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_0_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_0_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="edit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\edit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="desktop" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\desktop.jpg;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_Forward_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_Forward_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_8" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_8.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpinningFrame1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\SpinningFrame1.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Tick_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Tick_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tshadowdownleft" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tshadowdownleft.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_CreateVM_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_CreateVM_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_9" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_9.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpinningFrame2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\SpinningFrame2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_UserAndGroup_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_UserAndGroup_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_9_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_9_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_paused_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_paused_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMSnapshotDiskMemory_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMSnapshotDiskMemory_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_HAServer_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_HAServer_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_GetServerReport_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_GetServerReport_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="import_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\import_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PDChevronDownOver" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\PDChevronDownOver.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="vmBackgroundCurrent" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\vmBackgroundCurrent.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_BackupMetadata_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_BackupMetadata_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmin_slider_small" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmin_slider_small.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="oracle_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\oracle_16x.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_weighting_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_weighting_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PDChevronUp" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\PDChevronUp.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ScheduledVMsnapshotDiskOnly_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ScheduledVMsnapshotDiskOnly_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_075_WarningRound_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\075_WarningRound_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ToolBar_USB_Icon_ovr" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ToolBar_USB_Icon_ovr.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_HostUnpatched_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_HostUnpatched_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help_32_hover" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\help_32_hover.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="folder_separator" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\folder_separator.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="console_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\console_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_connecting_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_connecting_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_DeleteMessage_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_DeleteMessage_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ScheduledVMsnapshotDiskOnly_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ScheduledVMsnapshotDiskOnly_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_system_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_system_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_PoolNew_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_PoolNew_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Patch_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Patch_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_lun_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_lun_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_PoolConnected_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_PoolConnected_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="debian_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\debian_16x.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_5_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_5_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_112_LeftArrowLong_Blue_24x24_72" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\112_LeftArrowLong_Blue_24x24_72.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_error_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_error_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_AddApplicationServer_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_AddApplicationServer_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_4" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_4.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ubuntu_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\ubuntu_16x.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_HelpIM_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_HelpIM_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\Branding\Images\Logo.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ServerMaintenance_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ServerMaintenance_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ServerInProgress_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ServerInProgress_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_connected_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_connected_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_5" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_5.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_3_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_3_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PDChevronLeft" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\PDChevronLeft.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_HighlightVM_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_HighlightVM_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Email_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Email_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="attach_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\attach_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_LifeCycle_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_LifeCycle_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_Back_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_Back_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Fields_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Fields_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Resumed_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Resumed_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_User_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_User_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VirtualStorage_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VirtualStorage_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="folder_grey" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\folder_grey.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_ForceShutDown_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_ForceShutDown_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Failback_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Failback_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PDChevronDown" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\PDChevronDown.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_6" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_6.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="gripper" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\gripper.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ServerWlb_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ServerWlb_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_ForceReboot_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_ForceReboot_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMSnapShotDiskOnly_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMSnapShotDiskOnly_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_TemplateDisabled_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_TemplateDisabled_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmax_slider_light" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmax_slider_light.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_pool_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_pool_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_AddApplicationServer_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_AddApplicationServer_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ScheduledVMSnapshotDiskMemory_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ScheduledVMSnapshotDiskMemory_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_DisasterRecovery_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_DisasterRecovery_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="contracted_triangle" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\contracted_triangle.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_CreateVM_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_CreateVM_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_002_Configure_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\002_Configure_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_HelpIM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_HelpIM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_add_storage_system_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_add_storage_system_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ServerErrorFile_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ServerErrorFile_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_PerformanceGraph_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_PerformanceGraph_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tools_outofdate_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tools_outofdate_16x.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_BackupMetadata_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_BackupMetadata_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_CreateVirtualStorage_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_CreateVirtualStorage_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMStartingDisabled_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMStartingDisabled_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_075_TickRound_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\075_TickRound_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tshadowright" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tshadowright.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMStoppedDisabled_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMStoppedDisabled_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tshadowtopright" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tshadowtopright.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="copy_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\copy_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ExportMessages_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ExportMessages_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="lifecycle_hot" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\lifecycle_hot.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tshadowdownright" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tshadowdownright.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Paused_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Paused_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_4_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_4_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_PoolNew_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_PoolNew_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tools_uptodate_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tools_uptodate_16x.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_UserTemplate_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_UserTemplate_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help_24_hover" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\help_24_hover.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_NewStorage_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_NewStorage_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_0" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_0.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="change_password_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\change_password_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmax_slider" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmax_slider.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="licensekey_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\licensekey_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_GetServerReport_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_GetServerReport_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_disconnected_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_disconnected_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpinningFrame6" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\SpinningFrame6.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmax_slider_noedit_small" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmax_slider_noedit_small.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="about_box_graphic_423x79" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\Branding\Images\about_box_graphic_423x79.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_ShutDown_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_ShutDown_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_CreateVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_CreateVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Tag_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Tag_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tree_minus" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tree_minus.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\help_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_add_storage_system_small_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_add_storage_system_small_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_ForceShutDown_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_ForceShutDown_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ascending_triangle" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\ascending_triangle.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="detach_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\detach_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Optimize_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Optimize_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="VMTemplate_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\VMTemplate_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_3.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpinningFrame7" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\SpinningFrame7.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="attach_virtualstorage_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\attach_virtualstorage_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Pool_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Pool_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Pool_h32bit_16_w_alert" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Pool_h32bit_16-w-alert.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Server_h32bit_16_w_alert" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Server_h32bit_16-w-alert.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_StorageDisabled_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_StorageDisabled_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_defaultSpyglass_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_defaultSpyglass_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="backup_restore_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\backup_restore_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="windows_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\windows_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_NewStorage_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_NewStorage_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="suse_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\suse_16x.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="alerts_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\Branding\Images\alerts_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_WarningAlert_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_WarningAlert_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="XS" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\Branding\Images\XS.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmin_slider_noedit_small" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmin_slider_noedit_small.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_8_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_8_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PDChevronRight" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\PDChevronRight.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="vmBackground" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\vmBackground.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_StorageBroken_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_StorageBroken_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="upsell_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\Branding\Images\upsell_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Folder_open_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Folder_open_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMPausedDisabled_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMPausedDisabled_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmin_slider_dark" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmin_slider_dark.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_6_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_6_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_WindowView_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_WindowView_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_ShutDown_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_ShutDown_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ViewModeList_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ViewModeList_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="minus" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\minus.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_NewVirtualAppliance_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_NewVirtualAppliance_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="graphline" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\graphline.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ImportVirtualAppliance_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ImportVirtualAppliance_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Storage_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Storage_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_Reboot_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_Reboot_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_Tools_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_Tools_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_Pin_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_Pin_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VM_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VM_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_SliderTexture" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_SliderTexture.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="redhat_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\redhat_16x.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_GetMemoryInfo_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_GetMemoryInfo_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_DeleteVirtualAppliance_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_DeleteVirtualAppliance_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ToolBar_Pref_Icon_up" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ToolBar_Pref_Icon_up.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ToolBar_USB_Icon_up" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ToolBar_USB_Icon_up.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Resumed_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Resumed_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ExportVirtualAppliance_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ExportVirtualAppliance_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tools_notinstalled_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tools_notinstalled_16x.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="clonevm_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\clonevm_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="grapharea" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\grapharea.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmax_slider_dark" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmax_slider_dark.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ha_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\ha_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ServerHome_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ServerHome_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmax_slider_small" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmax_slider_small.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_luns_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_luns_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmin_slider_noedit" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmin_slider_noedit.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_TreeConnected_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_TreeConnected_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tree_plus" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tree_plus.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="centos_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\centos_16x.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_StartVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_StartVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Network_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Network_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_NewStorage_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_NewStorage_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Failover_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Failover_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sl_pools_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\sl_pools_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="WLB" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\WLB.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ExportVirtualAppliance_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ExportVirtualAppliance_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMSession_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMSession_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_PowerOn_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_PowerOn_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="paste_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\paste_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ExcludeHost_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ExcludeHost_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="expanded_triangle" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\expanded_triangle.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_1_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_1_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="DateTime16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\DateTime16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Refresh16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\Refresh16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpinningFrame4" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\SpinningFrame4.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_2_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_2_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmax_slider_noedit" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmax_slider_noedit.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_ForceReboot_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_ForceReboot_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="change_password_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\change_password_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpinningFrame5" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\SpinningFrame5.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_XenCenterAlerts_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\Branding\Images\000_XenCenterAlerts_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usagebar_1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usagebar_1.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_CPU_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_CPU_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ImportVirtualAppliance_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ImportVirtualAppliance_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="vnc_local_cursor" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\vnc_local_cursor.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_NewNetwork_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_NewNetwork_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="tshadowdown" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\tshadowdown.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMSnapshotDiskMemory_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMSnapshotDiskMemory_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_SuspendVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_SuspendVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="commands_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\commands_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_DeleteAllMessages_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_DeleteAllMessages_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AppIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\Branding\Images\AppIcon.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="log_destination_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\log_destination_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_TestFailover_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_TestFailover_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_StoppedVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_StoppedVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_RebootVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_RebootVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Abort_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Abort_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="grab" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\grab.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="virtualstorage_snapshot_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\virtualstorage_snapshot_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Info3_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Info3_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Module_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Module_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_SwitcherBackground" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_SwitcherBackground.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VirtualAppliance_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VirtualAppliance_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ScheduledVMsnapshotDiskMemory_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ScheduledVMsnapshotDiskMemory_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_001_PowerOn_h32bit_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\001_PowerOn_h32bit_24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_StorageDefault_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_StorageDefault_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="asterisk" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\asterisk.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_FilterServer_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_FilterServer_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_NewVirtualAppliance_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_NewVirtualAppliance_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_FilterDates_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_FilterDates_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ToolBar_Pref_Icon_ovr" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ToolBar_Pref_Icon_ovr.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ToolBar_USB_Icon_dis" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ToolBar_USB_Icon_dis.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="wizard_background" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\Branding\Images\wizard_background.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help_16_hover" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\help_16_hover.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="subscribe" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\subscribe.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ToolBar_Pref_Icon_dis" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ToolBar_Pref_Icon_dis.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpinningFrame0" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\SpinningFrame0.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ajax_loader" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\ajax-loader.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmin_slider_light" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmin_slider_light.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Patch_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Patch_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_7_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_7_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ImportVM_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ImportVM_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_host_10_star" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_host_10_star.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMStarting_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMStarting_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMTemplate_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMTemplate_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="descending_triangle" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\descending_triangle.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_GetMemoryInfo_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_GetMemoryInfo_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ServerDisconnected_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ServerDisconnected_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_EnablePowerControl_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_EnablePowerControl_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_VMDisabled_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_VMDisabled_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="lifecycle_pressed" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\lifecycle_pressed.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PDChevronUpOver" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\PDChevronUpOver.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_112_RightArrowLong_Blue_24x24_72" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\112_RightArrowLong_Blue_24x24_72.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="cross" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\cross.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_HighLightVM_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_HighLightVM_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="memory_dynmin_slider" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\memory_dynmin_slider.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="export_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\export_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SpinningFrame3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\SpinningFrame3.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ServerMaintenance_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ServerMaintenance_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Server_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Server_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ViewModeTree_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ViewModeTree_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_015_Download_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\015_Download_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_error_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_error_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_MigrateVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_MigrateVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_MigrateVM_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_MigrateVM_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_TCP_IPGroup_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_TCP-IPGroup_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_AddIPAddress_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_AddIPAddress_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ConfigureIPAddresses_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_ConfigureIPAddresses_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_ManagementInterface_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\Branding\Images\000_ManagementInterface_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_RemoveIPAddress_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_RemoveIPAddress_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_FilterSeverity_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_FilterSeverity_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="alert1_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\alert1_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="alert2_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\alert2_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="alert3_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\alert3_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="alert4_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\alert4_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="alert5_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\alert5_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="alert6_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\alert6_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="cancelled_action_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\cancelled_action_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="close_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\close_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="infra_view_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\infra_view_24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="more_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\more_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="notif_alerts_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\notif_alerts_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="notif_events_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\notif_events_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="notif_events_errors_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\notif_events_errors_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="notif_none_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\notif_none_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="notif_none_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\notif_none_24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="notif_updates_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\notif_updates_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="objects_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\objects_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="objects_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\objects_24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="org_view_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\org_view_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="org_view_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\org_view_24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="pool_up_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\pool_up_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="saved_searches_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\saved_searches_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="server_up_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\server_up_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="infra_view_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\infra_view_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="infra_view_16_textured" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\infra_view_16_textured.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="saved_searches_24" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\saved_searches_24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_UpgradePool_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_UpgradePool_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="objects_16_textured" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\objects_16_textured.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="coreos_globe_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\coreos-globe-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="RunningDC_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\RunningDC_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PausedDC_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\PausedDC_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="StoppedDC_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\StoppedDC_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="DC_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\DC_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="coreos_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\coreos-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="scilinux_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\scilinux_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_MigrateStoppedVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_MigrateStoppedVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_MigrateSuspendedVM_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_MigrateSuspendedVM_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="padlock" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\padlock.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="homepage_bullet" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\homepage_bullet.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_Sites_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_Sites_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_AddSite_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_AddSite_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_RemoveSite_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\000_RemoveSite_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="neokylin_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\neokylin_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="asianux_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\asianux_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="turbo_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\turbo_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="linx_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\linx_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="yinhekylin_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\yinhekylin_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="usb_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\usb_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_UserAndGroup_h32bit_16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\000_userandgroup_h32bit_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_000_User_h32bit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\000_user_h32bit_32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="xcm" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\xcm.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="xcm_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\xcm_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="queued" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\queued.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="gooroom_16x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Images\gooroom_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
| {
"pile_set_name": "Github"
} |
import weakref
from gevent.queue import Queue
class BroadcastQueue():
def __init__(self):
self._queues = []
def register(self):
q = Queue()
self._queues.append(weakref.ref(q))
return q
def broadcast(self, val):
for q in list(self._queues):
if q():
q().put(val)
else:
self._queues.remove(q)
| {
"pile_set_name": "Github"
} |
#VERSION,2.004
#######################################################################
# File Source: https://cirt.net
# (c) 2001 Chris Sullo, All Rights Reserved.
# This file may only be distributed and used with the full Nikto package.
# This file may not be used with any software product without written permission from
# Chris Sullo ([email protected])
#
# Note:
# By submitting updates to this file you are transfering any and all copyright
# interest in the data to Chris Sullo so it can modified, incorporated into this product
# relicensed or reused.
#######################################################################
# Notes:
# Variables which will be used as replacements for values in the scan_database.db and user_scan_database.db files.
# Any values to be replaced must start with the @ character, such as: @CGIDIRS.
#
# User defined variables should be set in config.txt as this file may be over-written during updates.
#######################################################################
@CGIDIRS=/cgi.cgi/ /webcgi/ /cgi-914/ /cgi-915/ /bin/ /cgi/ /mpcgi/ /cgi-bin/ /ows-bin/ /cgi-sys/ /cgi-local/ /htbin/ /cgibin/ /cgis/ /scripts/ /cgi-win/ /fcgi-bin/ /cgi-exe/ /cgi-home/ /cgi-perl/ /scgi-bin/ /cgi-bin-sdb/ /cgi-mod/
@NUKE=/ /postnuke/ /postnuke/html/ /modules/ /phpBB/ /forum/
@ADMIN=/admin/ /adm/ /administrator/
@USERS=adm bin daemon ftp guest listen lp mysql noaccess nobody nobody4 nuucp operator root smmsp smtp sshd sys test unknown uucp web www
@PASSWORDDIRS=/ /admin/ /clients/ /pass/ /password/ /passwords/ /store/ /users/ /access/ /members/ /private/ /ccbill/ /dmr/ /mastergate/ /dmr/ /epoch/ /netbilling/ /webcash/ /wwwjoin/ /etc/security/
@PASSWORDFILES=admins clients pass password passwords passwd passwd.adjunct store users .htpasswd .passwd
@PHPMYADMIN=/3rdparty/phpMyAdmin/ /phpMyAdmin/ /3rdparty/phpmyadmin/ /phpmyadmin/ /pma/
@HTTPFOUND=200 301 302 403
@FCKEDITOR=/fckeditor/ /FCKeditor/ /Script/fckeditor/ /sites/all/modules/fckeditor/fckeditor/ /modules/fckeditor/fckeditor/ /class/fckeditor/ /inc/fckeditor/ /sites/all/libraries/fckeditor/ /js/editor/fckeditor/ /includes/fckeditor/ /include/fckeditor/ /modules/fckeditor/ /plugins/fckeditor/
@CRYSTALREPORTS=/ /CrystalReports/ /crystal/ /businessobjects/ /crystal/enterprise10/ /crystal/Enterprise10/ePortfolio/en/
@OWNCLOUD=/ /cloud/ /owncloud/ /ownCloud/ /OwnCloud/
@OCFILES=data/owncloud.log data/htaccesstest.txt data/owncloud.db
@SECLORE=/ /filesecure/ /policyserver/
@SHELLSHOCK= admin.cgi administrator.cgi authLogin.cgi bb-hist.sh banner.cgi book.cgi cgiinfo.cgi cgitest.py cgi_wrapper contact.cgi count.cgi defaultwebpage.cgi download.cgi entropysearch.cgi env.cgi environment.cgi ezmlm-browse formmail.cgi FormMail-clone.cgi guestbook.cgi helpdesk.cgi index.cgi index.php index.pl info.cgi info.sh loadpage.cgi login.cgi login.php login.pl pathtest.pl php php4 php5 php-cgi php.cgi php.fcgi printenv restore_config.cgi ruby.rb search search.cgi server.php status sysinfo.pl test test-cgi test.cgi test_cgi.php test.cgi.php test_cgi.pl test-cgi.pl test.py test.sh tmUnblock.cgi uname.cgi viewcvs.cgi welcome whois.cgi
@TYPO3=/ /cms/ /site/ /typo/ /typo3/
@AXIS2=/ /axis/ /axis2/ /imcws/ /WebServiceImpl/ /dswsbobje/ /ws/
@MODIR=/ /phpmoadmin/ /wu-moadmin/ /moadmin/
@MOFILE=moadmin.php wu-moadmin.php
@ADOBEXML=/flex2gateway/ /flex2gateway/http /flex2gateway/httpsecure /flex2gateway/cfamfpoolling /flex2gateway/amf /flex2gateway/amfpolling /messagebroker/http /messagebroker/httpsecure /blazeds/messagebroker/http /blazeds/messagebroker/httpsecure /samples/messagebroker/http /samples/messagebroker/httpsecure /lcds/messagebroker/http /lcds/messagebroker/httpsecure /lcds-samples/messagebroker/http /lcds-samples/messagebroker/httpsecure
@JENKINS=/ /jenkins/ /hudson/
@RAINLOOP=/ /rainloop/ /webmail/
@TOMCATADMIN=/manager/ /jk-manager/ /jk-status/ /admin/ /host-manager/
@PHPINFODIRS=/ /test/
@PHPINFOFILES=phpinfo.php phpinfo.php3 test.php info.php index.php php_info.php
@MANTIS=/ /mantis/ /mantisbt/
@DOKUWIKI=/ /wiki/ /dokuwiki/
@ROCKMONGO=/ /rockmongo/ /rock-mongo/
@MAGENTO=/ /magento/ /shop/
@MAGMI=/ /magmi/ /magmi-importer/ /magento/magmi/ /magento/magmi-importer/ /shop/magmi/ /shop/magmi-importer/
@HYBRIS=/ /hmc/ /hac/
@PIWIK=/ /piwik/ /analytics/
@FORUM=/ /forum/ /forums/ /forumz/ /htforum/ /board/ /community/
@VBULLETIN=/vb/ /vbulletin/
@PAGESPEED=/ngx_pagespeed_statistics /ngx_pagespeed_global_statistics /ngx_pagespeed_message /mod_pagespeed_statistics /mod_pagespeed_global_statistics /mod_pagespeed_message /pagespeed_console /pagespeed_admin/ /pagespeed_global_admin/
@SYMPHONY=/ /cms/ /symphony/
@CKEDITOR=/ /ckeditor/ /admin/ckeditor/ /sites/all/modules/ckeditor/ /resources/ckeditor/ /clientscript/ckeditor/ /wp-content/plugins/ckeditor-for-wordpress/ckeditor/
@STRUTSACTIONS=/ /index.action /login.action
@WORDPRESS=/ /wordpress
| {
"pile_set_name": "Github"
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/*
* @author Valentin Simonov / http://va.lent.in/
*/
#if TOUCHSCRIPT_DEBUG
using System;
using System.Collections.Generic;
using TouchScript.Debugging.Filters;
using TouchScript.Pointers;
using TouchScript.Utils;
namespace TouchScript.Debugging.Loggers
{
/// <summary>
/// A default implementation of <see cref="IPointerLogger"/> used in editor.
/// </summary>
/// <seealso cref="TouchScript.Debugging.Loggers.IPointerLogger" />
public class PointerLogger : IPointerLogger
{
#region Consts
public const int MIN_POINTER_LIST_SIZE = 1000;
#endregion
#region Public properties
/// <inheritdoc />
public int PointerCount
{
get { return pointerCount; }
}
#endregion
#region Private variables
private int pointerCount = 0;
private int eventCount = 0;
protected List<PointerData> data = new List<PointerData>(1);
protected List<List<PointerLog>> events = new List<List<PointerLog>>(1);
#endregion
#region Public methods
/// <inheritdoc />
public virtual void Log(Pointer pointer, PointerEvent evt)
{
var id = checkId(pointer);
var list = getPointerList(id);
var log = new PointerLog()
{
Id = eventCount,
Tick = DateTime.Now.Ticks,
PointerId = id,
Event = evt,
State = new PointerState()
{
Buttons = pointer.Buttons,
Position = pointer.Position,
PreviousPosition = pointer.PreviousPosition,
Flags = pointer.Flags,
Target = pointer.GetPressData().Target,
TargetPath = TransformUtils.GetHeirarchyPath(pointer.GetPressData().Target),
}
};
list.Add(log);
eventCount++;
}
/// <inheritdoc />
public virtual List<PointerData> GetFilteredPointerData(IPointerDataFilter filter = null)
{
//if (filter == null)
return new List<PointerData>(data);
}
/// <inheritdoc />
public virtual List<PointerLog> GetFilteredLogsForPointer(int id, IPointerLogFilter filter = null)
{
if (id < 0 || id >= pointerCount)
return new List<PointerLog>();
List<PointerLog> list = events[id];
if (filter == null)
return new List<PointerLog>(list);
var count = list.Count;
List<PointerLog> filtered = new List<PointerLog>(count);
for (var i = 0; i < count; i++)
{
var item = list[i];
if (filter.Applies(ref item)) filtered.Add(item);
}
return filtered;
}
/// <inheritdoc />
public virtual void Dispose() {}
#endregion
#region Private functions
private IList<PointerLog> getPointerList(int id)
{
return events[id];
}
private int checkId(Pointer pointer)
{
var id = pointer.Id;
if (id > pointerCount) throw new InvalidOperationException("Pointer id desync!");
if (id != pointerCount) return id;
var list = new List<PointerLog>(MIN_POINTER_LIST_SIZE);
events.Add(list);
data.Add(new PointerData()
{
Id = id,
Type = pointer.Type,
});
pointerCount++;
return id;
}
#endregion
}
}
#endif | {
"pile_set_name": "Github"
} |
/*=============================================================================
Copyright (c) 2013 Mateusz Loskot
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2005-2006 Dan Marsden
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#if !defined(BOOST_FUSION_STD_ARRAY_IS_VIEW_IMPL_01062013_1700)
#define BOOST_FUSION_STD_ARRAY_IS_VIEW_IMPL_01062013_1700
#include <boost/mpl/bool.hpp>
namespace boost { namespace fusion
{
struct std_array_tag;
namespace extension
{
template<typename Tag>
struct is_view_impl;
template<>
struct is_view_impl<std_array_tag>
{
template<typename T>
struct apply : mpl::false_
{};
};
}
}}
#endif
| {
"pile_set_name": "Github"
} |
Core.Encoding
TYPE: istring
DEFAULT: 'utf-8'
--DESCRIPTION--
If for some reason you are unable to convert all webpages to UTF-8, you can
use this directive as a stop-gap compatibility change to let HTML Purifier
deal with non UTF-8 input. This technique has notable deficiencies:
absolutely no characters outside of the selected character encoding will be
preserved, not even the ones that have been ampersand escaped (this is due
to a UTF-8 specific <em>feature</em> that automatically resolves all
entities), making it pretty useless for anything except the most I18N-blind
applications, although %Core.EscapeNonASCIICharacters offers fixes this
trouble with another tradeoff. This directive only accepts ISO-8859-1 if
iconv is not enabled.
--# vim: et sw=4 sts=4
| {
"pile_set_name": "Github"
} |
// Copyright (c) 2012 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 "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/content_settings_pattern_parser.h"
#include "base/strings/string_piece.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
typedef ContentSettingsPattern::BuilderInterface BuilderInterface;
} // namespace
class MockBuilder : public ContentSettingsPattern::BuilderInterface {
public:
MOCK_METHOD0(WithSchemeWildcard, BuilderInterface*());
MOCK_METHOD0(WithDomainWildcard, BuilderInterface*());
MOCK_METHOD0(WithPortWildcard, BuilderInterface*());
MOCK_METHOD1(WithScheme, BuilderInterface*(const std::string& scheme));
MOCK_METHOD1(WithHost, BuilderInterface*(const std::string& host));
MOCK_METHOD1(WithPort, BuilderInterface*(const std::string& port));
MOCK_METHOD1(WithPath, BuilderInterface*(const std::string& path));
MOCK_METHOD0(WithPathWildcard, BuilderInterface*());
MOCK_METHOD0(Invalid, BuilderInterface*());
MOCK_METHOD0(Build, ContentSettingsPattern());
};
TEST(ContentSettingsPatternParserTest, ParsePatterns) {
// Test valid patterns
::testing::StrictMock<MockBuilder> builder;
// WithPathWildcard() is not called for "*". (Need a strict Mock for this
// case.)
EXPECT_CALL(builder, WithSchemeWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithDomainWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPortWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("*", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithScheme("http")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("www.youtube.com")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPort("8080")).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse(
"http://www.youtube.com:8080", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithSchemeWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("www.gmail.com")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPort("80")).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("*://www.gmail.com:80", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithScheme("http")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("www.gmail.com")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPortWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("http://www.gmail.com:*", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithScheme("http")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithDomainWildcard()).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("google.com")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPort("80")).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("http://[*.]google.com:80", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithScheme("https")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("[::1]")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPort("8080")).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("https://[::1]:8080", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithScheme("http")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("127.0.0.1")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPort("8080")).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("http://127.0.0.1:8080", &builder);
::testing::Mock::VerifyAndClear(&builder);
// Test valid pattern short forms
EXPECT_CALL(builder, WithSchemeWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("www.youtube.com")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPort("8080")).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("www.youtube.com:8080", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithSchemeWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("www.youtube.com")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPortWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("www.youtube.com", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithSchemeWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithDomainWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("youtube.com")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPortWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("[*.]youtube.com", &builder);
::testing::Mock::VerifyAndClear(&builder);
// Test invalid patterns
EXPECT_CALL(builder, WithSchemeWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, Invalid()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("*youtube.com", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithSchemeWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, Invalid()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("*.youtube.com", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithSchemeWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, Invalid()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse("www.youtube.com*", &builder);
::testing::Mock::VerifyAndClear(&builder);
// Test for kDomainWildcardWithSuperfluousDot
EXPECT_CALL(builder, WithSchemeWildcard())
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, Invalid())
.Times(1)
.WillOnce(::testing::Return(&builder));
content_settings::PatternParser::Parse("[*.].youtube.com", &builder);
::testing::Mock::VerifyAndClear(&builder);
}
TEST(ContentSettingsPatternParserTest, ParseFilePatterns) {
::testing::StrictMock<MockBuilder> builder;
EXPECT_CALL(builder, WithScheme("file")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPath("/foo/bar/test.html")).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse(
"file:///foo/bar/test.html", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithScheme("file")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithDomainWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse(
"file://*", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithScheme("file")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithDomainWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPath("/")).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse(
"file://*/", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithScheme("file")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithDomainWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPathWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse(
"file://*/*", &builder);
::testing::Mock::VerifyAndClear(&builder);
EXPECT_CALL(builder, WithScheme("file")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, WithPathWildcard()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse(
"file:///*", &builder);
::testing::Mock::VerifyAndClear(&builder);
// Invalid file patterns.
EXPECT_CALL(builder, WithScheme("file")).Times(1).WillOnce(
::testing::Return(&builder));
EXPECT_CALL(builder, Invalid()).Times(1).WillOnce(
::testing::Return(&builder));
content_settings::PatternParser::Parse(
"file://**", &builder);
::testing::Mock::VerifyAndClear(&builder);
}
TEST(ContentSettingsPatternParserTest, ParseChromePatterns) {
// The schemes chrome-extension:// and chrome-search:// are valid,
// and chrome-not-search:// is not, because the former two are registered
// as non-domain wildcard non-port schemes in components_test_suite.cc,
// and the last one isn't.
::testing::StrictMock<MockBuilder> builder;
// Valid chrome-extension:// URL.
EXPECT_CALL(builder, WithScheme("chrome-extension"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("peoadpeiejnhkmpaakpnompolbglelel"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, WithPath("/"))
.Times(1)
.WillOnce(::testing::Return(&builder));
content_settings::PatternParser::Parse(
"chrome-extension://peoadpeiejnhkmpaakpnompolbglelel/", &builder);
::testing::Mock::VerifyAndClear(&builder);
// Valid chrome-search:// URL.
EXPECT_CALL(builder, WithScheme("chrome-search"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("local-ntp"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, WithPath("/local-ntp.html"))
.Times(1)
.WillOnce(::testing::Return(&builder));
content_settings::PatternParser::Parse(
"chrome-search://local-ntp/local-ntp.html", &builder);
::testing::Mock::VerifyAndClear(&builder);
// Not a non-domain wildcard non-port scheme implies a port is parsed.
EXPECT_CALL(builder, WithScheme("chrome-not-search"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("local-ntp"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, WithPath("/local-ntp.html"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, WithPortWildcard())
.Times(1)
.WillOnce(::testing::Return(&builder));
content_settings::PatternParser::Parse(
"chrome-not-search://local-ntp/local-ntp.html", &builder);
::testing::Mock::VerifyAndClear(&builder);
}
TEST(ContentSettingsPatternParserTest,
ParseInvalidNonDomainWildcardNonPortPatterns) {
::testing::StrictMock<MockBuilder> builder;
// Domain wildcard for scheme without domain wildcards.
EXPECT_CALL(builder, WithScheme("chrome-search"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, Invalid())
.Times(1)
.WillOnce(::testing::Return(&builder));
content_settings::PatternParser::Parse("chrome-search://*/local-ntp.html",
&builder);
::testing::Mock::VerifyAndClear(&builder);
// Domain wildcard for scheme without domain wildcards.
EXPECT_CALL(builder, WithScheme("chrome-search"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, Invalid())
.Times(1)
.WillOnce(::testing::Return(&builder));
content_settings::PatternParser::Parse(
"chrome-search://*local-ntp/local-ntp.html", &builder);
::testing::Mock::VerifyAndClear(&builder);
// Port for scheme without ports.
EXPECT_CALL(builder, WithScheme("chrome-search"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("local-ntp"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, Invalid())
.Times(1)
.WillOnce(::testing::Return(&builder));
content_settings::PatternParser::Parse(
"chrome-search://local-ntp:65535/local-ntp.html", &builder);
::testing::Mock::VerifyAndClear(&builder);
// Port wildcard for scheme without ports.
EXPECT_CALL(builder, WithScheme("chrome-search"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, WithHost("local-ntp"))
.Times(1)
.WillOnce(::testing::Return(&builder));
EXPECT_CALL(builder, Invalid())
.Times(1)
.WillOnce(::testing::Return(&builder));
content_settings::PatternParser::Parse(
"chrome-search://local-ntp:*/local-ntp.html", &builder);
::testing::Mock::VerifyAndClear(&builder);
}
TEST(ContentSettingsPatternParserTest, SerializePatterns) {
ContentSettingsPattern::PatternParts parts;
parts.scheme = "http";
parts.host = "www.youtube.com";
parts.port = "8080";
EXPECT_STREQ("http://www.youtube.com:8080",
content_settings::PatternParser::ToString(parts).c_str());
parts = ContentSettingsPattern::PatternParts();
parts.scheme = "file";
parts.path = "/foo/bar/test.html";
EXPECT_STREQ("file:///foo/bar/test.html",
content_settings::PatternParser::ToString(parts).c_str());
parts = ContentSettingsPattern::PatternParts();
parts.scheme = "file";
parts.path = "";
parts.is_path_wildcard = true;
EXPECT_EQ("file:///*", content_settings::PatternParser::ToString(parts));
parts = ContentSettingsPattern::PatternParts();
parts.scheme = "chrome-search";
parts.host = "local-ntp";
EXPECT_EQ("chrome-search://local-ntp/",
content_settings::PatternParser::ToString(parts));
parts = ContentSettingsPattern::PatternParts();
parts.scheme = "chrome-extension";
parts.host = "peoadpeiejnhkmpaakpnompolbglelel";
EXPECT_EQ("chrome-extension://peoadpeiejnhkmpaakpnompolbglelel/",
content_settings::PatternParser::ToString(parts));
}
| {
"pile_set_name": "Github"
} |
var toInteger = require('./_to-integer')
, defined = require('./_defined');
// true -> String#at
// false -> String#codePointAt
module.exports = function(TO_STRING){
return function(that, pos){
var s = String(defined(that))
, i = toInteger(pos)
, l = s.length
, a, b;
if(i < 0 || i >= l)return TO_STRING ? '' : undefined;
a = s.charCodeAt(i);
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
? TO_STRING ? s.charAt(i) : a
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
};
}; | {
"pile_set_name": "Github"
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.lucene.index;
import java.io.IOException;
import java.util.Random;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.IndexWriterConfig.OpenMode;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.store.Directory;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.TestUtil;
class RepeatingTokenizer extends Tokenizer {
private final Random random;
private final float percentDocs;
private final int maxTF;
private int num;
CharTermAttribute termAtt;
String value;
public RepeatingTokenizer(String val, Random random, float percentDocs, int maxTF) {
super();
this.value = val;
this.random = random;
this.percentDocs = percentDocs;
this.maxTF = maxTF;
this.termAtt = addAttribute(CharTermAttribute.class);
}
@Override
public boolean incrementToken() throws IOException {
num--;
if (num >= 0) {
clearAttributes();
termAtt.append(value);
return true;
}
return false;
}
@Override
public void reset() throws IOException {
super.reset();
if (random.nextFloat() < percentDocs) {
num = random.nextInt(maxTF) + 1;
} else {
num = 0;
}
}
}
public class TestTermdocPerf extends LuceneTestCase {
void addDocs(final Random random, Directory dir, final int ndocs, String field, final String val, final int maxTF, final float percentDocs) throws IOException {
Analyzer analyzer = new Analyzer() {
@Override
public TokenStreamComponents createComponents(String fieldName) {
return new TokenStreamComponents(new RepeatingTokenizer(val, random, percentDocs, maxTF));
}
};
Document doc = new Document();
doc.add(newStringField(field, val, Field.Store.NO));
IndexWriter writer = new IndexWriter(
dir,
newIndexWriterConfig(analyzer)
.setOpenMode(OpenMode.CREATE)
.setMaxBufferedDocs(100)
.setMergePolicy(newLogMergePolicy(100))
);
for (int i=0; i<ndocs; i++) {
writer.addDocument(doc);
}
writer.forceMerge(1);
writer.close();
}
public int doTest(int iter, int ndocs, int maxTF, float percentDocs) throws IOException {
Directory dir = newDirectory();
long start = System.currentTimeMillis();
addDocs(random(), dir, ndocs, "foo", "val", maxTF, percentDocs);
long end = System.currentTimeMillis();
if (VERBOSE) System.out.println("milliseconds for creation of " + ndocs + " docs = " + (end-start));
IndexReader reader = DirectoryReader.open(dir);
TermsEnum tenum = MultiTerms.getTerms(reader, "foo").iterator();
start = System.currentTimeMillis();
int ret=0;
PostingsEnum tdocs = null;
final Random random = new Random(random().nextLong());
for (int i=0; i<iter; i++) {
tenum.seekCeil(new BytesRef("val"));
tdocs = TestUtil.docs(random, tenum, tdocs, PostingsEnum.NONE);
while (tdocs.nextDoc() != DocIdSetIterator.NO_MORE_DOCS) {
ret += tdocs.docID();
}
}
end = System.currentTimeMillis();
if (VERBOSE) System.out.println("milliseconds for " + iter + " TermDocs iteration: " + (end-start));
return ret;
}
public void testTermDocPerf() throws IOException {
// performance test for 10% of documents containing a term
// doTest(100000, 10000,3,.1f);
}
}
| {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.