text:
package paths

import (
	"fmt"
	"os"
	"path/filepath"
	"runtime"
	"strings"
)

var dirGlobOperator = "**"

// dirGlobOperatorUseValid returns false if '**' occurs, but '/**/' doesn't and pattern does not start with '**/'.
func dirGlobOperatorUseValid(pattern string) bool {
	containsOperator := strings.Contains(pattern, dirGlobOperator)
	operatorIsOwnPathSegment := strings.Contains(pattern, string(filepath.Separator)+dirGlobOperator+string(filepath.Separator))
	startsWithOperator := strings.HasPrefix(pattern, dirGlobOperator+string(filepath.Separator))

	return !containsOperator || (operatorIsOwnPathSegment || startsWithOperator)
}

// SplitAtDirGlobOperator splits pattern at the '**' operator, if it's contained, then splits path accordingly,
// dropping the segments that the '**' operator would have matched against. The returned paths will match the returned patterns.
// An error is returned if the '**' operator is incorrectly used in pattern.
func SplitAtDirGlobOperator(path, pattern string) (pathStart, patternStart, pathEnd, patternEnd string, err error) {
	if !dirGlobOperatorUseValid(pattern) {
		return "", "", "", "", fmt.Errorf("invalid pattern '%s': the ** globbing operator may only be used as path segment on its own, i.e. …/**/… or **/…", pattern)
	}

	parts := strings.Split(pattern, string(filepath.Separator)+dirGlobOperator+string(filepath.Separator))
	patternStart = parts[0]
	if len(parts) == 2 {
		patternEnd = parts[1]
	}

	numSegmentsStart := len(Segments(patternStart))
	numSegmentsEnd := len(Segments(patternEnd))

	segments := Segments(path)

	pathStart = filepath.Join(segments[:numSegmentsStart]...)
	pathEnd = filepath.Join(segments[len(segments)-numSegmentsEnd:]...)

	if strings.HasPrefix(path, "/") && pathStart != "" {
		pathStart = "/" + pathStart
	}

	return
}

// Glob supports * and ** globbing according to https://help.phrase.com/phraseapp-for-developers/phraseapp-client/configuration#globbing
func Glob(pattern string) (matches []string, err error) {
	pattern = filepath.Clean(pattern)
	pattern = escape(pattern)

	if strings.Count(pattern, dirGlobOperator) > 1 {
		return nil, fmt.Errorf("invalid pattern '%s': the ** globbing operator may only be used once in a pattern", pattern)
	}

	if !dirGlobOperatorUseValid(pattern) {
		return nil, fmt.Errorf("invalid pattern '%s': the ** globbing operator may only be used as path segment on its own, i.e. …/**/… or **/…", pattern)
	}

	if strings.Contains(pattern, dirGlobOperator) {
		parts := strings.Split(pattern, dirGlobOperator)
		basePattern, endPattern := filepath.Clean(parts[0]), filepath.Clean(parts[1])

		baseCandidates, err := filepath.Glob(basePattern)
		if err != nil {
			return nil, fmt.Errorf("invalid pattern '%s': %s", pattern, err)
		}

		for _, base := range directoriesOnly(baseCandidates) {
			err = filepath.Walk(filepath.Clean(base), func(path string, info os.FileInfo, err error) error {
				if !info.IsDir() {
					return nil
				}

				matchesInBase, err := Glob(filepath.Join(path, endPattern))
				if err != nil {
					return err
				}

				matches = append(matches, matchesInBase...)
				return nil
			})
		}

	} else {
		candidates, err := filepath.Glob(pattern)
		if err != nil {
			return nil, fmt.Errorf("invalid pattern '%s': %s", pattern, err)
		}
		matches = filesOnly(candidates)
	}

	return matches, nil
}

// escape escapes characters which filepath.Glob would otherwise handle in a special way (except on Windows...)
func escape(s string) string {
	if runtime.GOOS == "windows" {
		return s
	}

	s = strings.Replace(s, "?", "\\?", -1)
	return strings.Replace(s, "[", "\\[", -1)
}

func filter(candidates []string, f func(os.FileInfo) bool) []string {
	matches := []string{}
	for _, candidate := range candidates {
		fi, err := os.Stat(candidate)
		if err != nil {
			continue
		}

		if f(fi) {
			matches = append(matches, candidate)
		}
	}

	return matches
}

func filesOnly(candidates []string) []string {
	return filter(candidates, func(fi os.FileInfo) bool {
		return !fi.IsDir()
	})
}

func directoriesOnly(candidates []string) []string {
	return filter(candidates, func(fi os.FileInfo) bool {
		return fi.IsDir()
	})
}


text:
package org.openapplication.json;

import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;

public class PrettyJSON extends JSON {

	protected final byte[] space;

	protected int level = 0;

	protected boolean noIndent = true;

	public PrettyJSON(OutputStream out) {
		this(out, 2);
	}

	public PrettyJSON(OutputStream out, String space) {
		super(out);
		this.space = space.getBytes(Charset.forName("UTF-8"));
	}

	public PrettyJSON(OutputStream out, int space) {
		super(out);
		this.space = new byte[space];
		for (int i = 0; i < this.space.length; i++)
			this.space[i] = ' ';
	}

	@Override
	public void writeStartObject() throws IOException {
		super.writeStartObject();
		level++;
	}

	@Override
	public void writeEndObject() throws IOException {
		level--;
		super.writeEndObject();
	}

	@Override
	public void writeStartArray() throws IOException {
		super.writeStartArray();
		level++;
	}

	@Override
	public void writeEndArray() throws IOException {
		level--;
		super.writeEndArray();
	}

	@Override
	public void writeFieldName(CharSequence name) throws IOException {
		super.writeFieldName(name);
	}

	@Override
	public void writeString(CharSequence value) throws IOException {
		super.writeString(value);
	}

	@Override
	public void writeNumber(CharSequence value) throws IOException {
		super.writeNumber(value);
	}

	@Override
	public void writeBoolean(boolean value) throws IOException {
		super.writeBoolean(value);
	}

	@Override
	public void writeNull() throws IOException {
		super.writeNull();
	}

	@Override
	protected void writeNameSeparator() throws IOException {
		super.writeNameSeparator();
		out.write(' ');
		noIndent = true;
	}

	@Override
	protected void writeValueSeparator() throws IOException {
		super.writeValueSeparator();
		indent(level);
	}

	@Override
	protected void writeBlankSeparator() throws IOException {
		indent(level);
	}

	private void indent(int level) throws IOException {
		if (noIndent)
			noIndent = false;
		else {
			out.write('\n');
			for (int i = 0; i < level; i++)
				out.write(space);
		}
	}

}

redpajama_set_name: RedPajamaGithub


text:
@interface WCAlertAnimatorSystem : NSObject <WCAlertAnimator>

@end


text:
#include <aws/migrationhuborchestrator/model/StartWorkflowResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>

#include <utility>

using namespace Aws::MigrationHubOrchestrator::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;

StartWorkflowResult::StartWorkflowResult() :
    m_status(MigrationWorkflowStatusEnum::NOT_SET)
{
}

StartWorkflowResult::StartWorkflowResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
    m_status(MigrationWorkflowStatusEnum::NOT_SET)
{
  *this = result;
}

StartWorkflowResult& StartWorkflowResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
  JsonView jsonValue = result.GetPayload().View();
  if(jsonValue.ValueExists("id"))
  {
    m_id = jsonValue.GetString("id");

  }

  if(jsonValue.ValueExists("arn"))
  {
    m_arn = jsonValue.GetString("arn");

  }

  if(jsonValue.ValueExists("status"))
  {
    m_status = MigrationWorkflowStatusEnumMapper::GetMigrationWorkflowStatusEnumForName(jsonValue.GetString("status"));

  }

  if(jsonValue.ValueExists("statusMessage"))
  {
    m_statusMessage = jsonValue.GetString("statusMessage");

  }

  if(jsonValue.ValueExists("lastStartTime"))
  {
    m_lastStartTime = jsonValue.GetDouble("lastStartTime");

  }

  return *this;
}


text:
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:exslt="http://exslt.org/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd" version="3.3" ID="P0b002ee181935f87">
<name type="corporate">
 <namePart>United States Government Printing Office</namePart>
 <role>
  <roleTerm type="text" authority="marcrelator">printer</roleTerm>
  <roleTerm type="code" authority="marcrelator">prt</roleTerm>
</role>
 <role>
  <roleTerm type="text" authority="marcrelator">distributor</roleTerm>
  <roleTerm type="code" authority="marcrelator">dst</roleTerm>
</role>
</name>
<name type="corporate">
 <namePart>United States</namePart>
 <namePart>United States District Court Eastern District of Michigan</namePart>
 <role>
  <roleTerm type="text" authority="marcrelator">author</roleTerm>
  <roleTerm type="code" authority="marcrelator">aut</roleTerm>
</role>
 <description>Government Organization</description>
</name>
<typeOfResource>text</typeOfResource>
<genre authority="marcgt">government publication</genre>
<language>
 <languageTerm authority="iso639-2b" type="code">eng</languageTerm>
</language>
<extension>
 <collectionCode>USCOURTS</collectionCode>
 <category>Judicial Publications</category>
 <branch>judicial</branch>
 <dateIngested>2012-01-18</dateIngested>
</extension>
<originInfo>
 <publisher>Administrative Office of the United States Courts</publisher>
 <dateIssued encoding="w3cdtf">2009-01-07</dateIssued>
 <issuance>monographic</issuance>
</originInfo>
<physicalDescription>
 <note type="source content type">deposited</note>
 <digitalOrigin>born digital</digitalOrigin>
</physicalDescription>
<classification authority="sudocs">JU 4.15</classification>
<identifier type="uri">http://www.gpo.gov/fdsys/pkg/USCOURTS-mied-2_07-cv-14884</identifier>
<identifier type="local">P0b002ee181935f87</identifier>
<recordInfo>
 <recordContentSource authority="marcorg">DGPO</recordContentSource>
 <recordCreationDate encoding="w3cdtf">2012-01-18</recordCreationDate>
 <recordChangeDate encoding="w3cdtf">2012-01-18</recordChangeDate>
 <recordIdentifier source="DGPO">USCOURTS-mied-2_07-cv-14884</recordIdentifier>
 <recordOrigin>machine generated</recordOrigin>
 <languageOfCataloging>
  <languageTerm authority="iso639-2b" type="code">eng</languageTerm>
</languageOfCataloging>
</recordInfo>
<accessCondition type="GPO scope determination">fdlp</accessCondition>
<extension>
 <docClass>USCOURTS</docClass>
 <accessId>USCOURTS-mied-2_07-cv-14884</accessId>
 <courtType>District</courtType>
 <courtCode>mied</courtCode>
 <courtCircuit>6th</courtCircuit>
 <courtState>Michigan</courtState>
 <courtSortOrder>2251</courtSortOrder>
 <caseNumber>2:07-cv-14884</caseNumber>
 <caseOffice>Detroit</caseOffice>
 <caseType>civil</caseType>
 <natureSuitCode>863</natureSuitCode>
 <natureSuit>Social Security - DIWC/DIWW (405(g))</natureSuit>
 <party firstName="Randall" fullName="Randall E Burtch" lastName="Burtch" middleName="E" role="Plaintiff"></party>
 <party fullName="Social Security, Commissioner of" lastName="Social Security, Commissioner of" role="Defendant"></party>
</extension>
<titleInfo>
 <title>Burtch v. Social Security, Commissioner of</title>
 <partNumber>2:07-cv-14884</partNumber>
</titleInfo>
<location>
 <url access="object in context" displayLabel="Content Detail">http://www.gpo.gov/fdsys/pkg/USCOURTS-mied-2_07-cv-14884/content-detail.html</url>
</location>
<classification authority="sudocs">JU 4.15</classification>
<identifier type="preferred citation">2:07-cv-14884;07-14884</identifier>
<name type="corporate">
 <namePart>United States District Court Eastern District of Michigan</namePart>
 <namePart>6th Circuit</namePart>
 <namePart>Detroit</namePart>
 <affiliation>U.S. Courts</affiliation>
 <role>
  <roleTerm authority="marcrelator" type="text">author</roleTerm>
  <roleTerm authority="marcrelator" type="code">aut</roleTerm>
</role>
</name>
<name type="personal">
 <displayForm>Randall E Burtch</displayForm>
 <namePart type="family">Burtch</namePart>
 <namePart type="given">Randall</namePart>
 <namePart type="termsOfAddress"></namePart>
 <description>Plaintiff</description>
</name>
<name type="personal">
 <displayForm>Social Security, Commissioner of</displayForm>
 <namePart type="family">Social Security, Commissioner of</namePart>
 <namePart type="given"></namePart>
 <namePart type="termsOfAddress"></namePart>
 <description>Defendant</description>
</name>
<extension>
 <docClass>USCOURTS</docClass>
 <accessId>USCOURTS-mied-2_07-cv-14884</accessId>
 <courtType>District</courtType>
 <courtCode>mied</courtCode>
 <courtCircuit>6th</courtCircuit>
 <courtState>Michigan</courtState>
 <courtSortOrder>2251</courtSortOrder>
 <caseNumber>2:07-cv-14884</caseNumber>
 <caseOffice>Detroit</caseOffice>
 <caseType>civil</caseType>
 <natureSuitCode>863</natureSuitCode>
 <natureSuit>Social Security - DIWC/DIWW (405(g))</natureSuit>
 <party firstName="Randall" fullName="Randall E Burtch" lastName="Burtch" middleName="E" role="Plaintiff"></party>
 <party fullName="Social Security, Commissioner of" lastName="Social Security, Commissioner of" role="Defendant"></party>
 <state>Michigan</state>
</extension>
<relatedItem type="constituent" ID="id-USCOURTS-mied-2_07-cv-14884-0" xlink:href="http://www.gpo.gov/fdsys/granule/USCOURTS-mied-2_07-cv-14884/USCOURTS-mied-2_07-cv-14884-0/mods.xml">
 <titleInfo>
  <title>Burtch v. Social Security, Commissioner of</title>
  <subTitle>REPORT AND RECOMMENDATION re 7 MOTION for Summary Judgment filed by Randall E Burtch, 8 MOTION for Summary Judgment filed by Social Security, Commissioner of. Signed by Magistrate Judge Michael Hluchaniuk. (PPel)</subTitle>
  <partNumber>0</partNumber>
</titleInfo>
 <originInfo>
  <dateIssued>2008-11-18</dateIssued>
</originInfo>
 <relatedItem xlink:href="http://www.gpo.gov/fdsys/pkg/pdf/USCOURTS-mied-2_07-cv-14884-0.pdf" type="otherFormat">
  <identifier type="FDsys Unique ID">D09002ee1819c3895</identifier>
</relatedItem>
 <identifier type="uri">http://www.gpo.gov/fdsys/granule/USCOURTS-mied-2_07-cv-14884/USCOURTS-mied-2_07-cv-14884-0</identifier>
 <identifier type="former granule identifier">mied-2_07-cv-14884_0.pdf</identifier>
 <location>
  <url access="object in context" displayLabel="Content Detail">http://www.gpo.gov/fdsys/granule/USCOURTS-mied-2_07-cv-14884/USCOURTS-mied-2_07-cv-14884-0/content-detail.html</url>
  <url access="raw object" displayLabel="PDF rendition">http://www.gpo.gov/fdsys/pkg/USCOURTS-mied-2_07-cv-14884/pdf/USCOURTS-mied-2_07-cv-14884-0.pdf</url>
</location>
 <extension>
  <searchTitle>USCOURTS 2:07-cv-14884; Burtch v. Social Security, Commissioner of; </searchTitle>
  <courtName>United States District Court Eastern District of Michigan</courtName>
  <state>Michigan</state>
  <accessId>USCOURTS-mied-2_07-cv-14884-0</accessId>
  <sequenceNumber>0</sequenceNumber>
  <dateIssued>2008-11-18</dateIssued>
  <docketText>REPORT AND RECOMMENDATION re 7 MOTION for Summary Judgment filed by Randall E Burtch, 8 MOTION for Summary Judgment filed by Social Security, Commissioner of. Signed by Magistrate Judge Michael Hluchaniuk. (PPel)</docketText>
</extension>
</relatedItem>
<relatedItem type="constituent" ID="id-USCOURTS-mied-2_07-cv-14884-1" xlink:href="http://www.gpo.gov/fdsys/granule/USCOURTS-mied-2_07-cv-14884/USCOURTS-mied-2_07-cv-14884-1/mods.xml">
 <titleInfo>
  <title>Burtch v. Social Security, Commissioner of</title>
  <subTitle>ORDER ACCEPTING 10 Report and Recommendation Signed by District Judge John Feikens. (CCoh)</subTitle>
  <partNumber>1</partNumber>
</titleInfo>
 <originInfo>
  <dateIssued>2009-01-07</dateIssued>
</originInfo>
 <relatedItem xlink:href="http://www.gpo.gov/fdsys/pkg/pdf/USCOURTS-mied-2_07-cv-14884-1.pdf" type="otherFormat">
  <identifier type="FDsys Unique ID">D09002ee1819c375c</identifier>
</relatedItem>
 <identifier type="uri">http://www.gpo.gov/fdsys/granule/USCOURTS-mied-2_07-cv-14884/USCOURTS-mied-2_07-cv-14884-1</identifier>
 <identifier type="former granule identifier">mied-2_07-cv-14884_1.pdf</identifier>
 <location>
  <url access="object in context" displayLabel="Content Detail">http://www.gpo.gov/fdsys/granule/USCOURTS-mied-2_07-cv-14884/USCOURTS-mied-2_07-cv-14884-1/content-detail.html</url>
  <url access="raw object" displayLabel="PDF rendition">http://www.gpo.gov/fdsys/pkg/USCOURTS-mied-2_07-cv-14884/pdf/USCOURTS-mied-2_07-cv-14884-1.pdf</url>
</location>
 <extension>
  <searchTitle>USCOURTS 2:07-cv-14884; Burtch v. Social Security, Commissioner of; </searchTitle>
  <courtName>United States District Court Eastern District of Michigan</courtName>
  <state>Michigan</state>
  <accessId>USCOURTS-mied-2_07-cv-14884-1</accessId>
  <sequenceNumber>1</sequenceNumber>
  <dateIssued>2009-01-07</dateIssued>
  <docketText>ORDER ACCEPTING 10 Report and Recommendation Signed by District Judge John Feikens. (CCoh)</docketText>
</extension>
</relatedItem>
</mods>


text:
'use strict';

/**
 * Sequelize provides a host of custom error classes, to allow you to do easier debugging. All of these errors are exposed on the sequelize object and the sequelize constructor.
 * All sequelize errors inherit from the base JS error object.
 *
 * This means that errors can be accessed using `Sequelize.ValidationError` or `sequelize.ValidationError`
 * The Base Error all Sequelize Errors inherit from.
 */
class BaseError extends Error {
  constructor(message) {
    super(message);
    this.name = 'SequelizeBaseError';
    this.message = message;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.BaseError = BaseError;

/**
 * Scope Error. Thrown when the sequelize cannot query the specified scope.
 */
class SequelizeScopeError extends BaseError {
  constructor(parent) {
    super(parent);
    this.name = 'SequelizeScopeError';
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.SequelizeScopeError = SequelizeScopeError;

/**
 * Validation Error. Thrown when the sequelize validation has failed. The error contains an `errors` property,
 * which is an array with 1 or more ValidationErrorItems, one for each validation that failed.
 *
 * @param {string} message Error message
 * @param {Array} [errors] Array of ValidationErrorItem objects describing the validation errors
 *
 * @property errors An array of ValidationErrorItems
 */
class ValidationError extends BaseError {
  constructor(message, errors) {
    super(message);
    this.name = 'SequelizeValidationError';
    this.message = 'Validation Error';
    /**
     *
     * @type {ValidationErrorItem[]}
     */
    this.errors = errors || [];

    // Use provided error message if available...
    if (message) {
      this.message = message;

      // ... otherwise create a concatenated message out of existing errors.
    } else if (this.errors.length > 0 && this.errors[0].message) {
      this.message = this.errors.map(err => err.type + ': ' + err.message).join(',\n');
    }
    Error.captureStackTrace(this, this.constructor);
  }

  /**
   * Gets all validation error items for the path / field specified.
   *
   * @param {string} path The path to be checked for error items
   * @returns {ValidationErrorItem[]} Validation error items for the specified path
   */
  get(path) {
    return this.errors.reduce((reduced, error) => {
      if (error.path === path) {
        reduced.push(error);
      }
      return reduced;
    }, []);
  }
}
exports.ValidationError = ValidationError;

/**
 * Thrown when attempting to update a stale model instance
 */
class OptimisticLockError extends BaseError {
  constructor(options) {
    options = options || {};
    options.message = options.message || 'Attempting to update a stale model instance: ' + options.modelName;
    super(options);
    this.name = 'SequelizeOptimisticLockError';
    this.message = options.message;
    /**
     * The name of the model on which the update was attempted
     * @type {string}
     */
    this.modelName = options.modelName;
    /**
     * The values of the attempted update
     * @type {object}
     */
    this.values = options.values;
    /**
     *
     * @type {object}
     */
    this.where = options.where;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.OptimisticLockError = OptimisticLockError;

/**
 * A base class for all database related errors.
 */
class DatabaseError extends BaseError {
  constructor(parent) {
    super(parent.message);
    this.name = 'SequelizeDatabaseError';
    /**
     * @type {Error}
     */
    this.parent = parent;
    /**
     * @type {Error}
     */
    this.original = parent;
    /**
     * The SQL that triggered the error
     * @type {string}
     */
    this.sql = parent.sql;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.DatabaseError = DatabaseError;

/**
 * Thrown when a database query times out because of a deadlock
 */
class TimeoutError extends DatabaseError {
  constructor(parent) {
    super(parent);
    this.name = 'SequelizeTimeoutError';
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.TimeoutError = TimeoutError;

/**
 * Thrown when a unique constraint is violated in the database
 */
class UniqueConstraintError extends ValidationError {
  constructor(options) {
    options = options || {};
    options.parent = options.parent || { sql: '' };
    options.message = options.message || options.parent.message || 'Validation Error';
    options.errors = options.errors || {};
    super(options.message, options.errors);

    this.name = 'SequelizeUniqueConstraintError';
    this.message = options.message;
    this.errors = options.errors;
    this.fields = options.fields;
    this.parent = options.parent;
    this.original = options.parent;
    this.sql = options.parent.sql;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.UniqueConstraintError = UniqueConstraintError;

/**
 * Thrown when a foreign key constraint is violated in the database
 */
class ForeignKeyConstraintError extends DatabaseError {
  constructor(options) {
    options = options || {};
    options.parent = options.parent || { sql: '' };

    super(options.parent);
    this.name = 'SequelizeForeignKeyConstraintError';

    this.message = options.message || options.parent.message || 'Database Error';
    this.fields = options.fields;
    this.table = options.table;
    this.value = options.value;
    this.index = options.index;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.ForeignKeyConstraintError = ForeignKeyConstraintError;

/**
 * Thrown when an exclusion constraint is violated in the database
 */
class ExclusionConstraintError extends DatabaseError {
  constructor(options) {
    options = options || {};
    options.parent = options.parent || { sql: '' };

    super(options.parent);
    this.name = 'SequelizeExclusionConstraintError';

    this.message = options.message || options.parent.message;
    this.constraint = options.constraint;
    this.fields = options.fields;
    this.table = options.table;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.ExclusionConstraintError = ExclusionConstraintError;

/**
 * Thrown when constraint name is not found in the database
 */
class UnknownConstraintError extends DatabaseError {
  constructor(message) {
    const parent = { message };
    super(parent);
    this.name = 'SequelizeUnknownConstraintError';
    this.message = message || 'The specified constraint does not exist';
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.UnknownConstraintError = UnknownConstraintError;

/**
 * Validation Error Item
 * Instances of this class are included in the `ValidationError.errors` property.
 *
 * @param {string} message An error message
 * @param {string} type The type of the validation error
 * @param {string} path The field that triggered the validation error
 * @param {string} value The value that generated the error
 */
class ValidationErrorItem {
  constructor(message, type, path, value) {
    this.message = message || '';
    this.type = type || null;
    this.path = path || null;
    this.value = value !== undefined ? value : null;
    //This doesn't need captureStackTrace because its not a subclass of Error
  }
}
exports.ValidationErrorItem = ValidationErrorItem;

/**
 * A base class for all connection related errors.
 */
class ConnectionError extends BaseError {
  constructor(parent) {
    super(parent ? parent.message : '');
    this.name = 'SequelizeConnectionError';
    /**
     * The connection specific error which triggered this one
     * @type {Error}
     */
    this.parent = parent;
    this.original = parent;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.ConnectionError = ConnectionError;

/**
 * Thrown when a connection to a database is refused
 */
class ConnectionRefusedError extends ConnectionError {
  constructor(parent) {
    super(parent);
    this.name = 'SequelizeConnectionRefusedError';
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.ConnectionRefusedError = ConnectionRefusedError;

/**
 * Thrown when a connection to a database is refused due to insufficient privileges
 */
class AccessDeniedError extends ConnectionError {
  constructor(parent) {
    super(parent);
    this.name = 'SequelizeAccessDeniedError';
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.AccessDeniedError = AccessDeniedError;

/**
 * Thrown when a connection to a database has a hostname that was not found
 */
class HostNotFoundError extends ConnectionError {
  constructor(parent) {
    super(parent);
    this.name = 'SequelizeHostNotFoundError';
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.HostNotFoundError = HostNotFoundError;

/**
 * Thrown when a connection to a database has a hostname that was not reachable
 */
class HostNotReachableError extends ConnectionError {
  constructor(parent) {
    super(parent);
    this.name = 'SequelizeHostNotReachableError';
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.HostNotReachableError = HostNotReachableError;

/**
 * Thrown when a connection to a database has invalid values for any of the connection parameters
 */
class InvalidConnectionError extends ConnectionError {
  constructor(parent) {
    super(parent);
    this.name = 'SequelizeInvalidConnectionError';
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.InvalidConnectionError = InvalidConnectionError;

/**
 * Thrown when a connection to a database times out
 */
class ConnectionTimedOutError extends ConnectionError {
  constructor(parent) {
    super(parent);
    this.name = 'SequelizeConnectionTimedOutError';
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.ConnectionTimedOutError = ConnectionTimedOutError;

/**
 * Thrown when a some problem occurred with Instance methods (see message for details)
 */
class InstanceError extends BaseError {
  constructor(message) {
    super(message);
    this.name = 'SequelizeInstanceError';
    this.message = message;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.InstanceError = InstanceError;

/**
 * Thrown when a record was not found, Usually used with rejectOnEmpty mode (see message for details)
 */
class EmptyResultError extends BaseError {
  constructor(message) {
    super(message);
    this.name = 'SequelizeEmptyResultError';
    this.message = message;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.EmptyResultError = EmptyResultError;

/**
 * Thrown when an include statement is improperly constructed (see message for details)
 */
class EagerLoadingError extends BaseError {
  constructor(message) {
    super(message);
    this.name = 'SequelizeEagerLoadingError';
    this.message = message;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.EagerLoadingError = EagerLoadingError;

/**
 * Thrown when an association is improperly constructed (see message for details)
 */
class AssociationError extends BaseError {
  constructor(message) {
    super(message);
    this.name = 'SequelizeAssociationError';
    this.message = message;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.AssociationError = AssociationError;
/**
 * Thrown when a query is passed invalid options (see message for details)
 */
class QueryError extends BaseError {
  constructor(message) {
    super(message);
    this.name = 'SequelizeQueryError';
    this.message = message;
    Error.captureStackTrace(this, this.constructor);
  }
}
exports.QueryError = QueryError;


text:
namespace mojo {

bool StructTraits<blink::mojom::FramePolicyDataView, blink::FramePolicy>::Read(
    blink::mojom::FramePolicyDataView in,
    blink::FramePolicy* out) {
  out->allowed_to_download = in.allowed_to_download();
  out->disallow_document_access = in.disallow_document_access();

  return in.ReadSandboxFlags(&out->sandbox_flags) &&
         in.ReadContainerPolicy(&out->container_policy) &&
         in.ReadRequiredDocumentPolicy(&out->required_document_policy);
}

}  // namespace mojo


text:
<?php
if (!defined('_JEXEC'))
die('Direct Access to ' . basename(__FILE__) . ' is not allowed.');
/**
 * BaseResult.class.php
 */

/**
 *
 *
 * @author    Avalara
 * @copyright � 2004 - 2011 Avalara, Inc.  All rights reserved.
 * @package   Batch
 */
class BaseResult {
  private $TransactionId; // string
  private $ResultCode; // SeverityLevel
  private $Messages; // ArrayOfMessage

  public function setTransactionId($value){$this->TransactionId=$value;} // string
  public function getTransactionId(){return $this->TransactionId;} // string

  public function setResultCode($value){$this->ResultCode=$value;} // SeverityLevel
  public function getResultCode(){return $this->ResultCode;} // SeverityLevel

  public function setMessages($value){$this->Messages=$value;} // ArrayOfMessage
  public function getMessages(){return $this->Messages;} // ArrayOfMessage

}

?>


text:
package com.danisola.restify.servlet.utils;

import com.danisola.restify.servlet.*;
import com.danisola.restify.url.RestUrl;
import com.danisola.restify.url.types.VarType;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class TestServlet extends RestServlet implements Delete, Get, Head, Options, Post, Put, Trace {

    private final TestCallback callback;

    public TestServlet(TestCallback callback, String pattern, VarType... types) {
        super(pattern, types);

        this.callback = callback;
    }

    @Override
    public void delete(HttpServletRequest req, HttpServletResponse res, RestUrl url) throws ServletException, IOException {
        callback.onMethodCalled(Method.Delete);
    }

    @Override
    public void get(HttpServletRequest req, HttpServletResponse res, RestUrl url) throws ServletException, IOException {
        callback.onMethodCalled(Method.Get);
    }

    @Override
    public void head(HttpServletRequest req, HttpServletResponse res, RestUrl url) throws ServletException, IOException {
        callback.onMethodCalled(Method.Head);
    }

    @Override
    public void options(HttpServletRequest req, HttpServletResponse res, RestUrl url) throws ServletException, IOException {
        callback.onMethodCalled(Method.Options);
    }

    @Override
    public void post(HttpServletRequest req, HttpServletResponse res, RestUrl url) throws ServletException, IOException {
        callback.onMethodCalled(Method.Post);
    }

    @Override
    public void put(HttpServletRequest req, HttpServletResponse res, RestUrl url) throws ServletException, IOException {
        callback.onMethodCalled(Method.Put);
    }

    @Override
    public void trace(HttpServletRequest req, HttpServletResponse res, RestUrl url) throws ServletException, IOException {
        callback.onMethodCalled(Method.Trace);
    }

    @Override
    protected void onInvalidUrl(RestUrl url) {
        callback.onInvalidUrl(url);
    }
}


text:
<?php

/*
 * @file RefreshCommand.php
 * @brief This file contains the RefreshCommand class.
 * @details
 * @author Filippo F. Fadda
 */

namespace ReIndex\Console\Command;

use EoC\Opt\ViewQueryOpts;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Process\Process;
use Symfony\Component\Process\Exception\ProcessFailedException;

use EoC\Couch;

/**
 * @brief Refreshes the ReIndex databases' views (or a single view).
 * @nosubgrouping
 */
final class RefreshCommand extends AbstractCommand {

  /**
   * @var Couch $couch
   */
  protected $couch;

  protected $prefix;

  protected $init;

  /**
   * @brief Refresh all the views contained inside a design document.
   * @param[in] string $dbName The database's name.
   * @param[in] string $docName The design document's name.
   */
  protected function refreshViewsInDDoc($dbName, $docName) {
    $viewName = key($this->init[$dbName][$docName]) ;
    $opts = new ViewQueryOpts();
    $opts->doNotReduce()->setLimit(0);
    $this->couch->queryView($dbName, $docName, $viewName);
  }

  /**
   * @brief Refresh all the views contained inside a database.
   * @param[in] OutputInterface $output The Symfony console output interface.
   * @param[in] string $dbName The database's name.
   * @param[in] array $ddocs An array of design documents.
   */
  protected function refreshViewsInDb(OutputInterface $output, $dbName, &$ddocs = NULL) {
    if (is_null($ddocs))
      $ddocs = &$this->init[$dbName];

    foreach ($ddocs as $docName => $views) {
      $cmd = sprintf('rei refresh %s %s', $dbName, $docName);

      $process = new Process($cmd);
      $process->start();

      $msg = sprintf('%s/%s ...done', $this->prefix.$dbName, $docName);
      $output->writeln($msg);
    }
  }

  /**
   * @brief Configures the command.
   */
  protected function configure() {
    $this->setName("refresh");
    $this->setDescription("Refreshes (in parallel) all the views, just the ones contained in a database or in a single design document");

    $this->addArgument("database-name",
      InputArgument::OPTIONAL,
      "An optional database name"
    );

    $this->addArgument("ddoc-name",
      InputArgument::OPTIONAL,
      "An optional design document name"
    );
  }

  /**
   * @brief Executes the command.
   */
  protected function execute(InputInterface $input, OutputInterface $output) {
    $this->couch = $this->di['couchdb'];
    $this->prefix = $this->couch->getDbPrefix();
    $this->init = $this->di['init'];

    if ($dbName = $input->getArgument('database-name')) {
      if (!array_key_exists($dbName, $this->init)) {
        echo "Invalid database's name." . PHP_EOL;
        exit(0);
      }

      if ($docName = $input->getArgument('ddoc-name')) {
        if (!array_key_exists($docName, $this->init[$dbName])) {
          echo "Invalid design document's name." . PHP_EOL;
          exit(0);
        }

        $this->refreshViewsInDDoc($dbName, $docName);
      }
      else
        $this->refreshViewsInDb($output, $dbName);
    }
    else {
      foreach ($this->init as $dbName => $ddocs)
        $this->refreshViewsInDb($output, $dbName, $ddocs);
    }
  }

}


text:
<?php

use Phinx\Migration\AbstractMigration;

class TableUserDestAddr extends AbstractMigration
{
    /**
     * Change Method.
     *
     * Write your reversible migrations using this method.
     *
     * More information on writing migrations is available here:
     * http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
     *
     * The following commands can be used in this method and Phinx will
     * automatically reverse them when rolling back:
     *
     *    createTable
     *    renameTable
     *    addColumn
     *    renameColumn
     *    addIndex
     *    addForeignKey
     *
     * Remember to call "create()" or "update()" and NOT "save()" when working
     * with the Table class.
     */
    public function change()
    {
        //快递收件地址
        $table = $this->table('user_dest_addr',array('id' => false,"primary_key"=>"dst_id"));
        $table
            ->addColumn('dst_id', 'integer', array(
                'signed' => false,
                'identity'=>true
            ))
            ->addColumn('user_id', 'integer', array(
                'signed' => false,
                "null"=>false,
            ))
            ->addColumn('dst_name', 'string', array(
                'comment' => "收件人姓名",
                "limit"=>50,
                'null' => false,
            ))
            ->addColumn('dst_phone', 'string', array(
                'comment' => "收件人手机或电话",
                "limit"=>50,
                'null' => false,
            ))
            ->addColumn('dst_prov', 'string', array(
                'comment' => "收件人省",
                "limit"=>10,
                'null' => false,
            ))
            ->addColumn('dst_city', 'string', array(
                'comment' => "收件人城市",
                "limit"=>10,
                'null' => false,
            ))
            ->addColumn('dst_dist', 'string', array(
                'comment' => "收件人区县",
                "limit"=>10,
                'null' => true,
            ))
            ->addColumn('dst_addr', 'string', array(
                'comment' => "收件人地址",
                "limit"=>200,
                'null' => false,
            ))
            ->addColumn('add_time', 'datetime', array(
                'comment' => "填写时间",
                "null"=>false
            ))
            ->create();

    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace REKT.Bluetooth
{
    public static class Gatt
    {
        /// <summary>
        /// UUID's of standard GATT services.
        /// ref: https://www.bluetooth.com/specifications/gatt/services
        /// </summary>
        public static class Services
        {
            public static readonly string GenericAccess = "00001800-0000-1000-8000-00805F9B34FB";
            public static readonly string AlertNotification = "00001811-0000-1000-8000-00805F9B34FB";
            public static readonly string AutomationIO = "00001815-0000-1000-8000-00805F9B34FB";
            public static readonly string Battery = "0000180F-0000-1000-8000-00805F9B34FB";
            public static readonly string BloodPressure = "00001810-0000-1000-8000-00805F9B34FB";
            public static readonly string BodyComposition = "0000181B-0000-1000-8000-00805F9B34FB";
            public static readonly string BondManagement = "0000181E-0000-1000-8000-00805F9B34FB";
            public static readonly string ContinuousGlucoseMonitoring = "0000181F-0000-1000-8000-00805F9B34FB";
            public static readonly string CurrentTime = "00001805-0000-1000-8000-00805F9B34FB";
            public static readonly string CyclingPower = "00001818-0000-1000-8000-00805F9B34FB";
            public static readonly string CyclingSpeedandCadence = "00001816-0000-1000-8000-00805F9B34FB";
            public static readonly string DeviceInformation = "0000180A-0000-1000-8000-00805F9B34FB";
            public static readonly string EnvironmentalSensing = "0000181A-0000-1000-8000-00805F9B34FB";
            public static readonly string FitnessMachine = "00001826-0000-1000-8000-00805F9B34FB";
            public static readonly string GenericAttribute = "00001801-0000-1000-8000-00805F9B34FB";
            public static readonly string Glucose = "00001808-0000-1000-8000-00805F9B34FB";
            public static readonly string HealthThermometer = "00001809-0000-1000-8000-00805F9B34FB";
            public static readonly string HeartRate = "0000180D-0000-1000-8000-00805F9B34FB";
            public static readonly string HTTPProxy = "00001823-0000-1000-8000-00805F9B34FB";
            public static readonly string HumanInterfaceDevice = "00001812-0000-1000-8000-00805F9B34FB";
            public static readonly string ImmediateAlert = "00001802-0000-1000-8000-00805F9B34FB";
            public static readonly string IndoorPositioning = "00001821-0000-1000-8000-00805F9B34FB";
            public static readonly string InternetProtocolSupport = "00001820-0000-1000-8000-00805F9B34FB";
            public static readonly string LinkLoss = "00001803-0000-1000-8000-00805F9B34FB";
            public static readonly string LocationandNavigation = "00001819-0000-1000-8000-00805F9B34FB";
            public static readonly string MeshProvisioning = "00001827-0000-1000-8000-00805F9B34FB";
            public static readonly string MeshProxy = "00001828-0000-1000-8000-00805F9B34FB";
            public static readonly string NextDSTChange = "00001807-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectTransfer = "00001825-0000-1000-8000-00805F9B34FB";
            public static readonly string PhoneAlertStatus = "0000180E-0000-1000-8000-00805F9B34FB";
            public static readonly string PulseOximeter = "00001822-0000-1000-8000-00805F9B34FB";
            public static readonly string ReferenceTimeUpdate = "00001806-0000-1000-8000-00805F9B34FB";
            public static readonly string RunningSpeedandCadence = "00001814-0000-1000-8000-00805F9B34FB";
            public static readonly string ScanParameters = "00001813-0000-1000-8000-00805F9B34FB";
            public static readonly string TransportDiscovery = "00001824-0000-1000-8000-00805F9B34FB";
            public static readonly string TxPower = "00001804-0000-1000-8000-00805F9B34FB";
            public static readonly string UserData = "0000181C-0000-1000-8000-00805F9B34FB";
            public static readonly string WeightScale = "0000181D-0000-1000-8000-00805F9B34FB";

            private static readonly Dictionary<string, string> names;
            static Services()
            {
                names = new Dictionary<string, string>();
                names[GenericAccess.ToUpper()] = "Generic Access";
                names[AlertNotification.ToUpper()] = "Alert Notification";
                names[AutomationIO.ToUpper()] = "Automation IO";
                names[Battery.ToUpper()] = "Battery";
                names[BloodPressure.ToUpper()] = "Blood Pressure";
                names[BodyComposition.ToUpper()] = "Body Composition";
                names[BondManagement.ToUpper()] = "Bond Management";
                names[ContinuousGlucoseMonitoring.ToUpper()] = "Continuous Glucose Monitoring";
                names[CurrentTime.ToUpper()] = "Current Time";
                names[CyclingPower.ToUpper()] = "Cycling Power";
                names[CyclingSpeedandCadence.ToUpper()] = "Cycling Speed and Cadence";
                names[DeviceInformation.ToUpper()] = "Device Information";
                names[EnvironmentalSensing.ToUpper()] = "Environmental Sensing";
                names[FitnessMachine.ToUpper()] = "Fitness Machine";
                names[GenericAttribute.ToUpper()] = "Generic Attribute";
                names[Glucose.ToUpper()] = "Glucose";
                names[HealthThermometer.ToUpper()] = "Health Thermometer";
                names[HeartRate.ToUpper()] = "Heart Rate";
                names[HTTPProxy.ToUpper()] = "HTTP Proxy";
                names[HumanInterfaceDevice.ToUpper()] = "Human Interface Device";
                names[ImmediateAlert.ToUpper()] = "Immediate Alert";
                names[IndoorPositioning.ToUpper()] = "Indoor Positioning";
                names[InternetProtocolSupport.ToUpper()] = "Internet Protocol Support";
                names[LinkLoss.ToUpper()] = "Link Loss";
                names[LocationandNavigation.ToUpper()] = "Location and Navigation";
                names[MeshProvisioning.ToUpper()] = "Mesh Provisioning";
                names[MeshProxy.ToUpper()] = "Mesh Proxy";
                names[NextDSTChange.ToUpper()] = "Next DST Change";
                names[ObjectTransfer.ToUpper()] = "Object Transfer";
                names[PhoneAlertStatus.ToUpper()] = "Phone Alert Status";
                names[PulseOximeter.ToUpper()] = "Pulse Oximeter";
                names[ReferenceTimeUpdate.ToUpper()] = "Reference Time Update";
                names[RunningSpeedandCadence.ToUpper()] = "Running Speed and Cadence";
                names[ScanParameters.ToUpper()] = "Scan Parameters";
                names[TransportDiscovery.ToUpper()] = "Transport Discovery";
                names[TxPower.ToUpper()] = "Tx Power";
                names[UserData.ToUpper()] = "User Data";
                names[WeightScale.ToUpper()] = "Weight Scale";
            }

            public static string NameOf<T>(T uuidObj) where T : class
            {
                if (uuidObj == null)
                    throw new ArgumentException("uuidObj cannot be null");
                var uuid = uuidObj.ToString().Trim().ToUpper();
                if (uuid.Length == 0)
                    throw new ArgumentException("uuid cannot be blank");
                if (names.TryGetValue(uuid, out var name))
                    return name;
                return uuid;
            }
        }

        /// <summary>
        /// UUID's of standard GATT characteristics.
        /// ref: https://www.bluetooth.com/specifications/gatt/characteristics
        /// </summary>
        public static class Characteristics
        {
            public static readonly string ClientCharacteristicConfig = "00002902-0000-1000-8000-00805F9B34FB";
            public static readonly string AerobicHeartRateLowerLimit = "00002A7E-0000-1000-8000-00805F9B34FB";
            public static readonly string AerobicHeartRateUpperLimit = "00002A84-0000-1000-8000-00805F9B34FB";
            public static readonly string AerobicThreshold = "00002A7F-0000-1000-8000-00805F9B34FB";
            public static readonly string Age = "00002A80-0000-1000-8000-00805F9B34FB";
            public static readonly string Aggregate = "00002A5A-0000-1000-8000-00805F9B34FB";
            public static readonly string AlertCategoryID = "00002A43-0000-1000-8000-00805F9B34FB";
            public static readonly string AlertCategoryIDBitMask = "00002A42-0000-1000-8000-00805F9B34FB";
            public static readonly string AlertLevel = "00002A06-0000-1000-8000-00805F9B34FB";
            public static readonly string AlertNotificationControlPoint = "00002A44-0000-1000-8000-00805F9B34FB";
            public static readonly string AlertStatus = "00002A3F-0000-1000-8000-00805F9B34FB";
            public static readonly string Altitude = "00002AB3-0000-1000-8000-00805F9B34FB";
            public static readonly string AnaerobicHeartRateLowerLimit = "00002A81-0000-1000-8000-00805F9B34FB";
            public static readonly string AnaerobicHeartRateUpperLimit = "00002A82-0000-1000-8000-00805F9B34FB";
            public static readonly string AnaerobicThreshold = "00002A83-0000-1000-8000-00805F9B34FB";
            public static readonly string Analog = "00002A58-0000-1000-8000-00805F9B34FB";
            public static readonly string AnalogOutput = "00002A59-0000-1000-8000-00805F9B34FB";
            public static readonly string ApparentWindDirection = "00002A73-0000-1000-8000-00805F9B34FB";
            public static readonly string ApparentWindSpeed = "00002A72-0000-1000-8000-00805F9B34FB";
            public static readonly string Appearance = "00002A01-0000-1000-8000-00805F9B34FB";
            public static readonly string BarometricPressureTrend = "00002AA3-0000-1000-8000-00805F9B34FB";
            public static readonly string BatteryLevel = "00002A19-0000-1000-8000-00805F9B34FB";
            public static readonly string BatteryLevelState = "00002A1B-0000-1000-8000-00805F9B34FB";
            public static readonly string BatteryPowerState = "00002A1A-0000-1000-8000-00805F9B34FB";
            public static readonly string BloodPressureFeature = "00002A49-0000-1000-8000-00805F9B34FB";
            public static readonly string BloodPressureMeasurement = "00002A35-0000-1000-8000-00805F9B34FB";
            public static readonly string BodyCompositionFeature = "00002A9B-0000-1000-8000-00805F9B34FB";
            public static readonly string BodyCompositionMeasurement = "00002A9C-0000-1000-8000-00805F9B34FB";
            public static readonly string BodySensorLocation = "00002A38-0000-1000-8000-00805F9B34FB";
            public static readonly string BondManagementControlPoint = "00002AA4-0000-1000-8000-00805F9B34FB";
            public static readonly string BondManagementFeatures = "00002AA5-0000-1000-8000-00805F9B34FB";
            public static readonly string BootKeyboardInputReport = "00002A22-0000-1000-8000-00805F9B34FB";
            public static readonly string BootKeyboardOutputReport = "00002A32-0000-1000-8000-00805F9B34FB";
            public static readonly string BootMouseInputReport = "00002A33-0000-1000-8000-00805F9B34FB";
            public static readonly string CentralAddressResolution = "00002AA6-0000-1000-8000-00805F9B34FB";
            public static readonly string CGMFeature = "00002AA8-0000-1000-8000-00805F9B34FB";
            public static readonly string CGMMeasurement = "00002AA7-0000-1000-8000-00805F9B34FB";
            public static readonly string CGMSessionRunTime = "00002AAB-0000-1000-8000-00805F9B34FB";
            public static readonly string CGMSessionStartTime = "00002AAA-0000-1000-8000-00805F9B34FB";
            public static readonly string CGMSpecificOpsControlPoint = "00002AAC-0000-1000-8000-00805F9B34FB";
            public static readonly string CGMStatus = "00002AA9-0000-1000-8000-00805F9B34FB";
            public static readonly string CrossTrainerData = "00002ACE-0000-1000-8000-00805F9B34FB";
            public static readonly string CSCFeature = "00002A5C-0000-1000-8000-00805F9B34FB";
            public static readonly string CSCMeasurement = "00002A5B-0000-1000-8000-00805F9B34FB";
            public static readonly string CurrentTime = "00002A2B-0000-1000-8000-00805F9B34FB";
            public static readonly string CyclingPowerControlPoint = "00002A66-0000-1000-8000-00805F9B34FB";
            public static readonly string CyclingPowerFeature = "00002A65-0000-1000-8000-00805F9B34FB";
            public static readonly string CyclingPowerMeasurement = "00002A63-0000-1000-8000-00805F9B34FB";
            public static readonly string CyclingPowerVector = "00002A64-0000-1000-8000-00805F9B34FB";
            public static readonly string DatabaseChangeIncrement = "00002A99-0000-1000-8000-00805F9B34FB";
            public static readonly string DateofBirth = "00002A85-0000-1000-8000-00805F9B34FB";
            public static readonly string DateofThresholdAssessment = "00002A86-0000-1000-8000-00805F9B34FB";
            public static readonly string DateTime = "00002A08-0000-1000-8000-00805F9B34FB";
            public static readonly string DayDateTime = "00002A0A-0000-1000-8000-00805F9B34FB";
            public static readonly string DayofWeek = "00002A09-0000-1000-8000-00805F9B34FB";
            public static readonly string DescriptorValueChanged = "00002A7D-0000-1000-8000-00805F9B34FB";
            public static readonly string DeviceName = "00002A00-0000-1000-8000-00805F9B34FB";
            public static readonly string DewPoint = "00002A7B-0000-1000-8000-00805F9B34FB";
            public static readonly string Digital = "00002A56-0000-1000-8000-00805F9B34FB";
            public static readonly string DigitalOutput = "00002A57-0000-1000-8000-00805F9B34FB";
            public static readonly string DSTOffset = "00002A0D-0000-1000-8000-00805F9B34FB";
            public static readonly string Elevation = "00002A6C-0000-1000-8000-00805F9B34FB";
            public static readonly string EmailAddress = "00002A87-0000-1000-8000-00805F9B34FB";
            public static readonly string ExactTime100 = "00002A0B-0000-1000-8000-00805F9B34FB";
            public static readonly string ExactTime256 = "00002A0C-0000-1000-8000-00805F9B34FB";
            public static readonly string FatBurnHeartRateLowerLimit = "00002A88-0000-1000-8000-00805F9B34FB";
            public static readonly string FatBurnHeartRateUpperLimit = "00002A89-0000-1000-8000-00805F9B34FB";
            public static readonly string FirmwareRevisionString = "00002A26-0000-1000-8000-00805F9B34FB";
            public static readonly string FirstName = "00002A8A-0000-1000-8000-00805F9B34FB";
            public static readonly string FitnessMachineControlPoint = "00002AD9-0000-1000-8000-00805F9B34FB";
            public static readonly string FitnessMachineFeature = "00002ACC-0000-1000-8000-00805F9B34FB";
            public static readonly string FitnessMachineStatus = "00002ADA-0000-1000-8000-00805F9B34FB";
            public static readonly string FiveZoneHeartRateLimits = "00002A8B-0000-1000-8000-00805F9B34FB";
            public static readonly string FloorNumber = "00002AB2-0000-1000-8000-00805F9B34FB";
            public static readonly string Gender = "00002A8C-0000-1000-8000-00805F9B34FB";
            public static readonly string GlucoseFeature = "00002A51-0000-1000-8000-00805F9B34FB";
            public static readonly string GlucoseMeasurement = "00002A18-0000-1000-8000-00805F9B34FB";
            public static readonly string GlucoseMeasurementContext = "00002A34-0000-1000-8000-00805F9B34FB";
            public static readonly string GustFactor = "00002A74-0000-1000-8000-00805F9B34FB";
            public static readonly string HardwareRevisionString = "00002A27-0000-1000-8000-00805F9B34FB";
            public static readonly string HeartRateControlPoint = "00002A39-0000-1000-8000-00805F9B34FB";
            public static readonly string HeartRateMax = "00002A8D-0000-1000-8000-00805F9B34FB";
            public static readonly string HeartRateMeasurement = "00002A37-0000-1000-8000-00805F9B34FB";
            public static readonly string HeatIndex = "00002A7A-0000-1000-8000-00805F9B34FB";
            public static readonly string Height = "00002A8E-0000-1000-8000-00805F9B34FB";
            public static readonly string HIDControlPoint = "00002A4C-0000-1000-8000-00805F9B34FB";
            public static readonly string HIDInformation = "00002A4A-0000-1000-8000-00805F9B34FB";
            public static readonly string HipCircumference = "00002A8F-0000-1000-8000-00805F9B34FB";
            public static readonly string HTTPControlPoint = "00002ABA-0000-1000-8000-00805F9B34FB";
            public static readonly string HTTPEntityBody = "00002AB9-0000-1000-8000-00805F9B34FB";
            public static readonly string HTTPHeaders = "00002AB7-0000-1000-8000-00805F9B34FB";
            public static readonly string HTTPStatusCode = "00002AB8-0000-1000-8000-00805F9B34FB";
            public static readonly string HTTPSSecurity = "00002ABB-0000-1000-8000-00805F9B34FB";
            public static readonly string Humidity = "00002A6F-0000-1000-8000-00805F9B34FB";
            public static readonly string RegulatoryCertificationDataList = "00002A2A-0000-1000-8000-00805F9B34FB";
            public static readonly string IndoorBikeData = "00002AD2-0000-1000-8000-00805F9B34FB";
            public static readonly string IndoorPositioningConfiguration = "00002AAD-0000-1000-8000-00805F9B34FB";
            public static readonly string IntermediateCuffPressure = "00002A36-0000-1000-8000-00805F9B34FB";
            public static readonly string IntermediateTemperature = "00002A1E-0000-1000-8000-00805F9B34FB";
            public static readonly string Irradiance = "00002A77-0000-1000-8000-00805F9B34FB";
            public static readonly string Language = "00002AA2-0000-1000-8000-00805F9B34FB";
            public static readonly string LastName = "00002A90-0000-1000-8000-00805F9B34FB";
            public static readonly string Latitude = "00002AAE-0000-1000-8000-00805F9B34FB";
            public static readonly string LNControlPoint = "00002A6B-0000-1000-8000-00805F9B34FB";
            public static readonly string LNFeature = "00002A6A-0000-1000-8000-00805F9B34FB";
            public static readonly string LocalEastCoordinate = "00002AB1-0000-1000-8000-00805F9B34FB";
            public static readonly string LocalNorthCoordinate = "00002AB0-0000-1000-8000-00805F9B34FB";
            public static readonly string LocalTimeInformation = "00002A0F-0000-1000-8000-00805F9B34FB";
            public static readonly string LocationandSpeedCharacteristic = "00002A67-0000-1000-8000-00805F9B34FB";
            public static readonly string LocationName = "00002AB5-0000-1000-8000-00805F9B34FB";
            public static readonly string Longitude = "00002AAF-0000-1000-8000-00805F9B34FB";
            public static readonly string MagneticDeclination = "00002A2C-0000-1000-8000-00805F9B34FB";
            public static readonly string MagneticFluxDensity2D = "00002AA0-0000-1000-8000-00805F9B34FB";
            public static readonly string MagneticFluxDensity3D = "00002AA1-0000-1000-8000-00805F9B34FB";
            public static readonly string ManufacturerNameString = "00002A29-0000-1000-8000-00805F9B34FB";
            public static readonly string MaximumRecommendedHeartRate = "00002A91-0000-1000-8000-00805F9B34FB";
            public static readonly string MeasurementInterval = "00002A21-0000-1000-8000-00805F9B34FB";
            public static readonly string ModelNumberString = "00002A24-0000-1000-8000-00805F9B34FB";
            public static readonly string Navigation = "00002A68-0000-1000-8000-00805F9B34FB";
            public static readonly string NetworkAvailability = "00002A3E-0000-1000-8000-00805F9B34FB";
            public static readonly string NewAlert = "00002A46-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectActionControlPoint = "00002AC5-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectChanged = "00002AC8-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectFirstCreated = "00002AC1-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectID = "00002AC3-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectLastModified = "00002AC2-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectListControlPoint = "00002AC6-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectListFilter = "00002AC7-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectName = "00002ABE-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectProperties = "00002AC4-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectSize = "00002AC0-0000-1000-8000-00805F9B34FB";
            public static readonly string ObjectType = "00002ABF-0000-1000-8000-00805F9B34FB";
            public static readonly string OTSFeature = "00002ABD-0000-1000-8000-00805F9B34FB";
            public static readonly string PeripheralPreferredConnectionParameters = "00002A04-0000-1000-8000-00805F9B34FB";
            public static readonly string PeripheralPrivacyFlag = "00002A02-0000-1000-8000-00805F9B34FB";
            public static readonly string PLXContinuousMeasurementCharacteristic = "00002A5F-0000-1000-8000-00805F9B34FB";
            public static readonly string PLXFeatures = "00002A60-0000-1000-8000-00805F9B34FB";
            public static readonly string PLXSpotCheckMeasurement = "00002A5E-0000-1000-8000-00805F9B34FB";
            public static readonly string PnPID = "00002A50-0000-1000-8000-00805F9B34FB";
            public static readonly string PollenConcentration = "00002A75-0000-1000-8000-00805F9B34FB";
            public static readonly string Position2D = "00002A2F-0000-1000-8000-00805F9B34FB";
            public static readonly string Position3D = "00002A30-0000-1000-8000-00805F9B34FB";
            public static readonly string PositionQuality = "00002A69-0000-1000-8000-00805F9B34FB";
            public static readonly string Pressure = "00002A6D-0000-1000-8000-00805F9B34FB";
            public static readonly string ProtocolMode = "00002A4E-0000-1000-8000-00805F9B34FB";
            public static readonly string PulseOximetryControlPoint = "00002A62-0000-1000-8000-00805F9B34FB";
            public static readonly string PulseOximetryPulsatileEventCharacteristic = "00002A60-0000-1000-8000-00805F9B34FB";
            public static readonly string Rainfall = "00002A78-0000-1000-8000-00805F9B34FB";
            public static readonly string ReconnectionAddress = "00002A03-0000-1000-8000-00805F9B34FB";
            public static readonly string RecordAccessControlPoint = "00002A52-0000-1000-8000-00805F9B34FB";
            public static readonly string ReferenceTimeInformation = "00002A14-0000-1000-8000-00805F9B34FB";
            public static readonly string Removable = "00002A3A-0000-1000-8000-00805F9B34FB";
            public static readonly string Report = "00002A4D-0000-1000-8000-00805F9B34FB";
            public static readonly string ReportMap = "00002A4B-0000-1000-8000-00805F9B34FB";
            public static readonly string ResolvablePrivateAddressOnly = "00002AC9-0000-1000-8000-00805F9B34FB";
            public static readonly string RestingHeartRate = "00002A92-0000-1000-8000-00805F9B34FB";
            public static readonly string RingerControlpoint = "00002A40-0000-1000-8000-00805F9B34FB";
            public static readonly string RingerSetting = "00002A41-0000-1000-8000-00805F9B34FB";
            public static readonly string RowerData = "00002AD1-0000-1000-8000-00805F9B34FB";
            public static readonly string RSCFeature = "00002A54-0000-1000-8000-00805F9B34FB";
            public static readonly string RSCMeasurement = "00002A53-0000-1000-8000-00805F9B34FB";
            public static readonly string SCControlPoint = "00002A55-0000-1000-8000-00805F9B34FB";
            public static readonly string ScanIntervalWindow = "00002A4F-0000-1000-8000-00805F9B34FB";
            public static readonly string ScanRefresh = "00002A31-0000-1000-8000-00805F9B34FB";
            public static readonly string ScientificTemperatureCelsius = "00002A3C-0000-1000-8000-00805F9B34FB";
            public static readonly string SecondaryTimeZone = "00002A10-0000-1000-8000-00805F9B34FB";
            public static readonly string SensorLocation = "00002A5D-0000-1000-8000-00805F9B34FB";
            public static readonly string SerialNumberString = "00002A25-0000-1000-8000-00805F9B34FB";
            public static readonly string ServiceChanged = "00002A05-0000-1000-8000-00805F9B34FB";
            public static readonly string ServiceRequired = "00002A3B-0000-1000-8000-00805F9B34FB";
            public static readonly string SoftwareRevisionString = "00002A28-0000-1000-8000-00805F9B34FB";
            public static readonly string SportTypeforAerobicandAnaerobicThresholds = "00002A93-0000-1000-8000-00805F9B34FB";
            public static readonly string StairClimberData = "00002AD0-0000-1000-8000-00805F9B34FB";
            public static readonly string StepClimberData = "00002ACF-0000-1000-8000-00805F9B34FB";
            public static readonly string String = "00002A3D-0000-1000-8000-00805F9B34FB";
            public static readonly string SupportedHeartRateRange = "00002AD7-0000-1000-8000-00805F9B34FB";
            public static readonly string SupportedInclinationRange = "00002AD5-0000-1000-8000-00805F9B34FB";
            public static readonly string SupportedNewAlertCategory = "00002A47-0000-1000-8000-00805F9B34FB";
            public static readonly string SupportedPowerRange = "00002AD8-0000-1000-8000-00805F9B34FB";
            public static readonly string SupportedResistanceLevelRange = "00002AD6-0000-1000-8000-00805F9B34FB";
            public static readonly string SupportedSpeedRange = "00002AD4-0000-1000-8000-00805F9B34FB";
            public static readonly string SupportedUnreadAlertCategory = "00002A48-0000-1000-8000-00805F9B34FB";
            public static readonly string SystemID = "00002A23-0000-1000-8000-00805F9B34FB";
            public static readonly string TDSControlPoint = "00002ABC-0000-1000-8000-00805F9B34FB";
            public static readonly string Temperature = "00002A6E-0000-1000-8000-00805F9B34FB";
            public static readonly string TemperatureCelsius = "00002A1F-0000-1000-8000-00805F9B34FB";
            public static readonly string TemperatureFahrenheit = "00002A20-0000-1000-8000-00805F9B34FB";
            public static readonly string TemperatureMeasurement = "00002A1C-0000-1000-8000-00805F9B34FB";
            public static readonly string TemperatureType = "00002A1D-0000-1000-8000-00805F9B34FB";
            public static readonly string ThreeZoneHeartRateLimits = "00002A94-0000-1000-8000-00805F9B34FB";
            public static readonly string TimeAccuracy = "00002A12-0000-1000-8000-00805F9B34FB";
            public static readonly string TimeBroadcast = "00002A15-0000-1000-8000-00805F9B34FB";
            public static readonly string TimeSource = "00002A13-0000-1000-8000-00805F9B34FB";
            public static readonly string TimeUpdateControlPoint = "00002A16-0000-1000-8000-00805F9B34FB";
            public static readonly string TimeUpdateState = "00002A17-0000-1000-8000-00805F9B34FB";
            public static readonly string TimewithDST = "00002A11-0000-1000-8000-00805F9B34FB";
            public static readonly string TimeZone = "00002A0E-0000-1000-8000-00805F9B34FB";
            public static readonly string TrainingStatus = "00002AD3-0000-1000-8000-00805F9B34FB";
            public static readonly string TreadmillData = "00002ACD-0000-1000-8000-00805F9B34FB";
            public static readonly string TrueWindDirection = "00002A71-0000-1000-8000-00805F9B34FB";
            public static readonly string TrueWindSpeed = "00002A70-0000-1000-8000-00805F9B34FB";
            public static readonly string TwoZoneHeartRateLimit = "00002A95-0000-1000-8000-00805F9B34FB";
            public static readonly string TxPowerLevel = "00002A07-0000-1000-8000-00805F9B34FB";
            public static readonly string Uncertainty = "00002AB4-0000-1000-8000-00805F9B34FB";
            public static readonly string UnreadAlertStatus = "00002A45-0000-1000-8000-00805F9B34FB";
            public static readonly string URI = "00002AB6-0000-1000-8000-00805F9B34FB";
            public static readonly string UserControlPoint = "00002A9F-0000-1000-8000-00805F9B34FB";
            public static readonly string UserIndex = "00002A9A-0000-1000-8000-00805F9B34FB";
            public static readonly string UVIndex = "00002A76-0000-1000-8000-00805F9B34FB";
            public static readonly string VO2Max = "00002A96-0000-1000-8000-00805F9B34FB";
            public static readonly string WaistCircumference = "00002A97-0000-1000-8000-00805F9B34FB";
            public static readonly string Weight = "00002A98-0000-1000-8000-00805F9B34FB";
            public static readonly string WeightMeasurement = "00002A9D-0000-1000-8000-00805F9B34FB";
            public static readonly string WeightScaleFeature = "00002A9E-0000-1000-8000-00805F9B34FB";
            public static readonly string WindChill = "00002A79-0000-1000-8000-00805F9B34FB";

            private static readonly Dictionary<string, string> names;
            static Characteristics()
            {
                names = new Dictionary<string, string>();
                names[ClientCharacteristicConfig.ToUpper()] = "ClientCharacteristicConfig";
                names[AerobicHeartRateLowerLimit.ToUpper()] = "AerobicHeartRateLowerLimit";
                names[AerobicHeartRateUpperLimit.ToUpper()] = "AerobicHeartRateUpperLimit";
                names[AerobicThreshold.ToUpper()] = "AerobicThreshold";
                names[Age.ToUpper()] = "Age";
                names[Aggregate.ToUpper()] = "Aggregate";
                names[AlertCategoryID.ToUpper()] = "AlertCategoryID";
                names[AlertCategoryIDBitMask.ToUpper()] = "AlertCategoryIDBitMask";
                names[AlertLevel.ToUpper()] = "AlertLevel";
                names[AlertNotificationControlPoint.ToUpper()] = "AlertNotificationControlPoint";
                names[AlertStatus.ToUpper()] = "AlertStatus";
                names[Altitude.ToUpper()] = "Altitude";
                names[AnaerobicHeartRateLowerLimit.ToUpper()] = "AnaerobicHeartRateLowerLimit";
                names[AnaerobicHeartRateUpperLimit.ToUpper()] = "AnaerobicHeartRateUpperLimit";
                names[AnaerobicThreshold.ToUpper()] = "AnaerobicThreshold";
                names[Analog.ToUpper()] = "Analog";
                names[AnalogOutput.ToUpper()] = "AnalogOutput";
                names[ApparentWindDirection.ToUpper()] = "ApparentWindDirection";
                names[ApparentWindSpeed.ToUpper()] = "ApparentWindSpeed";
                names[Appearance.ToUpper()] = "Appearance";
                names[BarometricPressureTrend.ToUpper()] = "BarometricPressureTrend";
                names[BatteryLevel.ToUpper()] = "BatteryLevel";
                names[BatteryLevelState.ToUpper()] = "BatteryLevelState";
                names[BatteryPowerState.ToUpper()] = "BatteryPowerState";
                names[BloodPressureFeature.ToUpper()] = "BloodPressureFeature";
                names[BloodPressureMeasurement.ToUpper()] = "BloodPressureMeasurement";
                names[BodyCompositionFeature.ToUpper()] = "BodyCompositionFeature";
                names[BodyCompositionMeasurement.ToUpper()] = "BodyCompositionMeasurement";
                names[BodySensorLocation.ToUpper()] = "BodySensorLocation";
                names[BondManagementControlPoint.ToUpper()] = "BondManagementControlPoint";
                names[BondManagementFeatures.ToUpper()] = "BondManagementFeatures";
                names[BootKeyboardInputReport.ToUpper()] = "BootKeyboardInputReport";
                names[BootKeyboardOutputReport.ToUpper()] = "BootKeyboardOutputReport";
                names[BootMouseInputReport.ToUpper()] = "BootMouseInputReport";
                names[CentralAddressResolution.ToUpper()] = "CentralAddressResolution";
                names[CGMFeature.ToUpper()] = "CGMFeature";
                names[CGMMeasurement.ToUpper()] = "CGMMeasurement";
                names[CGMSessionRunTime.ToUpper()] = "CGMSessionRunTime";
                names[CGMSessionStartTime.ToUpper()] = "CGMSessionStartTime";
                names[CGMSpecificOpsControlPoint.ToUpper()] = "CGMSpecificOpsControlPoint";
                names[CGMStatus.ToUpper()] = "CGMStatus";
                names[CrossTrainerData.ToUpper()] = "CrossTrainerData";
                names[CSCFeature.ToUpper()] = "CSCFeature";
                names[CSCMeasurement.ToUpper()] = "CSCMeasurement";
                names[CurrentTime.ToUpper()] = "CurrentTime";
                names[CyclingPowerControlPoint.ToUpper()] = "CyclingPowerControlPoint";
                names[CyclingPowerFeature.ToUpper()] = "CyclingPowerFeature";
                names[CyclingPowerMeasurement.ToUpper()] = "CyclingPowerMeasurement";
                names[CyclingPowerVector.ToUpper()] = "CyclingPowerVector";
                names[DatabaseChangeIncrement.ToUpper()] = "DatabaseChangeIncrement";
                names[DateofBirth.ToUpper()] = "DateofBirth";
                names[DateofThresholdAssessment.ToUpper()] = "DateofThresholdAssessment";
                names[DateTime.ToUpper()] = "DateTime";
                names[DayDateTime.ToUpper()] = "DayDateTime";
                names[DayofWeek.ToUpper()] = "DayofWeek";
                names[DescriptorValueChanged.ToUpper()] = "DescriptorValueChanged";
                names[DeviceName.ToUpper()] = "DeviceName";
                names[DewPoint.ToUpper()] = "DewPoint";
                names[Digital.ToUpper()] = "Digital";
                names[DigitalOutput.ToUpper()] = "DigitalOutput";
                names[DSTOffset.ToUpper()] = "DSTOffset";
                names[Elevation.ToUpper()] = "Elevation";
                names[EmailAddress.ToUpper()] = "EmailAddress";
                names[ExactTime100.ToUpper()] = "ExactTime100";
                names[ExactTime256.ToUpper()] = "ExactTime256";
                names[FatBurnHeartRateLowerLimit.ToUpper()] = "FatBurnHeartRateLowerLimit";
                names[FatBurnHeartRateUpperLimit.ToUpper()] = "FatBurnHeartRateUpperLimit";
                names[FirmwareRevisionString.ToUpper()] = "FirmwareRevisionString";
                names[FirstName.ToUpper()] = "FirstName";
                names[FitnessMachineControlPoint.ToUpper()] = "FitnessMachineControlPoint";
                names[FitnessMachineFeature.ToUpper()] = "FitnessMachineFeature";
                names[FitnessMachineStatus.ToUpper()] = "FitnessMachineStatus";
                names[FiveZoneHeartRateLimits.ToUpper()] = "FiveZoneHeartRateLimits";
                names[FloorNumber.ToUpper()] = "FloorNumber";
                names[Gender.ToUpper()] = "Gender";
                names[GlucoseFeature.ToUpper()] = "GlucoseFeature";
                names[GlucoseMeasurement.ToUpper()] = "GlucoseMeasurement";
                names[GlucoseMeasurementContext.ToUpper()] = "GlucoseMeasurementContext";
                names[GustFactor.ToUpper()] = "GustFactor";
                names[HardwareRevisionString.ToUpper()] = "HardwareRevisionString";
                names[HeartRateControlPoint.ToUpper()] = "HeartRateControlPoint";
                names[HeartRateMax.ToUpper()] = "HeartRateMax";
                names[HeartRateMeasurement.ToUpper()] = "HeartRateMeasurement";
                names[HeatIndex.ToUpper()] = "HeatIndex";
                names[Height.ToUpper()] = "Height";
                names[HIDControlPoint.ToUpper()] = "HIDControlPoint";
                names[HIDInformation.ToUpper()] = "HIDInformation";
                names[HipCircumference.ToUpper()] = "HipCircumference";
                names[HTTPControlPoint.ToUpper()] = "HTTPControlPoint";
                names[HTTPEntityBody.ToUpper()] = "HTTPEntityBody";
                names[HTTPHeaders.ToUpper()] = "HTTPHeaders";
                names[HTTPStatusCode.ToUpper()] = "HTTPStatusCode";
                names[HTTPSSecurity.ToUpper()] = "HTTPSSecurity";
                names[Humidity.ToUpper()] = "Humidity";
                names[RegulatoryCertificationDataList.ToUpper()] = "RegulatoryCertificationDataList";
                names[IndoorBikeData.ToUpper()] = "IndoorBikeData";
                names[IndoorPositioningConfiguration.ToUpper()] = "IndoorPositioningConfiguration";
                names[IntermediateCuffPressure.ToUpper()] = "IntermediateCuffPressure";
                names[IntermediateTemperature.ToUpper()] = "IntermediateTemperature";
                names[Irradiance.ToUpper()] = "Irradiance";
                names[Language.ToUpper()] = "Language";
                names[LastName.ToUpper()] = "LastName";
                names[Latitude.ToUpper()] = "Latitude";
                names[LNControlPoint.ToUpper()] = "LNControlPoint";
                names[LNFeature.ToUpper()] = "LNFeature";
                names[LocalEastCoordinate.ToUpper()] = "LocalEastCoordinate";
                names[LocalNorthCoordinate.ToUpper()] = "LocalNorthCoordinate";
                names[LocalTimeInformation.ToUpper()] = "LocalTimeInformation";
                names[LocationandSpeedCharacteristic.ToUpper()] = "LocationandSpeedCharacteristic";
                names[LocationName.ToUpper()] = "LocationName";
                names[Longitude.ToUpper()] = "Longitude";
                names[MagneticDeclination.ToUpper()] = "MagneticDeclination";
                names[MagneticFluxDensity2D.ToUpper()] = "MagneticFluxDensity2D";
                names[MagneticFluxDensity3D.ToUpper()] = "MagneticFluxDensity3D";
                names[ManufacturerNameString.ToUpper()] = "ManufacturerNameString";
                names[MaximumRecommendedHeartRate.ToUpper()] = "MaximumRecommendedHeartRate";
                names[MeasurementInterval.ToUpper()] = "MeasurementInterval";
                names[ModelNumberString.ToUpper()] = "ModelNumberString";
                names[Navigation.ToUpper()] = "Navigation";
                names[NetworkAvailability.ToUpper()] = "NetworkAvailability";
                names[NewAlert.ToUpper()] = "NewAlert";
                names[ObjectActionControlPoint.ToUpper()] = "ObjectActionControlPoint";
                names[ObjectChanged.ToUpper()] = "ObjectChanged";
                names[ObjectFirstCreated.ToUpper()] = "ObjectFirstCreated";
                names[ObjectID.ToUpper()] = "ObjectID";
                names[ObjectLastModified.ToUpper()] = "ObjectLastModified";
                names[ObjectListControlPoint.ToUpper()] = "ObjectListControlPoint";
                names[ObjectListFilter.ToUpper()] = "ObjectListFilter";
                names[ObjectName.ToUpper()] = "ObjectName";
                names[ObjectProperties.ToUpper()] = "ObjectProperties";
                names[ObjectSize.ToUpper()] = "ObjectSize";
                names[ObjectType.ToUpper()] = "ObjectType";
                names[OTSFeature.ToUpper()] = "OTSFeature";
                names[PeripheralPreferredConnectionParameters.ToUpper()] = "PeripheralPreferredConnectionParameters";
                names[PeripheralPrivacyFlag.ToUpper()] = "PeripheralPrivacyFlag";
                names[PLXContinuousMeasurementCharacteristic.ToUpper()] = "PLXContinuousMeasurementCharacteristic";
                names[PLXFeatures.ToUpper()] = "PLXFeatures";
                names[PLXSpotCheckMeasurement.ToUpper()] = "PLXSpotCheckMeasurement";
                names[PnPID.ToUpper()] = "PnPID";
                names[PollenConcentration.ToUpper()] = "PollenConcentration";
                names[Position2D.ToUpper()] = "Position2D";
                names[Position3D.ToUpper()] = "Position3D";
                names[PositionQuality.ToUpper()] = "PositionQuality";
                names[Pressure.ToUpper()] = "Pressure";
                names[ProtocolMode.ToUpper()] = "ProtocolMode";
                names[PulseOximetryControlPoint.ToUpper()] = "PulseOximetryControlPoint";
                names[PulseOximetryPulsatileEventCharacteristic.ToUpper()] = "PulseOximetryPulsatileEventCharacteristic";
                names[Rainfall.ToUpper()] = "Rainfall";
                names[ReconnectionAddress.ToUpper()] = "ReconnectionAddress";
                names[RecordAccessControlPoint.ToUpper()] = "RecordAccessControlPoint";
                names[ReferenceTimeInformation.ToUpper()] = "ReferenceTimeInformation";
                names[Removable.ToUpper()] = "Removable";
                names[Report.ToUpper()] = "Report";
                names[ReportMap.ToUpper()] = "ReportMap";
                names[ResolvablePrivateAddressOnly.ToUpper()] = "ResolvablePrivateAddressOnly";
                names[RestingHeartRate.ToUpper()] = "RestingHeartRate";
                names[RingerControlpoint.ToUpper()] = "RingerControlpoint";
                names[RingerSetting.ToUpper()] = "RingerSetting";
                names[RowerData.ToUpper()] = "RowerData";
                names[RSCFeature.ToUpper()] = "RSCFeature";
                names[RSCMeasurement.ToUpper()] = "RSCMeasurement";
                names[SCControlPoint.ToUpper()] = "SCControlPoint";
                names[ScanIntervalWindow.ToUpper()] = "ScanIntervalWindow";
                names[ScanRefresh.ToUpper()] = "ScanRefresh";
                names[ScientificTemperatureCelsius.ToUpper()] = "ScientificTemperatureCelsius";
                names[SecondaryTimeZone.ToUpper()] = "SecondaryTimeZone";
                names[SensorLocation.ToUpper()] = "SensorLocation";
                names[SerialNumberString.ToUpper()] = "SerialNumberString";
                names[ServiceChanged.ToUpper()] = "ServiceChanged";
                names[ServiceRequired.ToUpper()] = "ServiceRequired";
                names[SoftwareRevisionString.ToUpper()] = "SoftwareRevisionString";
                names[SportTypeforAerobicandAnaerobicThresholds.ToUpper()] = "SportTypeforAerobicandAnaerobicThresholds";
                names[StairClimberData.ToUpper()] = "StairClimberData";
                names[StepClimberData.ToUpper()] = "StepClimberData";
                names[String.ToUpper()] = "String";
                names[SupportedHeartRateRange.ToUpper()] = "SupportedHeartRateRange";
                names[SupportedInclinationRange.ToUpper()] = "SupportedInclinationRange";
                names[SupportedNewAlertCategory.ToUpper()] = "SupportedNewAlertCategory";
                names[SupportedPowerRange.ToUpper()] = "SupportedPowerRange";
                names[SupportedResistanceLevelRange.ToUpper()] = "SupportedResistanceLevelRange";
                names[SupportedSpeedRange.ToUpper()] = "SupportedSpeedRange";
                names[SupportedUnreadAlertCategory.ToUpper()] = "SupportedUnreadAlertCategory";
                names[SystemID.ToUpper()] = "SystemID";
                names[TDSControlPoint.ToUpper()] = "TDSControlPoint";
                names[Temperature.ToUpper()] = "Temperature";
                names[TemperatureCelsius.ToUpper()] = "TemperatureCelsius";
                names[TemperatureFahrenheit.ToUpper()] = "TemperatureFahrenheit";
                names[TemperatureMeasurement.ToUpper()] = "TemperatureMeasurement";
                names[TemperatureType.ToUpper()] = "TemperatureType";
                names[ThreeZoneHeartRateLimits.ToUpper()] = "ThreeZoneHeartRateLimits";
                names[TimeAccuracy.ToUpper()] = "TimeAccuracy";
                names[TimeBroadcast.ToUpper()] = "TimeBroadcast";
                names[TimeSource.ToUpper()] = "TimeSource";
                names[TimeUpdateControlPoint.ToUpper()] = "TimeUpdateControlPoint";
                names[TimeUpdateState.ToUpper()] = "TimeUpdateState";
                names[TimewithDST.ToUpper()] = "TimewithDST";
                names[TimeZone.ToUpper()] = "TimeZone";
                names[TrainingStatus.ToUpper()] = "TrainingStatus";
                names[TreadmillData.ToUpper()] = "TreadmillData";
                names[TrueWindDirection.ToUpper()] = "TrueWindDirection";
                names[TrueWindSpeed.ToUpper()] = "TrueWindSpeed";
                names[TwoZoneHeartRateLimit.ToUpper()] = "TwoZoneHeartRateLimit";
                names[TxPowerLevel.ToUpper()] = "TxPowerLevel";
                names[Uncertainty.ToUpper()] = "Uncertainty";
                names[UnreadAlertStatus.ToUpper()] = "UnreadAlertStatus";
                names[URI.ToUpper()] = "URI";
                names[UserControlPoint.ToUpper()] = "UserControlPoint";
                names[UserIndex.ToUpper()] = "UserIndex";
                names[UVIndex.ToUpper()] = "UVIndex";
                names[VO2Max.ToUpper()] = "VO2Max";
                names[WaistCircumference.ToUpper()] = "WaistCircumference";
                names[Weight.ToUpper()] = "Weight";
                names[WeightMeasurement.ToUpper()] = "WeightMeasurement";
                names[WeightScaleFeature.ToUpper()] = "WeightScaleFeature";
                names[WindChill.ToUpper()] = "WindChill";
            }

            public static string NameOf<T>(T uuidObj) where T : class
            {
                if (uuidObj == null)
                    throw new ArgumentException("uuidObj cannot be null");
                var uuid = uuidObj.ToString().Trim().ToUpper();
                if (uuid.Length == 0)
                    throw new ArgumentException("uuid cannot be blank");
                if (names.TryGetValue(uuid, out var name))
                    return name;
                return uuid;
            }
        }
    }
}


text:
//License

package com.ghgande.j2mod.modbus.msg;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

import com.ghgande.j2mod.modbus.Modbus;
import com.ghgande.j2mod.modbus.util.BitVector;

/**
 * Class implementing a <tt>ReadInputDiscretesResponse</tt>.
 * The implementation directly correlates with the class 1
 * function read input discretes (FC 2). It encapsulates
 * the corresponding response message.
 *

 * Input Discretes are understood as bits that cannot be
 * manipulated (i.e. set or unset).
 *
 * @author Dieter Wimberger
 * @version 1.2rc1 (09/11/2004)
 */
public final class ReadInputDiscretesResponse
    extends ModbusResponse {

  //instance attributes
  private int m_BitCount;
  private BitVector m_Discretes;

  /**
   * Constructs a new <tt>ReadInputDiscretesResponse</tt>
   * instance.
   */
  public ReadInputDiscretesResponse() {
    super();
    setFunctionCode(Modbus.READ_INPUT_DISCRETES);
  }//constructor

  /**
   * Constructs a new <tt>ReadInputDiscretesResponse</tt>
   * instance with a given count of input discretes
   * (i.e. bits).
   *
   * @param count the number of bits to be read.
   */
  public ReadInputDiscretesResponse(int count) {
    super();
    setFunctionCode(Modbus.READ_INPUT_DISCRETES);
    setBitCount(count);
  }//constructor

  /**
   * Returns the number of bits (i.e. input discretes)
   * read with the request.
   *

   * @return the number of bits that have been read.
   */
  public int getBitCount() {
    return m_BitCount;
  }//getBitCount

  /**
   * Sets the number of bits in this response.
   *
   * @param count the number of response bits as int.
   */
  public void setBitCount(int count) {
    m_BitCount = count;
    m_Discretes = new BitVector(count);
    //set correct length, without counting unitid and fc
    setDataLength(m_Discretes.byteSize() + 1);
  }//setBitCount

  /**
   * Returns the <tt>BitVector</tt> that stores
   * the collection of bits that have been read.
   *

   * @return the <tt>BitVector</tt> holding the
   *         bits that have been read.
   */
  public BitVector getDiscretes() {
    return m_Discretes;
  }//getDiscretes

  /**
   * Convenience method that returns the state
   * of the bit at the given index.
   *

   * @param index the index of the input discrete
   *        for which the status should be returned.
   *
   * @return true if set, false otherwise.
   *
   * @throws IndexOutOfBoundsException if the
   *         index is out of bounds
   */
  public boolean getDiscreteStatus(int index)
      throws IndexOutOfBoundsException {

    return m_Discretes.getBit(index);
  }//getDiscreteStatus

  /**
   * Sets the status of the given input discrete.
   *
   * @param index the index of the input discrete to be set.
   * @param b true if to be set, false if to be reset.
   * @throws IndexOutOfBoundsException if the given index exceeds bounds.
   */
  public void setDiscreteStatus(int index, boolean b)
      throws IndexOutOfBoundsException {
    m_Discretes.setBit(index, b);
  }//setDiscreteStatus

  public void writeData(DataOutput dout)
      throws IOException {
    dout.writeByte(m_Discretes.byteSize());
    dout.write(m_Discretes.getBytes(), 0, m_Discretes.byteSize());
  }//writeData

  public void readData(DataInput din)
      throws IOException {

    int count = din.readUnsignedByte();
    byte[] data = new byte[count];
    for (int k = 0; k < count; k++) {
      data[k] = din.readByte();
    }

    //decode bytes into bitvector
    m_Discretes = BitVector.createBitVector(data);

    //update data length
    setDataLength(count + 1);
  }//readData

  public byte[] getMessage() {
	  byte result[] = null;
	  int len = 1 + m_Discretes.byteSize();

	  result = new byte[len];
	  result[0] = (byte) m_Discretes.byteSize();
	  System.arraycopy(m_Discretes.getBytes(), 0,
			  result, 1, m_Discretes.byteSize());

	  return result;
  }

}//class ReadInputDiscretesResponse


text:
package cd4017be.indlog.util.filter;

import cd4017be.indlog.Objects;
import cd4017be.lib.util.ItemFluidUtil;
import cd4017be.lib.util.Utils.ItemType;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraftforge.common.util.Constants;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.items.ItemHandlerHelper;
import net.minecraftforge.oredict.OreDictionary;

/**
 *
 * @author CD4017BE
 */
public class PipeFilterItem extends FilterBase<ItemStack, IItemHandler> {

	public ItemStack[] list = new ItemStack[0];
	public int[] ores;
	//mode 1=invert; 2=force; 4=meta; 8=nbt; 16=ore; 32=count; 64=invertRS; 128=redstone

	public void generateOres() {
		ores = new int[list.length];
		for (int i = 0; i < list.length; i++) {
			int[] l = OreDictionary.getOreIDs(list[i]);
			if (l.length > 0) ores[i] = l[0];
			else ores[i] = -1;
		}
	}

	@Override
	public boolean noEffect() {
		return list.length == 0 && (mode & 1) == 0;
	}

	@Override
	public int insertAmount(ItemStack obj, IItemHandler inv) {
		int m = obj.getCount();
		if (m <= 0) return 0;
		int i = getMatch(obj);
		if ((mode & 32) != 0 && i >= 0) {
			int n = list[i].getCount();
			ItemType filter = new ItemType((mode&4)!=0, (mode&8)!=0, (mode&16)!=0, list[i]);
			for (int s = 0; s < inv.getSlots(); s++) {
				ItemStack item = inv.getStackInSlot(s);
				if (filter.matches(item)) n -= item.getCount();
				if (n <= 0) return 0;
			}
			return n;
		} else return i >= 0 ^ (mode & 1) != 0 ? m : 0;
	}

	@Override
	public ItemStack getExtract(ItemStack obj, IItemHandler inv) {
		int m = obj.getCount();
		if (m > 0) {
			int i = getMatch(obj);
			if ((mode & 32) != 0 && i >= 0) {
				int n = -list[i].getCount();
				for (int s = 0; s < inv.getSlots(); s++) {
					ItemStack item = inv.getStackInSlot(s);
					if (item.getCount() <= 0) continue;
					if (matches(i, item)) n += item.getCount();
					if (n >= m) {
						n = m;
						break;
					}
				}
				return ItemHandlerHelper.copyStackWithSize(obj, n);
			} else if (i >= 0 ^ (mode & 1) != 0) return obj.copy();
			else return ItemStack.EMPTY;
		} else {
			for (int i = 0; i < inv.getSlots(); i++) {
				ItemStack item = inv.getStackInSlot(i);
				if (item.getCount() > 0 && (item = getExtract(item, inv)).getCount() > 0)
					return item;
			}
			return ItemStack.EMPTY;
		}
	}

	@Override
	public boolean transfer(ItemStack stack) {
		if ((mode & 2) == 0) return true;
		else if (stack.getCount() <= 0) return false;
		return getMatch(stack) >= 0 ^ (mode & 1) == 0;
	}

	public int getMatch(ItemStack item) {
		if (item.getCount() <= 0) return -1;
		for (int i = 0; i < list.length; i++) {
			ItemStack type = list[i];
			if (item.getItem() == type.getItem() &&
				((mode & 4) == 0 || item.getItemDamage() == type.getItemDamage()) &&
				((mode & 8) == 0 || ItemStack.areItemStackTagsEqual(item, type)))
					return i;
		}
		if (ores != null)
			for (int o : OreDictionary.getOreIDs(item))
				for (int i = 0; i < ores.length; i++)
					if (ores[i] == o) return i;
		return -1;
	}

	public boolean matches(int i, ItemStack item) {
		ItemStack type = list[i];
		if (item.getItem() == type.getItem() &&
			((mode & 4) == 0 || item.getItemDamage() == type.getItemDamage()) &&
			((mode & 8) == 0 || ItemStack.areItemStackTagsEqual(item, type))) return true;
		if (ores == null) return false;
		int o = ores[i];
		if (o < 0) return false;
		for (int j : OreDictionary.getOreIDs(item))
			if (j == o) return true;
		return false;
	}

	public boolean matches(ItemStack item) {
		return getMatch(item) >= 0 ^ (mode & 1) != 0;
	}

	@Override
	public NBTTagCompound serializeNBT() {
		NBTTagCompound nbt = super.serializeNBT();
		if (list.length > 0) {
			NBTTagList tlist = new NBTTagList();
			for (ItemStack item : list) {
				NBTTagCompound tag = new NBTTagCompound();
				item.writeToNBT(tag);
				tlist.appendTag(tag);
			}
			nbt.setTag(ItemFluidUtil.Tag_ItemList, tlist);
		}
		if (ores != null) nbt.setIntArray("ore", ores);
		return nbt;
	}

	@Override
	public void deserializeNBT(NBTTagCompound nbt) {
		if (nbt.hasKey(ItemFluidUtil.Tag_ItemList)) {
			NBTTagList list = nbt.getTagList(ItemFluidUtil.Tag_ItemList, 10);
			this.list = new ItemStack[list.tagCount()];
			for (int i = 0; i < list.tagCount(); i++) {
				this.list[i] = new ItemStack(list.getCompoundTagAt(i));
			}
		}
		if ((this.mode & 16) != 0 &&
				!nbt.hasKey("ore", Constants.NBT.TAG_INT_ARRAY) ||
				(this.ores = nbt.getIntArray("ore")).length != this.list.length)
			this.generateOres();
		super.deserializeNBT(nbt);
	}

	@Override
	public Item item() {
		return Objects.item_filter;
	}

}


text:
exports.config = {
  // See http://brunch.io/#documentation for docs.
  files: {
    javascripts: {
      joinTo: "js/app.js"

      // To use a separate vendor.js bundle, specify two files path
      // http://brunch.io/docs/config#-files-
      // joinTo: {
      //  "js/app.js": /^(web\/static\/js)/,
      //  "js/vendor.js": /^(web\/static\/vendor)|(deps)/
      // }
      //
      // To change the order of concatenation of files, explicitly mention here
      // order: {
      //   before: [
      //     "web/static/vendor/js/jquery-2.1.1.js",
      //     "web/static/vendor/js/bootstrap.min.js"
      //   ]
      // }
    },
    stylesheets: {
      joinTo: "css/app.css",
      order: {
        after: ["web/static/css/app.css"] // concat app.css last
      }
    },
    templates: {
      joinTo: "js/app.js"
    }
  },

  conventions: {
    // This option sets where we should place non-css and non-js assets in.
    // By default, we set this to "assets/static". Files in this directory
    // will be copied to `paths.public`, which is "priv/static" by default.
    assets: /^(static)/
  },

  // Phoenix paths configuration
  paths: {
    // Dependencies and current project directories to watch
    watched: ["static", "css", "js", "vendor"],

    // Where to compile files to
    public: "../priv/static"
  },

  // Configure your plugins
  plugins: {
    babel: {
      // Do not use ES6 compiler in vendor code
      ignore: [/vendor/]
    }
  },

  modules: {
    autoRequire: {
      "js/app.js": ["js/app"]
    }
  },

  npm: {
    enabled: true
  }
};