text:
using System;
using Arcade.Run.Execution;

namespace Arcade.Run.RunVectors
{
    public sealed class Conditional
    {
        private readonly Guid _whenTrue;
        private readonly Guid _whenFalse;
        private readonly Delegate _evaluator;

        public Conditional(Delegate evaluator, Guid correlationIdWhenTrue, Guid correlationIdWhenFalse)
        {
            _evaluator = evaluator;
            _whenTrue = correlationIdWhenTrue;
            _whenFalse = correlationIdWhenFalse;
        }

        public Guid NextCorrelationId(Result previousResult)
        {
            if(previousResult == Result.Empty)
                throw new InvalidOperationException("Unable to reason on empty result!");

            object input = previousResult.Value;

            var result = (bool)_evaluator.DynamicInvoke(new[]{ input });

            return result ? _whenTrue : _whenFalse;
        }
    }

}

redpajama_set_name: RedPajamaGithub


text:
static NSString* zipInfoDecodeString(NSString* string)
{
	// newer zipinfo decodes non-Latin1 UTF-8 sequence to ?, so need to replicate this in comparison
	NSMutableString* encodedString = [[NSMutableString alloc] init];
	for (NSUInteger i = 0, n = string.length; i < n; ++i)
	{
		unichar ch = [string characterAtIndex:i];
		if (ch < 0x100)
			[encodedString appendString:[NSString stringWithCharacters:&ch length:1]];
		else if (ch < 0x800)
			[encodedString appendString:@"??"];
		else
			[encodedString appendString:@"???"];
	}
	return encodedString;
}

@implementation ZZZipTests
{
	NSURL* _zipFileURL;
}

- (void)setUp
{
	_zipFileURL = [NSURL fileURLWithPath:@"/tmp/test.zip"];
	[[NSFileManager defaultManager] removeItemAtURL:_zipFileURL
											  error:nil];

}

- (void)tearDown
{
	[[NSFileManager defaultManager] removeItemAtURL:_zipFileURL
											  error:nil];
	_zipFileURL = nil;
}

- (NSURL*)zipFileURL
{
	return _zipFileURL;
}

- (NSError*)someError
{
	return [NSError errorWithDomain:@"com.pixelglow.ZipZap.something" code:99 userInfo:nil];
}

- (NSData*)dataAtFilePath:(NSString*)filePath
{
	return [NSData dataWithContentsOfFile:[[NSBundle bundleForClass:self.class] pathForResource:filePath
																						 ofType:nil]];
}

- (NSArray*)recordsForZipEntries:(NSArray*)zipEntries
{
	// record the values for the zip entries (before they get replaced by setting the zip entries)
	NSMutableArray* records = [NSMutableArray array];
	for (ZZArchiveEntry* zipEntry in zipEntries)
		[records addObject:
		 @{
		 @"fileMode": @(zipEntry.fileMode),
		 @"compressed": @(zipEntry.compressed),
		 @"lastModified": zipEntry.lastModified,
		 @"fileName": [zipEntry fileNameWithEncoding:NSUTF8StringEncoding],
		 @"rawFileName": zipEntry.rawFileName
		 }];
	return records;
}

- (void)checkZipEntryRecords:(NSArray*)newEntryRecords
				checkerBlock:(NSData*(^)(NSString* fileName))checkerBlock
{
	NSArray* zipInfo = [ZZTasks zipInfoAtPath:_zipFileURL.path];

	XCTAssertEqual(zipInfo.count,
				   newEntryRecords.count,
				   @"Zip entry count must match new entry count.");

	for (NSUInteger index = 0, count = zipInfo.count; index < count; ++ index)
	{
		NSDictionary* nextNewEntry = newEntryRecords[index];
		NSArray* nextZipInfo = zipInfo[index];

		char nextModeString[12];
		strmode([nextNewEntry[@"fileMode"] unsignedShortValue], nextModeString);
		nextModeString[10] = '\0';	// only want the first 10 chars of the parsed mode
		XCTAssertEqualObjects([NSString stringWithUTF8String:nextModeString],
							 nextZipInfo[0],
							 @"Zip entry #%lu file mode must match new entry file mode.",
							 (unsigned long)index);

		XCTAssertEqualObjects(nextZipInfo[1],
							 @"3.0",
							 @"Zip entry #%lu version made by should be 3.0.",
							 (unsigned long)index);
		XCTAssertEqualObjects(nextZipInfo[2],
							 @"unx",
							 @"Zip entry #%lu file attribute should be unix.",
							 (unsigned long)index);

		if (![nextNewEntry[@"compressed"] boolValue])
			XCTAssertEqualObjects(nextZipInfo[3],
								 nextZipInfo[5],
								 @"Zip entry #%lu compressed size must match uncompressed size if uncompressed.",
								 (unsigned long)index);

		XCTAssertEqualObjects(nextZipInfo[6],
							 [nextNewEntry[@"compressed"] boolValue]? @"defN" : @"stor",
							 @"Zip entry #%lu compression method must match new entry compressed.",
							 (unsigned long)index);

		NSDateComponents* actualLastModifiedComponents = [[NSDateComponents alloc] init];
		actualLastModifiedComponents.year = [[nextZipInfo[7] substringWithRange:NSMakeRange(0, 4)] integerValue];
		actualLastModifiedComponents.month = [[nextZipInfo[7] substringWithRange:NSMakeRange(4, 2)] integerValue];
		actualLastModifiedComponents.day = [[nextZipInfo[7] substringWithRange:NSMakeRange(6, 2)] integerValue];
		actualLastModifiedComponents.hour = [[nextZipInfo[7] substringWithRange:NSMakeRange(9, 2)] integerValue];
		actualLastModifiedComponents.minute = [[nextZipInfo[7] substringWithRange:NSMakeRange(11, 2)] integerValue];
		actualLastModifiedComponents.second = [[nextZipInfo[7] substringWithRange:NSMakeRange(13, 2)] integerValue];
		actualLastModifiedComponents.nanosecond = 0;
		NSDate* actualLastModified = [[[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian] dateFromComponents:actualLastModifiedComponents];

		XCTAssertEqualWithAccuracy([nextNewEntry[@"lastModified"] timeIntervalSinceReferenceDate],
								   actualLastModified.timeIntervalSinceReferenceDate,
								   1,
								   @"Zip entry #%lu last modified date must be within 1s of the new entry last modified date.",
								   (unsigned long)index);

		NSString* fileName = nextNewEntry[@"fileName"];
		NSString* rawFileName = [[NSString alloc] initWithData:nextNewEntry[@"rawFileName"] encoding:NSUTF8StringEncoding];
		if ([nextZipInfo[8] rangeOfString:@"?"].location != NSNotFound)
		{
			fileName = zipInfoDecodeString(fileName);
			rawFileName = zipInfoDecodeString(rawFileName);
		}

		XCTAssertEqualObjects(nextZipInfo[8],
							 fileName,
							 @"Zip entry #%lu file name must match new entry file name.",
							 (unsigned long)index);

		XCTAssertEqualObjects(nextZipInfo[8],
							  rawFileName,
							  @"Zip entry #%lu raw file name must match new entry raw file name.",
							  (unsigned long)index);

		if (checkerBlock)
		{
			NSData* fileData = checkerBlock(nextNewEntry[@"fileName"]);
			NSString* fileDataLength = [NSString stringWithFormat:@"%lu", fileData.length];

			XCTAssertEqualObjects(nextZipInfo[3],
								 fileDataLength,
								 @"Zip entry #%lu uncompressed size must match original file length.",
								 (unsigned long)index);

			NSData* zipData = [ZZTasks unzipFile:nextNewEntry[@"fileName"]
										fromPath:_zipFileURL.path];

			XCTAssertEqualObjects(zipData,
							 fileData,
							 @"Zip entry #%lu file data must match original file data.",
							 (unsigned long)index);
		}
	}

	XCTAssertTrue([ZZTasks testZipAtPath:_zipFileURL.path], @"zipFile must pass unzip test.");
}

@end


text:
// ---------------------------------------------------------------------------------------
// <copyright file="CustomGrid.cs" company="Corale">
//     Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
//     Permission is hereby granted, free of charge, to any person obtaining a copy of
//     this software and associated documentation files (the "Software"), to deal in
//     the Software without restriction, including without limitation the rights to
//     use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
//     of the Software, and to permit persons to whom the Software is furnished to do
//     so, subject to the following conditions:
//
//     The above copyright notice and this permission notice shall be included in all
//     copies or substantial portions of the Software.
//
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
//     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
//     CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//     Disclaimer: Corale and/or Colore is in no way affiliated with Razer and/or any
//     of its employees and/or licensors. Corale, Adam Hellberg, and/or Brandon Scott
//     do not take responsibility for any harm caused, direct or indirect, to any
//     Razer peripherals via the use of Colore.
//
//     "Razer" is a trademark of Razer USA Ltd.
// </copyright>
// ---------------------------------------------------------------------------------------

namespace Corale.Colore.Razer.Keyboard.Effects
{
    using System;
    using System.Collections.Generic;
    using System.Runtime.InteropServices;

    using Corale.Colore.Annotations;
    using Corale.Colore.Core;

    /// <summary>
    /// Describes a custom grid effect for every key.
    /// </summary>
    [StructLayout(LayoutKind.Sequential)]
    public struct CustomGrid
    {
        /// <summary>
        /// Color definitions for each key on the keyboard.
        /// </summary>
        /// <remarks>
        /// The array is 2-dimensional, with the first dimension
        /// specifying the row for the key, and the second the column.
        /// </remarks>
        //[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NestedColorArrayMarshaler))]
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = (int)Constants.MaxRows)]
        private readonly Row[] Rows;

        /// <summary>
        /// Initializes a new instance of the <see cref="CustomGrid" /> struct.
        /// </summary>
        /// <param name="colors">The colors to use.</param>
        /// <exception cref="ArgumentException">Thrown if the colors array supplied is of an incorrect size.</exception>
        public CustomGrid(Color[][] colors)
        {
            var rows = (Size)colors.GetLength(0);

            if (rows != Constants.MaxRows)
            {
                throw new ArgumentException(
                    "Colors array has incorrect number of rows, should be " + Constants.MaxRows + ", received " + rows,
                    "colors");
            }

            Rows = new Row[Constants.MaxRows];

            for (Size row = 0; row < (int)Constants.MaxRows; row++)
            {
                var inRow = colors[row];
                Rows[row] = new Row(inRow);
            }
        }

        /// <summary>
        /// Gets or sets cells in the custom grid.
        /// </summary>
        /// <param name="row">Row to access, zero indexed.</param>
        /// <param name="column">Column to access, zero indexed.</param>
        [PublicAPI]
        public Color this[int row, int column]
        {
            get
            {
                if (row >= Constants.MaxRows)
                    throw new ArgumentOutOfRangeException("row", row, "Attempted to access a row that does not exist.");

                if (column >= Constants.MaxColumns)
                {
                    throw new ArgumentOutOfRangeException(
                        "column",
                        column,
                        "Attempted to access a column that does not exist.");
                }

                return Rows[row].Columns[column];
            }

            set
            {
                if (row >= Constants.MaxRows)
                    throw new ArgumentOutOfRangeException("row", row, "Attempted to access a row that does not exist.");

                if (column >= Constants.MaxColumns)
                {
                    throw new ArgumentOutOfRangeException(
                        "column",
                        column,
                        "Attempted to access a column that does not exist.");
                }

                Rows[row].Columns[column] = value;
            }
        }

        /// <summary>
        /// Clears the colors from the grid, setting them to <see cref="Color.Black" />.
        /// </summary>
        public void Clear()
        {
            for (var row = 0; row < (int)Constants.MaxRows; row++)
            {
                var rowArr = Rows[row];
                for (var col = 0; col < (int)Constants.MaxColumns; col++)
                    rowArr.Columns[col] = Color.Black;
            }
        }

        /// <summary>
        /// Container struct holding color definitions for a single row in the custom grid.
        /// </summary>
        [StructLayout(LayoutKind.Sequential)]
        private struct Row
        {
            /// <summary>
            /// Color definitions for the columns of this row.
            /// </summary>
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = (int)Constants.MaxColumns)]
            internal readonly uint[] Columns;

            /// <summary>
            /// Initializes a new instance of the <see cref="Row" /> struct.
            /// </summary>
            /// <param name="colors">Colors for this row.</param>
            internal Row(IReadOnlyList<Color> colors)
            {
                if (colors.Count != (int)Constants.MaxColumns)
                {
                    throw new ArgumentException(
                        "Incorrect color count, expected " + Constants.MaxColumns + " but received " + colors.Count,
                        "colors");
                }

                Columns = new uint[Constants.MaxColumns];

                for (var i = 0; i < (int)Constants.MaxColumns; i++)
                    Columns[i] = colors[i];
            }

            /// <summary>
            /// Converts an instance of the <see cref="Row" /> struct to an array of unsigned integers.
            /// </summary>
            /// <param name="row">The <see cref="Row" /> object to convert.</param>
            /// <returns>An array of unsigned integeres representing the colors of the row.</returns>
            public static implicit operator uint[](Row row)
            {
                return row.Columns;
            }
        }
    }
}


text:
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\EventSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Новости';
$this->params['breadcrumbs'][] = $this->title;
?>

<?//= Html::encode($this->title) ?>

	<?php if(Yii::$app->user->identity->username=='admin'){ ?>

	<?//= Html::a('Добавить Новость', ['create'], ['class' => 'btn btn-success']) ?>

    <?/* = GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            //'id',
            //'var',
            'title:ntext',
            //'img:ntext',
            'date',
            'desc:ntext',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]);  */?>

	<?php  }else{ ?>
		<?php

 /* 	echo ListView::widget( [
    'dataProvider' => $dataProvider,
    'itemView' => '_list_item',
	'itemOptions' => ['class' => 'itemm'],
    //'pager' => ['class' => \kop\y2sp\ScrollPager::className()]
	] );  */ ?>
<?php  } ?>


text:
<?xml version="1.0" encoding="UTF-8"?>
<servico versao="2" xmlns="http://servicos.gov.br/cartas-servico/v2/schema/servico" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://servicos.gov.br/cartas-servico/v2/schema/servico ../servico.xsd">
 <nome>
  Consulta Dados Financeiros - Relação de Débitos do Imóvel
 </nome>
 <nomes-populares>
 </nomes-populares>
 <descricao>A Consulta Dados Financeiros mostrará a relação dos débitos lançados para o imóvel dominial, classificados por exercício e por tipo de rubrica, as datas em que os mesmos foram pagos e os valores dos respectivos pagamentos.

 </descricao>
 <palavras-chave>
 </palavras-chave>
 <areas-de-interesse>
  <area-de-interesse>
   <id>
    habitacao
   </id>
   <area>Habitação</area>
  </area-de-interesse>
 </areas-de-interesse>
 <segmentos-da-sociedade>
  <segmento-da-sociedade>
   <id>
    cidadaos
   </id>
   <nome>
    Cidadãos
   </nome>
  </segmento-da-sociedade>
  <segmento-da-sociedade>
   <id>
    empresas
   </id>
   <nome>
    Empresas
   </nome>
  </segmento-da-sociedade>
 </segmentos-da-sociedade>
 <eventos-da-linha-da-vida>
  <evento-da-linha-da-vida>
   <id>
    imoveis
   </id>
   <nome>
    Imóveis
   </nome>
  </evento-da-linha-da-vida>
 </eventos-da-linha-da-vida>
 <legislacao-relacionada></legislacao-relacionada>
 <solicitantes></solicitantes>
 <etapas>
  <etapa>
   <titulo>
   </titulo>
   <descricao>
   </descricao>
   <documentos></documentos>
   <custos excecoes="false">
    <custo>
     <descricao>
     </descricao>
     <valor>
     </valor>
    </custo>
   </custos>
   <canais-de-prestacao>
    <canal-de-prestacao tipo="Web" preferencial="true">
     <titulo>
     </titulo>
     <referencia>
      http://atendimentovirtual.spu.planejamento.gov.br/Consultas/Fin_Pedido.asp
     </referencia>
    </canal-de-prestacao>
    <canal-de-prestacao tipo="Agendamento" preferencial="false">
     <titulo>
     </titulo>
     <referencia>
     </referencia>
    </canal-de-prestacao>
   </canais-de-prestacao>
  </etapa>
 </etapas>
 <orgao>
  <id>
   ministerio-do-planejamento-orcamento-e-gestao-mpog
  </id>
  <nome>
   Ministério do Planejamento, Orçamento e Gestão (MPOG)
  </nome>
 </orgao>
 <situacao>
 </situacao>
</servico>


text:
'use strict'

var Atomic = require('./atomic')
var utils = require('../utils')

// A component to import web pages, which works like
// a iframe element or a webview.
// attrs:
//   - src
// events:
//   - pagestart
//   - pagefinish
//   - error
function Web (data) {
  Atomic.call(this, data)
}

Web.prototype = Object.create(Atomic.prototype)

Web.prototype.create = function () {
  var node = document.createElement('iframe')
  node.classList.add('weex-element')
  node.style.width = '100%'
  node.style.height = '100%'
  return node
}

Web.prototype.goBack = function () {
  this.node.contentWindow.history.back()
}

Web.prototype.goForward = function () {
  this.node.contentWindow.history.forward()
}

Web.prototype.reload = function () {
  this.node.contentWindow.location.reload()
}

Web.prototype.attr = {
  src: function (val) {
    this.node.src = val
    setTimeout(function () {
      this.dispatchEvent('pagestart', { url: val })
    }.bind(this), 0)
  }
}

Web.prototype.bindEvents = function (evts) {
  Atomic.prototype.bindEvents.call(this, evts)
  var that = this
  this.node.addEventListener('load', function (e) {
    that.dispatchEvent('pagefinish', utils.extend({
      url: that.node.src
    }))
  })
}

module.exports = Web


text:
all:
	~/tools/buildapp --asdf-tree ~/quicklisp --load cl-onchange.lisp --entry main --output onchange


text:
import React from 'react'
import { Icon, Step } from 'stardust'

const { Content, Description, Group, Title } = Step
const steps = [
  { completed: true, icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' },
  { completed: true, icon: 'credit card', title: 'Billing', description: 'Enter billing information' },
  { active: true, icon: 'info', title: 'Confirm Order', description: 'Verify order details' },
]

const Vertical = () => (

    <Group vertical>
      <Step completed>
        <Icon name='truck' />
        <Content>
          <Title>Shipping</Title>
          <Description>Choose your shipping options</Description>
        </Content>
      </Step>

      <Step completed>
        <Icon name='credit card' />
        <Content title='Billing' description='Enter billing information' />
      </Step>

      <Step active icon='info' title='Confirm Order' description='Verify order details' />
    </Group>

    <Group vertical items={steps} />

)

export default Vertical


text:
import * as fs from 'fs';
import * as path from 'path';
import * as glob from 'glob';

import { SimpleIOResult } from '../models';
import { workspace } from 'vscode';

export function getFullPath(srcPath: string, filename: string) {
  return path.join(srcPath, filename);
}

export function getDirectories(srcPath: string, excludes: string | string[]): SimpleIOResult[] {
  const results = glob.sync('**/', {
    cwd: srcPath,
    ignore: excludes,
    nodir: false
  }).map(path => ({
    path: path.substring(0, path.length - 1) + '/',
    isDirectory: true
  }));

  return results;
}

export function getFiles(srcPath: string, includes: string, excludes: string | string[]): SimpleIOResult[] {
  const results = glob.sync(includes, {
    cwd: srcPath,
    ignore: excludes,
    nodir: true
  }).map(result => ({
    path: path.parse(result).name,
    isDirectory: false
  }));

  return results;
}

export function exists(filePath: string) {
  return fs.existsSync(filePath);
}

export function writeFile(outPath: string, output: string) {
  return fs.writeFileSync(outPath, output);
}


text:
//*********************************************************//
//    Copyright (c) Microsoft. All rights reserved.  Licensed under the MIT license. See LICENSE file in the project root for full license information.
//*********************************************************
(function () {
    // Append the bind() polyfill
    var scriptElem = document.createElement('script');
    scriptElem.setAttribute('src', 'scripts/android2.3-jscompat.js');
    if (document.body) {
        document.body.appendChild(scriptElem);
    } else {
        document.head.appendChild(scriptElem);
    }
}());


text:
title: "Stream 'Everything That Happens Will Happen Today'"
slug: "stream-everything-that-happens-will-happen-today"
date: "2008-08-18T08:14:09-06:00"
author: "fak3r"
categories:
- music
tags:
- brian eno
- david byrne
- new music
- rock
- Stream
- talking heads
---

Stream the new David Byrne / Brian Eno disk, [Everything That Happens Will Happen Today](http://www.everythingthathappens.com/) below, it's their follow-up to the cult classic In The Bush Of Ghosts from 198-.  Both are recommended listening.

[![](http://www.fak3r.com/wp-content/uploads/2008/09/cd_plus_dig_promo.jpg)](http://www.fak3r.com/wp-content/uploads/2008/09/cd_plus_dig_promo.jpg)


text:
package org.apache.uima.fit.factory;

import static org.apache.uima.fit.factory.ResourceCreationSpecifierFactory.createResourceCreationSpecifier;
import static org.apache.uima.fit.factory.ResourceCreationSpecifierFactory.setConfigurationParameters;
import static org.apache.uima.fit.factory.UimaContextFactory.createUimaContext;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

import java.awt.Point;

import org.apache.uima.fit.factory.testAes.ParameterizedAE;
import org.apache.uima.resource.ResourceCreationSpecifier;
import org.junit.jupiter.api.Test;

/**
 */

public class ResourceCreationSpecifierFactoryTest {

  @Test
  public void test4() throws Exception {
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> createResourceCreationSpecifier(
                    "src/main/resources/org/apache/uima/fit/component/NoOpAnnotator.xml",
                    new String[] { "test" }));
  }

  @Test
  public void test3() throws Exception {
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> createUimaContext("test"));
  }

  @Test
  public void test2() throws Exception {
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> createResourceCreationSpecifier(
                    "src/main/resources/org/apache/uima/fit/component/NoOpAnnotator.xml",
                    new Object[] { "test", new Point(0, 5) }));
  }

  @Test
  public void test1() {
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> setConfigurationParameters((ResourceCreationSpecifier) null,
                    ParameterizedAE.PARAM_BOOLEAN_1));
  }
}


text:
import {
  PROFILE_NO_PROJECTS_UPDATE,
  PROFILE_NO_EMPLOYMENT_UPDATE,
  AUTH_USER_SETTINGS_CLEAR_REDUCER,
  PROFILE_NO_PROJECTS,
  PROFILE_NO_EMPLOYMENT,
  Actions,
} from '../actions/authUserSetting';

import { getItem } from '../../utils/localStorage';

export interface IState {
  profileNoProjects: boolean;
  profileNoEmployment: boolean;
}

const initialState: IState = {
  profileNoProjects: getItem(PROFILE_NO_PROJECTS),
  profileNoEmployment: getItem(PROFILE_NO_EMPLOYMENT),
};

export function reducer(state = initialState, action: Actions): IState {
  switch (action.type) {
    case PROFILE_NO_PROJECTS_UPDATE: {
      return {
        ...state,
        profileNoProjects: action.payload,
      };
    }

    case PROFILE_NO_EMPLOYMENT_UPDATE: {
      return {
        ...state,
        profileNoEmployment: action.payload,
      };
    }

    case AUTH_USER_SETTINGS_CLEAR_REDUCER: {
      return initialState;
    }

    default: {
      return state;
    }
  }
}

export const getProfileNoProjects = (state: IState) => state.profileNoProjects;
export const getProfileNoEmployment = (state: IState) => state.profileNoEmployment;


text:
package com.medicine.app.fragment;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.ksoap2.serialization.SoapObject;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import com.handmark.pulltorefresh.library.PullToRefreshBase;
import com.handmark.pulltorefresh.library.PullToRefreshBase.OnRefreshListener2;
import com.handmark.pulltorefresh.library.PullToRefreshListView;
import com.medicine.app.R;
import com.medicine.app.adapter.HistoryListAdapter;
import com.medicine.app.db.database.InsertUserDB;
import com.medicine.app.db.database.KnowledgeDB;
import com.medicine.app.model.HistoryItemBean;
import com.medicine.app.model.KnowledgeBean;
import com.medicine.app.utils.CommonConst;
import com.medicine.app.webservice.WebService;
/**
 * 知识界面
 * @author wangyang
 *
 */

public class KnowledgeFragment extends Fragment implements CommonConst {
	private static final String TAG = "KnowledgeFragment";
    private PullToRefreshListView listKnowledge;
    private HistoryListAdapter historyAdapter;
    private List<HistoryItemBean> listData;
	private LinearLayout llKonwdetails;
	private Button konwdetailsBack;
	private Button btnSync; // 知识同步按钮
	private TextView tvNum;
	private TextView detailTitle;
	private TextView detailContent;
	private int page = 0;
	private int count = 0;
	private int currentPage = 0;
	private static final int LIMIT = 4;
	private int itemNum = 1;
	private static final int MESSAGE_LOAD = 2;
	private Handler handler = new Handler() {
		@Override
		public void handleMessage(Message msg) {
			switch (msg.what) {
			case MESSAGE_LOAD:
				new RefreshDataTask().execute();
				break;

			default:
				break;
			}
		};
	};
	@Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_knowledge, container, false);

    }
    @Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		 initView();
		 initData();
		 setData();

    }
    private void initView() {
    	tvNum = (TextView) getView().findViewById(R.id.tv_list_count);
    	btnSync = (Button) getView().findViewById(R.id.btn_sync);
		 listKnowledge = (PullToRefreshListView)getView().findViewById(R.id.list_knowledge);
		 llKonwdetails = (LinearLayout)getView().findViewById(R.id.lin_konwdetails);
		 konwdetailsBack = (Button)getView().findViewById(R.id.konwdetails_back);
		 detailContent = (TextView) getView().findViewById(R.id.konwdetails_content);
		 detailTitle = (TextView) getView().findViewById(R.id.konwdetails_title);
		 konwdetailsBack.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				listKnowledge.setVisibility(View.VISIBLE);
				llKonwdetails.setVisibility(View.GONE);
			}
		});
		 btnSync.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				new SyncDataTask().execute();
			}
		});

	}

	/**
     * 初始化数据
     */
    private void initData() {
    	currentPage = 0;
    	try {
			count = KnowledgeDB.getInstance(getActivity()).getCount();
			if(count != 0) {
				page = (int) Math.ceil((double)count/(double)LIMIT);
			}
		} catch (Exception e) {
			Log.e(TAG, "db getCount error", e);
		}
    	tvNum.setText("共有记录"+count+"条");
    	listData = new ArrayList<HistoryItemBean>();
		new RefreshDataTask().execute();
	}
    /**
     * 设置数据显示
     */
	private void setData() {
		historyAdapter = new HistoryListAdapter(getActivity(), listData);
		listKnowledge.setAdapter(historyAdapter);
		listKnowledge.setOnItemClickListener(new OnItemClickListener() {
			@Override
	   public void onItemClick(AdapterView<?> parent, View view,
			int position, long id) {
				HistoryItemBean data = listData.get(--position);
				detailContent.setText(data.getHistoryContent());
				detailTitle.setText(data.getHistoryTime());
				listKnowledge.setVisibility(View.GONE);
				llKonwdetails.setVisibility(View.VISIBLE);

			}
		});
		listKnowledge.setOnRefreshListener(new OnRefreshListener2<ListView>() {

			@Override
			public void onPullDownToRefresh(PullToRefreshBase<ListView> refreshView) {
				new AsyncTask<Void, Void, Void>(){

					@Override
					protected Void doInBackground(Void... params) {
						currentPage = 0;
						try {
							count = KnowledgeDB.getInstance(getActivity()).getCount();
							if(count != 0) {
								page = (int) Math.ceil((double)count/(double)LIMIT);
							}
						} catch (Exception e) {
							Log.e(TAG, "db getCount error", e);
						}
						listData.clear();
						itemNum = 1;
						return null;
					}

					protected void onPostExecute(Void result) {
						tvNum.setText("共有记录"+count+"条");
						handler.sendEmptyMessage(MESSAGE_LOAD);
					};
				}.execute();

			}

			@Override
			public void onPullUpToRefresh(PullToRefreshBase<ListView> refreshView) {
				if(page >= 1 && currentPage <= page) {
					new RefreshDataTask().execute();
				}else{
					listKnowledge.onRefreshComplete();
				}
			}
		});
	}

	/**
	 * 同步数据
	 * @author WangLin
	 *
	 */
	class SyncDataTask extends AsyncTask<Void, Void, String> {

		@Override
		protected String doInBackground(Void... params) {
			try {
				HashMap<String, Object> map = new HashMap<String, Object>();
				map.put("ID", InsertUserDB.getInstance(getActivity()).getColumnValue("ID"));
				map.put("KNO_Start_ID", KnowledgeDB.getInstance(getActivity()).getLastDataId());
				map.put("Count", "20");
				SoapObject soapObject = WebService.common(SOAP_TB_KNO_INFO, METHOD_TB_KNO_INFO, map, NAME_SPACE, END_POINT_SALE);
				String result = soapObject.getProperty(0).toString();
			    Log.d("SyncDataTask", result+"");
				return result;
			} catch (Exception e) {
				Log.e(TAG, "SyncDataTask doInBackground error", e);
				return null;
			}

		}

		@Override
		protected void onPostExecute(String result) {
			if(result != null) {
				try {
					JSONObject jsonObject = new JSONObject(result);
					JSONArray jsonArray = jsonObject.getJSONArray("KNO");
					if(jsonArray!=null && jsonArray.length() > 0) {
						List<KnowledgeBean> list = new ArrayList<KnowledgeBean>();
						for (int i = 0; i < jsonArray.length(); i++) {
							JSONObject data = jsonArray.getJSONObject(i);
							list.add(new KnowledgeBean(data.getString("ID"),
									data.getString(KnowledgeBean.DATA_TIME),
									data.getString(KnowledgeBean.HEADSTR),
									data.getString(KnowledgeBean.CONTENT_M),
									data.getString("ContentC")));
						}
						if(list != null && list.size() > 0) {
							KnowledgeDB.getInstance(getActivity()).insert(list);
						}
					}
				} catch (JSONException e) {
					Log.e(TAG, "SyncDataTask onPostExecute error", e);
				}
			}
		}
	}

	class RefreshDataTask extends AsyncTask<Void, Void, Boolean> {
		List<KnowledgeBean> list = new ArrayList<KnowledgeBean>();
		@Override
		protected Boolean doInBackground(Void... params) {
			try {
				if(page >= 1 && currentPage < page) {
					list = KnowledgeDB.getInstance(getActivity()).getListByLimit(currentPage, LIMIT);
					currentPage++;
					if (list != null && list.size() > 0) {
						return true;
					}else{
						return false;
					}
				} else {
					return false;
				}
			} catch (Exception e) {
				Log.e(TAG, "RefreshDataTask doInBackground error", e);
				return false;
			}
		}

		@Override
		protected void onPostExecute(Boolean result) {
			try {
				listKnowledge.onRefreshComplete();
				if(result) {
					for (KnowledgeBean knowledgeBean : list) {
						listData.add(new HistoryItemBean(itemNum+"", knowledgeBean.getHeadStr(), knowledgeBean.getShortConent(), knowledgeBean.getContent()));
						++itemNum;
					}
					historyAdapter.notifyDataSetChanged();
				}
			} catch (Exception e) {
				Log.e(TAG, "RefreshDataTask onPostExecute error", e);
			}
		}

	}
}


text:
<?php

namespace CommerceGuys\Guzzle\Oauth2\Tests\GrantType;

use CommerceGuys\Guzzle\Oauth2\GrantType\JwtBearer;
use CommerceGuys\Guzzle\Oauth2\Tests\TestBase;
use SplFileObject;

class JwtBearerTest extends TestBase
{
    public function testMissingParentConfigException()
    {
        $this->setExpectedException('\\InvalidArgumentException', 'The config is missing the following key: "client_id"');
        new JwtBearer($this->createClient());
    }

    public function testMissingConfigException()
    {
        $this->setExpectedException('\\InvalidArgumentException', 'The config is missing the following key: "private_key"');
        new JwtBearer($this->createClient(), [
            'client_id' => 'testClient',
            'client_secret' => 'clientSecret'
        ]);
    }

    public function testPrivateKeyNotSplFileObject()
    {
        $this->setExpectedException('\\InvalidArgumentException', 'private_key needs to be instance of SplFileObject');
        new JwtBearer($this->createClient(), [
            'client_id' => 'testClient',
            'client_secret' => 'clientSecret',
            'private_key' => 'INVALID'
        ]);
    }

    public function testValidRequestGetsToken()
    {
        $grantType = new JwtBearer($this->createClient(), [
            'client_id' => 'testClient',
            'client_secret' => 'clientSecret',
            'private_key' => new SplFileObject(__DIR__ . '/../private.key')
        ]);
        $token = $grantType->getToken();
        $this->assertNotEmpty($token->getToken());
        $this->assertTrue($token->getExpires()->getTimestamp() > time());
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="2ef46b5f-0913-49b8-aeef-2b042c2e5970" name="Default" comment="" />
    <ignored path="ashleywan.iws" />
    <ignored path=".idea/workspace.xml" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="ashleywan" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="encrypt.dart" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/lib/component/encrypt.dart">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="24" column="15" selection-start-line="24" selection-start-column="15" selection-end-line="24" selection-end-column="15" />
              <folding>
                <element signature="e#18#37#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="index.html" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/build/web/index.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="add_recipe_component.dart" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/lib/component/add_recipe_component.dart">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="32" column="22" selection-start-line="32" selection-start-column="22" selection-end-line="32" selection-end-column="22" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="index.html" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/web/index.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-3.125">
              <caret line="5" column="7" selection-start-line="5" selection-start-column="7" selection-end-line="5" selection-end-column="7" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="style.css" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/web/style.css">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-3.3333333">
              <caret line="6" column="1" selection-start-line="6" selection-start-column="1" selection-end-line="6" selection-end-column="1" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="edit_recipe_component.dart" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/lib/component/edit_recipe_component.dart">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="3" selection-end-column="38" />
              <folding>
                <element signature="e#32#70#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="encrypt.html" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/lib/component/encrypt.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-3.125">
              <caret line="5" column="11" selection-start-line="5" selection-start-column="11" selection-end-line="5" selection-end-column="11" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="encrypt.css" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/lib/component/encrypt.css">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="35" column="11" selection-start-line="35" selection-start-column="11" selection-end-line="35" selection-end-column="11" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="add_recipe_component.html" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/lib/component/add_recipe_component.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-1.875">
              <caret line="3" column="15" selection-start-line="2" selection-start-column="4" selection-end-line="3" selection-end-column="15" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="edit_recipe_component.html" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/lib/component/edit_recipe_component.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-16.25">
              <caret line="26" column="0" selection-start-line="26" selection-start-column="0" selection-end-line="26" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="FileTemplateManagerImpl">
    <option name="RECENT_TEMPLATES">
      <list>
        <option value="Dart File" />
        <option value="Html5" />
        <option value="XSLT Stylesheet" />
      </list>
    </option>
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
  </component>
  <component name="GradleLocalSettings">
    <option name="externalProjectsViewState">
      <projects_view />
    </option>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/lib/routing/recipe_book_router.dart" />
        <option value="$PROJECT_DIR$/lib/component/add_recipe_component.css" />
        <option value="$PROJECT_DIR$/web/main.dart" />
        <option value="$PROJECT_DIR$/lib/component/add_recipe_component.dart" />
        <option value="$PROJECT_DIR$/lib/component/add_recipe_component.html" />
        <option value="$PROJECT_DIR$/lib/component/encrypt.css" />
        <option value="$PROJECT_DIR$/lib/component/encrypt.html" />
        <option value="$PROJECT_DIR$/web/index.html" />
        <option value="$PROJECT_DIR$/web/style.css" />
        <option value="$PROJECT_DIR$/lib/component/encrypt.dart" />
      </list>
    </option>
  </component>
  <component name="NamedScopeManager">
    <order />
  </component>
  <component name="ProjectFrameBounds">
    <option name="x" value="375" />
    <option name="y" value="148" />
    <option name="width" value="1400" />
    <option name="height" value="739" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="2" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
    </navigator>
    <panes>
      <pane id="PackagesPane" />
      <pane id="Scope" />
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="web" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="build" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="web" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="build" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="web" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="packages" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ashleywan" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value=".pub" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="transformers" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
      <pane id="Scratches" />
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="recentsLimit" value="5" />
    <property name="DefaultHtmlFileTemplate" value="Html5" />
  </component>
  <component name="RunManager" selected="Dart Command Line App.stream_server.dart">
    <configuration default="false" name="populate_db.dart" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application" temporary="true" nameIsGenerated="true">
      <option name="filePath" value="$PROJECT_DIR$/bin/populate_db.dart" />
      <option name="workingDirectory" value="$PROJECT_DIR$" />
      <method />
    </configuration>
    <configuration default="false" name="stream_server.dart" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application" temporary="true" nameIsGenerated="true">
      <option name="filePath" value="$PROJECT_DIR$/bin/stream_server.dart" />
      <option name="workingDirectory" value="$PROJECT_DIR$" />
      <method />
    </configuration>
    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
      <module name="" />
      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
      <option name="PROGRAM_PARAMETERS" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidRunConfigurationType" factoryName="Android Application">
      <module name="" />
      <option name="ACTIVITY_CLASS" value="" />
      <option name="MODE" value="default_activity" />
      <option name="DEPLOY" value="true" />
      <option name="ARTIFACT_NAME" value="" />
      <option name="TARGET_SELECTION_MODE" value="EMULATOR" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <option name="USE_COMMAND_LINE" value="true" />
      <option name="COMMAND_LINE" value="" />
      <option name="WIPE_USER_DATA" value="false" />
      <option name="DISABLE_BOOT_ANIMATION" value="false" />
      <option name="NETWORK_SPEED" value="full" />
      <option name="NETWORK_LATENCY" value="none" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
      <option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
      <module name="" />
      <option name="TESTING_TYPE" value="0" />
      <option name="INSTRUMENTATION_RUNNER_CLASS" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="PACKAGE_NAME" value="" />
      <option name="TARGET_SELECTION_MODE" value="EMULATOR" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <option name="USE_COMMAND_LINE" value="true" />
      <option name="COMMAND_LINE" value="" />
      <option name="WIPE_USER_DATA" value="false" />
      <option name="DISABLE_BOOT_ANIMATION" value="false" />
      <option name="NETWORK_SPEED" value="full" />
      <option name="NETWORK_LATENCY" value="none" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
      <option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
      <method />
    </configuration>
    <configuration default="true" type="Applet" factoryName="Applet">
      <option name="WIDTH" value="400" />
      <option name="HEIGHT" value="300" />
      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
      <module />
      <method />
    </configuration>
    <configuration default="true" type="Application" factoryName="Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
      <method />
    </configuration>
    <configuration default="true" type="DartUnitRunConfigurationType" factoryName="DartUnit">
      <method />
    </configuration>
    <configuration default="true" type="GradleRunConfiguration" factoryName="Gradle">
      <ExternalSystemSettings>
        <option name="executionName" />
        <option name="externalProjectPath" />
        <option name="externalSystemIdString" value="GRADLE" />
        <option name="scriptParameters" />
        <option name="taskDescriptions">
          <list />
        </option>
        <option name="taskNames">
          <list />
        </option>
        <option name="vmOptions" />
      </ExternalSystemSettings>
      <method />
    </configuration>
    <configuration default="true" type="JUnit" factoryName="JUnit">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="TEST_OBJECT" value="class" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <envs />
      <patterns />
      <method />
    </configuration>
    <configuration default="true" type="JarApplication" factoryName="JAR Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="Remote" factoryName="Remote">
      <option name="USE_SOCKET_TRANSPORT" value="true" />
      <option name="SERVER_MODE" value="false" />
      <option name="SHMEM_ADDRESS" value="javadebug" />
      <option name="HOST" value="localhost" />
      <option name="PORT" value="5005" />
      <method />
    </configuration>
    <configuration default="true" type="TestNG" factoryName="TestNG">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="SUITE_NAME" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="GROUP_NAME" />
      <option name="TEST_OBJECT" value="CLASS" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="OUTPUT_DIRECTORY" />
      <option name="ANNOTATION_TYPE" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <option name="USE_DEFAULT_REPORTERS" value="false" />
      <option name="PROPERTIES_FILE" />
      <envs />
      <properties />
      <listeners />
      <method />
    </configuration>
    <configuration default="true" type="XSLT" factoryName="XSLT">
      <option name="myOutputFile" />
      <option name="myOpenOutputFile" value="false" />
      <option name="myOpenInBrowser" value="false" />
      <option name="mySmartErrorHandling" value="true" />
      <option name="myRunnerPort" value="34873" />
      <option name="myVmArguments" />
      <option name="myWorkingDirectory" />
      <option name="myModule" />
      <option name="myJdk" />
      <parameters />
      <OutputType value="CONSOLE" save-to-file="false" />
      <FileType name="XML" />
      <JdkChoice value="FROM_MODULE" />
      <method />
    </configuration>
    <list size="2">
      <item index="0" class="java.lang.String" itemvalue="Dart Command Line App.populate_db.dart" />
      <item index="1" class="java.lang.String" itemvalue="Dart Command Line App.stream_server.dart" />
    </list>
    <recent_temporary>
      <list size="2">
        <item index="0" class="java.lang.String" itemvalue="Dart Command Line App.stream_server.dart" />
        <item index="1" class="java.lang.String" itemvalue="Dart Command Line App.populate_db.dart" />
      </list>
    </recent_temporary>
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="2ef46b5f-0913-49b8-aeef-2b042c2e5970" name="Default" comment="" />
      <created>1444197333919</created>
      <option name="number" value="Default" />
      <updated>1444197333919</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="375" y="148" width="1400" height="739" extended-state="0" />
    <editor active="false" />
    <layout>
      <window_info id="Dart Analysis" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.26567164" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/web/fonzie1.jpg">
      <provider selected="true" editor-type-id="images">
        <state />
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/web/view/addRecipe.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/web/view/editRecipe.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/web/view/viewRecipe.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/bin/populate_db.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="1" column="7" selection-start-line="1" selection-start-column="7" selection-end-line="1" selection-end-column="7" />
          <folding>
            <element signature="e#22#72#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/service/domain_model.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/service/query_service.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/tooltip/tooltip.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file:///usr/local/opt/dart/libexec/lib/html/dartium/html_dartium.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="100" column="17" selection-start-line="100" selection-start-column="17" selection-end-line="100" selection-end-column="17" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/routing/recipe_book_router.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/recipe_book.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="75" column="42" selection-start-line="75" selection-start-column="42" selection-end-line="75" selection-end-column="42" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/rating/rating_component.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/rating/rating_component.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/web/main.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="18" column="34" selection-start-line="18" selection-start-column="34" selection-end-line="18" selection-end-column="34" />
          <folding>
            <element signature="e#22#41#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/component/add_recipe_component.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="6" selection-end-column="1" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/component/add_recipe_component.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="32" column="22" selection-start-line="32" selection-start-column="22" selection-end-line="32" selection-end-column="22" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/component/add_recipe_component.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-1.875">
          <caret line="3" column="15" selection-start-line="2" selection-start-column="4" selection-end-line="3" selection-end-column="15" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/component/edit_recipe_component.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="3" selection-end-column="38" />
          <folding>
            <element signature="e#32#70#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/component/edit_recipe_component.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-16.25">
          <caret line="26" column="0" selection-start-line="26" selection-start-column="0" selection-end-line="26" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/component/encrypt.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="35" column="11" selection-start-line="35" selection-start-column="11" selection-end-line="35" selection-end-column="11" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/web/style.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-3.3333333">
          <caret line="6" column="1" selection-start-line="6" selection-start-column="1" selection-end-line="6" selection-end-column="1" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/web/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-3.125">
          <caret line="5" column="7" selection-start-line="5" selection-start-column="7" selection-end-line="5" selection-end-column="7" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/component/encrypt.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-3.125">
          <caret line="5" column="11" selection-start-line="5" selection-start-column="11" selection-end-line="5" selection-end-column="11" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/lib/component/encrypt.dart">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="24" column="15" selection-start-line="24" selection-start-column="15" selection-end-line="24" selection-end-column="15" />
          <folding>
            <element signature="e#18#37#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/build/web/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
namespace overmon
{

/// Globally passed data.
class Global : Updatable<Global>
{
public:
	/// Zero initializes the counter.
	Global();

	/// The current animation counter value.
	DeltaTime animationCounter() const;

	/// The current animation counter truncated as an integer.
	uint8_t animationCounterIndex() const;

	/// Retrurns the sprite manager.
	const SpriteManager &spriteManager() const;

	/// Updates the animation counter.
	void update(DeltaTime delta);

private:
	DeltaTime counter_;
	uint8_t counterIndex_;
	SpriteManager spriteManager_;
};

}


text:
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Messages = void 0;

var _react = _interopRequireWildcard(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _UIMessage = require("./UIMessage");

var _reactTransitionGroup = require("react-transition-group");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var messageIdx = 0;

var Messages = /*#__PURE__*/function (_Component) {
  _inherits(Messages, _Component);

  var _super = _createSuper(Messages);

  function Messages(props) {
    var _this;

    _classCallCheck(this, Messages);

    _this = _super.call(this, props);
    _this.state = {
      messages: []
    };
    _this.onClose = _this.onClose.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Messages, [{
    key: "show",
    value: function show(value) {
      if (value) {
        var newMessages = [];

        if (Array.isArray(value)) {
          for (var i = 0; i < value.length; i++) {
            value[i].id = messageIdx++;
            newMessages = [].concat(_toConsumableArray(this.state.messages), _toConsumableArray(value));
          }
        } else {
          value.id = messageIdx++;
          newMessages = this.state.messages ? [].concat(_toConsumableArray(this.state.messages), [value]) : [value];
        }

        this.setState({
          messages: newMessages
        });
      }
    }
  }, {
    key: "clear",
    value: function clear() {
      this.setState({
        messages: []
      });
    }
  }, {
    key: "replace",
    value: function replace(value) {
      var _this2 = this;

      this.setState({
        messages: []
      }, function () {
        return _this2.show(value);
      });
    }
  }, {
    key: "onClose",
    value: function onClose(message) {
      var newMessages = this.state.messages.filter(function (msg) {
        return msg.id !== message.id;
      });
      this.setState({
        messages: newMessages
      });

      if (this.props.onRemove) {
        this.props.onRemove(message);
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this3 = this;

      return /*#__PURE__*/_react.default.createElement("div", {
        id: this.props.id,
        className: this.props.className,
        style: this.props.style
      }, /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.TransitionGroup, null, this.state.messages.map(function (message, index) {
        return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.CSSTransition, {
          key: message.id,
          classNames: "p-messages",
          timeout: {
            enter: 250,
            exit: 500
          }
        }, /*#__PURE__*/_react.default.createElement(_UIMessage.UIMessage, {
          message: message,
          onClick: _this3.props.onClick,
          onClose: _this3.onClose
        }));
      })));
    }
  }]);

  return Messages;
}(_react.Component);

exports.Messages = Messages;

_defineProperty(Messages, "defaultProps", {
  id: null,
  className: null,
  style: null,
  onRemove: null,
  onClick: null
});

_defineProperty(Messages, "propTypes", {
  id: _propTypes.default.string,
  className: _propTypes.default.string,
  style: _propTypes.default.object,
  onRemove: _propTypes.default.func,
  onClick: _propTypes.default.func
});


text:
using System.Collections.Generic;

namespace VKDiscordBot.Models
{
    public class GuildSettings
    {
        public string Name { get; set; }
        public ulong GuildId { get; set; }
        public string Prefix { get; set; }
        public List<Notify> Notifys { get; set; }
    }
}


text:
  * Missing parameter in add_track_to_playlist and remove_track_from_playlist - fixed

## 0.1.0 Aug 03, 2011
  * Advanced API is now fully supported, see docs here: http://official.fm/developers/advanced
  * OAuth sign-in demo can be found here: https://github.com/officialfm/sign-in-with-officialfm-ruby

## 0.0.4 May 20, 2011
  * Removed 'tracks' workaround, as the official API now includes it by default

## 0.0.3 May 18, 2011
  * Added support for voted_playlists and voted_tracks requests

## 0.0.2 April 21, 2011
  * s/Unofficial/Official, this gem is now endorsed by official.fm
  * Playlist IDs no longer escaped
  * Removed dependency on OAuth2, as it's not needed for the Simple API
  * Better README

## 0.0.1 March 23, 2011
  * Initial version
  * Supports tracks, users, playlists
  * Improved playlist support: tracks, running_time


text:
module.exports.userTable = function(mesa, setCreatedAt) {
  return mesa.table('user').allow('created_at').queueBeforeEachInsert(setCreatedAt);
};


text:
declare module 'ember-cli/lib/broccoli/ember-app' {
  import CoreObject from 'core-object';

  export default class EmberApp extends CoreObject {
    options: Record<string, unknown>;
  }
}

declare module 'ember-cli/lib/models/addon' {
  import CoreObject, { ExtendOptions } from 'core-object';
  import UI from 'console-ui';
  import { Application } from 'express';
  import Project from 'ember-cli/lib/models/project';
  import { TaskOptions } from 'ember-cli/lib/models/task';
  import Command from 'ember-cli/lib/models/command';
  import EmberApp from 'ember-cli/lib/broccoli/ember-app';
  import PreprocessRegistry from 'ember-cli-preprocess-registry';

  export default class Addon extends CoreObject {
    name: string;
    root: string;
    app?: EmberApp;
    parent: Addon | Project;
    project: Project;
    addons: Addon[];
    ui: UI;
    options?: Record<string, unknown>;
    pkg: {
      name: string;
      version: string;
      dependencies?: Record<string, string>;
      devDependencies?: Record<string, string>;
    };

    blueprintsPath(): string;
    included(includer: EmberApp | Project): void;
    includedCommands(): Record<string, typeof Command | ExtendOptions<Command>> | void;
    shouldIncludeChildAddon(addon: Addon): boolean;
    isDevelopingAddon(): boolean;
    serverMiddleware(options: { app: Application; options?: TaskOptions }): void | Promise<void>;
    testemMiddleware(app: Application, options?: TaskOptions): void;
    setupPreprocessorRegistry(type: 'self' | 'parent', registry: PreprocessRegistry): void;
    moduleName(): string;
  }
}

declare module 'ember-cli/lib/models/blueprint' {
  class Blueprint {
    taskFor(taskName: string): void;
  }
  export = Blueprint;
}

declare module 'ember-cli/lib/models/task' {
  export interface TaskOptions {
    path?: string;
  }
}

declare module 'ember-cli/lib/models/command' {
  import CoreObject from 'core-object';
  import UI from 'console-ui';
  import Project from 'ember-cli/lib/models/project';

  interface CommandOption {
    name: string;
    type: unknown;
    description?: string;
    required?: boolean;
    default?: unknown;
    aliases?: string[];
  }

  export default class Command extends CoreObject {
    name: string;
    works: 'insideProject' | 'outsideProject' | 'everywhere';
    description: string;
    availableOptions: CommandOption[];
    anonymousOptions: string[];

    ui: UI;
    project: Project;

    run(options: {}): void | Promise<unknown>;
  }
}

declare module 'ember-cli/lib/models/project' {
  import CoreObject from 'core-object';
  import UI from 'console-ui';
  import Addon from 'ember-cli/lib/models/addon';

  export default class Project extends CoreObject {
    ui: UI;
    root: string;
    addons: Addon[];
    pkg: {
      name: string;
      version: string;
      dependencies?: Record<string, string>;
      devDependencies?: Record<string, string>;
    };

    name(): string;
    isEmberCLIAddon(): boolean;
    require(module: string): unknown;
  }
}


text:
namespace Azure.ResourceManager.StreamAnalytics.Models
{
    /// <summary> The refresh parameters for any/all updatable user defined functions present in the job config. </summary>
    public partial class StreamingJobRefreshConfiguration
    {
        /// <summary> Initializes a new instance of StreamingJobRefreshConfiguration. </summary>
        public StreamingJobRefreshConfiguration()
        {
        }

        /// <summary> Initializes a new instance of StreamingJobRefreshConfiguration. </summary>
        /// <param name="pathPattern"> The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more detailed explanation and example. </param>
        /// <param name="dateFormat"> The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead. </param>
        /// <param name="timeFormat"> The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. </param>
        /// <param name="refreshInterval"> The refresh interval. </param>
        /// <param name="refreshType"> This property indicates which data refresh option to use, Blocking or Nonblocking. </param>
        internal StreamingJobRefreshConfiguration(string pathPattern, string dateFormat, string timeFormat, string refreshInterval, DataRefreshType? refreshType)
        {
            PathPattern = pathPattern;
            DateFormat = dateFormat;
            TimeFormat = timeFormat;
            RefreshInterval = refreshInterval;
            RefreshType = refreshType;
        }

        /// <summary> The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more detailed explanation and example. </summary>
        public string PathPattern { get; set; }
        /// <summary> The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead. </summary>
        public string DateFormat { get; set; }
        /// <summary> The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. </summary>
        public string TimeFormat { get; set; }
        /// <summary> The refresh interval. </summary>
        public string RefreshInterval { get; set; }
        /// <summary> This property indicates which data refresh option to use, Blocking or Nonblocking. </summary>
        public DataRefreshType? RefreshType { get; set; }
    }
}


text:
<?php

namespace Aruna\Micropub;

class FilterPostProperties
{

    public function __invoke(
        array $post,
        array $properties
    ) {
        if (!empty($properties)) {
            $post = ["properties" => array_intersect_key($post["properties"], array_flip($properties))];
        }
        return $post;
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
Uses of Interface etm.core.aggregation.EtmFilter (Java Execution Measurement Library)
</TITLE>

<META NAME="date" CONTENT="2009-03-12">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Interface
etm.core.aggregation.EtmFilter

Packages that use EtmFilter

etm.contrib.aggregation.filter

      Contributed filter implementations.

etm.contrib.aggregation.log

      Various logging aggregators which may be used to dump raw measurement
      results using a specific log implementation.

Uses of EtmFilter in etm.contrib.aggregation.filter

Classes in etm.contrib.aggregation.filter that implement EtmFilter

 class
RegexEtmFilter

          The RegexAggregationFilter filters etm point names based
 on a list of JDK 1.4 regex.

Uses of EtmFilter in etm.contrib.aggregation.log

Fields in etm.contrib.aggregation.log declared as EtmFilter

protected  EtmFilter
AbstractLogAggregator.filter

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.


text:
package org.foxlabs.etk.node;

import org.foxlabs.etk.Environment;
import org.foxlabs.etk.EvaluationException;
import org.foxlabs.etk.support.Operator;

public final class OrNode extends BinaryNode implements LogicalNode {

    OrNode(Node operand1, Node operand2) {
        super(operand1, operand2);
    }

    public int getId() {
        return OR_NODE;
    }

    public Class<Boolean> getType() {
        return Boolean.class;
    }

    public Boolean evaluate(Environment context) throws EvaluationException {
        Object obj1 = operand1.evaluate(context);
        try {
            if (Operator.safeValueOf((Boolean) obj1))
                return Boolean.TRUE;
        } catch (Exception e) {
            throw new EvaluationException(this, e);
        }

        Object obj2 = operand2.evaluate(context);
        try {
            if (Operator.safeValueOf((Boolean) obj2))
                return Boolean.TRUE;
        } catch (Exception e) {
            throw new EvaluationException(this, e);
        }

        return Boolean.FALSE;
    }

    public <T extends Throwable> void accept(NodeVisitor<T> visitor) throws T {
        visitor.visit(this);
    }

}


text:
local lfs = require"lfs"
return require"path.lfs.impl.fs"(lfs)


text:
package org.cleartk.corpus.genia.pos;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

import java.io.IOException;

import org.apache.uima.collection.CollectionReaderDescription;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.JCasIterable;
import org.apache.uima.fit.pipeline.JCasIterator;
import org.apache.uima.fit.util.JCasUtil;
import org.apache.uima.jcas.JCas;
import org.apache.uima.resource.ResourceInitializationException;
import org.cleartk.test.util.DefaultTestBase;
import org.cleartk.token.type.Sentence;
import org.cleartk.token.type.Token;
import org.cleartk.util.ViewUriUtil;
import org.jdom2.JDOMException;
import org.junit.Test;

/**
 *

 * Copyright (c) 2007-2008, Regents of the University of Colorado

 * All rights reserved.
 *
 *

 */

public class GeniaPosGoldReaderTest extends DefaultTestBase {

  @Test
  public void testReader() throws Exception {
    CollectionReaderDescription desc = CollectionReaderFactory.createReaderDescription(
        GeniaPosGoldReader.class,
        GeniaPosGoldReader.PARAM_GENIA_CORPUS_FILE,
        "src/test/resources/org/cleartk/corpus/genia/pos/GENIAcorpus3.02.articleA.pos.xml",
        GeniaPosGoldReader.PARAM_LOAD_TOKENS,
        true,
        GeniaPosGoldReader.PARAM_LOAD_SENTENCES,
        true,
        GeniaPosGoldReader.PARAM_LOAD_POS_TAGS,
        true);

    JCas jcas = new JCasIterable(desc).iterator().next();

    // ensure that file exists
    ViewUriUtil.getURI(jcas).toURL().openStream().close();

    Token token = JCasUtil.selectByIndex(jcas, Token.class, 0);
    assertEquals("IL-2", token.getCoveredText());
    assertEquals("NN", token.getPos());

    Sentence sentence = JCasUtil.selectByIndex(jcas, Sentence.class, 0);
    assertEquals(
        "IL-2 gene expression and NF-kappa B activation through CD28 requires reactive oxygen production by 5-lipoxygenase.",
        sentence.getCoveredText());

    token = JCasUtil.selectByIndex(jcas, Token.class, 9);
    assertEquals("requires", token.getCoveredText());
    assertEquals("VBZ", token.getPos());

    desc = CollectionReaderFactory.createReaderDescription(
        GeniaPosGoldReader.class,
        GeniaPosGoldReader.PARAM_GENIA_CORPUS_FILE,
        "src/test/resources/org/cleartk/corpus/genia/pos/GENIAcorpus3.02.articleA.pos.xml",
        GeniaPosGoldReader.PARAM_LOAD_TOKENS,
        false,
        GeniaPosGoldReader.PARAM_LOAD_SENTENCES,
        false,
        GeniaPosGoldReader.PARAM_LOAD_POS_TAGS,
        false);

    jcas = new JCasIterable(desc).iterator().next();

    // ensure that file exists
    ViewUriUtil.getURI(jcas).toURL().openStream().close();

    token = JCasUtil.selectByIndex(jcas, Token.class, 0);
    assertNull(token);

    sentence = JCasUtil.selectByIndex(jcas, Sentence.class, 0);
    assertNull(null);

    assertTrue(jcas.getDocumentText().startsWith(
        "IL-2 gene expression and NF-kappa B activation through CD28 requires reactive oxygen production by 5-lipoxygenase."));

    IOException ioe = null;
    try {
      CollectionReaderFactory.createReader(
          GeniaPosGoldReader.class,
          GeniaPosGoldReader.PARAM_GENIA_CORPUS_FILE,
          "src/test/resources/org/cleartk/corpus/genia/pos/GENIAcorpus3.02.articleA.pos.xml",
          GeniaPosGoldReader.PARAM_LOAD_TOKENS,
          false,
          GeniaPosGoldReader.PARAM_LOAD_SENTENCES,
          false,
          GeniaPosGoldReader.PARAM_LOAD_POS_TAGS,
          false,
          GeniaPosGoldReader.PARAM_ARTICLE_IDS_LIST_FILE,
          "asdf");
    } catch (ResourceInitializationException rie) {
      ioe = (IOException) rie.getCause();
    }
    assertNotNull(ioe);

    JDOMException jde = null;
    try {
      CollectionReaderFactory.createReader(
          GeniaPosGoldReader.class,
          GeniaPosGoldReader.PARAM_GENIA_CORPUS_FILE,
          "src/test/resources/org/cleartk/corpus/genia/pos/article_ids.txt");
    } catch (ResourceInitializationException rie) {
      jde = (JDOMException) rie.getCause();
    }
    assertNotNull(jde);

    desc = CollectionReaderFactory.createReaderDescription(
        GeniaPosGoldReader.class,
        GeniaPosGoldReader.PARAM_GENIA_CORPUS_FILE,
        "src/test/resources/org/cleartk/corpus/genia/pos/GENIAcorpus3.02.articleA.pos.xml",
        GeniaPosGoldReader.PARAM_LOAD_TOKENS,
        false,
        GeniaPosGoldReader.PARAM_LOAD_SENTENCES,
        false,
        GeniaPosGoldReader.PARAM_LOAD_POS_TAGS,
        false,
        GeniaPosGoldReader.PARAM_ARTICLE_IDS_LIST_FILE,
        "src/test/resources/org/cleartk/corpus/genia/pos/article_ids.txt");
    JCasIterator iter = new JCasIterable(desc).iterator();
    jcas = iter.next();
    assertFalse(iter.hasNext());
  }

}


text:
namespace BackgroundJobAndNotificationsDemo.Migrations
{
    using System;
    using System.Data.Entity.Migrations;

    public partial class Upgrade_To_AbpZero_0_8_0_1 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.AbpNotifications", "ExcludedUserIds", c => c.String());
            AddColumn("dbo.AbpNotifications", "TenantIds", c => c.String());
            AddColumn("dbo.AbpNotificationSubscriptions", "TenantId", c => c.Int());
            CreateIndex("dbo.AbpUserNotifications", new[] { "UserId", "State", "CreationTime" });
        }

        public override void Down()
        {
            DropIndex("dbo.AbpUserNotifications", new[] { "UserId", "State", "CreationTime" });
            DropColumn("dbo.AbpNotificationSubscriptions", "TenantId");
            DropColumn("dbo.AbpNotifications", "TenantIds");
            DropColumn("dbo.AbpNotifications", "ExcludedUserIds");
        }
    }
}