text:
/**********************************************************************************************
 * File Name : FLController.java
 * Purpose : provide functionality to each of the components of the input view the user can
 * interact with
 * Creation Date : Wed Mar 16 12:00:31 CDT 2016
 * Last Modified : Wed Mar 16 13:24:27 CDT 2016
 * Author : Ivan Guerra <Ivan.E.Guerra-1@ou.edu>
 *********************************************************************************************/
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Bounds;
import javafx.geometry.Point2D;
import javafx.scene.control.CheckMenuItem;
import javafx.scene.input.MouseEvent;
import javafx.scene.paint.Color;
import javafx.util.Duration;

public class FLController {
    private int clickCounter = 0;	/* counts the number of clicks performed by the user ensuring the click limit set in the model is not overstepped */
    private FLModel dataModel;		/* the data model to which this controller reads/writes data to */
    private FLGraphView graphView;	/* the view housing simulation results which the controller decides when to display and hide */
    private FLView inputView;		/* the view to which changes in the state of the model are displayed and from which data is recieved */

    private class ClickListener implements EventHandler<MouseEvent> {
	public void handle(MouseEvent e) {
	    if (inputView.getJbtStart().isDisable()) {			/* only react to clicks if the simulation has been started */
		if (clickCounter < dataModel.getClickLimit()) {		/* check that the click limit has not been exceeded */
		    recordElapsedTime();
		    recordDistance(e.getSceneX(), e.getSceneY());

		    dataModel.addCLick();
		    if (isSuccessfulClick(e.getSceneX(), e.getSceneY())) {
			dataModel.addSuccessfulClick();
		    }
		    clickCounter++;
		} else {						/* display simulation results to the user */
		    endSession();
		}
	    }
	}
    }

    private class StartButtonClickListener implements EventHandler<MouseEvent> {
	public void handle(MouseEvent event) {				/* get the location of the mouse when the  simulation is started */
	    dataModel.setPreviouseMouseLoc(new Point2D(event.getSceneX(), event.getSceneY()));
	}
    }

    public FLController() { }

    /**********************************************************************************************
     * Name : cmtColorsAction
     * Purpose : change the color of the target to the item selected in the colors menu
     * Parameters :
     * 		@e: generic ActionEvent object
     * Return :
     * 		@return: none
     *********************************************************************************************/
    private void cmtColorsAction(ActionEvent e) {
	for (int i = 0; i < inputView.getCmtColors().length; i++) {
	    if (inputView.getCmtColors()[i].isSelected()) {
		inputView.getCmtColors()[i].setSelected(false);
		switch (i) {
		case 0:
		    inputView.getTarget().setFill(Color.RED);
		    break;
		case 1:
		    inputView.getTarget().setFill(Color.BLUE);
		    break;
		case 2:
		    inputView.getTarget().setFill(Color.GREEN);
		    break;
		case 3:
		    inputView.getTarget().setFill(Color.YELLOW);
		    break;
		case 4:
		    inputView.getTarget().setFill(Color.PURPLE);
		    break;
		case 5:
		    inputView.getTarget().setFill(Color.BLACK);
		    break;
		default:
		    inputView.getTarget().setFill(Color.BLACK);
		    break;
		}
	    }
	}
    }

    /**********************************************************************************************
     * Name : cmtRadiusAction
     * Purpose : change the radius of the target to the radius selected in the radius menu
     * Parameters :
     * 		@e: generic ActionEvent object
     * Return :
     * 		@return: none
     *********************************************************************************************/
    private void cmtRadiusAction(ActionEvent e) {
	CheckMenuItem selected;
	for (int i = 0; i < inputView.getCmtRadius().length; i++) {
	    if (inputView.getCmtRadius()[i].isSelected()) {
		inputView.getCmtRadius()[i].setSelected(false);
		selected = inputView.getCmtRadius()[i];
		inputView.getTarget().setRadius(Double.parseDouble(selected.getText()));
	    }
	}
    }

    /**********************************************************************************************
     * Name : distBetweenPoints
     * Purpose : compute the 2D distance between the two parameter points
     * Parameters :
     * 		@x1: first point's x coordinate
     *		@y1: first point's y coordinate
     *		@x2: second point's x coordinate
     *		@y2: second point's y coordinate
     * Return :
     * 		@return: the distace between the two parameter points
     *********************************************************************************************/
    private double distBetweenPoints(double x1, double y1, double x2, double y2) {
	return (Math.sqrt(Math.pow((x1 - x2), 2.0) + Math.pow((y1 - y2), 2.0)));
    }

    /**********************************************************************************************
     * Name : endAction
     * Purpose : report the simulation results when the user clicks the end button
     * Parameters :
     * 		@e: generic ActionEvent object
     * Return :
     * 		@return: none
     *********************************************************************************************/
    private void endAction(ActionEvent e) {
	endSession();
    }

    /**********************************************************************************************
     * Name : endSession
     * Purpose : report the simulation results by displaying @graphView to the user
     * Parameters :
     * 		@param: none
     * Return :
     * 		@return: none
     *********************************************************************************************/
    private void endSession() {
	inputView.getJbtStart().setDisable(false);	/* re-enable the start button to prepare for another simulation */

	if (clickCounter > 0) {				/* only display results if we have been recording clicks */
	    dataModel.initRegressionLine(inputView.getTarget().getRadius() * 2);
	    graphView.displayGraph();
	}

	/* reset the click counter and model data as well as hide the target until the next simulation is started */
	clickCounter = 0;
	dataModel.clearModelData();
	inputView.getCanvas().setVisible(false);
    }

    /**********************************************************************************************
     * Name : isSuccessfulClick
     * Purpose : determine whether the user's click was within the bounds of the target
     * Parameters :
     * 		@mouseX: the x coordinate of the mouse click location
     *		@mouseY: the y coordinate of the mouse click location
     * Return :
     * 		@return: TRUE if the click was within the target bounds and FALSE otherwise
     *********************************************************************************************/
    private boolean isSuccessfulClick(double mouseX, double mouseY) {
	Bounds targetBounds = inputView.getTarget().localToScene(inputView.getTarget().getBoundsInLocal());
	double targetRadius = inputView.getTarget().getRadius();
	double targetX = targetBounds.getMaxX() - targetRadius;
	double targetY = targetBounds.getMaxY() - targetRadius;

	return (distBetweenPoints(mouseX, mouseY, targetX, targetY) < targetRadius);
    }

    /**********************************************************************************************
     * Name : quitAction
     * Purpose : exit the program
     * Parameters :
     * 		@e: generic ActionEvent object
     * Return :
     * 		@return: none
     *********************************************************************************************/
    private void quitAction(ActionEvent e) { System.exit(0); }

    /**********************************************************************************************
     * Name : recordDistance
     * Purpose : record the distance from the location of the last mouse click to the target
     * Parameters :
     * 		@mouseX: the x coordinate of the mouse click location
     *		@mouseY: the y coordinate of the mouse click location
     * Return :
     * 		@return: none
     *********************************************************************************************/
    private void recordDistance(double mouseX, double mouseY) {
	Bounds targetBounds = inputView.getTarget().localToScene(inputView.getTarget().getBoundsInLocal());
	double targetRadius = inputView.getTarget().getRadius();
	double targetX = targetBounds.getMaxX() - targetRadius;
	double targetY = targetBounds.getMaxY() - targetRadius;

	double dist = distBetweenPoints(dataModel.getPreviouseMouseLoc().getX(),
					dataModel.getPreviouseMouseLoc().getY(), targetX, targetY);
	dataModel.addDistance(dist);
	dataModel.setPreviouseMouseLoc(new Point2D(mouseX, mouseY));
    }

    /**********************************************************************************************
     * Name : recordElapsedTime
     * Purpose : record the time that has elapsed between the most recent and previous mouse click
     * Parameters :
     * 		@param: none
     * Return :
     * 		@return: none
     *********************************************************************************************/
    private void recordElapsedTime() {
	long currentTime = System.currentTimeMillis();
	long elapsedTime = currentTime - dataModel.getTimeOfLastClick();
	dataModel.addTime(elapsedTime);
	dataModel.setTimeOfLastClick(currentTime);
    }

    /**********************************************************************************************
     * Name : setDataModel
     * Purpose : set the data model of this controller
     * Parameters :
     * 		@model: a data model object
     * Return :
     * 		@return: none
     *********************************************************************************************/
    public void setDataModel(final FLModel model) { dataModel = model; }

    /**********************************************************************************************
     * Name : setGraphView
     * Purpose : set the graph view (output view) of this controller
     * Parameters :
     * 		@view: a graph view used to graphically display the results of the lates
     *            simulation
     * Return :
     * 		@return: none
     *********************************************************************************************/
    public void setGraphView(final FLGraphView view) { graphView = view; }

    /**********************************************************************************************
     * Name : setInputView
     * Purpose : set the input view to which this controller will reflect changes in the model
     * Parameters :
     * 		@view: the view this controller will be updating and responding to
     * Return :
     * 		@return: none
     *********************************************************************************************/
    public void setInputView(final FLView view) {
	inputView = view;

	inputView.getJmtQuit().setOnAction(this::quitAction);
	inputView.getJbtStart().setOnAction(this::startAction);
	inputView.getJbtStart().setOnMouseClicked(new StartButtonClickListener());
	inputView.getJbtEnd().setOnAction(this::endAction);
	for (CheckMenuItem color : inputView.getCmtColors()) {
	    color.setOnAction(this::cmtColorsAction);
	}
	for (CheckMenuItem radius : inputView.getCmtRadius()) {
	    radius.setOnAction(this::cmtRadiusAction);
	}
	inputView.getRootScene().setOnMouseClicked(new ClickListener());
	inputView.getCanvas().setVisible(false);				/* initially hide the target */
	startAnimation();							/* the animation always runs even when hidden */
    }

    /**********************************************************************************************
     * Name : startAction
     * Purpose : make the target visible and begin recording user clicks
     * Parameters :
     * 		@e: generic ActionEvent object
     * Return :
     * 		@return: none
     *********************************************************************************************/
    private void startAction(ActionEvent e) {
	dataModel.setClickLimit(inputView.getSpTargetCLicks().getValue());
	dataModel.setTimeOfLastClick(System.currentTimeMillis());
	inputView.getJbtStart().setDisable(true);
	inputView.getCanvas().setVisible(true);
    }

    /**********************************************************************************************
     * Name : startAnimation
     * Purpose : run the animation loop which has the target bounce off the canvas boundaries
     * Parameters :
     * 		@param: none
     * Return :
     * 		@return: none
     *********************************************************************************************/
    private void startAnimation() {
	final Timeline loop = new Timeline(new KeyFrame(Duration.millis(20), new EventHandler<ActionEvent>() {

		double deltaX = 3;
		double deltaY = 3;

		public void handle(final ActionEvent t) {
		    /* move the target by @deltaX and @deltaY pixels */
		    inputView.getTarget().setLayoutX(inputView.getTarget().getLayoutX() + deltaX);
		    inputView.getTarget().setLayoutY(inputView.getTarget().getLayoutY() + deltaY);

		    /* determine if the target is at one of the canvas borders */
		    final Bounds bounds = inputView.getCanvas().getBoundsInLocal();
		    final boolean atRightBorder = inputView.getTarget()
			.getLayoutX() >= (bounds.getMaxX() - inputView.getTarget().getRadius());
		    final boolean atLeftBorder = inputView.getTarget()
			.getLayoutX() <= (bounds.getMinX() + inputView.getTarget().getRadius());
		    final boolean atBottomBorder = inputView.getTarget()
			.getLayoutY() >= (bounds.getMaxY() - inputView.getTarget().getRadius());
		    final boolean atTopBorder = inputView.getTarget()
			.getLayoutY() <= (bounds.getMinY() + inputView.getTarget().getRadius());

		    /* if at a border, have the target reverse direction */
		    if (atRightBorder || atLeftBorder) {
			deltaX *= -1;
		    }
		    if (atBottomBorder || atTopBorder) {
			deltaY *= -1;
		    }
		}
	    }));
	loop.setCycleCount(Timeline.INDEFINITE);
	loop.play();
    }
}


text:
'use strict';

const Texture2D = require('./Texture2D');

const MAG_FILTERS = {
	NEAREST: true,
	LINEAR: true
};
const MIN_FILTERS = {
	NEAREST: true,
	LINEAR: true
};
const WRAP_MODES = {
	REPEAT: true,
	CLAMP_TO_EDGE: true,
	MIRRORED_REPEAT: true
};
const DEPTH_TYPES = {
	UNSIGNED_BYTE: true,
	UNSIGNED_SHORT: true,
	UNSIGNED_INT: true
};
const FORMATS = {
	DEPTH_COMPONENT: true,
	DEPTH_STENCIL: true
};

/**
 * The default type for depth textures.
 * @private
 * @constant {string}
 */
const DEFAULT_TYPE = 'UNSIGNED_INT';

/**
 * The default format for depth textures.
 * @private
 * @constant {string}
 */
const DEFAULT_FORMAT = 'DEPTH_COMPONENT';

/**
 * The default wrap mode for depth textures.
 * @private
 * @constant {string}
 */
const DEFAULT_WRAP = 'CLAMP_TO_EDGE';

/**
 * The default min / mag filter for depth textures.
 * @private
 * @constant {string}
 */
const DEFAULT_FILTER = 'LINEAR';

/**
 * A texture class to represent a 2D depth texture.
 * @augments Texture2D
 */
class DepthTexture2D extends Texture2D {

	/**
	 * Instantiates a DepthTexture2D object.
	 *
	 * @param {Object} spec - The specification arguments.
	 * @param {Uint8Array|Uint16Array|Uint32Array} spec.src - The data to buffer.
	 * @param {number} spec.width - The width of the texture.
	 * @param {number} spec.height - The height of the texture.
	 * @param {string} spec.wrap - The wrapping type over both S and T dimension.
	 * @param {string} spec.wrapS - The wrapping type over the S dimension.
	 * @param {string} spec.wrapT - The wrapping type over the T dimension.
	 * @param {string} spec.filter - The min / mag filter used during scaling.
	 * @param {string} spec.minFilter - The minification filter used during scaling.
	 * @param {string} spec.magFilter - The magnification filter used during scaling.
	 * @param {string} spec.format - The texture pixel format.
	 * @param {string} spec.type - The texture pixel component type.
	 */
	constructor(spec = {}) {
		// get specific params
		spec.wrapS = spec.wrapS || spec.wrap;
		spec.wrapT = spec.wrapT || spec.wrap;
		spec.minFilter = spec.minFilter || spec.filter;
		spec.magFilter = spec.magFilter || spec.filter;
		// set texture params
		spec.wrapS = WRAP_MODES[spec.wrapS] ? spec.wrapS : DEFAULT_WRAP;
		spec.wrapT = WRAP_MODES[spec.wrapT] ? spec.wrapT : DEFAULT_WRAP;
		spec.minFilter = MIN_FILTERS[spec.minFilter] ? spec.minFilter : DEFAULT_FILTER;
		spec.magFilter = MAG_FILTERS[spec.magFilter] ? spec.magFilter : DEFAULT_FILTER;
		// set mip-mapping and format
		spec.mipMap = false; // disable mip-mapping
		spec.invertY = false; // no need to invert-y
		spec.premultiplyAlpha = false; // no alpha to pre-multiply
		spec.format = FORMATS[spec.format] ? spec.format : DEFAULT_FORMAT;
		// check if stencil-depth, or just depth
		if (spec.format === 'DEPTH_STENCIL') {
			spec.type = 'UNSIGNED_INT_24_8_WEBGL';
		} else {
			spec.type = DEPTH_TYPES[spec.type] ? spec.type : DEFAULT_TYPE;
		}
		// call base constructor
		super(spec);
	}
}

module.exports = DepthTexture2D;

redpajama_set_name: RedPajamaGithub


text:
package net.hasor.website.login.oauth.weibo;
import net.hasor.website.domain.AccessInfo;
/**
 * 新浪微博 Token 信息
 * @version : 2016年08月11日
 * @author 赵永春 (zyc@hasor.net)
 */
public class WeiboAccessInfo extends AccessInfo {
    private String  accessToken        = null;
    private String  remind_in          = null;
    private long    expires_in         = 0;
    private String  accessUserID       = null;
    //
    private long    id                 = 0;    // 用户UID
    private String  idstr              = null; // 字符串型的用户UID
    private String  screen_name        = null; // 用户昵称
    private String  name               = null; // 友好显示名称
    private int     province           = 0;    // 用户所在省级ID
    private int     city               = 0;    // 用户所在城市ID
    private String  location           = null; // 用户所在地
    private String  description        = null; // 用户个人描述
    private String  url                = null; // 用户博客地址
    private String  profile_image_url  = null; // 用户头像地址(中图),50×50像素
    private String  profile_url        = null; // 用户的微博统一URL地址
    private String  domain             = null; // 用户的个性化域名
    private String  weihao             = null; // 用户的微号
    private String  gender             = null; // 性别,m:男、f:女、n:未知
    private int     followers_count    = 0;    // 粉丝数
    private int     friends_count      = 0;    // 关注数
    private int     statuses_count     = 0;    // 微博数
    private int     favourites_count   = 0;    // 收藏数
    private String  created_at         = null; // 用户创建(注册)时间
    private Boolean following          = null; // 暂未支持
    private Boolean allow_all_act_msg  = null; // 是否允许所有人给我发私信,true:是,false:否
    private Boolean geo_enabled        = null; // 是否允许标识用户的地理位置,true:是,false:否
    private Boolean verified           = null; // 是否是微博认证用户,即加V用户,true:是,false:否
    private int     verified_type      = 0;    // 暂未支持
    private String  remark             = null; // 用户备注信息,只有在查询用户关系时才返回此字段
    private Boolean allow_all_comment  = null; // 是否允许所有人对我的微博进行评论,true:是,false:否
    private String  avatar_large       = null; // 用户头像地址(大图),180×180像素
    private String  avatar_hd          = null; // 用户头像地址(高清),高清头像原图
    private String  verified_reason    = null; // 认证原因
    private Boolean follow_me          = null; // 该用户是否关注当前登录用户,true:是,false:否
    private int     online_status      = 0;    // 用户的在线状态,0:不在线、1:在线
    private int     bi_followers_count = 0;    // 用户的互粉数
    private String  lang               = null; // 用户当前的语言版本,zh-cn:简体中文,zh-tw:繁体中文,en:英语
    //
    //
    //
    public WeiboAccessInfo() {
        this.setProvider(WeiboOAuth.PROVIDER_NAME);
    }
    @Override
    public String getExternalUserID() {
        return this.getIdstr();
    }
    @Override
    public String getExternalUserNick() {
        return this.getName();
    }
    //
    public String getAccessToken() {
        return accessToken;
    }
    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
    public String getRemind_in() {
        return remind_in;
    }
    public void setRemind_in(String remind_in) {
        this.remind_in = remind_in;
    }
    public long getExpires_in() {
        return expires_in;
    }
    public void setExpires_in(long expires_in) {
        this.expires_in = expires_in;
    }
    public String getAccessUserID() {
        return accessUserID;
    }
    public void setAccessUserID(String accessUserID) {
        this.accessUserID = accessUserID;
    }
    public long getId() {
        return id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public String getIdstr() {
        return idstr;
    }
    public void setIdstr(String idstr) {
        this.idstr = idstr;
    }
    public String getScreen_name() {
        return screen_name;
    }
    public void setScreen_name(String screen_name) {
        this.screen_name = screen_name;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getProvince() {
        return province;
    }
    public void setProvince(int province) {
        this.province = province;
    }
    public int getCity() {
        return city;
    }
    public void setCity(int city) {
        this.city = city;
    }
    public String getLocation() {
        return location;
    }
    public void setLocation(String location) {
        this.location = location;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public String getProfile_image_url() {
        return profile_image_url;
    }
    public void setProfile_image_url(String profile_image_url) {
        this.profile_image_url = profile_image_url;
    }
    public String getProfile_url() {
        return profile_url;
    }
    public void setProfile_url(String profile_url) {
        this.profile_url = profile_url;
    }
    public String getDomain() {
        return domain;
    }
    public void setDomain(String domain) {
        this.domain = domain;
    }
    public String getWeihao() {
        return weihao;
    }
    public void setWeihao(String weihao) {
        this.weihao = weihao;
    }
    public String getGender() {
        return gender;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }
    public int getFollowers_count() {
        return followers_count;
    }
    public void setFollowers_count(int followers_count) {
        this.followers_count = followers_count;
    }
    public int getFriends_count() {
        return friends_count;
    }
    public void setFriends_count(int friends_count) {
        this.friends_count = friends_count;
    }
    public int getStatuses_count() {
        return statuses_count;
    }
    public void setStatuses_count(int statuses_count) {
        this.statuses_count = statuses_count;
    }
    public int getFavourites_count() {
        return favourites_count;
    }
    public void setFavourites_count(int favourites_count) {
        this.favourites_count = favourites_count;
    }
    public String getCreated_at() {
        return created_at;
    }
    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }
    public Boolean getFollowing() {
        return following;
    }
    public void setFollowing(Boolean following) {
        this.following = following;
    }
    public Boolean getAllow_all_act_msg() {
        return allow_all_act_msg;
    }
    public void setAllow_all_act_msg(Boolean allow_all_act_msg) {
        this.allow_all_act_msg = allow_all_act_msg;
    }
    public Boolean getGeo_enabled() {
        return geo_enabled;
    }
    public void setGeo_enabled(Boolean geo_enabled) {
        this.geo_enabled = geo_enabled;
    }
    public Boolean getVerified() {
        return verified;
    }
    public void setVerified(Boolean verified) {
        this.verified = verified;
    }
    public int getVerified_type() {
        return verified_type;
    }
    public void setVerified_type(int verified_type) {
        this.verified_type = verified_type;
    }
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Boolean getAllow_all_comment() {
        return allow_all_comment;
    }
    public void setAllow_all_comment(Boolean allow_all_comment) {
        this.allow_all_comment = allow_all_comment;
    }
    public String getAvatar_large() {
        return avatar_large;
    }
    public void setAvatar_large(String avatar_large) {
        this.avatar_large = avatar_large;
    }
    public String getAvatar_hd() {
        return avatar_hd;
    }
    public void setAvatar_hd(String avatar_hd) {
        this.avatar_hd = avatar_hd;
    }
    public String getVerified_reason() {
        return verified_reason;
    }
    public void setVerified_reason(String verified_reason) {
        this.verified_reason = verified_reason;
    }
    public Boolean getFollow_me() {
        return follow_me;
    }
    public void setFollow_me(Boolean follow_me) {
        this.follow_me = follow_me;
    }
    public int getOnline_status() {
        return online_status;
    }
    public void setOnline_status(int online_status) {
        this.online_status = online_status;
    }
    public int getBi_followers_count() {
        return bi_followers_count;
    }
    public void setBi_followers_count(int bi_followers_count) {
        this.bi_followers_count = bi_followers_count;
    }
    public String getLang() {
        return lang;
    }
    public void setLang(String lang) {
        this.lang = lang;
    }
}


text:
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require('@angular/core');
var router_1 = require('@angular/router');
var training_set_directory_1 = require('./training-set-directory');
var SparrowsComponent = (function () {
    function SparrowsComponent(route) {
        this.route = route;
        this.trainingSet = null;
        this.indicator = '';
    }
    SparrowsComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.sub = this.route.params.subscribe(function (params) {
            var trainingSetName = params['trainingSetName'];
            _this.trainingSet = training_set_directory_1.trainingSetDirectory[trainingSetName];
            console.log('Training set is now ', trainingSetName);
        });
    };
    SparrowsComponent.prototype.vertical = function (text) {
        var result = "";
        for (var _i = 0, text_1 = text; _i < text_1.length; _i++) {
            var c = text_1[_i];
            result += c + ' <br />';
        }
        return result;
    };
    SparrowsComponent.prototype.advance = function () {
        if (1 < this.trainingSet.examples.length) {
            console.log('Advancing slide!');
            this.indicator = '';
            this.trainingSet.examples.shift();
        }
        else {
            this.indicator = 'DONE!';
            console.log('Done!');
        }
    };
    SparrowsComponent.prototype.handleAnswer = function (givenAnswer) {
        var _this = this;
        console.log('User said ' + givenAnswer);
        this.indicator = (this.trainingSet.examples[0].answer === givenAnswer ? '\u2713 yes!' : 'no');
        setTimeout(function () { _this.advance(); }, 500);
    };
    SparrowsComponent.prototype.handleKeyup = function (event) {
        if (event.key === "ArrowRight") {
            this.handleSwipeRight();
        }
        else if (event.key === "ArrowRight") {
            this.handleSwipeRight();
        }
    };
    SparrowsComponent.prototype.handleSwipeLeft = function () {
        this.handleAnswer(this.trainingSet.left);
    };
    SparrowsComponent.prototype.handleSwipeRight = function () {
        this.handleAnswer(this.trainingSet.right);
    };
    SparrowsComponent.prototype.ngOnDestroy = function () {
        this.sub.unsubscribe();
    };
    __decorate([
        core_1.HostListener('window:keydown', ['$event']),
        __metadata('design:type', Function),
        __metadata('design:paramtypes', [Object]),
        __metadata('design:returntype', void 0)
    ], SparrowsComponent.prototype, "handleKeyup", null);
    SparrowsComponent = __decorate([
        core_1.Component({
            selector: 'sd-sparrows',
            templateUrl: 'sparrows.component.html',
            styleUrls: ['sparrows.component.css']
        }),
        __metadata('design:paramtypes', [router_1.ActivatedRoute])
    ], SparrowsComponent);
    return SparrowsComponent;
}());
exports.SparrowsComponent = SparrowsComponent;


text:
Performance difference between php implementation and extension is very little.

Siege results:

PHP 5.5, profiling with library
-------------------------------

```
siege -v -t30s -c50 http://test-pinba-package.192.168.56.101.xip.io/index.php
Transactions:		        2893 hits
Availability:		      100.00 %
Elapsed time:		       29.71 secs
Data transferred:	        3.05 MB
Response time:		        0.02 secs
Transaction rate:	       97.37 trans/sec
Throughput:		        0.10 MB/sec
Concurrency:		        2.15
Successful transactions:        2893
Failed transactions:	           0
Longest transaction:	        0.57
Shortest transaction:	        0.00
Pinba requests: 2896
```

PHP 5.5, profiling disabled
---------------------------

```
siege -v -t30s -c50 http://test-pinba-package.192.168.56.101.xip.io/no-pinba.php
Transactions:		        2850 hits
Availability:		      100.00 %
Elapsed time:		       29.32 secs
Data transferred:	        3.04 MB
Response time:		        0.02 secs
Transaction rate:	       97.20 trans/sec
Throughput:		        0.10 MB/sec
Concurrency:		        1.69
Successful transactions:        2850
Failed transactions:	           0
Longest transaction:	        0.16
Shortest transaction:	        0.00
Pinba requests: 0
```

PHP 5.5, profiling with extension
---------------------------------

```
siege -v -t30s -c50 http://test-pinba-package.192.168.56.101.xip.io/index.php
Transactions:		        2789 hits
Availability:		      100.00 %
Elapsed time:		       29.46 secs
Data transferred:	        3.25 MB
Response time:		        0.02 secs
Transaction rate:	       94.67 trans/sec
Throughput:		        0.11 MB/sec
Concurrency:		        1.82
Successful transactions:        2789
Failed transactions:	           0
Longest transaction:	        0.16
Shortest transaction:	        0.00
Pinba requests: 2790
```

HHVM 3.9, profiling with library
--------------------------------
```
siege -v -t30s -c50 http://hhvm-pinba-package.192.168.56.101.xip.io/index.php
Transactions:		        2742 hits
Availability:		      100.00 %
Elapsed time:		       29.13 secs
Data transferred:	        1.12 MB
Response time:		        0.02 secs
Transaction rate:	       94.13 trans/sec
Throughput:		        0.04 MB/sec
Concurrency:		        1.86
Successful transactions:        2742
Failed transactions:	           0
Longest transaction:	        0.44
Shortest transaction:	        0.00
Pinba requests: 2743
```

HHVM 3.9, profiling disabled
----------------------------
```
siege -v -t30s -c50 http://hhvm-pinba-package.192.168.56.101.xip.io/no-pinba.php
Transactions:		        2769 hits
Availability:		      100.00 %
Elapsed time:		       29.04 secs
Data transferred:	        1.14 MB
Response time:		        0.02 secs
Transaction rate:	       95.35 trans/sec
Throughput:		        0.04 MB/sec
Concurrency:		        1.78
Successful transactions:        2769
Failed transactions:	           0
Longest transaction:	        0.21
Shortest transaction:	        0.00
Pinba requests: 0
```


text:
package treeton.gui;

import treeton.prosody.corpus.Corpus;
import treeton.prosody.corpus.CorpusException;
import treeton.prosody.metricindex.MetricIndex;

import javax.swing.*;
import javax.swing.event.CaretEvent;
import javax.swing.event.CaretListener;
import java.awt.*;

public class CorpusTweakerPanel extends JPanel {
    private final Corpus corpus;
    private JTextField grammarPathField;

    public CorpusTweakerPanel(Corpus corpus) {
        this.corpus = corpus;
        init();
    }

    private void init(){
        Box toolbar = Box.createHorizontalBox();

        JLabel label = new JLabel("Mdl meter analyzer grammar path: ");
        toolbar.add(label);

        String currentPath = corpus.getGlobalProperty("mdlMeterAnalyzerGrammarPath");
        if( currentPath == null ) {
            grammarPathField = new JTextField();
        } else {
            grammarPathField = new JTextField(currentPath);
        }
        grammarPathField.addCaretListener(new CaretListener() {
            public void caretUpdate(CaretEvent e) {
            try {
                corpus.setGlobalProperty( MetricIndex.MDL_ANLYZER_GRAMMAR_PATH_PROPERTY_NAME, grammarPathField.getText() );
            } catch (CorpusException e1) {
                e1.printStackTrace();
            }
            }
        });
        grammarPathField.setPreferredSize(new Dimension(150, grammarPathField.getPreferredSize().height));

        toolbar.add(grammarPathField);
        this.add(toolbar);
    }
}


text:
/**
 * @file hw_sys.h
 * Indicates HW System Interface Functions
 */
#ifndef _HW_SYS_H_
#define _HW_SYS_H_

#include "hw_errcode.h"
#include "hw_broadcast.h"
#include "hw_type.h"
#include "hw_log.h"
#include "hw_cfg.h"

#ifdef __cplusplus
extern "C" {
#endif

HW_API_FUNC HW_INT HW_SysInit(HW_CHAR *pcWorkPath, HW_CHAR *pcLogFileName, HW_CHAR *pcVersion);
HW_API_FUNC HW_VOID HW_SysDestroy();
HW_API_FUNC HW_VOID HW_Sleep(HW_UINT uiSeconds);

#ifdef __cplusplus
}
#endif

#endif


text:
package org.openkilda.utility;

import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;

public final class JsonUtil {

	private static ObjectMapper mapper = new ObjectMapper();

	private JsonUtil() {
	}

	/**
     * To json string.
     *
     * @param obj the obj
     * @return the string
	 * @throws JsonProcessingException
     */
    public static String toString(final Object obj) throws JsonProcessingException {
        return mapper.writeValueAsString(obj);
    }

    public static <T> T toObject(final String data, final Class<T> objClass) throws JsonParseException, JsonMappingException, IOException {
        return mapper.readValue(data, objClass);
    }
}


text:
<?php

namespace Theme\TheWright\App\Controllers;

use Illuminate\Http\Request;
use App\Libs\Controller;

class StartController extends Controller{

	public function index(){
		dd("It's a theme controller!");
	}

}


text:
namespace Travel.Core.IO.Contracts
{
	public interface IReader
	{
		string ReadLine();
	}
}


text:
package cn.edu.tju.ina.estuary.doc.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
public @interface Export {
	String value() default "";
}


text:
messaging-demo
==============

- Example gradle project with
- unit, integration and functional tests
- Spring boot acatuator
- Embedded Tomcat
- In memory h2 database using spring JPA
- Swagger documentation

Run It

```
./gradlew clean build bootRun
```

```
http://localhost:8080/
```


text:
describe('object module', function() {

	var module;

	beforeEach(function() {
		module = testr('obj');
	});

	it('returns obj defined module', function() {
		expect(module.objectDef).toBe(true);
	});

	it('avoids pollution', function() {
		module.polluted = true;
		module = testr('obj');
		expect(module.polluted).toBeUndefined();
	});

	it('avoids pollution on an array', function() {
		module.array.push(4);
		expect(module.array).toEqual([1, 2, 3, 4]);
		module = testr('obj');
		expect(module.array).toEqual([1, 2, 3]);
	});

});


text:
package gov.nih.nci.cagrid.portal.portlet.diagnostics;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;
import org.directwebremoting.annotations.RemoteMethod;

import java.util.HashMap;

import gov.nih.nci.cagrid.portal.portlet.AjaxViewGenerator;

/**
 * User: kherm
 *
 * @author kherm manav.kher@semanticbits.com
 */
public abstract class AbstractDiagnosticService extends AjaxViewGenerator implements DiagnosticServiceI {

    protected final Log logger = LogFactory.getLog(getClass().getName());

    @RemoteMethod
    public String diagnose(String Url) throws Exception {
        WebContext webContext = WebContextFactory.get();

        final DiagnosticResult _result = diagnoseInternal(Url);
        final DiagnosticType _type = _result.getType();

        return super.getView("/WEB-INF/jsp/diagnostics/result_" + _type.toString() + ".jsp" ,
                new HashMap<String,Object>(){{put("result", _result);}});
    }

    /**
     * Subclasses need to implement this method and return a diagnostic result
     *
     * @param Url
     * @return
     */
    protected abstract DiagnosticResult diagnoseInternal(String Url) throws Exception;
}


text:
'use strict';

import type { Fiber } from 'ReactFiber';
import type { FiberRoot } from 'ReactFiberRoot';
import type { TypeOfWork } from 'ReactTypeOfWork';
import type { PriorityLevel } from 'ReactPriorityLevel';

var { createFiberRoot } = require('ReactFiberRoot');
var ReactFiberScheduler = require('ReactFiberScheduler');

type Deadline = {
  timeRemaining : () => number
};

type HostChildNode<I> = { tag: TypeOfWork, output: HostChildren<I>, sibling: any };

export type HostChildren<I> = null | void | I | HostChildNode<I>;

export type HostConfig<T, P, I, C> = {

  // TODO: We don't currently have a quick way to detect that children didn't
  // reorder so we host will always need to check the set. We should make a flag
  // or something so that it can bailout easily.

  updateContainer(containerInfo : C, children : HostChildren<I>) : void;

  createInstance(type : T, props : P, children : HostChildren<I>) : I,
  prepareUpdate(instance : I, oldProps : P, newProps : P, children : HostChildren<I>) : boolean,
  commitUpdate(instance : I, oldProps : P, newProps : P, children : HostChildren<I>) : void,
  deleteInstance(instance : I) : void,

  scheduleAnimationCallback(callback : () => void) : void,
  scheduleDeferredCallback(callback : (deadline : Deadline) => void) : void

};

type OpaqueNode = Fiber;

export type Reconciler<C> = {
  mountContainer(element : ReactElement<any>, containerInfo : C) : OpaqueNode,
  updateContainer(element : ReactElement<any>, container : OpaqueNode) : void,
  unmountContainer(container : OpaqueNode) : void,
  performWithPriority(priorityLevel : PriorityLevel, fn : Function) : void,

  // Used to extract the return value from the initial render. Legacy API.
  getPublicRootInstance(container : OpaqueNode) : (C | null),
};

module.exports = function<T, P, I, C>(config : HostConfig<T, P, I, C>) : Reconciler<C> {

  var { scheduleWork, performWithPriority } = ReactFiberScheduler(config);

  return {

    mountContainer(element : ReactElement<any>, containerInfo : C) : OpaqueNode {
      const root = createFiberRoot(containerInfo);
      const container = root.current;
      // TODO: Use pending work/state instead of props.
      // TODO: This should not override the pendingWorkPriority if there is
      // higher priority work in the subtree.
      container.pendingProps = element;

      scheduleWork(root);

      // It may seem strange that we don't return the root here, but that will
      // allow us to have containers that are in the middle of the tree instead
      // of being roots.
      return container;
    },

    updateContainer(element : ReactElement<any>, container : OpaqueNode) : void {
      // TODO: If this is a nested container, this won't be the root.
      const root : FiberRoot = (container.stateNode : any);
      // TODO: Use pending work/state instead of props.
      root.current.pendingProps = element;

      scheduleWork(root);
    },

    unmountContainer(container : OpaqueNode) : void {
      // TODO: If this is a nested container, this won't be the root.
      const root : FiberRoot = (container.stateNode : any);
      // TODO: Use pending work/state instead of props.
      root.current.pendingProps = [];

      scheduleWork(root);
    },

    performWithPriority,

    getPublicRootInstance(container : OpaqueNode) : (C | null) {
      return null;
    },

  };

};


text:
package org.zalando.jenkins.multibranch;

import java.io.IOException;
import java.util.List;

import javax.annotation.Nullable;

import com.google.common.collect.ImmutableSortedSet;

public interface SubProjectRepository<P> extends SubProjectFactory<P>, BranchAgeListener{

	ImmutableSortedSet<SubProject<P>> getProjects();

	ImmutableSortedSet<BranchId> getBranches();

List<P> getDelegates();

SubProject<P> getProject(final BranchId branch) throws ProjectDoesNotExixtException;

@Nullable
SubProject<P> getOptionalProject(final BranchId branch);

void delete(final BranchId project) throws IOException, InterruptedException, ProjectDoesNotExixtException;

public void ensureInitialized();

public static final class ProjectDoesNotExixtException extends Exception{
	private static final long serialVersionUID = -3355036226913409225L;
	public ProjectDoesNotExixtException(final String message) {
		super(message);
	}
}

}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">

<TITLE>
Xerces2 Implementation: Class  SchemaSymbols
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
    Class
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  SUMMARY:  INNER | FIELD | CONSTR | METHOD

DETAIL:  FIELD | CONSTR | METHOD

org.apache.xerces.impl.xs

Class  SchemaSymbols

java.lang.Object
  |
  +--org.apache.xerces.impl.xs.SchemaSymbols

public final class SchemaSymbols
extends java.lang.Object

Collection of symbols used to parse a Schema Grammar.

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.

Version:
$Id: SchemaSymbols.java 446734 2006-09-15 20:51:23Z mrglavas $

Author:
jeffrey rodriguez

Field Summary

static java.lang.String
ATT_ABSTRACT

static java.lang.String
ATT_ATTRIBUTEFORMDEFAULT

static java.lang.String
ATT_BASE

static java.lang.String
ATT_BLOCK

static java.lang.String
ATT_BLOCKDEFAULT

static java.lang.String
ATT_DEFAULT

static java.lang.String
ATT_ELEMENTFORMDEFAULT

static java.lang.String
ATT_FINAL

static java.lang.String
ATT_FINALDEFAULT

static java.lang.String
ATT_FIXED

static java.lang.String
ATT_FORM

static java.lang.String
ATT_ID

static java.lang.String
ATT_ITEMTYPE

static java.lang.String
ATT_MAXOCCURS

static java.lang.String
ATT_MEMBERTYPES

static java.lang.String
ATT_MINOCCURS

static java.lang.String
ATT_MIXED

static java.lang.String
ATT_NAME

static java.lang.String
ATT_NAMESPACE

static java.lang.String
ATT_NILLABLE

static java.lang.String
ATT_PROCESSCONTENTS

static java.lang.String
ATT_PUBLIC

static java.lang.String
ATT_REF

static java.lang.String
ATT_REFER

static java.lang.String
ATT_SCHEMALOCATION

static java.lang.String
ATT_SOURCE

static java.lang.String
ATT_SUBSTITUTIONGROUP

static java.lang.String
ATT_SYSTEM

static java.lang.String
ATT_TARGETNAMESPACE

static java.lang.String
ATT_TYPE

static java.lang.String
ATT_USE

static java.lang.String
ATT_VALUE

static java.lang.String
ATT_VERSION

static java.lang.String
ATT_XML_LANG

static java.lang.String
ATT_XPATH

static java.lang.String
ATTVAL_ANYSIMPLETYPE

static java.lang.String
ATTVAL_ANYTYPE

static java.lang.String
ATTVAL_ANYURI

static java.lang.String
ATTVAL_BASE64BINARY

static java.lang.String
ATTVAL_BOOLEAN

static java.lang.String
ATTVAL_BYTE

static java.lang.String
ATTVAL_COLLAPSE

static java.lang.String
ATTVAL_DATE

static java.lang.String
ATTVAL_DATETIME

static java.lang.String
ATTVAL_DAY

static java.lang.String
ATTVAL_DECIMAL

static java.lang.String
ATTVAL_DOUBLE

static java.lang.String
ATTVAL_DURATION

static java.lang.String
ATTVAL_ENTITIES

static java.lang.String
ATTVAL_ENTITY

static java.lang.String
ATTVAL_EXTENSION

static java.lang.String
ATTVAL_FALSE

static java.lang.String
ATTVAL_FALSE_0

static java.lang.String
ATTVAL_FLOAT

static java.lang.String
ATTVAL_HEXBINARY

static java.lang.String
ATTVAL_ID

static java.lang.String
ATTVAL_IDREF

static java.lang.String
ATTVAL_IDREFS

static java.lang.String
ATTVAL_INT

static java.lang.String
ATTVAL_INTEGER

static java.lang.String
ATTVAL_LANGUAGE

static java.lang.String
ATTVAL_LAX

static java.lang.String
ATTVAL_LIST

static java.lang.String
ATTVAL_LONG

static java.lang.String
ATTVAL_MONTH

static java.lang.String
ATTVAL_MONTHDAY

static java.lang.String
ATTVAL_NAME

static java.lang.String
ATTVAL_NCNAME

static java.lang.String
ATTVAL_NEGATIVEINTEGER

static java.lang.String
ATTVAL_NMTOKEN

static java.lang.String
ATTVAL_NMTOKENS

static java.lang.String
ATTVAL_NONNEGATIVEINTEGER

static java.lang.String
ATTVAL_NONPOSITIVEINTEGER

static java.lang.String
ATTVAL_NORMALIZEDSTRING

static java.lang.String
ATTVAL_NOTATION

static java.lang.String
ATTVAL_OPTIONAL

static java.lang.String
ATTVAL_POSITIVEINTEGER

static java.lang.String
ATTVAL_POUNDALL

static java.lang.String
ATTVAL_PRESERVE

static java.lang.String
ATTVAL_PROHIBITED

static java.lang.String
ATTVAL_QNAME

static java.lang.String
ATTVAL_QUALIFIED

static java.lang.String
ATTVAL_REPLACE

static java.lang.String
ATTVAL_REQUIRED

static java.lang.String
ATTVAL_RESTRICTION

static java.lang.String
ATTVAL_SHORT

static java.lang.String
ATTVAL_SKIP

static java.lang.String
ATTVAL_STRICT

static java.lang.String
ATTVAL_STRING

static java.lang.String
ATTVAL_SUBSTITUTION

static java.lang.String
ATTVAL_TIME

static java.lang.String
ATTVAL_TOKEN

static java.lang.String
ATTVAL_TRUE

static java.lang.String
ATTVAL_TRUE_1

static java.lang.String
ATTVAL_TWOPOUNDANY

static java.lang.String
ATTVAL_TWOPOUNDLOCAL

static java.lang.String
ATTVAL_TWOPOUNDOTHER

static java.lang.String
ATTVAL_TWOPOUNDTARGETNS

static java.lang.String
ATTVAL_UNBOUNDED

static java.lang.String
ATTVAL_UNION

static java.lang.String
ATTVAL_UNQUALIFIED

static java.lang.String
ATTVAL_UNSIGNEDBYTE

static java.lang.String
ATTVAL_UNSIGNEDINT

static java.lang.String
ATTVAL_UNSIGNEDLONG

static java.lang.String
ATTVAL_UNSIGNEDSHORT

static java.lang.String
ATTVAL_YEAR

static java.lang.String
ATTVAL_YEARMONTH

static java.lang.String
ELT_ALL

static java.lang.String
ELT_ANNOTATION

static java.lang.String
ELT_ANY

static java.lang.String
ELT_ANYATTRIBUTE

static java.lang.String
ELT_APPINFO

static java.lang.String
ELT_ATTRIBUTE

static java.lang.String
ELT_ATTRIBUTEGROUP

static java.lang.String
ELT_CHOICE

static java.lang.String
ELT_COMPLEXCONTENT

static java.lang.String
ELT_COMPLEXTYPE

static java.lang.String
ELT_DOCUMENTATION

static java.lang.String
ELT_ELEMENT

static java.lang.String
ELT_ENUMERATION

static java.lang.String
ELT_EXTENSION

static java.lang.String
ELT_FIELD

static java.lang.String
ELT_FRACTIONDIGITS

static java.lang.String
ELT_GROUP

static java.lang.String
ELT_IMPORT

static java.lang.String
ELT_INCLUDE

static java.lang.String
ELT_KEY

static java.lang.String
ELT_KEYREF

static java.lang.String
ELT_LENGTH

static java.lang.String
ELT_LIST

static java.lang.String
ELT_MAXEXCLUSIVE

static java.lang.String
ELT_MAXINCLUSIVE

static java.lang.String
ELT_MAXLENGTH

static java.lang.String
ELT_MINEXCLUSIVE

static java.lang.String
ELT_MININCLUSIVE

static java.lang.String
ELT_MINLENGTH

static java.lang.String
ELT_NOTATION

static java.lang.String
ELT_PATTERN

static java.lang.String
ELT_REDEFINE

static java.lang.String
ELT_RESTRICTION

static java.lang.String
ELT_SCHEMA

static java.lang.String
ELT_SELECTOR

static java.lang.String
ELT_SEQUENCE

static java.lang.String
ELT_SIMPLECONTENT

static java.lang.String
ELT_SIMPLETYPE

static java.lang.String
ELT_TOTALDIGITS

static java.lang.String
ELT_UNION

static java.lang.String
ELT_UNIQUE

static java.lang.String
ELT_WHITESPACE

static short
FORM_QUALIFIED

static short
FORM_UNQUALIFIED

static int
OCCURRENCE_UNBOUNDED

static java.lang.String
URI_SCHEMAFORSCHEMA

static java.lang.String
URI_XSI

static short
USE_OPTIONAL

static short
USE_PROHIBITED

static short
USE_REQUIRED

static java.lang.String
XSI_NIL

static java.lang.String
XSI_NONAMESPACESCHEMALOCATION

static java.lang.String
XSI_SCHEMALOCATION

static java.lang.String
XSI_TYPE

Constructor Summary

SchemaSymbols()

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

URI_XSI

public static final java.lang.String URI_XSI

XSI_SCHEMALOCATION

public static final java.lang.String XSI_SCHEMALOCATION

XSI_NONAMESPACESCHEMALOCATION

public static final java.lang.String XSI_NONAMESPACESCHEMALOCATION

XSI_TYPE

public static final java.lang.String XSI_TYPE

XSI_NIL

public static final java.lang.String XSI_NIL

URI_SCHEMAFORSCHEMA

public static final java.lang.String URI_SCHEMAFORSCHEMA

ELT_ALL

public static final java.lang.String ELT_ALL

ELT_ANNOTATION

public static final java.lang.String ELT_ANNOTATION

ELT_ANY

public static final java.lang.String ELT_ANY

ELT_ANYATTRIBUTE

public static final java.lang.String ELT_ANYATTRIBUTE

ELT_APPINFO

public static final java.lang.String ELT_APPINFO

ELT_ATTRIBUTE

public static final java.lang.String ELT_ATTRIBUTE

ELT_ATTRIBUTEGROUP

public static final java.lang.String ELT_ATTRIBUTEGROUP

ELT_CHOICE

public static final java.lang.String ELT_CHOICE

ELT_COMPLEXCONTENT

public static final java.lang.String ELT_COMPLEXCONTENT

ELT_COMPLEXTYPE

public static final java.lang.String ELT_COMPLEXTYPE

ELT_DOCUMENTATION

public static final java.lang.String ELT_DOCUMENTATION

ELT_ELEMENT

public static final java.lang.String ELT_ELEMENT

ELT_ENUMERATION

public static final java.lang.String ELT_ENUMERATION

ELT_EXTENSION

public static final java.lang.String ELT_EXTENSION

ELT_FIELD

public static final java.lang.String ELT_FIELD

ELT_FRACTIONDIGITS

public static final java.lang.String ELT_FRACTIONDIGITS

ELT_GROUP

public static final java.lang.String ELT_GROUP

ELT_IMPORT

public static final java.lang.String ELT_IMPORT

ELT_INCLUDE

public static final java.lang.String ELT_INCLUDE

ELT_KEY

public static final java.lang.String ELT_KEY

ELT_KEYREF

public static final java.lang.String ELT_KEYREF

ELT_LENGTH

public static final java.lang.String ELT_LENGTH

ELT_LIST

public static final java.lang.String ELT_LIST

ELT_MAXEXCLUSIVE

public static final java.lang.String ELT_MAXEXCLUSIVE

ELT_MAXINCLUSIVE

public static final java.lang.String ELT_MAXINCLUSIVE

ELT_MAXLENGTH

public static final java.lang.String ELT_MAXLENGTH

ELT_MINEXCLUSIVE

public static final java.lang.String ELT_MINEXCLUSIVE

ELT_MININCLUSIVE

public static final java.lang.String ELT_MININCLUSIVE

ELT_MINLENGTH

public static final java.lang.String ELT_MINLENGTH

ELT_NOTATION

public static final java.lang.String ELT_NOTATION

ELT_PATTERN

public static final java.lang.String ELT_PATTERN

ELT_REDEFINE

public static final java.lang.String ELT_REDEFINE

ELT_RESTRICTION

public static final java.lang.String ELT_RESTRICTION

ELT_SCHEMA

public static final java.lang.String ELT_SCHEMA

ELT_SELECTOR

public static final java.lang.String ELT_SELECTOR

ELT_SEQUENCE

public static final java.lang.String ELT_SEQUENCE

ELT_SIMPLECONTENT

public static final java.lang.String ELT_SIMPLECONTENT

ELT_SIMPLETYPE

public static final java.lang.String ELT_SIMPLETYPE

ELT_TOTALDIGITS

public static final java.lang.String ELT_TOTALDIGITS

ELT_UNION

public static final java.lang.String ELT_UNION

ELT_UNIQUE

public static final java.lang.String ELT_UNIQUE

ELT_WHITESPACE

public static final java.lang.String ELT_WHITESPACE

ATT_ABSTRACT

public static final java.lang.String ATT_ABSTRACT

ATT_ATTRIBUTEFORMDEFAULT

public static final java.lang.String ATT_ATTRIBUTEFORMDEFAULT

ATT_BASE

public static final java.lang.String ATT_BASE

ATT_BLOCK

public static final java.lang.String ATT_BLOCK

ATT_BLOCKDEFAULT

public static final java.lang.String ATT_BLOCKDEFAULT

ATT_DEFAULT

public static final java.lang.String ATT_DEFAULT

ATT_ELEMENTFORMDEFAULT

public static final java.lang.String ATT_ELEMENTFORMDEFAULT

ATT_FINAL

public static final java.lang.String ATT_FINAL

ATT_FINALDEFAULT

public static final java.lang.String ATT_FINALDEFAULT

ATT_FIXED

public static final java.lang.String ATT_FIXED

ATT_FORM

public static final java.lang.String ATT_FORM

ATT_ID

public static final java.lang.String ATT_ID

ATT_ITEMTYPE

public static final java.lang.String ATT_ITEMTYPE

ATT_MAXOCCURS

public static final java.lang.String ATT_MAXOCCURS

ATT_MEMBERTYPES

public static final java.lang.String ATT_MEMBERTYPES

ATT_MINOCCURS

public static final java.lang.String ATT_MINOCCURS

ATT_MIXED

public static final java.lang.String ATT_MIXED

ATT_NAME

public static final java.lang.String ATT_NAME

ATT_NAMESPACE

public static final java.lang.String ATT_NAMESPACE

ATT_NILLABLE

public static final java.lang.String ATT_NILLABLE

ATT_PROCESSCONTENTS

public static final java.lang.String ATT_PROCESSCONTENTS

ATT_REF

public static final java.lang.String ATT_REF

ATT_REFER

public static final java.lang.String ATT_REFER

ATT_SCHEMALOCATION

public static final java.lang.String ATT_SCHEMALOCATION

ATT_SOURCE

public static final java.lang.String ATT_SOURCE

ATT_SUBSTITUTIONGROUP

public static final java.lang.String ATT_SUBSTITUTIONGROUP

ATT_SYSTEM

public static final java.lang.String ATT_SYSTEM

ATT_PUBLIC

public static final java.lang.String ATT_PUBLIC

ATT_TARGETNAMESPACE

public static final java.lang.String ATT_TARGETNAMESPACE

ATT_TYPE

public static final java.lang.String ATT_TYPE

ATT_USE

public static final java.lang.String ATT_USE

ATT_VALUE

public static final java.lang.String ATT_VALUE

ATT_VERSION

public static final java.lang.String ATT_VERSION

ATT_XML_LANG

public static final java.lang.String ATT_XML_LANG

ATT_XPATH

public static final java.lang.String ATT_XPATH

ATTVAL_TWOPOUNDANY

public static final java.lang.String ATTVAL_TWOPOUNDANY

ATTVAL_TWOPOUNDLOCAL

public static final java.lang.String ATTVAL_TWOPOUNDLOCAL

ATTVAL_TWOPOUNDOTHER

public static final java.lang.String ATTVAL_TWOPOUNDOTHER

ATTVAL_TWOPOUNDTARGETNS

public static final java.lang.String ATTVAL_TWOPOUNDTARGETNS

ATTVAL_POUNDALL

public static final java.lang.String ATTVAL_POUNDALL

ATTVAL_FALSE_0

public static final java.lang.String ATTVAL_FALSE_0

ATTVAL_TRUE_1

public static final java.lang.String ATTVAL_TRUE_1

ATTVAL_ANYSIMPLETYPE

public static final java.lang.String ATTVAL_ANYSIMPLETYPE

ATTVAL_ANYTYPE

public static final java.lang.String ATTVAL_ANYTYPE

ATTVAL_ANYURI

public static final java.lang.String ATTVAL_ANYURI

ATTVAL_BASE64BINARY

public static final java.lang.String ATTVAL_BASE64BINARY

ATTVAL_BOOLEAN

public static final java.lang.String ATTVAL_BOOLEAN

ATTVAL_BYTE

public static final java.lang.String ATTVAL_BYTE

ATTVAL_COLLAPSE

public static final java.lang.String ATTVAL_COLLAPSE

ATTVAL_DATE

public static final java.lang.String ATTVAL_DATE

ATTVAL_DATETIME

public static final java.lang.String ATTVAL_DATETIME

ATTVAL_DAY

public static final java.lang.String ATTVAL_DAY

ATTVAL_DECIMAL

public static final java.lang.String ATTVAL_DECIMAL

ATTVAL_DOUBLE

public static final java.lang.String ATTVAL_DOUBLE

ATTVAL_DURATION

public static final java.lang.String ATTVAL_DURATION

ATTVAL_ENTITY

public static final java.lang.String ATTVAL_ENTITY

ATTVAL_ENTITIES

public static final java.lang.String ATTVAL_ENTITIES

ATTVAL_EXTENSION

public static final java.lang.String ATTVAL_EXTENSION

ATTVAL_FALSE

public static final java.lang.String ATTVAL_FALSE

ATTVAL_FLOAT

public static final java.lang.String ATTVAL_FLOAT

ATTVAL_HEXBINARY

public static final java.lang.String ATTVAL_HEXBINARY

ATTVAL_ID

public static final java.lang.String ATTVAL_ID

ATTVAL_IDREF

public static final java.lang.String ATTVAL_IDREF

ATTVAL_IDREFS

public static final java.lang.String ATTVAL_IDREFS

ATTVAL_INT

public static final java.lang.String ATTVAL_INT

ATTVAL_INTEGER

public static final java.lang.String ATTVAL_INTEGER

ATTVAL_LANGUAGE

public static final java.lang.String ATTVAL_LANGUAGE

ATTVAL_LAX

public static final java.lang.String ATTVAL_LAX

ATTVAL_LIST

public static final java.lang.String ATTVAL_LIST

ATTVAL_LONG

public static final java.lang.String ATTVAL_LONG

ATTVAL_NAME

public static final java.lang.String ATTVAL_NAME

ATTVAL_NEGATIVEINTEGER

public static final java.lang.String ATTVAL_NEGATIVEINTEGER

ATTVAL_MONTH

public static final java.lang.String ATTVAL_MONTH

ATTVAL_MONTHDAY

public static final java.lang.String ATTVAL_MONTHDAY

ATTVAL_NCNAME

public static final java.lang.String ATTVAL_NCNAME

ATTVAL_NMTOKEN

public static final java.lang.String ATTVAL_NMTOKEN

ATTVAL_NMTOKENS

public static final java.lang.String ATTVAL_NMTOKENS

ATTVAL_NONNEGATIVEINTEGER

public static final java.lang.String ATTVAL_NONNEGATIVEINTEGER

ATTVAL_NONPOSITIVEINTEGER

public static final java.lang.String ATTVAL_NONPOSITIVEINTEGER

ATTVAL_NORMALIZEDSTRING

public static final java.lang.String ATTVAL_NORMALIZEDSTRING

ATTVAL_NOTATION

public static final java.lang.String ATTVAL_NOTATION

ATTVAL_OPTIONAL

public static final java.lang.String ATTVAL_OPTIONAL

ATTVAL_POSITIVEINTEGER

public static final java.lang.String ATTVAL_POSITIVEINTEGER

ATTVAL_PRESERVE

public static final java.lang.String ATTVAL_PRESERVE

ATTVAL_PROHIBITED

public static final java.lang.String ATTVAL_PROHIBITED

ATTVAL_QNAME

public static final java.lang.String ATTVAL_QNAME

ATTVAL_QUALIFIED

public static final java.lang.String ATTVAL_QUALIFIED

ATTVAL_REPLACE

public static final java.lang.String ATTVAL_REPLACE

ATTVAL_REQUIRED

public static final java.lang.String ATTVAL_REQUIRED

ATTVAL_RESTRICTION

public static final java.lang.String ATTVAL_RESTRICTION

ATTVAL_SHORT

public static final java.lang.String ATTVAL_SHORT

ATTVAL_SKIP

public static final java.lang.String ATTVAL_SKIP

ATTVAL_STRICT

public static final java.lang.String ATTVAL_STRICT

ATTVAL_STRING

public static final java.lang.String ATTVAL_STRING

ATTVAL_SUBSTITUTION

public static final java.lang.String ATTVAL_SUBSTITUTION

ATTVAL_TIME

public static final java.lang.String ATTVAL_TIME

ATTVAL_TOKEN

public static final java.lang.String ATTVAL_TOKEN

ATTVAL_TRUE

public static final java.lang.String ATTVAL_TRUE

ATTVAL_UNBOUNDED

public static final java.lang.String ATTVAL_UNBOUNDED

ATTVAL_UNION

public static final java.lang.String ATTVAL_UNION

ATTVAL_UNQUALIFIED

public static final java.lang.String ATTVAL_UNQUALIFIED

ATTVAL_UNSIGNEDBYTE

public static final java.lang.String ATTVAL_UNSIGNEDBYTE

ATTVAL_UNSIGNEDINT

public static final java.lang.String ATTVAL_UNSIGNEDINT

ATTVAL_UNSIGNEDLONG

public static final java.lang.String ATTVAL_UNSIGNEDLONG

ATTVAL_UNSIGNEDSHORT

public static final java.lang.String ATTVAL_UNSIGNEDSHORT

ATTVAL_YEAR

public static final java.lang.String ATTVAL_YEAR

ATTVAL_YEARMONTH

public static final java.lang.String ATTVAL_YEARMONTH

FORM_UNQUALIFIED

public static final short FORM_UNQUALIFIED

FORM_QUALIFIED

public static final short FORM_QUALIFIED

USE_OPTIONAL

public static final short USE_OPTIONAL

USE_REQUIRED

public static final short USE_REQUIRED

USE_PROHIBITED

public static final short USE_PROHIBITED

OCCURRENCE_UNBOUNDED

public static final int OCCURRENCE_UNBOUNDED

Constructor Detail

SchemaSymbols

public SchemaSymbols()

      Overview
      Package
    Class
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  SUMMARY:  INNER | FIELD | CONSTR | METHOD

DETAIL:  FIELD | CONSTR | METHOD

Copyright © 1999-2007 The Apache Software Foundation. All Rights Reserved.


text:
package tdb ;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List ;

import org.apache.jena.atlas.lib.ListUtils;
import org.apache.jena.cmd.ArgDecl;
import org.apache.jena.cmd.CmdException;
import org.apache.jena.query.ARQ ;
import org.apache.jena.riot.Lang ;
import org.apache.jena.riot.RDFLanguages ;
import org.apache.jena.tdb.TDB ;
import org.apache.jena.tdb.TDBLoader ;
import org.apache.jena.tdb.store.GraphTDB;
import org.apache.jena.util.FileUtils;
import tdb.cmdline.CmdTDB ;
import tdb.cmdline.CmdTDBGraph ;

public class tdbloader extends CmdTDBGraph {
    private static final ArgDecl argNoStats = new ArgDecl(ArgDecl.NoValue, "nostats") ;
    private static final ArgDecl argStats = new ArgDecl(ArgDecl.HasValue,  "stats") ;
    private static final ArgDecl argSyntax  = new ArgDecl(ArgDecl.HasValue, "syntax") ;

    private boolean showProgress   = true ;
    private boolean generateStats  = true ;
    private Lang    lang           = null;

    static public void main(String... argv) {
        CmdTDB.init() ;
        TDB.setOptimizerWarningFlag(false) ;
        new tdbloader(argv).mainRun() ;
    }

    protected tdbloader(String[] argv) {
        super(argv) ;
//        super.getUsage().startCategory("Stats") ;
        super.add(argNoStats, "--nostats",     "Switch off statistics gathering") ;
        super.add(argSyntax,  "--syntax=LANG", "Syntax of data from stdin");
        super.add(argStats) ;   // Hidden argument
    }

    @Override
    protected void processModulesAndArgs() {
        super.processModulesAndArgs() ;
        if ( super.contains(argSyntax) ) {
            String syntax = super.getValue(argSyntax) ;
            Lang lang$ = RDFLanguages.nameToLang(syntax) ;
            if ( lang$ == null )
                throw new CmdException("Can not detemine the syntax from '" + syntax + "'") ;
            this.lang = lang$ ;
        }
    }

    @Override
    protected String getSummary() {
        return getCommandName() + " [--desc DATASET | -loc DIR] FILE ..." ;
    }

    @Override
    protected void exec() {
        if ( isVerbose() ) {
            System.out.println("Java maximum memory: " + Runtime.getRuntime().maxMemory()) ;
            System.out.println(ARQ.getContext()) ;
        }
        if ( isVerbose() )
            showProgress = true ;
        if ( isQuiet() )
            showProgress = false ;
        if ( super.contains(argStats) ) {
            if ( ! hasValueOfTrue(argStats) && ! hasValueOfFalse(argStats) )
                throw new CmdException("Not a boolean value: "+getValue(argStats)) ;
            generateStats = super.hasValueOfTrue(argStats) ;
        }

        if ( super.contains(argNoStats))
            generateStats = false ;

        List<String> urls = getPositional();
        if ( urls.size() != 0 )
            checkFiles(urls);

        if ( graphName == null ) {
            if ( urls.size() == 0 ) {
                checkFiles(urls);
                loadQuadsStdin();
            } else {
                loadQuads(urls);
            }
            return;
        }

        // There's a --graph.
        // Check/warn that there are no quads formats mentioned

        for ( String url : urls ) {
            Lang lang = RDFLanguages.filenameToLang(url);
            if ( lang != null && RDFLanguages.isQuads(lang) ) {
                throw new CmdException("Warning: Quads format given - only the default graph is loaded into the graph for --graph");
            }
        }

        loadNamedGraph(urls) ;
    }

    // Check files exists before starting.
    private void checkFiles(List<String> urls) {
        List<String> problemFiles =
            ListUtils.toList(
                urls.stream()
                .filter(u->FileUtils.isFile(u))
                // Only check local files.
                .map(Paths::get)
                .filter(p-> !Files.exists(p) || !Files.isRegularFile(p /*follow links*/) || !Files.isReadable(p) )
                .map(Path::toString)
                );
        if ( ! problemFiles.isEmpty() ) {
            String str = String.join(", ", problemFiles);
            throw new CmdException("Can't read files : "+str);
        }
    }

//    void loadDefaultGraph(List<String> urls) {
//        GraphTDB graph = getGraph() ;
//        TDBLoader.load(graph, urls, showProgress) ;
//        return ;
//    }

    void loadNamedGraph(List<String> urls) {
        GraphTDB graph = getGraph() ;
        TDBLoader.load(graph, urls, showProgress) ;
        return ;
    }

    void loadQuads(List<String> urls) {
        TDBLoader.load(getDatasetGraphTDB(), urls, showProgress, generateStats) ;
        return ;
    }

    private void loadQuadsStdin() {
        TDBLoader.load(getDatasetGraphTDB(), System.in, lang, showProgress, generateStats) ;
    }
}


text:
shared_examples_for 'supporting Boolean' do

  before :all do
    setup_test_environment
  end

  before do
    @connection = DataObjects::Connection.new(CONFIG.uri)
  end

  after do
    @connection.close
  end

  describe 'reading a Boolean' do

    describe 'with manual typecasting' do

      before do
        @command = @connection.create_command("SELECT flags FROM widgets WHERE ad_description = ?")
        @command.set_types(TrueClass)
        @reader = @command.execute_reader('Buy this product now!')
        @reader.next!
        @values = @reader.values
      end

      after do
        @reader.close
      end

      it 'should return the correctly typed result' do
        @values.first.should be_kind_of(FalseClass)
      end

      it 'should return the correct result' do
        @values.first.should == false
      end

    end

    describe 'with manual typecasting a true value' do

      before do
        @command = @connection.create_command("SELECT flags FROM widgets WHERE id = ?")
        @command.set_types(TrueClass)
        @reader = @command.execute_reader(2)
        @reader.next!
        @values = @reader.values
      end

      after do
        @reader.close
      end

      it 'should return the correctly typed result' do
        @values.first.should be_kind_of(TrueClass)
      end

      it 'should return the correct result' do
       @values.first.should be_true
      end

    end

    describe 'with manual typecasting a nil value' do

      before do
        @command = @connection.create_command("SELECT flags FROM widgets WHERE id = ?")
        @command.set_types(TrueClass)
        @reader = @command.execute_reader(4)
        @reader.next!
        @values = @reader.values
      end

      after do
        @reader.close
      end

      it 'should return the correctly typed result' do
        @values.first.should be_kind_of(NilClass)
      end

      it 'should return the correct result' do
       @values.first.should be_nil
      end

    end

  end

  describe 'writing an Boolean' do

    before do
      @reader = @connection.create_command("SELECT id FROM widgets WHERE flags = ?").execute_reader(true)
      @reader.next!
      @values = @reader.values
    end

    after do
      @reader.close
    end

    it 'should return the correct entry' do
      @values.first.should == 2
    end

  end

end

shared_examples_for 'supporting Boolean autocasting' do

  before :all do
    setup_test_environment
  end

  before do
    @connection = DataObjects::Connection.new(CONFIG.uri)
  end

  after do
    @connection.close
  end

  describe 'reading a Boolean' do

    describe 'with automatic typecasting' do

      before do
        @reader = @connection.create_command("SELECT flags FROM widgets WHERE ad_description = ?").execute_reader('Buy this product now!')
        @reader.next!
        @values = @reader.values
      end

      after do
        @reader.close
      end

      it 'should return the correctly typed result' do
        @values.first.should be_kind_of(FalseClass)
      end

      it 'should return the correct result' do
        @values.first.should == false
      end

    end

  end

end


text:
function Test-ComputerName {
<#
    .SYNOPSIS
        Validates a computer name is valid.
#>
    [CmdletBinding()]
    [OutputType([System.Boolean])]
    param (
        [Parameter(Mandatory, ValueFromPipeline)]
        [ValidateLength(1, 15)]
        [System.String] $ComputerName
    )
    process {

        $invalidMatch = '[~!@#\$%\^&\*\(\)=\+_\[\]{}\\\|;:.''",<>\/\?\s]';
        return ($ComputerName -inotmatch $invalidMatch);

    }
} #end function


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

	var streaming = false,
		video = document.querySelector('#video'),
		width = 500,
		height = 0,
		ctx = document.querySelector('#canvas').getContext('2d');

	navigator.getMedia = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia);

	navigator.getMedia({video: true, audio: false}, function(stream) {
		if (navigator.mozGetUserMedia) {
			$('#video').mozSrcObject = stream;
		} else {
			var url = window.URL || window.webkitURL;
			$('#video').attr('src', url.createObjectURL(stream));
		}

		video.play();
	}, function(error) {
		console.log('Dun dun dun! ' + error);
	});

	video.addEventListener('canplay', function(e) {
		if (!streaming) {
			height = video.videoHeight / (video.videoWidth/width);

			$('#video').attr({
				width: width,
				height: height
			});

			$('#canvas').attr({
				width: width,
				height: height
			});

			ctx.translate(width, 0);
			ctx.scale(-1, 1);

			streaming = true;
		}
	}, false);

	function takePicture() {
		console.log('Picture taken!');

		ctx.drawImage(video, 0, 0, width, height);
		$('#image').attr('src', canvas.toDataURL('image/png'));
	}

	$('#capture-button').hover(function() {
		$(this).addClass('hover');
		$('#capture-button .fa').addClass('hover');
	}, function() {
		$(this).removeClass('hover');
		$('#capture-button .fa').removeClass('hover');
	});

	$('#capture-button').click(function() {
		takePicture();
	});

	if (!(navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia)) {
		console.log('User media not supported.');
	}

})();


text:
package com.hive_unit.common;

/**
 * Configuration property names;
 */
public enum PropertyNames {
    HIVE_JAR("hive.jar"), METASTOREWAREHOUSE("hive.metastore.warehouse.dir"), HOST("host"), PORT("port");

    private String propertyName;

    PropertyNames(String propertyName) {
        this.propertyName = propertyName;
    }

    public String toString() {
        return propertyName;
    }
}


text:
<?xml version="1.0" encoding="utf-8" ?>

<Wizard>
	<Global>
		<CustomScript>DeployWiz_AdminPassword.vbs</CustomScript>
	</Global>

	<Pane id="AdministratorPassword" title="Administrator Password">

		<![CDATA[

Specify the Administrator account password.

This password will be used for logging onto the computer after a restart.

		Administrator Password:

		<input type=password id="Password1" name="AdminPassword"  size=20 language=vbscript onchange=ValidatePassword onpropertychange=ValidatePassword>
		* Required (MISSING)

		Confirm Administrator Password:

		<input type=password id="Password2" size=20 language=vbscript onchange=ValidatePassword onpropertychange=ValidatePassword>
		* Passwords do not match!

			]]>

		<Initialization><![CDATA[ Password2.Value = Password1.Value ]]></Initialization>
		<Validation><![CDATA[ValidatePassword]]></Validation>
	</Pane>

</Wizard>


text:
package org.zstack.sdk;

public class DeleteVmNicResult {

}


text:
module UnpackStrategy
  # Strategy for unpacking uncompressed files.
  class Uncompressed
    extend T::Sig

    include UnpackStrategy

    def extract_nestedly(prioritise_extension: false, **options)
      extract(**options)
    end

    private

    sig { override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean).returns(T.untyped) }
    def extract_to_dir(unpack_dir, basename:, verbose:)
      FileUtils.cp path, unpack_dir/basename, preserve: true, verbose: verbose
    end
  end
end


text:
import urllib
import untangle
import xmltodict

query = "http://www.SupermarketAPI.com/api.asmx/COMMERCIAL_SearchByProductName?APIKEY=c9c2055184&ItemName="

def Fetch_Price( prod_name ):
    new_query = query + urllib.parse.quote(prod_name)
    content = urllib.request.urlopen(new_query).read()
    content = str(content)
    content1 = content[2:-1].rstrip("\\r\\n")
    content2 = content1.replace("\\r\\n","")
    obj_dict = xmltodict.parse(content2)
    res = obj_dict['ArrayOfProduct_Commercial']['Product_Commercial'][0]['Pricing']
    print(res)
    return res

#Fetch_Price( "7 Grain Whole Wheat Bread" )


text:
require 'spec_helper'

describe BoxView, "#headers" do
  it 'should raise error when api key is nil' do
    BoxView.api_key = nil
    expect{BoxView.headers}.to raise_error(BoxView::Errors::ApiKeyNotFound)
  end
  it 'should return headers when api key is defined' do
    BoxView.api_key = "a1s2d9d3dg7d7s7"
    expect(BoxView.headers).not_to be_nil
  end
  it 'should return when document id is defined' do
    BoxView.document_id = "slkslkdf234234"
    expect(BoxView.document_id).not_to be_nil
  end
  it 'should raise error when document id is nil' do
    BoxView.document_id = nil
    expect{BoxView.document_id}.to raise_error(BoxView::Errors::DocumentIdNotFound)
  end
  it 'should return when session id is defined' do
    BoxView.session_id = "sfsdf23242332"
    expect(BoxView.session_id).not_to be_nil
  end
  it 'should raise error when session id is nil' do
    BoxView.session_id = nil
    expect{BoxView.session_id}.to raise_error(BoxView::Errors::SessionIdNotFound)
  end
end


text:
 {% include carousel.html %}

							{% for post in paginator.posts %}

									{{ post.date | date: "%b %-d, %Y" }}

										{{ post.title }}

									{{ post.excerpt }}

									{% if post.content | post_contains_excerpt_tag %}
									Read more
									{% endif %}

						{% endfor %}

						{% if paginator.previous_page %}

						  {% if paginator.previous_page == 1 %}

Previous

						  {% else %}

Previous

						  {% endif %}

						{% else %}

Previous

						{% endif %}

						{% if paginator.page == 1 %}

1

						{% else %}

1

						{% endif %}

						{% for count in (2..paginator.total_pages) %}

						  {% if count == paginator.page %}

{{ count }}

						  {% else %}

{{ count }}

						  {% endif %}
						{% endfor %}

						{% if paginator.next_page %}

Next

						{% else %}

Next

						{% endif %}

About
                        All about pictures

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas ultrices porta ultrices. Nulla gravida commodo aliquet. Quisque tincidunt enim quis odio vestibulum, et luctus ipsum lacinia. Cras malesuada sit amet erat vitae porttitor. Duis vitae mollis eros. Vestibulum eget tortor sodales, ullamcorper odio ac, tincidunt felis. Nunc interdum, mauris vitae ornare bibendum, risus libero aliquam ex, cursus feugiat mi libero in nulla. Nullam vel pulvinar ante. Vivamus vitae est aliquet, porttitor eros ut, facilisis erat. Sed malesuada nibh odio, at egestas libero commodo vitae. Integer laoreet lorem ac iaculis fermentum.

Praesent sodales viverra purus non semper. Maecenas eu convallis neque. Integer velit nunc, facilisis vel nisi in, semper pretium lorem. Sed orci est, pellentesque sit amet volutpat a, tristique in leo. Ut at euismod dolor, non laoreet mi. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vestibulum metus lorem, dapibus ut purus ac, bibendum vulputate metus. Sed a lorem enim. Ut in pharetra dui.


text:
package com.github.dockerjava.core.exec;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.github.dockerjava.api.async.ResultCallback;
import com.github.dockerjava.api.command.LogContainerCmd;
import com.github.dockerjava.api.model.Frame;
import com.github.dockerjava.core.DockerClientConfig;
import com.github.dockerjava.core.WebTarget;

public class LogContainerCmdExec extends AbstrAsyncDockerCmdExec<LogContainerCmd, Frame> implements
        LogContainerCmd.Exec {

    private static final Logger LOGGER = LoggerFactory.getLogger(LogContainerCmdExec.class);

    public LogContainerCmdExec(WebTarget baseResource, DockerClientConfig dockerClientConfig) {
        super(baseResource, dockerClientConfig);
    }

    @Override
    protected Void execute0(LogContainerCmd command, ResultCallback<Frame> resultCallback) {

        WebTarget webTarget = getBaseResource().path("/containers/{id}/logs").resolveTemplate("id",
                command.getContainerId());

        if (command.getTail() != null) {
            webTarget = webTarget.queryParam("tail", command.getTail());
        }

        if (command.getSince() != null) {
            webTarget = webTarget.queryParam("since", command.getSince());
        }

        if (command.getUntil() != null) {
            webTarget = webTarget.queryParam("until", command.getUntil());
        }

        webTarget = booleanQueryParam(webTarget, "timestamps", command.hasTimestampsEnabled());
        webTarget = booleanQueryParam(webTarget, "stdout", command.hasStdoutEnabled());
        webTarget = booleanQueryParam(webTarget, "stderr", command.hasStderrEnabled());
        webTarget = booleanQueryParam(webTarget, "follow", command.hasFollowStreamEnabled());

        LOGGER.trace("GET: {}", webTarget);

        webTarget.request().get(resultCallback);

        return null;
    }
}


text:
<?php
/**
 * @license MIT
 * Full license text in LICENSE file
 */

namespace Eadrax\Core\Usecase\Comment;
use Eadrax\Core\Usecase\Comment\Edit\Interactor;
use Eadrax\Core\Usecase\Comment\Edit\Submission;

class Edit
{
    private $data;
    private $repositories;
    private $tools;

    public function __construct(array $data, array $repositories, array $tools)
    {
        $this->data = $data;
        $this->repositories = $repositories;
        $this->tools = $tools;
    }

    public function fetch()
    {
        return new Interactor(
            $this->get_submission()
        );
    }

    private function get_submission()
    {
        return new Submission(
            $this->data['comment'],
            $this->repositories['comment_edit'],
            $this->tools['authenticator'],
            $this->tools['validator']
        );
    }
}


text:
// The header file containing the core logic of handling auto update.

#pragma once
#include "appshell_extensions_platform.h"
#include "include/cef_parser.h"

// Parses the update parameters json from a cef string to a cef dictionary
int32 ParseCommandLineParamsJSON(CefString &updateArgs, CefRefPtr<CefDictionaryValue> &argsDict);

// Sets the command line arguments to the installer on Win and update script on Mac
int32 SetInstallerCommandLineArgs(CefString &updateArgs);

// Runs the app auto update
int32 RunAppUpdate();


text:
define({
  "_widgetLabel": "Navigace",
  "_featureAction_DirectionFrom": "Navigační pokyny odtud",
  "_featureAction_DirectionTo": "Navigační pokyny sem",
  "searchPlaceholder": "Najít adresu nebo místo"
});


text:
Tabs Plugin
===============

>jQuery tabs for use in the Squarespace CMS.

## Usage

1. Copy the tabs.list and tabs.conf files to your collections folder
2. Copy the tabs.less to your style folder
3. Copy the jquery-3-1-1-min.js and custom.js to your scripts folder
  * _If your scripts folder already contains a custom.js, simply copy the code to that file_
4. Add the code from the site.region file to your site's footer, under the main site script call
5. Add the tabs.less, tabs collection and customTypes array to your template.conf as shown in the template.conf file

Preview

![Tab Preview](https://github.com/NowStreamingServices/Sqs-Tabs/blob/master/preview/tabPreview.png "Tab Preview")

### Optional Usage
>To use full width tabs with an underlined heading instead of an image

1. Copy the tabs-underline.list and tabs-underline.conf files to your collections folder
2. Copy the tabs-underline.less to your style folder
3. Copy the jquery-3-1-1-min.js and custom.js to your scripts folder
  * _If your scripts folder already contains a custom.js, simply copy the code to that file_
4. Add the code from the site.region file to your site's footer, under the main site script call
5. Add the tabs-underline.less, tabs-underline collection and customTypes array to your template.conf as shown in the tmeplate.conf file
  * _The tab header image option will have no effect on the underlined tabs navigation_

Preview

![Tab Underline Preview](https://github.com/NowStreamingServices/Sqs-Tabs/blob/master/preview/tabUnderlinePreview.png "Tab Underline Preview")

## Issues

Please report any issues with this plugin using [the issues tab](https://github.com/NowStreamingServices/Sqs-Tabs/issues).

## Legal

This plugin requires the use of [Squarespace Developer Mode](https://developers.squarespace.com/quick-start/) and is subject to their [Developer Terms of Use](https://developers.squarespace.com/developer-terms-of-use).


text:
Этот компонент позволяет автоматизировать многие процессы, которые встречаются в работе с моделями, сократив
тем самым дублирование кода, а отсюда и суммарные временные затраты:
* Написание правил валидации однотипных полей
* Написание геттеров для объявления различных связей с другими моделями
* Валидация и редактирование связанных записей
* Настройка формы редактирования модели и её связанных записей
* Настройка списка записей моделей
* Перевод названий полей
* Добавляет возможность расширения моделей сторонним модулем без добавления новых зависимостей
* Упрощает процесс unit-тестирования моделей

Как начать
----------
* [Установка](installing.md)

Использование
-------------
* [Примеры](usage-examples.md)
* [Работа со связями](relations.md)
* [I18n](i18n.md)
* [Система плагинов](plugin-system.md)
* [Динамичные поля](reloaders.md)
* Подсказки полей

Дополнительно
-------------
* [Перечень всех возможных полей](list-of-all-possible-fields.md)


text:
"""This file contains a formatter for the Google Analytics cookie."""

from plaso.formatters import interface

class AnalyticsUtmaCookieFormatter(interface.ConditionalEventFormatter):
  """The event formatter for UTMA Google Analytics cookie."""

  DATA_TYPE = 'cookie:google:analytics:utma'

  FORMAT_STRING_PIECES = [
      u'{url}',
      u'({cookie_name})',
      u'Sessions: {sessions}',
      u'Domain Hash: {domain_hash}',
      u'Visitor ID: {domain_hash}']

  FORMAT_STRING_SHORT_PIECES = [
      u'{url}',
      u'({cookie_name})']

  SOURCE_LONG = 'Google Analytics Cookies'
  SOURCE_SHORT = 'WEBHIST'

class AnalyticsUtmbCookieFormatter(AnalyticsUtmaCookieFormatter):
  """The event formatter for UTMB Google Analytics cookie."""

  DATA_TYPE = 'cookie:google:analytics:utmb'

  FORMAT_STRING_PIECES = [
      u'{url}',
      u'({cookie_name})',
      u'Pages Viewed: {pages_viewed}',
      u'Domain Hash: {domain_hash}']

class AnalyticsUtmzCookieFormatter(AnalyticsUtmaCookieFormatter):
  """The event formatter for UTMZ Google Analytics cookie."""

  DATA_TYPE = 'cookie:google:analytics:utmz'

  FORMAT_STRING_PIECES = [
      u'{url}',
      u'({cookie_name})',
      u'Sessions: {sessions}',
      u'Domain Hash: {domain_hash}',
      u'Sources: {sources}',
      u'Last source used to access: {utmcsr}',
      u'Ad campaign information: {utmccn}',
      u'Last type of visit: {utmcmd}',
      u'Keywords used to find site: {utmctr}',
      u'Path to the page of referring link: {utmcct}']


text:
from django import template
# from django.contrib.admin.util import lookup_field
# from django.core.exceptions import ObjectDoesNotExist
# from django.core.urlresolvers import NoReverseMatch, reverse
# from django.db.models import ForeignKey
# from django.template.defaulttags import NowNode
# from django.utils.safestring import mark_safe
from django.shortcuts import render_to_response, redirect, get_object_or_404
from content.models import *
from product.models import Category, Support, Product

register = template.Library()

@register.inclusion_tag('meta/title.html')
def meta_title():

    meta = get_object_or_404(Meta, published=1)
    return {'title': meta.meta_title}

@register.inclusion_tag('meta/author.html')
def meta_author():

    meta = get_object_or_404(Meta, published=1)
    return {'author': meta.meta_author}

@register.inclusion_tag('meta/description.html')
def meta_description():

    meta = get_object_or_404(Meta, published=1)
    return {'description': meta.meta_description}

@register.inclusion_tag('meta/keywords.html')
def meta_keywords():

    meta = get_object_or_404(Meta, published=1)
    return {'keywords': meta.meta_keywords}

@register.inclusion_tag('top/image_back.html')
def top_image_back():

    top = get_object_or_404(Top, published=1)
    # return {'image_back': top.image_back}
    return {'image_back': top.slug}

@register.inclusion_tag('top/text_small.html')
def top_text_small():

    top = get_object_or_404(Top, published=1)
    return {'text_small': top.text_small}

@register.inclusion_tag('top/text_big.html')
def top_text_big():

    top = get_object_or_404(Top, published=1)
    return {'text_big': top.text_big}

@register.inclusion_tag('footer/category_footer.html')
def category_footer():

    products = Product.objects.all().order_by('ordering')
    categories = Category.objects.filter(published_in_second=1).order_by('ordering')
    return {'categories': categories, 'products': products}

@register.inclusion_tag('footer/support_footer.html')
def support_footer():

    supports = Support.objects.filter(published=1).order_by('ordering')
    return {'supports': supports}

@register.inclusion_tag('header_backgrounds/all_prod.html')
def all_prod():

    background_image = get_object_or_404(Slide, published_all_prod=1)
    return {'background_image': background_image}

@register.inclusion_tag('header_backgrounds/about.html')
def about():

    background_image = get_object_or_404(Slide, header_about=1)
    return {'background_image': background_image}

# @register.inclusion_tag('slides/slides.html')
# def slides():

#     slides = Slide.objects.filter(published=1).order_by('ordering')
#     return {'slides': slides}

# @register.inclusion_tag('menu/main_menu.html')
# def main_menu():

#     menu = Menu.objects.get(pk=1)
#     items = MenuItem.objects.filter(menu=menu, published=1).order_by('ordering')
#     return {'items': items}

# @register.inclusion_tag('comments/comments.html')
# def comments(paket, item_model, item_id):
#     from comments.models import Comments
#     nodes = Comments.objects.filter(paket=paket, item_model=item_model,item_id=item_id, published=1)
#     return {'nodes':nodes, 'paket':paket, 'item_model':item_model, 'item_id':item_id}

# @register.filter(name='suit_conf')
# def suit_conf(name):
#     value = get_config(name)
#     return mark_safe(value) if isinstance(value, str) else value

# @register.tag
# def suit_date(parser, token):
#     return NowNode(get_config('HEADER_DATE_FORMAT'))

# @register.tag
# def suit_time(parser, token):
#     return NowNode(get_config('HEADER_TIME_FORMAT'))

# @register.filter
# def field_contents_foreign_linked(admin_field):
#     """Return the .contents attribute of the admin_field, and if it
#     is a foreign key, wrap it in a link to the admin page for that
#     object.

#     Use by replacing '{{ field.contents }}' in an admin template (e.g.
#     fieldset.html) with '{{ field|field_contents_foreign_linked }}'.
#     """
#     fieldname = admin_field.field['field']
#     displayed = admin_field.contents()
#     obj = admin_field.form.instance

#     if not hasattr(admin_field.model_admin,
#                    'linked_readonly_fields') or fieldname not in admin_field \
#         .model_admin \
#         .linked_readonly_fields:
#         return displayed

#     try:
#         fieldtype, attr, value = lookup_field(fieldname, obj,
#                                               admin_field.model_admin)
#     except ObjectDoesNotExist:
#         fieldtype = None

#     if isinstance(fieldtype, ForeignKey):
#         try:
#             url = admin_url(value)
#         except NoReverseMatch:
#             url = None
#         if url:
#             displayed = "%s" % (url, displayed)
#     return mark_safe(displayed)

# @register.filter
# def admin_url(obj):
#     info = (obj._meta.app_label, obj._meta.module_name)
#     return reverse("admin:%s_%s_change" % info, args=[obj.pk])

# @register.simple_tag
# def suit_bc(*args):
#     return utils.value_by_version(args)

# @register.assignment_tag
# def suit_bc_value(*args):
#     return utils.value_by_version(args)


text:
@interface PodsDummy_GoogleMapsDirections : NSObject
@end
@implementation PodsDummy_GoogleMapsDirections
@end