text:
"use strict";
var _ = require('underscore');
var async = require('async');
var Q = require("q");
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var OrderBook = require('./OrderBook')
var log = require('./log')(__filename)
var debug = log.debug
var num = require('num');
var BigNumber = require('bignumber.js');
var EventEmitter = require('events').EventEmitter;
var assert = require('assert');

function Liquiditer(config) {
    var me = this;
    var maxParallelOps = 16;
    var _provider;
    var _targetClient;
    var _orders = {}
    var _market = config.market;
    var _processing = false;
    var state = 'idle';
    var _orderBook;

    log.info("Liquiditer");

    function findOrderId(bidAsk){
        var orderId;
        for (var orderId in _orders) {
            if(_.isEqual(_orders[orderId], bidAsk)){
                //debug("findOrderId bidAsk %s, id: %s", bidAsk, orderId);
                delete _orders[orderId];
                return orderId;
            }
        }
        log.info("findOrderId no order id for ", bidAsk)
    }
    function cancelOrder(side, removed){
        if(removed.length === 0){
            return;
        }
        debug("cancelOrder #%s %d", side, removed.length);
        var deferred = Q.defer();
        async.forEachLimit(removed, maxParallelOps,function(ask, callback) {
            var price = ask[0];
            var amount = ask[1];

            var orderId = findOrderId(ask);
            //debug("cancelOrder id: %s, price: %d amount: %d", orderId, price, amount);
            if(!orderId){
                log.info("order %s not found for ", orderId, ask)
                return callback({name:"OrderNotFound"})
            }
            _targetClient.orderCancel(orderId)
            .then(function(){
                //debug('cancelOrder done');
                callback()
            }).fail(function(err){
                log.info("cancelOrder id: %s, err:", orderId, err);
                if(err.name === "OrderNotFound"){
                    callback();
                } else {
                    callback(err)
                }
            })
        },
        function(err) {
            if (err) {
                log.error("cancelOrder ", err);
                deferred.reject(err);
            } else {
                debug('cancelOrder %s done ', side);
                deferred.resolve();
            }
        });
        return deferred.promise;
    }

    function sendOrders(bidasks, type) {
        if(bidasks.length === 0){
            return;
        }
        debug("sendOrders %s %d, ", type, bidasks.length, bidasks);
        var deferred = Q.defer();
        async.forEachLimit(bidasks, maxParallelOps,function(pair, callback) {
            var price = pair[0];
            var amount = pair[1];
            //debug("sendOrders %s price: %d amount: %d", type, price, amount);
            _targetClient.order({
                market: config.market,
                type: type,
                price: price,
                amount: amount
            })
            .then(function(result){
                if(result.id){
                    _orders[result.id] = pair;
                    //debug('sendOrders %s #%s placed', type, result.id);
                    return callback()
                } else {
                    callback({name:"OrderError", result:result})
                }

            })
            .fail(function(err){
                log.error("sendOrders %s %s,for ", type, JSON.stringify(err), pair);
                callback(err)
            })
        },
        function(err) {
            if (err) {
                log.error("sendOrders ", err);
                deferred.reject(err)
            } else {
                debug('sendOrders %s done ', type);
                deferred.resolve();
            }
        });
        return deferred.promise;
    };

    function filterAsks(asksOrig){
        var availableProviderQc = _provider.balance(config.quoteCurrency).available;
        if(_provider.config().overrideAvailableQc){
            availableProviderQc = _provider.config().overrideAvailableQc
        }
        //Target
        var availableTargetBc = _targetClient.balance(config.baseCurrency).balance;
        var maxAmountAskProviderBc = _orderBook.getAmountBaseFromQuote(availableProviderQc, asksOrig);

        //debug('filterAsks asks     ', asksOrig);
        var maxAmountAskBc = Math.min(maxAmountAskProviderBc, availableTargetBc);

        var asks = _orderBook.filterWithAmount('ask', maxAmountAskBc, asksOrig);
        //debug('filterAsks asks     ', asks);
        asks = _orderBook.addFees(asks, _provider.config().fee_ask);

        debug('filterAsks #asks %s, TargetBc %s,maxAmountAskProviderBc: %s',
                asks.length, availableTargetBc, maxAmountAskProviderBc);
        //debug('filterAsks asks fees', asks);
        return asks;
    }

    function filterBids(bidsOrig){
        // Provider
        var availableProviderBc = _provider.balance(config.baseCurrency).available;
        if(_provider.config().overrideAvailableBc){
            availableProviderBc = _provider.config().overrideAvailableBc
        }

        var availableTargetQc = _targetClient.balance(config.quoteCurrency).balance;
        availableTargetQc = num(availableTargetQc).mul(num("0.98")).toString();
        var maxAmountBidProviderBc = _orderBook.getAmountBaseFromQuote(availableTargetQc, bidsOrig);

        var maxAmountBidBc = Math.min(maxAmountBidProviderBc, availableProviderBc);

        //debug('onOrderBookDiff b4 bids ', bidsOrig);
        var bids = _orderBook.filterWithAmount('bid', maxAmountBidBc, bidsOrig);

        //debug('filterBids bids      ', bids);
        bids = _orderBook.addFees(bids, _provider.config().fee_bid);
        //debug('filterBids bids fees ', bids);

        debug('filterBids #bids %s, availableProviderBc %s,maxAmountBidProviderBc: %s',
                bids.length, availableProviderBc, maxAmountBidProviderBc);
        return bids;
        //debug("diffBids:", diffBids);

    }
    function orderBookProcessed(orderBook){
        //debug('orderBookProcessed',orderBook )
        if(state !== 'running'){
            log.info("orderBookProcessed not running: ", state);
            return;
        }

        debug('orderBookProcessed: #bids %s, #asks %s', orderBook.bids.length, orderBook.asks.length);

        var bidsFiltered = [];
        var asksFiltered = [];
        try{
            var orderBookFilter = _orderBook.filterDepth(orderBook.bids, orderBook.asks);
            bidsFiltered = filterBids(orderBookFilter.bids);
            asksFiltered = filterAsks(orderBookFilter.asks)
        } catch(err){
            log.error("filter: ", JSON.stringify(err));
            log.error("filter: ", err.toString());
            throw new Error(err)
        }
        var diffBids = _orderBook.computeAddedRemoved(
                _provider.getOrderBook().bids,
                bidsFiltered);

        var diffAsks = _orderBook.computeAddedRemoved(
                _provider.getOrderBook().asks,
                asksFiltered);

        _provider.setOrderBook({bids:bidsFiltered, asks:asksFiltered});
        var result = {diffBids:diffBids, diffAsks:diffAsks};
        //console.log("result: ", result);
        return result
    }

    function onOrderBook(me, orderBook){
        //debug('onOrderBookDiff');
        if(state !== 'running'){
            log.info("onOrderBook not running: ", state);
            return;
        }
        if(_processing){
            log.info("onOrderBook already processing")
            return;
        }
        _processing = true;

        var diff;
        _targetClient.getBalances()
        .then(function(){

            diff = orderBookProcessed(orderBook);
            return Q.all([cancelOrder('bid', diff.diffBids.removed),cancelOrder('ask', diff.diffAsks.removed)])
        })
        .then(function(){
            return Q.all([sendOrders(diff.diffBids.added, 'bid'), sendOrders(diff.diffAsks.added, 'ask')])
        })
        .fail(function(err){
            log.error("onOrderBook ", err);
            //onError();
            me.emit('error', err)
        })
        .fin(function(){
            _processing = false;
        })
    }

    function onActivity(activity){
        log.info("onActivity: ", JSON.stringify(activity));

        if(activity.type === 'FillOrder'){
            onFillOrder(activity.details);
        }
        if(activity.type === 'FillOrderPartial'){
            onFillOrder(activity.details);
        }
    }

    function onFillOrder(order){
        log.info("onFillOrder: ", JSON.stringify(order));
        var param = {
                market: order.market,
                orderType: "market",
                amount: order.filled
        }
        var bnPrice = BigNumber(order.price);
        if(order.type === 'bid'){
            param.type = "ask";
            var bnFeeBid = BigNumber(_provider.config().fee_bid);
            param.price = bnPrice.times(100).dividedBy(bnFeeBid.plus(100)).toString();
        } else {
            param.type = "bid";
            var bnFeeAsk = BigNumber(_provider.config().fee_ask);
            param.price = bnPrice.times(100).dividedBy(bnFeeAsk.plus(100)).toString();
        }
        log.info("onFillOrder ", JSON.stringify(param));

        if(!config.trade){
            log.info("onFillOrder no trading");
            return;
        }

        _provider.order(param)
        .then(function(result){
            log.info("onFillOrder ", JSON.stringify(result));
        })
        .fail(function(err){
            log.error("onFillOrder ", err);
            //onError();
        })
    }

    function init(){
        debug("init provider: ", config.provider.driver)
        var Exchange = require('./' + config.provider.driver);
        _provider = new Exchange.Client(config.provider);
        _provider.ee().on('orderBook', function(orderBook){
            onOrderBook(me, orderBook)
        })

        var Airbex = require('./Airbex');
        _targetClient = new Airbex.Client(config.target);
        _targetClient.on('error', function(error){
            log.error("target: ", error);
            me.emit('error', error)
        })
    }

    this.getBalances = function(){
        debug("getBalances");
        return Q.all([_provider.getBalances(), _targetClient.getBalances()])
        .then(function(results){
            //debug(JSON.stringify(results, null, 4))
            debug("getBalances done");
        })
    }

    function orderBookInit(){
        var configOrderBook = {
                baseCurrency:config.baseCurrency,
                quoteCurrency:config.quoteCurrency
        }

        var currencies = _targetClient.get("currencies");
        var marketsInfo = _targetClient.get("marketsInfo");

        var baseCurrency = currencies[config.baseCurrency];
        assert(baseCurrency);
        debug("baseCurrency: ", baseCurrency);
        configOrderBook.baseScale = baseCurrency.scale;
        var quoteCurrency = currencies[config.quoteCurrency];
        debug("quoteCurrency: ", quoteCurrency);
        configOrderBook.quoteScale = quoteCurrency.scale;

        var marketInfo = marketsInfo[config.market];
        configOrderBook.bidMinVolume = marketInfo.bidminvolume;
        configOrderBook.askMinVolume = marketInfo.askminvolume;
        configOrderBook.bidMinPrice = marketInfo.bidminprice;
        configOrderBook.askMaxPrice = marketInfo.askmaxprice;

        assert(marketInfo);

        _orderBook = new OrderBook(configOrderBook);
    }

    this.start = function() {
        debug("start");
        init();
        var me = this;
        return Q.all([_provider.start(), _targetClient.start()])
        .then(function(results){
            debug("start: cancel all orders");
            _targetClient.registerMessage("activity", onActivity);
            return _targetClient.orderCancelAll(_market);
        })
        .then(function(){
            return _targetClient.fetchCurrencies();
        })
        .then(function(currencies){
            debug("currencies: ", currencies);
        })
        .then(function(){
            return _targetClient.fetchMarketsInfo();
        })
        .then(function(marketsInfo){
            debug("marketInfo: ", marketsInfo[config.market]);
        })
        .then(function(){
            return me.getBalances();
        })
        .then(function(results){
            orderBookInit();
            _provider.monitorOrderBook(config.market);
            state = 'running';
        })
        .fail(function(error){
            log.error("started with error: ", JSON.stringify(error));
            me.emit('error', error)
            throw new Error(error)
        })
    }

    this.stop = function stop() {
        debug("stop");
        state = 'stopping';

        _provider.unmonitorOrderBook()

        return _targetClient.orderCancelAll(_market)
        .fin(function(){
            return Q.all([_provider.stop(), _targetClient.stop()])
        })
        .then(function(results){
            debug("stop done");
            state = 'stopped'
        })
    }
}

util.inherits(Liquiditer, EventEmitter);

module.exports = Liquiditer;


text:
from passwordly.password import generateSalt, generatePassword
from passwordly.hash import createHash, checkHash

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="e58cce25-264c-467f-a3cd-1f84ff339c25" name="Default" comment="" />
    <ignored path="db.iws" />
    <ignored path=".idea/workspace.xml" />
    <ignored path="$PROJECT_DIR$/out/" />
    <ignored path=".idea/dataSources.local.xml" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="DaemonCodeAnalyzer">
    <disable_hints />
  </component>
  <component name="DatabaseView">
    <option name="FLATTEN" value="false" />
    <option name="GROUP_BY_TYPE" value="true" />
    <option name="SORT_CHILDREN" value="false" />
    <option name="SHOW_TABLE_CONSTRAINTS" value="true" />
    <PATH>
      <PATH_ELEMENT>
        <option name="myItemId" />
        <option name="myItemType" value="com.intellij.database.view.DbRootNodeDescriptor" />
      </PATH_ELEMENT>
    </PATH>
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="db" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="Example.java" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/src/app/Example.java">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.369863" vertical-offset="0" max-vertical-offset="584">
              <caret line="14" column="29" selection-start-line="14" selection-start-column="29" selection-end-line="14" selection-end-column="29" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="CharField.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/orm/fields/components/CharField.java">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="954" max-vertical-offset="1062">
              <caret line="54" column="0" selection-start-line="54" selection-start-column="0" selection-end-line="54" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="IConnection.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/orm/connection/IConnection.java">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="252" max-vertical-offset="360">
              <caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="IField.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/orm/fields/interfaces/IField.java">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="180" max-vertical-offset="288">
              <caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="ORM.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/orm/components/ORM.java">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="6552" max-vertical-offset="6660">
              <caret line="367" column="0" selection-start-line="367" selection-start-column="0" selection-end-line="367" selection-end-column="0" />
              <folding>
                <element signature="imports" expanded="true" />
                <element signature="method#delete#0;class#ORM#0" expanded="false" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="IEntity.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/orm/entity/IEntity.java">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="18" max-vertical-offset="162">
              <caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="JDBCConnection.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/orm/connection/JDBCConnection.java">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="1818" max-vertical-offset="1962">
              <caret line="105" column="0" selection-start-line="105" selection-start-column="0" selection-end-line="105" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/src/importer/interfaces/IImporter.java" />
        <option value="$PROJECT_DIR$/src/orm/entity/interfaces/IEntity.java" />
        <option value="$PROJECT_DIR$/src/orm/interfaces/IOrm.java" />
        <option value="$PROJECT_DIR$/src/orm/interfaces/IORM.java" />
        <option value="$PROJECT_DIR$/src/orm/components/interfaces/IORM.java" />
        <option value="$PROJECT_DIR$/src/orm/components/interfaces/ORM.java" />
        <option value="$PROJECT_DIR$/src/orm/fields/components/Field.java" />
        <option value="$PROJECT_DIR$/src/app/entities/Line.java" />
        <option value="$PROJECT_DIR$/src/orm/fields/interfaces/IField.java" />
        <option value="$PROJECT_DIR$/src/app/models/Line.java" />
        <option value="$PROJECT_DIR$/src/orm/fields/components/AutoIncrementField.java" />
        <option value="$PROJECT_DIR$/src/orm/components/IORM.java" />
        <option value="$PROJECT_DIR$/src/orm/connection/IConnection.java" />
        <option value="$PROJECT_DIR$/src/orm/components/ORM.java" />
        <option value="$PROJECT_DIR$/src/orm/connection/JDBCConnection.java" />
        <option value="$PROJECT_DIR$/src/orm/entity/Entity.java" />
        <option value="$PROJECT_DIR$/src/orm/entity/IEntity.java" />
        <option value="$PROJECT_DIR$/src/orm/fields/components/CharField.java" />
        <option value="$PROJECT_DIR$/src/app/Example.java" />
      </list>
    </option>
  </component>
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
  </component>
  <component name="MavenProjectNavigator">
    <treeState />
  </component>
  <component name="ProjectFrameBounds">
    <option name="width" value="1366" />
    <option name="height" value="748" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <OptionsSetting value="true" id="Undo Check Out" />
    <OptionsSetting value="true" id="Get Latest Version" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
    </navigator>
    <panes>
      <pane id="Scope" />
      <pane id="PackagesPane" />
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="orm" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="fields" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="interfaces" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="orm" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="fields" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="components" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="orm" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="entity" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="orm" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="connection" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="orm" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="components" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="app" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="db" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="app" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="models" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="GoToClass.includeLibraries" value="false" />
    <property name="GoToClass.toSaveIncludeLibraries" value="false" />
    <property name="GoToFile.includeJavaFiles" value="false" />
    <property name="MemberChooser.sorted" value="false" />
    <property name="MemberChooser.showClasses" value="true" />
    <property name="MemberChooser.copyJavadoc" value="false" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="OverrideImplement.combined" value="true" />
    <property name="OverrideImplement.overriding.sorted" value="false" />
    <property name="recentsLimit" value="5" />
    <property name="dynamic.classpath" value="false" />
    <property name="aspect.path.notification.shown" value="true" />
    <property name="options.lastSelected" value="preferences.keymap" />
    <property name="options.splitter.main.proportions" value="0.3" />
    <property name="options.splitter.details.proportions" value="0.2" />
    <property name="last_opened_file_path" value="$USER_HOME$/mysql-connector-java-5.1.34/mysql-connector-java-5.1.34-bin.jar!/" />
    <property name="project.structure.last.edited" value="Libraries" />
    <property name="project.structure.proportion" value="0.0" />
    <property name="project.structure.side.proportion" value="0.2" />
  </component>
  <component name="RunManager" selected="Application.Example">
    <configuration default="false" name="Example" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
        <pattern>
          <option name="PATTERN" value="app.*" />
          <option name="ENABLED" value="true" />
        </pattern>
      </extension>
      <option name="MAIN_CLASS_NAME" value="app.Example" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="db" />
      <envs />
      <RunnerSettings RunnerId="Run" />
      <ConfigurationWrapper RunnerId="Run" />
      <method />
    </configuration>
    <configuration default="true" type="JUnit" factoryName="JUnit">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="TEST_OBJECT" value="class" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <envs />
      <patterns />
      <method />
    </configuration>
    <configuration default="true" type="Remote" factoryName="Remote">
      <option name="USE_SOCKET_TRANSPORT" value="true" />
      <option name="SERVER_MODE" value="false" />
      <option name="SHMEM_ADDRESS" value="javadebug" />
      <option name="HOST" value="localhost" />
      <option name="PORT" value="5005" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidRunConfigurationType" factoryName="Android Application">
      <module name="" />
      <option name="ACTIVITY_CLASS" value="" />
      <option name="MODE" value="default_activity" />
      <option name="DEPLOY" value="true" />
      <option name="ARTIFACT_NAME" value="" />
      <option name="TARGET_SELECTION_MODE" value="EMULATOR" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <option name="USE_COMMAND_LINE" value="true" />
      <option name="COMMAND_LINE" value="" />
      <option name="WIPE_USER_DATA" value="false" />
      <option name="DISABLE_BOOT_ANIMATION" value="false" />
      <option name="NETWORK_SPEED" value="full" />
      <option name="NETWORK_LATENCY" value="none" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
      <option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
      <module name="" />
      <option name="TESTING_TYPE" value="0" />
      <option name="INSTRUMENTATION_RUNNER_CLASS" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="PACKAGE_NAME" value="" />
      <option name="TARGET_SELECTION_MODE" value="EMULATOR" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <option name="USE_COMMAND_LINE" value="true" />
      <option name="COMMAND_LINE" value="" />
      <option name="WIPE_USER_DATA" value="false" />
      <option name="DISABLE_BOOT_ANIMATION" value="false" />
      <option name="NETWORK_SPEED" value="full" />
      <option name="NETWORK_LATENCY" value="none" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
      <option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
      <method />
    </configuration>
    <configuration default="true" type="GradleRunConfiguration" factoryName="Gradle">
      <ExternalSystemSettings>
        <option name="executionName" />
        <option name="externalProjectPath" />
        <option name="externalSystemIdString" value="GRADLE" />
        <option name="scriptParameters" />
        <option name="taskDescriptions">
          <list />
        </option>
        <option name="taskNames">
          <list />
        </option>
        <option name="vmOptions" />
      </ExternalSystemSettings>
      <method />
    </configuration>
    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
      <module name="" />
      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
      <option name="PROGRAM_PARAMETERS" />
      <method />
    </configuration>
    <configuration default="true" type="Applet" factoryName="Applet">
      <module name="" />
      <option name="MAIN_CLASS_NAME" />
      <option name="HTML_FILE_NAME" />
      <option name="HTML_USED" value="false" />
      <option name="WIDTH" value="400" />
      <option name="HEIGHT" value="300" />
      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
      <option name="VM_PARAMETERS" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <method />
    </configuration>
    <configuration default="true" type="JarApplication" factoryName="JAR Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="Application" factoryName="Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="TestNG" factoryName="TestNG">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="SUITE_NAME" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="GROUP_NAME" />
      <option name="TEST_OBJECT" value="CLASS" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="OUTPUT_DIRECTORY" />
      <option name="ANNOTATION_TYPE" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <option name="USE_DEFAULT_REPORTERS" value="false" />
      <option name="PROPERTIES_FILE" />
      <envs />
      <properties />
      <listeners />
      <method />
    </configuration>
    <list size="1">
      <item index="0" class="java.lang.String" itemvalue="Application.Example" />
    </list>
    <recent_temporary>
      <list size="1">
        <item index="0" class="java.lang.String" itemvalue="Application.Example" />
      </list>
    </recent_temporary>
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="StructureViewFactory">
    <option name="ACTIVE_ACTIONS" value=",VISIBILITY_SORTER,ALPHA_COMPARATOR" />
  </component>
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="e58cce25-264c-467f-a3cd-1f84ff339c25" name="Default" comment="" />
      <created>1420786854325</created>
      <option name="number" value="Default" />
      <updated>1420786854325</updated>
      <workItem from="1420786857729" duration="571000" />
      <workItem from="1421334596407" duration="10000" />
      <workItem from="1421514982520" duration="52000" />
      <workItem from="1421515453802" duration="32595000" />
      <workItem from="1421688128961" duration="1453000" />
      <workItem from="1421964063591" duration="16000" />
    </task>
    <servers />
  </component>
  <component name="TimeTrackingManager">
    <option name="totallyTimeSpent" value="34697000" />
  </component>
  <component name="TodoView" selected-index="0">
    <todo-panel id="selected-file">
      <are-packages-shown value="false" />
      <are-modules-shown value="false" />
      <flatten-packages value="false" />
      <is-autoscroll-to-source value="true" />
    </todo-panel>
    <todo-panel id="all">
      <are-packages-shown value="true" />
      <are-modules-shown value="false" />
      <flatten-packages value="false" />
      <is-autoscroll-to-source value="true" />
    </todo-panel>
    <todo-panel id="default-changelist">
      <are-packages-shown value="false" />
      <are-modules-shown value="false" />
      <flatten-packages value="false" />
      <is-autoscroll-to-source value="false" />
    </todo-panel>
  </component>
  <component name="ToolWindowManager">
    <frame x="0" y="0" width="1366" height="748" extended-state="0" />
    <editor active="true" />
    <layout>
      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.329653" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32954547" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.16287878" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25770926" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="IDEtalk" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.1534508" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3280757" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39905363" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.19085173" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="IDEtalk Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.329653" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="VcsManagerConfiguration">
    <option name="myTodoPanelSettings">
      <TodoPanelSettings />
    </option>
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager>
      <option name="time" value="4" />
    </breakpoint-manager>
    <watches-manager />
  </component>
  <component name="antWorkspaceConfiguration">
    <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
    <option name="FILTER_TARGETS" value="false" />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/src/app/Example.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="450">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/fields/components/CharField.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="432" max-vertical-offset="540">
          <caret line="32" column="0" selection-start-line="32" selection-start-column="0" selection-end-line="32" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/connection/IConnection.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="180" max-vertical-offset="288">
          <caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/fields/interfaces/IField.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="108" max-vertical-offset="216">
          <caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/components/ORM.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="576" max-vertical-offset="684">
          <caret line="59" column="0" selection-start-line="59" selection-start-column="0" selection-end-line="59" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
            <element signature="method#delete#0;class#ORM#0" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/entity/IEntity.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="36" max-vertical-offset="288">
          <caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/connection/JDBCConnection.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="1296" max-vertical-offset="1440">
          <caret line="84" column="0" selection-start-line="84" selection-start-column="0" selection-end-line="84" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/vcs.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="198">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="234">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="270">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/compiler.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="486">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/components/ORM.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1098">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
            <element signature="method#delete#0;class#ORM#0" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="jar:///usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/rt.jar!/java/net/URLClassLoader.class">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="5688" max-vertical-offset="7524">
          <caret line="365" column="0" selection-start-line="365" selection-start-column="0" selection-end-line="365" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/connection/JDBCConnection.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="162" max-vertical-offset="1692">
          <caret line="18" column="45" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/app/Example.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="270" max-vertical-offset="450">
          <caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="756" max-vertical-offset="13266">
          <caret line="42" column="53" selection-start-line="42" selection-start-column="53" selection-end-line="42" selection-end-column="53" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/vcs.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="198">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="234">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="270">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/compiler.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="486">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/components/ORM.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1098">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
            <element signature="method#delete#0;class#ORM#0" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="jar:///usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/rt.jar!/java/net/URLClassLoader.class">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="5652" max-vertical-offset="7416">
          <caret line="365" column="0" selection-start-line="365" selection-start-column="0" selection-end-line="365" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/connection/JDBCConnection.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="162" max-vertical-offset="1692">
          <caret line="18" column="45" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/app/Example.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="270" max-vertical-offset="450">
          <caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="756" max-vertical-offset="15282">
          <caret line="42" column="53" selection-start-line="42" selection-start-column="53" selection-end-line="42" selection-end-column="53" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/vcs.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="198">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="252">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="270">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/compiler.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="486">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/components/ORM.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1170">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
            <element signature="method#delete#0;class#ORM#0" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="jar:///usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/rt.jar!/java/net/URLClassLoader.class">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="5688" max-vertical-offset="7524">
          <caret line="365" column="0" selection-start-line="365" selection-start-column="0" selection-end-line="365" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/connection/JDBCConnection.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="162" max-vertical-offset="1692">
          <caret line="18" column="45" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/db.iml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="288">
          <caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/vcs.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="633">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="633">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="620">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/compiler.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="633">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="2988" max-vertical-offset="22950">
          <caret line="166" column="12" selection-start-line="166" selection-start-column="12" selection-end-line="166" selection-end-column="12" />
        </state>
      </provider>
    </entry>
    <entry file="jar:///usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/rt.jar!/java/net/URLClassLoader.class">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="5688" max-vertical-offset="7524">
          <caret line="365" column="0" selection-start-line="365" selection-start-column="0" selection-end-line="365" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="jar:///usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar!/java/lang/reflect/Field.class">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-7.2" vertical-offset="1530" max-vertical-offset="6228">
          <caret line="128" column="8" selection-start-line="128" selection-start-column="8" selection-end-line="128" selection-end-column="8" />
        </state>
      </provider>
    </entry>
    <entry file="jar:///usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar!/java/sql/ResultSet.class">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-5.08" vertical-offset="1709" max-vertical-offset="7308">
          <caret line="125" column="19" selection-start-line="125" selection-start-column="19" selection-end-line="125" selection-end-column="19" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$USER_HOME$/mysql-connector-java-5.1.34/mysql-connector-java-5.1.34-bin.jar!/com/mysql/jdbc/SQLError.class">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-67.56" vertical-offset="7203" max-vertical-offset="18144">
          <caret line="527" column="27" selection-start-line="527" selection-start-column="27" selection-end-line="527" selection-end-column="27" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$USER_HOME$/mysql-connector-java-5.1.34/mysql-connector-java-5.1.34-bin.jar!/com/mysql/jdbc/ResultSetImpl.class">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-4.56" vertical-offset="12846" max-vertical-offset="79056">
          <caret line="780" column="0" selection-start-line="780" selection-start-column="0" selection-end-line="780" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/components/IORM.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="450">
          <caret line="9" column="22" selection-start-line="9" selection-start-column="22" selection-end-line="9" selection-end-column="22" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/connection/IConnection.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="252" max-vertical-offset="360">
          <caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/connection/JDBCConnection.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="1818" max-vertical-offset="1962">
          <caret line="105" column="0" selection-start-line="105" selection-start-column="0" selection-end-line="105" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/fields/components/CharField.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="954" max-vertical-offset="1062">
          <caret line="54" column="0" selection-start-line="54" selection-start-column="0" selection-end-line="54" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/components/ORM.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="6552" max-vertical-offset="6660">
          <caret line="367" column="0" selection-start-line="367" selection-start-column="0" selection-end-line="367" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
            <element signature="method#delete#0;class#ORM#0" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/entity/IEntity.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="18" max-vertical-offset="162">
          <caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/orm/fields/interfaces/IField.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="180" max-vertical-offset="288">
          <caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/app/Example.java">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.369863" vertical-offset="0" max-vertical-offset="584">
          <caret line="14" column="29" selection-start-line="14" selection-start-column="29" selection-end-line="14" selection-end-column="29" />
          <folding />
        </state>
      </provider>
    </entry>
  </component>
  <component name="masterDetails">
    <states>
      <state key="ArtifactsStructureConfigurable.UI">
        <settings>
          <artifact-editor />
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="FacetStructureConfigurable.UI">
        <settings>
          <last-edited>No facets are configured</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="GlobalLibrariesConfigurable.UI">
        <settings>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="JdkListConfigurable.UI">
        <settings>
          <last-edited>1.7</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ModuleStructureConfigurable.UI">
        <settings>
          <last-edited>db</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ProjectLibrariesConfigurable.UI">
        <settings>
          <last-edited>mysql-connector-java-5.1.34-bin</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
    </states>
  </component>
</project>


text:
'use strict'

const intervals = require('../constants/intervals')
const matchEvents = require('../stages/matchEvents')

module.exports = (ids, average, interval, limit, dateDetails) => {
	const aggregation = [
		matchEvents(ids),
		{
			$group: {
				_id: {},
			},
		},
	]

	aggregation[0].$match.created = { $gte: dateDetails.includeFnByInterval(interval)(limit) }
	aggregation[1].$group.count = average === true ? { $avg: '$value' } : { $sum: '$value' }

	const dateExpression = { date: '$created', timezone: dateDetails.userTimeZone }
	const matchDay = [ intervals.INTERVALS_DAILY ].includes(interval)
	const matchMonth = [ intervals.INTERVALS_DAILY, intervals.INTERVALS_MONTHLY ].includes(interval)
	const matchYear = [ intervals.INTERVALS_DAILY, intervals.INTERVALS_MONTHLY, intervals.INTERVALS_YEARLY ].includes(interval)

	if (matchDay === true) aggregation[1].$group._id.day = { $dayOfMonth: dateExpression }
	if (matchMonth === true) aggregation[1].$group._id.month = { $month: dateExpression }
	if (matchYear === true) aggregation[1].$group._id.year = { $year: dateExpression }

	return aggregation
}


text:
<resources>
    <string name="build_type">Debug</string>
</resources>


text:
using Newtonsoft.Json;
using System;
using System.Reflection;
using System.Text.RegularExpressions;

namespace Sensus.Probes.User.Scripts
{
    /// <summary>
    /// Represents a condition under which a scripted probe is run.
    /// </summary>
    public class Trigger
    {
        private object _conditionValue;
        private Type _conditionValueEnumType;

        public Probe Probe { get; set; }

        public string DatumPropertyName { get; set; }

        [JsonIgnore]
        public PropertyInfo DatumProperty => Probe.DatumType.GetProperty(DatumPropertyName);

        public TriggerValueCondition Condition { get; set; }

        public object ConditionValue
        {
            get { return _conditionValue; }
            set
            {
                _conditionValue = value;

                // convert to enumerated type if we have the string type name
                if (_conditionValueEnumType != null)
                {
                    _conditionValue = Enum.ToObject(_conditionValueEnumType, _conditionValue);
                }
            }
        }

        /// <summary>
        /// This is a workaround for an odd behavior of JSON.NET, which serializes enumerations as integers. We happen to be deserializing them as objects
        /// into ConditionValue, which means they are stored as integers after deserialization. Integers are not comparable with the enumerated values
        /// that come off the probes, so we need to jump through some hoops during deserization (i.e., below and above). Below, gettings and setting the
        /// value works off of the enumerated type that should be used for the ConditionValue above. When either the below or above are set, they check
        /// for the existence of the other and convert the number returned by JSON.NET to its appropriate enumerated type.
        /// </summary>
        public string ConditionValueEnumType
        {
            get { return _conditionValue is Enum ? _conditionValue.GetType().FullName : null; }
            set
            {
                if (value != null)
                {
                    _conditionValueEnumType = Assembly.GetExecutingAssembly().GetType(value);

                    // convert to enumerated type if we have the integer value
                    if (_conditionValue != null)
                    {
                        _conditionValue = Enum.ToObject(_conditionValueEnumType, _conditionValue);
                    }
                }
            }
        }

        public bool Change { get; set; }

        public bool FireRepeatedly { get; set; }

        public bool FireValueConditionMetOnPreviousCall { get; set; }

        public string RegularExpressionText { get; set; }

        public TimeSpan StartTime { get; set; }

        public TimeSpan EndTime { get; set; }

        private Trigger()
        {
            Reset();
        }

        public Trigger(Probe probe, PropertyInfo datumProperty, TriggerValueCondition condition, object conditionValue, bool change, bool fireRepeatedly, bool useRegularExpressions, TimeSpan startTime, TimeSpan endTime) : this()
        {
            if (probe == null) throw new Exception("Trigger is missing Probe selection.");
            if (datumProperty == null) throw new Exception("Trigger is missing Property selection.");
            if (conditionValue == null) throw new Exception("Trigger is missing Value selection.");
            if (endTime <= startTime) throw new Exception("Trigger Start Time must precede End Time.");

            Probe = probe;
            DatumPropertyName = datumProperty.Name;
            Condition = condition;
            _conditionValue = conditionValue;
            Change = change;
            FireRepeatedly = fireRepeatedly;
            StartTime = startTime;
            EndTime = endTime;

            if (useRegularExpressions)
            {
                RegularExpressionText = _conditionValue.ToString();
            }
        }

        public void Reset()
        {
            FireValueConditionMetOnPreviousCall = false;
        }

        public bool FireFor(object value)
        {
            try
            {
                var fireValueConditionMet = FireValueConditionMet(value);
                var fireRepeatConditionMet = FireRepeatConditionMet();
                var fireWindowConditionMet = FireWindowConditionMet();

                FireValueConditionMetOnPreviousCall = fireValueConditionMet;

                return fireValueConditionMet && fireRepeatConditionMet && fireWindowConditionMet;
            }
            catch (Exception ex)
            {
                SensusServiceHelper.Get().Logger.Log(ex.Message, LoggingLevel.Normal, GetType());
                return false;
            }
        }

        public override string ToString()
        {
            return $"{Probe.DisplayName} ({DatumPropertyName} {Condition} {_conditionValue})";
        }

        public override bool Equals(object obj)
        {
            var trigger = obj as Trigger;

            return trigger != null && Probe == trigger.Probe && DatumPropertyName == trigger.DatumPropertyName && Condition == trigger.Condition && ConditionValue == trigger.ConditionValue && Change == trigger.Change;
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        #region Private Methods
        private bool FireValueConditionMet(object value)
        {
            if (RegularExpressionText == null)
            {
                try
                {
                    var compareTo = ((IComparable)value).CompareTo(_conditionValue);

                    if (Condition == TriggerValueCondition.EqualTo) return compareTo == 0;
                    if (Condition == TriggerValueCondition.GreaterThan) return compareTo > 0;
                    if (Condition == TriggerValueCondition.GreaterThanOrEqualTo) return compareTo >= 0;
                    if (Condition == TriggerValueCondition.LessThan) return compareTo < 0;
                    if (Condition == TriggerValueCondition.LessThanOrEqualTo) return compareTo <= 0;
                    if (Condition == TriggerValueCondition.NotEqualTo) return compareTo != 0;

                    throw new Exception($"Trigger failed recognize Condition:  {Condition}");
                }
                catch (Exception ex)
                {
                    throw new Exception($"Trigger failed to compare values:  {ex.Message}", ex);
                }
            }
            else
            {
                try
                {
                    return Regex.IsMatch(value.ToString(), RegularExpressionText);
                }
                catch (Exception ex)
                {
                    throw new Exception($"Trigger failed to run Regex.Match:  {ex.Message}", ex);
                }
            }
        }

        private bool FireRepeatConditionMet()
        {
            return FireRepeatedly || !FireValueConditionMetOnPreviousCall;
        }

        private bool FireWindowConditionMet()
        {
            return StartTime <= DateTime.Now.TimeOfDay && DateTime.Now.TimeOfDay <= EndTime;
        }
        #endregion
    }
}


text:
/**
* Edion's current SSID name
*/

var util = require('util'),
  os = require('os'),
  exec = require('child_process').exec,
  bleno = require('bleno'),
  Descriptor = bleno.Descriptor,
  Characteristic = bleno.Characteristic;

/**
* Reference:
* https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.manufacturer_name_string.xml
*/
var EdisonSSIDCharacteristic = function() {
  EdisonSSIDCharacteristic.super_.call(this, {
      uuid: '03f70ee0-0ef6-4c84-8d23-70af94b8a4f0',
      properties: ['read'],
      value: new Buffer('none','utf8'),
      descriptors: [
        new Descriptor({
        uuid: '2901',
        value: 'SSID'
      })]
  });
};

util.inherits(EdisonSSIDCharacteristic, Characteristic);

EdisonSSIDCharacteristic.prototype.onReadRequest = function(offset, callback) {
    // Fetch free space in M
    exec('wpa_cli status | grep -w ssid | tr -d \'ssid=\'', function (error, stdout, stderr) {
      var data = stdout.toString().replace(/(\r\n|\n|\r)/gm,"");
      console.log("SSID Name: " + data);
      callback(this.RESULT_SUCCESS, new Buffer(data));
    });
};

module.exports = EdisonSSIDCharacteristic;


text:
@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

#pragma mark - AppUtility
@property GCAppUtility *utility;

@end


text:
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
	<id>bin</id>
  <formats>
    <format>zip</format>
	<format>tar.gz</format>
  </formats>
  <files>
    <file>
      <source>README.md</source>
	  <destName>README.txt</destName>
      <outputDirectory>/</outputDirectory>
      <filtered>true</filtered>
    </file>
    <file>
      <source>LICENSE</source>
	  <destName>LICENSE.txt</destName>
      <outputDirectory>/</outputDirectory>
    </file>
    <file>
      <source>LICENSE.duo-security</source>
	  <destName>LICENSE.duo-security.txt</destName>
      <outputDirectory>/</outputDirectory>
      <filtered>true</filtered>
    </file>
	<file>
		<source>src/main/conf/duo.vm</source>
		<outputDirectory>/</outputDirectory>
		<filtered>false</filtered>
	</file>
  </files>
  <fileSets>
	  <fileSet>
		  <directory>target</directory>
		  <outputDirectory>/</outputDirectory>
		  <includes>
			  <include>mcb-duo-${project.version}.jar</include>
		  </includes>
	  </fileSet>
  </fileSets>
</assembly>


text:
// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using Microsoft.CodeAnalysis.Operations;

namespace Microsoft.CodeAnalysis.CSharp
{
    internal class CSharpOperationCloner : OperationCloner
    {
        public static OperationCloner Instance { get; } = new CSharpOperationCloner();

        public override IOperation VisitArgument(IArgumentOperation operation, object argument)
        {
            return new CSharpArgument(operation.ArgumentKind, operation.Parameter, Visit(operation.Value), ((Operation)operation).SemanticModel, operation.Syntax, operation.ConstantValue, operation.IsImplicit);
        }

        public override IOperation VisitConversion(IConversionOperation operation, object argument)
        {
            return new CSharpConversionExpression(Visit(operation.Operand), operation.GetConversion(), operation.IsTryCast, operation.IsChecked, ((Operation)operation).SemanticModel, operation.Syntax, operation.Type, operation.ConstantValue, operation.IsImplicit);
        }

        public override IOperation VisitCompoundAssignment(ICompoundAssignmentOperation operation, object argument)
        {
            var compoundAssignment = (BaseCSharpCompoundAssignmentOperation)operation;
            return new CSharpCompoundAssignmentOperation(Visit(operation.Target), Visit(operation.Value), compoundAssignment.InConversionInternal, compoundAssignment.OutConversionInternal, operation.OperatorKind, operation.IsLifted, operation.IsChecked, operation.OperatorMethod, ((Operation)operation).SemanticModel, operation.Syntax, operation.Type, operation.ConstantValue, operation.IsImplicit);
        }
    }
}


text:
<?php

require_once 'lib/autoload.php';

use PHPUnit\Framework\TestCase;
use \MatthiasMullie\Minify;

class AssetParserTest extends TestCase
{
	private $appObj;
	private $obj;
	private $assetDir;

	public function setUp()
	{
		$this->appObj = $this->getMockForAbstractClass('\CHZApp\Application');
		$this->appObj->setSession($this->createMock('\CHZApp\Session'));

		$this->obj = $this->appObj->getAssetParser();
		$this->assetDir = join(DIRECTORY_SEPARATOR, [
			__DIR__,
			'asset'
		]);
	}

	public function testGetSqlCache()
	{
		$sqlObj = $this->obj->getSqlCache();
		$this->assertNotNull($sqlObj);
		$this->assertInstanceOf('\CHZApp\AssetSQLiteCache', $sqlObj);
		$this->assertInstanceOf('\CHZApp\Component', $sqlObj);
		$this->assertInstanceOf('\CHZApp\Interfaces\IComponent', $sqlObj);

		$sessObj = $sqlObj->getSession();
		$this->assertNotNull($sessObj);
		$this->assertInstanceOf('\CHZApp\Interfaces\ICrypto', $sessObj);
		$this->assertInstanceOf('\CHZApp\Interfaces\ISession', $sessObj);
		$this->assertInstanceOf('\CHZApp\Interfaces\IComponent', $sessObj);
		$this->assertInstanceOf('\CHZApp\ConfigComponent', $sessObj);
		$this->assertInstanceOf('\CHZApp\Component', $sessObj);
		$this->assertInstanceOf('\CHZApp\Session', $sessObj);
	}

	public function testScss()
	{
		$scssTestFile = join(DIRECTORY_SEPARATOR, [
			$this->assetDir,
			'test.scss'
		]);
		$scssCompiledFile = join(DIRECTORY_SEPARATOR, [
			$this->assetDir,
			'test-compiled.css'
		]);

		$scssCompiled = file_get_contents($scssCompiledFile);
		$scssComp = $this->obj->scss($scssTestFile);

		$this->assertEquals($scssComp, $scssCompiled);
	}

	public function testCoffeeScript()
	{
		$coffeeTestFile = join(DIRECTORY_SEPARATOR, [
			$this->assetDir,
			'test.coffee'
		]);
		$coffeeCompiled = join(DIRECTORY_SEPARATOR, [
			$this->assetDir,
			'test-min.js'
		]);

		$coffee = file_get_contents($coffeeCompiled);
		$js = $this->obj->coffeeScript($coffeeTestFile);

		$this->assertEquals($js, $coffee);
	}
}


text:
package com.netflix.atlas.core.model

object SummaryStats {

  import java.lang.{Double => JDouble}

  def apply(ts: TimeSeries, start: Long, end: Long): SummaryStats = {
    var total = 0.0
    var count = 0
    var max = JDouble.MIN_VALUE
    var min = JDouble.MAX_VALUE
    var last = JDouble.NaN

    ts.data.foreach(start, end) { (t, v) =>
      if (!JDouble.isNaN(v)) {
        total += v
        count += 1
        max = if (v > max) v else max
        min = if (v < min) v else min
        last = v
      }
    }

    if (count == 0) SummaryStats.empty else SummaryStats(count, min, max, last, total)
  }

  val empty = SummaryStats(0, Double.NaN, Double.NaN, Double.NaN, Double.NaN)
}

case class SummaryStats(count: Int, min: Double, max: Double, last: Double, total: Double) {
  def avg: Double = if (count > 0) total / count else Double.NaN
}


text:
package org.apache.camel.component.olingo2.api.batch;

import java.util.Map;

/**
 * Batch Change part.
 */
public class Olingo2BatchChangeRequest extends Olingo2BatchRequest {

    protected String contentId;
    protected Operation operation;
    protected Object body;

    public Operation getOperation() {
        return operation;
    }

    public Object getBody() {
        return body;
    }

    public String getContentId() {
        return contentId;
    }

    @Override
    public String toString() {
        return new StringBuilder("Batch Change Request{ ")
            .append(resourcePath)
            .append(", headers=").append(headers)
            .append(", contentId=").append(contentId)
            .append(", operation=").append(operation)
            .append(", body=").append(body)
            .append('}')
            .toString();
    }

    public static Olingo2BatchChangeRequestBuilder resourcePath(String resourcePath) {
        if (resourcePath == null) {
            throw new IllegalArgumentException("resourcePath");
        }
        return new Olingo2BatchChangeRequestBuilder().resourcePath(resourcePath);
    }

    public static class Olingo2BatchChangeRequestBuilder {

        private Olingo2BatchChangeRequest request = new Olingo2BatchChangeRequest();

        public Olingo2BatchChangeRequestBuilder resourcePath(String resourcePath) {
            request.resourcePath = resourcePath;
            return this;
        }

        public Olingo2BatchChangeRequestBuilder headers(Map<String, String> headers) {
            request.headers = headers;
            return this;
        }

        public Olingo2BatchChangeRequestBuilder contentId(String contentId) {
            request.contentId = contentId;
            return this;
        }

        public Olingo2BatchChangeRequestBuilder operation(Operation operation) {
            request.operation = operation;
            return this;
        }

        public Olingo2BatchChangeRequestBuilder body(Object body) {
            request.body = body;
            return this;
        }

        public Olingo2BatchChangeRequest build() {
            // avoid later NPEs
            if (request.resourcePath == null) {
                throw new IllegalArgumentException("Null resourcePath");
            }
            if (request.operation == null) {
                throw new IllegalArgumentException("Null operation");
            }
            if (request.operation != Operation.DELETE && request.body == null) {
                throw new IllegalArgumentException("Null body");
            }
            return request;
        }
    }
}


text:
(function(){

  function set_cookie ($coupon_code_parem,$expires_parem){
    document.cookie = 'cc=' + $coupon_code_parem + '; expires=' + $expires_parem + ';';
  }

  function coupon_from_url (){
    if (window.location.href.indexOf('cc=') > -1){
      var $coupon_code = window.location.href.split('cc=')[1].split('&')[0];
      set_cookie($coupon_code,0);
    }
  }

  function add_coupon ($coupon_code_parem){
    jQuery('#cart-form').prepend('

Discount Code
<input type="text" name="discount" style="color:#6dc01d!important;text-align:center;border-color:gray;"/>
Discount codes will be applied at check out.

');
    jQuery('#coupon_code input').val($coupon_code_parem);
  }

  function read_cookie (){
    var $cookie = document.cookie.split(';'),
    $coupon_code = '',
    $cookie_length = $cookie.length;

    for (i=0; i<$cookie_length; i++){
      if ($cookie[i].indexOf('cc=') > -1) {
        $coupon_code = $cookie[i].split('cc=')[1];
        add_coupon($coupon_code);
      }
    }
  }

  function cart_page (){
    if (window.location.pathname.indexOf('/cart') > -1){
      read_cookie();
    } else {
      coupon_from_url();
    }
  }

  cart_page();

})();


text:
package org.apache.spark.deploy.yarn.security

import java.util.ServiceLoader

import scala.collection.JavaConverters._

import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.security.Credentials

import org.apache.spark.SparkConf
import org.apache.spark.deploy.security.HadoopDelegationTokenManager
import org.apache.spark.deploy.yarn.YarnSparkHadoopUtil
import org.apache.spark.internal.Logging
import org.apache.spark.util.Utils

/**
 * This class loads delegation token providers registered under the YARN-specific
 * [[ServiceCredentialProvider]] interface, as well as the builtin providers defined
 * in [[HadoopDelegationTokenManager]].
 */
private[yarn] class YARNHadoopDelegationTokenManager(
    sparkConf: SparkConf,
    hadoopConf: Configuration) extends Logging {

  private val delegationTokenManager = new HadoopDelegationTokenManager(sparkConf, hadoopConf,
    conf => YarnSparkHadoopUtil.hadoopFSsToAccess(sparkConf, conf))

  // public for testing
  val credentialProviders = getCredentialProviders

  /**
   * Writes delegation tokens to creds.  Delegation tokens are fetched from all registered
   * providers.
   *
   * @return Time after which the fetched delegation tokens should be renewed.
   */
  def obtainDelegationTokens(hadoopConf: Configuration, creds: Credentials): Long = {
    val superInterval = delegationTokenManager.obtainDelegationTokens(hadoopConf, creds)

    credentialProviders.values.flatMap { provider =>
      if (provider.credentialsRequired(hadoopConf)) {
        provider.obtainCredentials(hadoopConf, sparkConf, creds)
      } else {
        logDebug(s"Service ${provider.serviceName} does not require a token." +
          s" Check your configuration to see if security is disabled or not.")
        None
      }
    }.foldLeft(superInterval)(math.min)
  }

  private def getCredentialProviders: Map[String, ServiceCredentialProvider] = {
    val providers = loadCredentialProviders

    providers.
      filter { p => delegationTokenManager.isServiceEnabled(p.serviceName) }
      .map { p => (p.serviceName, p) }
      .toMap
  }

  private def loadCredentialProviders: List[ServiceCredentialProvider] = {
    ServiceLoader.load(classOf[ServiceCredentialProvider], Utils.getContextOrSparkClassLoader)
      .asScala
      .toList
  }
}


text:
{% extends "wiki/base.html" %}

{% load i18n %}
{% load wiki_tags %}
{% load group_tags %}
{% load markup_tags %}
{% load extra_tagging_tags %}

{% block head_title %}Wiki for {{ group.name }} - {{ article.title }} {% endblock %}

{% block body %}

    {% if allow_write or article.id %}

{% trans "Actions" %}

            {% if article.id %}

            {% if allow_write %}
{% trans "Edit this article" %}

            {% endif %}

{% trans "Editing history" %}

            {% else %}

{% trans "Create this article" %}

            {% endif %}

    {% endif %}

    {% wiki_title group %}

{{ article.title }}

    {% if not article.id and allow_write %}

            {% trans "This article does not exist." %}
            Create it now?" %}

    {% endif %}

    {{ article.content|apply_markup:article.markup|wiki_links }}

    {% show_tags_for article %}

    {# @@@ this should be done via inclusion tag provided by notification #}
    {% if article.id and can_observe %}
        {% if is_observing %}
            <form action="{% groupurl wiki_stop_observing group title=article.title %}" method="post">
                <input type="submit" value="{% trans "Stop Observing Article" %}">
            </form>
        {% else %}
            <form action="{% groupurl wiki_observe group title=article.title %}" method="post">
                <input type="submit" value="{% trans "Observe Article" %}">
            </form>
        {% endif %}
    {% endif %}
{% endblock %}


text:
ES5Harness.registerTest( {
id: "15.5.4.20-0-2",

path: "TestCases/chapter15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js",

description: "String.prototype.trim must exist as a function taking 0 parameters",

test: function testcase() {
  if (String.prototype.trim.length === 0) {
    return true;
  }
 },

precondition: function prereq() {
  return fnExists(String.prototype.trim);
 }
});


text:
/**
 * Information about the tracing.jaeger package
 */
@org.checkerframework.framework.qual.DefaultQualifier(value = org.checkerframework.checker.nullness.qual.NonNull.class)
@org.eclipse.jdt.annotation.NonNullByDefault
package com.diamondq.common.tracing.jaeger;


text:
HEADER_BEGIN

typedef unsigned char byte;

#define GC_MAX_REFS 65536
#define GC_MINCHUNK_SIZE 256
#define GC_MINHEAP_SIZE (1024 * 64)
#define GC_MAJHEAP_SIZE (1024 * 1024 * 32)
#define GC_MINCHUNKS (GC_MINHEAP_SIZE / GC_MINCHUNK_SIZE)

struct _mun_alloc{
  byte minor_heap[GC_MINHEAP_SIZE];
  byte major_heap[GC_MAJHEAP_SIZE];

  int free_chunk;
  int refs_count;

  void* backpatch[GC_MINCHUNKS];
  void** references[GC_MAX_REFS][2];
};

void mun_gc_init(mun_alloc* alloc);
void mun_gc_add_ref(mun_alloc* alloc, void* ref);
void mun_gc_del_ref(mun_alloc* alloc, void* ref);
void mun_gc_minor(mun_alloc* alloc);
void mun_gc_major(mun_alloc* alloc);

void* mun_gc_alloc(mun_alloc* alloc, size_t size);

#ifdef MUN_DEBUG
void mun_gc_print_minor(mun_alloc* alloc);
void mun_gc_print_major(mun_alloc* alloc);
void mun_gc_print_refs(mun_alloc* alloc);
#endif

HEADER_END

#endif