text:
#ifndef DAV1D_SRC_MSAC_H
#define DAV1D_SRC_MSAC_H

#include <stdint.h>
#include <stdlib.h>

#include "common/intops.h"

typedef size_t ec_win;

typedef struct MsacContext {
    const uint8_t *buf_pos;
    const uint8_t *buf_end;
    ec_win dif;
    unsigned rng;
    int cnt;
    int allow_update_cdf;

#if ARCH_X86_64 && HAVE_ASM
    unsigned (*symbol_adapt16)(struct MsacContext *s, uint16_t *cdf, size_t n_symbols);
#endif
} MsacContext;

#if HAVE_ASM
#if ARCH_AARCH64 || ARCH_ARM
#include "src/arm/msac.h"
#elif ARCH_X86
#include "src/x86/msac.h"
#endif
#endif

void dav1d_msac_init(MsacContext *s, const uint8_t *data, size_t sz,
                     int disable_cdf_update_flag);
unsigned dav1d_msac_decode_symbol_adapt_c(MsacContext *s, uint16_t *cdf,
                                          size_t n_symbols);
unsigned dav1d_msac_decode_bool_adapt_c(MsacContext *s, uint16_t *cdf);
unsigned dav1d_msac_decode_bool_equi_c(MsacContext *s);
unsigned dav1d_msac_decode_bool_c(MsacContext *s, unsigned f);
unsigned dav1d_msac_decode_hi_tok_c(MsacContext *s, uint16_t *cdf);
int dav1d_msac_decode_subexp(MsacContext *s, int ref, int n, unsigned k);

/* Supported n_symbols ranges: adapt4: 1-4, adapt8: 1-7, adapt16: 3-15 */
#ifndef dav1d_msac_decode_symbol_adapt4
#define dav1d_msac_decode_symbol_adapt4  dav1d_msac_decode_symbol_adapt_c
#endif
#ifndef dav1d_msac_decode_symbol_adapt8
#define dav1d_msac_decode_symbol_adapt8  dav1d_msac_decode_symbol_adapt_c
#endif
#ifndef dav1d_msac_decode_symbol_adapt16
#define dav1d_msac_decode_symbol_adapt16 dav1d_msac_decode_symbol_adapt_c
#endif
#ifndef dav1d_msac_decode_bool_adapt
#define dav1d_msac_decode_bool_adapt     dav1d_msac_decode_bool_adapt_c
#endif
#ifndef dav1d_msac_decode_bool_equi
#define dav1d_msac_decode_bool_equi      dav1d_msac_decode_bool_equi_c
#endif
#ifndef dav1d_msac_decode_bool
#define dav1d_msac_decode_bool           dav1d_msac_decode_bool_c
#endif
#ifndef dav1d_msac_decode_hi_tok
#define dav1d_msac_decode_hi_tok         dav1d_msac_decode_hi_tok_c
#endif

static inline unsigned dav1d_msac_decode_bools(MsacContext *const s, unsigned n) {
    unsigned v = 0;
    while (n--)
        v = (v << 1) | dav1d_msac_decode_bool_equi(s);
    return v;
}

static inline int dav1d_msac_decode_uniform(MsacContext *const s, const unsigned n) {
    assert(n > 0);
    const int l = ulog2(n) + 1;
    assert(l > 1);
    const unsigned m = (1 << l) - n;
    const unsigned v = dav1d_msac_decode_bools(s, l - 1);
    return v < m ? v : (v << 1) - m + dav1d_msac_decode_bool_equi(s);
}

#endif /* DAV1D_SRC_MSAC_H */


text:
/*	$NetBSD: strerror.c,v 1.3 2012/06/05 00:42:48 christos Exp $	*/

/*
 * Copyright (C) 2004, 2005, 2007, 2009  Internet Systems Consortium, Inc. ("ISC")
 * Copyright (C) 2001  Internet Software Consortium.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 */

/* Id: strerror.c,v 1.10 2009/02/16 23:48:04 tbox Exp  */

/*! \file */

#include <config.h>

#include <stdio.h>
#include <string.h>

#include <isc/mutex.h>
#include <isc/once.h>
#include <isc/print.h>
#include <isc/strerror.h>
#include <isc/util.h>

#ifdef HAVE_STRERROR
/*%
 * We need to do this this way for profiled locks.
 */
static isc_mutex_t isc_strerror_lock;
static void init_lock(void) {
	RUNTIME_CHECK(isc_mutex_init(&isc_strerror_lock) == ISC_R_SUCCESS);
}
#else
extern const char * const sys_errlist[];
extern const int sys_nerr;
#endif

void
isc__strerror(int num, char *buf, size_t size) {
#ifdef HAVE_STRERROR
	char *msg;
	unsigned int unum = (unsigned int)num;
	static isc_once_t once = ISC_ONCE_INIT;

	REQUIRE(buf != NULL);

	RUNTIME_CHECK(isc_once_do(&once, init_lock) == ISC_R_SUCCESS);

	LOCK(&isc_strerror_lock);
	msg = strerror(num);
	if (msg != NULL)
		snprintf(buf, size, "%s", msg);
	else
		snprintf(buf, size, "Unknown error: %u", unum);
	UNLOCK(&isc_strerror_lock);
#else
	unsigned int unum = (unsigned int)num;

	REQUIRE(buf != NULL);

	if (num >= 0 && num < sys_nerr)
		snprintf(buf, size, "%s", sys_errlist[num]);
	else
		snprintf(buf, size, "Unknown error: %u", unum);
#endif
}

redpajama_set_name: RedPajamaGithub


text:
        {{ 'Profile' | i18next }}

        {{ 'Events' | i18next }}

          {{ 'icu' | i18next }}

    <form novalidate name="profileform" ng-submit="editProfile(profileform)" ng-if="showProfile">

            {{ 'username' | i18next }}
            <input class="form-control" type="text" ng-model="me.username" disabled>

            {{ 'name' | i18next }}
            <input class="form-control" type="text" ng-model="me.fullname" disabled>

            {{ 'email' | i18next }}
            <input class="form-control" type="text" ng-model="me.email" disabled>

            {{ 'passwordOptional' | i18next }}
            <input class="form-control" type="password" ng-model="me.password">

            {{ 'confirmPasswordOptional' | i18next }}
            <input class="form-control" type="password" ng-model="confirm">

            {{ 'IWantToGetMailEveryWeekAboutMyTasks' | i18next }}
            <input class="form-control" type="radio" name="GetMailEveryWeekAboutMyTasks" value="yes" ng-model="me.GetMailEveryWeekAboutMyTasks" /> {{ 'yes' | i18next }}

            <input id="GetMyWeekTasksNO" class="form-control" type="radio" name="GetMailEveryWeekAboutMyTasks" value="no"  ng-model="me.GetMailEveryWeekAboutMyTasks" checked="true" /> {{ 'no' | i18next }}

            <input type="submit" value="Submit">

            {{ 'IWantToGetMailEveryWeekAboutGivenTasks' | i18next }}
            <input class="form-control" type="radio" name="GetMailEveryWeekAboutGivenTasks" value="yes" ng-model="me.GetMailEveryWeekAboutGivenTasks" /> {{ 'yes' | i18next }}

            <input id="GetMyWeekTasksNO" class="form-control" type="radio" name="GetMailEveryWeekAboutGivenTasks" value="no"  ng-model="me.GetMailEveryWeekAboutGivenTasks" checked="true" /> {{ 'no' | i18next }}

            <input type="submit" value="Submit">

            {{ 'IWantToGetMailEveryDayAboutMyTasks' | i18next }}
            <input class="form-control" type="radio" name="GetMailEveryDayAboutMyTasks" value="yes" ng-model="me.GetMailEveryDayAboutMyTasks" /> {{ 'yes' | i18next }}

            <input id="GetMyWeekTasksNO" class="form-control" type="radio" name="GetMailEveryDayAboutMyTasks" value="no"  ng-model="me.GetMailEveryDayAboutMyTasks" checked="true" /> {{ 'no' | i18next }}

            <input type="submit" value="Submit">

            {{ 'avatar' | i18next }}

                {{ 'upload' | i18next }}

            {{ 'hiUid' | i18next }}
            <input class="form-control" type="text" ng-model="me.profile.hiUid">

            You can get your user-id here

            {{ 'hiUserName' | i18next }}
            <input class="form-control" type="text" ng-model="hiUserName">

            {{ 'hiPassword' | i18next }}
            <input class="form-control" type="text" ng-model="hiPassword">

            {{ 'getHiUserId' | i18next }}

        <button id="saveprofile">{{'save' | i18next }} {{ 'avatar' | i18next }}</button>
    </form>


text:
"""Sensor support for Skybell Doorbells."""
from __future__ import annotations

from datetime import timedelta

import voluptuous as vol

from homeassistant.components.sensor import (
    PLATFORM_SCHEMA,
    SensorEntity,
    SensorEntityDescription,
)
from homeassistant.const import CONF_ENTITY_NAMESPACE, CONF_MONITORED_CONDITIONS
from homeassistant.core import HomeAssistant
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType

from . import DEFAULT_ENTITY_NAMESPACE, DOMAIN as SKYBELL_DOMAIN, SkybellDevice

SCAN_INTERVAL = timedelta(seconds=30)

SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
    SensorEntityDescription(
        key="chime_level",
        name="Chime Level",
        icon="mdi:bell-ring",
    ),
)
MONITORED_CONDITIONS: list[str] = [desc.key for desc in SENSOR_TYPES]

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
    {
        vol.Optional(
            CONF_ENTITY_NAMESPACE, default=DEFAULT_ENTITY_NAMESPACE
        ): cv.string,
        vol.Required(CONF_MONITORED_CONDITIONS, default=[]): vol.All(
            cv.ensure_list, [vol.In(MONITORED_CONDITIONS)]
        ),
    }
)

def setup_platform(
    hass: HomeAssistant,
    config: ConfigType,
    add_entities: AddEntitiesCallback,
    discovery_info: DiscoveryInfoType | None = None,
) -> None:
    """Set up the platform for a Skybell device."""
    skybell = hass.data[SKYBELL_DOMAIN]

    sensors = [
        SkybellSensor(device, description)
        for device in skybell.get_devices()
        for description in SENSOR_TYPES
        if description.key in config[CONF_MONITORED_CONDITIONS]
    ]

    add_entities(sensors, True)

class SkybellSensor(SkybellDevice, SensorEntity):
    """A sensor implementation for Skybell devices."""

    def __init__(
        self,
        device,
        description: SensorEntityDescription,
    ):
        """Initialize a sensor for a Skybell device."""
        super().__init__(device)
        self.entity_description = description
        self._attr_name = f"{self._device.name} {description.name}"

    def update(self):
        """Get the latest data and updates the state."""
        super().update()

        if self.entity_description.key == "chime_level":
            self._attr_native_value = self._device.outdoor_chime_level


text:
(No DataBase Connection)

original src:
https://github.com/oracle/apps-cloud-ui-kit

TO run allication in browser execute:
DemoMaster\Web Content\Welcome.jspx

Read also instructions in:
RDKDeveBookR10.pdf


text:
<?xml version="1.0" encoding="UTF-8"?>
<Tokens version="1.0">
	<File path="Classes/AutoScalingDescribeAutoScalingGroupsResponse.html">

		<Token>
			<TokenIdentifier>//apple_ref/occ/cl/AutoScalingDescribeAutoScalingGroupsResponse</TokenIdentifier>
			<Abstract type="html">Describe Auto Scaling Groups Result</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AutoScalingDescribeAutoScalingGroupsResponse/setException:</TokenIdentifier>
			<Abstract type="html">If an exception was thrown, this will return the exception.</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>- (void)setException:(AmazonServiceException *)theException</Declaration>

			<Anchor>//api/name/setException:</Anchor>
            <NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AutoScalingDescribeAutoScalingGroupsResponse/init</TokenIdentifier>
			<Abstract type="html">Default constructor for a new  object.  Callers should use the
property methods to initialize this object after creating it.</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>- (id)init</Declaration>

			<Anchor>//api/name/init</Anchor>
            <NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AutoScalingDescribeAutoScalingGroupsResponse/setAutoScalingGroups:</TokenIdentifier>
			<Abstract type="html">A list of Auto Scaling groups.</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>@property (nonatomic, retain) NSMutableArray *autoScalingGroups</Declaration>

			<Anchor>//api/name/autoScalingGroups</Anchor>
            <NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AutoScalingDescribeAutoScalingGroupsResponse/autoScalingGroups</TokenIdentifier>
			<Abstract type="html">A list of Auto Scaling groups.</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>@property (nonatomic, retain) NSMutableArray *autoScalingGroups</Declaration>

			<Anchor>//api/name/autoScalingGroups</Anchor>
            <NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instp/AutoScalingDescribeAutoScalingGroupsResponse/autoScalingGroups</TokenIdentifier>
			<Abstract type="html">A list of Auto Scaling groups.</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>@property (nonatomic, retain) NSMutableArray *autoScalingGroups</Declaration>

			<Anchor>//api/name/autoScalingGroups</Anchor>
            <NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AutoScalingDescribeAutoScalingGroupsResponse/setNextToken:</TokenIdentifier>
			<Abstract type="html">A string that marks the start of the next batch of returned results.

Constraints:

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>@property (nonatomic, retain) NSString *nextToken</Declaration>

			<Anchor>//api/name/nextToken</Anchor>
            <NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AutoScalingDescribeAutoScalingGroupsResponse/nextToken</TokenIdentifier>
			<Abstract type="html">A string that marks the start of the next batch of returned results.

Constraints:

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>@property (nonatomic, retain) NSString *nextToken</Declaration>

			<Anchor>//api/name/nextToken</Anchor>
            <NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instp/AutoScalingDescribeAutoScalingGroupsResponse/nextToken</TokenIdentifier>
			<Abstract type="html">A string that marks the start of the next batch of returned results.

Constraints:

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>@property (nonatomic, retain) NSString *nextToken</Declaration>

			<Anchor>//api/name/nextToken</Anchor>
            <NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AutoScalingDescribeAutoScalingGroupsResponse/autoScalingGroupsObjectAtIndex:</TokenIdentifier>
			<Abstract type="html">Returns a value from the autoScalingGroups array for the specified index</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>- (AutoScalingAutoScalingGroup *)autoScalingGroupsObjectAtIndex:(int)index</Declaration>

			<Anchor>//api/name/autoScalingGroupsObjectAtIndex:</Anchor>
            <NodeRef refid="56"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/AutoScalingDescribeAutoScalingGroupsResponse/description</TokenIdentifier>
			<Abstract type="html">Returns a string representation of this object; useful for testing and
debugging.</Abstract>
			<DeclaredIn>AutoScalingDescribeAutoScalingGroupsResponse.h</DeclaredIn>

			<Declaration>- (NSString *)description</Declaration>

			<ReturnValue><Abstract type="html">A string representation of this object.</Abstract></ReturnValue>
			<Anchor>//api/name/description</Anchor>
            <NodeRef refid="56"/>
		</Token>

	</File>
</Tokens>


text:
package cn.robertzhang.libraries.picker;

import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.provider.MediaStore.Images.Media;
import android.provider.MediaStore.Images.Thumbnails;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;

public class ImagePickerHelper {

	private Context context;
	private ContentResolver contentResolver;

	private HashMap<String, String> mThumbnailList = new HashMap<String, String>();
	private HashMap<String, ImageBucket> mBucketList = new HashMap<String, ImageBucket>();

	private static ImagePickerHelper instance;

	private ImagePickerHelper() {
	}

	public static ImagePickerHelper getHelper() {
		if (instance == null) {
			instance = new ImagePickerHelper();
		}
		return instance;
	}

	public void init(Context context) {
		if (this.context == null) {
			this.context = context;
			this.contentResolver = context.getContentResolver();
		}
	}

	private void getThumbnail() {
		String[] projection = { Thumbnails._ID, Thumbnails.IMAGE_ID, Thumbnails.DATA };
		Cursor cursor = contentResolver.query(Thumbnails.EXTERNAL_CONTENT_URI, projection, null, null, null);
		getThumbnailColumnData(cursor);
	}

	private void getThumbnailColumnData(Cursor cur) {
		mThumbnailList.clear();
		if (cur.moveToFirst()) {
			int image_id;
			int image_idColumn = cur.getColumnIndex(Thumbnails.IMAGE_ID);
			int dataColumn = cur.getColumnIndex(Thumbnails.DATA);
			String image_path;

			do {
				image_id = cur.getInt(image_idColumn);
				image_path = cur.getString(dataColumn);

				mThumbnailList.put("" + image_id, image_path);
			} while (cur.moveToNext());
		}
	}

	boolean hasBuildImagesBucketList = false;

	private void buildImagesBucketList() {
		getThumbnail();
		mBucketList.clear();

		String columns[] = new String[] { Media._ID, Media.BUCKET_ID, Media.PICASA_ID, Media.DATA, Media.DISPLAY_NAME, Media.TITLE, Media.SIZE, Media.BUCKET_DISPLAY_NAME };
		Cursor cursor = contentResolver.query(Media.EXTERNAL_CONTENT_URI, columns, null, null, null);
		if (cursor.moveToFirst()) {
			int photoIDIndex = cursor.getColumnIndexOrThrow(Media._ID);
			int photoPathIndex = cursor.getColumnIndexOrThrow(Media.DATA);
			int bucketDisplayNameIndex = cursor.getColumnIndexOrThrow(Media.BUCKET_DISPLAY_NAME);
			int bucketIdIndex = cursor.getColumnIndexOrThrow(Media.BUCKET_ID);

			do {
				String _id = cursor.getString(photoIDIndex);
				String path = cursor.getString(photoPathIndex);
				String bucketName = cursor.getString(bucketDisplayNameIndex);
				String bucketId = cursor.getString(bucketIdIndex);

				ImageBucket bucket = mBucketList.get(bucketId);
				if (bucket == null) {
					bucket = new ImageBucket();
					mBucketList.put(bucketId, bucket);
					bucket.bucketList = new ArrayList<ImageItem>();
					bucket.bucketName = bucketName;
				}
				bucket.count++;
				ImageItem imageItem = new ImageItem();
				imageItem.setImageId(_id);
				imageItem.setImagePath(path);
				imageItem.setThumbnailPath(mThumbnailList.get(_id));
				bucket.bucketList.add(imageItem);

			} while (cursor.moveToNext());
		}
		hasBuildImagesBucketList = true;
	}

	public List<ImageBucket> getImagesBucketList() {
		buildImagesBucketList();
		List<ImageBucket> tmpList = new ArrayList<ImageBucket>();
		Iterator<Entry<String, ImageBucket>> iterator = mBucketList.entrySet().iterator();
		while (iterator.hasNext()) {
			Entry<String, ImageBucket> entry = (Entry<String, ImageBucket>) iterator.next();
			tmpList.add(entry.getValue());
		}
		return tmpList;
	}

}


text:
package com.skynav.ttxv.app;

import java.io.PrintWriter;
import java.net.URI;
import java.util.List;

import com.skynav.ttx.app.TimedTextTransformer;
import com.skynav.ttx.transformer.TransformerContext;
import com.skynav.ttx.transformer.Transformers;

public class TimedTextTransformingVerifier extends TimedTextTransformer {

    // banner text
    private static final String title = "Timed Text Transforming Verifier (TTXV) [" + Version.CURRENT + "]";
    private static final String copyright = "Copyright 2013-14 Skynav, Inc.";
    private static final String banner = title + " " + copyright;

    private static final String DEFAULT_TRANSFORMER = Transformers.getDefaultTransformerName();

    public TimedTextTransformingVerifier() {
    }

    @Override
    public void processResult(List<String> args, URI uri, Object root) {
        super.processResult(args, uri, root);
        performPostTransformVerification(uri, root, getResourceState(TransformerContext.ResourceState.ttxOutput.name()));
    }

    @Override
    protected void initializeResourceState(URI uri) {
        super.initializeResourceState(uri);
        setResourceState(TransformerContext.ResourceState.ttxRetainLocations.name(), Boolean.TRUE);
        setResourceState(TransformerContext.ResourceState.ttxSuppressOutputSerialization.name(), Boolean.TRUE);
        setResourceState(TransformerContext.ResourceState.ttxTransformer.name(), Transformers.getTransformer(DEFAULT_TRANSFORMER));
        // setResourceState(TransformerContext.ResourceState.ttxTransformingVerifier.name(), this);
    }

    @Override
    protected void showBanner(PrintWriter out, String banner) {
        super.showBanner(out, TimedTextTransformingVerifier.banner);
    }

    @Override
    protected boolean doMergeTransformerOptions() {
        return false;
    }

    private void performPostTransformVerification(URI uri, Object root, Object ttxOutput) {
        getModel().getSemanticsVerifier().verifyPostTransform(root, ttxOutput, this);
    }

    public static void main(String[] args) {
        Runtime.getRuntime().exit(new TimedTextTransformingVerifier().run(args));
    }

}


text:
package net.nemerosa.ontrack.model.settings;

import net.nemerosa.ontrack.common.Document;
import net.nemerosa.ontrack.model.Ack;
import net.nemerosa.ontrack.model.structure.ID;
import net.nemerosa.ontrack.model.structure.PredefinedValidationStamp;

import java.util.List;
import java.util.Optional;

/**
 * Management of predefined validation stamps.
 */
public interface PredefinedValidationStampService {

    /**
     * Gets the list of predefined validation stamps.
     */
    List<PredefinedValidationStamp> getPredefinedValidationStamps();

    /**
     * Creates a new predefined validation stamp.
     */
    PredefinedValidationStamp newPredefinedValidationStamp(PredefinedValidationStamp stamp);

    /**
     * Gets a predefined validation stamp using its ID
     */
    PredefinedValidationStamp getPredefinedValidationStamp(ID id);

    /**
     * Gets the image for a predefined validation stamp
     */
    Document getPredefinedValidationStampImage(ID id);

    /**
     * Gets a predefined validation stamp using its name
     */
    Optional<PredefinedValidationStamp> findPredefinedValidationStampByName(String name);

    /**
     * Updates the predefined validation stamp
     */
    void savePredefinedValidationStamp(PredefinedValidationStamp stamp);

    /**
     * Deletes a predefined validation stamp
     */
    Ack deletePredefinedValidationStamp(ID predefinedValidationStampId);

    /**
     * Sets the image for a predefined validation stamp
     */
    void setPredefinedValidationStampImage(ID predefinedValidationStampId, Document document);
}


text:
require 'minitest/reporters'
Minitest::Reporters.use!(Minitest::Reporters::SpecReporter.new)
require 'state_machines-mongoid'
require 'minitest/autorun'
require 'mongoid'
require 'mongo/client'

Mongoid.load!('./test/config/mongoid.yml', :test)

# Module for test models
module MongoidTest
end

class BaseTestCase < Minitest::Test
  def default_test
  end

  def teardown
    if @table_names
      client = Mongo::Client.new(['127.0.0.1:27017'])
      db = Mongo::Database.new(client, :test)
      db.collections.each {|c| c.drop if @table_names.include?(c.name)}
    end
  end

  protected
    # Creates a new Mongoid model (and the associated table)
    def new_model(name = :foo, &block)
      table_name = "#{name}_#{rand(1000000)}"
      @table_names ||= []
      @table_names << table_name

      model = Class.new do
        (class << self; self; end).class_eval do
          define_method(:name) { "MongoidTest::#{name.to_s.capitalize}" }
          define_method(:to_s) { self.name }
        end
      end

      model.class_eval do
        include Mongoid::Document
        store_in collection: table_name

        field :state, :type => String
      end
      model.class_eval(&block) if block_given?
      model
    end

    # Creates a new Mongoid observer
    def new_observer(model, &block)
      observer = Class.new(Mongoid::Observer) do
        attr_accessor :notifications

        def initialize
          super
          @notifications = []
        end
      end

      (class << observer; self; end).class_eval do
        define_method(:name) do
          "#{model.name}Observer"
        end
      end

      observer.observe(model)
      observer.class_eval(&block) if block_given?
      observer
    end
  end


text:
		<title>Nathan's Site</title>
		<meta name="description" content="Mikkel Damgaard, Designer and Developer for the Web">
		<meta name="keywords" content="Mig, Mikkel, Mig Mikkel, Mig_, Mig_Mikkel">
		<meta name="copyright" content="Copyright © 2015 Mikkel Damgaard. All Rights Reserved.">
		<meta name="author" content="Mikkel Damgaard">
		<meta name="theme-color" content="#ffffff">
		<meta content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes" name="viewport">
		<link rel="stylesheet" href="css/tidy.css">
		<link rel="stylesheet" href="css/animate.css">

		<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
		<link rel="import" href="bower_components/paper-ripple/paper-ripple.html">
		<link rel="import" href="bower_components/paper-fab/paper-fab.html">
		<link rel="import" href="bower_components/core-icons/core-icons.html">

     				<paper-fab class="wow fadeInUp desktop-fab" icon="shop"></paper-fab>

					<paper-fab class="mobile-fab" icon="shop"></paper-fab>

						ImNathanT

						Nathan Travers

            I am 21 years old and currently studying at university. I am from the UK and started streaming on 09/06/2015 I've had a strange life already, my mum passed away at 17 and i moved out in order to study and make it to uni! Now I am here,living with great friends who I'm sure you'll see in the stream from time to time... (be nice)! I am a fairly relaxed guy, if you enjoy the stream hit the follow button and chill with me! Click here to go to my twitch page!

     		Other Cool People

     					Mig_Mikkel
     					<paper-ripple fit></paper-ripple>

     					Divide
     					<paper-ripple fit></paper-ripple>

     					Chr0max
     					<paper-ripple fit></paper-ripple>

     					Mr. Bob
     					<paper-ripple fit></paper-ripple>

     		Details

					<core-icon class="details-icon" icon="star"></core-icon>
					LE

					<core-icon class="details-icon" icon="mail"></core-icon>
					....

					<core-icon class="details-icon" icon="extension"></core-icon>
					35 Games in my library

						<core-icon class="details-icon" icon="polymer"></core-icon>

                    Template by Faiz Malkani Edited and Customized by Mig_Mikkel


text:
p {text-align:left;}

#StoryWindow {width:100%;height:100%; background:#000;}
#StoryImage {width:100%;height:66%; text-align:center;}
#StoryTextBlock {width:100%;height:33%; padding:10px 10px 10px 30px;}
#StoryText {width:75%; display:inline-block; color:white; text-align:center;}
#NavigationBlock {width:20%; display:inline-block;}
#backbutton
#forwardbutton
#skippbutton


text:
namespace PR {

constexpr uint64 SX = 32;
constexpr uint64 SY = 32;
constexpr uint64 SC = SX * SY;

static inline Vector2f generateUV(uint64 i)
{
	uint32 x, y;
	morton_2_xy(i, x, y);

	PR_ASSERT(x < SX && y < SY, "Invalid morton code");
	return Vector2f(x / float(SX), y / float(SY));
}

template <typename Ret, typename F>
inline Ret compute(const SpectralBlob& wvls, const F& func)
{
	ShadingContext sc;
	sc.WavelengthNM = wvls;
	sc.UV			= generateUV(0);

	Ret sum = func(sc);

	for (uint64 i = 1; i < SC; ++i) {
		sc.UV = generateUV(i);
		sum += func(sc);
	}

	return sum / SC;
}

float NodeUtils::average(const SpectralBlob& wvls, const FloatScalarNode* node)
{
	return compute<float>(wvls, [=](const ShadingContext& sc) -> float { return node->eval(sc); });
}

SpectralBlob NodeUtils::average(const SpectralBlob& wvls, const FloatSpectralNode* node)
{
	return compute<SpectralBlob>(wvls, [=](const ShadingContext& sc) -> SpectralBlob { return node->eval(sc); });
}

} // namespace PR


text:
require 'spec_helper'

describe 'default recipe on Ubuntu 14.04' do
  let(:chef_run) do
    ChefSpec::ServerRunner.new do |node|
      node.automatic[:lsb][:codename] = 'trusty'
    end.converge('chef-grafana::default')
  end

  let(:chef_run_versioned) do
    ChefSpec::ServerRunner.new do |node|
      node.automatic['chef-grafana']['install']['version'] = '4.5.0'
    end.converge('chef-grafana::default')
  end

  context 'latest version' do
    it 'converges successfully' do
      expect { :chef_run }.to_not raise_error
    end

    it 'upgrades successfully' do
      expect(chef_run).to upgrade_package('grafana')
    end
  end

  context 'specific version' do
    it 'converges successfully' do
      expect { :chef_run_versioned }.to_not raise_error
    end

    it 'installs successfully' do
      expect(chef_run_versioned).to install_package('grafana').with(version: '4.5.0')
    end
  end
end


text:
<!--
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-arm-parent</artifactId>
        <version>1.2.0</version>
        <relativePath>../parents/azure-arm-parent</relativePath>
    </parent>
    <artifactId>azure-mgmt-containerservice-parent</artifactId>
    <version>1.0.0-beta</version>
    <packaging>jar</packaging>
    <name>Microsoft Azure SDK for ContainerService Management</name>
    <description>This package contains Microsoft ContainerService Management SDK.</description>
    <url>https://github.com/Azure/azure-libraries-for-java</url>
    <licenses>
        <license>
            <name>The MIT License (MIT)</name>
            <url>http://opensource.org/licenses/MIT</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <scm>
        <url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
        <connection>scm:git:git@github.com:Azure/azure-libraries-for-java.git</connection>
        <tag>HEAD</tag>
    </scm>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <legal><![CDATA[[INFO] Any downloads listed may be third party software.  Microsoft grants you no rights for third party software.]]></legal>
    </properties>
    <developers>
        <developer>
            <id>microsoft</id>
            <name>Microsoft</name>
        </developer>
    </developers>
    <modules>
        <!-- roll up pakcages -->
        <module>./package_2017_09</module>
        <!-- multi api -->
        <module>./v2017_09_30</module>
        <module>./v2017_08_31</module>
        <module>./v2017_07_01</module>
    </modules>
</project>


text:
\hypertarget{main_8cpp}{}\section{main.\+cpp File Reference}
\label{main_8cpp}\index{main.\+cpp@{main.\+cpp}}
{\ttfamily \#include \char`\"{}Barrier.\+h\char`\"{}}\newline
{\ttfamily \#include $<$iostream$>$}\newline
{\ttfamily \#include $<$thread$>$}\newline
{\ttfamily \#include $<$vector$>$}\newline
Include dependency graph for main.\+cpp\+:
% FIG 0
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \hyperlink{main_8cpp_a580d368c0a2a099cd3ad0c49deb1d3fa}{barrier\+Task} (std\+::shared\+\_\+ptr$<$ \hyperlink{class_barrier}{Barrier} $>$ the\+Barrier, int num\+Loops)
\item
int \hyperlink{main_8cpp_a840291bc02cba5474a4cb46a9b9566fe}{main} (void)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item
int \hyperlink{main_8cpp_a2d5b01367ae1267dfac47c7875aac5e4}{shared\+Variable} = 0
\end{DoxyCompactItemize}

\subsection{Function Documentation}
\mbox{\Hypertarget{main_8cpp_a580d368c0a2a099cd3ad0c49deb1d3fa}\label{main_8cpp_a580d368c0a2a099cd3ad0c49deb1d3fa}}
\index{main.\+cpp@{main.\+cpp}!barrier\+Task@{barrier\+Task}}
\index{barrier\+Task@{barrier\+Task}!main.\+cpp@{main.\+cpp}}
\subsubsection{\texorpdfstring{barrier\+Task()}{barrierTask()}}
{\footnotesize\ttfamily void barrier\+Task (\begin{DoxyParamCaption}\item[{std\+::shared\+\_\+ptr$<$ \hyperlink{class_barrier}{Barrier} $>$}]{the\+Barrier,  }\item[{int}]{num\+Loops }\end{DoxyParamCaption})}

\mbox{\Hypertarget{main_8cpp_a840291bc02cba5474a4cb46a9b9566fe}\label{main_8cpp_a840291bc02cba5474a4cb46a9b9566fe}}
\index{main.\+cpp@{main.\+cpp}!main@{main}}
\index{main@{main}!main.\+cpp@{main.\+cpp}}
\subsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily int main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}

$<$ Launch the threads

\subsection{Variable Documentation}
\mbox{\Hypertarget{main_8cpp_a2d5b01367ae1267dfac47c7875aac5e4}\label{main_8cpp_a2d5b01367ae1267dfac47c7875aac5e4}}
\index{main.\+cpp@{main.\+cpp}!shared\+Variable@{shared\+Variable}}
\index{shared\+Variable@{shared\+Variable}!main.\+cpp@{main.\+cpp}}
\subsubsection{\texorpdfstring{shared\+Variable}{sharedVariable}}
{\footnotesize\ttfamily int shared\+Variable = 0}


text:
angular.module( 'wardolphMain.blog', [
  'ui.router',
  'angulartics',
  'angulartics.google.analytics'
])
.config(function($stateProvider) {
  $stateProvider.state('blog', {
    url: '/blog',
    controller: 'BlogCtrl',
    templateUrl: '/partial/blog/blog.html'
  });
})
.controller( 'BlogCtrl', function BlogController( $scope, $http, $stateParams, $analytics) {

});


text:
Includes configuration for

* zsh
* tmux
* VIM
* OS X defaults
* other things


text:
typedef struct
{
	uint headerSize;          // size of the structure
	uint height;              // height of surface to be created
	uint width;               // width of input surface
	uint numMipmaps;          // number of mip-map levels requested
	uint pfFlags;             // pixel format flags
	uint textureDataSize;     // total size in bytes
	uint bitCount;            // number of bits per pixel
	uint rBitMask;            // mask for red bit
	uint gBitMask;            // mask for green bits
	uint bBitMask;            // mask for blue bits
	uint alphaBitMask;        // mask for alpha channel
	uint pvr;                 // magic number identifying pvr file
	uint numSurfs;            // number of surfaces present in the pvr
} PVRTextureHeader;

enum PVRPixelType
{
	OGL_RGBA_4444 = 0x10,
	OGL_RGBA_5551,
	OGL_RGBA_8888,
	OGL_RGB_565,
	OGL_RGB_555,
	OGL_RGB_888,
	OGL_I_8,
	OGL_AI_88,
	OGL_PVRTC2,
	OGL_PVRTC4,
    OGL_BGRA_8888,
    OGL_A_8
};

// --- class implementation ------------------------------------------------------------------------

@implementation SPPVRData
{
    NSData *_data;
}

#pragma mark Initialization

- (instancetype)initWithData:(NSData *)data
{
    return [self initWithData:data compressed:NO];
}

- (instancetype)initWithData:(NSData *)data compressed:(BOOL)isCompressed
{
    if ((self = [super init]))
    {
        if (isCompressed) _data = [[data gzipInflate] retain];
        else              _data =  [data retain];

        PVRTextureHeader *header = (PVRTextureHeader *)[_data bytes];
        bool hasAlpha = header->alphaBitMask ? YES : NO;

        _width      = header->width;
        _height     = header->height;
        _numMipmaps = header->numMipmaps;

        switch (header->pfFlags & 0xff)
        {
            case OGL_RGB_565:   _format = SPTextureFormat565;   break;
            case OGL_RGB_888:   _format = SPTextureFormat888;   break;
            case OGL_RGBA_5551: _format = SPTextureFormat5551;  break;
            case OGL_RGBA_4444: _format = SPTextureFormat4444;  break;
            case OGL_RGBA_8888: _format = SPTextureFormatRGBA;  break;
            case OGL_A_8:       _format = SPTextureFormatAlpha; break;
            case OGL_I_8:       _format = SPTextureFormatI8;    break;
            case OGL_AI_88:     _format = SPTextureFormatAI88;  break;
            case OGL_PVRTC2:
                _format = hasAlpha ? SPTextureFormatPvrtcRGBA2 : SPTextureFormatPvrtcRGB2;
                break;
            case OGL_PVRTC4:
                _format = hasAlpha ? SPTextureFormatPvrtcRGBA4 : SPTextureFormatPvrtcRGB4;
                break;
            default:
                [NSException raise:SPExceptionDataInvalid format:@"Unsupported PVR image format"];
                return nil;
        }
    }
    return self;
}

- (void)dealloc
{
    [_data release];
    [super dealloc];
}

#pragma mark Properties

- (void *)imageData
{
    PVRTextureHeader *header = (PVRTextureHeader *)[_data bytes];
    return (unsigned char *)header + header->headerSize;
}

@end


text:
import ConfigParser
import os

config = ConfigParser.ConfigParser()
config.read('rapa.cnf')

mysql_server = config.get('Mysql', 'server')
mysql_port = config.get('Mysql', 'port')
mysql_user = config.get('Mysql', 'user')
mysql_password = config.get('Mysql', 'password')
mysql_database = config.get('Mysql', 'DB')
mysql_database_table = config.get('Mysql', 'table')

node_latitude = config.get('Node', 'latitude')
node_longitude = config.get('Node', 'longitude')
node_mac = config.get('Node', 'mac')
node_name = config.get('Node', 'name')
node_ip = config.get('Node', 'ip')
node_port = config.getint('Node', 'port')

radius_server = config.get('Radius', 'server')
radius_secret = config.get('Radius', 'secret')
radius_dictionary = config.get('Radius', 'dictionary')

custom_url = config.get('Custom', 'url')
custom_nas_port = config.getint('Custom', 'nas_port')
custom_nas_port_type = config.getint('Custom', 'nas_port_type')
custom_url = config.get('Custom', 'url')
custom_wispr_location_id = config.get('Custom', 'wispr_location_id')
custom_wispr_location_name = config.get('Custom', 'wispr_location_name')
custom_footer_html_message = config.get('Custom', 'footer_html_message')

session_session_expiry = config.get('Session', 'session_expiry')


text:
var gulp = require('gulp'),
    minifycss = require('gulp-minify-css'),
    jshint = require('gulp-jshint'),
    stylish = require('jshint-stylish'),
    uglify = require('gulp-uglify'),
    usemin = require('gulp-usemin'),
    imagemin = require('gulp-imagemin'),
    rename = require('gulp-rename'),
    concat = require('gulp-concat'),
    notify = require('gulp-notify'),
    cache = require('gulp-cache'),
    changed = require('gulp-changed'),
    rev = require('gulp-rev'),
    browserSync = require('browser-sync'),
    ngannotate = require('gulp-ng-annotate'),
    del = require('del');

gulp.task('jshint', function() {
    return gulp.src('app/scripts/**/*.js')
        .pipe(jshint())
        .pipe(jshint.reporter(stylish));
});

// Clean
gulp.task('clean', function() {
    return del(['dist']);
});

// Default task
gulp.task('default', ['clean'], function() {
    gulp.start('usemin', 'imagemin','copyfonts');
});

gulp.task('usemin',['jshint'], function () {
    return gulp.src('app/**/*.html')
        .pipe(usemin({
        css:[minifycss(), rev()],
        js: [ngannotate(), uglify(), rev()]
    }))
        .pipe(gulp.dest('dist/'));
});

// Images
gulp.task('imagemin', function() {
    return del(['dist/images']), gulp.src('app/images/**/*')
        .pipe(cache(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true })))
        .pipe(gulp.dest('dist/images'))
        .pipe(notify({ message: 'Images task complete' }));
});

gulp.task('copyfonts', ['clean'], function() {
    gulp.src('bower_components/font-awesome/fonts/**/*.{ttf,woff,eof,svg}*')
        .pipe(gulp.dest('./dist/fonts'));
    gulp.src('bower_components/bootstrap/dist/fonts/**/*.{ttf,woff,eof,svg}*')
        .pipe(gulp.dest('./dist/fonts'));
});

// Watch
gulp.task('watch', ['browser-sync'], function() {
    // Watch .js files
    gulp.watch('{app/scripts/**/*.js,app/styles/**/*.css,app/**/*.html}', ['usemin']);
    // Watch image files
    gulp.watch('app/images/**/*', ['imagemin']);

});

gulp.task('browser-sync', ['default'], function () {
    var files = [
        'app/**/*.html',
        'app/styles/**/*.css',
        'app/images/**/*.png',
        'app/scripts/**/*.js',
        'dist/**/*'
    ];

    browserSync.init(files, {
        server: {
            baseDir: "dist",
            index: "indexuirouter.html"
        }
    });
    // Watch any files in dist/, reload on change
    gulp.watch(['dist/**']).on('change', browserSync.reload);
});


text:
package storage

import (
	"errors"
	"reflect"
	"testing"

	"github.com/cockroachdb/cockroach/gossip"
	"github.com/cockroachdb/cockroach/roachpb"
	"github.com/cockroachdb/cockroach/storage/engine"
	"github.com/cockroachdb/cockroach/util"
	"github.com/cockroachdb/cockroach/util/hlc"
	"github.com/cockroachdb/cockroach/util/leaktest"
	"github.com/cockroachdb/cockroach/util/stop"
)

func TestStoresAddStore(t *testing.T) {
	defer leaktest.AfterTest(t)()
	ls := NewStores(hlc.NewClock(hlc.UnixNano))
	store := Store{}
	ls.AddStore(&store)
	if !ls.HasStore(store.Ident.StoreID) {
		t.Errorf("expected local sender to contain storeID=%d", store.Ident.StoreID)
	}
	if ls.HasStore(store.Ident.StoreID + 1) {
		t.Errorf("expected local sender to not contain storeID=%d", store.Ident.StoreID+1)
	}
}

func TestStoresRemoveStore(t *testing.T) {
	defer leaktest.AfterTest(t)()
	ls := NewStores(hlc.NewClock(hlc.UnixNano))

	storeID := roachpb.StoreID(89)

	ls.AddStore(&Store{Ident: roachpb.StoreIdent{StoreID: storeID}})

	ls.RemoveStore(&Store{Ident: roachpb.StoreIdent{StoreID: storeID}})

	if ls.HasStore(storeID) {
		t.Errorf("expted local sender to remove storeID=%d", storeID)
	}
}

func TestStoresGetStoreCount(t *testing.T) {
	defer leaktest.AfterTest(t)()
	ls := NewStores(hlc.NewClock(hlc.UnixNano))
	if ls.GetStoreCount() != 0 {
		t.Errorf("expected 0 stores in new local sender")
	}

	expectedCount := 10
	for i := 0; i < expectedCount; i++ {
		ls.AddStore(&Store{Ident: roachpb.StoreIdent{StoreID: roachpb.StoreID(i)}})
	}
	if count := ls.GetStoreCount(); count != expectedCount {
		t.Errorf("expected store count to be %d but was %d", expectedCount, count)
	}
}

func TestStoresVisitStores(t *testing.T) {
	defer leaktest.AfterTest(t)()
	ls := NewStores(hlc.NewClock(hlc.UnixNano))
	numStores := 10
	for i := 0; i < numStores; i++ {
		ls.AddStore(&Store{Ident: roachpb.StoreIdent{StoreID: roachpb.StoreID(i)}})
	}

	visit := make([]bool, numStores)
	err := ls.VisitStores(func(s *Store) error { visit[s.Ident.StoreID] = true; return nil })
	if err != nil {
		t.Errorf("unexpected error on visit: %s", err.Error())
	}

	for i, visited := range visit {
		if !visited {
			t.Errorf("store %d was not visited", i)
		}
	}

	err = ls.VisitStores(func(s *Store) error { return errors.New("") })
	if err == nil {
		t.Errorf("expected visit error")
	}
}

func TestStoresGetStore(t *testing.T) {
	defer leaktest.AfterTest(t)()
	ls := NewStores(hlc.NewClock(hlc.UnixNano))
	store := Store{}
	replica := roachpb.ReplicaDescriptor{StoreID: store.Ident.StoreID}
	s, pErr := ls.GetStore(replica.StoreID)
	if s != nil || pErr == nil {
		t.Errorf("expected no stores in new local sender")
	}

	ls.AddStore(&store)
	s, pErr = ls.GetStore(replica.StoreID)
	if s == nil {
		t.Errorf("expected store")
	} else if s.Ident.StoreID != store.Ident.StoreID {
		t.Errorf("expected storeID to be %d but was %d",
			s.Ident.StoreID, store.Ident.StoreID)
	} else if pErr != nil {
		t.Errorf("expected no error, instead had err=%s", pErr)
	}
}

func TestStoresLookupReplica(t *testing.T) {
	defer leaktest.AfterTest(t)()
	stopper := stop.NewStopper()
	defer stopper.Stop()
	ctx := TestStoreContext()
	manualClock := hlc.NewManualClock(0)
	ctx.Clock = hlc.NewClock(manualClock.UnixNano)
	ls := NewStores(ctx.Clock)

	// Create two new stores with ranges we care about.
	var e [2]engine.Engine
	var s [2]*Store
	var d [2]*roachpb.RangeDescriptor
	ranges := []struct {
		storeID    roachpb.StoreID
		start, end roachpb.RKey
	}{
		{2, roachpb.RKeyMin, roachpb.RKey("c")},
		{3, roachpb.RKey("x"), roachpb.RKey("z")},
	}
	for i, rng := range ranges {
		e[i] = engine.NewInMem(roachpb.Attributes{}, 1<<20, stopper)
		ctx.Transport = NewDummyRaftTransport()
		s[i] = NewStore(ctx, e[i], &roachpb.NodeDescriptor{NodeID: 1})
		s[i].Ident.StoreID = rng.storeID

		d[i] = &roachpb.RangeDescriptor{
			RangeID:  roachpb.RangeID(i),
			StartKey: rng.start,
			EndKey:   rng.end,
			Replicas: []roachpb.ReplicaDescriptor{{StoreID: rng.storeID}},
		}
		newRng, err := NewReplica(d[i], s[i], 0)
		if err != nil {
			t.Fatal(err)
		}
		if err := s[i].AddReplicaTest(newRng); err != nil {
			t.Error(err)
		}
		ls.AddStore(s[i])
	}

	if _, r, err := ls.lookupReplica(roachpb.RKey("a"), roachpb.RKey("c")); r.StoreID != s[0].Ident.StoreID || err != nil {
		t.Errorf("expected store %d; got %d: %v", s[0].Ident.StoreID, r.StoreID, err)
	}
	if _, r, err := ls.lookupReplica(roachpb.RKey("b"), nil); r.StoreID != s[0].Ident.StoreID || err != nil {
		t.Errorf("expected store %d; got %d: %v", s[0].Ident.StoreID, r.StoreID, err)
	}
	if _, r, err := ls.lookupReplica(roachpb.RKey("b"), roachpb.RKey("d")); r != nil || err == nil {
		t.Errorf("expected store 0 and error got %d", r.StoreID)
	}
	if _, r, err := ls.lookupReplica(roachpb.RKey("x"), roachpb.RKey("z")); r.StoreID != s[1].Ident.StoreID {
		t.Errorf("expected store %d; got %d: %v", s[1].Ident.StoreID, r.StoreID, err)
	}
	if _, r, err := ls.lookupReplica(roachpb.RKey("y"), nil); r.StoreID != s[1].Ident.StoreID || err != nil {
		t.Errorf("expected store %d; got %d: %v", s[1].Ident.StoreID, r.StoreID, err)
	}

	if desc, err := ls.FirstRange(); err != nil || !reflect.DeepEqual(desc, d[0]) {
		t.Fatalf("first range not as expected: error=%v, desc=%+v", err, desc)
	}
}

var storeIDAlloc roachpb.StoreID

// createStores creates a slice of count stores.
func createStores(count int, t *testing.T) (*hlc.ManualClock, []*Store, *Stores, *stop.Stopper) {
	stopper := stop.NewStopper()
	ctx := TestStoreContext()
	manualClock := hlc.NewManualClock(0)
	ctx.Clock = hlc.NewClock(manualClock.UnixNano)
	ls := NewStores(ctx.Clock)

	// Create two stores with ranges we care about.
	stores := []*Store{}
	for i := 0; i < 2; i++ {
		ctx.Transport = NewDummyRaftTransport()
		s := NewStore(ctx, engine.NewInMem(roachpb.Attributes{}, 1<<20, stopper), &roachpb.NodeDescriptor{NodeID: 1})
		storeIDAlloc++
		s.Ident.StoreID = storeIDAlloc
		stores = append(stores, s)
	}

	return manualClock, stores, ls, stopper
}

// TestStoresGossipStorage verifies reading and writing of bootstrap info.
func TestStoresGossipStorage(t *testing.T) {
	defer leaktest.AfterTest(t)()
	manual, stores, ls, stopper := createStores(2, t)
	defer stopper.Stop()
	ls.AddStore(stores[0])

	manual.Set(1)

	// Verify initial read is empty.
	var bi gossip.BootstrapInfo
	if err := ls.ReadBootstrapInfo(&bi); err != nil {
		t.Fatal(err)
	}
	if len(bi.Addresses) != 0 {
		t.Errorf("expected empty bootstrap info: %+v", bi)
	}

	// Add a fake address and write.
	manual.Increment(1)
	bi.Addresses = append(bi.Addresses, util.MakeUnresolvedAddr("tcp", "127.0.0.1:8001"))
	if err := ls.WriteBootstrapInfo(&bi); err != nil {
		t.Fatal(err)
	}

	// Verify on read.
	manual.Increment(1)
	var newBI gossip.BootstrapInfo
	if err := ls.ReadBootstrapInfo(&newBI); err != nil {
		t.Fatal(err)
	}
	if len(newBI.Addresses) != 1 {
		t.Errorf("expected single bootstrap info address: %+v", newBI)
	}

	// Add another store and verify it has bootstrap info written.
	ls.AddStore(stores[1])

	// Create a new stores object to verify read.
	ls2 := NewStores(ls.clock)
	ls2.AddStore(stores[1])
	var verifyBI gossip.BootstrapInfo
	if err := ls2.ReadBootstrapInfo(&verifyBI); err != nil {
		t.Fatal(err)
	}
	if !reflect.DeepEqual(bi, verifyBI) {
		t.Errorf("bootstrap info %+v not equal to expected %+v", verifyBI, bi)
	}
}

// TestStoresGossipStorageReadLatest verifies that the latest
// bootstrap info from multiple stores is returned on Read.
func TestStoresGossipStorageReadLatest(t *testing.T) {
	defer leaktest.AfterTest(t)()
	manual, stores, ls, stopper := createStores(2, t)
	defer stopper.Stop()
	ls.AddStore(stores[0])

	// Set clock to 1.
	manual.Set(1)

	// Add a fake address and write.
	var bi gossip.BootstrapInfo
	bi.Addresses = append(bi.Addresses, util.MakeUnresolvedAddr("tcp", "127.0.0.1:8001"))
	if err := ls.WriteBootstrapInfo(&bi); err != nil {
		t.Fatal(err)
	}

	// Now remove store 0 and add store 1.
	ls.RemoveStore(stores[0])
	ls.AddStore(stores[1])

	// Increment clock, add another address and write.
	manual.Increment(1)
	bi.Addresses = append(bi.Addresses, util.MakeUnresolvedAddr("tcp", "127.0.0.1:8002"))
	if err := ls.WriteBootstrapInfo(&bi); err != nil {
		t.Fatal(err)
	}

	// Create a new stores object to freshly read. Should get latest
	// version from store 1.
	manual.Increment(1)
	ls2 := NewStores(ls.clock)
	ls2.AddStore(stores[0])
	ls2.AddStore(stores[1])
	var verifyBI gossip.BootstrapInfo
	if err := ls2.ReadBootstrapInfo(&verifyBI); err != nil {
		t.Fatal(err)
	}
	if !reflect.DeepEqual(bi, verifyBI) {
		t.Errorf("bootstrap info %+v not equal to expected %+v", verifyBI, bi)
	}

	// Verify that stores[0], which had old info, was updated with
	// latest bootstrap info during the read.
	ls3 := NewStores(ls.clock)
	ls3.AddStore(stores[0])
	verifyBI.Reset()
	if err := ls2.ReadBootstrapInfo(&verifyBI); err != nil {
		t.Fatal(err)
	}
	if !reflect.DeepEqual(bi, verifyBI) {
		t.Errorf("bootstrap info %+v not equal to expected %+v", verifyBI, bi)
	}
}


text:
package edu.cmu.hcii.whyline.bytecode;

/**
 * @author Andrew J. Ko
 *
 */
public final class AASTORE extends SetArrayValue {

	public AASTORE(CodeAttribute method) {
		super(method);
	}

	public String getTypeDescriptorOfArray() { return "Ljava/lang/Object;"; }

	public final int getOpcode() { return 83; }
	public int byteLength() { return 1; }

}


text:
var fs = require("fs");
var modules = function(){

	var loadedModules = [];
	this.loadModules = function(){
		var console = global.k.console;
		fs.readdir("./modules",function(err,files){
			if(err){console.error("modules folder not exist"+err); return;}
			for(var i = 0; i<files.length; i++){
				global.k.modules[files[i]] = require("../modules/"+files[i]+"/index.js");
				var execute = global.k.modules[files[i]].main();
				if(execute != true){
					console.error("Module '"+files[i]+"' has an error or function main() doesn't exists");
					break;
				}
			}

		});
	};

};

module.exports = new modules();