text:
#ifndef QQUERYPARSER_P_H
#define QQUERYPARSER_P_H

//
//  W A R N I N G
//  -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the help generator tools. This header file may change from version
// to version without notice, or even be removed.
//
// We mean it.
//

#include "qreader_p.h"
#include "qanalyzer_p.h"
#include "qclucene_global_p.h"

#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QSharedDataPointer>
#include <QtCore/QSharedData>

CL_NS_DEF(queryParser)
    class QueryParser;
CL_NS_END
CL_NS_USE(queryParser)

QT_BEGIN_NAMESPACE

class QCLuceneQuery;
class QCLuceneMultiFieldQueryParser;

class Q_CLUCENE_EXPORT QCLuceneQueryParserPrivate : public QSharedData
{
public:
    QCLuceneQueryParserPrivate();
    QCLuceneQueryParserPrivate(const QCLuceneQueryParserPrivate &other);

    ~QCLuceneQueryParserPrivate();

    QueryParser *queryParser;
    bool deleteCLuceneQueryParser;

private:
    QCLuceneQueryParserPrivate &operator=(const QCLuceneQueryParserPrivate &other);
};

class Q_CLUCENE_EXPORT QCLuceneQueryParser
{
public:
    QCLuceneQueryParser(const QString &field, QCLuceneAnalyzer &analyzer);
    virtual ~QCLuceneQueryParser();

    QCLuceneQuery* parse(const QString &query);
    QCLuceneQuery* parse(QCLuceneReader &reader);
    static QCLuceneQuery* parse(const QString &query, const QString &field,
                                QCLuceneAnalyzer &analyzer);
    QCLuceneAnalyzer getAnalyzer();
    QString getField();

protected:
    friend class QCLuceneMultiFieldQueryParser;
    QSharedDataPointer<QCLuceneQueryParserPrivate> d;

private:
    QString field;
    QCLuceneAnalyzer analyzer;
};

class Q_CLUCENE_EXPORT QCLuceneMultiFieldQueryParser : public QCLuceneQueryParser
{
public:
    enum FieldFlags {
        NORMAL_FIELD = 0,
        REQUIRED_FIELD = 1,
        PROHIBITED_FIELD = 2
    };

    QCLuceneMultiFieldQueryParser(const QStringList &fieldList,
                                  QCLuceneAnalyzer &analyzer);
    ~QCLuceneMultiFieldQueryParser();

    static QCLuceneQuery *parse(const QString &query, const QStringList &fieldList,
                                QCLuceneAnalyzer &analyzer);
    static QCLuceneQuery *parse(const QString &query, const QStringList &fieldList,
                                QList<FieldFlags> flags, QCLuceneAnalyzer &analyzer);
};

QT_END_NAMESPACE

#endif  // QQUERYPARSER_P_H


text:
package org.zalando.catwatch.backend.repo.util;

import static org.zalando.catwatch.backend.repo.builder.BuilderUtil.freshId;
import static org.zalando.catwatch.backend.repo.builder.BuilderUtil.random;
import static org.zalando.catwatch.backend.repo.builder.BuilderUtil.randomDate;
import static org.zalando.catwatch.backend.repo.builder.BuilderUtil.randomLanguage;
import static org.zalando.catwatch.backend.repo.builder.BuilderUtil.randomProjectName;
import static org.zalando.catwatch.backend.repo.util.DatabasePing.isDatabaseAvailable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.jdbc.core.JdbcTemplate;

import org.springframework.stereotype.Component;

import org.zalando.catwatch.backend.model.Project;
import org.zalando.catwatch.backend.repo.ContributorRepository;
import org.zalando.catwatch.backend.repo.ProjectRepository;
import org.zalando.catwatch.backend.repo.StatisticsRepository;
import org.zalando.catwatch.backend.repo.builder.ContributorBuilder;
import org.zalando.catwatch.backend.repo.builder.ProjectBuilder;
import org.zalando.catwatch.backend.repo.builder.StatisticsBuilder;

@Component
public class DatabasePopulator {

    @Autowired
    private StatisticsRepository statisticsRepository;

    @Autowired
    private ProjectRepository projectRepository;

    @Autowired
    private ContributorRepository contributorRepository;

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public StatisticsBuilder newStat() {
        return new StatisticsBuilder(statisticsRepository);
    }

    public ProjectBuilder newProject(final Date date, final Long gitHubProjectId, final String name,
            final String language, final Integer forksCount, final Integer starsCount, final Integer commitsCount,
            final Integer contributionCount, final Integer score) {

        return new ProjectBuilder(projectRepository, date, gitHubProjectId, name, language, forksCount, starsCount,
                commitsCount, contributionCount, score);
    }

    public ContributorBuilder newContributor() {
        return new ContributorBuilder(contributorRepository);
    }

    @PostConstruct
    public void postConstruct() {

        if (!isDatabaseAvailable(jdbcTemplate)) {
            return;                             // return so that the application context can start at least
        }

        // create statistics for two companies (latest)
        newStat()                           //
        .organizationName("galanto")        //
                    .publicProjectCount(34) //
                    .allStarsCount(54)      //
                    .allForksCount(110)     //
                    .days(1).save();
        newStat()                           //
        .organizationName("galanto-italic") //
                    .publicProjectCount(56) //
                    .allStarsCount(93)      //
                    .allForksCount(249)     //
                    .days(1).save();

        // create projects for galanto

        int amountSnapshots = 100;
        int projectsCount = 10;
        List<Date> snapshotList = getSnapshotDateList(amountSnapshots);

        for (int i = 0; i < projectsCount; i++) {

            Long gitHubProjectId = freshId();
            String name = randomProjectName();
            String language = randomLanguage();
            Integer forksCount = random(1, 4);
            Integer starsCount = random(1, 10);
            Integer commitsCount = random(1, 1000);
            Integer contributionCount = random(1, 1000);
            Integer score = random(1, 100);

            for (Date snapshot : snapshotList) {
                Project project = getProject(snapshot, gitHubProjectId, name, language, forksCount, starsCount,
                        commitsCount, contributionCount, score);
                projectRepository.save(project);
            }
        }

        // create contributors for galanto
        newContributor().organizationName("galanto").save();
        newContributor().organizationName("galanto").save();
    }

    private List<Date> getSnapshotDateList(final int amountSnapshots) {
        List<Date> snapshotList = new ArrayList<>();
        for (int i = 0; i < amountSnapshots; i++) {
            snapshotList.add(randomDate());
        }

        return snapshotList;
    }

    private Project getProject(final Date date, final Long gitHubProjectId, final String name, final String language,
            final Integer forksCount, final Integer starsCount, final Integer commitsCount,
            final Integer contributionCount, final Integer score) {

        return newProject(date, gitHubProjectId, name, language, forksCount, starsCount, commitsCount,
                contributionCount, score).organizationName("galanto").getProject();

    }

}

redpajama_set_name: RedPajamaGithub


text:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace DSCMS {

    public partial class Default {

        /// <summary>
        /// Logo control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlImage Logo;

        /// <summary>
        /// fgh control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl fgh;

        /// <summary>
        /// AuthorizedName control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl AuthorizedName;

        /// <summary>
        /// PhoneNo control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl PhoneNo;

        /// <summary>
        /// email control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl email;
    }
}


text:
FOUNDATION_EXPORT double AnthologyVersionNumber;
FOUNDATION_EXPORT const unsigned char AnthologyVersionString[];


text:
<?php

namespace Git;

class Commit
{
    use Notes;

    private $repo;

    public $sha;
    private $tree;
    private $metadata;
    private $files;

    public function __construct($repo, $sha)
    {
        $this->repo = $repo;
        $this->sha = $repo->dereference($sha);
    }

    public function __toString()
    {
        return $this->sha;
    }

    public function setTree($tree)
    {
        $this->tree = $tree;
    }

    public function __set($name, $value)
    {
        switch ($name) {
            case 'tree':
                $this->setTree($value);
                break;
            case 'note':
                $this->setNote($value);
                break;
        }
    }

    public function getTree()
    {
        if (!is_a($this->tree, 'Tree')) {
            $this->tree = new Tree($this->repo, $this->tree);
        }
        return $this->tree;
    }

    public function getFiles()
    {
        if (!$this->files) {
            $this->files = $this->repo->files($this->sha);
        }
        return $this->files;
    }

    public function getMetadata($key)
    {
        if (!$this->metadata) {
            $this->metadata = $this->repo->commitMetadata($this->sha);
        }
        return $this->metadata->$key;
    }

    public function __get($key)
    {
        switch ($key) {

            case 'tree':
                return $this->getTree();

            case 'files':
                return $this->getFiles();

            case 'note':
                return $this->getNote();

            default:
                return $this->getMetadata($key);

        }
    }

}


text:
kyotorb
=======

My source files for Kyoto.rb


text:
package nl.rakis.fs.config;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import javax.annotation.PostConstruct;
import javax.inject.Singleton;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

/**
 * This should go as soon as I get a valid alternative set up, like Microprofile Config
 */
@Singleton
public class Config
{

    private static final Logger log = LogManager.getLogger(Config.class);

    public static final String CFG_PROPFILE = "nl.rakis.fs.config";

    private Map<String,String> cachedValues = new HashMap<>();

    @PostConstruct
    private void init() {
        log.debug("init()");

        final String propPath = System.getenv(CFG_PROPFILE);
        if ((propPath != null) && !propPath.trim().isEmpty()) {
            final File propFile = new File(propPath);
            if (propFile.exists() && propFile.isFile()) {
                if (log.isInfoEnabled()) {
                    log.info("init(): \"Reading configuration from \"" + propPath + "\"");
                }
                try {
                    try (FileReader fr = new FileReader(propFile)) {
                        Properties props = new Properties();
                        props.load(fr);
                        for (final String key: props.stringPropertyNames()) {
                            final String value = props.getProperty(key);
                            if (log.isInfoEnabled()) {
                                log.info("init(): \"" + key + "\"=\"" + value + "\"");
                            }
                            cachedValues.put(key, value);
                        }
                    }
                }
                catch (IOException e) {
                    log.error("init(): Cannot read \"" + propPath + "\"");
                }
            }
            else {
                log.error("init(): \"" + propPath + "\" is not a file");
            }
        }
        log.debug("init(): Done");
    }

    /**
     * Get the cached value if available, otherwise an environment variable.
     * @param key The name of the value.
     * @return The cached value if available, otherwise the environment variable's value.
     */
    public String get(final String key) {
        return cachedValues.containsKey(key) ? cachedValues.get(key) : System.getenv(key);
    }

    /**
     * Cache a value, so it overrides an environment variable. If the value is null, remove any cached value.
     * @param key The name of the value.
     * @param value The value to store.
     */
    public void put(String key, String value) {
        if (value == null) {
            cachedValues.remove(key);
        }
        else {
            cachedValues.put(key, value);
        }
    }

    /**
     * Get a value, or the given default if none available.
     * @param key The name of the value.
     * @param def The default value.
     * @return The cached value if available, otherwise the environment variable's value if available, otherwise the default.
     */
    public String get(final String key, final String def) {
        final String result = get(key);

        return (result == null) ? def : result;
    }
}


text:
(function() {
    'use strict';

    function setText(element, text) {
        while(element.firstChild !== null) {
            element.removeChild(element.firstChild); // remove all existing content
        }
        element.appendChild(document.createTextNode(text));
    }

    self.port.on('clicktodial.b_number', function(number) {
        console.info('clicktodial.b_number');

        var numberElement = document.getElementById('number');
        setText(numberElement, number);
    });

    self.port.on('clicktodial.status', function(status) {
        console.info('clicktodial.status');

        if(status) {
            var statusElement = document.getElementById('status');
            setText(statusElement, status);
        }
    });

    var closeButton = document.getElementById('close');
    closeButton.onclick = function(event) {
        self.port.emit('clicktodialpanel.close');

        return false;
    };
})();


text:
""" Cisco_IOS_XR_ip_rsvp_cfg

This module contains a collection of YANG definitions
for Cisco IOS\-XR ip\-rsvp package configuration.

This module contains definitions
for the following management objects\:
  rsvp\: Global RSVP configuration commands

This YANG module augments the
  Cisco\-IOS\-XR\-snmp\-agent\-cfg
module with configuration data.

Copyright (c) 2013\-2015 by Cisco Systems, Inc.
All rights reserved.

"""

import re
import collections

from enum import Enum

from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict

from ydk.errors import YPYError, YPYModelError

class RsvpBc0Enum(Enum):
    """
    RsvpBc0Enum

    Rsvp bc0

    .. data:: BC0 = 1

    	Keyword is bc0

    .. data:: GLOBAL_POOL = 2

    	Keyword is global-pool

    .. data:: NOT_SPECIFIED = 3

    	Keyword is not specified

    """

    BC0 = 1

    GLOBAL_POOL = 2

    NOT_SPECIFIED = 3

    @staticmethod
    def _meta_info():
        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
        return meta._meta_table['RsvpBc0Enum']

class RsvpBc1Enum(Enum):
    """
    RsvpBc1Enum

    Rsvp bc1

    .. data:: BC1 = 1

    	Keyword is bc1

    .. data:: SUB_POOL = 2

    	Keyword is sub-pool

    """

    BC1 = 1

    SUB_POOL = 2

    @staticmethod
    def _meta_info():
        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
        return meta._meta_table['RsvpBc1Enum']

class RsvpBwCfgEnum(Enum):
    """
    RsvpBwCfgEnum

    Rsvp bw cfg

    .. data:: ABSOLUTE = 0

    	Configuration is in absolute bandwidth values

    .. data:: PERCENTAGE = 1

    	Configuration is in percentage of physical

    	bandwidth values

    """

    ABSOLUTE = 0

    PERCENTAGE = 1

    @staticmethod
    def _meta_info():
        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
        return meta._meta_table['RsvpBwCfgEnum']

class RsvpRdmEnum(Enum):
    """
    RsvpRdmEnum

    Rsvp rdm

    .. data:: RDM = 1

    	RDM Keyword Specified

    .. data:: NOT_SPECIFIED = 2

    	RDM Keyword Not Specified

    .. data:: USE_DEFAULT_BANDWIDTH = 3

    	Use Default Bandwidth - 75% Link Bandwidth

    """

    RDM = 1

    NOT_SPECIFIED = 2

    USE_DEFAULT_BANDWIDTH = 3

    @staticmethod
    def _meta_info():
        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
        return meta._meta_table['RsvpRdmEnum']

class Rsvp(object):
    """
    Global RSVP configuration commands

    .. attribute:: authentication

    	Configure RSVP authentication
    	**type**\:  :py:class:`Authentication <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Authentication>`

    .. attribute:: controllers

    	Controller table
    	**type**\:  :py:class:`Controllers <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Controllers>`

    .. attribute:: global_bandwidth

    	Configure Global Bandwidth Parameters
    	**type**\:  :py:class:`GlobalBandwidth <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.GlobalBandwidth>`

    .. attribute:: global_logging

    	Global Logging
    	**type**\:  :py:class:`GlobalLogging <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.GlobalLogging>`

    .. attribute:: interfaces

    	Interface table
    	**type**\:  :py:class:`Interfaces <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces>`

    .. attribute:: neighbors

    	RSVP Neighbor Table
    	**type**\:  :py:class:`Neighbors <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Neighbors>`

    .. attribute:: signalling

    	Configure Global RSVP signalling parameters
    	**type**\:  :py:class:`Signalling <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Signalling>`

    """

    _prefix = 'ip-rsvp-cfg'
    _revision = '2015-11-09'

    def __init__(self):
        self.authentication = Rsvp.Authentication()
        self.authentication.parent = self
        self.controllers = Rsvp.Controllers()
        self.controllers.parent = self
        self.global_bandwidth = Rsvp.GlobalBandwidth()
        self.global_bandwidth.parent = self
        self.global_logging = Rsvp.GlobalLogging()
        self.global_logging.parent = self
        self.interfaces = Rsvp.Interfaces()
        self.interfaces.parent = self
        self.neighbors = Rsvp.Neighbors()
        self.neighbors.parent = self
        self.signalling = Rsvp.Signalling()
        self.signalling.parent = self

    class Neighbors(object):
        """
        RSVP Neighbor Table

        .. attribute:: neighbor

        	RSVP neighbor configuration
        	**type**\: list of  :py:class:`Neighbor <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Neighbors.Neighbor>`

        """

        _prefix = 'ip-rsvp-cfg'
        _revision = '2015-11-09'

        def __init__(self):
            self.parent = None
            self.neighbor = YList()
            self.neighbor.parent = self
            self.neighbor.name = 'neighbor'

        class Neighbor(object):
            """
            RSVP neighbor configuration

            .. attribute:: neighbor  <key>

            	Neighbor IP address
            	**type**\:  str

            	**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?

            .. attribute:: authentication

            	Configure RSVP authentication
            	**type**\:  :py:class:`Authentication <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Neighbors.Neighbor.Authentication>`

            """

            _prefix = 'ip-rsvp-cfg'
            _revision = '2015-11-09'

            def __init__(self):
                self.parent = None
                self.neighbor = None
                self.authentication = Rsvp.Neighbors.Neighbor.Authentication()
                self.authentication.parent = self

            class Authentication(object):
                """
                Configure RSVP authentication

                .. attribute:: key_chain

                	Key chain to authenticate RSVP signalling messages
                	**type**\:  str

                	**range:** 0..32

                .. attribute:: life_time

                	Life time (in seconds) for each security association
                	**type**\:  int

                	**range:** 30..86400

                .. attribute:: window_size

                	Window\-size to limit number of out\-of\-order messages
                	**type**\:  int

                	**range:** 1..64

                """

                _prefix = 'ip-rsvp-cfg'
                _revision = '2015-11-09'

                def __init__(self):
                    self.parent = None
                    self.key_chain = None
                    self.life_time = None
                    self.window_size = None

                @property
                def _common_path(self):
                    if self.parent is None:
                        raise YPYModelError('parent is not set . Cannot derive path.')

                    return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:authentication'

                def is_config(self):
                    ''' Returns True if this instance represents config data else returns False '''
                    return True

                def _has_data(self):
                    if not self.is_config():
                        return False
                    if self.key_chain is not None:
                        return True

                    if self.life_time is not None:
                        return True

                    if self.window_size is not None:
                        return True

                    return False

                @staticmethod
                def _meta_info():
                    from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                    return meta._meta_table['Rsvp.Neighbors.Neighbor.Authentication']['meta_info']

            @property
            def _common_path(self):
                if self.neighbor is None:
                    raise YPYModelError('Key property neighbor is None')

                return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:neighbors/Cisco-IOS-XR-ip-rsvp-cfg:neighbor[Cisco-IOS-XR-ip-rsvp-cfg:neighbor = ' + str(self.neighbor) + ']'

            def is_config(self):
                ''' Returns True if this instance represents config data else returns False '''
                return True

            def _has_data(self):
                if not self.is_config():
                    return False
                if self.neighbor is not None:
                    return True

                if self.authentication is not None and self.authentication._has_data():
                    return True

                return False

            @staticmethod
            def _meta_info():
                from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                return meta._meta_table['Rsvp.Neighbors.Neighbor']['meta_info']

        @property
        def _common_path(self):

            return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:neighbors'

        def is_config(self):
            ''' Returns True if this instance represents config data else returns False '''
            return True

        def _has_data(self):
            if not self.is_config():
                return False
            if self.neighbor is not None:
                for child_ref in self.neighbor:
                    if child_ref._has_data():
                        return True

            return False

        @staticmethod
        def _meta_info():
            from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
            return meta._meta_table['Rsvp.Neighbors']['meta_info']

    class Controllers(object):
        """
        Controller table

        .. attribute:: controller

        	Controller configuration
        	**type**\: list of  :py:class:`Controller <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Controllers.Controller>`

        """

        _prefix = 'ip-rsvp-cfg'
        _revision = '2015-11-09'

        def __init__(self):
            self.parent = None
            self.controller = YList()
            self.controller.parent = self
            self.controller.name = 'controller'

        class Controller(object):
            """
            Controller configuration

            .. attribute:: controller_name  <key>

            	Name of controller
            	**type**\:  str

            	**pattern:** (([a\-zA\-Z0\-9\_]\*\\d+/){3}\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){4}\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){3}\\d+\\.\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]\*\\d+))\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]+))\|([a\-zA\-Z0\-9\_\-]\*\\d+)\|([a\-zA\-Z0\-9\_\-]\*\\d+\\.\\d+)\|(mpls)\|(dwdm)

            .. attribute:: cntl_signalling

            	Configure RSVP signalling parameters
            	**type**\:  :py:class:`CntlSignalling <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Controllers.Controller.CntlSignalling>`

            .. attribute:: enable

            	Enable RSVP on an interface
            	**type**\:  :py:class:`Empty <ydk.types.Empty>`

            """

            _prefix = 'ip-rsvp-cfg'
            _revision = '2015-11-09'

            def __init__(self):
                self.parent = None
                self.controller_name = None
                self.cntl_signalling = Rsvp.Controllers.Controller.CntlSignalling()
                self.cntl_signalling.parent = self
                self.enable = None

            class CntlSignalling(object):
                """
                Configure RSVP signalling parameters

                .. attribute:: out_of_band

                	Configure RSVP out\-of\-band signalling parameters
                	**type**\:  :py:class:`OutOfBand <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Controllers.Controller.CntlSignalling.OutOfBand>`

                """

                _prefix = 'ip-rsvp-cfg'
                _revision = '2015-11-09'

                def __init__(self):
                    self.parent = None
                    self.out_of_band = Rsvp.Controllers.Controller.CntlSignalling.OutOfBand()
                    self.out_of_band.parent = self

                class OutOfBand(object):
                    """
                    Configure RSVP out\-of\-band signalling parameters

                    .. attribute:: missed_messages

                    	Configure max number of consecutive missed messages for state expiry for out\-of\-band tunnels
                    	**type**\:  int

                    	**range:** 1..110000

                    .. attribute:: refresh_interval

                    	Configure interval between successive refreshes for out\-of\-band tunnels
                    	**type**\:  int

                    	**range:** 180..86400

                    """

                    _prefix = 'ip-rsvp-cfg'
                    _revision = '2015-11-09'

                    def __init__(self):
                        self.parent = None
                        self.missed_messages = None
                        self.refresh_interval = None

                    @property
                    def _common_path(self):
                        if self.parent is None:
                            raise YPYModelError('parent is not set . Cannot derive path.')

                        return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:out-of-band'

                    def is_config(self):
                        ''' Returns True if this instance represents config data else returns False '''
                        return True

                    def _has_data(self):
                        if not self.is_config():
                            return False
                        if self.missed_messages is not None:
                            return True

                        if self.refresh_interval is not None:
                            return True

                        return False

                    @staticmethod
                    def _meta_info():
                        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                        return meta._meta_table['Rsvp.Controllers.Controller.CntlSignalling.OutOfBand']['meta_info']

                @property
                def _common_path(self):
                    if self.parent is None:
                        raise YPYModelError('parent is not set . Cannot derive path.')

                    return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:cntl-signalling'

                def is_config(self):
                    ''' Returns True if this instance represents config data else returns False '''
                    return True

                def _has_data(self):
                    if not self.is_config():
                        return False
                    if self.out_of_band is not None and self.out_of_band._has_data():
                        return True

                    return False

                @staticmethod
                def _meta_info():
                    from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                    return meta._meta_table['Rsvp.Controllers.Controller.CntlSignalling']['meta_info']

            @property
            def _common_path(self):
                if self.controller_name is None:
                    raise YPYModelError('Key property controller_name is None')

                return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:controllers/Cisco-IOS-XR-ip-rsvp-cfg:controller[Cisco-IOS-XR-ip-rsvp-cfg:controller-name = ' + str(self.controller_name) + ']'

            def is_config(self):
                ''' Returns True if this instance represents config data else returns False '''
                return True

            def _has_data(self):
                if not self.is_config():
                    return False
                if self.controller_name is not None:
                    return True

                if self.cntl_signalling is not None and self.cntl_signalling._has_data():
                    return True

                if self.enable is not None:
                    return True

                return False

            @staticmethod
            def _meta_info():
                from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                return meta._meta_table['Rsvp.Controllers.Controller']['meta_info']

        @property
        def _common_path(self):

            return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:controllers'

        def is_config(self):
            ''' Returns True if this instance represents config data else returns False '''
            return True

        def _has_data(self):
            if not self.is_config():
                return False
            if self.controller is not None:
                for child_ref in self.controller:
                    if child_ref._has_data():
                        return True

            return False

        @staticmethod
        def _meta_info():
            from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
            return meta._meta_table['Rsvp.Controllers']['meta_info']

    class GlobalLogging(object):
        """
        Global Logging

        .. attribute:: log_issu_status

        	Enable ISSU Status Logging
        	**type**\:  :py:class:`Empty <ydk.types.Empty>`

        .. attribute:: log_nsr_status

        	Enable NSR Status Logging
        	**type**\:  :py:class:`Empty <ydk.types.Empty>`

        """

        _prefix = 'ip-rsvp-cfg'
        _revision = '2015-11-09'

        def __init__(self):
            self.parent = None
            self.log_issu_status = None
            self.log_nsr_status = None

        @property
        def _common_path(self):

            return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:global-logging'

        def is_config(self):
            ''' Returns True if this instance represents config data else returns False '''
            return True

        def _has_data(self):
            if not self.is_config():
                return False
            if self.log_issu_status is not None:
                return True

            if self.log_nsr_status is not None:
                return True

            return False

        @staticmethod
        def _meta_info():
            from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
            return meta._meta_table['Rsvp.GlobalLogging']['meta_info']

    class GlobalBandwidth(object):
        """
        Configure Global Bandwidth Parameters

        .. attribute:: default_interface_percent

        	Configure Global RSVP signalling parameters
        	**type**\:  :py:class:`DefaultInterfacePercent <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.GlobalBandwidth.DefaultInterfacePercent>`

        """

        _prefix = 'ip-rsvp-cfg'
        _revision = '2015-11-09'

        def __init__(self):
            self.parent = None
            self.default_interface_percent = Rsvp.GlobalBandwidth.DefaultInterfacePercent()
            self.default_interface_percent.parent = self

        class DefaultInterfacePercent(object):
            """
            Configure Global RSVP signalling parameters

            .. attribute:: mam

            	Configure global default MAM I/F percent bandwidth parameters
            	**type**\:  :py:class:`Mam <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.GlobalBandwidth.DefaultInterfacePercent.Mam>`

            .. attribute:: rdm

            	Configure global default RDM I/F percent bandwidth parameters
            	**type**\:  :py:class:`Rdm <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.GlobalBandwidth.DefaultInterfacePercent.Rdm>`

            """

            _prefix = 'ip-rsvp-cfg'
            _revision = '2015-11-09'

            def __init__(self):
                self.parent = None
                self.mam = Rsvp.GlobalBandwidth.DefaultInterfacePercent.Mam()
                self.mam.parent = self
                self.rdm = Rsvp.GlobalBandwidth.DefaultInterfacePercent.Rdm()
                self.rdm.parent = self

            class Mam(object):
                """
                Configure global default MAM I/F percent
                bandwidth parameters

                .. attribute:: bc0_percent

                	Default BC0 pool I/F % B/W
                	**type**\:  int

                	**range:** 0..10000

                .. attribute:: bc1_percent

                	Default BC1 pool I/F % B/W
                	**type**\:  int

                	**range:** 0..10000

                .. attribute:: max_res_percent

                	Default maximum reservable I/F % B/W
                	**type**\:  int

                	**range:** 0..10000

                """

                _prefix = 'ip-rsvp-cfg'
                _revision = '2015-11-09'

                def __init__(self):
                    self.parent = None
                    self.bc0_percent = None
                    self.bc1_percent = None
                    self.max_res_percent = None

                @property
                def _common_path(self):

                    return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:global-bandwidth/Cisco-IOS-XR-ip-rsvp-cfg:default-interface-percent/Cisco-IOS-XR-ip-rsvp-cfg:mam'

                def is_config(self):
                    ''' Returns True if this instance represents config data else returns False '''
                    return True

                def _has_data(self):
                    if not self.is_config():
                        return False
                    if self.bc0_percent is not None:
                        return True

                    if self.bc1_percent is not None:
                        return True

                    if self.max_res_percent is not None:
                        return True

                    return False

                @staticmethod
                def _meta_info():
                    from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                    return meta._meta_table['Rsvp.GlobalBandwidth.DefaultInterfacePercent.Mam']['meta_info']

            class Rdm(object):
                """
                Configure global default RDM I/F percent
                bandwidth parameters

                .. attribute:: bc0_percent

                	Default BC0 pool I/F % B/W
                	**type**\:  int

                	**range:** 0..10000

                .. attribute:: bc1_percent

                	Default BC1 pool I/F % B/W
                	**type**\:  int

                	**range:** 0..10000

                """

                _prefix = 'ip-rsvp-cfg'
                _revision = '2015-11-09'

                def __init__(self):
                    self.parent = None
                    self.bc0_percent = None
                    self.bc1_percent = None

                @property
                def _common_path(self):

                    return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:global-bandwidth/Cisco-IOS-XR-ip-rsvp-cfg:default-interface-percent/Cisco-IOS-XR-ip-rsvp-cfg:rdm'

                def is_config(self):
                    ''' Returns True if this instance represents config data else returns False '''
                    return True

                def _has_data(self):
                    if not self.is_config():
                        return False
                    if self.bc0_percent is not None:
                        return True

                    if self.bc1_percent is not None:
                        return True

                    return False

                @staticmethod
                def _meta_info():
                    from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                    return meta._meta_table['Rsvp.GlobalBandwidth.DefaultInterfacePercent.Rdm']['meta_info']

            @property
            def _common_path(self):

                return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:global-bandwidth/Cisco-IOS-XR-ip-rsvp-cfg:default-interface-percent'

            def is_config(self):
                ''' Returns True if this instance represents config data else returns False '''
                return True

            def _has_data(self):
                if not self.is_config():
                    return False
                if self.mam is not None and self.mam._has_data():
                    return True

                if self.rdm is not None and self.rdm._has_data():
                    return True

                return False

            @staticmethod
            def _meta_info():
                from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                return meta._meta_table['Rsvp.GlobalBandwidth.DefaultInterfacePercent']['meta_info']

        @property
        def _common_path(self):

            return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:global-bandwidth'

        def is_config(self):
            ''' Returns True if this instance represents config data else returns False '''
            return True

        def _has_data(self):
            if not self.is_config():
                return False
            if self.default_interface_percent is not None and self.default_interface_percent._has_data():
                return True

            return False

        @staticmethod
        def _meta_info():
            from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
            return meta._meta_table['Rsvp.GlobalBandwidth']['meta_info']

    class Interfaces(object):
        """
        Interface table

        .. attribute:: interface

        	Interface configuration
        	**type**\: list of  :py:class:`Interface <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces.Interface>`

        """

        _prefix = 'ip-rsvp-cfg'
        _revision = '2015-11-09'

        def __init__(self):
            self.parent = None
            self.interface = YList()
            self.interface.parent = self
            self.interface.name = 'interface'

        class Interface(object):
            """
            Interface configuration

            .. attribute:: name  <key>

            	Name of interface
            	**type**\:  str

            	**pattern:** (([a\-zA\-Z0\-9\_]\*\\d+/){3}\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){4}\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){3}\\d+\\.\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]\*\\d+))\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]+))\|([a\-zA\-Z0\-9\_\-]\*\\d+)\|([a\-zA\-Z0\-9\_\-]\*\\d+\\.\\d+)\|(mpls)\|(dwdm)

            .. attribute:: authentication

            	Configure RSVP authentication
            	**type**\:  :py:class:`Authentication <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces.Interface.Authentication>`

            .. attribute:: bandwidth

            	Configure Bandwidth
            	**type**\:  :py:class:`Bandwidth <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces.Interface.Bandwidth>`

            .. attribute:: enable

            	Enable RSVP on an interface
            	**type**\:  :py:class:`Empty <ydk.types.Empty>`

            .. attribute:: if_signalling

            	Configure RSVP signalling parameters
            	**type**\:  :py:class:`IfSignalling <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces.Interface.IfSignalling>`

            """

            _prefix = 'ip-rsvp-cfg'
            _revision = '2015-11-09'

            def __init__(self):
                self.parent = None
                self.name = None
                self.authentication = Rsvp.Interfaces.Interface.Authentication()
                self.authentication.parent = self
                self.bandwidth = Rsvp.Interfaces.Interface.Bandwidth()
                self.bandwidth.parent = self
                self.enable = None
                self.if_signalling = Rsvp.Interfaces.Interface.IfSignalling()
                self.if_signalling.parent = self

            class IfSignalling(object):
                """
                Configure RSVP signalling parameters

                .. attribute:: dscp

                	Differentiated Services Code Point (DSCP)
                	**type**\:  int

                	**range:** 0..63

                .. attribute:: hello_graceful_restart_if_based

                	Enable IF\-based Hello adjacency on a RSVP interface
                	**type**\:  :py:class:`Empty <ydk.types.Empty>`

                .. attribute:: interval_rate

                	Configure number of messages to be sent per interval
                	**type**\:  :py:class:`IntervalRate <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces.Interface.IfSignalling.IntervalRate>`

                .. attribute:: missed_messages

                	Configure max number of consecutive missed messages for state expiry
                	**type**\:  int

                	**range:** 1..8

                .. attribute:: out_of_band

                	Configure RSVP out\-of\-band signalling parameters
                	**type**\:  :py:class:`OutOfBand <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces.Interface.IfSignalling.OutOfBand>`

                .. attribute:: pacing

                	Enable rate\-limiting on the interface
                	**type**\:  :py:class:`Empty <ydk.types.Empty>`

                .. attribute:: refresh_interval

                	Configure interval between successive refreshes
                	**type**\:  int

                	**range:** 10..180

                .. attribute:: refresh_reduction

                	Configure RSVP Refresh Reduction parameters
                	**type**\:  :py:class:`RefreshReduction <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces.Interface.IfSignalling.RefreshReduction>`

                """

                _prefix = 'ip-rsvp-cfg'
                _revision = '2015-11-09'

                def __init__(self):
                    self.parent = None
                    self.dscp = None
                    self.hello_graceful_restart_if_based = None
                    self.interval_rate = Rsvp.Interfaces.Interface.IfSignalling.IntervalRate()
                    self.interval_rate.parent = self
                    self.missed_messages = None
                    self.out_of_band = Rsvp.Interfaces.Interface.IfSignalling.OutOfBand()
                    self.out_of_band.parent = self
                    self.pacing = None
                    self.refresh_interval = None
                    self.refresh_reduction = Rsvp.Interfaces.Interface.IfSignalling.RefreshReduction()
                    self.refresh_reduction.parent = self

                class RefreshReduction(object):
                    """
                    Configure RSVP Refresh Reduction parameters

                    .. attribute:: bundle_message_max_size

                    	Configure maximum size of a single RSVP Bundle message
                    	**type**\:  int

                    	**range:** 512..65000

                    .. attribute:: disable

                    	Disable refresh reduction
                    	**type**\:  :py:class:`Empty <ydk.types.Empty>`

                    .. attribute:: reliable_ack_hold_time

                    	Configure hold time for sending RSVP ACK message(s)
                    	**type**\:  int

                    	**range:** 100..5000

                    .. attribute:: reliable_ack_max_size

                    	Configure max size of a single RSVP ACK message
                    	**type**\:  int

                    	**range:** 20..65000

                    .. attribute:: reliable_retransmit_time

                    	Configure min delay to wait for an ACK before a retransmit
                    	**type**\:  int

                    	**range:** 100..10000

                    .. attribute:: reliable_s_refresh

                    	Configure use of reliable messaging for summary refresh
                    	**type**\:  :py:class:`Empty <ydk.types.Empty>`

                    .. attribute:: summary_max_size

                    	Configure max size of a single RSVP summary refresh message
                    	**type**\:  int

                    	**range:** 20..65000

                    """

                    _prefix = 'ip-rsvp-cfg'
                    _revision = '2015-11-09'

                    def __init__(self):
                        self.parent = None
                        self.bundle_message_max_size = None
                        self.disable = None
                        self.reliable_ack_hold_time = None
                        self.reliable_ack_max_size = None
                        self.reliable_retransmit_time = None
                        self.reliable_s_refresh = None
                        self.summary_max_size = None

                    @property
                    def _common_path(self):
                        if self.parent is None:
                            raise YPYModelError('parent is not set . Cannot derive path.')

                        return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:refresh-reduction'

                    def is_config(self):
                        ''' Returns True if this instance represents config data else returns False '''
                        return True

                    def _has_data(self):
                        if not self.is_config():
                            return False
                        if self.bundle_message_max_size is not None:
                            return True

                        if self.disable is not None:
                            return True

                        if self.reliable_ack_hold_time is not None:
                            return True

                        if self.reliable_ack_max_size is not None:
                            return True

                        if self.reliable_retransmit_time is not None:
                            return True

                        if self.reliable_s_refresh is not None:
                            return True

                        if self.summary_max_size is not None:
                            return True

                        return False

                    @staticmethod
                    def _meta_info():
                        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                        return meta._meta_table['Rsvp.Interfaces.Interface.IfSignalling.RefreshReduction']['meta_info']

                class IntervalRate(object):
                    """
                    Configure number of messages to be sent per
                    interval

                    .. attribute:: interval_size

                    	Size of an interval (milliseconds)
                    	**type**\:  int

                    	**range:** 250..2000

                    .. attribute:: messages_per_interval

                    	Number of messages to be sent per interval
                    	**type**\:  int

                    	**range:** 1..500

                    """

                    _prefix = 'ip-rsvp-cfg'
                    _revision = '2015-11-09'

                    def __init__(self):
                        self.parent = None
                        self.interval_size = None
                        self.messages_per_interval = None

                    @property
                    def _common_path(self):
                        if self.parent is None:
                            raise YPYModelError('parent is not set . Cannot derive path.')

                        return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:interval-rate'

                    def is_config(self):
                        ''' Returns True if this instance represents config data else returns False '''
                        return True

                    def _has_data(self):
                        if not self.is_config():
                            return False
                        if self.interval_size is not None:
                            return True

                        if self.messages_per_interval is not None:
                            return True

                        return False

                    @staticmethod
                    def _meta_info():
                        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                        return meta._meta_table['Rsvp.Interfaces.Interface.IfSignalling.IntervalRate']['meta_info']

                class OutOfBand(object):
                    """
                    Configure RSVP out\-of\-band signalling parameters

                    .. attribute:: missed_messages

                    	Configure max number of consecutive missed messages for state expiry for out\-of\-band tunnels
                    	**type**\:  int

                    	**range:** 1..110000

                    .. attribute:: refresh_interval

                    	Configure interval between successive refreshes for out\-of\-band tunnels
                    	**type**\:  int

                    	**range:** 180..86400

                    """

                    _prefix = 'ip-rsvp-cfg'
                    _revision = '2015-11-09'

                    def __init__(self):
                        self.parent = None
                        self.missed_messages = None
                        self.refresh_interval = None

                    @property
                    def _common_path(self):
                        if self.parent is None:
                            raise YPYModelError('parent is not set . Cannot derive path.')

                        return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:out-of-band'

                    def is_config(self):
                        ''' Returns True if this instance represents config data else returns False '''
                        return True

                    def _has_data(self):
                        if not self.is_config():
                            return False
                        if self.missed_messages is not None:
                            return True

                        if self.refresh_interval is not None:
                            return True

                        return False

                    @staticmethod
                    def _meta_info():
                        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                        return meta._meta_table['Rsvp.Interfaces.Interface.IfSignalling.OutOfBand']['meta_info']

                @property
                def _common_path(self):
                    if self.parent is None:
                        raise YPYModelError('parent is not set . Cannot derive path.')

                    return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:if-signalling'

                def is_config(self):
                    ''' Returns True if this instance represents config data else returns False '''
                    return True

                def _has_data(self):
                    if not self.is_config():
                        return False
                    if self.dscp is not None:
                        return True

                    if self.hello_graceful_restart_if_based is not None:
                        return True

                    if self.interval_rate is not None and self.interval_rate._has_data():
                        return True

                    if self.missed_messages is not None:
                        return True

                    if self.out_of_band is not None and self.out_of_band._has_data():
                        return True

                    if self.pacing is not None:
                        return True

                    if self.refresh_interval is not None:
                        return True

                    if self.refresh_reduction is not None and self.refresh_reduction._has_data():
                        return True

                    return False

                @staticmethod
                def _meta_info():
                    from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                    return meta._meta_table['Rsvp.Interfaces.Interface.IfSignalling']['meta_info']

            class Bandwidth(object):
                """
                Configure Bandwidth

                .. attribute:: mam

                	Configure MAM bandwidth parameters
                	**type**\:  :py:class:`Mam <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces.Interface.Bandwidth.Mam>`

                .. attribute:: rdm

                	Configure RDM bandwidth parameters
                	**type**\:  :py:class:`Rdm <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Interfaces.Interface.Bandwidth.Rdm>`

                """

                _prefix = 'ip-rsvp-cfg'
                _revision = '2015-11-09'

                def __init__(self):
                    self.parent = None
                    self.mam = Rsvp.Interfaces.Interface.Bandwidth.Mam()
                    self.mam.parent = self
                    self.rdm = Rsvp.Interfaces.Interface.Bandwidth.Rdm()
                    self.rdm.parent = self

                class Mam(object):
                    """
                    Configure MAM bandwidth parameters

                    .. attribute:: bandwidth_mode

                    	Absolute or Percentage bandwidth mode
                    	**type**\:  :py:class:`RsvpBwCfgEnum <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.RsvpBwCfgEnum>`

                    .. attribute:: bc0_bandwidth

                    	Reservable bandwidth in BC0 (Kbps or percent of physical bandwidth)
                    	**type**\:  int

                    	**range:** 0..4294967295

                    .. attribute:: bc1_bandwidth

                    	Reservable bandwidth in BC1 (Kbps or percent of physical bandwidth)
                    	**type**\:  int

                    	**range:** 0..4294967295

                    .. attribute:: max_resv_bandwidth

                    	Maximum reservable bandwidth (Kbps or percent of physical bandwidth)
                    	**type**\:  int

                    	**range:** 0..4294967295

                    .. attribute:: max_resv_flow

                    	Largest reservable flow (Kbps or percent of physical bandwidth)
                    	**type**\:  int

                    	**range:** 0..4294967295

                    """

                    _prefix = 'ip-rsvp-cfg'
                    _revision = '2015-11-09'

                    def __init__(self):
                        self.parent = None
                        self.bandwidth_mode = None
                        self.bc0_bandwidth = None
                        self.bc1_bandwidth = None
                        self.max_resv_bandwidth = None
                        self.max_resv_flow = None

                    @property
                    def _common_path(self):
                        if self.parent is None:
                            raise YPYModelError('parent is not set . Cannot derive path.')

                        return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:mam'

                    def is_config(self):
                        ''' Returns True if this instance represents config data else returns False '''
                        return True

                    def _has_data(self):
                        if not self.is_config():
                            return False
                        if self.bandwidth_mode is not None:
                            return True

                        if self.bc0_bandwidth is not None:
                            return True

                        if self.bc1_bandwidth is not None:
                            return True

                        if self.max_resv_bandwidth is not None:
                            return True

                        if self.max_resv_flow is not None:
                            return True

                        return False

                    @staticmethod
                    def _meta_info():
                        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                        return meta._meta_table['Rsvp.Interfaces.Interface.Bandwidth.Mam']['meta_info']

                class Rdm(object):
                    """
                    Configure RDM bandwidth parameters

                    .. attribute:: bandwidth_mode

                    	Absolute or Percentage bandwidth mode
                    	**type**\:  :py:class:`RsvpBwCfgEnum <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.RsvpBwCfgEnum>`

                    .. attribute:: bc0_bandwidth

                    	Reservable bandwidth in BC0 (Kbps or percent of physical bandwidth)
                    	**type**\:  int

                    	**range:** 0..4294967295

                    .. attribute:: bc0_keyword

                    	Set requests should always use BC0
                    	**type**\:  :py:class:`RsvpBc0Enum <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.RsvpBc0Enum>`

                    .. attribute:: bc1_bandwidth

                    	Reservable bandwidth in BC1 (Kbps or percent of physical bandwidth)
                    	**type**\:  int

                    	**range:** 0..4294967295

                    .. attribute:: bc1_keyword

                    	Set requests should always use BC1
                    	**type**\:  :py:class:`RsvpBc1Enum <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.RsvpBc1Enum>`

                    .. attribute:: max_resv_flow

                    	Largest reservable flow (Kbps or percent of physical bandwidth)
                    	**type**\:  int

                    	**range:** 0..4294967295

                    .. attribute:: rdm_keyword

                    	Set requests should always use RDM
                    	**type**\:  :py:class:`RsvpRdmEnum <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.RsvpRdmEnum>`

                    """

                    _prefix = 'ip-rsvp-cfg'
                    _revision = '2015-11-09'

                    def __init__(self):
                        self.parent = None
                        self.bandwidth_mode = None
                        self.bc0_bandwidth = None
                        self.bc0_keyword = None
                        self.bc1_bandwidth = None
                        self.bc1_keyword = None
                        self.max_resv_flow = None
                        self.rdm_keyword = None

                    @property
                    def _common_path(self):
                        if self.parent is None:
                            raise YPYModelError('parent is not set . Cannot derive path.')

                        return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:rdm'

                    def is_config(self):
                        ''' Returns True if this instance represents config data else returns False '''
                        return True

                    def _has_data(self):
                        if not self.is_config():
                            return False
                        if self.bandwidth_mode is not None:
                            return True

                        if self.bc0_bandwidth is not None:
                            return True

                        if self.bc0_keyword is not None:
                            return True

                        if self.bc1_bandwidth is not None:
                            return True

                        if self.bc1_keyword is not None:
                            return True

                        if self.max_resv_flow is not None:
                            return True

                        if self.rdm_keyword is not None:
                            return True

                        return False

                    @staticmethod
                    def _meta_info():
                        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                        return meta._meta_table['Rsvp.Interfaces.Interface.Bandwidth.Rdm']['meta_info']

                @property
                def _common_path(self):
                    if self.parent is None:
                        raise YPYModelError('parent is not set . Cannot derive path.')

                    return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:bandwidth'

                def is_config(self):
                    ''' Returns True if this instance represents config data else returns False '''
                    return True

                def _has_data(self):
                    if not self.is_config():
                        return False
                    if self.mam is not None and self.mam._has_data():
                        return True

                    if self.rdm is not None and self.rdm._has_data():
                        return True

                    return False

                @staticmethod
                def _meta_info():
                    from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                    return meta._meta_table['Rsvp.Interfaces.Interface.Bandwidth']['meta_info']

            class Authentication(object):
                """
                Configure RSVP authentication

                .. attribute:: key_chain

                	Key chain to authenticate RSVP signalling messages
                	**type**\:  str

                	**range:** 0..32

                .. attribute:: life_time

                	Life time (in seconds) for each security association
                	**type**\:  int

                	**range:** 30..86400

                .. attribute:: window_size

                	Window\-size to limit number of out\-of\-order messages
                	**type**\:  int

                	**range:** 1..64

                """

                _prefix = 'ip-rsvp-cfg'
                _revision = '2015-11-09'

                def __init__(self):
                    self.parent = None
                    self.key_chain = None
                    self.life_time = None
                    self.window_size = None

                @property
                def _common_path(self):
                    if self.parent is None:
                        raise YPYModelError('parent is not set . Cannot derive path.')

                    return self.parent._common_path +'/Cisco-IOS-XR-ip-rsvp-cfg:authentication'

                def is_config(self):
                    ''' Returns True if this instance represents config data else returns False '''
                    return True

                def _has_data(self):
                    if not self.is_config():
                        return False
                    if self.key_chain is not None:
                        return True

                    if self.life_time is not None:
                        return True

                    if self.window_size is not None:
                        return True

                    return False

                @staticmethod
                def _meta_info():
                    from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                    return meta._meta_table['Rsvp.Interfaces.Interface.Authentication']['meta_info']

            @property
            def _common_path(self):
                if self.name is None:
                    raise YPYModelError('Key property name is None')

                return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:interfaces/Cisco-IOS-XR-ip-rsvp-cfg:interface[Cisco-IOS-XR-ip-rsvp-cfg:name = ' + str(self.name) + ']'

            def is_config(self):
                ''' Returns True if this instance represents config data else returns False '''
                return True

            def _has_data(self):
                if not self.is_config():
                    return False
                if self.name is not None:
                    return True

                if self.authentication is not None and self.authentication._has_data():
                    return True

                if self.bandwidth is not None and self.bandwidth._has_data():
                    return True

                if self.enable is not None:
                    return True

                if self.if_signalling is not None and self.if_signalling._has_data():
                    return True

                return False

            @staticmethod
            def _meta_info():
                from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                return meta._meta_table['Rsvp.Interfaces.Interface']['meta_info']

        @property
        def _common_path(self):

            return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:interfaces'

        def is_config(self):
            ''' Returns True if this instance represents config data else returns False '''
            return True

        def _has_data(self):
            if not self.is_config():
                return False
            if self.interface is not None:
                for child_ref in self.interface:
                    if child_ref._has_data():
                        return True

            return False

        @staticmethod
        def _meta_info():
            from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
            return meta._meta_table['Rsvp.Interfaces']['meta_info']

    class Signalling(object):
        """
        Configure Global RSVP signalling parameters

        .. attribute:: checksum

        	RSVP message checksum computation
        	**type**\:  :py:class:`Checksum <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Signalling.Checksum>`

        .. attribute:: global_out_of_band

        	Configure out\-of\-band signalling parameters
        	**type**\:  :py:class:`GlobalOutOfBand <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Signalling.GlobalOutOfBand>`

        .. attribute:: graceful_restart

        	Configure RSVP Graceful\-Restart parameters
        	**type**\:  :py:class:`GracefulRestart <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Signalling.GracefulRestart>`

        .. attribute:: hello_graceful_restart_interval

        	Configure interval between successive Hello messages
        	**type**\:  int

        	**range:** 3000..30000

        .. attribute:: hello_graceful_restart_misses

        	Configure max number of consecutive missed Hello messages
        	**type**\:  int

        	**range:** 1..10

        .. attribute:: pesr

        	Sending Path Error with State\-Removal flag
        	**type**\:  :py:class:`Pesr <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Signalling.Pesr>`

        .. attribute:: prefix_filtering

        	Configure prefix filtering parameters
        	**type**\:  :py:class:`PrefixFiltering <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Signalling.PrefixFiltering>`

        """

        _prefix = 'ip-rsvp-cfg'
        _revision = '2015-11-09'

        def __init__(self):
            self.parent = None
            self.checksum = Rsvp.Signalling.Checksum()
            self.checksum.parent = self
            self.global_out_of_band = Rsvp.Signalling.GlobalOutOfBand()
            self.global_out_of_band.parent = self
            self.graceful_restart = Rsvp.Signalling.GracefulRestart()
            self.graceful_restart.parent = self
            self.hello_graceful_restart_interval = None
            self.hello_graceful_restart_misses = None
            self.pesr = Rsvp.Signalling.Pesr()
            self.pesr.parent = self
            self.prefix_filtering = Rsvp.Signalling.PrefixFiltering()
            self.prefix_filtering.parent = self

        class GlobalOutOfBand(object):
            """
            Configure out\-of\-band signalling parameters

            .. attribute:: vrf

            	VRF used for out\-of\-band control signalling
            	**type**\:  str

            	**range:** 0..32

            """

            _prefix = 'ip-rsvp-cfg'
            _revision = '2015-11-09'

            def __init__(self):
                self.parent = None
                self.vrf = None

            @property
            def _common_path(self):

                return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:signalling/Cisco-IOS-XR-ip-rsvp-cfg:global-out-of-band'

            def is_config(self):
                ''' Returns True if this instance represents config data else returns False '''
                return True

            def _has_data(self):
                if not self.is_config():
                    return False
                if self.vrf is not None:
                    return True

                return False

            @staticmethod
            def _meta_info():
                from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                return meta._meta_table['Rsvp.Signalling.GlobalOutOfBand']['meta_info']

        class GracefulRestart(object):
            """
            Configure RSVP Graceful\-Restart parameters

            .. attribute:: enable

            	Enable RSVP graceful restart
            	**type**\:  :py:class:`Empty <ydk.types.Empty>`

            .. attribute:: restart_time

            	Graceful restart time (seconds)
            	**type**\:  int

            	**range:** 60..3600

            """

            _prefix = 'ip-rsvp-cfg'
            _revision = '2015-11-09'

            def __init__(self):
                self.parent = None
                self.enable = None
                self.restart_time = None

            @property
            def _common_path(self):

                return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:signalling/Cisco-IOS-XR-ip-rsvp-cfg:graceful-restart'

            def is_config(self):
                ''' Returns True if this instance represents config data else returns False '''
                return True

            def _has_data(self):
                if not self.is_config():
                    return False
                if self.enable is not None:
                    return True

                if self.restart_time is not None:
                    return True

                return False

            @staticmethod
            def _meta_info():
                from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                return meta._meta_table['Rsvp.Signalling.GracefulRestart']['meta_info']

        class PrefixFiltering(object):
            """
            Configure prefix filtering parameters

            .. attribute:: acl

            	Configure an ACL to perform prefix filtering of RSVP Router Alert messages
            	**type**\:  str

            	**range:** 0..65

            .. attribute:: default_deny_action

            	Configure RSVP behaviour for scenarios where ACL match yields a default (implicit) deny
            	**type**\:  :py:class:`DefaultDenyAction <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rsvp_cfg.Rsvp.Signalling.PrefixFiltering.DefaultDenyAction>`

            """

            _prefix = 'ip-rsvp-cfg'
            _revision = '2015-11-09'

            def __init__(self):
                self.parent = None
                self.acl = None
                self.default_deny_action = Rsvp.Signalling.PrefixFiltering.DefaultDenyAction()
                self.default_deny_action.parent = self

            class DefaultDenyAction(object):
                """
                Configure RSVP behaviour for scenarios where
                ACL match yields a default (implicit) deny

                .. attribute:: drop

                	Configure RSVP to drop packets when ACL match yields a default (implicit) deny
                	**type**\:  :py:class:`Empty <ydk.types.Empty>`

                """

                _prefix = 'ip-rsvp-cfg'
                _revision = '2015-11-09'

                def __init__(self):
                    self.parent = None
                    self.drop = None

                @property
                def _common_path(self):

                    return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:signalling/Cisco-IOS-XR-ip-rsvp-cfg:prefix-filtering/Cisco-IOS-XR-ip-rsvp-cfg:default-deny-action'

                def is_config(self):
                    ''' Returns True if this instance represents config data else returns False '''
                    return True

                def _has_data(self):
                    if not self.is_config():
                        return False
                    if self.drop is not None:
                        return True

                    return False

                @staticmethod
                def _meta_info():
                    from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                    return meta._meta_table['Rsvp.Signalling.PrefixFiltering.DefaultDenyAction']['meta_info']

            @property
            def _common_path(self):

                return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:signalling/Cisco-IOS-XR-ip-rsvp-cfg:prefix-filtering'

            def is_config(self):
                ''' Returns True if this instance represents config data else returns False '''
                return True

            def _has_data(self):
                if not self.is_config():
                    return False
                if self.acl is not None:
                    return True

                if self.default_deny_action is not None and self.default_deny_action._has_data():
                    return True

                return False

            @staticmethod
            def _meta_info():
                from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                return meta._meta_table['Rsvp.Signalling.PrefixFiltering']['meta_info']

        class Pesr(object):
            """
            Sending Path Error with State\-Removal flag

            .. attribute:: disable

            	Disable RSVP PESR
            	**type**\:  :py:class:`Empty <ydk.types.Empty>`

            """

            _prefix = 'ip-rsvp-cfg'
            _revision = '2015-11-09'

            def __init__(self):
                self.parent = None
                self.disable = None

            @property
            def _common_path(self):

                return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:signalling/Cisco-IOS-XR-ip-rsvp-cfg:pesr'

            def is_config(self):
                ''' Returns True if this instance represents config data else returns False '''
                return True

            def _has_data(self):
                if not self.is_config():
                    return False
                if self.disable is not None:
                    return True

                return False

            @staticmethod
            def _meta_info():
                from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                return meta._meta_table['Rsvp.Signalling.Pesr']['meta_info']

        class Checksum(object):
            """
            RSVP message checksum computation

            .. attribute:: disable

            	Disable RSVP message checksum computation
            	**type**\:  :py:class:`Empty <ydk.types.Empty>`

            """

            _prefix = 'ip-rsvp-cfg'
            _revision = '2015-11-09'

            def __init__(self):
                self.parent = None
                self.disable = None

            @property
            def _common_path(self):

                return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:signalling/Cisco-IOS-XR-ip-rsvp-cfg:checksum'

            def is_config(self):
                ''' Returns True if this instance represents config data else returns False '''
                return True

            def _has_data(self):
                if not self.is_config():
                    return False
                if self.disable is not None:
                    return True

                return False

            @staticmethod
            def _meta_info():
                from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
                return meta._meta_table['Rsvp.Signalling.Checksum']['meta_info']

        @property
        def _common_path(self):

            return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:signalling'

        def is_config(self):
            ''' Returns True if this instance represents config data else returns False '''
            return True

        def _has_data(self):
            if not self.is_config():
                return False
            if self.checksum is not None and self.checksum._has_data():
                return True

            if self.global_out_of_band is not None and self.global_out_of_band._has_data():
                return True

            if self.graceful_restart is not None and self.graceful_restart._has_data():
                return True

            if self.hello_graceful_restart_interval is not None:
                return True

            if self.hello_graceful_restart_misses is not None:
                return True

            if self.pesr is not None and self.pesr._has_data():
                return True

            if self.prefix_filtering is not None and self.prefix_filtering._has_data():
                return True

            return False

        @staticmethod
        def _meta_info():
            from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
            return meta._meta_table['Rsvp.Signalling']['meta_info']

    class Authentication(object):
        """
        Configure RSVP authentication

        .. attribute:: key_chain

        	Key chain to authenticate RSVP signalling messages
        	**type**\:  str

        	**range:** 0..32

        .. attribute:: life_time

        	Life time (in seconds) for each security association
        	**type**\:  int

        	**range:** 30..86400

        .. attribute:: window_size

        	Window\-size to limit number of out\-of\-order messages
        	**type**\:  int

        	**range:** 1..64

        """

        _prefix = 'ip-rsvp-cfg'
        _revision = '2015-11-09'

        def __init__(self):
            self.parent = None
            self.key_chain = None
            self.life_time = None
            self.window_size = None

        @property
        def _common_path(self):

            return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp/Cisco-IOS-XR-ip-rsvp-cfg:authentication'

        def is_config(self):
            ''' Returns True if this instance represents config data else returns False '''
            return True

        def _has_data(self):
            if not self.is_config():
                return False
            if self.key_chain is not None:
                return True

            if self.life_time is not None:
                return True

            if self.window_size is not None:
                return True

            return False

        @staticmethod
        def _meta_info():
            from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
            return meta._meta_table['Rsvp.Authentication']['meta_info']

    @property
    def _common_path(self):

        return '/Cisco-IOS-XR-ip-rsvp-cfg:rsvp'

    def is_config(self):
        ''' Returns True if this instance represents config data else returns False '''
        return True

    def _has_data(self):
        if not self.is_config():
            return False
        if self.authentication is not None and self.authentication._has_data():
            return True

        if self.controllers is not None and self.controllers._has_data():
            return True

        if self.global_bandwidth is not None and self.global_bandwidth._has_data():
            return True

        if self.global_logging is not None and self.global_logging._has_data():
            return True

        if self.interfaces is not None and self.interfaces._has_data():
            return True

        if self.neighbors is not None and self.neighbors._has_data():
            return True

        if self.signalling is not None and self.signalling._has_data():
            return True

        return False

    @staticmethod
    def _meta_info():
        from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_rsvp_cfg as meta
        return meta._meta_table['Rsvp']['meta_info']


text:
using System;

namespace BD2.Conv.Frontend.Table
{
	public class Column : IComparable
	{
		Guid id;

		public Guid ID {
			get {
				return id;
			}
		}

		string name;

		public string Name {
			get {
				return name;
			}
		}

		bool mandatory;

		public bool Mandatory {
			get {
				return mandatory;
			}
		}

		long size;

		public long Size {
			get {
				return size;
			}
		}

		string tfqn;

		public string TFQN {
			get {
				return tfqn;
			}
		}

		public Column (Guid id, string name, bool mandatory, long size, string tfqn)
		{
			if (name == null)
				throw new ArgumentNullException ("name");
			if (tfqn == null)
				throw new ArgumentNullException ("tfqn");
			this.id = id;
			this.name = name;
			this.mandatory = mandatory;
			this.size = size;
			this.tfqn = tfqn;

		}

		public static Column Deserialize (byte[] bytes)
		{
			using (System.IO.MemoryStream MS = new System.IO.MemoryStream (bytes, false)) {
				using (System.IO.BinaryReader BR = new System.IO.BinaryReader (MS)) {
					return new Column (new Guid (BR.ReadBytes (16)), BR.ReadString (), BR.ReadBoolean (), BR.ReadInt64 (), BR.ReadString ());
				}
			}
		}

		public byte[] Serialize ()
		{
			using (System.IO.MemoryStream MS = new System.IO.MemoryStream ()) {
				using (System.IO.BinaryWriter BW  = new System.IO.BinaryWriter (MS)) {
					BW.Write (id.ToByteArray ());
					BW.Write (name);
					BW.Write (mandatory);
					BW.Write (size);
					BW.Write (tfqn);
				}
				return MS.ToArray ();
			}
		}
		#region IComparable implementation
		public virtual int CompareTo (object obj)
		{
			if (obj == null)
				throw new ArgumentNullException ("obj");
			Column otherRef = (Column)obj;
			return Name.CompareTo (otherRef.Name);
		}
		#endregion
	}
}


text:
/*
 * This file was automatically generated by sel-utils and
 * released under the MIT License.
 *
 * License: https://github.com/sel-project/sel-utils/blob/master/LICENSE
 * Repository: https://github.com/sel-project/sel-utils
 * Generated from https://github.com/sel-project/sel-utils/blob/master/xml/protocol/bedrock160.xml
 */
package sul.protocol.bedrock160.play;

import java.nio.charset.StandardCharsets;
import java.util.Arrays;

import sul.utils.*;

public class UpdateTrade extends Packet {

	public static final int ID = (int)80;

	public static final boolean CLIENTBOUND = true;
	public static final boolean SERVERBOUND = false;

	@Override
	public int getId() {
		return ID;
	}

	public byte window;
	public byte windowType = 15;
	public int unknown2;
	public int unknown3;
	public boolean willing;
	public long trader;
	public long player;
	public String displayName;
	public byte[] offers = new byte[0];

	public UpdateTrade() {}

	public UpdateTrade(byte window, byte windowType, int unknown2, int unknown3, boolean willing, long trader, long player, String displayName, byte[] offers) {
		this.window = window;
		this.windowType = windowType;
		this.unknown2 = unknown2;
		this.unknown3 = unknown3;
		this.willing = willing;
		this.trader = trader;
		this.player = player;
		this.displayName = displayName;
		this.offers = offers;
	}

	@Override
	public int length() {
		return Buffer.varintLength(unknown2) + Buffer.varintLength(unknown3) + Buffer.varlongLength(trader) + Buffer.varlongLength(player) + Buffer.varuintLength(displayName.getBytes(StandardCharsets.UTF_8).length) + displayName.getBytes(StandardCharsets.UTF_8).length + offers.length + 5;
	}

	@Override
	public byte[] encode() {
		this._buffer = new byte[this.length()];
		this.writeVaruint(ID);
		this.writeLittleEndianByte(window);
		this.writeLittleEndianByte(windowType);
		this.writeVarint(unknown2);
		this.writeVarint(unknown3);
		this.writeBool(willing);
		this.writeVarlong(trader);
		this.writeVarlong(player);
		byte[] zlcxe5bu=displayName.getBytes(StandardCharsets.UTF_8); this.writeVaruint((int)zlcxe5bu.length); this.writeBytes(zlcxe5bu);
		this.writeBytes(offers);
		return this.getBuffer();
	}

	@Override
	public void decode(byte[] buffer) {
		this._buffer = buffer;
		this.readVaruint();
		window=readLittleEndianByte();
		windowType=readLittleEndianByte();
		unknown2=this.readVarint();
		unknown3=this.readVarint();
		willing=this.readBool();
		trader=this.readVarlong();
		player=this.readVarlong();
		int bvzlcxe5=this.readVaruint(); displayName=new String(this.readBytes(bvzlcxe5), StandardCharsets.UTF_8);
		offers=this.readBytes(this._buffer.length-this._index);
	}

	public static UpdateTrade fromBuffer(byte[] buffer) {
		UpdateTrade ret = new UpdateTrade();
		ret.decode(buffer);
		return ret;
	}

	@Override
	public String toString() {
		return "UpdateTrade(window: " + this.window + ", windowType: " + this.windowType + ", unknown2: " + this.unknown2 + ", unknown3: " + this.unknown3 + ", willing: " + this.willing + ", trader: " + this.trader + ", player: " + this.player + ", displayName: " + this.displayName + ", offers: " + Arrays.toString(this.offers) + ")";
	}

}


text: SELECT f FROM t ORDER BY (f - 0.0) ASC


text:
<html>
  <head>
    <style>

    .btn {
      background: #3498db;
      background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
      background-image: -moz-linear-gradient(top, #3498db, #2980b9);
      background-image: -ms-linear-gradient(top, #3498db, #2980b9);
      background-image: -o-linear-gradient(top, #3498db, #2980b9);
      background-image: linear-gradient(to bottom, #3498db, #2980b9);
      -webkit-border-radius: 28;
      -moz-border-radius: 28;
      border-radius: 28px;
      font-family: Arial;
      color: #ffffff;
      font-size: 17px;
      padding: 10px 20px 10px 20px;
      text-decoration: none;
    }

    .btn:hover {
      background: #3cb0fd;
      background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
      background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
      background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
      background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
      background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
      text-decoration: none;
    }

    </style>

    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
      google.load("visualization", "1", {packages:["treemap"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Name', 'Area', 'Size', 'color', '#records'],


text:
package fi.uta.fsd.metka.model.general;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import fi.uta.fsd.metka.enums.ConfigurationType;
/**
 * Specification and documentation is found from uml/data_config/uml_json_configuration.graphml
 */
public class ConfigurationKey {

    private Integer version;
    private final ConfigurationType type;

    @JsonCreator
    public ConfigurationKey(@JsonProperty("type")ConfigurationType type, @JsonProperty("version")Integer version) {
        this.type = type;
        this.version = version;
    }

    public Integer getVersion() {
        return version;
    }

    public ConfigurationType getType() {
        return type;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ConfigurationKey that = (ConfigurationKey) o;

        if (type != that.type) return false;
        if (!version.equals(that.version)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = version.hashCode();
        result = 31 * result + type.hashCode();
        return result;
    }

    public ConfigurationKey copy() {
        return new ConfigurationKey(type, version);
    }

    @Override
    public String toString() {
        return "JsonKey[name="+this.getClass().getSimpleName()+", keys={type: "+type.toValue()+", version: "+version+"}]";
    }
}


text:
/**
 * Test our simple JNI
 */
package com.highperformancespark.examples.ffi

import com.holdenkarau.spark.testing._
import org.scalacheck.{Arbitrary, Gen}
import org.scalacheck.Prop.forAll
import org.scalatest.FunSuite
import org.scalatest.prop.Checkers
import org.scalatest.Matchers._

class NativeExampleSuite extends FunSuite with SharedSparkContext with Checkers {
  test("local sum") {
  //def magic2() {
    val input = Array(1, 2, 3)
    val sumMagic = new SumJNI()
    val result = sumMagic.sum(input)
    val expected = 6
    result === expected
  }

  test("super simple test") {
    val input = sc.parallelize(List(("hi", Array(1, 2, 3))))
    val result = NativeExample.jniSum(input).collect()
    val expected = List(("hi", 6))
    result === expected
  }

  test("native call should find sum correctly") {
    val property = forAll(RDDGenerator.genRDD[(String, Array[Int])](sc)(Arbitrary.arbitrary[(String, Array[Int])])) {
      rdd =>
        val expected = rdd.mapValues(_.sum)
        val result = NativeExample.jniSum(rdd)
        RDDComparisons.compareWithOrder(expected, result).isEmpty
    }
    check(property)
  }
}


text:
<?php

namespace Bolt\Storage\Query;

/**
 * This class is a wrapper that handles single or multiple
 * sets or results fetched via a query. They can be iterated
 * normally, or split by label, eg just results from one
 * contenttype.
 */
class QueryResultset extends \AppendIterator implements \Countable
{
    protected $results = [];

    /**
     * @param array  $results A set of results
     * @param string $type    An optional label to partition results
     */
    public function add($results, $type = null)
    {
        if ($type) {
            $this->results[$type] = $results;
        } else {
            $this->results = array_merge($this->results, $results);
        }

        $this->append(new \ArrayIterator($results));
    }

    /**
     * Allows retrieval of a set or results, if a label has been used to
     * store results then passing the label as a parameter returns just
     * that set of results.
     *
     * @param string $label
     *
     * @return ArrayIterator
     */
    public function get($label = null)
    {
        if ($label && array_key_exists($label, $this->results)) {
            return $this->results[$label];
        } else {
            $results = [];
            foreach ($this->results as $k => $v) {
                if (is_array($v)) {
                    $results = array_merge($results, $v);
                } else {
                    $results[] = $v;
                }
            }

            return $results;
        }
        return [];
    }

    /**
     * Returns the total count
     *
     * @return int
     */
    public function count()
    {
        return count($this->get());
    }
}


text:
package f0

import java.io.FileOutputStream

trait Sink {
  def writeBit(b: Boolean): Unit
  def apply(b: Byte): Unit
  def flush: Unit
  def close: Unit
  def state: Reg
  def using[A](handler: Sink => A): A = try handler(this) finally this.close
  def finishWith[A,F](t: (Writer[A,F], A)) = this.using(s => t._1.bind(s)(t._2))
}

object Sinks {

  def using[A](s:Sink)(handler: Sink => A) = s.using(handler)

  def toFile(filename:String): Sink = toOutputStream(new FileOutputStream(filename))

  def toProcess(p:Process, bufSize: Int = 4096): Sink =
    toOutputStream(new java.io.BufferedOutputStream(p.getOutputStream, bufSize))

  def toOutputStream(os: java.io.OutputStream): Sink = new Sink {
    var i = 0
    var buf = new Array[Byte](256)
    val reg = Reg(Map())
    var bitOffset = 1
    var byteBuf = 0
    def writeBit(b: Boolean): Unit = {
      //println("writing " + b + ", offset: " + bitOffset)
      if (bitOffset == 256) {
        //println("flushing byte buf: " + byteBuf)
        bitOffset = 1
        apply(byteBuf.asInstanceOf[Byte])
        bitOffset = 2
        byteBuf = if (b) 1 else 0
      }
      else {
        if (b) byteBuf |= bitOffset
        bitOffset *= 2
        //println ("buf: " + byteBuf)
      }
    }
    def apply(b: Byte): Unit = {
      if (bitOffset != 1) {
        bitOffset = 1
        apply(byteBuf.asInstanceOf[Byte])
        byteBuf = 0
      }
      if (i == 256) { os.write(buf); i = 0 }
      buf(i) = b; i += 1
    }

    def flush: Unit = {
      if (bitOffset != 1) {
        bitOffset = 1
        //println("flushing byte buf on done: " + byteBuf)
        apply(byteBuf.asInstanceOf[Byte])
        byteBuf = 0
      }
      if (i != 0) {
        os.write(buf, 0, i)
        i = 0
      }
    }

    def close: Unit = {
      flush
      os.close()
    }
    def state: Reg = reg
  }
}