text:
function process_achievements_data(data, table) {
    var data_length = data.length;
    var completed_achievements = 0;

    var processed_data = [];

    for(var index = 0; index < data_length; index++) {
        var data_row = data[index];

        processed_data.push([
            Formatting.getAchievementIconHtml(data_row.icon_url),
            data_row.display_name,
            data_row.description,
            Formatting.addNoWrapHtml(data_row.achieved_date)
        ]);

        if(data_row.achieved_date != null) {
            completed_achievements += 1;
        }
    }

    completed_achievements_percent = Math.round((completed_achievements / data_length) * 100);

    var progress_bar = $('#achievements_progress_bar');

    progress_bar.attr('aria-valuenow', completed_achievements_percent);
    progress_bar.css("width", completed_achievements_percent + '%');
    progress_bar.html(completed_achievements_percent + '%');

    if(completed_achievements == 0) {
        progress_bar.addClass('zero_progress');
    }

    return processed_data;
};

function initialize_achievements_table() {
    var table = new NecroTable($('#player_achievements_table'));

    table.setAjaxUrl(Formatting.getNecrolabApiUrl('/players/player/achievements'));

    table.addRequestParameter('id', 'steamid');

    table.addColumns([
        {
            name: 'achieved',
            title: ' ',
            type: 'string',
            orderable: false
        },
        {
            name: 'display_name',
            title: 'Achievement',
            type: 'string',
            orderable: false
        },
        {
            name: 'description',
            title: 'Description',
            type: 'string',
            orderable: false
        },
        {
            name: 'achieved_date',
            title: 'Achieved',
            type: 'string',
            orderable: false
        },
    ]);

    table.setDataProcessCallback(window, 'process_achievements_data');

    table.render();
};


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_marginBottom="16.5dp"
        android:background="#3366cc"
        android:gravity="center"
        android:orientation="horizontal">

        <ImageView
            android:id="@+id/order_back"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="0.7"
            android:src="@mipmap/back" />

        <RadioGroup
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="6"
            android:gravity="center"
            android:orientation="horizontal">

            <RadioButton
                android:id="@+id/rad_disscuss"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/radio_btn"
                android:button="@null"
                android:checked="true"
                android:text="@string/order_disscuss"
                android:textSize="20sp" />

            <RadioButton
                android:id="@+id/rad_storage"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/radio_btn"
                android:button="@null"
                android:text="@string/ordering_storagedetail"
                android:textSize="20sp" />

        </RadioGroup>

    </LinearLayout>

    <FrameLayout
        android:id="@+id/order_fragment_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

    </FrameLayout>

</LinearLayout>

redpajama_set_name: RedPajamaGithub


text:
body { font-family: 'arial'; padding: 0; margin: 0; background-color: #dfdfdf; }
h1 { font-family: 'times new roman'; }
h2 { font-family: arial; font-size: 1.9em; font-weight: normal;}
a img { border: 0 }
input, select { border: 1px solid #212121; font-size: 0.9em; width: 250px; }

.general_errors,
.form_error { color: red; font-size: 0.8em; }

.fieldgroup { padding: 0 }
.fieldgroup fieldset { width: 400px; }
.errors { margin: 5px; color: red; }
.fieldgroup dd { margin-bottom: 5px; }
.header { width: 1200px; height: 320px; background-color: #2b3477; margin: 0 auto; position: relative; }
.logo_beer { position: relative; width: 329px; height: 321px; background: url(../images/beer_logo.png); float: left; margin: -1px 0 0 10px; }
.logo_iou { position: relative; width: 251px; height: 172px; background: url(../images/beer_IOU.png); float: left; margin: 25px 0 0 10px; }
.register { position: absolute; width: 450px; height: 250px; right: 15px; top: 20px; color: white;}
.register h2 { text-transform: uppercase; margin: 0 0 5px 45px; color: white; }
.register .label { width: 110px; height: 22px; text-align: right; display: block; float: left; margin: 12px 20px 12px 0; font-size: 1.2em; }
.register .field { font-size: 1.3em; border: 1px solid #424242; width: 250px; margin: 10px 0 10px 0; float: left; }
.register .btn_submit { background-color: #994608; width: 147px; height: 40px; margin: 10px 65px; float: right; }
.header_menu { position: absolute; bottom: 5px; right: 25px; }
.header_menu ul { list-style-type: none; font-size: 1.1em; text-transform: uppercase; margin: 0; }
.header_menu ul li { display: inline; margin: 0 10px 0 10px; }
.header_menu ul li a { color: white; text-decoration: none; }

.bd { width: 1180px; margin: auto; position: relative; background-color: white; padding: 1px 10px;}
.col { float: left; width: 48% }
.clearfix { clear:both }

.bd .row { display: table-row; }
.bd .punchline { margin: auto; font-size: 2.5em; font-family: 'times new roman'; text-align: center; display: table-cell; vertical-align: middle; width: 1200px; height: 130px; }
.bd .punchline img { vertical-align: middle; }
.bd .punchline .curly { font-size: 2.8em; line-height: 0em; margin-bottom: 20px;  vertical-align: middle; display: inline-block; }
.bd .punchline p { display: inline-block; margin: 0 0 10px 0; vertical-align: middle; line-height: 1.5em; }

.bd .buttons { margin: 0 auto; height: 270px; display: table-cell; text-align: center; vertical-align: middle; }
.bd .buttons .btn { width: 478px; background: url(../images/beer_background.png); line-height: 166px; display: inline-block; margin: 0 50px 0 50px; vertical-align: middle; }
.bd .buttons .line-sep { width: 3px; display: inline-block; height: 240px; background-color: black; vertical-align: middle; }

.accountTable { border-collapse:collapse; margin: 20px auto; width: 450px; }
.accountTable th, .accountTable td { border: 1px solid black; padding: 4px; }
.accountTable td p { width: 95%; margin: 9px auto; border-top: 1px solid black; border-bottom: 1px solid black; }

.footer { width: 1200px; margin: 0 auto; position: relative; background-color: #fbde7b; height: 150px; overflow: hidden; }
.footer p { margin-top: 0px; padding-top: 5px; margin-left: 20px; }
.footer .zendcon { position: absolute; top: 10px; right: -400px; }
.barlocations { width: 300px; height: 110px; overflow: hidden; margin-left: 20px;  }
.footer #scroller { width: 300px; }
.footer #scroller .li { height: 100px; }


text:
/*!
 *	@class	this class can do obj to easy encode and decode
 *  this category suport complex class and can get the property from it's supper class .
 *  in this class , I do not make the obj to json method, you can do it by yourself ,or use the famous third part library such as JSONKit ..
 *  ok , I hope you can enjoy the convenience made by this class.
 */
#import <Foundation/Foundation.h>

@interface NSObject (YRSerializationCategory)<NSCoding>

/*!
 *	@brief	abstract method,let you forbid some class use this category
 *
 *	@return	true means ok,false means can't support,default value is true
 */
+(BOOL)supportYRSerialization;

/*!
 *	@brief	abstract method,help restore the dictionary to property custom class with class name,normally your custom class need ,or id type need;
 *
 *	@return	{propertyName:customClassName}
 *  @note not support C Struct,only work for NSObject class name
 */
+(NSDictionary*)auxiliaryYRClassNameDictionary;

/*!
 *	@brief	abstract method,let you change the key to save ,or remove some key,useful for server data
 *
 *	@return	NSDictionary, localKey:saveKey
 *  @note default return nil,so save all it's property keys
 */
-(NSDictionary*)propertyKeysToSaveKeys;

-(NSArray*)propertyKeys;

-(NSMutableDictionary*)savePropertiesToDictionary;//This dictionary can purely be saved to the NSUserDefaults or to a json . save some custom class name for restore
-(BOOL)restorePropertiesFromDictionary:(NSDictionary*)dictionary;//This method make to obj back from the dictionary you previous saved by the savePropertiesToDictionary method.

-(NSMutableDictionary*)savePropertiesWithoutAuxiliaryClassName;//This dictionary can purely be saved to the NSUserDefaults or to a json . Without any class name info , so you'd better not use this returned dictionary to restore.

/*
-(id)saveObjectToSafeStore;
-(id)restoreObjectFromSafeSave:(id)savedObj;
*/

@end

@interface NSArray (YRSerializationCategory)
-(NSMutableArray*)saveObjectsToArray;//This array can purely be saved to the NSUserDefaults or to a json.
-(NSMutableArray*)restoreObjectsFromArray;//This method make to obj back from the array you previous saved by the saveObjectsToArray method.
@end

@interface NSDictionary (YRSerializationCategory)
/*!
 *	@brief	normally the NSObject category may save some custom class name for restore ,if you do not need restore ,for example send to server ,you can remove all auxiliary class name info to save traffic.
 */
-(void)removeAllAuxiliaryYRClassName;

-(NSMutableDictionary*)saveObjectsToDictionary;//This dictionary can purely be saved to the NSUserDefaults or to a json.
-(NSMutableDictionary*)restoreObjectsFromDictionary;//This method make to obj back from the dictionary you previous saved by the saveObjectsToDictionary method.
@end

@interface NSSet (YRSerializationCategory)
-(NSMutableSet*)saveObjectsToSet;//This set can purely be saved to the NSUserDefaults or to a json.
-(NSMutableSet*)restoreObjectsFromSet;//This method make to obj back from the set you previous saved by the saveObjectsToSet method.
@end

@interface NSValue (YRSerializationCategory)
//attention!!! this category can only work for NSNumber and some C Struct as CGRect,CGSize,CGPoint,UIOffset,UIEdgeInsets,CGAffineTransform ,for they all have [NSValue valueWith... method.
-(id)saveObjectToSafeStore;
-(NSValue *)restoreObjectFromSafeSave:(id)savedObj;
+(NSValue *)valueWithDescriptionString:(NSString*)description;
@end


text:
"""Adds config flow for dnsip integration."""
from __future__ import annotations

import asyncio
import contextlib
from typing import Any

import aiodns
from aiodns.error import DNSError
import voluptuous as vol

from homeassistant import config_entries
from homeassistant.const import CONF_NAME
from homeassistant.core import callback
from homeassistant.data_entry_flow import FlowResult
import homeassistant.helpers.config_validation as cv

from .const import (
    CONF_HOSTNAME,
    CONF_IPV4,
    CONF_IPV6,
    CONF_RESOLVER,
    CONF_RESOLVER_IPV6,
    DEFAULT_HOSTNAME,
    DEFAULT_NAME,
    DEFAULT_RESOLVER,
    DEFAULT_RESOLVER_IPV6,
    DOMAIN,
)

DATA_SCHEMA = vol.Schema(
    {
        vol.Required(CONF_HOSTNAME, default=DEFAULT_HOSTNAME): cv.string,
    }
)
DATA_SCHEMA_ADV = vol.Schema(
    {
        vol.Required(CONF_HOSTNAME, default=DEFAULT_HOSTNAME): cv.string,
        vol.Optional(CONF_RESOLVER, default=DEFAULT_RESOLVER): cv.string,
        vol.Optional(CONF_RESOLVER_IPV6, default=DEFAULT_RESOLVER_IPV6): cv.string,
    }
)

async def async_validate_hostname(
    hostname: str, resolver_ipv4: str, resolver_ipv6: str
) -> dict[str, bool]:
    """Validate hostname."""

    async def async_check(hostname: str, resolver: str, qtype: str) -> bool:
        """Return if able to resolve hostname."""
        result = False
        with contextlib.suppress(DNSError):
            result = bool(
                await aiodns.DNSResolver(nameservers=[resolver]).query(hostname, qtype)
            )
        return result

    result: dict[str, bool] = {}

    tasks = await asyncio.gather(
        async_check(hostname, resolver_ipv4, "A"),
        async_check(hostname, resolver_ipv6, "AAAA"),
    )

    result[CONF_IPV4] = tasks[0]
    result[CONF_IPV6] = tasks[1]

    return result

class DnsIPConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
    """Handle a config flow for dnsip integration."""

    VERSION = 1

    @staticmethod
    @callback
    def async_get_options_flow(
        config_entry: config_entries.ConfigEntry,
    ) -> DnsIPOptionsFlowHandler:
        """Return Option handler."""
        return DnsIPOptionsFlowHandler(config_entry)

    async def async_step_user(
        self, user_input: dict[str, Any] | None = None
    ) -> FlowResult:
        """Handle the initial step."""

        errors = {}

        if user_input:

            hostname = user_input[CONF_HOSTNAME]
            name = DEFAULT_NAME if hostname == DEFAULT_HOSTNAME else hostname
            resolver = user_input.get(CONF_RESOLVER, DEFAULT_RESOLVER)
            resolver_ipv6 = user_input.get(CONF_RESOLVER_IPV6, DEFAULT_RESOLVER_IPV6)

            validate = await async_validate_hostname(hostname, resolver, resolver_ipv6)

            if not validate[CONF_IPV4] and not validate[CONF_IPV6]:
                errors["base"] = "invalid_hostname"
            else:
                await self.async_set_unique_id(hostname)
                self._abort_if_unique_id_configured()

                return self.async_create_entry(
                    title=name,
                    data={
                        CONF_HOSTNAME: hostname,
                        CONF_NAME: name,
                        CONF_IPV4: validate[CONF_IPV4],
                        CONF_IPV6: validate[CONF_IPV6],
                    },
                    options={
                        CONF_RESOLVER: resolver,
                        CONF_RESOLVER_IPV6: resolver_ipv6,
                    },
                )

        if self.show_advanced_options is True:
            return self.async_show_form(
                step_id="user",
                data_schema=DATA_SCHEMA_ADV,
                errors=errors,
            )
        return self.async_show_form(
            step_id="user",
            data_schema=DATA_SCHEMA,
            errors=errors,
        )

class DnsIPOptionsFlowHandler(config_entries.OptionsFlow):
    """Handle a option config flow for dnsip integration."""

    def __init__(self, entry: config_entries.ConfigEntry) -> None:
        """Initialize options flow."""
        self.entry = entry

    async def async_step_init(
        self, user_input: dict[str, Any] | None = None
    ) -> FlowResult:
        """Manage the options."""
        errors = {}
        if user_input is not None:
            validate = await async_validate_hostname(
                self.entry.data[CONF_HOSTNAME],
                user_input[CONF_RESOLVER],
                user_input[CONF_RESOLVER_IPV6],
            )

            if validate[CONF_IPV4] is False and self.entry.data[CONF_IPV4] is True:
                errors[CONF_RESOLVER] = "invalid_resolver"
            elif validate[CONF_IPV6] is False and self.entry.data[CONF_IPV6] is True:
                errors[CONF_RESOLVER_IPV6] = "invalid_resolver"
            else:
                return self.async_create_entry(title=self.entry.title, data=user_input)

        return self.async_show_form(
            step_id="init",
            data_schema=vol.Schema(
                {
                    vol.Optional(
                        CONF_RESOLVER,
                        default=self.entry.options.get(CONF_RESOLVER, DEFAULT_RESOLVER),
                    ): cv.string,
                    vol.Optional(
                        CONF_RESOLVER_IPV6,
                        default=self.entry.options.get(
                            CONF_RESOLVER_IPV6, DEFAULT_RESOLVER_IPV6
                        ),
                    ): cv.string,
                }
            ),
            errors=errors,
        )


text:
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */

namespace SFM\FormsBundle\Form;

use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\ExecutionContext;

/**
 * @author Moisés Maciá <mmacia@gmail.com>
 *
 * @Assert\Callback(methods={"checkPassword", "checkCaptcha"})
 */
class UserRegister
{
    /**
     * @var string
     * @Assert\NotBlank(message="Este campo no puede estar en blanco")
     */
    public $name;

    /**
     * @var string
     * @Assert\NotBlank(message="Este campo no puede estar en blanco")
     */
    public $surname;

    /**
     * @var string
     * @Assert\NotBlank(message="Este campo no puede estar en blanco")
     */
    public $password;

    /**
     * @var string
     * @Assert\NotBlank(message="Este campo no puede estar en blanco")
     */
    public $password2;

    /**
     * @var string
     * @Assert\NotBlank(message="Este campo no puede estar en blanco")
     */
    public $captcha;

    /**
     * @param ExecutionContext $context
     */
    public function checkPassword(ExecutionContext $context)
    {
        if (empty($this->password) || ($this->password !== $this->password2)) {
            $propertyPath = $context->getPropertyPath() . '.password';
            $context->setPropertyPath($propertyPath);
            $context->addViolation('Las constraseñas no coinciden', array(), null);
        }
    }

    /**
     * @param ExecutionContext $context
     */
    public function checkCaptcha(ExecutionContext $context)
    {
        if (strtolower($this->captcha) !== 'broadway overcome') {
            $propertyPath = $context->getPropertyPath() . '.captcha';
            $context->setPropertyPath($propertyPath);
            $context->addViolation('El captcha no coincide', array(), null);
        }
    }
}


text:
package org.codehaus.mojo.exec;

/**
 * Represents all project properties (to set as system properties).
 */
public class ProjectProperties extends AbstractProperty
{
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

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

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->

<!-- $Rev$ $Date$ -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.apache.geronimo.buildsupport</groupId>
        <artifactId>buildsupport</artifactId>
        <version>4.0.0-SNAPSHOT</version>
    </parent>

    <groupId>org.apache.geronimo.buildsupport.it</groupId>
    <artifactId>metadatatest-it4</artifactId>
    <name>Metadata test  it4</name>
    <packaging>car</packaging>

    <dependencies>
        <dependency>
            <groupId>org.apache.geronimo.framework</groupId>
            <artifactId>geronimo-gbean-deployer</artifactId>
            <version>${project.version}</version>
            <type>car</type>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>velocity</groupId>
            <artifactId>velocity</artifactId>
            <version>1.4</version>
        </dependency>

        <dependency>
            <groupId>com.thoughtworks.xstream</groupId>
            <artifactId>xstream</artifactId>
        </dependency>

        <dependency>
            <groupId>xpp3</groupId>
            <artifactId>xpp3_min</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.geronimo.buildsupport</groupId>
                <artifactId>car-maven-plugin</artifactId>
                <configuration>
                    <category>Test</category>
                    <osiApproved>true</osiApproved>
                    <useMavenDependencies>
                        <value>true</value>
                        <includeVersion>true</includeVersion>
                    </useMavenDependencies>
                    <instance>
                        <plugin-artifact xmlns="http://geronimo.apache.org/xml/ns/plugins-1.3" xmlns:ns2="http://geronimo.apache.org/xml/ns/attributes-1.2">
                            <jvm-version>1.5</jvm-version>
                            <jvm-version>1.5.2</jvm-version>
                            <prerequisite>
                                <id>
                                    <groupId>commons-logging</groupId>
                                    <artifactId>commons-logging</artifactId>
                                </id>
                                <resource-type>joke</resource-type>
                                <description>this is an explanation</description>
                            </prerequisite>
                            <obsoletes>
                                <groupId>commons-logging</groupId>
                                <artifactId>commons-logging</artifactId>
                            </obsoletes>
                            <config-xml-content>
                                <gbean name="DownloadedPluginRepos">
                                    <attribute name="repositoryList">http://geronimo.apache.org/plugins/plugin-repository-list-3.0.txt</attribute>
                                    <attribute name="userRepositories">~/.m2/repository,#{key1}</attribute>
                                </gbean>
                            </config-xml-content>
                            <source-repository>http://foo.com</source-repository>
                            <source-repository>http://bar.com</source-repository>
                            <copy-file relative-to="WEB-INF" dest-dir="bar">META-INF/foo.xml</copy-file>
                            <artifact-alias key="org.apache.geronimo.test/foo//car">org.apache.geronimo.test/bar/1.0/car</artifact-alias>
                            <config-substitution key="key2">value2</config-substitution>
                            <config-substitution key="key1">value1</config-substitution>
                        </plugin-artifact>
                    </instance>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>


text:
package org.mifos.dto.domain;

public class CustomerDetailsDto {

    private final Integer id;
    private final String globalCustNum;

    public CustomerDetailsDto(Integer id, String globalCustNum) {
        this.id = id;
        this.globalCustNum = globalCustNum;
    }

    public Integer getId() {
        return this.id;
    }

    public String getGlobalCustNum() {
        return this.globalCustNum;
    }

}


text:
namespace boost {
namespace beast {
namespace websocket {

class stream_test : public websocket_test_suite
{
public:
    void
    testOptions()
    {
        {
            std::seed_seq ss{42};
            seed_prng(ss);
        }

        stream<test::stream> ws{ioc_};
        ws.auto_fragment(true);
        ws.write_buffer_size(2048);
        ws.binary(false);
        ws.read_message_max(1 * 1024 * 1024);
        try
        {
            ws.write_buffer_size(7);
            fail();
        }
        catch(std::exception const&)
        {
            pass();
        }

        ws.secure_prng(true);
        ws.secure_prng(false);

        auto const bad =
        [&](permessage_deflate const& pmd)
        {
            stream<test::stream> ws{ioc_};
            try
            {
                ws.set_option(pmd);
                fail("", __FILE__, __LINE__);
            }
            catch(std::exception const&)
            {
                pass();
            }
        };

        {
            permessage_deflate pmd;
            pmd.server_max_window_bits = 16;
            bad(pmd);
        }

        {
            permessage_deflate pmd;
            pmd.server_max_window_bits = 8;
            bad(pmd);
        }

        {
            permessage_deflate pmd;
            pmd.client_max_window_bits = 16;
            bad(pmd);
        }

        {
            permessage_deflate pmd;
            pmd.client_max_window_bits = 8;
            bad(pmd);
        }

        {
            permessage_deflate pmd;
            pmd.compLevel = -1;
            bad(pmd);
        }

        {
            permessage_deflate pmd;
            pmd.compLevel = 10;
            bad(pmd);
        }

        {
            permessage_deflate pmd;
            pmd.memLevel = 0;
            bad(pmd);
        }

        {
            permessage_deflate pmd;
            pmd.memLevel = 10;
            bad(pmd);
        }
    }

    void
    run() override
    {
        BOOST_STATIC_ASSERT(std::is_constructible<
            stream<test::stream>, boost::asio::io_context&>::value);

        BOOST_STATIC_ASSERT(std::is_move_constructible<
            stream<test::stream>>::value);

        BOOST_STATIC_ASSERT(std::is_move_assignable<
            stream<test::stream>>::value);

        BOOST_STATIC_ASSERT(std::is_constructible<
            stream<test::stream&>, test::stream&>::value);

        BOOST_STATIC_ASSERT(std::is_move_constructible<
            stream<test::stream&>>::value);

        BOOST_STATIC_ASSERT(! std::is_move_assignable<
            stream<test::stream&>>::value);

        log << "sizeof(websocket::stream_base<true>) == " <<
            sizeof(websocket::detail::stream_base<true>) << std::endl;
        log << "sizeof(websocket::stream) == " <<
            sizeof(websocket::stream<test::stream&>) << std::endl;

        testOptions();
    }
};

BEAST_DEFINE_TESTSUITE(beast,websocket,stream);

} // websocket
} // beast
} // boost


text:
package name.valery1707.test.serialization.util.type;

import name.valery1707.test.serialization.util.spi.TypeProcessor;

import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.util.regex.Pattern;

public class StringProcessor implements TypeProcessor<CharSequence> {
	@Override
	public boolean canProcess(Class<?> type) {
		return CharSequence.class.isAssignableFrom(type);
	}

	private static final Pattern STR_ESCAPE_ITEMS = Pattern.compile("(\\\\|\")");

	@Override
	public void write(Writer dst, CharSequence value) throws IOException {
		dst
				.append('"')
				.append(STR_ESCAPE_ITEMS.matcher(value).replaceAll("\\\\$1"))
				.append('"');
	}

	@Override
	public <R extends CharSequence> R read(Reader src, Class<R> type) throws IOException {
		StringBuilder buf = new StringBuilder();
		boolean alreadyStarted = false;
		int i;
		boolean escaped = false;
		while ((i = src.read()) >= 0) {
			char c = (char) i;
			switch (c) {
				case '"':
					if (escaped) {
						buf.append('"');
						escaped = false;
					} else if (alreadyStarted) {
						return wrap(buf, type);
					} else {
						alreadyStarted = true;
					}
					break;
				case '\\':
					if (escaped) {
						buf.append('\\');
						escaped = false;
					} else {
						escaped = true;
					}
					break;
				default:
					if (alreadyStarted) {
						buf.append(c);
					} else {
						throw new IllegalStateException("String is not started, but content is appeared: " + c);
					}
					break;
			}
		}
		throw new IllegalStateException("String is not ended: " + buf.toString());
	}

	@SuppressWarnings("unchecked")
	private <R extends CharSequence> R wrap(StringBuilder buf, Class<R> type) {
		if (String.class.equals(type)) {
			return (R) buf.toString();
		} else if (CharSequence.class.equals(type)) {
			return (R) buf;
		}
		//todo Точно нужны корвертеры
		throw new IllegalStateException("Unknown target type: " + type);
	}
}


text:
GOBBLIN_VERSION=@project.version@

FWDIR="$(cd `dirname $0`/..; pwd)"
FWDIR_LIB=$FWDIR/lib
FWDIR_CONF=$FWDIR/conf
FWDIR_BIN=$FWDIR/bin

function print_usage(){
  echo "Usage: gobblin-compaction.sh [OPTION] --type <compaction type: hive or mr> --conf <compaction configuration file>"
  echo "Where OPTION can be:"
  echo "  --projectversion <version>    Gobblin version to be used. If set, overrides the distribution build version"
  echo "  --logdir <log dir>            Gobblin's log directory: if not set, taken from \${GOBBLIN_LOG_DIR} if present. Otherwise \"$FWDIR/logs\" is used"
  echo "  --help                        Display this help and exit"
}

# Print an error message and exit
function die() {
  echo -e "\nError: $@\n" 1>&2
  print_usage
  exit 1
}

for i in "$@"
do
  case "$1" in
    --type)
      TYPE="$2"
      shift
      ;;
    --conf)
      COMP_CONFIG_FILE="$2"
      shift
      ;;
    --jars)
      JARS="$2"
      shift
      ;;
    --projectversion)
      GOBBLIN_VERSION="$2"
      shift
      ;;
    --logdir)
      LOG_DIR="$2"
      shift
      ;;
    --help)
      print_usage
      exit 0
      ;;
    *)
      ;;
  esac
  shift
done

if ( [ -z "$GOBBLIN_VERSION" ] || [ "$GOBBLIN_VERSION" == "@project.version@" ] ); then
  die "Gobblin project version is not set!"
fi

if [ -z "$COMP_CONFIG_FILE" ]; then
  die "No compaction configuration file set!"
fi

if ( [ -z "$TYPE" ] || ( [ "$TYPE" != "hive" ] && [ "$TYPE" != "mr" ] ) ); then
  die "Invalid compaction type set!"
fi

# User defined log directory overrides $GOBBLIN_LOG_DIR
if [ -n "$LOG_DIR" ]; then
  export GOBBLIN_LOG_DIR="$LOG_DIR"
fi

if [ -z "$GOBBLIN_LOG_DIR" ]; then
  GOBBLIN_LOG_DIR="$FWDIR/logs"
fi

. $FWDIR_BIN/gobblin-env.sh

# Jars Gobblin runtime depends on
function join { local IFS="$1"; shift; echo "$*"; }

# Add libraries to the Hadoop classpath
for jarFile in `ls $FWDIR_LIB/*`
do
  GOBBLIN_DEP_JARS=${GOBBLIN_DEP_JARS}:$jarFile
done

export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Dgobblin.logs.dir=$GOBBLIN_LOG_DIR -Dlog4j.configuration=file:$FWDIR_CONF/log4j-compaction.xml"
# Honor Gobblin dependencies
export HADOOP_USER_CLASSPATH_FIRST=true
export HADOOP_CLASSPATH=$GOBBLIN_DEP_JARS:$HADOOP_CLASSPATH

if [ "$TYPE" == "hive" ]; then

  $HADOOP_BIN_DIR/hadoop jar \
        $FWDIR_LIB/gobblin-compaction-$GOBBLIN_VERSION.jar \
        "gobblin.compaction.hive.CompactionRunner" \
        --jobconfig $COMP_CONFIG_FILE

else

  LIBJARS=(
    $FWDIR_LIB/avro-1.8.1.jar
    $FWDIR_LIB/avro-mapred-1.8.1.jar
    $FWDIR_LIB/commons-cli-1.3.1.jar
    $FWDIR_LIB/commons-lang3-3.4.jar
    $FWDIR_LIB/gobblin-api-$GOBBLIN_VERSION.jar
    $FWDIR_LIB/gobblin-compaction-$GOBBLIN_VERSION.jar
    $FWDIR_LIB/gobblin-utility-$GOBBLIN_VERSION.jar
    $FWDIR_LIB/guava-15.0.jar
  )
  LIBJARS=$(join , "${LIBJARS[@]}")

  $HADOOP_BIN_DIR/hadoop jar \
        $FWDIR_LIB/gobblin-compaction-$GOBBLIN_VERSION.jar \
        "gobblin.compaction.mapreduce.MRCompactionRunner" \
        -D mapreduce.user.classpath.first=true \
        -D mapreduce.job.user.classpath.first=true \
        -libjars $LIBJARS \
        --jobconfig $COMP_CONFIG_FILE

fi


text:
module deflex {

	export class Factory {
		static CLASS_ATTRIBUTE_NAME = 'data-deflex-class';
		static STYLE_ATTRIBUTE_NAME = 'data-deflex-style';
		static boxConstructors: { [s: string]: IBoxConstructor } = { 'default': Box };
		static styleClasses: { [s: string]: string } = {};

		static checkDOM(): void {
			var jqs = jQuery('[' + this.CLASS_ATTRIBUTE_NAME + '],[' + this.STYLE_ATTRIBUTE_NAME + ']');
			for (var i = 0, n = jqs.length; i < n; i++) {
				var jq = jqs.eq(i);
				this.create(jq);
			}
		}

		static create(jq: jQuery.IInstance): Box {
			var className = jq.attr(this.CLASS_ATTRIBUTE_NAME);
			jq.removeAttr(this.CLASS_ATTRIBUTE_NAME);
			if (!illa.isString(className) || className == '') {
				className = 'default';
			}

			var boxConstructor = this.boxConstructors[className];
			var box = new boxConstructor();
			box.initBox(jq);

			var styleClassString = this.styleClasses[className];
			if (illa.isString(styleClassString)) {
				box.applyStyle(styleClassString);
			}

			var styleString = jq.attr(this.STYLE_ATTRIBUTE_NAME);
			jq.removeAttr(this.STYLE_ATTRIBUTE_NAME);
			if (styleString) {
				box.applyStyle(styleString);
			}

			return box;
		}
	}
}


text:
classdef translated_obj < dynamicprops
    %

    properties
    end

    methods
        function createObjectTree()

        end
    end

    methods
        function translated_obj(child_objects,raw_data)

        end
    end

end


text:
using System;
using System.IO;
using HPdf;

public class FontDemo {
    public static void Main() {
        string[] font_list = new string[] {
            "Courier",
            "Courier-Bold",
            "Courier-Oblique",
            "Courier-BoldOblique",
            "Helvetica",
            "Helvetica-Bold",
            "Helvetica-Oblique",
            "Helvetica-BoldOblique",
            "Times-Roman",
            "Times-Bold",
            "Times-Italic",
            "Times-BoldItalic",
            "Symbol",
            "ZapfDingbats"
        };

        Console.WriteLine("libhpdf-" + HPdfDoc.HPdfGetVersion());

        try {
            const string page_title = "FontDemo";

            HPdfDoc pdf = new HPdfDoc();

            HPdfPage page = pdf.AddPage();

            float height = page.GetHeight();
            float width = page.GetWidth();

            /* Print the lines of the page. */
            page.SetLineWidth(1);
            page.Rectangle(50, 50, width - 100, height - 110);
            page.Stroke();

            /* Print the title of the page (with positioning center). */
            HPdfFont def_font = pdf.GetFont ("Helvetica", null);
            page.SetFontAndSize(def_font, 24);

            float tw = page.TextWidth(page_title);
            page.BeginText();
            page.TextOut((width - tw) / 2, height - 50, page_title);
            page.EndText();

            /* output subtitle. */
            page.BeginText();
            page.SetFontAndSize(def_font, 16);
            page.TextOut(60, height - 80, "<Standerd Type1 fonts samples>");
            page.EndText();

            page.BeginText();
            page.MoveTextPos(60, height - 105);

            for (int i = 0; i < font_list.Length; i++) {
                const string samp_text = "abcdefgABCDEFG12345!#$%&+-@?";
                HPdfFont font = pdf.GetFont(font_list[i], null);

                /* print a label of text */
                page.SetFontAndSize(def_font, 9);
                page.ShowText(font_list[i]);
                page.MoveTextPos(0, -18);

                /* print a sample text. */
                page.SetFontAndSize(font, 20);
                page.ShowText(samp_text);
                page.MoveTextPos(0, -20);
            }

            page.EndText();

            pdf.SaveToFile("FontDemo.pdf");
        } catch (Exception e) {
            Console.Error.WriteLine(e.Message);
        }
    }
}


text:
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.07.27 at 08:11:57 PM EEST
//

package eu.datex2.schema._1_0._1_0;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * A publication containing one or more traffic views.
 *
 *
Java class for TrafficViewPublication complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="TrafficViewPublication">
 *   <complexContent>
 *     <extension base="{http://datex2.eu/schema/1_0/1_0}PayloadPublication">
 *       <sequence>
 *         <element name="headerInformation" type="{http://datex2.eu/schema/1_0/1_0}HeaderInformation"/>
 *         <element name="trafficView" type="{http://datex2.eu/schema/1_0/1_0}TrafficView" maxOccurs="unbounded"/>
 *         <element name="trafficViewPublicationExtension" type="{http://datex2.eu/schema/1_0/1_0}ExtensionType" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TrafficViewPublication", propOrder = {
    "headerInformation",
    "trafficView",
    "trafficViewPublicationExtension"
})
public class TrafficViewPublication
    extends PayloadPublication
{

    @XmlElement(required = true)
    protected HeaderInformation headerInformation;
    @XmlElement(required = true)
    protected List<TrafficView> trafficView;
    protected ExtensionType trafficViewPublicationExtension;

    /**
     * Gets the value of the headerInformation property.
     *
     * @return
     *     possible object is
     *     {@link HeaderInformation }
     *
     */
    public HeaderInformation getHeaderInformation() {
        return headerInformation;
    }

    /**
     * Sets the value of the headerInformation property.
     *
     * @param value
     *     allowed object is
     *     {@link HeaderInformation }
     *
     */
    public void setHeaderInformation(HeaderInformation value) {
        this.headerInformation = value;
    }

    /**
     * Gets the value of the trafficView property.
     *
     *

     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a set method for the trafficView property.
     *
     *

     * For example, to add a new item, do as follows:
     *

     *    getTrafficView().add(newItem);
     *

     *
     *
     *

     * Objects of the following type(s) are allowed in the list
     * {@link TrafficView }
     *
     *
     */
    public List<TrafficView> getTrafficView() {
        if (trafficView == null) {
            trafficView = new ArrayList<TrafficView>();
        }
        return this.trafficView;
    }

    /**
     * Gets the value of the trafficViewPublicationExtension property.
     *
     * @return
     *     possible object is
     *     {@link ExtensionType }
     *
     */
    public ExtensionType getTrafficViewPublicationExtension() {
        return trafficViewPublicationExtension;
    }

    /**
     * Sets the value of the trafficViewPublicationExtension property.
     *
     * @param value
     *     allowed object is
     *     {@link ExtensionType }
     *
     */
    public void setTrafficViewPublicationExtension(ExtensionType value) {
        this.trafficViewPublicationExtension = value;
    }

}


text:
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block bodyclass %}grp-docutils{% endblock %}
{% block title %}Please install docutils{% endblock %}

{% block breadcrumbs %}

{% trans "Home" %}

Documentation

{% endblock %}

{% block content %}

Documentation

The admin documentation system requires Python's docutils library.

Please ask your administrators to install docutils.

{% endblock %}


text:
require 'helper'

class TestConf < Test::Unit::TestCase
  def setup
    FileUtils.rm_rf(Conf::config_file)
  end

  def teardown
    FileUtils.rm_rf(Conf::config_file)
  end

  def validate_settings
    assert_equal(1, Conf::get('net.tcp.foobar'))
    assert_equal('blah', Conf::get('net.tcp.barbar'))
    assert(Conf::exists?('net.tcp.foobar'))
    assert(Conf::exists?('net.tcp.barbar'))
    assert(!Conf::exists?('net.tcp'))

    assert_equal(['barbar', 'foobar'].sort, Conf::list('net.tcp'))
    assert_equal(['tcp'].sort, Conf::list('net'))

    assert_equal([], Conf::list(''))
    assert_equal([], Conf::list('net.tc'))
  end

  def test_config
    Conf::set('net.tcp.foobar', 1)
    Conf::set('net.tcp.barbar', "blah")

    validate_settings

    ['.sys.blah', 'sys.blah.', ''].each do |bad|
      begin
        Conf::set(bad, rand(5))
      rescue
        # Should throw exception
      else
        assert(false, "Did not throw exception setting: #{bad}")
      end
    end

    assert(File.exist?(Conf::config_file), "Conf file doesn't exist")

    # Now reload
    #
    Conf::load

    # retest after reload
    validate_settings
  end
end


text:
@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
"%WINPYDIR%\python.exe" -m winpython.controlpanel %*


text:
<?php

namespace Lib\getui;

class CmdID extends PBEnum {

    const GTHEARDBT = 0;
    const GTAUTH = 1;
    const GTAUTH_RESULT = 2;
    const REQSERVHOST = 3;
    const REQSERVHOSTRESULT = 4;
    const PUSHRESULT = 5;
    const PUSHOSSINGLEMESSAGE = 6;
    const PUSHMMPSINGLEMESSAGE = 7;
    const STARTMMPBATCHTASK = 8;
    const STARTOSBATCHTASK = 9;
    const PUSHLISTMESSAGE = 10;
    const ENDBATCHTASK = 11;
    const PUSHMMPAPPMESSAGE = 12;
    const SERVERNOTIFY = 13;
    const PUSHLISTRESULT = 14;
    const SERVERNOTIFYRESULT = 15;

}

class GtAuth extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
        $this->fields["3"] = "PBInt";
        $this->values["3"] = "";
        $this->fields["4"] = "PBString";
        $this->values["4"] = "";
    }

    function sign() {
        return $this->_get_value("1");
    }

    function set_sign($value) {
        return $this->_set_value("1", $value);
    }

    function appkey() {
        return $this->_get_value("2");
    }

    function set_appkey($value) {
        return $this->_set_value("2", $value);
    }

    function timestamp() {
        return $this->_get_value("3");
    }

    function set_timestamp($value) {
        return $this->_set_value("3", $value);
    }

    function seqId() {
        return $this->_get_value("4");
    }

    function set_seqId($value) {
        return $this->_set_value("4", $value);
    }

}

class GtAuthResult_GtAuthResultCode extends PBEnum {

    const successed = 0;
    const failed_noSign = 1;
    const failed_noAppkey = 2;
    const failed_noTimestamp = 3;
    const failed_AuthIllegal = 4;
    const redirect = 5;

}

class GtAuthResult extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBInt";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
        $this->fields["3"] = "PBString";
        $this->values["3"] = "";
        $this->fields["4"] = "PBString";
        $this->values["4"] = "";
    }

    function code() {
        return $this->_get_value("1");
    }

    function set_code($value) {
        return $this->_set_value("1", $value);
    }

    function redirectAddress() {
        return $this->_get_value("2");
    }

    function set_redirectAddress($value) {
        return $this->_set_value("2", $value);
    }

    function seqId() {
        return $this->_get_value("3");
    }

    function set_seqId($value) {
        return $this->_set_value("3", $value);
    }

    function info() {
        return $this->_get_value("4");
    }

    function set_info($value) {
        return $this->_set_value("4", $value);
    }

}

class ReqServList extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["3"] = "PBInt";
        $this->values["3"] = "";
    }

    function seqId() {
        return $this->_get_value("1");
    }

    function set_seqId($value) {
        return $this->_set_value("1", $value);
    }

    function timestamp() {
        return $this->_get_value("3");
    }

    function set_timestamp($value) {
        return $this->_set_value("3", $value);
    }

}

class ReqServListResult_ReqServHostResultCode extends PBEnum {

    const successed = 0;
    const failed = 1;
    const busy = 2;

}

class ReqServListResult extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBInt";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = array();
        $this->fields["3"] = "PBString";
        $this->values["3"] = "";
    }

    function code() {
        return $this->_get_value("1");
    }

    function set_code($value) {
        return $this->_set_value("1", $value);
    }

    function host($offset) {
        $v = $this->_get_arr_value("2", $offset);
        return $v->get_value();
    }

    function append_host($value) {
        $v = $this->_add_arr_value("2");
        $v->set_value($value);
    }

    function set_host($index, $value) {
        $v = new $this->fields["2"]();
        $v->set_value($value);
        $this->_set_arr_value("2", $index, $v);
    }

    function remove_last_host() {
        $this->_remove_last_arr_value("2");
    }

    function host_size() {
        return $this->_get_arr_size("2");
    }

    function seqId() {
        return $this->_get_value("3");
    }

    function set_seqId($value) {
        return $this->_set_value("3", $value);
    }

}

class PushResult_EPushResult extends PBEnum {

    const successed_online = 0;
    const successed_offline = 1;
    const successed_ignore = 2;
    const failed = 3;
    const busy = 4;
    const success_startBatch = 5;
    const success_endBatch = 6;

}

class PushResult extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PushResult_EPushResult";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
        $this->fields["3"] = "PBString";
        $this->values["3"] = "";
        $this->fields["4"] = "PBString";
        $this->values["4"] = "";
        $this->fields["5"] = "PBString";
        $this->values["5"] = "";
        $this->fields["6"] = "PBString";
        $this->values["6"] = "";
        $this->fields["7"] = "PBString";
        $this->values["7"] = "";
    }

    function result() {
        return $this->_get_value("1");
    }

    function set_result($value) {
        return $this->_set_value("1", $value);
    }

    function taskId() {
        return $this->_get_value("2");
    }

    function set_taskId($value) {
        return $this->_set_value("2", $value);
    }

    function messageId() {
        return $this->_get_value("3");
    }

    function set_messageId($value) {
        return $this->_set_value("3", $value);
    }

    function seqId() {
        return $this->_get_value("4");
    }

    function set_seqId($value) {
        return $this->_set_value("4", $value);
    }

    function target() {
        return $this->_get_value("5");
    }

    function set_target($value) {
        return $this->_set_value("5", $value);
    }

    function info() {
        return $this->_get_value("6");
    }

    function set_info($value) {
        return $this->_set_value("6", $value);
    }

    function traceId() {
        return $this->_get_value("7");
    }

    function set_traceId($value) {
        return $this->_set_value("7", $value);
    }

}

class PushListResult extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PushResult";
        $this->values["1"] = array();
    }

    function results($offset) {
        return $this->_get_arr_value("1", $offset);
    }

    function add_results() {
        return $this->_add_arr_value("1");
    }

    function set_results($index, $value) {
        $this->_set_arr_value("1", $index, $value);
    }

    function remove_last_results() {
        $this->_remove_last_arr_value("1");
    }

    function results_size() {
        return $this->_get_arr_size("1");
    }

}

class Button extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "PBInt";
        $this->values["2"] = "";
    }

    function text() {
        return $this->_get_value("1");
    }

    function set_text($value) {
        return $this->_set_value("1", $value);
    }

    function next() {
        return $this->_get_value("2");
    }

    function set_next($value) {
        return $this->_set_value("2", $value);
    }

}

class AppStartUp extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
        $this->fields["3"] = "PBString";
        $this->values["3"] = "";
    }

    function android() {
        return $this->_get_value("1");
    }

    function set_android($value) {
        return $this->_set_value("1", $value);
    }

    function symbia() {
        return $this->_get_value("2");
    }

    function set_symbia($value) {
        return $this->_set_value("2", $value);
    }

    function ios() {
        return $this->_get_value("3");
    }

    function set_ios($value) {
        return $this->_set_value("3", $value);
    }

}

class ActionChain_Type extends PBEnum {

    const refer = 0;
    const notification = 1;
    const popup = 2;
    const startapp = 3;
    const startweb = 4;
    const smsinbox = 5;
    const checkapp = 6;
    const eoa = 7;
    const appdownload = 8;
    const startsms = 9;
    const httpproxy = 10;
    const smsinbox2 = 11;
    const mmsinbox2 = 12;
    const popupweb = 13;
    const dial = 14;
    const reportbindapp = 15;
    const reportaddphoneinfo = 16;
    const reportapplist = 17;
    const terminatetask = 18;
    const reportapp = 19;
    const enablelog = 20;
    const disablelog = 21;
    const uploadlog = 22;

}

class ActionChain_SMSStatus extends PBEnum {

    const unread = 0;
    const read = 1;

}

class ActionChain extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBInt";
        $this->values["1"] = "";
        $this->fields["2"] = "ActionChain_Type";
        $this->values["2"] = "";
        $this->fields["3"] = "PBInt";
        $this->values["3"] = "";
        $this->fields["100"] = "PBString";
        $this->values["100"] = "";
        $this->fields["101"] = "PBString";
        $this->values["101"] = "";
        $this->fields["102"] = "PBString";
        $this->values["102"] = "";
        $this->fields["103"] = "PBString";
        $this->values["103"] = "";
        $this->fields["104"] = "PBBool";
        $this->values["104"] = "";
        $this->fields["105"] = "PBBool";
        $this->values["105"] = "";
        $this->fields["106"] = "PBBool";
        $this->values["106"] = "";
        $this->fields["107"] = "PBString";
        $this->values["107"] = "";
        $this->fields["120"] = "PBString";
        $this->values["120"] = "";
        $this->fields["121"] = "Button";
        $this->values["121"] = array();
        $this->fields["140"] = "PBString";
        $this->values["140"] = "";
        $this->fields["141"] = "AppStartUp";
        $this->values["141"] = "";
        $this->fields["142"] = "PBBool";
        $this->values["142"] = "";
        $this->fields["143"] = "PBInt";
        $this->values["143"] = "";
        $this->fields["160"] = "PBString";
        $this->values["160"] = "";
        $this->fields["161"] = "PBString";
        $this->values["161"] = "";
        $this->fields["162"] = "PBBool";
        $this->values["162"] = "";
        $this->values["162"] = new PBBool();
        $this->values["162"]->value = false;
        $this->fields["180"] = "PBString";
        $this->values["180"] = "";
        $this->fields["181"] = "PBString";
        $this->values["181"] = "";
        $this->fields["182"] = "PBInt";
        $this->values["182"] = "";
        $this->fields["183"] = "ActionChain_SMSStatus";
        $this->values["183"] = "";
        $this->fields["200"] = "PBInt";
        $this->values["200"] = "";
        $this->fields["201"] = "PBInt";
        $this->values["201"] = "";
        $this->fields["220"] = "PBString";
        $this->values["220"] = "";
        $this->fields["223"] = "PBBool";
        $this->values["223"] = "";
        $this->fields["225"] = "PBBool";
        $this->values["225"] = "";
        $this->fields["226"] = "PBBool";
        $this->values["226"] = "";
        $this->fields["227"] = "PBBool";
        $this->values["227"] = "";
        $this->fields["241"] = "PBString";
        $this->values["241"] = "";
        $this->fields["242"] = "PBString";
        $this->values["242"] = "";
        $this->fields["260"] = "PBBool";
        $this->values["260"] = "";
        $this->fields["280"] = "PBString";
        $this->values["280"] = "";
        $this->fields["281"] = "PBString";
        $this->values["281"] = "";
        $this->fields["300"] = "PBBool";
        $this->values["300"] = "";
        $this->fields["320"] = "PBString";
        $this->values["320"] = "";
        $this->fields["340"] = "PBInt";
        $this->values["340"] = "";
        $this->fields["360"] = "PBString";
        $this->values["360"] = "";
    }

    function actionId() {
        return $this->_get_value("1");
    }

    function set_actionId($value) {
        return $this->_set_value("1", $value);
    }

    function type() {
        return $this->_get_value("2");
    }

    function set_type($value) {
        return $this->_set_value("2", $value);
    }

    function next() {
        return $this->_get_value("3");
    }

    function set_next($value) {
        return $this->_set_value("3", $value);
    }

    function logo() {
        return $this->_get_value("100");
    }

    function set_logo($value) {
        return $this->_set_value("100", $value);
    }

    function logoURL() {
        return $this->_get_value("101");
    }

    function set_logoURL($value) {
        return $this->_set_value("101", $value);
    }

    function title() {
        return $this->_get_value("102");
    }

    function set_title($value) {
        return $this->_set_value("102", $value);
    }

    function text() {
        return $this->_get_value("103");
    }

    function set_text($value) {
        return $this->_set_value("103", $value);
    }

    function clearable() {
        return $this->_get_value("104");
    }

    function set_clearable($value) {
        return $this->_set_value("104", $value);
    }

    function ring() {
        return $this->_get_value("105");
    }

    function set_ring($value) {
        return $this->_set_value("105", $value);
    }

    function buzz() {
        return $this->_get_value("106");
    }

    function set_buzz($value) {
        return $this->_set_value("106", $value);
    }

    function bannerURL() {
        return $this->_get_value("107");
    }

    function set_bannerURL($value) {
        return $this->_set_value("107", $value);
    }

    function img() {
        return $this->_get_value("120");
    }

    function set_img($value) {
        return $this->_set_value("120", $value);
    }

    function buttons($offset) {
        return $this->_get_arr_value("121", $offset);
    }

    function add_buttons() {
        return $this->_add_arr_value("121");
    }

    function set_buttons($index, $value) {
        $this->_set_arr_value("121", $index, $value);
    }

    function remove_last_buttons() {
        $this->_remove_last_arr_value("121");
    }

    function buttons_size() {
        return $this->_get_arr_size("121");
    }

    function appid() {
        return $this->_get_value("140");
    }

    function set_appid($value) {
        return $this->_set_value("140", $value);
    }

    function appstartupid() {
        return $this->_get_value("141");
    }

    function set_appstartupid($value) {
        return $this->_set_value("141", $value);
    }

    function autostart() {
        return $this->_get_value("142");
    }

    function set_autostart($value) {
        return $this->_set_value("142", $value);
    }

    function failedAction() {
        return $this->_get_value("143");
    }

    function set_failedAction($value) {
        return $this->_set_value("143", $value);
    }

    function url() {
        return $this->_get_value("160");
    }

    function set_url($value) {
        return $this->_set_value("160", $value);
    }

    function withcid() {
        return $this->_get_value("161");
    }

    function set_withcid($value) {
        return $this->_set_value("161", $value);
    }

    function is_withnettype() {
        return $this->_get_value("162");
    }

    function set_is_withnettype($value) {
        return $this->_set_value("162", $value);
    }

    function address() {
        return $this->_get_value("180");
    }

    function set_address($value) {
        return $this->_set_value("180", $value);
    }

    function content() {
        return $this->_get_value("181");
    }

    function set_content($value) {
        return $this->_set_value("181", $value);
    }

    function ct() {
        return $this->_get_value("182");
    }

    function set_ct($value) {
        return $this->_set_value("182", $value);
    }

    function flag() {
        return $this->_get_value("183");
    }

    function set_flag($value) {
        return $this->_set_value("183", $value);
    }

    function successedAction() {
        return $this->_get_value("200");
    }

    function set_successedAction($value) {
        return $this->_set_value("200", $value);
    }

    function uninstalledAction() {
        return $this->_get_value("201");
    }

    function set_uninstalledAction($value) {
        return $this->_set_value("201", $value);
    }

    function name() {
        return $this->_get_value("220");
    }

    function set_name($value) {
        return $this->_set_value("220", $value);
    }

    function autoInstall() {
        return $this->_get_value("223");
    }

    function set_autoInstall($value) {
        return $this->_set_value("223", $value);
    }

    function wifiAutodownload() {
        return $this->_get_value("225");
    }

    function set_wifiAutodownload($value) {
        return $this->_set_value("225", $value);
    }

    function forceDownload() {
        return $this->_get_value("226");
    }

    function set_forceDownload($value) {
        return $this->_set_value("226", $value);
    }

    function showProgress() {
        return $this->_get_value("227");
    }

    function set_showProgress($value) {
        return $this->_set_value("227", $value);
    }

    function post() {
        return $this->_get_value("241");
    }

    function set_post($value) {
        return $this->_set_value("241", $value);
    }

    function headers() {
        return $this->_get_value("242");
    }

    function set_headers($value) {
        return $this->_set_value("242", $value);
    }

    function groupable() {
        return $this->_get_value("260");
    }

    function set_groupable($value) {
        return $this->_set_value("260", $value);
    }

    function mmsTitle() {
        return $this->_get_value("280");
    }

    function set_mmsTitle($value) {
        return $this->_set_value("280", $value);
    }

    function mmsURL() {
        return $this->_get_value("281");
    }

    function set_mmsURL($value) {
        return $this->_set_value("281", $value);
    }

    function preload() {
        return $this->_get_value("300");
    }

    function set_preload($value) {
        return $this->_set_value("300", $value);
    }

    function taskid() {
        return $this->_get_value("320");
    }

    function set_taskid($value) {
        return $this->_set_value("320", $value);
    }

    function duration() {
        return $this->_get_value("340");
    }

    function set_duration($value) {
        return $this->_set_value("340", $value);
    }

    function date() {
        return $this->_get_value("360");
    }

    function set_date($value) {
        return $this->_set_value("360", $value);
    }

}

class Transparent extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
        $this->fields["3"] = "PBString";
        $this->values["3"] = "";
        $this->fields["4"] = "PBString";
        $this->values["4"] = "";
        $this->fields["5"] = "PBString";
        $this->values["5"] = "";
        $this->fields["6"] = "PBString";
        $this->values["6"] = "";
        $this->fields["7"] = "PushInfo";
        $this->values["7"] = "";
        $this->fields["8"] = "ActionChain";
        $this->values["8"] = array();
        $this->fields["9"] = "PBString";
        $this->values["9"] = array();
    }

    function id() {
        return $this->_get_value("1");
    }

    function set_id($value) {
        return $this->_set_value("1", $value);
    }

    function action() {
        return $this->_get_value("2");
    }

    function set_action($value) {
        return $this->_set_value("2", $value);
    }

    function taskId() {
        return $this->_get_value("3");
    }

    function set_taskId($value) {
        return $this->_set_value("3", $value);
    }

    function appKey() {
        return $this->_get_value("4");
    }

    function set_appKey($value) {
        return $this->_set_value("4", $value);
    }

    function appId() {
        return $this->_get_value("5");
    }

    function set_appId($value) {
        return $this->_set_value("5", $value);
    }

    function messageId() {
        return $this->_get_value("6");
    }

    function set_messageId($value) {
        return $this->_set_value("6", $value);
    }

    function pushInfo() {
        return $this->_get_value("7");
    }

    function set_pushInfo($value) {
        return $this->_set_value("7", $value);
    }

    function actionChain($offset) {
        return $this->_get_arr_value("8", $offset);
    }

    function add_actionChain() {
        return $this->_add_arr_value("8");
    }

    function set_actionChain($index, $value) {
        $this->_set_arr_value("8", $index, $value);
    }

    function remove_last_actionChain() {
        $this->_remove_last_arr_value("8");
    }

    function actionChain_size() {
        return $this->_get_arr_size("8");
    }

    function condition($offset) {
        $v = $this->_get_arr_value("9", $offset);
        return $v->get_value();
    }

    function append_condition($value) {
        $v = $this->_add_arr_value("9");
        $v->set_value($value);
    }

    function set_condition($index, $value) {
        $v = new $this->fields["9"]();
        $v->set_value($value);
        $this->_set_arr_value("9", $index, $v);
    }

    function remove_last_condition() {
        $this->_remove_last_arr_value("9");
    }

    function condition_size() {
        return $this->_get_arr_size("9");
    }

}

class OSMessage extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["2"] = "PBBool";
        $this->values["2"] = "";
        $this->fields["3"] = "PBInt";
        $this->values["3"] = "";
        $this->fields["4"] = "Transparent";
        $this->values["4"] = "";
        $this->fields["5"] = "PBString";
        $this->values["5"] = "";
        $this->fields["6"] = "PBInt";
        $this->values["6"] = "";
        $this->fields["7"] = "PBInt";
        $this->values["7"] = "";
        $this->fields["8"] = "PBInt";
        $this->values["8"] = "";
    }

    function isOffline() {
        return $this->_get_value("2");
    }

    function set_isOffline($value) {
        return $this->_set_value("2", $value);
    }

    function offlineExpireTime() {
        return $this->_get_value("3");
    }

    function set_offlineExpireTime($value) {
        return $this->_set_value("3", $value);
    }

    function transparent() {
        return $this->_get_value("4");
    }

    function set_transparent($value) {
        return $this->_set_value("4", $value);
    }

    function extraData() {
        return $this->_get_value("5");
    }

    function set_extraData($value) {
        return $this->_set_value("5", $value);
    }

    function msgType() {
        return $this->_get_value("6");
    }

    function set_msgType($value) {
        return $this->_set_value("6", $value);
    }

    function msgTraceFlag() {
        return $this->_get_value("7");
    }

    function set_msgTraceFlag($value) {
        return $this->_set_value("7", $value);
    }

    function priority() {
        return $this->_get_value("8");
    }

    function set_priority($value) {
        return $this->_set_value("8", $value);
    }

}

class Target extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
    }

    function appId() {
        return $this->_get_value("1");
    }

    function set_appId($value) {
        return $this->_set_value("1", $value);
    }

    function clientId() {
        return $this->_get_value("2");
    }

    function set_clientId($value) {
        return $this->_set_value("2", $value);
    }

}

class PushOSSingleMessage extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "OSMessage";
        $this->values["2"] = "";
        $this->fields["3"] = "Target";
        $this->values["3"] = "";
    }

    function seqId() {
        return $this->_get_value("1");
    }

    function set_seqId($value) {
        return $this->_set_value("1", $value);
    }

    function message() {
        return $this->_get_value("2");
    }

    function set_message($value) {
        return $this->_set_value("2", $value);
    }

    function target() {
        return $this->_get_value("3");
    }

    function set_target($value) {
        return $this->_set_value("3", $value);
    }

}

class MMPMessage extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["2"] = "Transparent";
        $this->values["2"] = "";
        $this->fields["3"] = "PBString";
        $this->values["3"] = "";
        $this->fields["4"] = "PBInt";
        $this->values["4"] = "";
        $this->fields["5"] = "PBInt";
        $this->values["5"] = "";
        $this->fields["6"] = "PBInt";
        $this->values["6"] = "";
        $this->fields["7"] = "PBBool";
        $this->values["7"] = "";
        $this->values["7"] = new PBBool();
        $this->values["7"]->value = true;
        $this->fields["8"] = "PBInt";
        $this->values["8"] = "";
    }

    function transparent() {
        return $this->_get_value("2");
    }

    function set_transparent($value) {
        return $this->_set_value("2", $value);
    }

    function extraData() {
        return $this->_get_value("3");
    }

    function set_extraData($value) {
        return $this->_set_value("3", $value);
    }

    function msgType() {
        return $this->_get_value("4");
    }

    function set_msgType($value) {
        return $this->_set_value("4", $value);
    }

    function msgTraceFlag() {
        return $this->_get_value("5");
    }

    function set_msgTraceFlag($value) {
        return $this->_set_value("5", $value);
    }

    function msgOfflineExpire() {
        return $this->_get_value("6");
    }

    function set_msgOfflineExpire($value) {
        return $this->_set_value("6", $value);
    }

    function isOffline() {
        return $this->_get_value("7");
    }

    function set_isOffline($value) {
        return $this->_set_value("7", $value);
    }

    function priority() {
        return $this->_get_value("8");
    }

    function set_priority($value) {
        return $this->_set_value("8", $value);
    }

}

class PushMMPSingleMessage extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "MMPMessage";
        $this->values["2"] = "";
        $this->fields["3"] = "Target";
        $this->values["3"] = "";
    }

    function seqId() {
        return $this->_get_value("1");
    }

    function set_seqId($value) {
        return $this->_set_value("1", $value);
    }

    function message() {
        return $this->_get_value("2");
    }

    function set_message($value) {
        return $this->_set_value("2", $value);
    }

    function target() {
        return $this->_get_value("3");
    }

    function set_target($value) {
        return $this->_set_value("3", $value);
    }

}

class StartMMPBatchTask extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "MMPMessage";
        $this->values["1"] = "";
        $this->fields["2"] = "PBInt";
        $this->values["2"] = "";
        $this->fields["3"] = "PBString";
        $this->values["3"] = "";
    }

    function message() {
        return $this->_get_value("1");
    }

    function set_message($value) {
        return $this->_set_value("1", $value);
    }

    function expire() {
        return $this->_get_value("2");
    }

    function set_expire($value) {
        return $this->_set_value("2", $value);
    }

    function seqId() {
        return $this->_get_value("3");
    }

    function set_seqId($value) {
        return $this->_set_value("3", $value);
    }

}

class StartOSBatchTask extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "OSMessage";
        $this->values["1"] = "";
        $this->fields["2"] = "PBInt";
        $this->values["2"] = "";
    }

    function message() {
        return $this->_get_value("1");
    }

    function set_message($value) {
        return $this->_set_value("1", $value);
    }

    function expire() {
        return $this->_get_value("2");
    }

    function set_expire($value) {
        return $this->_set_value("2", $value);
    }

}

class SingleBatchItem extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBInt";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
    }

    function seqId() {
        return $this->_get_value("1");
    }

    function set_seqId($value) {
        return $this->_set_value("1", $value);
    }

    function data() {
        return $this->_get_value("2");
    }

    function set_data($value) {
        return $this->_set_value("2", $value);
    }

}

class SingleBatchRequest extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "SingleBatchItem";
        $this->values["2"] = array();
    }

    function batchId() {
        return $this->_get_value("1");
    }

    function set_batchId($value) {
        return $this->_set_value("1", $value);
    }

    function batchItem($offset) {
        return $this->_get_arr_value("2", $offset);
    }

    function add_batchItem() {
        return $this->_add_arr_value("2");
    }

    function set_batchItem($index, $value) {
        $this->_set_arr_value("2", $index, $value);
    }

    function remove_last_batchItem() {
        $this->_remove_last_arr_value("2");
    }

    function batchItem_size() {
        return $this->_get_arr_size("2");
    }

}

class PushListMessage extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
        $this->fields["3"] = "Target";
        $this->values["3"] = array();
    }

    function seqId() {
        return $this->_get_value("1");
    }

    function set_seqId($value) {
        return $this->_set_value("1", $value);
    }

    function taskId() {
        return $this->_get_value("2");
    }

    function set_taskId($value) {
        return $this->_set_value("2", $value);
    }

    function targets($offset) {
        return $this->_get_arr_value("3", $offset);
    }

    function add_targets() {
        return $this->_add_arr_value("3");
    }

    function set_targets($index, $value) {
        $this->_set_arr_value("3", $index, $value);
    }

    function remove_last_targets() {
        $this->_remove_last_arr_value("3");
    }

    function targets_size() {
        return $this->_get_arr_size("3");
    }

}

class EndBatchTask extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
    }

    function taskId() {
        return $this->_get_value("1");
    }

    function set_taskId($value) {
        return $this->_set_value("1", $value);
    }

    function seqId() {
        return $this->_get_value("2");
    }

    function set_seqId($value) {
        return $this->_set_value("2", $value);
    }

}

class PushMMPAppMessage extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "MMPMessage";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = array();
        $this->fields["3"] = "PBString";
        $this->values["3"] = array();
        $this->fields["4"] = "PBString";
        $this->values["4"] = array();
        $this->fields["5"] = "PBString";
        $this->values["5"] = "";
    }

    function message() {
        return $this->_get_value("1");
    }

    function set_message($value) {
        return $this->_set_value("1", $value);
    }

    function appIdList($offset) {
        $v = $this->_get_arr_value("2", $offset);
        return $v->get_value();
    }

    function append_appIdList($value) {
        $v = $this->_add_arr_value("2");
        $v->set_value($value);
    }

    function set_appIdList($index, $value) {
        $v = new $this->fields["2"]();
        $v->set_value($value);
        $this->_set_arr_value("2", $index, $v);
    }

    function remove_last_appIdList() {
        $this->_remove_last_arr_value("2");
    }

    function appIdList_size() {
        return $this->_get_arr_size("2");
    }

    function phoneTypeList($offset) {
        $v = $this->_get_arr_value("3", $offset);
        return $v->get_value();
    }

    function append_phoneTypeList($value) {
        $v = $this->_add_arr_value("3");
        $v->set_value($value);
    }

    function set_phoneTypeList($index, $value) {
        $v = new $this->fields["3"]();
        $v->set_value($value);
        $this->_set_arr_value("3", $index, $v);
    }

    function remove_last_phoneTypeList() {
        $this->_remove_last_arr_value("3");
    }

    function phoneTypeList_size() {
        return $this->_get_arr_size("3");
    }

    function provinceList($offset) {
        $v = $this->_get_arr_value("4", $offset);
        return $v->get_value();
    }

    function append_provinceList($value) {
        $v = $this->_add_arr_value("4");
        $v->set_value($value);
    }

    function set_provinceList($index, $value) {
        $v = new $this->fields["4"]();
        $v->set_value($value);
        $this->_set_arr_value("4", $index, $v);
    }

    function remove_last_provinceList() {
        $this->_remove_last_arr_value("4");
    }

    function provinceList_size() {
        return $this->_get_arr_size("4");
    }

    function seqId() {
        return $this->_get_value("5");
    }

    function set_seqId($value) {
        return $this->_set_value("5", $value);
    }

}

class ServerNotify_NotifyType extends PBEnum {

    const normal = 0;
    const serverListChanged = 1;
    const exception = 2;

}

class ServerNotify extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "ServerNotify_NotifyType";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
        $this->fields["3"] = "PBString";
        $this->values["3"] = "";
        $this->fields["4"] = "PBString";
        $this->values["4"] = "";
    }

    function type() {
        return $this->_get_value("1");
    }

    function set_type($value) {
        return $this->_set_value("1", $value);
    }

    function info() {
        return $this->_get_value("2");
    }

    function set_info($value) {
        return $this->_set_value("2", $value);
    }

    function extradata() {
        return $this->_get_value("3");
    }

    function set_extradata($value) {
        return $this->_set_value("3", $value);
    }

    function seqId() {
        return $this->_get_value("4");
    }

    function set_seqId($value) {
        return $this->_set_value("4", $value);
    }

}

class ServerNotifyResult extends PBMessage {

    var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;

    public function __construct($reader = null) {
        parent::__construct($reader);
        $this->fields["1"] = "PBString";
        $this->values["1"] = "";
        $this->fields["2"] = "PBString";
        $this->values["2"] = "";
    }

    function seqId() {
        return $this->_get_value("1");
    }

    function set_seqId($value) {
        return $this->_set_value("1", $value);
    }

    function info() {
        return $this->_get_value("2");
    }

    function set_info($value) {
        return $this->_set_value("2", $value);
    }

}

?>


text:
<!doctype html>

  <meta charset="UTF-8">
  <title>Example - example-ng-cloak-jquery</title>

{{ 'hello' }}

{{ 'world' }}


text:
using System;
using System.IO;
using System.Linq;
using Xunit;

namespace Microsoft.Win32.RegistryTests
{
    public class RegistryKey_GetValueNames : RegistryTestsBase
    {
        [Fact]
        public void ShoudThrowIfDisposed()
        {
            Assert.Throws<ObjectDisposedException>(() =>
            {
                TestRegistryKey.Dispose();
                TestRegistryKey.GetValueNames();
            });
        }

        [Fact]
        public void ShouldThrowIfRegistryKeyDeleted()
        {
            Registry.CurrentUser.DeleteSubKeyTree(TestRegistryKeyName);
            Assert.Throws<IOException>(() => TestRegistryKey.GetValueNames());
        }

        [Fact]
        public void TestGetValueNames()
        {
            // [] Add several values and get the values then check the names
            Assert.Equal(expected: 0, actual: TestRegistryKey.GetValueNames().Length);

            string[] expected = { TestRegistryKeyName };
            foreach (string valueName in expected)
            {
                TestRegistryKey.SetValue(valueName, 5);
            }

            Assert.Equal(expected, TestRegistryKey.GetValueNames());

            TestRegistryKey.DeleteValue(TestRegistryKeyName);
            Assert.Equal(expected: 0, actual: TestRegistryKey.GetValueNames().Length);
        }

        [Fact]
        public void TestGetValueNames2()
        {
            foreach (var testCase in TestData.TestValueTypes)
            {
                TestRegistryKey.SetValue(testCase[0].ToString(), testCase[1]);
            }

            string[] expected = TestData.TestValueTypes.Select(x => x[0].ToString()).ToArray();
            Assert.Equal(expected, TestRegistryKey.GetValueNames());
        }

        [Fact]
        public static void TestGetValueNamesForPerformanceData()
        {
            var rk = Registry.PerformanceData;
            string[] names = rk.GetValueNames();
            Assert.Equal(new string[] { "Global", "Costly" }, names);
        }
    }
}


text:
package org.apache.hadoop.hdfs.web;

import static org.junit.Assert.fail;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketTimeoutException;
import java.nio.channels.SocketChannel;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hdfs.client.HdfsClientConfigKeys;
import org.apache.hadoop.hdfs.DFSConfigKeys;
import org.apache.hadoop.io.IOUtils;
import org.apache.hadoop.net.NetUtils;
import org.apache.hadoop.security.authentication.client.ConnectionConfigurator;
import org.apache.hadoop.test.GenericTestUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameter;
import org.junit.runners.Parameterized.Parameters;
import org.junit.Test;

/**
 * This test suite checks that WebHdfsFileSystem sets connection timeouts and
 * read timeouts on its sockets, thus preventing threads from hanging
 * indefinitely on an undefined/infinite timeout.  The tests work by starting a
 * bogus server on the namenode HTTP port, which is rigged to not accept new
 * connections or to accept connections but not send responses.
 */
@RunWith(Parameterized.class)
public class TestWebHdfsTimeouts {

  private static final Log LOG = LogFactory.getLog(TestWebHdfsTimeouts.class);

  private static final int CLIENTS_TO_CONSUME_BACKLOG = 129;
  private static final int CONNECTION_BACKLOG = 1;
  private static final int SHORT_SOCKET_TIMEOUT = 200;
  private static final int TEST_TIMEOUT = 100000;

  private List<SocketChannel> clients;
  private WebHdfsFileSystem fs;
  private InetSocketAddress nnHttpAddress;
  private ServerSocket serverSocket;
  private Thread serverThread;
  private final URLConnectionFactory connectionFactory = new URLConnectionFactory(new ConnectionConfigurator() {
    @Override
    public HttpURLConnection configure(HttpURLConnection conn) throws IOException {
      conn.setReadTimeout(SHORT_SOCKET_TIMEOUT);
      conn.setConnectTimeout(SHORT_SOCKET_TIMEOUT);
      return conn;
    }
  });

  public enum TimeoutSource { ConnectionFactory, Configuration };

  /**
   * Run all tests twice: once with the timeouts set by the
   * connection factory, and again with the timeouts set by
   * configuration options.
   */
  @Parameters(name = "timeoutSource={0}")
  public static Collection<Object[]> data() {
    return Arrays.asList(new Object[][] {
      { TimeoutSource.ConnectionFactory },
      { TimeoutSource.Configuration }
    });
  }

  @Parameter
  public TimeoutSource timeoutSource;

  @Before
  public void setUp() throws Exception {
    Configuration conf = WebHdfsTestUtil.createConf();
    serverSocket = new ServerSocket(0, CONNECTION_BACKLOG);
    nnHttpAddress = new InetSocketAddress("localhost", serverSocket.getLocalPort());
    conf.set(DFSConfigKeys.DFS_NAMENODE_HTTP_ADDRESS_KEY, "localhost:" + serverSocket.getLocalPort());
    if (timeoutSource == TimeoutSource.Configuration) {
      String v = Integer.toString(SHORT_SOCKET_TIMEOUT) + "ms";
      conf.set(HdfsClientConfigKeys.DFS_WEBHDFS_SOCKET_CONNECT_TIMEOUT_KEY, v);
      conf.set(HdfsClientConfigKeys.DFS_WEBHDFS_SOCKET_READ_TIMEOUT_KEY, v);
    }

    fs = WebHdfsTestUtil.getWebHdfsFileSystem(conf, WebHdfsConstants.WEBHDFS_SCHEME);
    if (timeoutSource == TimeoutSource.ConnectionFactory) {
      fs.connectionFactory = connectionFactory;
    }

    clients = new ArrayList<SocketChannel>();
    serverThread = null;
  }

  @After
  public void tearDown() throws Exception {
    IOUtils.cleanup(LOG, clients.toArray(new SocketChannel[clients.size()]));
    IOUtils.cleanup(LOG, fs);
    if (serverSocket != null) {
      try {
        serverSocket.close();
      } catch (IOException e) {
        LOG.debug("Exception in closing " + serverSocket, e);
      }
    }
    if (serverThread != null) {
      serverThread.join();
    }
  }

  /**
   * Expect connect timeout, because the connection backlog is consumed.
   */
  @Test(timeout=TEST_TIMEOUT)
  public void testConnectTimeout() throws Exception {
    consumeConnectionBacklog();
    try {
      fs.listFiles(new Path("/"), false);
      fail("expected timeout");
    } catch (SocketTimeoutException e) {
      GenericTestUtils.assertExceptionContains(fs.getUri().getAuthority()
          + ": connect timed out",e);
    }
  }

  /**
   * Expect read timeout, because the bogus server never sends a reply.
   */
  @Test(timeout=TEST_TIMEOUT)
  public void testReadTimeout() throws Exception {
    try {
      fs.listFiles(new Path("/"), false);
      fail("expected timeout");
    } catch (SocketTimeoutException e) {
      GenericTestUtils.assertExceptionContains(fs.getUri().getAuthority() +
          ": Read timed out", e);
    }
  }

  /**
   * Expect connect timeout on a URL that requires auth, because the connection
   * backlog is consumed.
   */
  @Test(timeout=TEST_TIMEOUT)
  public void testAuthUrlConnectTimeout() throws Exception {
    consumeConnectionBacklog();
    try {
      fs.getDelegationToken("renewer");
      fail("expected timeout");
    } catch (SocketTimeoutException e) {
      GenericTestUtils.assertExceptionContains(fs.getUri().getAuthority() +
          ": connect timed out", e);
    }
  }

  /**
   * Expect read timeout on a URL that requires auth, because the bogus server
   * never sends a reply.
   */
  @Test(timeout=TEST_TIMEOUT)
  public void testAuthUrlReadTimeout() throws Exception {
    try {
      fs.getDelegationToken("renewer");
      fail("expected timeout");
    } catch (SocketTimeoutException e) {
      GenericTestUtils.assertExceptionContains(
          fs.getUri().getAuthority() + ": Read timed out", e);
    }
  }

  /**
   * After a redirect, expect connect timeout accessing the redirect location,
   * because the connection backlog is consumed.
   */
  @Test(timeout=TEST_TIMEOUT)
  public void testRedirectConnectTimeout() throws Exception {
    startSingleTemporaryRedirectResponseThread(true);
    try {
      fs.getFileChecksum(new Path("/file"));
      fail("expected timeout");
    } catch (SocketTimeoutException e) {
      GenericTestUtils.assertExceptionContains(
          fs.getUri().getAuthority() + ": connect timed out", e);
    }
  }

  /**
   * After a redirect, expect read timeout accessing the redirect location,
   * because the bogus server never sends a reply.
   */
  @Test(timeout=TEST_TIMEOUT)
  public void testRedirectReadTimeout() throws Exception {
    startSingleTemporaryRedirectResponseThread(false);
    try {
      fs.getFileChecksum(new Path("/file"));
      fail("expected timeout");
    } catch (SocketTimeoutException e) {
      GenericTestUtils.assertExceptionContains(
          fs.getUri().getAuthority() + ": Read timed out", e);
    }
  }

  /**
   * On the second step of two-step write, expect connect timeout accessing the
   * redirect location, because the connection backlog is consumed.
   */
  @Test(timeout=TEST_TIMEOUT)
  public void testTwoStepWriteConnectTimeout() throws Exception {
    startSingleTemporaryRedirectResponseThread(true);
    OutputStream os = null;
    try {
      os = fs.create(new Path("/file"));
      fail("expected timeout");
    } catch (SocketTimeoutException e) {
      GenericTestUtils.assertExceptionContains(
          fs.getUri().getAuthority() + ": connect timed out", e);
    } finally {
      IOUtils.cleanup(LOG, os);
    }
  }

  /**
   * On the second step of two-step write, expect read timeout accessing the
   * redirect location, because the bogus server never sends a reply.
   */
  @Test(timeout=TEST_TIMEOUT)
  public void testTwoStepWriteReadTimeout() throws Exception {
    startSingleTemporaryRedirectResponseThread(false);
    OutputStream os = null;
    try {
      os = fs.create(new Path("/file"));
      os.close(); // must close stream to force reading the HTTP response
      os = null;
      fail("expected timeout");
    } catch (SocketTimeoutException e) {
      GenericTestUtils.assertExceptionContains("Read timed out", e);
    } finally {
      IOUtils.cleanup(LOG, os);
    }
  }

  /**
   * Starts a background thread that accepts one and only one client connection
   * on the server socket, sends an HTTP 307 Temporary Redirect response, and
   * then exits.  This is useful for testing timeouts on the second step of
   * methods that issue 2 HTTP requests (request 1, redirect, request 2).
   *
   * For handling the first request, this method sets socket timeout to use the
   * initial values defined in URLUtils.  Afterwards, it guarantees that the
   * second request will use a very short timeout.
   *
   * Optionally, the thread may consume the connection backlog immediately after
   * receiving its one and only client connection.  This is useful for forcing a
   * connection timeout on the second request.
   *
   * On tearDown, open client connections are closed, and the thread is joined.
   *
   * @param consumeConnectionBacklog boolean whether or not to consume connection
   *   backlog and thus force a connection timeout on the second request
   */
  private void startSingleTemporaryRedirectResponseThread(
      final boolean consumeConnectionBacklog) {
    fs.connectionFactory = URLConnectionFactory.DEFAULT_SYSTEM_CONNECTION_FACTORY;
    serverThread = new Thread() {
      @Override
      public void run() {
        Socket clientSocket = null;
        OutputStream out = null;
        InputStream in = null;
        InputStreamReader isr = null;
        BufferedReader br = null;
        try {
          // Accept one and only one client connection.
          clientSocket = serverSocket.accept();

          // Immediately setup conditions for subsequent connections.
          fs.connectionFactory = connectionFactory;
          if (consumeConnectionBacklog) {
            consumeConnectionBacklog();
          }

          // Consume client's HTTP request by reading until EOF or empty line.
          in = clientSocket.getInputStream();
          isr = new InputStreamReader(in);
          br = new BufferedReader(isr);
          for (;;) {
            String line = br.readLine();
            if (line == null || line.isEmpty()) {
              break;
            }
          }

          // Write response.
          out = clientSocket.getOutputStream();
          out.write(temporaryRedirect().getBytes("UTF-8"));
        } catch (IOException e) {
          // Fail the test on any I/O error in the server thread.
          LOG.error("unexpected IOException in server thread", e);
          fail("unexpected IOException in server thread: " + e);
        } finally {
          // Clean it all up.
          IOUtils.cleanup(LOG, br, isr, in, out);
          IOUtils.closeSocket(clientSocket);
        }
      }
    };
    serverThread.start();
  }

  /**
   * Consumes the test server's connection backlog by spamming non-blocking
   * SocketChannel client connections.  We never do anything with these sockets
   * beyond just initiaing the connections.  The method saves a reference to each
   * new SocketChannel so that it can be closed during tearDown.  We define a
   * very small connection backlog, but the OS may silently enforce a larger
   * minimum backlog than requested.  To work around this, we create far more
   * client connections than our defined backlog.
   *
   * @throws IOException thrown for any I/O error
   */
  private void consumeConnectionBacklog() throws IOException {
    for (int i = 0; i < CLIENTS_TO_CONSUME_BACKLOG; ++i) {
      SocketChannel client = SocketChannel.open();
      client.configureBlocking(false);
      client.connect(nnHttpAddress);
      clients.add(client);
    }
  }

  /**
   * Creates an HTTP 307 response with the redirect location set back to the
   * test server's address.  HTTP is supposed to terminate newlines with CRLF, so
   * we hard-code that instead of using the line separator property.
   *
   * @return String HTTP 307 response
   */
  private String temporaryRedirect() {
    return "HTTP/1.1 307 Temporary Redirect\r\n" +
      "Location: http://" + NetUtils.getHostPortString(nnHttpAddress) + "\r\n" +
      "\r\n";
  }
}


text:
@javax.xml.bind.annotation.XmlSchema(namespace = "http://server.webservice.base.com/")
package com.base.webservice.client;