text:
/*
HTML5 Reset ::style.css - via https://github.com/murtaugh/HTML5-Reset/blob/master/_/css/style.css
----------------------------------------------------------
We have learned much from/been inspired by/taken code where offered from:Eric Meyer ::http://ericmeyer.com
HTML5 Doctor ::http://html5doctor.com
and the HTML5 Boilerplate ::http://html5boilerplate.com
-------------------------------------------------------------------------------*/
/* Let's default this puppy out
-------------------------------------------------------------------------------*/
html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font-style: normal;
  font-weight: normal;
  vertical-align: baseline;
  background: transparent; }

article, aside, figure, footer, header, hgroup, img, nav, section {
  display: block; }

/* Responsive images and other embedded objects
Note:keeping IMG here will cause problems if you're using foreground images as sprites.
If this default setting for images is causing issues,you might want to replace it with a .responsive class instead. */
img, object, embed {
  max-width: 100%;
  height: auto; }

/* force a vertical scrollbar to prevent a jumpy page */
html {
  overflow-y: scroll; }

/* we use a lot of ULs that aren't bulleted.
don't forget to restore the bullets within content. */
ul {
  list-style: none; }

blockquote, q {
  quotes: none; }

blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none; }

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent; }

del {
  text-decoration: line-through; }

abbr[title], dfn[title] {
  border-bottom: 1px dotted #000;
  cursor: help; }

/* tables still need cellspacing="0" in the markup */
table {
  border-collapse: collapse;
  border-spacing: 0; }

th {
  font-weight: bold;
  vertical-align: bottom; }

td {
  font-weight: normal;
  vertical-align: top; }

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0; }

input, select {
  vertical-align: middle; }

pre {
  white-space: pre;
  /* CSS2 */
  white-space: pre-wrap;
  /* CSS 2.1 */
  white-space: pre-line;
  /* CSS 3 (and 2.1 as well,actually) */
  word-wrap: break-word;
  /* IE */ }

input[type="radio"] {
  vertical-align: text-bottom; }

input[type="checkbox"] {
  vertical-align: bottom;
  *vertical-align: baseline; }

.lt-ie7 input {
  vertical-align: text-bottom; }

select, input, textarea {
  font: 99% sans-serif; }

table {
  font-size: inherit;
  font: 100%; }

/* Accessible focus treatment
people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active {
  outline: none; }

small {
  font-size: 85%; }

em, i {
  font-style: italic; }

strong, th, b {
  font-weight: bold; }

td, td img {
  vertical-align: top; }

/* Make sure sup and sub don't screw with your line-heights
gist.github.com/413930 */
sub, sup {
  font-size: 60%;
  line-height: 0;
  position: relative; }

sup {
  top: -0.75em; }

sub {
  bottom: -0.5em; }

/* standardize any monospaced elements */
pre, code, kbd, samp {
  font-family: monospace,sans-serif; }

/* hand cursor on clickable elements */
.clickable, label, input[type=button], input[type=submit], button {
  cursor: pointer; }

/* Webkit browsers add a 2px margin outside the chrome of form elements */
button, input, select, textarea {
  margin: 0; }

/* make buttons play nice in IE */
button {
  width: auto;
  overflow: visible; }

/* scale images in IE7 more attractively */
.lt-ie8 img {
  -ms-interpolation-mode: bicubic; }

/* prevent BG image flicker upon hover */
.lt-ie7 html {
  filter: expression(document.execCommand("BackgroundImageCache",false,true)); }

/* let's clear some floats */
.clearfix:before, .clearfix:after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden; }

.clearfix:after {
  clear: both; }

.clearfix {
  zoom: 1; }

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

html {
  -webkit-text-size-adjust: none; }

input {
  -webkit-appearance: none;
  -moz-appearance: none; }

/* SCSS Framework boilerplate from Flask: https://github.com/kylelarkin/flask */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

body, select, input, textarea {
  color: #333; }

::-moz-selection {
  background: #cccccc;
  color: #000;
  text-shadow: none; }

::selection {
  background: #cccccc;
  color: #000;
  text-shadow: none; }

a:link {
  -webkit-tap-highlight-color: #cccccc; }

ins {
  background-color: #cccccc;
  color: #000;
  text-decoration: none; }

mark {
  background-color: #cccccc;
  color: #000;
  font-style: italic;
  font-weight: bold; }

body {
  color: #555555;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 100%;
  font-weight: normal;
  line-height: 1.4; }

a {
  color: #333333; }
  a:hover, a:focus {
    color: black; }
  a.reverse {
    color: #555555; }
    a.reverse:hover, a.reverse:focus {
      color: #333333; }

h1 {
  color: #333333;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.5em;
  line-height: 1.3;
  margin: 0.66667em 0; }

h2 {
  color: #333333;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.3125em;
  line-height: 1.3;
  margin: 0.7619em 0; }

h3 {
  color: #333333;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.125em;
  line-height: 1.3;
  margin: 0.88889em 0; }

h4 {
  color: #333333;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1em;
  line-height: 1.3;
  margin: 1.14286em 0; }

h5 {
  color: #333333;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1em;
  line-height: 1.3;
  margin: 1.14286em 0; }

h6 {
  color: #333333;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.875em;
  line-height: 1.3;
  margin: 1.14286em 0; }

p {
  font-size: 1em;
  line-height: 1.4;
  margin: 1em 0; }

em, i {
  font-style: italic; }
  em strong, em b, i strong, i b {
    font-style: italic; }

strong, b {
  font-weight: bold; }
  strong em, strong i, b em, b i {
    font-weight: bold; }

ul {
  list-style: disc;
  margin: 0 0 0 1.1em;
  padding-bottom: 1em; }
  nav ul {
    list-style: none;
    margin: 0;
    padding-bottom: 0; }
    nav ul a {
      text-decoration: none; }

header {
  *zoom: 1; }
  header:before, header:after {
    content: " ";
    display: table; }
  header:after {
    clear: both; }
  header .inner {
    *zoom: 1;
    max-width: 80em;
    margin-left: auto;
    margin-right: auto; }
    header .inner:before, header .inner:after {
      content: " ";
      display: table; }
    header .inner:after {
      clear: both; }

body {
  padding: 0 3%; }

.wrapper {
  background: #ccc; }
  .wrapper .inner {
    *zoom: 1;
    max-width: 80em;
    margin-left: auto;
    margin-right: auto; }
    .wrapper .inner:before, .wrapper .inner:after {
      content: " ";
      display: table; }
    .wrapper .inner:after {
      clear: both; }

footer {
  *zoom: 1; }
  footer:before, footer:after {
    content: " ";
    display: table; }
  footer:after {
    clear: both; }
  footer .inner {
    *zoom: 1;
    max-width: 80em;
    margin-left: auto;
    margin-right: auto; }
    footer .inner:before, footer .inner:after {
      content: " ";
      display: table; }
    footer .inner:after {
      clear: both; }


text:
<?php

namespace Components\Projects\Tables;

use Hubzero\Database\Table;

/**
 * Project Tool Instance class
 */
class ToolInstance extends Table
{
	/**
	 * Constructor
	 *
	 * @param   object  &$db  Database
	 * @return  void
	 */
	public function __construct(&$db)
	{
		parent::__construct('#__project_tool_instances', 'id', $db);
	}

	/**
	 * Validate data
	 *
	 * @return  boolean  True if data is valid
	 */
	public function check()
	{
		if (!$this->id && trim($this->parent_name) == '')
		{
			$this->setError(Lang::txt('COM_TOOLS_ERROR_NO_INSTANCE_PARENT_NAME'));
			return false;
		}

		if (!$this->id && trim($this->instance) == '')
		{
			$this->setError(Lang::txt('COM_TOOLS_ERROR_NO_INSTANCE'));
			return false;
		}

		return true;
	}

	/**
	 * Load from instance
	 *
	 * @param   string  $instance
	 * @return  mixed   object or false
	 */
	public function loadFromInstanceName($instance = null)
	{
		if ($instance === null)
		{
			return false;
		}

		$query  = "SELECT * FROM $this->_tbl AS v WHERE v.instance=" . $this->_db->quote($instance) . " LIMIT 1";

		$this->_db->setQuery($query);
		if ($result = $this->_db->loadAssoc())
		{
			return $this->bind($result);
		}
		else
		{
			$this->setError($this->_db->getErrorMsg());
			return false;
		}
	}

	/**
	 * Load from parent
	 *
	 * @param   string  $parent  Parent tool ID or name
	 * @return  mixed   object or false
	 */
	public function loadFromParent($parent = null, $version = 'dev')
	{
		if ($parent === null)
		{
			return false;
		}

		$query  = "SELECT * FROM $this->_tbl AS v WHERE ";
		$query .= is_numeric($parent) ? "v.parent_id=" . $this->_db->quote($parent) : "v.parent_name=" . $this->_db->quote($parent);
		if ($version == 'dev')
		{
			$query .= " AND v.state=3 ";
		}
		if ($version == 'published')
		{
			$query .= " AND v.state=1 ORDER BY v.id DESC ";
		}
		elseif (is_numeric($version))
		{
			$query .= " AND v.revision=" . $version;
		}
		else
		{
			// Get latest
			$query .= " ORDER BY v.id DESC";
		}
		$query .= " LIMIT 1";

		$this->_db->setQuery($query);
		if ($result = $this->_db->loadAssoc())
		{
			return $this->bind($result);
		}
		else
		{
			$this->setError($this->_db->getErrorMsg());
			return false;
		}
	}

	/**
	 * Get all instances
	 *
	 * @param   integer  $includedev
	 * @return  object
	 */
	public function getAll($includedev = 1)
	{
		$sql = "SELECT * FROM $this->_tbl";
		if (!$includedev)
		{
			$sql.= " WHERE state!='3'";
		}

		$this->_db->setQuery($sql);
		return $this->_db->loadObjectList();
	}

	/**
	 * Get instances
	 *
	 * @param   string  $parent_name
	 * @param   int     $parent_id
	 * @param   int     $exclude_dev
	 * @return  mixed
	 */
	public function getInstances($parent_name = null, $parent_id = null, $exclude_dev = 0)
	{
		if ($parent_name === null)
		{
			$parent_name = $this->parent_name;
		}
		if ($parent_id === null)
		{
			$parent_id = $this->parent_id;
		}
		if (!$parent_id && !$parent_name)
		{
			return false;
		}

		$query  = "SELECT v.* ";
		$query .= "FROM $this->_tbl as v WHERE 1=1 AND ";
		$query .= $parent_id ? "v.parent_id=" . $this->_db->quote($parent_id)
			: "v.parent_name=" . $this->_db->quote($parent_name);
		$query .= $exclude_dev ? ' AND v.state != 3' : '';
		$query .= " ORDER BY v.revision DESC";

		$this->_db->setQuery($query);
		return $this->_db->loadObjectList();
	}

	/**
	 * Get Dev Instance Property
	 *
	 * @param   string  $parent_name
	 * @param   string  $property
	 * @return  object
	 */
	public function getDevInstanceProperty($parent_name, $property)
	{
		$query  = "SELECT " . $this->_db->quote($property) . " FROM $this->_tbl
			WHERE parent_name=" . $this->_db->quote($parent_name) . " AND state=3 LIMIT 1";
		$this->_db->setQuery($query);
		return $this->_db->loadResult();
	}

	/**
	 * Update Parent Name
	 *
	 * @param   string  $parent_id
	 * @param   string  $newname
	 * @return  mixed
	 */
	public function updateParentName($parent_id = null, $newname = null)
	{
		if ($newname === null || $parent_id === null)
		{
			return false;
		}

		$query = "UPDATE $this->_tbl SET parent_name =" . $this->_db->quote($newname)
				. " WHERE parent_id =" . $this->_db->quote($parent_id);
		$this->_db->setQuery( $query );
		if ($this->_db->query())
		{
			return true;
		}

		return false;
	}
}

redpajama_set_name: RedPajamaGithub


text:
require 'active_model'

dirs = %w{ validates_russian validators }

dirs.each do |dir|
  Dir[File.dirname(__FILE__) + "/#{dir}/*.rb"].each { |f| require f }
end


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
    <title>reAlign - SeqAn API Documentation</title>

      <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.css" type="text/css" media="screen" charset="utf-8" />

      <link rel="stylesheet" href="lib/bootstrap-multiselect/css/bootstrap-multiselect.css" type="text/css" media="screen" charset="utf-8" />

      <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
      <link rel="stylesheet" href="css/common.less.css" type="text/css" media="screen" charset="utf-8" />

  fn() reAlign

Perform realignment using the Anson-Myers realignment.

    Defined in

      <seqan/consensus.h>

    Signature

      void reAlign(fragStore, consensusScore, contigID, [realignmentMethod,] bandwidth, includeReference);

Parameters

                fragStore

        The FragmentStore with the alignment to realign.

                consensusScore

        The Score to use for scoring alignments.

                contigID

        The integer id of the contig to realign.

                bandwidth

        The integer bandwidth to use for realignment.

                includeReference

        A <tt>bool</tt> flag that indicates whether to include the reference as a pseudo-read.

Detailed Description

Deprecated.

Do not use this function but use the new function reAlignment instead.

If <tt>includeReference</tt> then the reference of the given contig will be used as a pseudo-read. In this case, the
reference will be replaced by the consensus. When included as a pseudo-read, the alignment of the consensus relative
to the original refernence can be used to call variants.

Data Races

 		Thread safety unknown!

        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

Dox Sources

/*!
 * @fn reAlign
 *
 * @headerfile <seqan/consensus.h>
 *
 * @brief Perform realignment using the Anson-Myers realignment.
 *
 * @deprecated Do not use this function but use the new function @link
 *             reAlignment @endlink instead.
 *
 * @signature void reAlign(fragStore, consensusScore, contigID,
 *            [realignmentMethod,] bandwidth, includeReference);
 *
 * @param[in,out] fragStore The @link FragmentStore @endlink with the alignment
 *                          to realign.
 * @param[in] consensusScore The @link Score @endlink to use for scoring
 *                           alignments.
 * @param[in] contigID The integer id of the contig to realign.
 * @param[in] bandwidth The integer bandwidth to use for realignment.
 * @param[in] includeReference A <tt>bool</tt> flag that indicates whether to
 *                             include the reference as a pseudo-read.
 *
 * If <tt>includeReference</tt> then the reference of the given contig will be
 * used as a pseudo-read. In this case, the reference will be replaced by the
 * consensus. When included as a pseudo-read, the alignment of the consensus
 * relative to the original refernence can be used to call variants.
 */

        <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>


text:
import math

def pixels_to_EMU(value):
    return int(round(value * 9525))

def EMU_to_pixels(value):
    if not value:
        return 0
    else:
        return round(value / 9525.)

def EMU_to_cm(value):
    if not value:
        return 0
    else:
        return (EMU_to_pixels(value) * 2.57 / 96)

def pixels_to_points(value):
    return value * 0.67777777

def points_to_pixels(value):
    if not value:
        return 0
    else:
        return int(math.ceil(value * 1.333333333))

def degrees_to_angle(value):
    return int(round(value * 60000))

def angle_to_degrees(value):
    if not value:
        return 0
    else:
        return round(value / 60000.)

def short_color(color):
    """ format a color to its short size """

    if len(color) > 6:
        return color[2:]
    else:
        return color


text:
@class ModelUnit;
@class ModelUnit_PropertiesEnum;
@protocol ViewCapacityOverviewView;

@interface ControllerCapacityOverviewController : ControllerController < EventFetchUnitsEvent_Handler >

#pragma mark Public

- (instancetype)initWithViewCapacityOverviewView:(id<ViewCapacityOverviewView>)view;

- (void)editCapacityWithModelUnit:(ModelUnit *)unit;

- (void)onStop;

- (void)onUnitsFetchedWithEventFetchUnitsEvent:(EventFetchUnitsEvent *)event;

- (void)sortUnitsWithModelUnit_PropertiesEnum:(ModelUnit_PropertiesEnum *)property
                                  withBoolean:(jboolean)ascending;

#pragma mark Package-Private

- (NSString *)getTitle;

@end

J2OBJC_STATIC_INIT(ControllerCapacityOverviewController)

FOUNDATION_EXPORT void ControllerCapacityOverviewController_initWithViewCapacityOverviewView_(ControllerCapacityOverviewController *self, id<ViewCapacityOverviewView> view);

FOUNDATION_EXPORT ControllerCapacityOverviewController *new_ControllerCapacityOverviewController_initWithViewCapacityOverviewView_(id<ViewCapacityOverviewView> view) NS_RETURNS_RETAINED;

J2OBJC_TYPE_LITERAL_HEADER(ControllerCapacityOverviewController)

@compatibility_alias RtdcCoreControllerCapacityOverviewController ControllerCapacityOverviewController;

#endif // _CapacityOverviewController_H_


text:
package de.digitalcollections.iiif.presentation.model.impl.jackson.mixin.v2;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import de.digitalcollections.iiif.presentation.model.impl.v2.ContentImpl;

@JsonDeserialize(as = ContentImpl.class)
public abstract class ContentMixIn extends AbstractIiifResourceMixIn {

}


text:
require 'spec_helper'

describe EvernoteLinkExtractor::Runner do
  it { expect(EvernoteLinkExtractor::Runner.new.respond_to?(:run)).to be_truthy }
end


text:
/**
 * Module dependencies.
 */

var express = require('express'),
    connect = require('connect'),
    sys = require('sys'),
    assert = require('assert'),
    couchdb = require('couchdb'),
    client = couchdb.createClient(80, 'subprint.couchone.com'),
    request = require('request'),
    db = client.db('lingua-couch'),
    translate = require('./public/js/translate.js/lib/translate.js'),
    languages = require('./public/js/translate.js/lib/languages.js'),
    app = express.createServer();

// Configuration
app.configure(function ()
{
    app.set('views', __dirname + '/views');
    app.use('/', connect.bodyDecoder());
    app.use('/', connect.methodOverride());
    app.use(connect.staticProvider(__dirname + '/public'));
});

app.configure('development', function ()
{
    app.use(connect.errorHandler({
        dumpExceptions: false,
        showStack: true
    }));
});

app.configure('production', function ()
{
    app.use(connect.errorHandler());
});

app.get('/store', function (req, res)
{

    storeInCouch(req, function (revision)
    {
        res.send(revision);
    });

});

var dbId = 'lingua-couch', // eventually pass command line variables and set default, but hardcode nao for prototype.
    db = 'lingua-couch/',
    couchone = 'http://subprint.couchone.com/',
    doc = '',
    rev = '',
    uri = buildUri(couchone, db, dbId),
    allLangs = Object.keys(languages.getLangs()),
    yql = 'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D%22http%3A%2F%2Ffeeds.nytimes.com%2Fnyt%2Frss%2FHomePage%22&format=json',
    langFrom = 'English',
    langTo = 'Dutch'; //grabRandomLanguage(),
	couchStack = [], yqlNodeLen = 0;
	yqlInterval = (parseInt(process.ARGV[2], 10) * 100000) || null;  // every n number of minutes or none at all.

// Initialize vars relative to couchdb instance.
request(
{
    uri: uri
}, function (error, response, body)
{
    if (!error && response.statusCode == 200)
    {
        //sys.puts(sys.inspect(body)) // If you need to see it...
        console.log('\nInitial call to couchone successful.\n')
        doc = JSON.parse(body);
        rev = doc._rev;

        // Now kick off some YQL action to build up our database. -> For presentation demo mainly, otherwise, remove or comment it out.
        yqlNyTimes();

		// If we passed in an interval from the command line then, call it on that interval.
        yqlInterval && setInterval(yqlNyTimes, yqlInterval);
    }
    else
    {
        assert.equal(response.statusCode, 200);
    }
});

// Helper method for building couchone uri.
function buildUri(host, db, id) { return host + db + id; }

// Update the document with the new data object.
// Fire callback if it exits.
function updateDoc(obj, cb)
{
    request(obj, function (error, response, body)
    {
        if (error)
        {
        	// Throw an error if you want.
            //throw new Error(error);
            cb(response.statusCode);
            sys.puts(response.statusCode + " instead of an error.\n");

        };
        //assert.equal(response.statusCode, 201);
        var d = JSON.parse(body);
        rev = d.rev;
        cb && cb(rev);
    })
}

// Runs various checks to properly format the data for storage in couchone.
function storeInCouch(req, cb)
{

    // TODO: Sanitize this
    var compoundKey = req.query.from.toLowerCase() + "_" + req.query.to.toLowerCase();

    var words = [];
    words = req.query.message.split(" ");
    var firstword = words[0].toLowerCase();

    // TODO: use the words and create random phrases to further beef up db of words and phrases.

    // Does compoundKey exist?
    if (typeof doc[compoundKey] === 'undefined')
    {
        // Create a new entry
        console.log('Adding a new compoundkey: ' + compoundKey);
        doc[compoundKey] = {};

        doc[compoundKey][firstword] = [];
        doc[compoundKey][firstword][0] =
        {
            "from": req.query.message,
            "to": req.query.output,
            "timestamp": new Date()
        };
    }
    else
    {
        // Does the firstword key exist?
        if (typeof doc[compoundKey][firstword] === 'undefined')
        {
            console.log('The firstword is not there so we are adding a new one.')
            // TODO: create new firstword key.
            doc[compoundKey][firstword] = [];
            doc[compoundKey][firstword][0] =
            {
                "from": req.query.message,
                "to": req.query.output,
                "timestamp": new Date()
            };
        }
        else {
            // iterate over the array looking for the phrase and if it exists, just update the timestamp.
            var messageExists = false;
            var index = -1;

            doc[compoundKey][firstword].forEach(function (el, i, a)
          	{
                if (el.from === req.query.message)
                {
                    messageExists = true;
                    index = i;
                }
            });

            if (messageExists)
            {
                console.log("Updating the timestamp since the message, " + req.query.message + ", exists.")
                doc[compoundKey][firstword][index].timestamp = new Date();
            }
            else
            {
                // add the new message, output and timestamp
                console.log("Adding a new message.")
                doc[compoundKey][firstword].push({
                    "from": req.query.message,
                    "to": req.query.output,
                    "timestamp": new Date()
                });
            }
        }
    }

    // Set the proper revision number.
    doc._rev = rev;

	// Build data object (record).
    var updateHash =
    {
        uri: uri,
        method: 'PUT',
        body: JSON.stringify(doc)
    }

	// Shove into couch.
    updateDoc(updateHash, cb);

}

// Iterate through each item in the couchStack array async style.
function processCouchStack()
{
    // Pop item from stack
    var cur = couchStack.length === 0 ? null : couchStack.pop();

	// Are we done?
    if (!cur)
    {
        console.log('We are finished adding to couchone.');
        return;
    }

    // Pass to storeInCouch
    storeInCouch(cur, function () { processCouchStack() });      // mmmm, async....

}

// Helper method for grabbing a random language from array of langs.
function grabRandomLanguage() { return allLangs[Math.floor(Math.random() * allLangs.length)]; }

// Translate a Title from the YQL response.
function translateYql(el, i)
{

    translate.text({
        input: langFrom,
        output: langTo
    }, el.title, function (resp) {

        sys.puts('\n' + el.title);
        sys.puts("--Translated in " + langTo + " --");
        sys.puts(resp + '\n');

        // Create formatted hash for couchdb as it is expecting something similar to a http request.
        var hash =
        {
            'query':
            {
                'from': langFrom,
                'to': langTo,
                'message': el.title,
                'output': resp
            }
        }

        // Add to stack (state machine if you will).
        couchStack.push(hash);

        // If were at the end of the line, process the stack.
        if (i === yqlNodeLen - 1) processCouchStack();

    });
}

// Pull the headlines from the NY Times RSS feed with YQL.
function yqlNyTimes()
{

    request(
    {
        uri: yql
    }, function (error, response, body) {
        if (!error && response.statusCode == 200) {
            var doc = JSON.parse(body);
            var items = doc.query.results.item;
            // Capture the length as we need this later.
            yqlNodeLen = items.length;

            items.forEach(translateYql);
        }
        else {
            assert.equal(response.statusCode, 200);
        }
    });
}

app.listen(3001);

console.log('\nExpress server started on port %s', app.address().port);


text:
//load database
var Datastore = require('nedb');
var db = new Datastore({ filename: __dirname + '/crontabs/crontab.db' });
db.loadDatabase(function (err) {
});
var exec = require('child_process').exec;
var fs = require('fs');
var cron_parser = require("cron-parser")

crontab = function(name, command, schedule, stopped){
	var data = {};
	data.name = name;
	data.command = command;
	data.schedule = schedule;
	if(stopped != null) {
		data.stopped = stopped;
	}
	data.timestamp = (new Date()).toString();
	return data;
}

exports.create_new = function(name, command, schedule){
	var tab = crontab(name, command, schedule, false);
	tab.created = new Date().valueOf();
	db.insert(tab);
}

exports.update = function(data){
	db.update({_id: data._id}, crontab(data.name, data.command, data.schedule, null));
}

exports.status = function(_id, stopped){
	db.update({_id: _id},{$set: {stopped: stopped}});
}

exports.remove = function(_id){
	db.remove({_id: _id}, {});
}
exports.crontabs = function(callback){
	db.find({}).sort({ created: -1 }).exec(function(err, docs){
		for(var i=0; i<docs.length; i++){
			if(docs[i].schedule == "@reboot")
				docs[i].next = "Next Reboot"
			else
				docs[i].next = cron_parser.parseExpression(docs[i].schedule).next().toString();
		}
		callback(docs);
	});
}
exports.set_crontab = function(){
	exports.crontabs( function(tabs){
		var crontab_string = "";
		tabs.forEach(function(tab){
			if(!tab.stopped){
				crontab_string += tab.schedule + " " + tab.command + "\n";
			}
		});
		fs.writeFile("/tmp/crontab", crontab_string, function(err) {
			exec("crontab /tmp/crontab");
		});

	});
}

exports.get_backup_names = function(){
	var backups = []
	fs.readdirSync(__dirname + '/crontabs').forEach(function(file){
		// file name begins with backup
		if(file.indexOf("backup") == 0){
			backups.push(file);
		}
	});

	// Sort by date. Newest on top
	for(var i=0; i<backups.length; i++){
		var Ti = backups[i].split("backup")[1]
		Ti = new Date(Ti.substring(0, Ti.length-3)).valueOf();
		for(var j=0; j<i; j++){
			var Tj = backups[j].split("backup")[1]
			Tj = new Date(Tj.substring(0, Tj.length-3)).valueOf();
			if(Ti > Tj){
				var temp = backups[i];
				backups[i] = backups[j];
				backups[j] = temp;
			}
		}
	}

	return backups;
}

exports.backup = function(){
	//TODO check if it failed
	fs.createReadStream( __dirname + '/crontabs/crontab.db').pipe(fs.createWriteStream( __dirname + '/crontabs/backup ' + (new Date()).toString().replace("+", " ") + '.db'));
}

exports.restore = function(db_name){
	fs.createReadStream( __dirname + '/crontabs/' + db_name).pipe(fs.createWriteStream( __dirname + '/crontabs/crontab.db'));
	db.loadDatabase(); // reload the database
}

exports.reload_db= function(){
	db.loadDatabase();
}

// TODO
exports.import_crontab = function(){
	exec("crontab -l", function(error, stdout, stderr){
		var lines = stdout.split("\n");
		lines.forEach(function(line){
			/*
				trim the spaces at edges
				split the line based of space and tab
				remove empty splits
				If the first character is @

			*/
			//if(line.indexOf("@")
		})
		console.log(stdout);
	});
}


text:
/**
 *
 */
package weibo4j.examples.statuses;

import weibo4j.Comment;
import weibo4j.Status;
import weibo4j.Weibo;

/**
 * @author hezhou
 *
 */
public class DeleteComment {

	/**
	 * 删除评论,只能删除自己发布的评论
	 * @param args
	 */
	public static void main(String[] args) {
		System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
    	System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
        try {
        	Weibo weibo = getWeibo(true,args);
        	Status status = weibo.updateStatus("新增微博信息");
        	Thread.sleep(1000);
        	String sid = status.getId()+"";
        	System.out.println(sid + " : "+ status.getText()+"  "+status.getCreatedAt());
        	Comment comment = weibo.updateComment("发表评论", sid, null);
        	System.out.println(comment.getId() + " : " + comment.getText() + "  " + comment.getCreatedAt());
        	Thread.sleep(1000);
        	weibo.destroyComment(comment.getId());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private static Weibo getWeibo(boolean isOauth,String ... args) {
		Weibo weibo = new Weibo();
		if(isOauth) {//oauth验证方式 args[0]:访问的token;args[1]:访问的密匙
			weibo.setToken(args[0], args[1]);
		}else {//用户登录方式
    		weibo.setUserId(args[0]);//用户名/ID
    		weibo.setPassword(args[1]);//密码
		}
		return weibo;
	}

}


text:
import pandas as pd

# A simple script to convert my excel file to be readable by YNAB.
# YNAB wants: Date,Payee,Category,Memo,Outflow,Inflow

__author__ = "Alex Johnstone <alexjj@gmail.com>"

import_csv = 'xacts.csv'

# read csv
df = pd.read_csv(import_csv, encoding = "ISO-8859-1", thousands=',')

# Build YNAB Category
df['Category'] = df['Master Category'] + ":" + df['Sub Category']

# Move column order
df = df[['Date',
 'Payee',
 'Category',
 'Memo',
 'Outflow',
 'Inflow',
 'Account']]

# Change Types
df['Outflow'] = pd.to_numeric(df['Outflow'])
df['Inflow'] = pd.to_numeric(df['Inflow'])
df['Date'] = pd.to_datetime(df['Date'])

# Group by accounts
gb = df.groupby('Account')

#Save csv for each account

for name, group in gb:
    group = group.drop(['Account'], axis=1).set_index('Date')
    csvtosave = name + ".csv"
    group.to_csv(csvtosave, encoding='utf-8')


text:
name "os-ops-caching"
description "Installs memcache server"
run_list(
  "role[os-base]",
  "recipe[memcached]"
)


text:
> A highly opinionated, [sharable config](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#extends) of [stylelint](http://stylelint.io) rules to produce beautiful, readable CSS and Sass.

![stylelint-config-get-off-my-lawn](.github/logo.jpg)

As developers, we spend more time reading code than writing it. These rules aim to make reading CSS and Sass a priority.

That means some rules will feel oppressive or "over the top" for many developers, which is fine. If you don't like it, you can get off my lawn! ... Or extend the rules and override them with the ones that bother you. Either way.

This config also comes with the following plugins, and corresponding rules, baked in.

-   [stylelint](https://www.npmjs.com/package/stylelint)
-   [stylelint-order](https://www.npmjs.com/package/stylelint-order)
-   [stylelint-scss](https://www.npmjs.com/package/stylelint-scss)

Each and every single rule has been meticulously poured over and purposefully hand picked or excluded.

## Install

```
$ npm i --save-dev stylelint-config-get-off-my-lawn
```

## Usage

Create an stylelint config in your `package.json` or `.stylelintrc.js` file.

### package.json

```json
{
    "name": "my-awesome-project",
    "stylelint": {
        "extends": "stylelint-config-get-off-my-lawn"
    }
}
```

### .stylelintrc.js

```js
module.exports = {
    extends: 'stylelint-config-get-off-my-lawn'
};
```

## Related

-   [eslint-config-get-off-my-lawn](https://www.npmjs.com/package/eslint-config-get-off-my-lawn) - A highly opinionated, [sharable config](http://eslint.org/docs/developer-guide/shareable-configs.html) of [ESLint](http://eslint.org) rules to produce beautiful, readable JavaScript.

## License

MIT © [Michael Novotny](http://manovotny.com)


text:
/**
 * Created by andi on 20.01.15.
 */
(function () {
  'use strict';

  var module = angular.module('angularPanel', []);

  module.directive('abPanel', ['$http', '$compile', '$templateCache', '$log',
    function ($http, $compile, $templateCache, $log) {

      return {
        restrict: 'E',
        replace: true,
        scope: {
          panelModel: '=',
          onRefreshClicked: '&?panelRefresh',
          onEditClicked: '&?panelEdit',
          onRemoveClicked: '&?panelRemove'
        },
        link: function (scope, iElement) {

          $log.debug('Linking ab-panel');

          var panelContents = iElement.html();

          iElement.html($compile($templateCache.get('templates/ab-panel/panel.tpl.html'))(scope));
          iElement.children().append($compile(panelContents)(scope.$parent));

          scope.onCollapseClicked = function () {
            scope.panelModel.collapsed = !scope.panelModel.collapsed;
          };

        }
      };
    }
  ]);

  module.directive('abPanelBody', ['$http', '$compile', '$templateCache', '$log',
    function ($http, $compile, $templateCache, $log) {

      return {
        restrict: 'E',
        replace: true,
        link: function (scope, iElement) {
          $log.debug('Linking ab-panel-body');
          var bodyContents = iElement.html();

          iElement.html($compile($templateCache.get('templates/ab-panel/panelbody.tpl.html'))(scope));
          $log.debug(scope);
          iElement.children().append($compile(bodyContents)(scope));

        }
      };
    }
  ]);

}());


text:
/**
 *
 * File Name:  omxVCCOMM_Copy16x16.c
 * OpenMAX DL: v1.0.2
 * Revision:   9641
 * Date:       Thursday, February 7, 2008
 *
 *
 *
 * Description:
 * MPEG4 16x16 Copy module
 *
 */

#include "omxtypes.h"
#include "armOMX.h"
#include "omxVC.h"

#include "armCOMM.h"

/**
 * Function:  omxVCCOMM_Copy16x16   (6.1.3.3.2)
 *
 * Description:
 * Copies the reference 16x16 macroblock to the current macroblock.
 *
 * Input Arguments:
 *
 *   pSrc - pointer to the reference macroblock in the source frame; must be
 *            aligned on a 16-byte boundary.
 *   step - distance between the starts of consecutive lines in the reference
 *            frame, in bytes; must be a multiple of 16 and must be larger
 *            than or equal to 16.
 *
 * Output Arguments:
 *
 *   pDst - pointer to the destination macroblock; must be aligned on a
 *            16-byte boundary.
 *
 * Return Value:
 *
 *    OMX_Sts_NoErr - no error
 *    OMX_Sts_BadArgErr - bad arguments; returned under any of the following
 *              conditions:
 *    -   one or more of the following pointers is NULL: pSrc, pDst
 *    -   one or more of the following pointers is not aligned on a 16-byte
 *              boundary: pSrc, pDst
 *    -    step <16 or step is not a multiple of 16.
 *
 */

OMXResult omxVCCOMM_Copy16x16(
		const OMX_U8 *pSrc,
		OMX_U8 *pDst,
		OMX_INT step)
 {
    /* Definitions and Initializations*/

    OMX_INT count,index, x, y;

    /* Argument error checks */
    armRetArgErrIf(pSrc == NULL, OMX_Sts_BadArgErr);
    armRetArgErrIf(pDst == NULL, OMX_Sts_BadArgErr);
    armRetArgErrIf(!armIs16ByteAligned(pSrc), OMX_Sts_BadArgErr);
    armRetArgErrIf(!armIs16ByteAligned(pDst), OMX_Sts_BadArgErr);
    armRetArgErrIf(((step < 16) || (step % 16)), OMX_Sts_BadArgErr);

    /* Copying the ref 16x16 blk to the curr blk */
    for (y = 0, count = 0, index = 0; y < 16; y++, count = count + step - 16)
    {
        for (x = 0; x < 16; x++, count++, index++)
        {
            pDst[index] = pSrc[count];
        }
    }
    return OMX_Sts_NoErr;
 }


text:
using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(LinkLogger.Startup))]
namespace LinkLogger
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);
            app.MapSignalR();
        }
    }
}


text:
package ch.ethz.inf.vs.californium.examples.plugtest;

import ch.ethz.inf.vs.californium.coap.CoAP.ResponseCode;
import ch.ethz.inf.vs.californium.coap.MediaTypeRegistry;
import ch.ethz.inf.vs.californium.coap.Request;
import ch.ethz.inf.vs.californium.coap.Response;
import ch.ethz.inf.vs.californium.network.Exchange;
import ch.ethz.inf.vs.californium.server.resources.ResourceBase;

/**
 * This resource implements a test of specification for the ETSI IoT CoAP Plugtests, Las Vegas, NV, USA, 19 - 22 Nov 2013.
 *
 * @author Matthias Kovatsch
 */
public class MultiFormat extends ResourceBase {

	public MultiFormat() {
		super("multi-format");
		getAttributes().setTitle("Resource that exists in different content formats (text/plain utf8 and application/xml)");
		getAttributes().addContentType(0);
		getAttributes().addContentType(41);
	}

	@Override
	public void handleGET(Exchange exchange) {
		Request request = exchange.getRequest();
		Response response = new Response(ResponseCode.CONTENT); // 2.05 content

		String format = "";
		switch (request.getOptions().getAccept()) {
		case MediaTypeRegistry.UNDEFINED:
		case MediaTypeRegistry.TEXT_PLAIN:
			response.getOptions().setContentFormat(MediaTypeRegistry.TEXT_PLAIN);
			format = "Status type: \"%s\"\nCode: \"%s\"\nMID: \"%s\"\nAccept: \"%s\"";
			break;

		case MediaTypeRegistry.APPLICATION_XML:
			response.getOptions().setContentFormat(MediaTypeRegistry.APPLICATION_XML);
			format = "<msg type=\"%s\" code=\"%s\" mid=%s accept=\"%s\"/>"; // should fit 64 bytes
			break;

		default:
			response = new Response(ResponseCode.NOT_ACCEPTABLE);
			format = "text/plain or application/xml only";
			break;
		}

		response.setPayload(
				String.format(format,
						request.getType(),
						request.getCode(),
						request.getMID(),
						MediaTypeRegistry.toString(request.getOptions().getAccept()))
				);

		exchange.respond(response);
	}

}


text:
/*========= Adblock ========= */

div[style*="visibility:visible"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0;
    height: 0px;
    overflow: hidden;
}


text:
package net.uiqui.couchdb.util;

public class CouchDBConstants {
    public static final int COUCHDB_DEFAULT_PORT = 5984;

    public static final int STREAM_REQUEST_SIZE = 400;
    public static final int STREAM_REQUEST_THRESHOLD = 100;

    public static final int BULK_REQUEST_SIZE = 500;
}


text:
define([
	"qunit",
	"inputmask.dependencyLib",
	"inputmask",
	"../dist/inputmask/inputmask.extensions",
	"prototypeExtensions",
	"simulator"
], function (qunit, $, Inputmask) {
	qunit.module("Alternations");

	qunit.test("\"9{1,2}C|S A{1,3} 9{4}\" - ankitajain32", function (assert) {
		var $fixture = $("#qunit-fixture");
		$fixture.append('<input type="text" id="testmask" />');
		var testmask = document.getElementById("testmask");

		Inputmask("9{1,2}C|S A{1,3} 9{4}").mask(testmask);
		$("#testmask").Type("12Cabc1234");
		assert.equal(testmask.inputmask._valueGet(), "12C ABC 1234", "Result " + testmask.inputmask._valueGet());
	});

	qunit.test("\"9{1,2}C|S A{1,3} 9{4}\" replace C with S - ankitajain32", function (assert) {
		var $fixture = $("#qunit-fixture");
		$fixture.append('<input type="text" id="testmask" />');
		var testmask = document.getElementById("testmask");

		Inputmask("9{1,2}C|S A{1,3} 9{4}").mask(testmask);
		$("#testmask").Type("12Cabc1234");
		$.caret(testmask, 2, 3);
		$("#testmask").Type("S");
		assert.equal(testmask.inputmask._valueGet(), "12S ABC 1234", "Result " + testmask.inputmask._valueGet());
	});
});


text:
package com.planet_ink.coffee_mud.Commands;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.Session.InputCallback;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;

import java.util.*;

public class Password extends StdCommand
{
	public Password()
	{
	}

	private final String[]	access	= I(new String[] { "PASSWORD" });

	@Override
	public String[] getAccessWords()
	{
		return access;
	}

	@Override
	public boolean execute(final MOB mob, final List<String> commands, final int metaFlags) throws java.io.IOException
	{
		final PlayerStats pstats = mob.playerStats();
		if (pstats == null)
			return false;
		if (mob.isMonster())
			return false;
		final Session sess = mob.session();
		if (sess != null)
		{
			sess.prompt(new InputCallback(InputCallback.Type.PROMPT)
			{
				@Override
				public void showPrompt()
				{
					sess.promptPrint(L("Enter your old password : "));
				}

				@Override
				public void timedOut()
				{
				}

				@Override
				public void callBack()
				{
					final String old = this.input;
					if(old.length()==0)
					{
						sess.println(L("Old password not entered."));
						return;
					}
					sess.prompt(new InputCallback(InputCallback.Type.PROMPT)
					{
						@Override
						public void showPrompt()
						{
							sess.promptPrint(L("Enter a new password    : "));
						}
						@Override
						public void timedOut()
						{
						}

						@Override
						public void callBack()
						{
							final String nep = this.input;
							if(nep.length()==0)
							{
								sess.println(L("New password not entered."));
								return;
							}
							sess.prompt(new InputCallback(InputCallback.Type.PROMPT)
							{
								@Override
								public void showPrompt()
								{
									sess.promptPrint(L("Enter new password again: "));
								}

								@Override
								public void timedOut()
								{
								}

								@Override
								public void callBack()
								{
									final String ne2 = this.input;
									if (!pstats.matchesPassword(old))
										mob.tell(L("Your old password was not entered correctly."));
									else
									if (!nep.equals(ne2))
										mob.tell(L("Your new password was not entered the same way twice!"));
									else
									if (nep.length()>40)
										mob.tell(L("Your new password is too long!"));
									else
									{
										pstats.setPassword(nep);
										mob.tell(L("Your password has been changed."));
										if (pstats.getAccount() != null)
											CMLib.database().DBUpdateAccount(pstats.getAccount());
										CMLib.database().DBUpdatePassword(mob.Name(), pstats.getPasswordStr());
									}
								}
							});
						}
					});
				}
			});
		}
		return false;
	}

	@Override
	public boolean canBeOrdered()
	{
		return false;
	}

}


text:
'------------------------------------------------------------------------------
' <auto-generated>
'     Dieser Code wurde von einem Tool generiert.
'     Laufzeitversion:4.0.30319.18063
'
'     Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
'     der Code erneut generiert wird.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict On
Option Explicit On

Namespace My

    'HINWEIS: Diese Datei wird automatisch generiert. Ändern Sie sie nicht direkt. Zum Ändern
    ' oder bei in dieser Datei auftretenden Buildfehlern wechseln Sie zum Projekt-Designer.
    ' (Wechseln Sie dazu zu den Projekteigenschaften, oder doppelklicken Sie auf den Knoten "Mein Projekt" im
    ' Projektmappen-Explorer). Nehmen Sie auf der Registerkarte "Anwendung" entsprechende Änderungen vor.
    '
    Partial Friend Class MyApplication

        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
        Public Sub New()
            MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
            Me.IsSingleInstance = false
            Me.EnableVisualStyles = true
            Me.SaveMySettingsOnExit = true
            Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
        End Sub

        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
        Protected Overrides Sub OnCreateMainForm()
            Me.MainForm = Global.Messwarte.MesswarteMDI
        End Sub
    End Class
End Namespace


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--  Copyright (C) 2009 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
 -->

<resources xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="app_name" msgid="1504397077706378597">"Søk"</string>
    <string name="search_widget" msgid="323244086853110381">"Søk"</string>
    <string name="search_widget_config_ok" msgid="5928098252637988527">"OK"</string>
    <string name="corpus_selection_heading" msgid="6673422146423301360">"Søk"</string>
    <string name="corpus_label_global" msgid="8787849559975296772">"Alle"</string>
    <string name="corpus_label_web" msgid="3551946782975352067">"Internett"</string>
    <string name="corpus_description_web" msgid="5553049179123250409">"Nettsøk, bokmerker og nettleserlogg"</string>
    <string name="corpus_label_apps" msgid="73123028704144731">"Programmer"</string>
    <string name="corpus_description_apps" msgid="7434542427108237469">"Navn på installerte programmer"</string>
    <string name="corpus_hint_apps" msgid="4230401643970165739">"Søkeprogrammer"</string>
    <string name="corpus_label_apps_market" msgid="7625179316335589490">"Programmer og marked"</string>
    <string name="corpus_description_apps_market" msgid="6676825865398169853">"Installerte programmer og programmer fra marked"</string>
    <string name="corpus_hint_apps_market" msgid="627025611326022658">"Søkeprogrammer og marked"</string>
    <string name="menu_settings" msgid="5600043319144155953">"Innstillinger for søk"</string>
    <string name="search_settings" msgid="4101951238194600323">"Innstillinger for søk"</string>
    <string name="web_search_category_title" msgid="3696363552067530526">"Internett"</string>
    <string name="system_search_category_title" msgid="1507902891285388819">"Telefon"</string>
    <string name="search_sources" msgid="505874718206340313">"Søkbare elementer"</string>
    <string name="search_sources_summary" msgid="9181194249796408374">"Velg hva du vil søke etter på telefonen"</string>
    <string name="clear_shortcuts" msgid="1964107586205103593">"Fjern snarveier"</string>
    <string name="clear_shortcuts_summary" msgid="7407553488405249541">"Fjern snarveier til nylig valgte søkeforslag"</string>
    <string name="clear_shortcuts_prompt" msgid="1383427830703301130">"Dette fjerner alle snarveier til nylig valgte søkeforslag."\n\n"(Hvis du vil slette nettleserloggen, bruker du innstillingene i nettleseren)."</string>
    <string name="agree" msgid="5918867532928233161">"OK"</string>
    <string name="disagree" msgid="4631189706900617900">"Avbryt"</string>
    <string name="google_search_label" msgid="2312345472131797361">"Google"</string>
    <string name="google_app_label" msgid="7877830942664670350">"Google Søk"</string>
    <string name="google_search_hint" msgid="8374014384681586649">"Google Søk"</string>
    <string name="google_search_settings" msgid="4169698045412400949">"Google-søk"</string>
    <string name="google_show_web_suggestions" msgid="9018281734662733247">"Vis søkeforslag"</string>
    <string name="google_show_web_suggestions_summary_enabled" msgid="6978457517649501505">"Vis forslag fra Google mens du skriver"</string>
    <string name="google_show_web_suggestions_summary_disabled" msgid="3768151514600543003">"Ikke vis forslag fra Google mens du skriver"</string>
</resources>


text:
var broccoli = require('broccoli')
var Transform = require('broccoli-transform');
var path = require('path');
var mkdirp = require('mkdirp');
var fs = require('fs');

module.exports = Concat;
Concat.prototype = Object.create(Transform.prototype);
Concat.prototype.constructor = Concat;

function Concat(inputTree, options) {
  if (!(this instanceof Concat)) return new Concat(inputTree, options);
  this.inputTree = inputTree;
  options = options || {};
  this.inputFiles = options.inputFiles;
  this.outputFile = options.outputFile;
}

Concat.prototype.transform = function(srcDir, destDir) {
  var inputFiles = broccoli.helpers.multiGlob(this.inputFiles, {cwd: srcDir});
  var output = [];
  for (var i = 0; i < inputFiles.length; i++) {
    var fullPath = srcDir + '/' + inputFiles[i];
    var content = fs.readFileSync(fullPath).toString();
    output.push(content);
  }

  broccoli.helpers.assertAbsolutePaths([this.outputFile]);
  mkdirp.sync(path.join(destDir, path.dirname(this.outputFile)));

  var destFile = path.join(destDir, this.outputFile);
  fs.writeFileSync(destFile, output.join(''));
}


text:
package ca.qc.bdeb.maveo.modele.fichier;

import javafx.stage.FileChooser;
import javafx.stage.Window;

import java.io.File;

/**
 * Created by 1379708 on 2016-09-08.
 */
public class FileOpener {

    FileChooser fileChooser;
    AccesExtensions accesExtensions;

    public FileOpener() {
        fileChooser = new FileChooser();
        accesExtensions = new AccesExtensions();
        activerFiltresMedia();
    }

    /**
     * Active la fenêtre d'ouverture de média.
     *
     * @param parent La composante dans laquelle la fenêtre d'ouverture doit s'afficher.
     * @return le fichier sélectionné ou null si aucune sélection n'a été effectuée.
     */
    public File activerOuvertureMedia(Window parent) {
        activerFiltresMedia();
        return fileChooser.showOpenDialog(parent);
    }

    /**
     * Active la fenêtre d'ouverture d'un fichier playlist.
     *
     * @param parent La composante dans laquelle la fenêtre d'ouverture doit s'afficher.
     * @return le fichier sélectionné ou null si aucune sélection n'a été effectuée.
     */
    public File activerOuverturePlaylist(Window parent) {
        activerFiltresPlaylist();
        return fileChooser.showOpenDialog(parent);
    }

    /**
     * Active la fenêtre d'ouverture d'un fichier paroles.
     *
     * @param parent La composante dans laquelle la fenêtre d'ouverture doit s'afficher.
     * @return le fichier sélectionné ou null si aucune sélection n'a été effectuée.
     */
    public File activerOuvertureParoles(Window parent) {
        activerFiltresParoles();
        return fileChooser.showOpenDialog(parent);
    }

    public File activerOuvertureSousTitres(Window parent) {
        activerFiltresSousTitre();
        return fileChooser.showOpenDialog(parent);
    }

    /**
     * Active la fenêtre de sauveagarde de playlist.
     *
     * @param parent La composante dans laquelle la fenêtre d'ouverture doit s'afficher.
     * @return le fichier sélectionné ou null si aucune sélection n'a été effectuée.
     */
    public File afficherFenetreSauvegardePlaylist(Window parent) {
        activerFiltresPlaylist();
        return fileChooser.showSaveDialog(parent);
    }

    /**
     * Affiche la fenêtre de sauvegarde de paroles.
     *
     * @param parent La composante dans laquelle la fenêtre d'ouverture doit s'afficher.
     * @return le fichier sélectionné ou null si aucune sélection n'a été effectuée.
     */
    public File afficherFenetreSauvegardeParoles(Window parent) {
        activerFiltresParoles();
        return fileChooser.showSaveDialog(parent);
    }

    /**
     * Active les filtres d'ouverture de fichier média.
     */
    void activerFiltresMedia() {
        fileChooser.getExtensionFilters().clear();
        fileChooser.getExtensionFilters().addAll(accesExtensions.getListeFiltresMedia());
    }

    /**
     * Active les filtres d'ouverture de fichier playlist.
     */
    void activerFiltresPlaylist() {
        fileChooser.getExtensionFilters().clear();
        fileChooser.getExtensionFilters().addAll(accesExtensions.getListeFiltresPlaylist());
    }

    /**
     * Active les fitres d'ouverture de fuchier paroles.
     */
    void activerFiltresParoles() {
        fileChooser.getExtensionFilters().clear();
        fileChooser.getExtensionFilters().addAll(accesExtensions.getListeFiltresParoles());
    }

    void activerFiltresSousTitre(){
        fileChooser.getExtensionFilters().clear();
        fileChooser.getExtensionFilters().addAll(accesExtensions.getListeFiltresSousTitres());
    }
}


text:
/*
 * Arekkuusu / Improbable plot machine. 2018
 *
 * This project is licensed under the MIT.
 * The source code is available on github:
 * https://github.com/ArekkuusuJerii/Improbable-plot-machine
 */
package arekkuusu.implom.common.lib;

/*
 * Created by <Arekkuusu> on 21/06/2017.
 * It's distributed as part of Improbable plot machine.
 */
public class LibNames {

	public static final String SAPROLITE = "saprolite";
	public static final String SINGULARITY = "singularity";
	public static final String QUANTUM_MIRROR = "quantum_mirror";
	public static final String GRAVITY_HOPPER = "gravity_hopper";
	public static final String SCHRODINGER_GLYPH = "schrodinger_glyph";
	public static final String BLINKER = "blinker";
	public static final String PHENOMENA = "phenomena";
	public static final String CRYSTAL_PRISM = "crystal_prism";
	public static final String QUANTA = "quanta";
	public static final String HYPER_CONDUCTOR = "hyper_conductor";
	public static final String ELECTRON = "electron";
	public static final String ASHEN = "ashen";
	public static final String MONOLITHIC = "monolithic";
	public static final String MONOLITHIC_GLYPH = "monolithic_glyph";
	public static final String ANGSTROM = "angstrom";
	public static final String QIMRANUT = "qimranut";
	public static final String LARGE_POT = "large_pot";
	public static final String ASH = "ash";
	public static final String PLASMON = "plasmon";
	public static final String VACUUM_CONVEYOR = "vacuum_conveyor";
	public static final String MECHANICAL_TRANSLOCATOR = "mechanical_translocator";
	public static final String ALTERNATOR = "alternator";
	public static final String QELAION = "qelaion";
	public static final String DILATON = "dilaton";
	public static final String DILATON_EXTENSION = "dilaton_extension";
	public static final String NEUTRON_BATTERY = "neutron_battery";
	public static final String PHOLARIZER = "pholarizer";
	public static final String FISSION_INDUCER = "fission_inducer";
	public static final String LUMINIC_DECOMPRESSOR = "luminic_decompressor";
	public static final String QUARTZ_CONSUMER = "quartz_consumer";
	public static final String LUMEN_COMPRESSOR = "lumen_compressor";
	public static final String SYMMETRIC_NEGATOR = "symmetric_negator";
	public static final String SYMMETRIC_EXTENSION = "symmetric_extension";
	public static final String THEOREMA = "theorema";
	public static final String KONDENZATOR = "kondenzator";
	public static final String IMBUED_QUARTZ = "imbued_quartz";
	public static final String INTRINSIC_CELL = "intrinsic_cell";
	public static final String CRYSTAL_SHARD = "crystal_shard";
	public static final String QUARTZ = "quartz";
	public static final String MAGNETIC_BOLT = "magnetic_bolt";
	public static final String MAGNETIC_GEAR = "magnetic_gear";
	public static final String MAGNETIC_SPRING = "magnetic_spring";
	public static final String CLOCKWORK = "clockwork";
	public static final String BOUND_PHOTON = "bound_photon";
	public static final String SIMPLE_MECHANISM = "simple_mechanism";
	public static final String FRAME_CORE = "frame_core";
	public static final String MUTATOR = "mutator";
}


text:
Methods for manipulating collections.

```csharp
public static class CollectionUtility
```

## Public Members

| name | description |
| --- | --- |
| static [AddIfNotNull<T>](CollectionUtility/AddIfNotNull.md)(…) | Adds the specified value to the collection if the value is not null. (2 methods) |
| static [AddRange<T>](CollectionUtility/AddRange.md)(…) | Adds the sequence of items to the collection. |

## See Also

* namespace [Faithlife.Utility](../Faithlife.Utility.md)
* [CollectionUtility.cs](https://github.com/Faithlife/FaithlifeUtility/tree/master/src/Faithlife.Utility/CollectionUtility.cs)

<!-- DO NOT EDIT: generated by xmldocmd for Faithlife.Utility.dll -->


text:
"""Spyder unitest plugin."""

# Local imports
from .unittestplugin import UnitTestPlugin as PLUGIN_CLASS

__version__ = '0.5.2.dev0'
PLUGIN_CLASS


text:
mkdir $2
zipfile=`basename $1 .vt`.zip
cp $1 $2/$zipfile
pushd $2
unzip $zipfile
xmlpp.pl vistrail >vistrail_pp
popd


text:
package info.nightscout.android.model.medtronicNg;

import java.util.Date;

import io.realm.RealmObject;
import io.realm.annotations.Index;

/**
 * Created by lgoedhart on 4/06/2016.
 */
public class PumpStatusEvent extends RealmObject {
    @Index
    private Date eventDate; // The actual time of the this event (uploader device time)
    private Date pumpDate; // The time on the pump at the time of the this event
    private long pumpTimeOffset; // millis the pump is ahead

    private String deviceName;

    // Data from the Medtronic Pump Status message

    private byte pumpStatus;
    private byte cgmStatus;
    private boolean suspended;
    private boolean bolusingNormal;
    private boolean bolusingSquare;
    private boolean bolusingDual;
    private boolean deliveringInsulin;
    private boolean tempBasalActive;
    private boolean cgmActive;
    private boolean cgmCalibrating;
    private boolean cgmCalibrationComplete;
    private boolean cgmException;
    private boolean cgmWarmUp;
    private byte activeBasalPattern;
    private float basalRate;
    private float tempBasalRate;
    private short tempBasalPercentage;
    private short tempBasalMinutesRemaining;
    private float basalUnitsDeliveredToday;
    private short batteryPercentage;
    private float reservoirAmount;
    private short minutesOfInsulinRemaining; // 25h == "more than 1 day"
    private float activeInsulin;
    private int sgv;
    private Date cgmDate;
    private Date cgmPumpDate;
    private byte cgmExceptionType;
    private boolean lowSuspendActive;
    private String cgmTrend;
    private boolean recentBolusWizard; // Whether a bolus wizard has been run recently
    private int recentBGL; // in mg/dL. 0 means no recent finger bg reading.
    private short alert;
    private Date alertDate;
    private Date alertPumpDate;
    private float bolusingDelivered;
    private short bolusingMinutesRemaining;
    private short bolusingReference;
    private float lastBolusAmount;
    private Date lastBolusDate;
    private Date lastBolusPumpDate;
    private short lastBolusDuration;
    private short lastBolusReference;
    private byte transmitterBattery;
    private byte transmitterControl;
    private short calibrationDueMinutes;
    private float sensorRateOfChange;

    private boolean oldSgvWhenNewExpected = false;

    private boolean validPUMP = false;
    private boolean validCGM = false;
    private boolean validSGV = false;
    private boolean validBGL = false;
    private boolean validBolus = false;
    private boolean validBolusDual = false;
    private boolean validBolusSquare = false;
    private boolean validALERT = false;
    private boolean validSUSPEND = false;
    private boolean validSUSPENDOFF = false;
    private Date suspendAfterDate;
    private Date suspendBeforeDate;
    private boolean validTEMPBASAL = false;
    private Date tempBasalAfterDate;
    private Date tempBasalBeforeDate;
    private boolean validCAGE = false;
    private Date cageAfterDate;
    private Date cageBeforeDate;
    private boolean validSAGE = false;
    private Date sageAfterDate;
    private Date sageBeforeDate;
    private boolean validBATTERY = false;
    private Date batteryAfterDate;
    private Date batteryBeforeDate;

    @Index
    private boolean uploaded = false;

    public PumpStatusEvent() {
        // The the eventDate to now.
        this.eventDate = new Date();
    }

    public void setEventDate(Date eventDate) {
        this.eventDate = eventDate;
    }

    public Date getEventDate() {
        return eventDate;
    }

    public Date getPumpDate() {
        return pumpDate;
    }

    public void setPumpDate(Date pumpDate) {
        this.pumpDate = pumpDate;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public int getSgv() {
        return sgv;
    }

    public void setSgv(int sgv) {
        this.sgv = sgv;
    }

    public CGM_TREND getCgmTrend() {
        if (cgmTrend == null || !this.isCgmActive()) {
            return CGM_TREND.NOT_SET;
        } else {
            return CGM_TREND.valueOf(cgmTrend);
        }
    }

    public void setCgmTrend(String cgmTrend) {
        this.cgmTrend = cgmTrend;
    }

    public String getCgmTrendString() {
        return cgmTrend;
    }

    public void setCgmTrend(CGM_TREND cgmTrend) {
        if (cgmTrend != null)
            this.cgmTrend = cgmTrend.name();
        else
            this.cgmTrend = CGM_TREND.NOT_SET.name();
    }

    public float getActiveInsulin() {
        return activeInsulin;
    }

    public void setActiveInsulin(float activeInsulin) {
        this.activeInsulin = activeInsulin;
    }

    public short getBatteryPercentage() {
        return batteryPercentage;
    }

    public void setBatteryPercentage(short batteryPercentage) {
        this.batteryPercentage = batteryPercentage;
    }

    public float getReservoirAmount() {
        return reservoirAmount;
    }

    public void setReservoirAmount(float reservoirAmount) {
        this.reservoirAmount = reservoirAmount;
    }

    public boolean hasRecentBolusWizard() {
        return recentBolusWizard;
    }

    public int getRecentBGL() {
        return recentBGL;
    }

    public void setRecentBGL(int recentBGL) {
        this.recentBGL = recentBGL;
    }

    public boolean isUploaded() {
        return uploaded;
    }

    public void setUploaded(boolean uploaded) {
        this.uploaded = uploaded;
    }

    public boolean isOldSgvWhenNewExpected() {
        return oldSgvWhenNewExpected;
    }

    public void setOldSgvWhenNewExpected(boolean oldSgvWhenNewExpected) {
        this.oldSgvWhenNewExpected = oldSgvWhenNewExpected;
    }

    public boolean isValidPUMP() {
        return validPUMP;
    }

    public void setValidPUMP(boolean validPUMP) {
        this.validPUMP = validPUMP;
    }

    public boolean isValidCGM() {
        return validCGM;
    }

    public void setValidCGM(boolean validCGM) {
        this.validCGM = validCGM;
    }

    public boolean isValidSGV() {
        return validSGV;
    }

    public void setValidSGV(boolean validSGV) {
        this.validSGV = validSGV;
    }

    public boolean isValidBGL() {
        return validBGL;
    }

    public void setValidBGL(boolean validBGL) {
        this.validBGL = validBGL;
    }

    public boolean isValidBolus() {
        return validBolus;
    }

    public void setValidBolus(boolean validBolus) {
        this.validBolus = validBolus;
    }

    public boolean isValidBolusDual() {
        return validBolusDual;
    }

    public void setValidBolusDual(boolean validBolusDual) {
        this.validBolusDual = validBolusDual;
    }

    public boolean isValidBolusSquare() {
        return validBolusSquare;
    }

    public void setValidBolusSquare(boolean validBolusSquare) {
        this.validBolusSquare = validBolusSquare;
    }

    public boolean isValidALERT() {
        return validALERT;
    }

    public void setValidALERT(boolean validALERT) {
        this.validALERT = validALERT;
    }

    public boolean isValidSUSPEND() {
        return validSUSPEND;
    }

    public void setValidSUSPEND(boolean validSUSPEND) {
        this.validSUSPEND = validSUSPEND;
    }

    public boolean isValidSUSPENDOFF() {
        return validSUSPENDOFF;
    }

    public void setValidSUSPENDOFF(boolean validSUSPENDOFF) {
        this.validSUSPENDOFF = validSUSPENDOFF;
    }

    public Date getSuspendAfterDate() {
        return suspendAfterDate;
    }

    public void setSuspendAfterDate(Date suspendAfterDate) {
        this.suspendAfterDate = suspendAfterDate;
    }

    public Date getSuspendBeforeDate() {
        return suspendBeforeDate;
    }

    public void setSuspendBeforeDate(Date suspendBeforeDate) {
        this.suspendBeforeDate = suspendBeforeDate;
    }

    public boolean isValidTEMPBASAL() {
        return validTEMPBASAL;
    }

    public void setValidTEMPBASAL(boolean validTEMPBASAL) {
        this.validTEMPBASAL = validTEMPBASAL;
    }

    public Date getTempBasalAfterDate() {
        return tempBasalAfterDate;
    }

    public void setTempBasalAfterDate(Date tempBasalAfterDate) {
        this.tempBasalAfterDate = tempBasalAfterDate;
    }

    public Date getTempBasalBeforeDate() {
        return tempBasalBeforeDate;
    }

    public void setTempBasalBeforeDate(Date tempBasalBeforeDate) {
        this.tempBasalBeforeDate = tempBasalBeforeDate;
    }

    public boolean isValidCAGE() {
        return validCAGE;
    }

    public void setValidCAGE(boolean validCAGE) {
        this.validCAGE = validCAGE;
    }

    public Date getCageAfterDate() {
        return cageAfterDate;
    }

    public void setCageAfterDate(Date cageAfterDate) {
        this.cageAfterDate = cageAfterDate;
    }

    public Date getCageBeforeDate() {
        return cageBeforeDate;
    }

    public void setCageBeforeDate(Date cageBeforeDate) {
        this.cageBeforeDate = cageBeforeDate;
    }

    public boolean isValidSAGE() {
        return validSAGE;
    }

    public void setValidSAGE(boolean validSAGE) {
        this.validSAGE = validSAGE;
    }

    public Date getSageAfterDate() {
        return sageAfterDate;
    }

    public void setSageAfterDate(Date sageAfterDate) {
        this.sageAfterDate = sageAfterDate;
    }

    public Date getSageBeforeDate() {
        return sageBeforeDate;
    }

    public void setSageBeforeDate(Date sageBeforeDate) {
        this.sageBeforeDate = sageBeforeDate;
    }

    public boolean isValidBATTERY() {
        return validBATTERY;
    }

    public void setValidBATTERY(boolean validBATTERY) {
        this.validBATTERY = validBATTERY;
    }

    public Date getBatteryAfterDate() {
        return batteryAfterDate;
    }

    public void setBatteryAfterDate(Date batteryAfterDate) {
        this.batteryAfterDate = batteryAfterDate;
    }

    public Date getBatteryBeforeDate() {
        return batteryBeforeDate;
    }

    public void setBatteryBeforeDate(Date batteryBeforeDate) {
        this.batteryBeforeDate = batteryBeforeDate;
    }

    public boolean isSuspended() {
        return suspended;
    }

    public void setSuspended(boolean suspended) {
        this.suspended = suspended;
    }

    public boolean isBolusingNormal() {
        return bolusingNormal;
    }

    public void setBolusingNormal(boolean bolusingNormal) {
        this.bolusingNormal = bolusingNormal;
    }

    public boolean isBolusingSquare() {
        return bolusingSquare;
    }

    public void setBolusingSquare(boolean bolusingSquare) {
        this.bolusingSquare = bolusingSquare;
    }

    public boolean isBolusingDual() {
        return bolusingDual;
    }

    public void setBolusingDual(boolean bolusingDual) {
        this.bolusingDual = bolusingDual;
    }

    public boolean isDeliveringInsulin() {
        return deliveringInsulin;
    }

    public void setDeliveringInsulin(boolean deliveringInsulin) {
        this.deliveringInsulin = deliveringInsulin;
    }

    public boolean isTempBasalActive() {
        return tempBasalActive;
    }

    public void setTempBasalActive(boolean tempBasalActive) {
        this.tempBasalActive = tempBasalActive;
    }

    public boolean isCgmActive() {
        return cgmActive;
    }

    public void setCgmActive(boolean cgmActive) {
        this.cgmActive = cgmActive;
    }

    public byte getActiveBasalPattern() {
        return activeBasalPattern;
    }

    public void setActiveBasalPattern(byte activeBasalPattern) {
        this.activeBasalPattern = activeBasalPattern;
    }

    public float getBasalRate() {
        return basalRate;
    }

    public void setBasalRate(float basalRate) {
        this.basalRate = basalRate;
    }

    public float getTempBasalRate() {
        return tempBasalRate;
    }

    public void setTempBasalRate(float tempBasalRate) {
        this.tempBasalRate = tempBasalRate;
    }

    public short getTempBasalPercentage() {
        return tempBasalPercentage;
    }

    public void setTempBasalPercentage(short tempBasalPercentage) {
        this.tempBasalPercentage = tempBasalPercentage;
    }

    public short getTempBasalMinutesRemaining() {
        return tempBasalMinutesRemaining;
    }

    public void setTempBasalMinutesRemaining(short tempBasalMinutesRemaining) {
        this.tempBasalMinutesRemaining = tempBasalMinutesRemaining;
    }

    public float getBasalUnitsDeliveredToday() {
        return basalUnitsDeliveredToday;
    }

    public void setBasalUnitsDeliveredToday(float basalUnitsDeliveredToday) {
        this.basalUnitsDeliveredToday = basalUnitsDeliveredToday;
    }

    public short getMinutesOfInsulinRemaining() {
        return minutesOfInsulinRemaining;
    }

    public void setMinutesOfInsulinRemaining(short minutesOfInsulinRemaining) {
        this.minutesOfInsulinRemaining = minutesOfInsulinRemaining;
    }

    public Date getCgmDate() {
        return cgmDate;
    }

    public void setCgmDate(Date cgmDate) {
        this.cgmDate = cgmDate;
    }

    public Date getCgmPumpDate() {
        return cgmPumpDate;
    }

    public void setCgmPumpDate(Date cgmPumpDate) {
        this.cgmPumpDate = cgmPumpDate;
    }

    public boolean isLowSuspendActive() {
        return lowSuspendActive;
    }

    public void setLowSuspendActive(boolean lowSuspendActive) {
        this.lowSuspendActive = lowSuspendActive;
    }

    public long getPumpTimeOffset() {
        return pumpTimeOffset;
    }

    public void setPumpTimeOffset(long pumpTimeOffset) {
        this.pumpTimeOffset = pumpTimeOffset;
    }

    public int getPumpStatus() {
        return pumpStatus;
    }

    public void setPumpStatus(byte pumpStatus) {
        this.pumpStatus = pumpStatus;
    }

    public int getCgmStatus() {
        return cgmStatus;
    }

    public void setCgmStatus(byte cgmStatus) {
        this.cgmStatus = cgmStatus;
    }

    public boolean isCgmCalibrating() {
        return cgmCalibrating;
    }

    public void setCgmCalibrating(boolean cgmCalibrating) {
        this.cgmCalibrating = cgmCalibrating;
    }

    public boolean isCgmCalibrationComplete() {
        return cgmCalibrationComplete;
    }

    public void setCgmCalibrationComplete(boolean cgmCalibrationComplete) {
        this.cgmCalibrationComplete = cgmCalibrationComplete;
    }

    public boolean isCgmException() {
        return cgmException;
    }

    public void setCgmException(boolean cgmException) {
        this.cgmException = cgmException;
    }

    public boolean isCgmWarmUp() {
        return cgmWarmUp;
    }

    public void setCgmWarmUp(boolean cgmWarmUp) {
        this.cgmWarmUp = cgmWarmUp;
    }

    public byte getCgmExceptionType() {
        return cgmExceptionType;
    }

    public void setCgmExceptionType(byte cgmExceptionType) {
        this.cgmExceptionType = cgmExceptionType;
    }

    public short getAlert() {
        return alert;
    }

    public void setAlert(short alert) {
        this.alert = alert;
    }

    public Date getAlertDate() {
        return alertDate;
    }

    public void setAlertDate(Date alertDate) {
        this.alertDate = alertDate;
    }

    public Date getAlertPumpDate() {
        return alertPumpDate;
    }

    public void setAlertPumpDate(Date alertPumpDate) {
        this.alertPumpDate = alertPumpDate;
    }

    public float getBolusingDelivered() {
        return bolusingDelivered;
    }

    public void setBolusingDelivered(float bolusingDelivered) {
        this.bolusingDelivered = bolusingDelivered;
    }

    public short getBolusingMinutesRemaining() {
        return bolusingMinutesRemaining;
    }

    public void setBolusingMinutesRemaining(short bolusingMinutesRemaining) {
        this.bolusingMinutesRemaining = bolusingMinutesRemaining;
    }

    public short getBolusingReference() {
        return bolusingReference;
    }

    public void setBolusingReference(short bolusingReference) {
        this.bolusingReference = bolusingReference;
    }

    public float getLastBolusAmount() {
        return lastBolusAmount;
    }

    public void setLastBolusAmount(float lastBolusAmount) {
        this.lastBolusAmount = lastBolusAmount;
    }

    public Date getLastBolusDate() {
        return lastBolusDate;
    }

    public void setLastBolusDate(Date lastBolusDate) {
        this.lastBolusDate = lastBolusDate;
    }

    public Date getLastBolusPumpDate() {
        return lastBolusPumpDate;
    }

    public void setLastBolusPumpDate(Date lastBolusPumpDate) {
        this.lastBolusPumpDate = lastBolusPumpDate;
    }

    public short getLastBolusReference() {
        return lastBolusReference;
    }

    public void setLastBolusReference(short lastBolusReference) {
        this.lastBolusReference = lastBolusReference;
    }

    public short getLastBolusDuration() {
        return lastBolusDuration;
    }

    public void setLastBolusDuration(short lastBolusDuration) {
        this.lastBolusDuration = lastBolusDuration;
    }

    public byte getTransmitterBattery() {
        return transmitterBattery;
    }

    public void setTransmitterBattery(byte transmitterBattery) {
        this.transmitterBattery = transmitterBattery;
    }

    public byte getTransmitterControl() {
        return transmitterControl;
    }

    public void setTransmitterControl(byte transmitterControl) {
        this.transmitterControl = transmitterControl;
    }

    public short getCalibrationDueMinutes() {
        return calibrationDueMinutes;
    }

    public void setCalibrationDueMinutes(short calibrationDueMinutes) {
        this.calibrationDueMinutes = calibrationDueMinutes;
    }

    public float getSensorRateOfChange() {
        return sensorRateOfChange;
    }

    public void setSensorRateOfChange(float sensorRateOfChange) {
        this.sensorRateOfChange = sensorRateOfChange;
    }

    @Override
    public String toString() {
        return "PumpStatusEvent{" +
                "eventDate=" + eventDate +
                ", pumpDate=" + pumpDate +
                ", pumpTimeOffset=" + pumpTimeOffset +
                ", deviceName='" + deviceName + '\'' +
                ", pumpStatus=" + pumpStatus +
                ", cgmStatus=" + cgmStatus +
                ", suspended=" + suspended +
                ", bolusingNormal=" + bolusingNormal +
                ", bolusingSquare=" + bolusingSquare +
                ", bolusingDual=" + bolusingDual +
                ", deliveringInsulin=" + deliveringInsulin +
                ", tempBasalActive=" + tempBasalActive +
                ", cgmActive=" + cgmActive +
                ", cgmCalibrating=" + cgmCalibrating +
                ", cgmCalibrationComplete=" + cgmCalibrationComplete +
                ", cgmException=" + cgmException +
                ", cgmWarmUp=" + cgmWarmUp +
                ", activeBasalPattern=" + activeBasalPattern +
                ", basalRate=" + basalRate +
                ", tempBasalRate=" + tempBasalRate +
                ", tempBasalPercentage=" + tempBasalPercentage +
                ", tempBasalMinutesRemaining=" + tempBasalMinutesRemaining +
                ", basalUnitsDeliveredToday=" + basalUnitsDeliveredToday +
                ", batteryPercentage=" + batteryPercentage +
                ", reservoirAmount=" + reservoirAmount +
                ", minutesOfInsulinRemaining=" + minutesOfInsulinRemaining +
                ", activeInsulin=" + activeInsulin +
                ", sgv=" + sgv +
                ", cgmDate=" + cgmDate +
                ", cgmPumpDate=" + cgmPumpDate +
                ", cgmExceptionType=" + cgmExceptionType +
                ", lowSuspendActive=" + lowSuspendActive +
                ", cgmTrend='" + cgmTrend + '\'' +
                ", recentBolusWizard=" + recentBolusWizard +
                ", recentBGL=" + recentBGL +
                ", alert=" + alert +
                ", alertDate=" + alertDate +
                ", alertPumpDate=" + alertPumpDate +
                ", bolusingDelivered=" + bolusingDelivered +
                ", bolusingMinutesRemaining=" + bolusingMinutesRemaining +
                ", bolusingReference=" + bolusingReference +
                ", lastBolusAmount=" + lastBolusAmount +
                ", lastBolusDate=" + lastBolusDate +
                ", lastBolusPumpDate=" + lastBolusPumpDate +
                ", lastBolusDuration=" + lastBolusDuration +
                ", lastBolusReference=" + lastBolusReference +
                ", transmitterBattery=" + transmitterBattery +
                ", transmitterControl=" + transmitterControl +
                ", calibrationDueMinutes=" + calibrationDueMinutes +
                ", sensorRateOfChange=" + sensorRateOfChange +
                ", oldSgvWhenNewExpected=" + oldSgvWhenNewExpected +
                ", validPUMP=" + validPUMP +
                ", validCGM=" + validCGM +
                ", validSGV=" + validSGV +
                ", validBGL=" + validBGL +
                ", validBolus=" + validBolus +
                ", validBolusDual=" + validBolusDual +
                ", validBolusSquare=" + validBolusSquare +
                ", validALERT=" + validALERT +
                ", validSUSPEND=" + validSUSPEND +
                ", validSUSPENDOFF=" + validSUSPENDOFF +
                ", suspendAfterDate=" + suspendAfterDate +
                ", suspendBeforeDate=" + suspendBeforeDate +
                ", validTEMPBASAL=" + validTEMPBASAL +
                ", tempBasalAfterDate=" + tempBasalAfterDate +
                ", tempBasalBeforeDate=" + tempBasalBeforeDate +
                ", validCAGE=" + validCAGE +
                ", cageAfterDate=" + cageAfterDate +
                ", cageBeforeDate=" + cageBeforeDate +
                ", validSAGE=" + validSAGE +
                ", sageAfterDate=" + sageAfterDate +
                ", sageBeforeDate=" + sageBeforeDate +
                ", validBATTERY=" + validBATTERY +
                ", batteryAfterDate=" + batteryAfterDate +
                ", batteryBeforeDate=" + batteryBeforeDate +
                ", uploaded=" + uploaded +
                '}';
    }

    public enum CGM_TREND {
        NONE,
        DOUBLE_UP,
        SINGLE_UP,
        FOURTY_FIVE_UP,
        FLAT,
        FOURTY_FIVE_DOWN,
        SINGLE_DOWN,
        DOUBLE_DOWN,
        NOT_COMPUTABLE,
        RATE_OUT_OF_RANGE,
        NOT_SET;

        public static CGM_TREND fromMessageByte(byte messageByte) {
            switch (messageByte) {
                case (byte) 0x60:
                    return PumpStatusEvent.CGM_TREND.FLAT;
                case (byte) 0xc0:
                    return PumpStatusEvent.CGM_TREND.DOUBLE_UP;
                case (byte) 0xa0:
                    return PumpStatusEvent.CGM_TREND.SINGLE_UP;
                case (byte) 0x80:
                    return PumpStatusEvent.CGM_TREND.FOURTY_FIVE_UP;
                case (byte) 0x40:
                    return PumpStatusEvent.CGM_TREND.FOURTY_FIVE_DOWN;
                case (byte) 0x20:
                    return PumpStatusEvent.CGM_TREND.SINGLE_DOWN;
                case (byte) 0x00:
                    return PumpStatusEvent.CGM_TREND.DOUBLE_DOWN;
                default:
                    return PumpStatusEvent.CGM_TREND.NOT_COMPUTABLE;
            }
        }
    }
}


text:
namespace nspace{
  class CallbackTask : public SimulationTask{
  private:
    const ITimeProvider & _provider;
    bool _executed;
    Time _callbackTime;
  public:
    CallbackTask(Time callbackTime, const ITimeProvider & timeProvider):
      _provider(timeProvider),
      _executed(false),
      _callbackTime(callbackTime){
    }
    void runTask(){
      if(_executed )return;
      Time actualTime = _provider.time();
      if(_callbackTime >actualTime)return;
      executeCallback(actualTime);
      _executed = true;
    }
  protected:
    virtual void executeCallback(Time actualTime)=0;
  };
  class CallbackTaskDelegate:public CallbackTask{
  private:
    std::function<void (Time )> _callback;
  public:
    CallbackTaskDelegate(std::function<void(Time)> callback, Time callbackTime, const ITimeProvider & provider):
      CallbackTask(callbackTime,provider),_callback(callback){
    }

    void executeCallback( Time actualTime ){
      _callback(actualTime);
    }
  };
}


text:
<?php
/**
 * The contents of this file was generated using the WSDLs as provided by eBay.
 *
 * DO NOT EDIT THIS FILE!
 */

namespace DTS\eBaySDK\ResolutionCaseManagement\Types;

/**
 *
 * @property integer $errorId
 * @property string $domain
 * @property string $subdomain
 * @property \DTS\eBaySDK\ResolutionCaseManagement\Enums\ErrorSeverity $severity
 * @property \DTS\eBaySDK\ResolutionCaseManagement\Enums\ErrorCategory $category
 * @property string $message
 * @property string $exceptionId
 * @property \DTS\eBaySDK\ResolutionCaseManagement\Types\ErrorParameter[] $parameter
 */
class ErrorData extends \DTS\eBaySDK\Types\BaseType
{
    /**
     * @var array Properties belonging to objects of this class.
     */
    private static $propertyTypes = [
        'errorId' => [
            'type' => 'integer',
            'repeatable' => false,
            'attribute' => false,
            'elementName' => 'errorId'
        ],
        'domain' => [
            'type' => 'string',
            'repeatable' => false,
            'attribute' => false,
            'elementName' => 'domain'
        ],
        'subdomain' => [
            'type' => 'string',
            'repeatable' => false,
            'attribute' => false,
            'elementName' => 'subdomain'
        ],
        'severity' => [
            'type' => 'string',
            'repeatable' => false,
            'attribute' => false,
            'elementName' => 'severity'
        ],
        'category' => [
            'type' => 'string',
            'repeatable' => false,
            'attribute' => false,
            'elementName' => 'category'
        ],
        'message' => [
            'type' => 'string',
            'repeatable' => false,
            'attribute' => false,
            'elementName' => 'message'
        ],
        'exceptionId' => [
            'type' => 'string',
            'repeatable' => false,
            'attribute' => false,
            'elementName' => 'exceptionId'
        ],
        'parameter' => [
            'type' => 'DTS\eBaySDK\ResolutionCaseManagement\Types\ErrorParameter',
            'repeatable' => true,
            'attribute' => false,
            'elementName' => 'parameter'
        ]
    ];

    /**
     * @param array $values Optional properties and values to assign to the object.
     */
    public function __construct(array $values = [])
    {
        list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values);

        parent::__construct($parentValues);

        if (!array_key_exists(__CLASS__, self::$properties)) {
            self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes);
        }

        if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) {
            self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/resolution/v1/services"';
        }

        $this->setValues(__CLASS__, $childValues);
    }
}