text:
/* global cc, res, Toshiki, ToshikiManager, ScoreLabel, TimeLabel, EndingScene */

var BattleScene = cc.Scene.extend({
    onEnterTransitionDidFinish: function(){
        var windowSize,
            i, j,
            x, y,
			toshiki;

        cc.log("battle scene start!");

        this._super();
        this._score = 0;
        this._time = 30;

        cc.spriteFrameCache.addSpriteFrames(res.toshiki_plist, res.toshiki_png);

        //initialize background
        windowSize = cc.director.getWinSize();
        this._backgroundLayer = new cc.LayerColor(cc.color("#bce8ae"), windowSize.width, windowSize.height);
        this.addChild(this._backgroundLayer,1);

        //initialize toshikis
        this._toshikiManager = new ToshikiManager();
		this.addChild(this._toshikiManager);
		this._toshiki = [];
        for(i=0; i<3; i++){
            for(j=0; j<3; j++){
                toshiki = new Toshiki();
				this.addChild(toshiki, 2);

                x = windowSize.width/2 + ((i - 1) * toshiki.width);
                y = windowSize.height/2 + ((j - 1) * toshiki.height);
                toshiki.setPosition(cc.p(x, y));
                toshiki.addCallbackOnStroked(this._addScore.bind(this));

                this._toshikiManager.addToshiki(toshiki);
            }
        }
        this._toshikiManager.setFrequency(this._toshikiManager.FREQ.LOW);
        this._toshikiManager.startHideAndShow();

        //initialize scorelabel
        this._scoreLabel = new ScoreLabel(0, windowSize.height, this._score);
        this._scoreLabel.setAnchorPoint(cc.p(0, 1));
        this.addChild(this._scoreLabel, 3);

        //initialize timelabel
        this._timeLabel = new TimeLabel(windowSize.width, windowSize.height, this._time);
        this._timeLabel.setAnchorPoint(cc.p(1, 1));
        this.addChild(this._timeLabel, 3);

        //set time sucheduler
        this.schedule(this._updateTimer, 1.0);

		//play bgm
		cc.audioEngine.playMusic(res.bgm_mp3, true);

    },

	_updateTimer: function(){
		cc.log("BattleScene: time is " + this._time + ".");

		this._time--;

		this._timeLabel.updateTime(this._time);

		if(this._time <= 0){
			this.unscheduleAllCallbacks();
			this._toshikiManager.stopHideAndShow();
			cc.director.runScene(new EndingScene(this._score));
			return;
		}

		if(this._time <= 10){
			this._timeLabel.setColorRed();
			this._toshikiManager.setFrequency(this._toshikiManager.FREQ.HIGH);
		}
	},

	_addScore: function(){
        this._score += 100;
        this._scoreLabel.updateScore(this._score);

		cc.audioEngine.playEffect(res.pointUp_mp3, false);
    },

    onExit: function(){
		this._super();

        cc.spriteFrameCache.removeSpriteFramesFromFile(res.toshiki_plist);
		cc.audioEngine.stopMusic();
    }
});


text:
package org.pmiops.workbench.ras;

import com.google.common.collect.ImmutableSet;
import java.util.Set;

/** Constants used in to process RAS linkage. */
public class RasLinkConstants {
  private RasLinkConstants() {}

  // The RAS url suffix for exchanging token using auth code.
  static final String TOKEN_URL_SUFFIX = "/auth/oauth/v2/token";

  // The RAS url suffix for initializing authorize request.
  static final String AUTHORIZE_URL_SUFFIX = "/auth/oauth/v2/authorize";

  // The RAS url suffix for fetching user info, i.e. GA4GH Passport.
  static final String USER_INFO_URL_SUFFIX = "/openid/connect/v1.1/userinfo";

  // The GCP bucket name that stores RAS secret
  static final String RAS_SECRET_BUCKET_NAME = "ras-client-secret.txt";

  // The OIDC acr (Authentication Context Class Reference) claim name in JWT
  static final String ACR_CLAIM = "acr";

  // The Id Token field name from RAS's TokenResponse
  static final String Id_TOKEN_FIELD_NAME = "id_token";
  // The login.gov's PREFERRED_USERNAME field from RAS UserInfo endpoint
  static final String PREFERRED_USERNAME_FIELD_NAME = "preferred_username";

  // The login.gov's FEDERATED_IDENTITIES field from RAS UserInfo endpoint
  static final String FEDERATED_IDENTITIES = "federated_identities";

  // The login.gov's identities field from RAS UserInfo endpoint
  static final String IDENTITIES = "identities";

  // The login.gov's era commons provider name field from RAS UserInfo endpoint
  static final String ERA_COMMONS_PROVIDER_NAME = "era";

  // The login.gov's ther user id field from RAS UserInfo's identity.
  static final String IDENTITY_USERID = "userid";

  // The identifier that indicate users login using login.gov account.
  static final String LOGIN_GOV_IDENTIFIER_LOWER_CASE = "@login.gov";

  // The string in ACR claim that we can use to identify user IAL status.
  static final String ACR_CLAIM_IAL_2_IDENTIFIER = "/assurance/ial/2";

  // The required scopes to finish RAS OAuth flow, and get enough information AoU needs.
  static final Set<String> RAS_AUTH_CODE_SCOPES =
      ImmutableSet.of("openid", "profile", "federated_identities");
}

redpajama_set_name: RedPajamaGithub


text:
struct StaticPointLight {
	StaticPointLight(const glm::vec3& color, const glm::vec3& position) : Color(color),
																		Position(position) { }

	glm::vec3 Color;
	glm::vec3 Position;
};


text:
using System.Collections.Generic;
using SFA.DAS.EmployerAccounts.Models.Account;

namespace SFA.DAS.EmployerAccounts.Queries.GetAccountTasks
{
    public class GetAccountTasksResponse
    {
        public ICollection<AccountTask> Tasks { get; set; }
    }
}


text:
maintainer       "Mike Heffner, Librato, Inc."
maintainer_email "mike@librato.com"
license          "Apache 2.0"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version          "3.1.2"

description      "Installs/Configures Sys Logging to papertrailapp.com"

depends          "rsyslog"

recipe           "papertrail::default",                "Base configuration for papertrail"

%w[ debian ubuntu ].each do |os|
  supports os
end

attribute "papertrail/logger",
  :display_name          => "Logger to use. Support loggers include: rsyslog. Defaults to rsyslog.",
  :description           => "Logger to use. Support loggers include: rsyslog. Defaults to rsyslog.",
  :default               => "rsyslog"

attribute "papertrail/remote_host",
  :display_name          => "Papertrail host to send stats to. Defaults to `logs.papertrailapp.com`.",
  :description           => "Papertrail host to send stats to. Defaults to `logs.papertrailapp.com`.",
  :default               => "logs.papertrailapp.com"

attribute "papertrail/remote_port",
  :display_name          => "Port to use. No default.",
  :description           => "Port to use. No default.",
  :default               => ""

attribute "papertrail/cert_file",
  :display_name          => "Location of papertrail certificate file",
  :description           => "Location of papertrail certificate file",
  :default               => "/etc/papertrail.crt"

attribute "papertrail/cert_url",
  :display_name          => "URL to download certificate from",
  :description           => "URL to download certificate from",
  :default               => "https://papertrailapp.com/tools/syslog.papertrail.crt"

attribute "papertrail/hostname_name",
  :display_name          => "Explicit override of system's hostname",
  :description           => "By default, this recipe will log to Papertrail using the system's hostname. If you want to set the hostname that will be used (think ephemeral cloud nodes) you can set `hostname_name` (preferred) or `hostname_cmd` (used if `hostname_name` is absent).",
  :default               => ""

attribute "papertrail/hostname_cmd",
  :display_name          => "Command to run to determine system's hostname",
  :description           => "By default, this recipe will log to Papertrail using the system's hostname. If you want to set the hostname that will be used (think ephemeral cloud nodes) you can set `hostname_name` (preferred) or `hostname_cmd` (used if `hostname_name` is absent).",
  :default               => ""

attribute "papertrail/watch_files",
  :display_name          => "Command to run to determine system's hostname",
  :description           => "A list of files that will be to watch and include in the papertrail logging -- useful for including output from applications that aren't configured to use syslog.\n\nEach entry in this list is a hash of:\n* [:filename] - Full path to the file.\n* [:tag] - What to tag log lines that come from this file. Best to use a short application name.\n\nFor example:\n  default[:papertrail][:watch_files] = [{:filename => \"/var/log/myapp.log\", :tag => \"myapp:\"}]\n",
  :default               => ""


text:
<menu xmlns:android="http://schemas.android.com/apk/res/android" >

    <item
        android:id="@+id/action_share"
        android:icon="@drawable/ic_social_share"
        android:showAsAction="always"
        android:title="@string/action_share">
        <menu>
            <item android:id="@+id/share_facebook"
                  android:icon="@drawable/facebook"
                  android:title="@string/facebook" />
            <item android:id="@+id/share_google"
                  android:icon="@drawable/google"
                  android:title="@string/googleplus" />
            <item android:id="@+id/share_astext"
                  android:icon="@drawable/mail"
                  android:title="@string/shareAsText" />
        </menu>
        </item>
    <item
        android:id="@+id/action_edit"
        android:icon="@drawable/ic_menu_edit"
        android:showAsAction="always"
        android:title="@string/action_edit"/>
    <item
        android:id="@+id/action_delete"
        android:icon="@drawable/ic_menu_delete"
        android:showAsAction="always"
        android:title="@string/action_delete"/>

</menu>


text:
using System;
using System.Collections.Generic;

namespace Neemo.CarParts.EntityFramework.Models
{
    public partial class PartPrice
    {
        public int PartPriceID { get; set; }
        public Nullable<int> PartID { get; set; }
        public Nullable<decimal> Price { get; set; }
        public int Quantity { get; set; }
        public Nullable<bool> Active { get; set; }
        public Nullable<System.DateTime> CreatedDateTime { get; set; }
        public string CreatedByUser { get; set; }
        public Nullable<System.DateTime> LastModifiedDateTime { get; set; }
        public string LastModifiedByUser { get; set; }
        public Nullable<System.DateTime> DeletedDateTime { get; set; }
        public string DeletedByUser { get; set; }
        public Nullable<System.DateTime> EffectiveDateFrom { get; set; }
        public Nullable<System.DateTime> EffectiveDateTo { get; set; }
    }
}


text:
/**
 * Created by mmanders on 5/25/2016.
 */

cordova.define("cordova-plugin-file.fileSystems", function(require, exports, module) {
    var exec = require('cordova/exec');

    module.exports.getFs = function (name, callback) {
        // Check which type to use
        var type = name == "temporary" ? LocalFileSystem.TEMPORARY : LocalFileSystem.PERSISTENT;

        exec(function (fs) {
            // Create a new FileSystem object using the data in the returned FileSystem object
            callback(new (require('./FileSystem'))(fs.name, fs.root));
        }, null, "File", "requestFileSystem", [type, 0]);
    };
});


text:
package org.fastcatsearch.ir.search;

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

import org.fastcatsearch.ir.common.IRException;
import org.fastcatsearch.ir.common.IndexFileNames;
import org.fastcatsearch.ir.document.PrimaryKeyIndexReader;
import org.fastcatsearch.ir.field.Field;
import org.fastcatsearch.ir.field.FieldDataParseException;
import org.fastcatsearch.ir.io.BytesDataOutput;
import org.fastcatsearch.ir.io.CharVector;
import org.fastcatsearch.ir.io.DataOutput;
import org.fastcatsearch.ir.query.Term;
import org.fastcatsearch.ir.search.clause.OperatedClause;
import org.fastcatsearch.ir.search.clause.TermOperatedClause;
import org.fastcatsearch.ir.settings.FieldSetting;
import org.fastcatsearch.ir.settings.PrimaryKeySetting;
import org.fastcatsearch.ir.settings.RefSetting;
import org.fastcatsearch.ir.settings.Schema;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * */
public class PrimaryKeyIndexesReader implements Cloneable {
	private static Logger logger = LoggerFactory.getLogger(PrimaryKeyIndexesReader.class);

	private FieldSetting[] pkFieldSettingList;

	private PrimaryKeyIndexReader pkReader;

	public PrimaryKeyIndexesReader() {
	}

	public PrimaryKeyIndexesReader(Schema schema, File dir) throws IOException, IRException {
//		this(schema, dir, 0);
//	}
//
//	public PrimaryKeyIndexesReader(Schema schema, File dir, int revision) throws IOException, IRException {
		PrimaryKeySetting primaryKeySetting = schema.schemaSetting().getPrimaryKeySetting();
		List<RefSetting> pkRefSettingList = primaryKeySetting.getFieldList();
		pkFieldSettingList = new FieldSetting[pkRefSettingList.size()];

		for (int i = 0; i < pkRefSettingList.size(); i++) {
			String refId = pkRefSettingList.get(i).getRef();
			pkFieldSettingList[i] = schema.getFieldSetting(refId);
		}

//		pkReader = new PrimaryKeyIndexReader(IndexFileNames.getRevisionDir(dir, revision), IndexFileNames.primaryKeyMap);
		pkReader = new PrimaryKeyIndexReader(dir, IndexFileNames.primaryKeyMap);
	}

	@Override
	public PrimaryKeyIndexesReader clone() {

		PrimaryKeyIndexesReader reader = new PrimaryKeyIndexesReader();
		reader.pkFieldSettingList = pkFieldSettingList;
		reader.pkReader = pkReader.clone();
		return reader;
	}

	public OperatedClause getOperatedClause(Term term) throws IOException, FieldDataParseException {
		int weight = term.weight();
		String termString = term.termString();
		String[] list = termString.split(" ");
		int size = 1;
		if (list.length > 1) {
			size = list.length;
		}
		// 중복된 아이디리스트가 입력될수 있으므로 정렬후 중복제거 수행
		quickSort(list, 0, list.length - 1);
		size = removeRedundancy(list, list.length);
		logger.debug("search primary key! size={}", size);

		PostingDoc[] termDocList = new PostingDoc[size];
		int m = 0;
		BytesDataOutput pkOutput = new BytesDataOutput();

		String[] pkValues = null;
		for (int i = 0; i < size; i++) {

			pkOutput.reset();

			String pkValue = list[i];

			if (pkFieldSettingList.length > 1) {
				// 결합 pk일경우 값들은 ';'로 구분되어있다.
				pkValues = pkValue.split(";");
			} else {
				pkValues = new String[] { pkValue };
			}

			int docNo = -1;

			for (int j = 0; j < pkFieldSettingList.length; j++) {
				FieldSetting fieldSetting = pkFieldSettingList[j];
				Field field = fieldSetting.createIndexableField(pkValues[j]);
				field.writeFixedDataTo(pkOutput);
			}

			docNo = pkReader.get(pkOutput.array(), 0, (int) pkOutput.position());
			if (docNo != -1) {
				termDocList[m] = new PostingDoc(docNo, 1);
				m++;
			}
		}

		OperatedClause idOperatedClause = null;
		if (m > 0) {
			idOperatedClause = new TermOperatedClause(PrimaryKeySetting.ID, termString, new DataPostingReader(new CharVector(termString), 0, weight, termDocList, m));
		} else {
			idOperatedClause = new TermOperatedClause(PrimaryKeySetting.ID, termString, null);
		}

		return idOperatedClause;

	}

	public int getDocNo(String pkValue, BytesDataOutput pkOutput) throws FieldDataParseException, IOException {
		pkOutput.reset();
		String[] pkValues = null;
		if (pkFieldSettingList.length > 1) {
			// 결합 pk일경우 값들은 ';'로 구분되어있다.
			pkValues = pkValue.split(";");
		} else {
			pkValues = new String[] { pkValue };
		}
		if(pkFieldSettingList.length != pkValues.length) {
			return -1;
		}
		for (int j = 0; j < pkFieldSettingList.length; j++) {
			FieldSetting fieldSetting = pkFieldSettingList[j];
			Field field = fieldSetting.createIndexableField(pkValues[j]);
			field.writeFixedDataTo(pkOutput);
		}

		return pkReader.get(pkOutput.array(), 0, (int) pkOutput.position());
	}

	public void close() throws IOException {
		pkReader.close();
	}

	private void quickSort(String[] e, int first, int last) {

		if (last <= 0)
			return;

		int stackMaxSize = (int) ((Math.log(last - first + 1) + 3) * 2);
		int[][] stack = new int[stackMaxSize][2];

		String pivotId = null;
		int sp = 0;
		int left = 0, right = 0;

		while (true) {
			while (first < last) {
				left = first;
				right = last;
				int median = (left + right) / 2;

				// move pivot to left most.
				String tmp = e[left];
				e[left] = e[median];
				e[median] = tmp;
				pivotId = e[left];

				while (left < right) {
					while (e[right].compareTo(pivotId) >= 0 && (left < right))
						right--;

					if (left != right) {
						e[left] = e[right];
						left++;
					}

					while (e[left].compareTo(pivotId) <= 0 && (left < right))
						left++;

					if (left != right) {
						e[right] = e[left];
						right--;
					}
				}

				e[left] = pivotId;

				if (left - first < last - left) {
					if (left + 1 < last) {
						sp++;
						stack[sp][0] = left + 1;
						stack[sp][1] = last;
					}
					last = left - 1;
				} else {
					if (first < left - 1) {
						sp++;
						stack[sp][0] = first;
						stack[sp][1] = left - 1;
					}
					first = left + 1;
				}

			}

			if (sp == 0) {
				return;
			} else {
				first = stack[sp][0];
				last = stack[sp][1];
				sp--;
			}

		}
	}

	private int removeRedundancy(String[] list, int length) {
		String prev = "";
		int c = 0;
		for (int i = 0; i < length; i++) {
			list[i] = list[i].trim();
			String str = list[i];
			if (!str.equalsIgnoreCase(prev) && prev.length() > 0) {
				list[c++] = prev;
			}
			prev = str;
		}
		if (prev.length() > 0)
			list[c++] = prev;

		return c;
	}
}


text:
"use strict";

function ArethusaMocks() {
  var self = this;

  function mockFn() {}
  function mockFnWithObject() { return {}; }

  function initOnly(customizations) {
    return withCustomizations({
      init: mockFn
    }, customizations);
  }

  function withCustomizations(obj, overrides) {
    return angular.extend(obj, overrides);
  }

  this.configurator = function(customizations) {
    return withCustomizations({
      getConfAndDelegate: mockFn,
      delegateConf: mockFn,
      getStickyConf: mockFn,
      provideResource: mockFnWithObject,
      configurationFor: mockFnWithObject,
      getRetrievers: mockFnWithObject
    }, customizations);
  };

  this.keyCapture = function(customizations) {
    return withCustomizations({
      initCaptures: mockFnWithObject
    }, customizations);
  };

  this.saver = initOnly;
  this.history = initOnly;

  this.notifier = function(customizations) {
    return withCustomizations({
      init: mockFn,
      success: mockFn,
      info: mockFn,
      error: mockFn,
      wait: mockFn,
      warning: mockFn
    }, customizations);
  };

  this.navigator = function(customizations) {
    return withCustomizations({
      init: mockFn,
      reset: mockFn,
      addToken: mockFn,
      removeToken: mockFn
    });
  };

  this.idHandler = function(customizations) {
    return withCustomizations({
      unassignSourceId: mockFn
    });
  };

  this.plugins = function(customizations) {
    return withCustomizations({
      startUp: mockFn,
      init: mockFn,
      all: {},
      main: [],
      sub: [],
      withMenu: [],
      declareReady: mockFn
    });
  };

  this.globalSettings = function(customizations) {
    return withCustomizations({
      // more to come
      init: mockFn
    });
  };

  this.resolvedConfirmationDialog = function(customizations) {
    return withCustomizations({
      ask: function() {
        return {
          then: function(success) {
            success();
          }
        };
      }
    });
  };

  this.rejectedConfirmationDialog = function(customizations) {
    return withCustomizations({
      ask: function() {
        return {
          then: function(success, error) {
            error();
          }
        };
      }
    });
  };

  this.arethusaLocalStorage = function(customizations) {
    var data = {
    };
    return withCustomizations({
      init: mockFn,
      get: function(key) { return data[key]; },
      set: function(key,value) { data[key] = value; },
      keys:function() { return Object.keys(data); }
    });
  };

  this.tokens = function() {
    return {
      '01': {
        id: '01',
        string: 'Arma',
        relation: {
          label: "OBJ_CO"
        },
        head: {
          id: '03'
        },
        morphology: {
          lemma: 'lemma1',
          postag: 'n-', // explicitly using an empty postag component here to test behavior
          origin: 'document'
        }
      },
      '02': {
        id: '02',
        string: 'virum',
        relation: {
          label: "OBJ_CO"
        },
        head: {
          id: '03'
        },
        morphology: {
          lemma: 'lemma2',
          postag: 'a1',
          origin: 'document'
        }
      },
      '03': {
        id: '03',
        string: '-que',
        relation: {
          label: "COORD"
        },
        head: {
          id: '04'
        }
      },
      '04': {
        id: '04',
        string: 'cano',
        head: {
          id: '00'
        },
        relation: {
          label: "PRED"
        }
      }
    };
  };

  this.localForms = function() {
    return {
      '02': {
        lemma: 'lemma2',
        postag: 'a1',
        origin: 'you',
        sg: 'extra'
      }
    };
  };

}

var arethusaMocks = new ArethusaMocks();


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.servicefabric.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for RollingUpgradeMode. */
public final class RollingUpgradeMode extends ExpandableStringEnum<RollingUpgradeMode> {
    /** Static value Invalid for RollingUpgradeMode. */
    public static final RollingUpgradeMode INVALID = fromString("Invalid");

    /** Static value UnmonitoredAuto for RollingUpgradeMode. */
    public static final RollingUpgradeMode UNMONITORED_AUTO = fromString("UnmonitoredAuto");

    /** Static value UnmonitoredManual for RollingUpgradeMode. */
    public static final RollingUpgradeMode UNMONITORED_MANUAL = fromString("UnmonitoredManual");

    /** Static value Monitored for RollingUpgradeMode. */
    public static final RollingUpgradeMode MONITORED = fromString("Monitored");

    /**
     * Creates or finds a RollingUpgradeMode from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding RollingUpgradeMode.
     */
    @JsonCreator
    public static RollingUpgradeMode fromString(String name) {
        return fromString(name, RollingUpgradeMode.class);
    }

    /** @return known RollingUpgradeMode values. */
    public static Collection<RollingUpgradeMode> values() {
        return values(RollingUpgradeMode.class);
    }
}


text:
//
// Pythagoras - a collection of geometry classes
// http://github.com/samskivert/pythagoras

package pythagoras.d;

/**
 * Point-related utility methods.
 */
public class Points
{
    /** The point at the origin. */
    public static final IPoint ZERO = new Point(0f, 0f);

    /**
     * Returns the squared Euclidean distance between the specified two points.
     */
    public static double distanceSq (double x1, double y1, double x2, double y2) {
        x2 -= x1;
        y2 -= y1;
        return x2 * x2 + y2 * y2;
    }

    /**
     * Returns the Euclidean distance between the specified two points.
     */
    public static double distance (double x1, double y1, double x2, double y2) {
        return Math.sqrt(distanceSq(x1, y1, x2, y2));
    }

    /**
     * Returns true if the supplied points' x and y components are equal to one another within
     * {@link MathUtil#EPSILON}.
     */
    public static boolean epsilonEquals (IPoint p1, IPoint p2) {
        return epsilonEquals(p1, p2, MathUtil.EPSILON);
    }

    /**
     * Returns true if the supplied points' x and y components are equal to one another within
     * {@code epsilon}.
     */
    public static boolean epsilonEquals (IPoint p1, IPoint p2, double epsilon) {
        return Math.abs(p1.x() - p2.x()) < epsilon && Math.abs(p1.y() - p2.y()) < epsilon;
    }

    /** Transforms a point as specified, storing the result in the point provided.
     * @return a reference to the result point, for chaining. */
    public static Point transform (double x, double y, double sx, double sy, double rotation,
                                   double tx, double ty, Point result) {
        return transform(x, y, sx, sy, Math.sin(rotation), Math.cos(rotation), tx, ty,
                         result);
    }

    /** Transforms a point as specified, storing the result in the point provided.
     * @return a reference to the result point, for chaining. */
    public static Point transform (double x, double y, double sx, double sy, double sina, double cosa,
                                   double tx, double ty, Point result) {
        return result.set((x*cosa - y*sina) * sx + tx, (x*sina + y*cosa) * sy + ty);
    }

    /** Inverse transforms a point as specified, storing the result in the point provided.
     * @return a reference to the result point, for chaining. */
    public static Point inverseTransform (double x, double y, double sx, double sy, double rotation,
                                          double tx, double ty, Point result) {
        x -= tx; y -= ty; // untranslate
        double sinnega = Math.sin(-rotation), cosnega = Math.cos(-rotation);
        double nx = (x * cosnega - y * sinnega); // unrotate
        double ny = (x * sinnega + y * cosnega);
        return result.set(nx / sx, ny / sy); // unscale
    }

    /**
     * Returns a string describing the supplied point, of the form +x+y,
     * +x-y, -x-y, etc.
     */
    public static String pointToString (double x, double y) {
        return MathUtil.toString(x) + MathUtil.toString(y);
    }
}


text:
expect-js-clone
===============


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

<deployment xmlns="urn:jboss:bean-deployer:2.0">
    <bean name="XnioMetaDataDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryDeployer">
        <constructor>
            <parameter>org.jboss.xnio.metadata.XnioMetaData</parameter>
        </constructor>
    </bean>

    <bean name="XnioParserDeployer" class="org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer">
        <constructor>
            <parameter>org.jboss.xnio.metadata.XnioMetaData</parameter>
        </constructor>
        <property name="name">jboss-xnio.xml</property>
        <property name="registerWithJBossXB">true</property>
    </bean>

</deployment>


text:
[![npm version](http://img.shields.io/npm/v/sitesampler.svg)](https://www.npmjs.org/package/sitesampler)
[![Build Status](http://img.shields.io/travis/alexlangberg/node-sitesampler.svg)](https://travis-ci.org/alexlangberg/node-sitesampler)
[![Dependency Status](https://david-dm.org/alexlangberg/node-sitesampler.svg)](https://david-dm.org/alexlangberg/node-sitesampler)
[![devDependency Status](https://david-dm.org/alexlangberg/node-sitesampler/dev-status.svg)](https://david-dm.org/alexlangberg/node-sitesampler#info=devDependencies)

Data collection sometimes includes collecting the same data over time. This module, which is basically a wrapper around [needle-schedule](https://www.npmjs.com/package/needle-schedule), enables you to collect e.g. the html content of websites over time and (optionally) store the data with the [chronostore](https://www.npmjs.com/package/chronostore) module, thus sampling sites. On top of storing the results as files, it also emits the results when collected, enabling you to further process the data, e.g. pushing the data to a database.

A heavy emphasis is put on stability and logging. Everything, even the logging provided by [bunyan](https://www.npmjs.com/package/bunyan), is covered with tests. It also allows you to forward your logging to the console, [loggly](https://www.loggly.com), [logentries](https://logentries.com) and [slack](https://slack.com).

Linted with ESLint, tested with tape and 100% coverage with covert.

## Installation
```
npm install sitesampler
```

## Logging
Logging is performed by bunyan and all logging is enabled with env vars. For instance, to run the example with logging turned on, run the command ```SITESAMPLER_LOG=1 node example.js```.

### loggly
Logging can be posted to [loggly](https://www.loggly.com) by setting the following env vars:

- ```SITESAMPLER_LOGGLY_SUBDOMAIN```: your loggly subdomain.
- ```SITESAMPLER_LOGGLY_TOKEN```: your loggly token.
- ```SITESAMPLER_LOGGLY_LEVEL```: the level to log. Defaults to ```info```.

### logentries
Logging can be posted to [logentries](https://logentries.com) by setting the following env vars:

- ```SITESAMPLER_LOGENTRIES_TOKEN```: your logentries token.

### slack
Logging can be posted to [slack](https://slack.com) by setting the following env vars:

- ```SITESAMPLER_SLACK_WEBHOOKURL```: your slack webhook url.
- ```SITESAMPLER_SLACK_CHANNEL```: your slack channel. Defaults to the channel of the webhook.
- ```SITESAMPLER_SLACK_LEVEL```: the level to log. Defaults to ```info```.
- ```SITESAMPLER_SLACK_USERNAME```: the username to post with. Defaults to ```sitesampler```.

## Methods
### sitesampler(*[settings]*)
When instantiating the sitesampler, it requires settings to work. Settings is thus either an object or a path to a json file containing the settings.

```settings``` (object | string): object with settings or path to settings. Defaults to ```./sitesampler.json```. Properties:

- ```targets``` (object) - an array of targets for the [schedule-schedule](https://www.npmjs.com/package/needle-schedule) module under the hood.
- ```options``` (object) - default options that will be passed through to [schedule-schedule](https://www.npmjs.com/package/needle-schedule). See example below or ```sitesampler.default.json```.
- ```chronostore``` (object) - default options that will be passed through to [chronostore](https://www.npmjs.com/package/chronostore). If not defined, nothing will be written to disk. To use chronostore defaults, pass an empty object ```{}```.
- ```rethrowErrors``` (object) - whether sitesampler should rethrow eerrors from goldwasher and chronostore. Defaults to ```true```.

### sitesampler.start()
Starts the sitesampler.

### sitesampler.stop()
Stops the sitesampler.

## Events
Sitesampler is an event emitter that will emit collected results or when an error is encountered. See the example below. Remember to handle errors or your program will crash if an error is encountered. This will, however, usually only happen if you point it at something that isn't HTML.

## Example
```javascript
var sitesampler = require('sitesampler');
var ss = sitesampler('sitesampler.default.json');

ss.on('response', function(result) {
  console.log(result);
});

ss.on('error', function(error) {
  console.log(error);
});

ss.start();
```

## sitesampler.default.json
```javascript
{
  "targets": [
    {
      "url": "http://www.github.com",
      "rule": { "second": [15, 35, 55] }
    }
  ],
  "options": {
    "rule": { "second": [1] },
    "needleRetry": {
      "retries": 10
    }
  },
  "chronostore": {
    "root": "./chronostore"
  }
}

```


text:
{{define "content"}}

	Logged out !
	You are logged out.

{{end}}


text:
<link rel="apple-touch-icon" sizes="180x180" href="/wp-content/themes/faac-theme/favicons/faac/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/wp-content/themes/faac-theme/favicons/faac/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/wp-content/themes/faac-theme/favicons/faac/favicon-16x16.png">
<link rel="manifest" href="/wp-content/themes/faac-theme/favicons/faac/manifest.json">
<link rel="mask-icon" href="/wp-content/themes/faac-theme/favicons/faac/safari-pinned-tab.svg" color="#23282d">
<meta name="theme-color" content="#23282d">