text:
const { parse: parseClaim } = require('./parse_claim')
const { uniq } = require('../utils/utils')

// Expects an entity 'claims' object
// Ex: entity.claims
const simplifyClaims = function (claims, ...options) {
  const { propertyPrefix } = parseOptions(options)
  const simpleClaims = {}
  for (let id in claims) {
    let propClaims = claims[id]
    if (propertyPrefix) {
      id = propertyPrefix + ':' + id
    }
    simpleClaims[id] = simplifyPropertyClaims(propClaims, ...options)
  }
  return simpleClaims
}

// Expects the 'claims' array of a particular property
// Ex: entity.claims.P369
const simplifyPropertyClaims = function (propClaims, ...options) {
  // Avoid to throw on empty inputs to allow to simplify claims array
  // without having to know if the entity as claims for this property
  // Ex: simplifyPropertyClaims(entity.claims.P124211616)
  if (propClaims == null || propClaims.length === 0) return []

  const { keepNonTruthy, areSubSnaks } = parseOptions(options)
  if (!(keepNonTruthy || areSubSnaks)) {
    propClaims = truthyPropertyClaims(propClaims)
  }

  propClaims = propClaims
    .map(claim => simplifyClaim(claim, ...options))
    // Filter-out novalue and somevalue claims,
    // unless a novalueValue or a somevalueValue is passed in options
    .filter(defined)

  // Deduplicate values unless we return a rich value object
  if (propClaims[0] && typeof propClaims[0] !== 'object') {
    return uniq(propClaims)
  } else {
    return propClaims
  }
}

const aggregatePerRank = function (aggregate, claim) {
  const { rank } = claim
  aggregate[rank] || (aggregate[rank] = [])
  aggregate[rank].push(claim)
  return aggregate
}

const truthyPropertyClaims = function (propClaims) {
  const aggregate = propClaims.reduce(aggregatePerRank, {})
  // on truthyness: https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Truthy_statements
  return aggregate.preferred || aggregate.normal || []
}

const truthyClaims = function (claims) {
  const truthClaimsOnly = {}
  Object.keys(claims).forEach(property => {
    truthClaimsOnly[property] = truthyPropertyClaims(claims[property])
  })
  return truthClaimsOnly
}

// Considers null as defined
const defined = obj => obj !== undefined

// Expects a single claim object
// Ex: entity.claims.P369[0]
const simplifyClaim = function (claim, ...options) {
  options = parseOptions(options)
  const { keepQualifiers, keepReferences, keepIds, keepHashes, keepTypes, keepSnaktypes, keepRanks } = parseKeepOptions(options)

  // tries to replace wikidata deep claim object by a simple value
  // e.g. a string, an entity Qid or an epoch time number
  const { mainsnak, rank } = claim

  var value, datatype, datavalue, snaktype, isQualifierSnak, isReferenceSnak
  if (mainsnak) {
    datatype = mainsnak.datatype
    datavalue = mainsnak.datavalue
    snaktype = mainsnak.snaktype
  } else {
    // Qualifiers have no mainsnak, and define datatype, datavalue on claim
    datavalue = claim.datavalue
    datatype = claim.datatype
    snaktype = claim.snaktype
    // Duck typing the sub-snak type
    if (claim.hash) isQualifierSnak = true
    else isReferenceSnak = true
  }

  if (datavalue) {
    value = parseClaim(datatype, datavalue, options, claim.id)
  } else {
    if (snaktype === 'somevalue') value = options.somevalueValue
    else if (snaktype === 'novalue') value = options.novalueValue
    else throw new Error('no datavalue or special snaktype found')
  }

  // Qualifiers should not attempt to keep sub-qualifiers or references
  if (isQualifierSnak) {
    if (!(keepHashes || keepTypes || keepSnaktypes)) return value

    const richValue = { value }

    if (keepHashes) richValue.hash = claim.hash
    if (keepTypes) richValue.type = datatype
    if (keepSnaktypes) richValue.snaktype = snaktype

    return richValue
  }

  if (isReferenceSnak) {
    if (!keepTypes) return value

    return { type: datatype, value }
  }

  // No need to test keepHashes as it has no effect if neither
  // keepQualifiers or keepReferences is true
  if (!(keepQualifiers || keepReferences || keepIds || keepTypes || keepSnaktypes || keepRanks)) {
    return value
  }

  // When keeping qualifiers or references, the value becomes an object
  // instead of a direct value
  const richValue = { value }

  if (keepTypes) richValue.type = datatype

  if (keepSnaktypes) richValue.snaktype = snaktype

  if (keepRanks) richValue.rank = rank

  const subSnaksOptions = getSubSnakOptions(options)
  subSnaksOptions.keepHashes = keepHashes

  if (keepQualifiers) {
    richValue.qualifiers = simplifyClaims(claim.qualifiers, subSnaksOptions)
  }

  if (keepReferences) {
    claim.references = claim.references || []
    richValue.references = claim.references.map(refRecord => {
      const snaks = simplifyClaims(refRecord.snaks, subSnaksOptions)
      if (keepHashes) return { snaks, hash: refRecord.hash }
      else return snaks
    })
  }

  if (keepIds) richValue.id = claim.id

  return richValue
}

const parseOptions = function (options) {
  if (options == null) return {}

  if (options[0] && typeof options[0] === 'object') return options[0]

  // Legacy interface
  var [ entityPrefix, propertyPrefix, keepQualifiers ] = options
  return { entityPrefix, propertyPrefix, keepQualifiers }
}

const simplifyQualifiers = (claims, options) => {
  return simplifyClaims(claims, getSubSnakOptions(options))
}

const simplifyPropertyQualifiers = (propClaims, options) => {
  return simplifyPropertyClaims(propClaims, getSubSnakOptions(options))
}

// Using a new object so that the original options object isn't modified
const getSubSnakOptions = options => {
  return Object.assign({}, options, { areSubSnaks: true })
}

const keepOptions = [ 'keepQualifiers', 'keepReferences', 'keepIds', 'keepHashes', 'keepTypes', 'keepSnaktypes', 'keepRanks' ]
const parseKeepOptions = options => {
  if (options.keepAll) {
    keepOptions.forEach(optionName => {
      if (options[optionName] == null) options[optionName] = true
    })
  }
  return options
}

module.exports = {
  simplifyClaims,
  simplifyPropertyClaims,
  simplifyClaim,
  truthyClaims,
  truthyPropertyClaims,
  simplifyQualifiers,
  simplifyPropertyQualifiers,
  simplifyQualifier: simplifyClaim
}


text:
/** @constructor */
ScalaJS.c.scala_scalajs_js_Dictionary$ = (function() {
  ScalaJS.c.java_lang_Object.call(this)
});
ScalaJS.c.scala_scalajs_js_Dictionary$.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.scala_scalajs_js_Dictionary$.prototype.constructor = ScalaJS.c.scala_scalajs_js_Dictionary$;
ScalaJS.c.scala_scalajs_js_Dictionary$.prototype.empty__Lscala_scalajs_js_Dictionary = (function() {
  return {}
});
ScalaJS.c.scala_scalajs_js_Dictionary$.prototype.apply__Lscala_collection_Seq__Lscala_scalajs_js_Dictionary = (function(properties) {
  var result = this.empty__Lscala_scalajs_js_Dictionary();
  properties.withFilter__Lscala_Function1__Lscala_collection_generic_FilterMonadic(new ScalaJS.c.scala_scalajs_runtime_AnonFunction1().init___Lscala_scalajs_js_Function1((function() {
    return (function(check$ifrefutable$1) {
      var x1 = check$ifrefutable$1;
      matchEnd3: {
        if ((x1 !== null)) {
          var jsx$1 = true;
          break matchEnd3
        };
        var jsx$1 = false;
        break matchEnd3
      };
      return ScalaJS.bZ(jsx$1)
    })
  })())).foreach__Lscala_Function1__V(new ScalaJS.c.scala_scalajs_runtime_AnonFunction1().init___Lscala_scalajs_js_Function1((function(result$1) {
    return (function(x$1) {
      var x1 = x$1;
      matchEnd3: {
        if ((x1 !== null)) {
          var key = x1.$$und1__O();
          var value = x1.$$und2__O();
          result$1[key] = value;
          ScalaJS.modules.scala_runtime_BoxedUnit().UNIT__Lscala_runtime_BoxedUnit();
          break matchEnd3
        };
        throw new ScalaJS.c.scala_MatchError().init___O(x1)
      };
      return ScalaJS.bV(undefined)
    })
  })(result)));
  return result
});
ScalaJS.c.scala_scalajs_js_Dictionary$.prototype.propertiesOf__Lscala_scalajs_js_Any__ = (function(obj) {
  return this.propertiesOf__Lscala_scalajs_js_Any__Lscala_scalajs_js_Array(obj)
});
ScalaJS.c.scala_scalajs_js_Dictionary$.prototype.apply__Lscala_collection_Seq__ = (function(properties) {
  return this.apply__Lscala_collection_Seq__Lscala_scalajs_js_Dictionary(properties)
});
ScalaJS.c.scala_scalajs_js_Dictionary$.prototype.empty__ = (function() {
  return this.empty__Lscala_scalajs_js_Dictionary()
});
/** @constructor */
ScalaJS.inheritable.scala_scalajs_js_Dictionary$ = (function() {
  /*<skip>*/
});
ScalaJS.inheritable.scala_scalajs_js_Dictionary$.prototype = ScalaJS.c.scala_scalajs_js_Dictionary$.prototype;
ScalaJS.is.scala_scalajs_js_Dictionary$ = (function(obj) {
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_scalajs_js_Dictionary$)))
});
ScalaJS.as.scala_scalajs_js_Dictionary$ = (function(obj) {
  if ((ScalaJS.is.scala_scalajs_js_Dictionary$(obj) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwClassCastException(obj, "scala.scalajs.js.Dictionary")
  }
});
ScalaJS.isArrayOf.scala_scalajs_js_Dictionary$ = (function(obj, depth) {
  return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scala_scalajs_js_Dictionary$)))
});
ScalaJS.asArrayOf.scala_scalajs_js_Dictionary$ = (function(obj, depth) {
  if ((ScalaJS.isArrayOf.scala_scalajs_js_Dictionary$(obj, depth) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwArrayCastException(obj, "Lscala.scalajs.js.Dictionary;", depth)
  }
});
ScalaJS.data.scala_scalajs_js_Dictionary$ = new ScalaJS.ClassTypeData({
  scala_scalajs_js_Dictionary$: 0
}, false, "scala.scalajs.js.Dictionary$", ScalaJS.data.java_lang_Object, {
  scala_scalajs_js_Dictionary$: 1,
  java_lang_Object: 1
});
ScalaJS.c.scala_scalajs_js_Dictionary$.prototype.$classData = ScalaJS.data.scala_scalajs_js_Dictionary$;
ScalaJS.moduleInstances.scala_scalajs_js_Dictionary = undefined;
ScalaJS.modules.scala_scalajs_js_Dictionary = (function() {
  if ((!ScalaJS.moduleInstances.scala_scalajs_js_Dictionary)) {
    ScalaJS.moduleInstances.scala_scalajs_js_Dictionary = new ScalaJS.c.scala_scalajs_js_Dictionary$().init___()
  };
  return ScalaJS.moduleInstances.scala_scalajs_js_Dictionary
});
//@ sourceMappingURL=Dictionary$.js.map

redpajama_set_name: RedPajamaGithub


text:
var backAction=null;
var extraButtonAction=null;
var parentWindow=null;

var buttonFactory=require(WPATH('button'));

// set default app icon, in case no icon is provided
$.appicon.backgroundImage='/appicon.png'

function openInflater(evt){
	// need to code this part
	alert('Open the Inflater');
}

$.headerbar.addEventListener('click',function(evt){
	// this cancels the click event that get's fired
	// when the parent window is clicked
	evt.cancelBubble=true;
})

$.backbutton.addEventListener('click',function(evt){
	evt.cancelBubble=true;
})

$.backbutton.addEventListener('touchstart',function(evt){
	this.backgroundColor="#000"
	this.opacity=0.2;
});

$.backbutton.addEventListener('touchend',function(evt){
	this.backgroundColor='transparent';
	this.opacity=1;
	(!backAction)?parentWindow.close():backAction();
});

function setTitle(args){
	$.headertitle.text=args.text;
	$.headertitle.color=args.color;
}

function setBack(action){
	backAction=action;
}

function setBlackAngle(){
	$.backangle.backgroundImage=WPATH('light-back-angle.png');
}

function setWhiteAngle(){
	$.backangle.backgroundImage=WPATH('white-back-angle.png');
}

function hideAngle(){
	//$.backangle.width='0';
	$.backangle.visible=false;
}

function showAngle(){
	//$.backangle.width='14dp';
	$.backangle.visible=true;
}

function setAppIcon(icon){
	$.appicon.backgroundImage=icon;
}

function setParentContainer(handle){
	parentWindow=handle;
}

function setBackground(args){
	(args.image)?$.headerbar.backgroundImage=args.image:$.headerbar.backgroundImage=WPATH('lightbg.png');
	$.headerbar.backgroundColor=args.color;

	$.headerbar.backgroundRepeat= true;
}

function showBottomLine(){
	$.bottomline.visible=true;
}

function hideBottomLine(){
	$.bottomline.visible=false;
}

function setTop(top){
	this.headerbar.top=top;
}

function setActionButtons(args){
	if (args.visible){
		args.visible.forEach(function(button){
			Ti.API.error('Button = ' + JSON.stringify(button));
			var payload={
				image:button.icon,
				action: button.action,
				title: button.title
			}
			var tbbutton=buttonFactory.getButton(payload);
			$.actionButtons.add(tbbutton);
		})
	}

	if (args.inflater){
		var menuoptions='';
		var payload={
			image: WPATH('ic_menu_moreoverflow_normal_holo_light.png')
		}

		var inflater=buttonFactory.getButton(payload);
		args.inflater.forEach(function(button){
			// here I gather all the menu options and build a dropdown menu
			menuoptions+=button.title
		});
		inflater.addEventListener('click',openInflater);

		$.actionButtons.add(inflater);
	}

	if (args.androidmenu){
		parentWindow.activity.onCreateOptionsMenu = function(e){
			var menu = e.menu;
			args.androidmenu.forEach(function(button){
				var menuItem = menu.add({
					title: button.title,
					icon: '/ic_menu_copy_holo_light.png',
					showAsAction : Ti.Android.SHOW_AS_ACTION_NEVER
				});
				menuItem.addEventListener("click", button.action);
			})
		}
	}
}
//
exports.setTop=setTop;
exports.setActionButtons=setActionButtons;
exports.showBottomLine=showBottomLine;
exports.hideBottomLine=hideBottomLine;
exports.setBackground=setBackground;
exports.setParentContainer=setParentContainer;
exports.setAppIcon=setAppIcon;
exports.hideAngle=hideAngle;
exports.showAngle=showAngle;
exports.setBlackAngle=setBlackAngle;
exports.setWhiteAngle=setWhiteAngle;
exports.setTitle=setTitle;
exports.setBack=setBack;


text:
//==============================================================================
//         Copyright 2003 - 2012   LASMEA UMR 6602 CNRS/Univ. Clermont II
//         Copyright 2009 - 2013   LRI    UMR 8623 CNRS/Univ Paris Sud XI
//
//          Distributed under the Boost Software License, Version 1.0.
//                 See accompanying file LICENSE.txt or copy at
//                     http://www.boost.org/LICENSE_1_0.txt
//==============================================================================
#ifndef NT2_LINALG_FUNCTIONS_GETRI_HPP_INCLUDED
#define NT2_LINALG_FUNCTIONS_GETRI_HPP_INCLUDED

/*!
  @file
  @brief Defines and implements tri function
**/

#include <nt2/include/functor.hpp>

namespace nt2
{
  namespace tag
  {
    /// @brief Defines tri function tag
    struct getri_ : boost::dispatch::tag::formal_
    {
      /// INTERNAL ONLY
      typedef boost::dispatch::tag::formal_  parent;
    };
  }

  /*!
    @brief

    @param
    @param

    @return
  **/
  NT2_FUNCTION_IMPLEMENTATION_TPL (tag::getri_, getri
                                  , (A0&)(A1 const&)
                                  , 2
                                  );

  NT2_FUNCTION_IMPLEMENTATION_TPL (tag::getri_, getri
                                  , (A0&)(A1 const&)(A2&)
                                  , 3
                                  );
}

#endif


text:
package org.apache.asterix.app.message;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

import org.apache.asterix.algebra.base.ILangExtension;
import org.apache.asterix.api.http.server.ResultUtil;
import org.apache.asterix.app.cc.CCExtensionManager;
import org.apache.asterix.app.result.ResponsePrinter;
import org.apache.asterix.app.translator.RequestParameters;
import org.apache.asterix.common.api.IClusterManagementWork;
import org.apache.asterix.common.api.IRequestReference;
import org.apache.asterix.common.cluster.IClusterStateManager;
import org.apache.asterix.common.config.GlobalConfig;
import org.apache.asterix.common.context.IStorageComponentProvider;
import org.apache.asterix.common.dataflow.ICcApplicationContext;
import org.apache.asterix.common.exceptions.ErrorCode;
import org.apache.asterix.common.exceptions.RuntimeDataException;
import org.apache.asterix.common.messaging.api.ICcAddressedMessage;
import org.apache.asterix.compiler.provider.ILangCompilationProvider;
import org.apache.asterix.hyracks.bootstrap.CCApplication;
import org.apache.asterix.lang.common.base.IParser;
import org.apache.asterix.lang.common.base.Statement;
import org.apache.asterix.messaging.CCMessageBroker;
import org.apache.asterix.metadata.MetadataManager;
import org.apache.asterix.om.base.IAObject;
import org.apache.asterix.translator.IRequestParameters;
import org.apache.asterix.translator.IStatementExecutor;
import org.apache.asterix.translator.IStatementExecutor.Stats.ProfileType;
import org.apache.asterix.translator.IStatementExecutorFactory;
import org.apache.asterix.translator.ResultProperties;
import org.apache.asterix.translator.SessionConfig;
import org.apache.asterix.translator.SessionOutput;
import org.apache.hyracks.algebricks.common.exceptions.AlgebricksException;
import org.apache.hyracks.api.application.ICCServiceContext;
import org.apache.hyracks.api.exceptions.HyracksDataException;
import org.apache.hyracks.api.exceptions.HyracksException;
import org.apache.hyracks.api.exceptions.Warning;
import org.apache.hyracks.control.cc.ClusterControllerService;
import org.apache.hyracks.util.LogRedactionUtil;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class ExecuteStatementRequestMessage implements ICcAddressedMessage {
    private static final long serialVersionUID = 2L;
    private static final Logger LOGGER = LogManager.getLogger();
    //TODO: Make configurable: https://issues.apache.org/jira/browse/ASTERIXDB-2062
    public static final long DEFAULT_NC_TIMEOUT_MILLIS = TimeUnit.MILLISECONDS.toMillis(Long.MAX_VALUE);
    //TODO: Make configurable: https://issues.apache.org/jira/browse/ASTERIXDB-2063
    public static final long DEFAULT_QUERY_CANCELLATION_WAIT_MILLIS = TimeUnit.MINUTES.toMillis(1);
    protected final String requestNodeId;
    protected final long requestMessageId;
    private final ILangExtension.Language lang;
    private final String statementsText;
    private final SessionConfig sessionConfig;
    private final ResultProperties resultProperties;
    private final String clientContextID;
    private final String handleUrl;
    private final Map<String, String> optionalParameters;
    private final Map<String, byte[]> statementParameters;
    private final boolean multiStatement;
    private final int statementCategoryRestrictionMask;
    private final ProfileType profileType;
    private final IRequestReference requestReference;
    private final boolean forceDropDataset;

    public ExecuteStatementRequestMessage(String requestNodeId, long requestMessageId, ILangExtension.Language lang,
            String statementsText, SessionConfig sessionConfig, ResultProperties resultProperties,
            String clientContextID, String handleUrl, Map<String, String> optionalParameters,
            Map<String, byte[]> statementParameters, boolean multiStatement, ProfileType profileType,
            int statementCategoryRestrictionMask, IRequestReference requestReference, boolean forceDropDataset) {
        this.requestNodeId = requestNodeId;
        this.requestMessageId = requestMessageId;
        this.lang = lang;
        this.statementsText = statementsText;
        this.sessionConfig = sessionConfig;
        this.resultProperties = resultProperties;
        this.clientContextID = clientContextID;
        this.handleUrl = handleUrl;
        this.optionalParameters = optionalParameters;
        this.statementParameters = statementParameters;
        this.multiStatement = multiStatement;
        this.statementCategoryRestrictionMask = statementCategoryRestrictionMask;
        this.profileType = profileType;
        this.requestReference = requestReference;
        this.forceDropDataset = forceDropDataset;
    }

    @Override
    public void handle(ICcApplicationContext ccAppCtx) throws HyracksDataException, InterruptedException {
        ICCServiceContext ccSrvContext = ccAppCtx.getServiceContext();
        ClusterControllerService ccSrv = (ClusterControllerService) ccSrvContext.getControllerService();
        CCApplication ccApp = (CCApplication) ccSrv.getApplication();
        CCMessageBroker messageBroker = (CCMessageBroker) ccSrvContext.getMessageBroker();
        final RuntimeDataException rejectionReason = getRejectionReason(ccSrv, requestNodeId);
        if (rejectionReason != null) {
            sendRejection(rejectionReason, messageBroker, requestMessageId, requestNodeId);
            return;
        }
        CCExtensionManager ccExtMgr = (CCExtensionManager) ccAppCtx.getExtensionManager();
        ILangCompilationProvider compilationProvider = ccExtMgr.getCompilationProvider(lang);
        IStorageComponentProvider storageComponentProvider = ccAppCtx.getStorageComponentProvider();
        IStatementExecutorFactory statementExecutorFactory = ccApp.getStatementExecutorFactory();
        ExecuteStatementResponseMessage responseMsg = new ExecuteStatementResponseMessage(requestMessageId);
        try {
            List<Warning> warnings = new ArrayList<>();
            IParser parser = compilationProvider.getParserFactory().createParser(statementsText);
            List<Statement> statements = parser.parse();
            long maxWarnings = sessionConfig.getMaxWarnings();
            parser.getWarnings(warnings, maxWarnings);
            long parserTotalWarningsCount = parser.getTotalWarningsCount();
            StringWriter outWriter = new StringWriter(256);
            PrintWriter outPrinter = new PrintWriter(outWriter);
            SessionOutput.ResultDecorator resultPrefix = ResultUtil.createPreResultDecorator();
            SessionOutput.ResultDecorator resultPostfix = ResultUtil.createPostResultDecorator();
            SessionOutput.ResultAppender appendHandle = ResultUtil.createResultHandleAppender(handleUrl);
            SessionOutput.ResultAppender appendStatus = ResultUtil.createResultStatusAppender();
            SessionOutput sessionOutput = new SessionOutput(sessionConfig, outPrinter, resultPrefix, resultPostfix,
                    appendHandle, appendStatus);
            IStatementExecutor.ResultMetadata outMetadata = new IStatementExecutor.ResultMetadata();
            MetadataManager.INSTANCE.init();
            IStatementExecutor translator = statementExecutorFactory.create(ccAppCtx, statements, sessionOutput,
                    compilationProvider, storageComponentProvider, new ResponsePrinter(sessionOutput));
            final IStatementExecutor.Stats stats = new IStatementExecutor.Stats();
            stats.setProfileType(profileType);
            final IStatementExecutor.StatementProperties statementProperties =
                    new IStatementExecutor.StatementProperties();
            Map<String, IAObject> stmtParams = RequestParameters.deserializeParameterValues(statementParameters);
            final IRequestParameters requestParameters = new RequestParameters(requestReference, statementsText, null,
                    resultProperties, stats, statementProperties, outMetadata, clientContextID, optionalParameters,
                    stmtParams, multiStatement, statementCategoryRestrictionMask, forceDropDataset);
            translator.compileAndExecute(ccApp.getHcc(), requestParameters);
            translator.getWarnings(warnings, maxWarnings - warnings.size());
            stats.updateTotalWarningsCount(parserTotalWarningsCount);
            outPrinter.close();
            responseMsg.setResult(outWriter.toString());
            responseMsg.setMetadata(outMetadata);
            responseMsg.setStats(stats);
            responseMsg.setStatementProperties(statementProperties);
            responseMsg.setExecutionPlans(translator.getExecutionPlans());
            responseMsg.setWarnings(warnings);
        } catch (AlgebricksException | HyracksException | org.apache.asterix.lang.sqlpp.parser.TokenMgrError pe) {
            // we trust that "our" exceptions are serializable and have a comprehensible error message
            GlobalConfig.ASTERIX_LOGGER.log(Level.WARN, pe.getMessage(), pe);
            responseMsg.setError(pe);
        } catch (Exception e) {
            GlobalConfig.ASTERIX_LOGGER.log(Level.ERROR, "Unexpected exception", e);
            responseMsg.setError(e);
        }
        try {
            messageBroker.sendApplicationMessageToNC(responseMsg, requestNodeId);
        } catch (Exception e) {
            LOGGER.log(Level.WARN, e.toString(), e);
        }
    }

    protected CCMessageBroker getMessageBroker(ICcApplicationContext ccAppCtx) {
        ICCServiceContext ccSrvContext = ccAppCtx.getServiceContext();
        return (CCMessageBroker) ccSrvContext.getMessageBroker();
    }

    static RuntimeDataException getRejectionReason(ClusterControllerService ccSrv, String requestNodeId) {
        if (ccSrv.getNodeManager().getNodeControllerState(requestNodeId) == null) {
            return new RuntimeDataException(ErrorCode.REJECT_NODE_UNREGISTERED);
        }
        ICcApplicationContext appCtx = (ICcApplicationContext) ccSrv.getApplicationContext();
        IClusterStateManager csm = appCtx.getClusterStateManager();
        final IClusterManagementWork.ClusterState clusterState = csm.getState();
        if (clusterState != IClusterManagementWork.ClusterState.ACTIVE) {
            return new RuntimeDataException(ErrorCode.REJECT_BAD_CLUSTER_STATE, clusterState);
        }
        return null;
    }

    protected static void sendRejection(Exception reason, CCMessageBroker messageBroker, long requestMessageId,
            String requestNodeId) {
        ExecuteStatementResponseMessage responseMsg = new ExecuteStatementResponseMessage(requestMessageId);
        responseMsg.setError(reason);
        try {
            messageBroker.sendApplicationMessageToNC(responseMsg, requestNodeId);
        } catch (Exception e) {
            LOGGER.log(Level.WARN, e.toString(), e);
        }
    }

    @Override
    public String toString() {
        return String.format("%s(id=%s, from=%s): %s", getClass().getSimpleName(), requestMessageId, requestNodeId,
                LogRedactionUtil.statement(statementsText));
    }
}


text:
/* Reset */
.highcontrastSkin table, .highcontrastSkin tbody, .highcontrastSkin a, .highcontrastSkin img, .highcontrastSkin tr, .highcontrastSkin div, .highcontrastSkin td, .highcontrastSkin iframe, .highcontrastSkin span, .highcontrastSkin *, .highcontrastSkin .mceText {
    border: 0;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    border-collapse: separate;
}

.highcontrastSkin a:hover, .highcontrastSkin a:link, .highcontrastSkin a:visited, .highcontrastSkin a:active {
    text-decoration: none;
    font-weight: normal;
    cursor: default;
}

.highcontrastSkin table td {
    vertical-align: middle
}

.highcontrastSkin .mceIconOnly {
    display: block !important;
}

/* External */
.highcontrastSkin .mceExternalToolbar {
    position: absolute;
    border: 1px solid;
    border-bottom: 0;
    display: none;
    background-color: white;
}

.highcontrastSkin .mceExternalToolbar td.mceToolbar {
    padding-right: 13px;
}

.highcontrastSkin .mceExternalClose {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 7px;
    height: 7px;
}

/* Layout */
.highcontrastSkin table.mceLayout {
    border: 1px solid;
}

.highcontrastSkin .mceIframeContainer {
    border-top: 1px solid;
    border-bottom: 1px solid
}

.highcontrastSkin .mceStatusbar a:hover {
    text-decoration: underline
}

.highcontrastSkin .mceStatusbar {
    display: block;
    line-height: 1.5em;
    overflow: visible;
}

.highcontrastSkin .mceStatusbar div {
    float: left
}

.highcontrastSkin .mceStatusbar a.mceResize {
    display: block;
    float: right;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    outline: 0
}

.highcontrastSkin .mceToolbar td {
    display: inline-block;
    float: left;
}

.highcontrastSkin .mceToolbar tr {
    display: block;
}

.highcontrastSkin .mceToolbar table {
    display: block;
}

/* Button */

.highcontrastSkin .mceButton {
    display: block;
    margin: 2px;
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -ms-border-radius: 3px;
    height: 2em;
}

.highcontrastSkin .mceButton .mceVoiceLabel {
    height: 100%;
    vertical-align: center;
    line-height: 2em
}

.highcontrastSkin .mceButtonDisabled .mceVoiceLabel {
    opacity: 0.6;
    -ms-filter: 'alpha(opacity=60)';
    filter: alpha(opacity=60);
}

.highcontrastSkin .mceButtonActive, .highcontrastSkin .mceButton:focus, .highcontrastSkin .mceButton:active {
    border: 5px solid;
    padding: 1px 6px;
    -webkit-focus-ring-color: none;
    outline: none;
}

/* Separator */
.highcontrastSkin .mceSeparator {
    display: block;
    width: 16px;
    height: 26px;
}

/* ListBox */
.highcontrastSkin .mceListBox {
    display: block;
    margin: 2px;
    -webkit-focus-ring-color: none;
    outline: none;
}

.highcontrastSkin .mceListBox .mceText {
    padding: 5px 6px;
    line-height: 2em;
    width: 15ex;
    overflow: hidden;
}

.highcontrastSkin .mceListBoxDisabled .mceText {
    opacity: 0.6;
    -ms-filter: 'alpha(opacity=60)';
    filter: alpha(opacity=60);
}

.highcontrastSkin .mceListBox a.mceText {
    padding: 5px 10px;
    display: block;
    height: 2em;
    line-height: 2em;
    border: 1px solid;
    border-right: 0;
    border-radius: 3px 0px 0px 3px;
    -moz-border-radius: 3px 0px 0px 3px;
    -webkit-border-radius: 3px 0px 0px 3px;
    -ms-border-radius: 3px 0px 0px 3px;
}

.highcontrastSkin .mceListBox a.mceOpen {
    padding: 5px 4px;
    display: block;
    height: 2em;
    line-height: 2em;
    border: 1px solid;
    border-left: 0;
    border-radius: 0px 3px 3px 0px;
    -moz-border-radius: 0px 3px 3px 0px;
    -webkit-border-radius: 0px 3px 3px 0px;
    -ms-border-radius: 0px 3px 3px 0px;
}

.highcontrastSkin .mceListBox:focus a.mceText, .highcontrastSkin .mceListBox:active a.mceText {
    border-width: 5px;
    padding: 1px 10px 1px 6px;
}

.highcontrastSkin .mceListBox:focus a.mceOpen, .highcontrastSkin .mceListBox:active a.mceOpen {
    border-width: 5px;
    padding: 1px 0px 1px 4px;
}

.highcontrastSkin .mceListBoxMenu {
    overflow-y: auto
}

/* SplitButton */
.highcontrastSkin .mceSplitButtonDisabled .mceAction {
    opacity: 0.3;
    -ms-filter: 'alpha(opacity=30)';
    filter: alpha(opacity=30)
}

.highcontrastSkin .mceSplitButton {
    border-collapse: collapse;
    margin: 2px;
    height: 2em;
    line-height: 2em;
    -webkit-focus-ring-color: none;
    outline: none;
}

.highcontrastSkin .mceSplitButton td {
    display: table-cell;
    float: none;
    margin: 0;
    padding: 0;
    height: 2em;
}

.highcontrastSkin .mceSplitButton tr {
    display: table-row;
}

.highcontrastSkin table.mceSplitButton {
    display: table;
}

.highcontrastSkin .mceSplitButton a.mceAction {
    padding: 5px 10px;
    display: block;
    height: 2em;
    line-height: 2em;
    overflow: hidden;
    border: 1px solid;
    border-right: 0;
    border-radius: 3px 0px 0px 3px;
    -moz-border-radius: 3px 0px 0px 3px;
    -webkit-border-radius: 3px 0px 0px 3px;
    -ms-border-radius: 3px 0px 0px 3px;
}

.highcontrastSkin .mceSplitButton a.mceOpen {
    padding: 5px 4px;
    display: block;
    height: 2em;
    line-height: 2em;
    border: 1px solid;
    border-radius: 0px 3px 3px 0px;
    -moz-border-radius: 0px 3px 3px 0px;
    -webkit-border-radius: 0px 3px 3px 0px;
    -ms-border-radius: 0px 3px 3px 0px;
}

.highcontrastSkin .mceSplitButton .mceVoiceLabel {
    height: 2em;
    vertical-align: center;
    line-height: 2em;
}

.highcontrastSkin .mceSplitButton:focus a.mceAction, .highcontrastSkin .mceSplitButton:active a.mceAction {
    border-width: 5px;
    border-right-width: 1px;
    padding: 1px 10px 1px 6px;
    -webkit-focus-ring-color: none;
    outline: none;
}

.highcontrastSkin .mceSplitButton:focus a.mceOpen, .highcontrastSkin .mceSplitButton:active a.mceOpen {
    border-width: 5px;
    border-left-width: 1px;
    padding: 1px 0px 1px 4px;
    -webkit-focus-ring-color: none;
    outline: none;
}

/* Menu */
.highcontrastSkin .mceNoIcons span.mceIcon {
    width: 0;
}

.highcontrastSkin .mceMenu {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1000;
    border: 1px solid;
    direction: ltr
}

.highcontrastSkin .mceMenu table {
    background: white;
    color: black
}

.highcontrastSkin .mceNoIcons a .mceText {
    padding-left: 10px
}

.highcontrastSkin .mceMenu a, .highcontrastSkin .mceMenu span, .highcontrastSkin .mceMenu {
    display: block;
    background: white;
    color: black
}

.highcontrastSkin .mceMenu td {
    height: 2em
}

.highcontrastSkin .mceMenu a {
    position: relative;
    padding: 3px 0 4px 0;
    display: block;
}

.highcontrastSkin .mceMenu .mceText {
    position: relative;
    display: block;
    cursor: default;
    margin: 0;
    padding: 0 25px 0 25px;
}

.highcontrastSkin .mceMenu pre.mceText {
    font-family: Monospace
}

.highcontrastSkin .mceMenu .mceIcon {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
}

.highcontrastSkin td.mceMenuItemSeparator {
    border-top: 1px solid;
    height: 1px
}

.highcontrastSkin .mceMenuItemTitle a {
    border: 0;
    border-bottom: 1px solid
}

.highcontrastSkin .mceMenuItemTitle span.mceText {
    font-weight: bold;
    padding-left: 4px
}

.highcontrastSkin .mceNoIcons .mceMenuItemSelected span.mceText:before {
    content: "\2713\A0";
}

.highcontrastSkin .mceMenu span.mceMenuLine {
    display: none
}

.highcontrastSkin .mceMenuItemSub a .mceText:after {
    content: "\A0\25B8"
}

.highcontrastSkin .mceMenuItem td, .highcontrastSkin .mceMenuItem th {
    line-height: normal
}

/* ColorSplitButton */
.highcontrastSkin div.mceColorSplitMenu table {
    background: #FFF;
    border: 1px solid;
    color: #000
}

.highcontrastSkin .mceColorSplitMenu td {
    padding: 2px
}

.highcontrastSkin .mceColorSplitMenu a {
    display: block;
    width: 16px;
    height: 16px;
    overflow: hidden;
    color: #000;
    margin: 0;
    padding: 0;
}

.highcontrastSkin .mceColorSplitMenu td.mceMoreColors {
    padding: 1px 3px 1px 1px
}

.highcontrastSkin .mceColorSplitMenu a.mceMoreColors {
    width: 100%;
    height: auto;
    text-align: center;
    font-family: Tahoma, Verdana, Arial, Helvetica;
    font-size: 11px;
    line-height: 20px;
    border: 1px solid #FFF
}

.highcontrastSkin .mceColorSplitMenu a.mceMoreColors:hover {
    border: 1px solid;
    background-color: #B6BDD2
}

.highcontrastSkin a.mceMoreColors:hover {
    border: 1px solid #0A246A;
    color: #000;
}

.highcontrastSkin .mceColorPreview {
    display: none;
}

.highcontrastSkin .mce_forecolor span.mceAction, .highcontrastSkin .mce_backcolor span.mceAction {
    height: 17px;
    overflow: hidden
}

/* Progress,Resize */
.highcontrastSkin .mceBlocker {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1000;
    opacity: 0.5;
    -ms-filter: 'alpha(opacity=30)';
    filter: alpha(opacity=50);
    background: #FFF
}

.highcontrastSkin .mceProgress {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1001;
    background: url(../default/img/progress.gif) no-repeat;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px
}

/* Rtl */
.mceRtl .mceListBox .mceText {
    text-align: right;
    padding: 0 4px 0 0
}

.mceRtl .mceMenuItem .mceText {
    text-align: right
}

/* Formats */
.highcontrastSkin .mce_p span.mceText {
}

.highcontrastSkin .mce_address span.mceText {
    font-style: italic
}

.highcontrastSkin .mce_pre span.mceText {
    font-family: monospace
}

.highcontrastSkin .mce_h1 span.mceText {
    font-weight: bolder;
    font-size: 2em
}

.highcontrastSkin .mce_h2 span.mceText {
    font-weight: bolder;
    font-size: 1.5em
}

.highcontrastSkin .mce_h3 span.mceText {
    font-weight: bolder;
    font-size: 1.17em
}

.highcontrastSkin .mce_h4 span.mceText {
    font-weight: bolder;
    font-size: 1em
}

.highcontrastSkin .mce_h5 span.mceText {
    font-weight: bolder;
    font-size: .83em
}

.highcontrastSkin .mce_h6 span.mceText {
    font-weight: bolder;
    font-size: .75em
}


text:
psql basketball -c "drop table ncaa_sr._zim_parameter_levels;"
psql basketball -c "drop table ncaa_sr._zim_basic_factors;"

#psql basketball -c "drop table ncaa_sr._factors;"
#psql basketball -c "drop table ncaa_sr._schedule_factors;"

psql basketball -c "vacuum full verbose analyze ncaa_sr.results;"

R --vanilla -f ncaa_sr_nbinom.R

psql basketball -c "vacuum full verbose analyze ncaa_sr._zim_parameter_levels;"
psql basketball -c "vacuum full verbose analyze ncaa_sr._zim_basic_factors;"

#psql basketball -f normalize_factors.sql

#psql basketball -c "vacuum full verbose analyze ncaa_sr._factors;"

#psql basketball -f schedule_factors.sql

#psql basketball -c "vacuum full verbose analyze ncaa_sr._schedule_factors;"

#psql basketball -f current_ranking.sql > current_ranking.txt

#psql basketball -f predict_daily.sql > predict_daily.txt

#psql basketball -f predict_uk.sql > predict_uk.txt

#psql basketball -f unlucky.sql > unlucky.txt


text:
var _scrollSpyListGroup = {

  activate: function activate (target) {
    this.activeTarget = target;
    this.clear();

    var selector = this.selector + '[data-target="' + target + '"],' + this.selector + '[href="' + target + '"]';
    var active = $(selector).addClass('active');

    active.trigger('activate.bs.scrollspy');
  },

  clear: function clear () {
    $(this.selector).removeClass('active');
  },

};

jQuery(function ($) {
  var navbarHeight = $('.navbar').height();

  $.toc({
    attrClass: 'list-group-item',
    destination: '#toc-insert',
    prefix: 'toc-',
    search: '#main',
    selector: 'h1, h2, h3, h4'
  });

  holmes({
    find: '#toc a',
    input: '#toc-filter-input',
    placeholder: '
None match.
'
  })
    .start();

  $(window)
    .on('hashchange', function () {
      var hash = location.hash.slice(1);
      var elm = hash && document.getElementById(hash);

      if (hash && !elm) {
        console.warn('No such element: "%s"', hash);
      }

      if (elm) {
        window.scrollTo(0, elm.offsetTop - navbarHeight);
      }
    });

  $('.dropdown-toggle')
    .dropdown();

  $('table')
    .addClass('table');

  var $scrollElement = $('body').scrollspy({
    offset: navbarHeight,
    target: '#toc',
  });

  var scrollspy = $scrollElement.data('bs.scrollspy');

  scrollspy.selector = scrollspy.options.target + ' .list-group-item';
  Object.assign(scrollspy, _scrollSpyListGroup);
  scrollspy.refresh();

  console.log('offsets', scrollspy.offsets);
  console.log('targets', scrollspy.targets);
  console.log('scrollspy', scrollspy);
});


text:
import React from 'react';
import styled, { css } from 'react-emotion';
import PropTypes from 'prop-types';

const MENU_BORDER_RADIUS = '8px';

/* ----------------------------------------------------------------------------*/
/* Menu Router Container
/* ----------------------------------------------------------------------------*/

// dock top or bottom
const RouterContainerHorizontal = css`
  height: 100%;
  flex-direction: row;
  width: 150px;
  border-radius: 0px;
  right: 0px;
`;

// dock left or right
const RouterContainerVertical = css`
  width: 100%;
  flex-direction: column;
  height: 100px;
  left: 0px;
`;

// has not docked
const RouterContainerNotDocked = css`
  width: 100%;
  flex-direction: row;
`;

const RouterContainer = styled('nav')`
  position: relative;
  bottom: 0px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom-left-radius: ${MENU_BORDER_RADIUS};
  border-bottom-right-radius: ${MENU_BORDER_RADIUS};

  ${({ menuPlacement }) => ((!menuPlacement || !menuPlacement.includes('hasDocked')) && RouterContainerNotDocked)}
  ${({ menuPlacement }) => (menuPlacement && menuPlacement.includes('hasDockedTop') && RouterContainerHorizontal)}
  ${({ menuPlacement }) => (menuPlacement && (menuPlacement.includes('hasDockedLeft') || menuPlacement.includes('hasDockedRight')) && RouterContainerVertical)}
`;

/* ----------------------------------------------------------------------------*/
/* Menu Router Features
/* ----------------------------------------------------------------------------*/
// dock top or bottom
const FAIconHorizontal = css`
  height: 100%;

  &:hover {
    border-radius: 0px;
  }
`;

// dock left or right
const FAIconVertical = css`
  height: 50%;
  width: 100%;

  &:hover {
    border-radius: 0px;
  }
`;

// not docked
const FAIconNotDocked = css`
  padding: 10px;
`;

const FAIcon = styled('div')`
  color: gray;
  font-size: 20px;
  font-weight: light;
  width: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    color: rgba(54, 149, 217, 1);
    background-color: gray;
    ${({ leftOrRight }) => `border-bottom-${leftOrRight}-radius: ${MENU_BORDER_RADIUS};`}
  };

  ${({ menuPlacement }) => ((!menuPlacement || !menuPlacement.includes('hasDocked')) && FAIconNotDocked)}
  ${({ menuPlacement }) => (menuPlacement && menuPlacement.includes('hasDockedTop') && FAIconHorizontal)}
  ${({ menuPlacement }) => (menuPlacement && (menuPlacement.includes('hasDockedLeft') || menuPlacement.includes('hasDockedRight')) && FAIconVertical)}
`;

const Component = ({ menuPlacement }) => (
  <RouterContainer menuPlacement={menuPlacement}>
    <FAIcon menuPlacement={menuPlacement} leftOrRight="left" className="fas fa-home" />
    <FAIcon menuPlacement={menuPlacement} leftOrRight="right" className="fas fa-question" />
  </RouterContainer>
);

Component.propTypes = {
  menuPlacement: PropTypes.string,
};

Component.defaultProps = {
  menuPlacement: undefined,
};

export default Component;


text:
module FbGraph
  module Connections
    module Invited
      def invited(options = {})
        members = self.connection :invited, options
        members.map! do |member|
          User.new member[:id], member.merge(
            :access_token => options[:access_token] || self.access_token
          )
        end
      end

      def invited?(user, options = {})
        member = self.connection(
          :invited, options.merge(:connection_scope => user.identifier)
        ).first
        member.present? && User.new(
          member[:id],
          member.merge(
            :access_token => options[:access_token] || self.access_token
          )
        ).rsvp_status.to_sym
      end

      def invite!(*users)
        options = users.extract_options!
        options[:users] ||= Array(users).flatten.collect(&:identifier).join(',')
        post options.merge(:connection => :invited)
      end

      def uninvite!(user, options ={})
        delete options.merge(:connection => :invited, :connection_scope => user.identifier)
      end
    end
  end
end


text:
package com.google.appengine.datanucleus.test.jdo;

import java.io.Serializable;

/**
 * @author Max Ross <maxr@google.com>
 */
public interface BidirectionalChildUnencodedStringPkJDO extends Serializable {
  HasOneToManyUnencodedStringPkJDO getParent();
  String getId();
  void setChildVal(String childVal);
  void setParent(HasOneToManyUnencodedStringPkJDO parent);
  String getChildVal();
}


text:
package org.plasma.common.app;

public class InvalidPropertyNameException extends AppException {
  public String name;

  public InvalidPropertyNameException(String name) {
    super(name);
  }

  public String getName() {
    return name;
  }
}


text:
	<?php
		$announcement = str_replace("\\'", "'", $announcement);

		$announcement_read = $db->count_rows("
			SELECT announcement
			FROM arrowchat_status
			WHERE announcement = '1'
		");

		$announcement_unread = $db->count_rows("
			SELECT announcement
			FROM arrowchat_status
			WHERE announcement = '0'
		");
	?>

Overview

					Chat Statistics [Delete Chat History]

Number of messages:

							<?php echo number_format($num_messages); ?> <?php if ($num_messages>100000) { ?><?php } ?>
							Messages per day:
							<?php echo number_format($messages_day, 2); ?>

							Number of users:
							<?php echo number_format($num_users); ?>
							Users per day:
							<?php echo number_format($users_day, 2); ?>

							ArrowChat Installed:
							<?php echo date('M j, Y g:i a',$install_time->config_value); ?>
							Database size:
							<?php echo $database_size; ?>

					<?php
						if (ARROWCHAT_EDITION != "lite")
						{
					?>

					<form method="post" action="./" enctype="multipart/form-data">
					Post an Announcement [<?php echo $announcement_unread; ?> Not Read, <?php echo $announcement_read; ?> Read]

					<textarea name="announcement" style="width: 100%; height: 100px;"><?php echo $announcement; ?></textarea>

						<input type="submit" name="announcement_show" class="button-primary" value="Show" /> <input type="submit" name="announcement_hide" class="button-primary" value="Hide" />

					</form>
					<?php
						}
					?>

Analytics

Recent Chat

		<?php
			$numrows = $db->count_all("
				arrowchat
			");

			$pagenum = 1;
			$self = htmlentities($_SERVER['PHP_SELF']);
			$nav  = 'Page ';
			$maxpage = 10;
			$total_pages = ceil($numrows / $maxpage);

			if(var_check('page'))
			{
				$pagenum = get_var('page');
			}

			for ($i = 1; $i <= $total_pages; $i++)
			{
				if ($i == $pagenum)
				{
					$nav .= " $i ";
				}
				else if ($i <= 5)
				{
					$nav .= " " . floor($i) . " ";
				}
			}

			$offset = ($pagenum - 1) * $maxpage;

			$result = $db->execute("
				SELECT *
				FROM arrowchat
				ORDER BY id DESC
				LIMIT " . $db->escape_string($offset) . ", " . $db->escape_string($maxpage) . "
			");

			if ($result AND $db->count_select() > 0)
			{
		?>

					From
					To
					Message
					Read
					Sent

			<?php
				while ($row = $db->fetch_array($result))
				{
					if (check_if_guest($row['from']))
					{
						$from_username = $language[83] . " " . substr($row['from'], 1);
					}
					else
					{
						$from_result = $db->execute("
							SELECT " . DB_USERTABLE_NAME . ", " . DB_USERTABLE_USERID . "
							FROM " . TABLE_PREFIX . DB_USERTABLE . "
							WHERE " . DB_USERTABLE_USERID . " = '" . $db->escape_string($row['from']) . "'
						");

						$from_username = $db->fetch_array($from_result);
						$from_username = $from_username[DB_USERTABLE_NAME];
					}

					if (check_if_guest($row['to']))
					{
						$to_username = $language[83] . " " . substr($row['to'], 1);
					}
					else
					{
						$to_result = $db->execute("
							SELECT " . DB_USERTABLE_NAME . ", " . DB_USERTABLE_USERID . "
							FROM " . TABLE_PREFIX . DB_USERTABLE . "
							WHERE " . DB_USERTABLE_USERID . " = '" . $db->escape_string($row['to']) . "'
						");

						$to_username = $db->fetch_array($to_result);
						$to_username = $to_username[DB_USERTABLE_NAME];
					}

			?>

					<a href="users.php?do=logs&id=<?php echo $row['from']; ?>"><?php echo $from_username; ?>
					<a href="users.php?do=logs&id=<?php echo $row['to']; ?>"><?php echo $to_username; ?>

<?php echo $row['message']; ?>

				<?php
					if($row['user_read'] == 1)
					{
						echo 'Yes	';
					}
					else
					{
						echo 'No	';
					}
				?>
					<?php echo date("M j, Y", $row['sent']); ?>
<?php echo date("g:i a", $row['sent']); ?>

			<?php
				}
			?>

							<?php echo $nav; ?>

		<?php
			}
			else
			{
		?>
				No one has ever chatted!
		<?php
			}
		?>


text:
<!doctype html>

  <title>paper-scroll-header-panel: demo3</title>

  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <meta name="mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-capable" content="yes">

  <link rel="import" href="../paper-scroll-header-panel.html">
  <link rel="import" href="../../paper-toolbar/paper-toolbar.html">
  <link rel="import" href="../../iron-icons/iron-icons.html">
  <link rel="import" href="../../paper-icon-button/paper-icon-button.html">

  <link rel="import" href="../../paper-styles/color.html">
  <link rel="import" href="../../iron-flex-layout/iron-flex-layout.html">
  <link rel="import" href="sample-content.html">

  <paper-scroll-header-panel condenses no-reveal no-dissolve>

    <paper-toolbar slot="header" class="tall">

      <paper-icon-button slot="top" icon="search"></paper-icon-button>
    </paper-toolbar>

      <sample-content size="100"></sample-content>

  </paper-scroll-header-panel>


text:
if(NOT CURL_FOUND)
    set(CURL_FOUND "YES" CACHE STRING "" FORCE)
    set(CURL_INCLUDE_DIR "${EXPORTED_CURL_INCLUDE_DIR}" CACHE STRING "" FORCE)
    set(CURL_INCLUDE_DIRS "${CURL_INCLUDE_DIR}" CACHE STRING "" FORCE)
    set(CURL_LIBRARY "${EXPORTED_CURL_LIBRARY}" CACHE STRING "" FORCE)
    set(CURL_LIBRARIES "${CURL_LIBRARY}" CACHE STRING "" FORCE)
endif()


text:
namespace NPOI.HSSF.Record.Chart
{
    using System;
    using System.Text;
    using NPOI.Util;

    /*
     * The font index record indexes into the font table for the text record.
     * NOTE: This source is automatically generated please do not modify this file.  Either subclass or
     *       Remove the record in src/records/definitions.

     * @author Glen Stampoultzis (glens at apache.org)
     */
    //
    /// <summary>
    /// The FontX record specifies the font for a given text element.
    /// The Font record referenced by iFont can exist in this chart sheet substream or the workbook.
    /// </summary>
    public class FontIndexRecord : StandardRecord, ICloneable
    {
        public const short sid = 0x1026;
        private short field_1_fontIndex;

        public FontIndexRecord()
        {

        }

        /**
         * Constructs a FontIndex record and Sets its fields appropriately.
         *
         * @param in the RecordInputstream to Read the record from
         */

        public FontIndexRecord(RecordInputStream in1)
        {
            field_1_fontIndex = in1.ReadShort();
        }

        public override String ToString()
        {
            StringBuilder buffer = new StringBuilder();

            buffer.Append("[FONTX]\n");
            buffer.Append("    .fontIndex            = ")
                .Append("0x").Append(HexDump.ToHex(FontIndex))
                .Append(" (").Append(FontIndex).Append(" )");
            buffer.Append(Environment.NewLine);

            buffer.Append("[/FONTX]\n");
            return buffer.ToString();
        }

        public override void Serialize(ILittleEndianOutput out1)
        {
            out1.WriteShort(field_1_fontIndex);
        }

        /**
         * Size of record (exluding 4 byte header)
         */
        protected override int DataSize
        {
            get { return  2; }
        }

        public override short Sid
        {
            get { return sid; }
        }

        public override Object Clone()
        {
            FontIndexRecord rec = new FontIndexRecord();

            rec.field_1_fontIndex = field_1_fontIndex;
            return rec;
        }

        /// <summary>
        /// specifies the font to use for subsequent records.
        /// This font can either be the default font of the chart, part of the collection of Font records following
        /// the FrtFontList record, or part of the collection of Font records in the globals substream.
        /// If iFont is 0x0000, this record specifies the default font of the chart.
        /// If iFont is less than or equal to the number of Font records in the globals substream,
        ///     iFont is a one-based index to a Font record in the globals substream.
        /// Otherwise iFont is a one-based index into the collection of Font records in this chart sheet substream
        ///     where the index is equal to iFont ¨C n, where n is the number of Font records in the globals substream.
        /// </summary>
        public short FontIndex
        {
            get { return field_1_fontIndex; }
            set { this.field_1_fontIndex = value; }
        }

    }
}


text:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE mixture PUBLIC "-//ghmm.org//DOCUMENT ghmm V1.0//EN" "http://ghmm.sourceforge.net/xml/1.0/ghmm.dtd">
<mixture version="1.0" noComponents="1">
 <HMM name="" type="discrete">
  <alphabet id="0">
   <symbol code="0">A</symbol>
   <symbol code="1">C</symbol>
   <symbol code="2">G</symbol>
   <symbol code="3">T</symbol>
  </alphabet>
  <state id="0" initial="0.32755106">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="1" initial="0.16326642">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="2" initial="0.16118162">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="3" initial="0.34279863">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="4" initial="0.00190786">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="5" initial="0.00089046">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="6" initial="0.00045594">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="7" initial="0.00194801">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="8" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="9" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="10" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="11" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="12" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="13" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="14" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="15" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="16" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="17" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="18" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="19" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="20" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="21" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="22" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="23" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="24" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="25" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="26" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="27" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="28" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="29" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="30" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="31" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="32" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="33" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="34" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="35" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="36" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="37" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="38" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="39" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="40" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="41" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="42" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="43" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="44" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="45" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="46" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="47" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="48" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="49" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="50" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="51" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="52" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="53" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="54" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="55" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="56" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="57" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="58" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="59" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <state id="60" initial="0.00000000">
   <discrete id="0">1, 0, 0, 0</discrete>
  </state>
  <state id="61" initial="0.00000000">
   <discrete id="0">0, 1, 0, 0</discrete>
  </state>
  <state id="62" initial="0.00000000">
   <discrete id="0">0, 0, 1, 0</discrete>
  </state>
  <state id="63" initial="0.00000000">
   <discrete id="0">0, 0, 0, 1</discrete>
  </state>
  <transition source="0" target="0">
   <probability>0.35755874</probability>
  </transition>
  <transition source="0" target="1">
   <probability>0.13272592</probability>
  </transition>
  <transition source="0" target="2">
   <probability>0.1633049</probability>
  </transition>
  <transition source="0" target="3">
   <probability>0.33640029</probability>
  </transition>
  <transition source="0" target="4">
   <probability>0.0037448714</probability>
  </transition>
  <transition source="0" target="5">
   <probability>0.0014626844</probability>
  </transition>
  <transition source="0" target="6">
   <probability>0.0012448938</probability>
  </transition>
  <transition source="0" target="7">
   <probability>0.0035576988</probability>
  </transition>
  <transition source="1" target="0">
   <probability>0.36755718</probability>
  </transition>
  <transition source="1" target="1">
   <probability>0.17312807</probability>
  </transition>
  <transition source="1" target="2">
   <probability>0.12918702</probability>
  </transition>
  <transition source="1" target="3">
   <probability>0.31663507</probability>
  </transition>
  <transition source="1" target="4">
   <probability>0.00509139</probability>
  </transition>
  <transition source="1" target="5">
   <probability>0.0024610994</probability>
  </transition>
  <transition source="1" target="6">
   <probability>0.0011460333</probability>
  </transition>
  <transition source="1" target="7">
   <probability>0.0047941259</probability>
  </transition>
  <transition source="2" target="0">
   <probability>0.39441682</probability>
  </transition>
  <transition source="2" target="1">
   <probability>0.12320427</probability>
  </transition>
  <transition source="2" target="2">
   <probability>0.19821555</probability>
  </transition>
  <transition source="2" target="3">
   <probability>0.27591052</probability>
  </transition>
  <transition source="2" target="4">
   <probability>0.0036050488</probability>
  </transition>
  <transition source="2" target="5">
   <probability>0.0012116102</probability>
  </transition>
  <transition source="2" target="6">
   <probability>0.0010121712</probability>
  </transition>
  <transition source="2" target="7">
   <probability>0.0024240105</probability>
  </transition>
  <transition source="3" target="0">
   <probability>0.28463771</probability>
  </transition>
  <transition source="3" target="1">
   <probability>0.16429755</probability>
  </transition>
  <transition source="3" target="2">
   <probability>0.1838241</probability>
  </transition>
  <transition source="3" target="3">
   <probability>0.35627345</probability>
  </transition>
  <transition source="3" target="4">
   <probability>0.0031617291</probability>
  </transition>
  <transition source="3" target="5">
   <probability>0.0021652749</probability>
  </transition>
  <transition source="3" target="6">
   <probability>0.0016828886</probability>
  </transition>
  <transition source="3" target="7">
   <probability>0.0039572944</probability>
  </transition>
  <transition source="4" target="8">
   <probability>0.35837013</probability>
  </transition>
  <transition source="4" target="9">
   <probability>0.16355667</probability>
  </transition>
  <transition source="4" target="10">
   <probability>0.11643171</probability>
  </transition>
  <transition source="4" target="11">
   <probability>0.36164149</probability>
  </transition>
  <transition source="5" target="8">
   <probability>0.32902932</probability>
  </transition>
  <transition source="5" target="9">
   <probability>0.20349675</probability>
  </transition>
  <transition source="5" target="10">
   <probability>0.12420092</probability>
  </transition>
  <transition source="5" target="11">
   <probability>0.34327302</probability>
  </transition>
  <transition source="6" target="8">
   <probability>0.33334393</probability>
  </transition>
  <transition source="6" target="9">
   <probability>0.18626127</probability>
  </transition>
  <transition source="6" target="10">
   <probability>0.12160889</probability>
  </transition>
  <transition source="6" target="11">
   <probability>0.35878591</probability>
  </transition>
  <transition source="7" target="8">
   <probability>0.25229214</probability>
  </transition>
  <transition source="7" target="9">
   <probability>0.21648449</probability>
  </transition>
  <transition source="7" target="10">
   <probability>0.12860255</probability>
  </transition>
  <transition source="7" target="11">
   <probability>0.40262082</probability>
  </transition>
  <transition source="8" target="12">
   <probability>0.44692342</probability>
  </transition>
  <transition source="8" target="13">
   <probability>0.11051022</probability>
  </transition>
  <transition source="8" target="14">
   <probability>0.11939244</probability>
  </transition>
  <transition source="8" target="15">
   <probability>0.32317392</probability>
  </transition>
  <transition source="9" target="12">
   <probability>0.42596417</probability>
  </transition>
  <transition source="9" target="13">
   <probability>0.15743365</probability>
  </transition>
  <transition source="9" target="14">
   <probability>0.1120286</probability>
  </transition>
  <transition source="9" target="15">
   <probability>0.30457359</probability>
  </transition>
  <transition source="10" target="12">
   <probability>0.43986629</probability>
  </transition>
  <transition source="10" target="13">
   <probability>0.11785007</probability>
  </transition>
  <transition source="10" target="14">
   <probability>0.15369711</probability>
  </transition>
  <transition source="10" target="15">
   <probability>0.28858653</probability>
  </transition>
  <transition source="11" target="12">
   <probability>0.33741627</probability>
  </transition>
  <transition source="11" target="13">
   <probability>0.17265565</probability>
  </transition>
  <transition source="11" target="14">
   <probability>0.1338236</probability>
  </transition>
  <transition source="11" target="15">
   <probability>0.35610448</probability>
  </transition>
  <transition source="12" target="16">
   <probability>0.45819404</probability>
  </transition>
  <transition source="12" target="17">
   <probability>0.1075755</probability>
  </transition>
  <transition source="12" target="18">
   <probability>0.1259362</probability>
  </transition>
  <transition source="12" target="19">
   <probability>0.30829426</probability>
  </transition>
  <transition source="13" target="16">
   <probability>0.43212067</probability>
  </transition>
  <transition source="13" target="17">
   <probability>0.1178783</probability>
  </transition>
  <transition source="13" target="18">
   <probability>0.12092448</probability>
  </transition>
  <transition source="13" target="19">
   <probability>0.32907655</probability>
  </transition>
  <transition source="14" target="16">
   <probability>0.43931675</probability>
  </transition>
  <transition source="14" target="17">
   <probability>0.10420738</probability>
  </transition>
  <transition source="14" target="18">
   <probability>0.14821449</probability>
  </transition>
  <transition source="14" target="19">
   <probability>0.30826139</probability>
  </transition>
  <transition source="15" target="16">
   <probability>0.34662114</probability>
  </transition>
  <transition source="15" target="17">
   <probability>0.14759406</probability>
  </transition>
  <transition source="15" target="18">
   <probability>0.18325283</probability>
  </transition>
  <transition source="15" target="19">
   <probability>0.32253197</probability>
  </transition>
  <transition source="16" target="20">
   <probability>0.19435645</probability>
  </transition>
  <transition source="16" target="21">
   <probability>0.33572008</probability>
  </transition>
  <transition source="16" target="22">
   <probability>0.11742025</probability>
  </transition>
  <transition source="16" target="23">
   <probability>0.35250322</probability>
  </transition>
  <transition source="17" target="20">
   <probability>0.27947897</probability>
  </transition>
  <transition source="17" target="21">
   <probability>0.28356084</probability>
  </transition>
  <transition source="17" target="22">
   <probability>0.078551732</probability>
  </transition>
  <transition source="17" target="23">
   <probability>0.35840846</probability>
  </transition>
  <transition source="18" target="20">
   <probability>0.21803118</probability>
  </transition>
  <transition source="18" target="21">
   <probability>0.29578509</probability>
  </transition>
  <transition source="18" target="22">
   <probability>0.19106638</probability>
  </transition>
  <transition source="18" target="23">
   <probability>0.29511735</probability>
  </transition>
  <transition source="19" target="20">
   <probability>0.21709532</probability>
  </transition>
  <transition source="19" target="21">
   <probability>0.36554148</probability>
  </transition>
  <transition source="19" target="22">
   <probability>0.12393335</probability>
  </transition>
  <transition source="19" target="23">
   <probability>0.29342986</probability>
  </transition>
  <transition source="20" target="24">
   <probability>0.29155952</probability>
  </transition>
  <transition source="20" target="25">
   <probability>0.26784354</probability>
  </transition>
  <transition source="20" target="26">
   <probability>0.11253695</probability>
  </transition>
  <transition source="20" target="27">
   <probability>0.32805999</probability>
  </transition>
  <transition source="21" target="24">
   <probability>0.30966829</probability>
  </transition>
  <transition source="21" target="25">
   <probability>0.32733193</probability>
  </transition>
  <transition source="21" target="26">
   <probability>0.10489287</probability>
  </transition>
  <transition source="21" target="27">
   <probability>0.2581069</probability>
  </transition>
  <transition source="22" target="24">
   <probability>0.24916497</probability>
  </transition>
  <transition source="22" target="25">
   <probability>0.27754474</probability>
  </transition>
  <transition source="22" target="26">
   <probability>0.10589326</probability>
  </transition>
  <transition source="22" target="27">
   <probability>0.36739703</probability>
  </transition>
  <transition source="23" target="24">
   <probability>0.20418584</probability>
  </transition>
  <transition source="23" target="25">
   <probability>0.41287359</probability>
  </transition>
  <transition source="23" target="26">
   <probability>0.14064946</probability>
  </transition>
  <transition source="23" target="27">
   <probability>0.24229112</probability>
  </transition>
  <transition source="24" target="28">
   <probability>0.21832669</probability>
  </transition>
  <transition source="24" target="29">
   <probability>0.077108322</probability>
  </transition>
  <transition source="24" target="30">
   <probability>0.0099074166</probability>
  </transition>
  <transition source="24" target="31">
   <probability>0.69465757</probability>
  </transition>
  <transition source="25" target="28">
   <probability>0.17779987</probability>
  </transition>
  <transition source="25" target="29">
   <probability>0.097192155</probability>
  </transition>
  <transition source="25" target="30">
   <probability>0.0070653875</probability>
  </transition>
  <transition source="25" target="31">
   <probability>0.71794259</probability>
  </transition>
  <transition source="26" target="28">
   <probability>0.15653263</probability>
  </transition>
  <transition source="26" target="29">
   <probability>0.077311053</probability>
  </transition>
  <transition source="26" target="30">
   <probability>0.0022428085</probability>
  </transition>
  <transition source="26" target="31">
   <probability>0.76391351</probability>
  </transition>
  <transition source="27" target="28">
   <probability>0.22555138</probability>
  </transition>
  <transition source="27" target="29">
   <probability>0.17898033</probability>
  </transition>
  <transition source="27" target="30">
   <probability>0.013266901</probability>
  </transition>
  <transition source="27" target="31">
   <probability>0.58220139</probability>
  </transition>
  <transition source="28" target="32">
   <probability>0.20128321</probability>
  </transition>
  <transition source="28" target="33">
   <probability>0.0341417</probability>
  </transition>
  <transition source="28" target="34">
   <probability>0.014034442</probability>
  </transition>
  <transition source="28" target="35">
   <probability>0.75054065</probability>
  </transition>
  <transition source="29" target="32">
   <probability>0.20130655</probability>
  </transition>
  <transition source="29" target="33">
   <probability>0.045030404</probability>
  </transition>
  <transition source="29" target="34">
   <probability>0.12501307</probability>
  </transition>
  <transition source="29" target="35">
   <probability>0.62864998</probability>
  </transition>
  <transition source="30" target="32">
   <probability>0.0222745</probability>
  </transition>
  <transition source="30" target="33">
   <probability>0.010030262</probability>
  </transition>
  <transition source="30" target="34">
   <probability>0.030124756</probability>
  </transition>
  <transition source="30" target="35">
   <probability>0.93757048</probability>
  </transition>
  <transition source="31" target="32">
   <probability>0.096929443</probability>
  </transition>
  <transition source="31" target="33">
   <probability>0.064786763</probability>
  </transition>
  <transition source="31" target="34">
   <probability>0.051271862</probability>
  </transition>
  <transition source="31" target="35">
   <probability>0.78701193</probability>
  </transition>
  <transition source="32" target="36">
   <probability>0.99877122</probability>
  </transition>
  <transition source="32" target="37">
   <probability>0.00082001055</probability>
  </transition>
  <transition source="32" target="38">
   <probability>0.00014693233</probability>
  </transition>
  <transition source="32" target="39">
   <probability>0.00026183622</probability>
  </transition>
  <transition source="33" target="36">
   <probability>0.97542691</probability>
  </transition>
  <transition source="33" target="37">
   <probability>0.0090929638</probability>
  </transition>
  <transition source="33" target="38">
   <probability>0.00071868764</probability>
  </transition>
  <transition source="33" target="39">
   <probability>0.014761434</probability>
  </transition>
  <transition source="34" target="36">
   <probability>0.99545212</probability>
  </transition>
  <transition source="34" target="37">
   <probability>0.00067532713</probability>
  </transition>
  <transition source="34" target="38">
   <probability>0.00085968717</probability>
  </transition>
  <transition source="34" target="39">
   <probability>0.003012864</probability>
  </transition>
  <transition source="35" target="36">
   <probability>0.97252105</probability>
  </transition>
  <transition source="35" target="37">
   <probability>0.012964607</probability>
  </transition>
  <transition source="35" target="38">
   <probability>0.0036162115</probability>
  </transition>
  <transition source="35" target="39">
   <probability>0.010898133</probability>
  </transition>
  <transition source="36" target="40">
   <probability>0.0084781622</probability>
  </transition>
  <transition source="36" target="41">
   <probability>0.0064306565</probability>
  </transition>
  <transition source="36" target="42">
   <probability>0.0063981214</probability>
  </transition>
  <transition source="36" target="43">
   <probability>0.97869306</probability>
  </transition>
  <transition source="37" target="40">
   <probability>0.0010205304</probability>
  </transition>
  <transition source="37" target="41">
   <probability>0.00016083588</probability>
  </transition>
  <transition source="37" target="42">
   <probability>0.00039373269</probability>
  </transition>
  <transition source="37" target="43">
   <probability>0.9984249</probability>
  </transition>
  <transition source="38" target="40">
   <probability>0.0031782462</probability>
  </transition>
  <transition source="38" target="41">
   <probability>0.00028639197</probability>
  </transition>
  <transition source="38" target="42">
   <probability>0.0011044146</probability>
  </transition>
  <transition source="38" target="43">
   <probability>0.99543095</probability>
  </transition>
  <transition source="39" target="40">
   <probability>0.0012975013</probability>
  </transition>
  <transition source="39" target="41">
   <probability>0.0016036535</probability>
  </transition>
  <transition source="39" target="42">
   <probability>0.00093731112</probability>
  </transition>
  <transition source="39" target="43">
   <probability>0.99616153</probability>
  </transition>
  <transition source="40" target="44">
   <probability>0.0024828321</probability>
  </transition>
  <transition source="40" target="45">
   <probability>0.99464887</probability>
  </transition>
  <transition source="40" target="46">
   <probability>0.00083083155</probability>
  </transition>
  <transition source="40" target="47">
   <probability>0.0020374628</probability>
  </transition>
  <transition source="41" target="44">
   <probability>0.0030225443</probability>
  </transition>
  <transition source="41" target="45">
   <probability>0.99189185</probability>
  </transition>
  <transition source="41" target="46">
   <probability>0.00018050039</probability>
  </transition>
  <transition source="41" target="47">
   <probability>0.0049051089</probability>
  </transition>
  <transition source="42" target="44">
   <probability>0.0027960737</probability>
  </transition>
  <transition source="42" target="45">
   <probability>0.99611334</probability>
  </transition>
  <transition source="42" target="46">
   <probability>0.00017558101</probability>
  </transition>
  <transition source="42" target="47">
   <probability>0.00091500156</probability>
  </transition>
  <transition source="43" target="44">
   <probability>0.0082516549</probability>
  </transition>
  <transition source="43" target="45">
   <probability>0.98384595</probability>
  </transition>
  <transition source="43" target="46">
   <probability>0.0029062447</probability>
  </transition>
  <transition source="43" target="47">
   <probability>0.0049961517</probability>
  </transition>
  <transition source="44" target="48">
   <probability>0.002712925</probability>
  </transition>
  <transition source="44" target="49">
   <probability>0.36827597</probability>
  </transition>
  <transition source="44" target="50">
   <probability>0.003517034</probability>
  </transition>
  <transition source="44" target="51">
   <probability>0.62549407</probability>
  </transition>
  <transition source="45" target="48">
   <probability>0.024346444</probability>
  </transition>
  <transition source="45" target="49">
   <probability>0.63024426</probability>
  </transition>
  <transition source="45" target="50">
   <probability>0.013749795</probability>
  </transition>
  <transition source="45" target="51">
   <probability>0.3316595</probability>
  </transition>
  <transition source="46" target="48">
   <probability>0.0016235677</probability>
  </transition>
  <transition source="46" target="49">
   <probability>0.38200082</probability>
  </transition>
  <transition source="46" target="50">
   <probability>0.18912161</probability>
  </transition>
  <transition source="46" target="51">
   <probability>0.427254</probability>
  </transition>
  <transition source="47" target="48">
   <probability>0.0040850835</probability>
  </transition>
  <transition source="47" target="49">
   <probability>0.34336443</probability>
  </transition>
  <transition source="47" target="50">
   <probability>0.0015007824</probability>
  </transition>
  <transition source="47" target="51">
   <probability>0.65104971</probability>
  </transition>
  <transition source="48" target="52">
   <probability>0.49949591</probability>
  </transition>
  <transition source="48" target="53">
   <probability>0.020177341</probability>
  </transition>
  <transition source="48" target="54">
   <probability>0.10147933</probability>
  </transition>
  <transition source="48" target="55">
   <probability>0.37884743</probability>
  </transition>
  <transition source="49" target="52">
   <probability>0.6839704</probability>
  </transition>
  <transition source="49" target="53">
   <probability>0.030072858</probability>
  </transition>
  <transition source="49" target="54">
   <probability>0.13014219</probability>
  </transition>
  <transition source="49" target="55">
   <probability>0.15581455</probability>
  </transition>
  <transition source="50" target="52">
   <probability>0.50774389</probability>
  </transition>
  <transition source="50" target="53">
   <probability>0.015714295</probability>
  </transition>
  <transition source="50" target="54">
   <probability>0.27193101</probability>
  </transition>
  <transition source="50" target="55">
   <probability>0.2046108</probability>
  </transition>
  <transition source="51" target="52">
   <probability>0.38278814</probability>
  </transition>
  <transition source="51" target="53">
   <probability>0.098623052</probability>
  </transition>
  <transition source="51" target="54">
   <probability>0.15994051</probability>
  </transition>
  <transition source="51" target="55">
   <probability>0.35864829</probability>
  </transition>
  <transition source="52" target="56">
   <probability>0.37421601</probability>
  </transition>
  <transition source="52" target="57">
   <probability>0.20810246</probability>
  </transition>
  <transition source="52" target="58">
   <probability>0.080729467</probability>
  </transition>
  <transition source="52" target="59">
   <probability>0.33695207</probability>
  </transition>
  <transition source="53" target="56">
   <probability>0.32666194</probability>
  </transition>
  <transition source="53" target="57">
   <probability>0.14935756</probability>
  </transition>
  <transition source="53" target="58">
   <probability>0.060260654</probability>
  </transition>
  <transition source="53" target="59">
   <probability>0.46371985</probability>
  </transition>
  <transition source="54" target="56">
   <probability>0.39553879</probability>
  </transition>
  <transition source="54" target="57">
   <probability>0.15191283</probability>
  </transition>
  <transition source="54" target="58">
   <probability>0.13897013</probability>
  </transition>
  <transition source="54" target="59">
   <probability>0.31357824</probability>
  </transition>
  <transition source="55" target="56">
   <probability>0.26985936</probability>
  </transition>
  <transition source="55" target="57">
   <probability>0.27728346</probability>
  </transition>
  <transition source="55" target="58">
   <probability>0.095219622</probability>
  </transition>
  <transition source="55" target="59">
   <probability>0.35763756</probability>
  </transition>
  <transition source="56" target="60">
   <probability>0.61744931</probability>
  </transition>
  <transition source="56" target="61">
   <probability>0.060545087</probability>
  </transition>
  <transition source="56" target="62">
   <probability>0.039252891</probability>
  </transition>
  <transition source="56" target="63">
   <probability>0.28275271</probability>
  </transition>
  <transition source="57" target="60">
   <probability>0.43999385</probability>
  </transition>
  <transition source="57" target="61">
   <probability>0.071098385</probability>
  </transition>
  <transition source="57" target="62">
   <probability>0.049903308</probability>
  </transition>
  <transition source="57" target="63">
   <probability>0.43900446</probability>
  </transition>
  <transition source="58" target="60">
   <probability>0.53383385</probability>
  </transition>
  <transition source="58" target="61">
   <probability>0.061169383</probability>
  </transition>
  <transition source="58" target="62">
   <probability>0.01917465</probability>
  </transition>
  <transition source="58" target="63">
   <probability>0.38582212</probability>
  </transition>
  <transition source="59" target="60">
   <probability>0.35704327</probability>
  </transition>
  <transition source="59" target="61">
   <probability>0.098915188</probability>
  </transition>
  <transition source="59" target="62">
   <probability>0.077106624</probability>
  </transition>
  <transition source="59" target="63">
   <probability>0.46693492</probability>
  </transition>
  <transition source="60" target="0">
   <probability>0.44321613</probability>
  </transition>
  <transition source="60" target="1">
   <probability>0.11576123</probability>
  </transition>
  <transition source="60" target="2">
   <probability>0.07408635</probability>
  </transition>
  <transition source="60" target="3">
   <probability>0.36693629</probability>
  </transition>
  <transition source="61" target="0">
   <probability>0.34567724</probability>
  </transition>
  <transition source="61" target="1">
   <probability>0.16216277</probability>
  </transition>
  <transition source="61" target="2">
   <probability>0.081311924</probability>
  </transition>
  <transition source="61" target="3">
   <probability>0.41084806</probability>
  </transition>
  <transition source="62" target="0">
   <probability>0.35431002</probability>
  </transition>
  <transition source="62" target="1">
   <probability>0.11155337</probability>
  </transition>
  <transition source="62" target="2">
   <probability>0.14230582</probability>
  </transition>
  <transition source="62" target="3">
   <probability>0.39183079</probability>
  </transition>
  <transition source="63" target="0">
   <probability>0.25878681</probability>
  </transition>
  <transition source="63" target="1">
   <probability>0.14511557</probability>
  </transition>
  <transition source="63" target="2">
   <probability>0.093223834</probability>
  </transition>
  <transition source="63" target="3">
   <probability>0.50287378</probability>
  </transition>
 </HMM>
</mixture>


text:
<resources>

    <!-- Base application theme.
    既存のAndroidアプリにMaterial Themeを適用する方法
    https://firespeed.org/diary.php?diary=kenz-1790
    -->
    <style name="AppTheme" parent="@android:style/Theme.Holo.Light">
    </style>

</resources>


text:
"""
Text utilities to be used

@author: x003621
"""
from __future__ import division

import matplotlib as mpl

def text_getinfo_availablesystemfonts():
    return mpl.font_manager.findSystemFonts(fontpaths=None)

#def text_set_properties(family = 'sans-serif', style = 'normal',
#                        variant = 'normal', stretch = 'normal',
#                        weight = 'normal', size = 'medium'):
#    """
#    This is just a convenient wrapper around
#    `matplotlib.font_manager.FontProperties` including easier font sizes
#    definitions.
#
#    The way to use it is similar to `matplotlib.font_manager.FontProperties`
#    except you can define the `size` property using one of the following
#    shortcuts:
#
#        'xxs': 'xx-small',
#        'xs': 'x-small',
#        's': 'small',
#        'm': 'medium',
#        'l': 'large',
#        'xl': 'x-large',
#        'xxl': 'xx-large'
#
#    For more info use `help(matplotlib.font_manager.FontProperties)`.
#    """
#    _sizes = {
#        'xxs': 'xx-small',
#        'xs': 'x-small',
#        's': 'small',
#        'm': 'medium',
#        'l': 'large',
#        'xl': 'x-large',
#        'xxl': 'xx-large'
#	}
#    if size in ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']:
#        size = _sizes[size]
#    fm = mpl.font_manager.FontProperties(family, style, variant, stretch,
#                                         weight, size)
#    return fm


text:
var render = function (theme, data, meta, require) {
	//print(caramel.build(data));
    theme('1-column-fluid', {
        title: data.title,
        navigation: [
            {
                partial: 'navigation',
                context: data.navigation
            }
        ],
        body: [
            {
                partial: 'portal-dashboard-browser',
                context: data['portal-dashboard-browser']
            }
        ]
    });
};


text:
// (C) Copyright 2014 by Autodesk, Inc.
//
// The information contained herein is confidential, proprietary
// to Autodesk, Inc., and considered a trade secret as defined
// in section 499C of the penal code of the State of California.
// Use of this information by anyone other than authorized
// employees of Autodesk, Inc. is granted only under a written
// non-disclosure agreement, expressly prescribing the scope
// and manner of such use.

//- Written by Cyrille Fauvel, Autodesk Developer Network (ADN)
//- http://www.autodesk.com/joinadn
//- January 20th, 2014
//
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle ("AutodeskWpfReCap")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("Autodesk, Inc.")]
[assembly: AssemblyProduct ("AutodeskWpfReCap")]
[assembly: AssemblyCopyright ("Copyright © Autodesk, Inc. 2014")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components.  If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible (false)]

//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>.  For example, if you are using US english
//in your source files, set the <UICulture> to en-US.  Then uncomment
//the NeutralResourceLanguage attribute below.  Update the "en-US" in
//the line below to match the UICulture setting in the project file.

//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]

[assembly: ThemeInfo (
	ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
	//(used if a resource is not found in the page,
	// or application resource dictionaries)
	ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
	//(used if a resource is not found in the page,
	// app, or any theme specific resource dictionaries)
)]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion ("1.0.0.0")]
[assembly: AssemblyFileVersion ("1.0.0.0")]


text:
using Newtonsoft.Json;
using SendGrid;
using SendGrid.Helpers.Mail; // If you are using the Mail Helper
using System;

var apiKey = Environment.GetEnvironmentVariable("NAME_OF_THE_ENVIRONMENT_VARIABLE_FOR_YOUR_SENDGRID_KEY");
var client = new SendGridClient(apiKey);

////////////////////////////////////////////////////////
// Retrieve email statistics by country and state/province.
// GET /geo/stats

string queryParams = @"{
  'aggregated_by': 'day',
  'country': 'US',
  'end_date': '2016-04-01',
  'limit': 1,
  'offset': 1,
  'start_date': '2016-01-01'
}";
var response = await client.RequestAsync(method: SendGridClient.Method.GET, urlPath: "geo/stats", queryParams: queryParams);
Console.WriteLine(response.StatusCode);
Console.WriteLine(response.Body.ReadAsStringAsync().Result);
Console.WriteLine(response.Headers.ToString());
Console.ReadLine();