text:
import {appData} from './AppData';
import UserData from './userData';

let CATALOG = 'catalog';

export default class Catalog {
    constructor() {
        appData.setData([]);
    }

    get() {
        return appData.getData(CATALOG);
    }

    set(value) {
        return appData.setData(CATALOG, value);
    }

    getUpdateTime() {
        return appData.getUpdateTime(CATALOG);
    }

    /* will use : https://facebook.github.io/react-native/docs/network.html */
    getAllUserLists() {
        const username = UserData.getAppUsername();
        return fetch('http://192.168.1.12:8000/lists/?username=' + username, {
            method: 'GET',
            headers: {
                'Accept': 'application/json',
                'Content-Type': 'application/json',
            }
        })
            .then((res) => {
                return res.json();
            })
            .catch((error) => {
                console.log('Error: ', error)
                return error;
            });
    }

    addListToCatalog(list) {
        var cat = this.get();
        cat = cat.push(list);
        this.set(cat);

        console.log('storing data', list.title);
        var data = {title: list.title, text: 'bbbb'};

        fetch('http://localhost:8000/lists/', {
            method: 'POST',
            headers: {
                'Accept': 'application/json',
                'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
                //'Accept': 'application/json, application/xml, text/plain, text/html, *.*',
                //'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
            },
            body: JSON.stringify(data)
        })
        .then((res) => {
            console.log('Stored data: ', data)
            console.log('Stored data, res ', res)
        })
        .catch((error) => {
                console.log('Error: ', error)
            });

    }
}


text:
'use strict';

require.config({
  baseUrl: "/Scripts/app",

  paths: {

    jquery: "/Scripts/lib/jquery-2.1.1.min",
    bootstrap: '/Scripts/lib/bootstrap.min',

    wysihtml5: '/Scripts/lib/wysihtml5/wysihtml5-0.3.0.min',

    breeze: '/Scripts/lib/breeze.min',

    angular: '/Scripts/lib/angular.min',
    angularRoute: '/Scripts/lib/angular-route.min',
    angularMocks: '/Scripts/lib/angular-mocks',
    angularUI: '/Scripts/lib/angular-ui/ui-bootstrap-tpls',
    breezeAngular: '/Scripts/lib/breeze.angular',

  },
  shim: {
    jquery: {
      exports: 'jquery'
    },
    bootstrap: {
      deps: ["jquery"],
      exports: "$.fn.popover"
    },
    breeze: {
      exports: 'breeze'
    },
    /* Angular */
    angular: {
      deps: ['jquery'],
      'exports': 'angular'
    },
    angularRoute: ['angular'],
    angularMocks: {
      deps: ['angular'],
      'exports': 'angular.mock'
    },
    angularUI: ['angular', 'bootstrap'],
    breezeAngular: ['angular', 'breeze'],
  },
  priority: [
    "angular"
  ]
});

//http://code.angularjs.org/1.2.1/docs/guide/bootstrap#overview_deferred-bootstrap
window.name = "NG_DEFER_BOOTSTRAP!";

require(['angular', 'bootstrap', 'app' ,'routes'], function (angular, bootstrap, app) {
  // defer bootstrap
  var $html = angular.element(document.getElementsByTagName('html')[0]);

  angular.element().ready(function () {
    angular.resumeBootstrap([app['name']]);
  });

  return app.run([ '$rootScope',  function ($rootScope) {

      $rootScope.$on('error:unauthorized', function (event, response) {
      });
      $rootScope.$on('error:forbidden', function (event, response) {
      });
      $rootScope.$on('error:403', function (event, response) {
      });
      $rootScope.$on('success:ok', function (event, response) {
      });
    }
  ]);
});

redpajama_set_name: RedPajamaGithub


text:
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Security;
using System.Security.Permissions;

namespace PdfSharp.Forms
{
#if GDI
  /// <summary>
  /// Contains information about a physical device like a display or a printer.
  /// </summary>
  public struct DeviceInfos
  {
    /// <summary>
    /// Width, in millimeters, of the physical screen or device.
    /// </summary>
    public int HorizontalSize;

    /// <summary>
    /// Height, in millimeters, of the physical screen or device.
    /// </summary>
    public int VerticalSize;

    /// <summary>
    /// Width, in pixels, of the screen or device.
    /// </summary>
    public int HorizontalResolution;

    /// <summary>
    /// Height, in pixels, of the screen or device.
    /// </summary>
    public int VerticalResolution;

    /// <summary>
    /// Number of pixels per logical inch along the screen or device width.
    /// </summary>
    public int LogicalDpiX;

    /// <summary>
    /// Number of pixels per logical inch along the screen or device height.
    /// </summary>
    public int LogicalDpiY;

    /// <summary>
    /// Number of pixels per physical inch along the screen or device width.
    /// </summary>
    public float PhysicalDpiX;

    /// <summary>
    /// Number of pixels per physical inch along the screen or device height.
    /// </summary>
    public float PhysicalDpiY;

    /// <summary>
    /// The ratio of LogicalDpiX and PhysicalDpiX.
    /// </summary>
    public float ScaleX;

    /// <summary>
    /// The ratio of LogicalDpiY and PhysicalDpiY.
    /// </summary>
    public float ScaleY;

    /// <summary>
    /// Gets a DeviceInfo for the specifed device context.
    /// </summary>
    [SuppressUnmanagedCodeSecurity]
    public static DeviceInfos GetInfos(IntPtr hdc)
    {
      DeviceInfos devInfo;

      devInfo.HorizontalSize = GetDeviceCaps(hdc, HORZSIZE);
      devInfo.VerticalSize = GetDeviceCaps(hdc, VERTSIZE);
      devInfo.HorizontalResolution = GetDeviceCaps(hdc, HORZRES);
      devInfo.VerticalResolution = GetDeviceCaps(hdc, VERTRES);
      devInfo.LogicalDpiX = GetDeviceCaps(hdc, LOGPIXELSX);
      devInfo.LogicalDpiY = GetDeviceCaps(hdc, LOGPIXELSY);
      devInfo.PhysicalDpiX = devInfo.HorizontalResolution * 25.4f / devInfo.HorizontalSize;
      devInfo.PhysicalDpiY = devInfo.VerticalResolution * 25.4f / devInfo.VerticalSize;
      devInfo.ScaleX = devInfo.LogicalDpiX / devInfo.PhysicalDpiX;
      devInfo.ScaleY = devInfo.LogicalDpiY / devInfo.PhysicalDpiY;

      return devInfo;
    }

    [DllImport("gdi32.dll")]
    static extern int GetDeviceCaps(IntPtr hdc, int capability);
    const int HORZSIZE = 4;
    const int VERTSIZE = 6;
    const int HORZRES = 8;
    const int VERTRES = 10;
    const int LOGPIXELSX = 88;
    const int LOGPIXELSY = 90;
  }
#endif
}


text:
# Automated Event Tracking (browser-only)

Automatically record pageviews, clicks, form submissions and element_views, with a robust data model.

### Installation

Install this package from NPM *Recommended*

```ssh
npm install keen-tracking --save
```

Or load it from public CDN

```html
<script crossorigin src="https://cdn.jsdelivr.net/npm/keen-tracking@5"></script>
<script>
KeenTracking.ready(function(){
  const client = new KeenTracking({
    projectId: 'YOUR_PROJECT_ID',
    writeKey: 'YOUR_WRITE_KEY'
  });
  client.initAutoTracking();
});
</script>
```

### Configuration options

The following configuration options are available to let you specify which types of events to track (defaults shown):

```javascript
const client = new KeenTracking({
  projectId: 'YOUR_PROJECT_ID',
  writeKey: 'YOUR_WRITE_KEY'
});

client.initAutoTracking({

  // record on page load
  recordPageViews: true,
  // OR
  // record on leaving the page - this ways you will get the time spent on this page
  recordPageViewsOnExit: true,

  recordScrollState: true, // see how far people scrolled

  recordClicks: true, // record clicks on A links
  recordClicksPositionPointer: false, // record pointer position for clicks

  // FORMS
  recordFormSubmits: true,
  ignoreDisabledFormFields: false,
  ignoreFormFieldTypes: ['password'],

  // GDPR related options
  collectIpAddress: true, // default
  collectUuid: true, // default

  // share UUID cookies across subdomains
  shareUuidAcrossDomains: false, // default

  // catchError: myCustomErrorHandler

  //Track HTML elements views
  recordElementViews: true // see if an element was seen

});
```

### Request types

We make requests using the [BeaconAPI](https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API).
It's the fastest non-invasive way to track user behaviour.
Due its nature, BeaconAPI runs requests in the background, with no possibility
to handle errors. If you want to handle errors, you need to use the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).

```javascript
const client = new KeenTracking({
  projectId: 'YOUR_PROJECT_ID',
  writeKey: 'YOUR_WRITE_KEY',
  requestType: 'beaconAPI' // beaconAPI, fetch
});
```

### Error Handling

[Handling connection problems](https://github.com/keen/keen-tracking.js#handling-connection-problems)

```javascript
const client = new KeenTracking({
  projectId: 'YOUR_PROJECT_ID',
  writeKey: 'YOUR_WRITE_KEY',
  requestType: 'fetch'
});

function myCustomErrorHandler(someError){
  console.error('Error reported:', someError);
}

client.initAutoTracking({
  recordPageViews: true,
  catchError: myCustomErrorHandler
});
```

### Upgrading from the Web Auto Collector

The interface and behaviors of this feature are a little different, but the data models produced are backward compatible. One notable change is that `clicks` are only recorded for `<a>` tags now. Previously any click any element was recorded. If you would like to specify listeners for other DOM elements, check out the [DOM listener docs](./listeners.md) or the [`.initAutoTracking()` method source](../lib/browser-auto-tracking.js) for insight into how to set up your own listeners. Any additional events recorded from the `client` instance below will use the same robust data models once auto-tracking is enabled.

Scroll state tracking powered by the `getScrollState()` helper and a `window` scroll listener. This scroll listener can be removed by calling `KeenTracking.utils.listener('window').off('scroll');`.

### Customization

Add additional properties to any or all events with [`extendEvent` or `extendEvents` methods](./extend-events.md):

```javascript
const client = new KeenTracking({
  projectId: 'YOUR_PROJECT_ID',
  writeKey: 'YOUR_WRITE_KEY'
});

client.extendEvents(function(){
  return {
    app: {
      version: '4.1.5'
    },
    user: {
      display_name: 'Johnny 5',
      email_address: 'example@domain.com'
    }
    /* Custom properties for all events */
  };
});

client.extendEvent('pageviews', function(){
  return {
    page: {
      author_id: 'f123109vb1231200312bb',
      author_name: 'John Doe',
      last_updated: '2017-09-13T12:00:00-07:00'
    }
    /* Custom properties for pageviews event */
  };
});

client.initAutoTracking();
```

### Track views of the HTML elements

All HTML elements with a class `.track-element-view` will be observed by the browser. If any of them appears on the screen, an event will be recorded. The event will contain specific attributes from the visible element and nest them in the `element` property.
Note: This feature works only on the [browsers that support Intersection Observer](https://caniuse.com/#search=IntersectionObserver).

```javascript
{

  "element": {
      "title": "Track element view",
      "text": null,
      "class": "track-element-view",
      "event_key": null,
      "node_name": "DIV",
      "href": null,
      "x_position": 8,
      "y_position": 830,
      "selector": "body > div:eq(1)",
      "id": null
    }

}
```

**Want to record custom events?** Any additional events recorded from the `client` instance below will use the same robust data models once auto-tracking is enabled.

### Block bots and improve device recognition

Install [mobile-detect.js](https://github.com/hgoebl/mobile-detect.js) to identify basic device types and block noisy bots and crawlers.

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.2/mobile-detect.min.js"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/keen-tracking@5"></script>
<script>
Keen.ready(function(){
  const md = new MobileDetect(window.navigator.userAgent);
  // for Node.js example go https://github.com/hgoebl/mobile-detect.js#nodejs--express
  if (md.is('bot')) {
    return false;
  }

  const client = new Keen({
    projectId: 'YOUR_PROJECT_ID',
    writeKey: 'YOUR_WRITE_KEY'
  });

  client.extendEvents(function(){
    return {
      tech: {
        device_type: md.tablet() ? 'tablet' : md.mobile() ? 'mobile' : 'desktop'
      }
      /* Custom properties for all events */
    };
  });

  client.initAutoTracking();
});
</script>
```


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<title></title>

Rarefy to even depth

Description

Resamples a phyloseq OTU table such that all samples have the same sequencing depth, and saves the resulting object as an Rda file.

Parameters

None

Details

The tool requires the following input files:

A phyloseq object in Rda format

Data groupings are automatically fetched from a phenodata file linked to a Mothur shared file (file.opti_mcc.shared)

The tool employs the following R functions and packages:

rarefy_even_depth() (phyloseq)

Output

The tool produces the following output files:

Phyloseq object with resampled OTU table (ps_rarefied.Rda)

Text summary of phyloseq object following rarefying to even depth (ps_rarefied.txt)

References

Phyloseq resources and GitHub repository


text:
<?xml version="1.0" encoding="utf-8"?>
<parameters>
  <setParameter name="IIS Web Application Name" value="Default Web Site/Orchard.TaskLease_deploy" />
</parameters>


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

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Test results - Class com.salesforce.androidsdk.smartsync.manager.SyncManagerTest</title>
<link href="css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="css/style.css" rel="stylesheet" type="text/css"/>

Class com.salesforce.androidsdk.smartsync.manager.SyncManagerTest

all >
com.salesforce.androidsdk.smartsync.manager > SyncManagerTest

23

tests

0

failures

2m16.45s

duration

100%

successful

Tests

Tests

Test
test(AVD) - 5.0.2

testAddFilterForResync
passed (6.282s)

testCustomSyncUpWithLocallyCreatedRecords
passed (6.047s)

testCustomSyncUpWithLocallyDeletedRecords
passed (5.829s)

testCustomSyncUpWithLocallyUpdatedRecords
passed (5.522s)

testGetSyncStatusForInvalidSyncId
passed (4.940s)

testHardFailingCustomSyncUpWithLocallyCreatedRecords
passed (4.932s)

testHardFailingCustomSyncUpWithLocallyDeletedRecords
passed (5.013s)

testHardFailingCustomSyncUpWithLocallyUpdatedRecords
passed (5.133s)

testReSync
passed (7.321s)

testReSyncRunningSync
passed (7.470s)

testSoftFailingCustomSyncUpWithLocallyCreatedRecords
passed (5.130s)

testSoftFailingCustomSyncUpWithLocallyDeletedRecords
passed (5.017s)

testSoftFailingCustomSyncUpWithLocallyUpdatedRecords
passed (5.164s)

testSyncDown
passed (6.009s)

testSyncDownWithoutOverwrite
passed (5.405s)

testSyncUpWithLocallyCreatedRecords
passed (6.145s)

testSyncUpWithLocallyDeletedRecords
passed (5.805s)

testSyncUpWithLocallyDeletedRecordsWithoutOverwrite
passed (7.229s)

testSyncUpWithLocallyDeletedRemotelyDeletedRecords
passed (6.390s)

testSyncUpWithLocallyUpdatedRecords
passed (6.103s)

testSyncUpWithLocallyUpdatedRecordsWithoutOverwrite
passed (7.026s)

testSyncUpWithLocallyUpdatedRemotelyDeletedRecords
passed (6.148s)

testSyncUpWithLocallyUpdatedRemotelyDeletedRecordsWithoutOverwrite
passed (6.390s)

Generated by
Gradle 2.2.1 at Aug 11, 2015 3:58:09 PM


text:
package org.mifos.application.branchreport.persistence;

import static org.easymock.EasyMock.expect;
import static org.easymock.classextension.EasyMock.createMock;
import static org.easymock.classextension.EasyMock.replay;
import static org.easymock.classextension.EasyMock.verify;
import static org.mifos.framework.util.helpers.MoneyFixture.createMoney;

import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import junit.framework.Assert;

import org.apache.commons.collections.Predicate;
import org.apache.commons.collections.PredicateUtils;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.mifos.application.branchreport.BranchReportBO;
import org.mifos.application.branchreport.BranchReportBOFixture;
import org.mifos.application.branchreport.BranchReportClientSummaryBO;
import org.mifos.application.branchreport.BranchReportLoanArrearsAgingBO;
import org.mifos.application.branchreport.BranchReportStaffSummaryBO;
import org.mifos.application.branchreport.BranchReportStaffingLevelSummaryBO;
import org.mifos.application.branchreport.LoanArrearsAgingPeriod;
import org.mifos.application.personnel.business.service.PersonnelBusinessService;
import org.mifos.application.personnel.util.helpers.PersonnelLevel;
import org.mifos.application.reports.business.service.BranchReportIntegrationTestCase;
import org.mifos.framework.exceptions.ApplicationException;
import org.mifos.framework.exceptions.PersistenceException;
import org.mifos.framework.exceptions.SystemException;
import org.mifos.framework.hibernate.helper.StaticHibernateUtil;
import org.mifos.framework.util.CollectionUtils;
import org.mifos.framework.util.helpers.DateUtils;

public class BranchReportPersistenceIntegrationTest extends BranchReportIntegrationTestCase {

    public BranchReportPersistenceIntegrationTest() throws SystemException, ApplicationException {
        super();
    }

    private static final Short LOAN_OFFICER_ID_SHORT = Short.valueOf("3");
    private static final String TOTAL_STAFF_ROLENAME_STR = "Total Staff";
    private static final Short BRANCH_ID = Short.valueOf("1");
    private Session session;
    private Transaction transaction;
    private Date runDate;
    private BranchReportPersistence branchReportPersistence;
    private BranchReportBO branchReportWithLoanArrears;
    private BranchReportBO branchReportWithClientSummaries;
    private BranchReportBO branchReportWithStaffSummary;

    public void testGetBranchReportBatchForDateAndBranch() throws Exception {
        BranchReportBO branchReportBO = new BranchReportBO(BRANCH_ID, runDate);
        session.save(branchReportBO);
        List<BranchReportBO> retrievedBranchReports = branchReportPersistence.getBranchReport(BRANCH_ID, runDate);
        assertListSizeAndTrueCondition(1, retrievedBranchReports, PredicateUtils.equalPredicate(branchReportBO));
    }

    public void testRetrievesEmptyListIfNoBranchReportBatchForDateAndBranch() throws Exception {
        List<BranchReportBO> retrievedBranchReports = branchReportPersistence.getBranchReport(BRANCH_ID, runDate);
        assertListSizeAndTrueCondition(0, retrievedBranchReports, PredicateUtils.truePredicate());
    }

    public void testRetrievesEmptyListIfNoBranchReportsForGivenDate() throws Exception {
        List<BranchReportBO> retrievedBranchReports = branchReportPersistence.getBranchReport(runDate);
        assertListSizeAndTrueCondition(0, retrievedBranchReports, PredicateUtils.truePredicate());
    }

    public void testRetrievesBranchReportsForGivenDate() throws Exception {
        BranchReportBO branchReportBO = new BranchReportBO(BRANCH_ID, runDate);
        session.save(branchReportBO);
        List<BranchReportBO> retrievedBranchReports = branchReportPersistence.getBranchReport(runDate);
        assertListSizeAndTrueCondition(1, retrievedBranchReports, PredicateUtils.equalPredicate(branchReportBO));
    }

    public void testSaveBranchReportWithLoanArrearsAndRetrieveUsingBranchReport() throws Exception {
        session.save(branchReportWithLoanArrears);
        List<BranchReportBO> retrievedBranchReports = branchReportPersistence.getBranchReport(BRANCH_ID, runDate);
        assertListSizeAndTrueCondition(1, retrievedBranchReports, PredicateUtils
                .equalPredicate(branchReportWithLoanArrears));
    }

    public void testSaveBranchReportWithClientSummaryAndRetrieveUsingBranchReport() throws Exception {
        session.save(branchReportWithClientSummaries);
        List<BranchReportBO> retrievedBranchReports = branchReportPersistence.getBranchReport(BRANCH_ID, runDate);
        assertListSizeAndTrueCondition(1, retrievedBranchReports, PredicateUtils
                .equalPredicate(branchReportWithClientSummaries));
    }

    public void testReturnsEmptyListIfNoBranchReportClientSummaryBatchForDateAndBranch() throws Exception {
        retrieveAndAssertBranchReportClientSummaryForBranchAndDate(0, PredicateUtils.truePredicate());
    }

    public void testGetLoanArrearsReportReturnsEmptyListIfReportNotFound() throws Exception {
        retrieveAndAssertLoanArrearsReportForBranchAndDate(0, PredicateUtils.truePredicate());
    }

    public void testGetLoanArrearsReportForDateAndBranch() throws Exception {
        session.save(branchReportWithLoanArrears);
        retrieveAndAssertLoanArrearsReportForBranchAndDate(1, PredicateUtils.equalPredicate(CollectionUtils
                .first(branchReportWithLoanArrears.getLoanArrearsAging())));
    }

    public void testRetrieveStaffSummaryForDateAndBranchReturnsEmptyListIfNoDataPresent() throws Exception {
        retrieveAndAssertBranchReportStaffSummaryForBranchAndDate(0, PredicateUtils.truePredicate());
    }

    public void testRetrieveStaffSummaryForDateAndBranch() throws Exception {
        session.save(branchReportWithStaffSummary);
        retrieveAndAssertBranchReportStaffSummaryForBranchAndDate(1, PredicateUtils.equalPredicate(CollectionUtils
                .first(branchReportWithStaffSummary.getStaffSummaries())));
    }

    // TODO TW Add test data and have better test
    public void testExtractStaffSummaryActiveBorrowersCountReturnsEmptyListIfNoDataPresent() throws Exception {
        List<BranchReportStaffSummaryBO> staffSummary = branchReportPersistence.extractBranchReportStaffSummary(Short
                .valueOf("2"), Integer.valueOf(1), DEFAULT_CURRENCY);
       Assert.assertTrue(staffSummary.isEmpty());
    }

    public void testPopulateCustomersFormedByLoanOfficerReturnsIfSummaryListIsEmpty() throws Exception {
        HashMap staffSummariesMock = createMock(HashMap.class);
        expect(staffSummariesMock.isEmpty()).andReturn(true);
        replay(staffSummariesMock);
        branchReportPersistence.populateTotalClientsEnrolledByPersonnel(staffSummariesMock);
        verify(staffSummariesMock);
    }

    public void testPopulateCustomersFormedByLoanOfficerReadsSummaries() throws Exception {
        HashSet<Short> personnelIds = new HashSet<Short>();
        personnelIds.add(LOAN_OFFICER_ID_SHORT);
        HashMap staffSummariesMock = createMock(HashMap.class);
        expect(staffSummariesMock.isEmpty()).andReturn(false);
        expect(staffSummariesMock.keySet()).andReturn(personnelIds);
        replay(staffSummariesMock);
        branchReportPersistence.populateTotalClientsEnrolledByPersonnel(staffSummariesMock);
        verify(staffSummariesMock);
    }

    private Map<Short, BranchReportStaffSummaryBO> createStaffSummariesMap() {
        Set<BranchReportStaffSummaryBO> staffSummaries = branchReportWithStaffSummary.getStaffSummaries();
        HashMap<Short, BranchReportStaffSummaryBO> map = new HashMap<Short, BranchReportStaffSummaryBO>();
        for (BranchReportStaffSummaryBO summaryBO : staffSummaries) {
            map.put(summaryBO.getPersonnelId(), summaryBO);
        }
        return map;
    }

    public void testPopulateCustomersFormedBySetsTotalClientsEnrolledBy() throws Exception {
        Map<Short, BranchReportStaffSummaryBO> staffSummaries = createStaffSummariesMap();
        branchReportPersistence.populateTotalClientsEnrolledByPersonnel(staffSummaries);
        Assert.assertNull(org.apache.commons.collections.CollectionUtils.find(staffSummaries.values(), new Predicate() {
            public boolean evaluate(Object object) {
                return !Integer.valueOf(0).equals(((BranchReportStaffSummaryBO) object).getTotalClientsEnrolled());
            }
        }));
    }

    public void testPopulateCustomersFormedThisMonthSetsCustomersEnrolledThisMonth() throws Exception {
        HashMap staffSummariesMock = createMock(HashMap.class);
        expect(staffSummariesMock.isEmpty()).andReturn(true);
        replay(staffSummariesMock);
        branchReportPersistence.populateClientsEnrolledByPersonnelThisMonth(staffSummariesMock);
        verify(staffSummariesMock);
    }

    public void testPopulateCustomersEnrolledByLoanOfficerThisMonthReadsSummaries() throws Exception {
        HashSet<Short> personnelIds = new HashSet<Short>();
        personnelIds.add(LOAN_OFFICER_ID_SHORT);
        HashMap staffSummariesMock = createMock(HashMap.class);
        expect(staffSummariesMock.isEmpty()).andReturn(false);
        expect(staffSummariesMock.keySet()).andReturn(personnelIds);
        replay(staffSummariesMock);
        branchReportPersistence.populateClientsEnrolledByPersonnelThisMonth(staffSummariesMock);
        verify(staffSummariesMock);
    }

    public void testPopulateLoanArrearsAmountReturnsIfSummaryListisEmpty() throws Exception {
        HashMap staffSummariesMock = createMock(HashMap.class);
        expect(staffSummariesMock.isEmpty()).andReturn(true);
        replay(staffSummariesMock);
        branchReportPersistence.populateLoanArrearsAmountForPersonnel(staffSummariesMock, DEFAULT_CURRENCY);
        verify(staffSummariesMock);
    }

    public void testPopulateLoanArrearsAmountReadsSummaries() throws Exception {
        HashSet<Short> personnelIds = new HashSet<Short>();
        personnelIds.add(LOAN_OFFICER_ID_SHORT);
        HashMap staffSummariesMock = createMock(HashMap.class);
        expect(staffSummariesMock.isEmpty()).andReturn(false);
        expect(staffSummariesMock.keySet()).andReturn(personnelIds);
        replay(staffSummariesMock);
        branchReportPersistence.populateLoanArrearsAmountForPersonnel(staffSummariesMock, DEFAULT_CURRENCY);
        verify(staffSummariesMock);
    }

    public void testPopulateLoanArrearsAmountSetsLoanArrearsAmount() throws Exception {
        Map<Short, BranchReportStaffSummaryBO> staffSummaries = createStaffSummariesMap();
        branchReportPersistence.populateLoanArrearsAmountForPersonnel(staffSummaries, DEFAULT_CURRENCY);
        Assert.assertNull(org.apache.commons.collections.CollectionUtils.find(staffSummaries.values(), new Predicate() {
            public boolean evaluate(Object object) {
                return !BigDecimal.ZERO.setScale(DEFAULT_CURRENCY.getDefaultDigitsAfterDecimal()).equals(
                        ((BranchReportStaffSummaryBO) object).getLoanArrearsAmount());
            }
        }));
    }

    public void testRetrieveLoanArrearsAging() throws Exception {
        BranchReportLoanArrearsAgingBO loanArrears = branchReportPersistence.extractLoanArrearsAgingInfoInPeriod(
                LoanArrearsAgingPeriod.FIVE_TO_EIGHT_WEEK, Short.valueOf("2"), DEFAULT_CURRENCY);
        Assert.assertNotNull(loanArrears);
    }

    public void testSaveLoanArrearsBOWithLargeValueForAmountOutstanding() throws Exception {
        BranchReportLoanArrearsAgingBO branchReportLoanArrearsAgingBO = new BranchReportLoanArrearsAgingBO(
                LoanArrearsAgingPeriod.FIVE_TO_EIGHT_WEEK, Integer.valueOf(1), Integer.valueOf(2),
                createMoney(15724323.10), createMoney(1283439.70), createMoney(459625.70));
        BranchReportBO branchReport = BranchReportBOFixture.createBranchReport(null, Short.valueOf("2"), DateUtils
                .currentDate());
        branchReport.addLoanArrearsAging(branchReportLoanArrearsAgingBO);
        try {
            session.save(branchReport);
            transaction.commit();
            transaction = session.beginTransaction();
            deleteBranchReport(branchReport.getBranchReportId());
        } catch (Exception e) {
            e.printStackTrace(System.out);
            Assert.fail("Should not throw error when saving: " + e);
        }
    }

    public void testExtractingLoanArrears() throws Exception {
        BranchReportLoanArrearsAgingBO result = branchReportPersistence.extractLoanArrearsAgingInfoInPeriod(
                LoanArrearsAgingPeriod.ONE_WEEK, Short.valueOf("2"), DEFAULT_CURRENCY);
        Assert.assertNotNull(result);
    }

    public void testExtractStaffingSummaryLevels() throws Exception {
        List<BranchReportStaffingLevelSummaryBO> staffingLevels = branchReportPersistence
                .extractBranchReportStaffingLevelSummary(LOAN_OFFICER_ID_SHORT);
       Assert.assertEquals(2, staffingLevels.size());
        Assert.assertNull("Should not extract roles with zero personnel count", org.apache.commons.collections.CollectionUtils
                .find(staffingLevels, new Predicate() {
                    public boolean evaluate(Object arg0) {
                        BranchReportStaffingLevelSummaryBO summary = (BranchReportStaffingLevelSummaryBO) arg0;
                        return !TOTAL_STAFF_ROLENAME_STR.equals(summary.getRolename())
                                && Integer.valueOf(0).equals((summary).getPersonnelCount());
                    }
                }));
        for (BranchReportStaffingLevelSummaryBO summaryBO : staffingLevels) {
            if (TOTAL_STAFF_ROLENAME_STR.equals(summaryBO.getRolename())) {
               Assert.assertEquals(Integer.valueOf(2), summaryBO.getPersonnelCount());
            }
        }
    }

    public void testExtractStaffSummaryGetsOnlyLoanOfficers() throws Exception {
        List<BranchReportStaffSummaryBO> staffSummaries = branchReportPersistence.extractBranchReportStaffSummary(
                BRANCH_ID, Integer.valueOf(1), DEFAULT_CURRENCY);
        for (BranchReportStaffSummaryBO summaryBO : staffSummaries) {
            PersonnelLevel retrievedPersonnelLevel = new PersonnelBusinessService().getPersonnel(
                    summaryBO.getPersonnelId()).getLevelEnum();
           Assert.assertEquals(PersonnelLevel.LOAN_OFFICER, retrievedPersonnelLevel);
        }
    }

    private void retrieveAndAssertLoanArrearsReportForBranchAndDate(int resultCount, Predicate mustBeTrue)
            throws PersistenceException {
        List<BranchReportLoanArrearsAgingBO> retrievedLoanArrearsReports = branchReportPersistence
                .getLoanArrearsAgingReport(BRANCH_ID, runDate);
        assertListSizeAndTrueCondition(resultCount, retrievedLoanArrearsReports, mustBeTrue);
    }

    private void retrieveAndAssertBranchReportClientSummaryForBranchAndDate(int resultCount, Predicate predicate)
            throws PersistenceException {
        List<BranchReportClientSummaryBO> retrievedBranchReports = branchReportPersistence
                .getBranchReportClientSummary(BRANCH_ID, runDate);
        assertListSizeAndTrueCondition(resultCount, retrievedBranchReports, predicate);
    }

    private void retrieveAndAssertBranchReportStaffSummaryForBranchAndDate(int resultCount, Predicate predicate)
            throws PersistenceException {
        List<BranchReportStaffSummaryBO> retrievedBranchReports = branchReportPersistence.getBranchReportStaffSummary(
                BRANCH_ID, runDate);
        assertListSizeAndTrueCondition(resultCount, retrievedBranchReports, predicate);
    }

    private void deleteBranchReport(Integer reportId) throws PersistenceException {
        branchReportPersistence.delete(branchReportPersistence.getPersistentObject(BranchReportBO.class, reportId));
        transaction.commit();
        transaction = session.beginTransaction();
    }

    private void assertListSizeAndTrueCondition(int resultCount, List retrievedReports, Predicate mustBeTrue) {
       Assert.assertEquals(resultCount, retrievedReports.size());
       Assert.assertTrue(mustBeTrue.evaluate(CollectionUtils.first(retrievedReports)));
    }

    @Override
    protected void tearDown() throws Exception {
        transaction.rollback();
        super.tearDown();
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        branchReportPersistence = new BranchReportPersistence();
        runDate = DateUtils.getDate(2008, Calendar.JANUARY, 1);
        branchReportWithLoanArrears = new BranchReportBO(BRANCH_ID, runDate);
        branchReportWithLoanArrears.addLoanArrearsAging(new BranchReportLoanArrearsAgingBO(
                LoanArrearsAgingPeriod.ONE_WEEK));

        branchReportWithClientSummaries = new BranchReportBO(BRANCH_ID, runDate);
        branchReportWithClientSummaries.addClientSummary(BranchReportBOFixture
                .createBranchReportClientSummaryBO(BranchReportClientSummaryBO.CENTER_COUNT));

        branchReportWithStaffSummary = new BranchReportBO(BRANCH_ID, runDate);
        branchReportWithStaffSummary.addStaffSummary(BranchReportBOFixture.createBranchReportStaffSummaryBO());

        session = StaticHibernateUtil.getSessionTL();
        transaction = session.beginTransaction();
    }
}


text:
@class DVTDocumentLocation, DVTFileDataType, DVTFindResult, IDEBatchFindCandidateFile, IDEBatchFindResultGroup, IDEFileReference, IDEIndexSymbol, NSDate, NSImage, NSString;

@interface IDEBatchFindResult : NSObject <IDEKeyDrivenNavigableItemRepresentedObject>
{
    DVTFindResult *_findResult;
    struct _NSRange _wholeWordRange;
    BOOL _wholeWordCalculated;
    IDEIndexSymbol *_symbol;
    IDEBatchFindCandidateFile *_foundInFile;
    NSDate *_resultTime;
    NSString *_displayTitle;
    struct _NSRange _matchRange;
    unsigned long long _matchOccurance;
    BOOL _shouldShowAsLocked;
    BOOL _shouldIncludeInReplacement;
    BOOL _doesParentsBackingFileExist;
    IDEBatchFindResultGroup *_parentFindResultGroup;
}

+ (id)keyPathsForValuesAffectingDisplayImage;
+ (id)findResultsSortedByFileByDocumentLocation:(id)arg1;
@property BOOL doesParentsBackingFileExist; // @synthesize doesParentsBackingFileExist=_doesParentsBackingFileExist;
@property(nonatomic) __weak IDEBatchFindResultGroup *parentFindResultGroup; // @synthesize parentFindResultGroup=_parentFindResultGroup;
@property(nonatomic) BOOL shouldIncludeInReplacement; // @synthesize shouldIncludeInReplacement=_shouldIncludeInReplacement;
@property BOOL shouldShowAsLocked; // @synthesize shouldShowAsLocked=_shouldShowAsLocked;
@property(retain) IDEIndexSymbol *symbol; // @synthesize symbol=_symbol;
@property(readonly) IDEBatchFindCandidateFile *foundInFile; // @synthesize foundInFile=_foundInFile;
@property(readonly) DVTFindResult *findResult; // @synthesize findResult=_findResult;
@property(readonly) NSString *formattedStringRepresentation;
@property(readonly) NSImage *statusImage;
@property(readonly) NSImage *displayImage;
@property(readonly) NSString *displayTitle;
@property(readonly) struct _NSRange matchRange;
@property(readonly) struct _NSRange symbolRange;
@property(readonly) NSString *wholeWordMatch;
@property(readonly) struct _NSRange wholeWordRange;
- (BOOL)resultValid;
- (void)fileWasSavedDuringReplace;
@property(readonly, getter=isReplaceable) BOOL replacable;
- (BOOL)hasSymbol;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (BOOL)isEqual:(id)arg1;
@property(readonly) unsigned long long hash;
- (id)initWithResult:(id)arg1 foundInFile:(id)arg2;
- (id)ideModelObjectTypeIdentifier;
@property(readonly) DVTFileDataType *navigableItem_documentType;
@property(readonly) DVTDocumentLocation *navigableItem_contentDocumentLocation;
@property(readonly) NSImage *navigableItem_image;
@property(readonly) NSString *navigableItem_name;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) IDEFileReference *navigableItem_fileReference;
@property(readonly) NSString *navigableItem_groupIdentifier;
@property(readonly) BOOL navigableItem_isLeaf;
@property(readonly) BOOL navigableItem_isMajorGroup;
@property(readonly) NSString *navigableItem_toolTip;
@property(readonly) Class superclass;

@end


text:
/**
 * @file ssl.c
 * @brief Implements functions for configuring SSL/TLS
 * @author Matt Bartos and Ivan Mondragon
 * @version TODO
 * @date 2017-06-01
 */

#include <device.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "modem.h"
#include "strlib.h"
#include "extern.h"
#include "ssl.h"

// Certificates
char client_cert[] = CLIENT_CERT;
char private_key[] = PRIVATE_KEY;
char server_cert[] = SERVER_CERT;

// Parameters for SSLSECCFG
uint8 ssid = 1;
uint8 cipher_suite = 0; // Use 0 to allow server to decide
uint8 auth_mode = 1; // 0: No auth, 1: Server, 2: Server/client
uint8 cert_format = 1; //0: DER, 1: PEM

// Parameters for SSLCFG
uint8 cid = 1u;
uint packet_size = 1000u;
uint max_to = 90u;
uint def_to = 100u;
uint tx_to = 50u;
uint8 ssl_ring_mode = 1u;

uint8 modem_ssl_toggle(int enable_ssl) {
    char cmd[20];
    char ssl_state[5] = {'\0'};

    // Send AT read command to determine if SSL is already enabled
    if (at_write_command("AT#SSLEN?\r", "OK", 1000u)) {
        // Extract current ssl state into ssl_state
        strextract(modem_received_buffer, ssl_state, "SSLEN: 1,", "\r\n");

        // If current state matches desired state, do nothing
        if (atoi(ssl_state) != enable_ssl) {
            // Construct AT command
            sprintf(cmd, "AT#SSLEN=1,%u\r", enable_ssl);

            // Enable/disable SSL
            return at_write_command(cmd, "OK", 1000u);
        } else {
            return 1u;
        }
    }

    return 0u;
}

uint8 modem_ssl_sec_data(uint8 ssid, uint8 action, uint8 datatype,
                         char *cert, char *output_str){
    char at_command[100] = {'\0'};
    int certsize;
    // Construct common portion of AT command
    sprintf(at_command, "AT#SSLSECDATA=%u,%u,%u", ssid, action, datatype);
    // Delete mode
    if (action == 0u){
        sprintf(at_command, "%s\r", at_command);
        if (at_write_command(at_command,"OK",1000u)){
            return 1u;
        }
    }
    // Read mode
    else if (action == 2u){
        sprintf(at_command, "%s\r", at_command);
        if (at_write_command(at_command,"OK",1000u)){
            strextract(modem_received_buffer, output_str, "SSLSECDATA: ", "\r\n");
            return 1u;
        }
    }
    // Write mode
    else if (action == 1u){
        // Why is this showing 4?
        //certsize = sizeof(cert);
        certsize = strlen(cert) - 1;
        sprintf(at_command, "%s,%d\r", at_command, certsize);
        if (at_write_command(at_command,">",1000u)){
            uart_string_reset();
		    if(at_write_command(cert,"OK",10000u)){
                return 1u;
            }
        }
    }
    return 0u;
}

uint8 modem_ssl_sec_config(uint8 ssid, uint8 cipher_suite, uint8 auth_mode,
                           uint8 cert_format){
    char at_command[100] = {'\0'};
    // Construct AT command
    sprintf(at_command, "AT#SSLSECCFG=%u,%u,%u,%u\r", ssid, cipher_suite,
            auth_mode, cert_format);
    if (at_write_command(at_command,"OK",1000u)){
            return 1u;
        }
    return 0u;
}

uint8 modem_ssl_config(uint8 ssid, uint8 cid, int packet_size,
                           int max_to, int def_to, int tx_to, uint8 ssl_ring_mode){
    char at_command[100] = {'\0'};
    // Construct AT command
    sprintf(at_command, "AT#SSLCFG=%u,%u,%u,%u,%u,%u,%u\r", ssid, cid,
            packet_size, max_to, def_to, tx_to, ssl_ring_mode);
    if (at_write_command(at_command,"OK",1000u)){
            return 1u;
        }
    return 0u;
}

                        uint8 ssl_init(uint8 edit_ssl_sec_config, uint8 edit_ssl_config){
    int response_code = 0;
    // Enable SSL
    if(modem_ssl_toggle(1u)){
        // Edit ssl security settings (SSLSECCFG) if desired
        if(edit_ssl_sec_config){
            response_code = modem_ssl_sec_config(ssid, cipher_suite,
                                auth_mode, cert_format);
            if (!response_code){
                return 0u;
            }
        }
        // Edit general ssl configuration (SSLCFG) if desired
        if (edit_ssl_config){
            response_code = modem_ssl_config(ssid, cid, packet_size, max_to,
                             def_to, tx_to, ssl_ring_mode);
            if (!response_code){
                return 0u;
            }
        }
        // If authorization enabled, store cert data
        if (auth_mode){
            response_code = 0;
            // Delete existing data
            response_code += modem_ssl_sec_data(ssid, 0, 1, (char*) NULL, (char*) NULL);
            // Write certificate to NVM
            response_code += 2*modem_ssl_sec_data(ssid, 1, 1, server_cert, (char*) NULL);
            if (response_code != 3){
                return 0u;
            }
            if (auth_mode == 2u){
                // Delete existing data
                response_code += 4*modem_ssl_sec_data(ssid, 0, 0, (char*) NULL, (char*) NULL);
                response_code += 8*modem_ssl_sec_data(ssid, 0, 2, (char*) NULL, (char*) NULL);
                // Write certificate to NVM
                response_code += 16*modem_ssl_sec_data(ssid, 1, 0, client_cert, (char*) NULL);
                response_code += 32*modem_ssl_sec_data(ssid, 1, 2, private_key, (char*) NULL);
                if (response_code != 63){
                    return 0u;
                }
            }
        }
        return 1u;
    }
    return 0u;
}

/* [] END OF FILE */


text:
#include "tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.h"

#include <type_traits>

#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_set.h"
#include "absl/container/inlined_vector.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "absl/strings/str_split.h"
#include "tensorflow/compiler/xla/status_macros.h"
#include "tensorflow/core/framework/tensor_shape.pb.h"
#include "tensorflow/core/framework/types.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/platform/types.h"

namespace tensorflow {

Status ParseOutputArrayInfo(absl::string_view array_names,
                            std::vector<string>* outputs) {
  std::vector<string> output_names = absl::StrSplit(array_names, ',');
  return ParseOutputArrayInfo(output_names, outputs);
}

Status ParseOutputArrayInfo(const std::vector<string>& output_names,
                            std::vector<string>* outputs) {
  for (auto& output_name : output_names) {
    if (output_name.empty()) continue;
    outputs->push_back(output_name);
  }
  return Status::OK();
}

Status ParseInputArrayInfo(absl::string_view array_names,
                           absl::string_view data_types,
                           absl::string_view shapes,
                           GraphImportConfig::InputArrays* inputs) {
  std::vector<string> node_names = absl::StrSplit(array_names, ',');
  std::vector<string> node_dtypes = absl::StrSplit(data_types, ',');

  std::vector<string> node_shapes_str = absl::StrSplit(shapes, ':');
  std::vector<std::vector<int>> node_shapes;
  for (int i = 0; i < node_shapes_str.size(); i++) {
    std::vector<int> dims;
    for (auto& dim_str : absl::StrSplit(node_shapes_str[i], ',')) {
      // Treats empty input shape as scalar
      if (dim_str.empty()) continue;
      int size;
      TF_RET_CHECK(absl::SimpleAtoi(dim_str, &size));
      dims.push_back(size);
    }
    node_shapes.push_back(dims);
  }
  return ParseInputArrayInfo(node_names, node_dtypes, node_shapes, inputs);
}

Status ParseInputArrayInfo(const std::vector<string>& node_names,
                           const std::vector<string>& node_dtypes,
                           const std::vector<std::vector<int>>& node_shapes,
                           GraphImportConfig::InputArrays* inputs) {
  std::vector<std::string> used_node_dtypes;
  if (node_dtypes.empty() ||
      (node_dtypes.size() == 1 && node_dtypes[0].empty())) {
    // Mark all the node dtypes Invalid, so the importer can handle them by
    // using the type from the graph.
    used_node_dtypes.resize(node_names.size(), DataType_Name(DT_INVALID));
  } else if (node_names.size() == node_dtypes.size()) {
    for (auto dtype : node_dtypes) {
      if (dtype.empty()) {
        used_node_dtypes.push_back(DataType_Name(DT_INVALID));
      } else if (dtype != DataType_Name(DT_INVALID)) {
        used_node_dtypes.push_back(dtype);
      } else {
        return errors::FailedPrecondition(
            "Use '' if want to use the type from graph.");
      }
    }
  } else {
    return errors::FailedPrecondition(absl::StrCat(
        "Unmatched node array and data type numbers (#arrays ",
        node_names.size(), ", #data_types ", node_dtypes.size(), ")"));
  }

  if (node_names.size() != node_shapes.size()) {
    return errors::FailedPrecondition(absl::StrCat(
        "Unmatched node array and data type numbers (#arrays ",
        node_names.size(), ", #input_shapes ", node_shapes.size(), ")"));
  }

  // StringMap doesn't support reserve else reserve input map size here.
  for (int i = 0; i < node_names.size(); i++) {
    auto& name = node_names[i];
    if (name.empty()) continue;

    auto it_inserted_pair = inputs->insert({name, {}});
    if (!it_inserted_pair.second)
      return errors::FailedPrecondition(
          absl::StrCat("tensor ", name, " is repeated in the arrays flag"));

    ArrayInfo& info = it_inserted_pair.first->second;
    if (!DataType_Parse(used_node_dtypes[i], &info.imported_dtype)) {
      return errors::FailedPrecondition(
          absl::StrCat("Invalid node type '", node_dtypes[i], "'"));
    }

    for (auto& dim : node_shapes[i]) {
      info.shape.add_dim()->set_size(dim);
    }
  }
  return Status::OK();
}

}  // namespace tensorflow


text:
package com.datastax.spark.connector.cql

import com.datastax.oss.driver.api.core.`type`.UserDefinedType
import com.datastax.oss.driver.api.core.metadata.schema.{AggregateMetadata, FunctionMetadata, KeyspaceMetadata, SchemaChangeListener, TableMetadata, ViewMetadata}
import org.scalatest.concurrent.Eventually
import org.scalatest.{BeforeAndAfterEach, FlatSpec, Matchers}
import org.scalatestplus.mockito.MockitoSugar

import scala.collection.mutable
import scala.concurrent.Future
import scala.util.Random

class MultiplexingSchemaListenerTest extends FlatSpec with Matchers with MockitoSugar with BeforeAndAfterEach with Eventually {
  val r = new Random()

  import scala.concurrent.ExecutionContext.Implicits.global

  def count(k: String) = actionsDone.put(k, actionsDone(k) + 1)
  def reset() = actionsDone.clear()

  val listener = new MultiplexingSchemaListener()

  val actionsDone = new mutable.HashMap[String, Int]().withDefaultValue(0)

  override def beforeEach(): Unit = {
    listener.clearListeners()
    actionsDone.clear()
  }

  class IncrementingSchemaListener extends  SchemaChangeListener {
    override def onKeyspaceCreated(keyspace: KeyspaceMetadata): Unit = count("onKeyspaceCreated")
    override def onKeyspaceDropped(keyspace: KeyspaceMetadata): Unit = count("onKeyspaceDropped")
    override def onKeyspaceUpdated(current: KeyspaceMetadata, previous: KeyspaceMetadata): Unit = count("onKeyspaceUpdated")

    override def onTableCreated(table: TableMetadata): Unit = count("onTableCreated")
    override def onTableDropped(table: TableMetadata): Unit = count("onTableDropped")
    override def onTableUpdated(current: TableMetadata, previous: TableMetadata): Unit = count("onTableUpdated")

    override def onUserDefinedTypeCreated(`type`: UserDefinedType): Unit = count("onUserDefinedTypeCreated")
    override def onUserDefinedTypeDropped(`type`: UserDefinedType): Unit = count("onUserDefinedTypeDropped")
    override def onUserDefinedTypeUpdated(current: UserDefinedType, previous: UserDefinedType): Unit = count("onUserDefinedTypeUpdated")

    override def onFunctionCreated(function: FunctionMetadata): Unit = count("onFunctionCreated")
    override def onFunctionDropped(function: FunctionMetadata): Unit = count("onFunctionDropped")
    override def onFunctionUpdated(current: FunctionMetadata, previous: FunctionMetadata): Unit = count("onFunctionUpdated")

    override def onAggregateCreated(aggregate: AggregateMetadata): Unit = count("onAggregateCreated")
    override def onAggregateDropped(aggregate: AggregateMetadata): Unit = count("onAggregateDropped")
    override def onAggregateUpdated(current: AggregateMetadata, previous: AggregateMetadata): Unit = count("onAggregateUpdated")

    override def onViewCreated(view: ViewMetadata): Unit = count("onViewCreated")
    override def onViewDropped(view: ViewMetadata): Unit = count("onViewDropped")
    override def onViewUpdated(current: ViewMetadata, previous: ViewMetadata): Unit = count("onViewUpdated")

    override def close(): Unit = count("close")
  }

  def triggerKeyspaceEvents(times: Int = 1): Unit = {
    val ks = mock[KeyspaceMetadata]
    for (i <- 0 until times) {
      listener.onKeyspaceCreated(ks)
      listener.onKeyspaceDropped(ks)
      listener.onKeyspaceUpdated(ks, ks)
    }
  }

  def triggerTableEvents(times: Int = 1): Unit = {
    val ks = mock[TableMetadata]
    for (i <- 0 until times) {
      listener.onTableCreated(ks)
      listener.onTableDropped(ks)
      listener.onTableUpdated(ks, ks)
    }
  }

  def triggerFunctionEvents(times: Int = 1): Unit = {
    val ks = mock[FunctionMetadata]
    for (i <- 0 until times) {
      listener.onFunctionCreated(ks)
      listener.onFunctionDropped(ks)
      listener.onFunctionUpdated(ks, ks)
    }
  }

  def triggerUserDefinedTypeEvents(times: Int = 1): Unit = {
    val ks = mock[UserDefinedType]
    for (i <- 0 until times) {
      listener.onUserDefinedTypeCreated(ks)
      listener.onUserDefinedTypeDropped(ks)
      listener.onUserDefinedTypeUpdated(ks, ks)
    }
  }

  def triggerAggregateEvents(times: Int = 1): Unit = {
    val ks = mock[AggregateMetadata]
    for (i <- 0 until times) {
      listener.onAggregateCreated(ks)
      listener.onAggregateDropped(ks)
      listener.onAggregateUpdated(ks, ks)
    }
  }

  def triggerViewEvents(times: Int = 1): Unit = {
    val ks = mock[ViewMetadata]
    for (i <- 0 until times) {
      listener.onViewCreated(ks)
      listener.onViewDropped(ks)
      listener.onViewUpdated(ks, ks)
    }
  }

  def triggerCloseEvents(times: Int = 1): Unit = {
    for (i <- 0 until times) {
      listener.close()
    }
  }

  def checkKeyspaceEvents(amount: Int): Unit = {
    checkEvent("Keyspace", amount)
  }
  def checkTableEvents(amount: Int): Unit = {
    checkEvent("Table", amount)
  }
  def checkUserDefinedTypeEvents(amount: Int): Unit = {
    checkEvent("UserDefinedType", amount)
  }
  def checkFunctionEvents(amount: Int): Unit = {
    checkEvent("Function", amount)
  }
  def checkAggregateEvents(amount: Int): Unit = {
    checkEvent("Aggregate", amount)
  }
  def checkViewEvents(amount: Int): Unit = {
    checkEvent("View", amount)
  }
  def checkCloseEvents(amount: Int): Unit = {
    actionsDone("close") shouldBe amount
  }

  def triggerAllEvents(times: Int = 1): Unit = {
    triggerAggregateEvents(times)
    triggerCloseEvents(times)
    triggerFunctionEvents(times)
    triggerKeyspaceEvents(times)
    triggerTableEvents(times)
    triggerUserDefinedTypeEvents(times)
    triggerViewEvents(times)
  }

  def checkAllEvents(amount: Int) = {
    checkAggregateEvents(amount)
    checkCloseEvents(amount)
    checkFunctionEvents(amount)
    checkKeyspaceEvents(amount)
    checkTableEvents(amount)
    checkUserDefinedTypeEvents(amount)
    checkViewEvents(amount)
  }

  private def checkEvent(eventType: String, amount: Int) {
    actionsDone(s"on${eventType}Created") shouldBe (amount)
    actionsDone(s"on${eventType}Dropped") shouldBe (amount)
    actionsDone(s"on${eventType}Updated") shouldBe (amount)
  }

  // Actual tests here

  "MutableSchemaListener" should "allow adding or removing listeners" in {
    val incrementingSchemaListener = new IncrementingSchemaListener()
    listener.addListener(incrementingSchemaListener)
    listener.getListeners().head shouldBe incrementingSchemaListener
    listener.removeListener(incrementingSchemaListener)
    listener.registeredListenerCount() shouldBe (0)
  }

  for (numListener <- 0 to 10) {
    it should s"work with $numListener listeners" in {
      (1 to numListener).foreach(_ => listener.addListener(new IncrementingSchemaListener()))
      var totalEvents = 0
      for (it <- 1 to 100) {
        val eventCount = r.nextInt(25)
        triggerAllEvents(eventCount)
        totalEvents += (eventCount * numListener)
        checkAllEvents(totalEvents)
      }
    }
  }

  it should "allow listeners to be added while triggering events" in {
    for (it <- 1 to 200) {
      Future (listener.addListener(new IncrementingSchemaListener()))
      Future (triggerAllEvents(5))
      Future (listener.addListener(new IncrementingSchemaListener()))
      Future (triggerAllEvents(5))
      if (it % 10 == 0)
        Future (listener.clearListeners())
    }
    eventually {
      actionsDone.values.sum should be > 0
    }
  }

}


text:
import time
import sys
from selenium.webdriver.common.keys import Keys

def test_inni001_invalid_numbers(ninput_app, dash_dcc):
    dash_dcc.start_server(ninput_app)
    for invalid_number in ("10e10000", "e+++eeeeeE-", "12-.3"):
        for debounce in ("false", "true"):
            elem = dash_dcc.find_element(f"#input_{debounce}")
            assert not elem.get_attribute("value"), "input should have no initial value"

            # onblur
            elem.send_keys(invalid_number)
            elem.send_keys(Keys.TAB)

            dash_dcc.wait_for_text_to_equal(f"#div_{debounce}", "")

            # Enter keypress
            dash_dcc.clear_input(elem)
            elem.send_keys(invalid_number)
            elem.send_keys(Keys.ENTER)

            dash_dcc.wait_for_text_to_equal(f"#div_{debounce}", "")

            dash_dcc.clear_input(elem)

    assert dash_dcc.get_logs() == []

def test_inni002_invalid_numbers_ui(dash_dcc, ninput_app):
    dash_dcc.start_server(ninput_app)
    elem = dash_dcc.find_element("#input_false")

    elem.send_keys("5e-325")  # smaller than Number.MIN_VALUE
    assert dash_dcc.wait_for_text_to_equal("#div_false", "0")

    dash_dcc.clear_input(elem)
    elem.send_keys("0.0.0")
    elem.send_keys(Keys.TAB)

    assert dash_dcc.find_element("#div_false").text != "0.0"
    time.sleep(0.5)
    dash_dcc.percy_snapshot("inni002 - input invalid number")

    assert dash_dcc.get_logs() == []

def test_inni003_invalid_numbers_range(dash_dcc, input_range_app):
    dash_dcc.start_server(input_range_app)  # range [10, 10000] step=3

    elem_range = dash_dcc.find_element("#range")
    elem_range.send_keys("1999")
    assert dash_dcc.find_element("#out").text == "1999"

    for invalid_number in ("0.0", "12", "10e10"):
        elem_range.send_keys(invalid_number)
        dash_dcc.wait_for_text_to_equal("#out", ""), "invalid value should return none"
        dash_dcc.clear_input(elem_range)

    elem_range.send_keys("-13")
    dash_dcc.wait_for_text_to_equal("#out", ""), "invalid value should return none"

    time.sleep(0.5)
    dash_dcc.percy_snapshot("inni003 - number out of range")

    assert dash_dcc.get_logs() == []

def test_inni010_valid_numbers(dash_dcc, ninput_app):
    dash_dcc.start_server(ninput_app)
    for num, op in (
        ("1.0", lambda x: int(float(x))),  # limitation of js/json
        ("10e10", lambda x: int(float(x))),
        ("-1.0001", float),
        (str(sys.float_info.max), float),
        (str(sys.float_info.min), float),
    ):
        elem = dash_dcc.find_element("#input_false")
        elem.send_keys(num)
        assert dash_dcc.wait_for_text_to_equal(
            "#div_false", str(op(num))
        ), "the valid number should be converted to expected form in callback"
        dash_dcc.clear_input(elem)

    assert dash_dcc.get_logs() == []


text:
// Copyright (C) 2011, 2012  Google Inc.
//
// This file is part of YouCompleteMe.
//
// YouCompleteMe is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// YouCompleteMe is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with YouCompleteMe.  If not, see <http://www.gnu.org/licenses/>.

#ifndef LETTERNODELISTMAP_H_BRK2UMC1
#define LETTERNODELISTMAP_H_BRK2UMC1

#include "DLLDefines.h"

#include <list>
#include <boost/utility.hpp>
#include <boost/array.hpp>

#define NUM_LETTERS 128

namespace YouCompleteMe {

class LetterNode;

YCM_DLL_EXPORT int IndexForChar( char letter );
YCM_DLL_EXPORT bool IsUppercase( char letter );

class LetterNodeListMap : boost::noncopyable {
public:
  LetterNodeListMap();
  YCM_DLL_EXPORT ~LetterNodeListMap();

  bool HasLetter( char letter );

  std::list< LetterNode * > &operator[] ( char letter );

  std::list< LetterNode * > *ListPointerAt( char letter );

  bool HasLetter( char letter ) const;

private:
  boost::array< std::list< LetterNode * >*, NUM_LETTERS > letters_;
};

} // namespace YouCompleteMe

#endif /* end of include guard: LETTERNODELISTMAP_H_BRK2UMC1 */


text:
package chandu0101.scalajs.react.components
package reactselect

import chandu0101.macros.tojs.JSMacro
import japgolly.scalajs.react._

import scala.scalajs.js

import TODO._

case class Select[T](
  /* placeholder displayed when you want to add a label on a multi-value input */
  addLabelText: js.UndefOr[String] = js.undefined,
  /* whether to allow creation of new entries */
  allowCreate: js.UndefOr[Boolean] = js.undefined,
  /* autofocus the component on mount */
  autofocus: js.UndefOr[Boolean] = js.undefined,
  /* whether backspace removes an item if there is no text input */
  backspaceRemoves: js.UndefOr[Boolean] = js.undefined,
  /* className for the outer element */
  className: js.UndefOr[String] = js.undefined,
  /* title for the "clear" control when multi: true */
  clearAllText: js.UndefOr[ReactNode] = js.undefined,
  /* title for the "clear" control */
  clearValueText: js.UndefOr[ReactNode] = js.undefined,
  /* should it be possible to reset value */
  clearable: js.UndefOr[Boolean] = js.undefined,
  /* delimiter to use to join multiple values for the hidden field value */
  delimiter: js.UndefOr[String] = js.undefined,
  /* whether the Select is disabled or not */
  disabled: js.UndefOr[Boolean] = js.undefined,
  /* whether escape clears the value when the menu is closed */
  escapeClearsValue: js.UndefOr[Boolean] = js.undefined,
  /* method to filter a single option (option, filterString) */
  filterOption: js.UndefOr[FUNC] = js.undefined,
  /* boolean to enable default filtering or function to filter the options array ([options], filterString, [values]) */
  filterOptions: js.UndefOr[ANY] = js.undefined,
  /* whether to strip diacritics when filtering */
  ignoreAccents: js.UndefOr[Boolean] = js.undefined,
  /* whether to perform case-insensitive filtering */
  ignoreCase: js.UndefOr[Boolean] = js.undefined,
  /* custom attributes for the Input */
  inputProps: js.UndefOr[ANY] = js.undefined,
  /* whether the Select is loading externally or not (such as options being loaded) */
  isLoading: js.UndefOr[Boolean] = js.undefined,
  /* path of the label value in option objects */
  labelKey: js.UndefOr[String] = js.undefined,
  /* (any|start) match the start or entire string when filtering */
  matchPos: js.UndefOr[String] = js.undefined,
  /* (any|label|value) which option property to filter on */
  matchProp: js.UndefOr[String] = js.undefined,
  /* boolean to enable the viewport to shift so that the full menu fully visible when engaged */
  scrollMenuIntoView: js.UndefOr[Boolean] = js.undefined,
  /* optional buffer (in px) between the bottom of the viewport and the bottom of the menu */
  menuBuffer: js.UndefOr[Int] = js.undefined,
  /* optional style to apply to the menu */
  menuStyle: js.UndefOr[CssProperties] = js.undefined,
  /* optional style to apply to the menu container */
  menuContainerStyle: js.UndefOr[CssProperties] = js.undefined,
  /* multi-value input */
  multi: js.UndefOr[Boolean] = js.undefined,
  /* generates a hidden <input /> tag with this field name for html forms */
  name: js.UndefOr[String] = js.undefined,
  /* factory to create new options when allowCreate set */
  newOptionCreator: js.UndefOr[FUNC] = js.undefined,
  /* placeholder displayed when there are no matching search results */
  noResultsText: js.UndefOr[ReactNode] = js.undefined,
  /* onBlur handler: function (event) {} */
  onBlur: js.UndefOr[ReactEvent => Callback] = js.undefined,
  /* onChange handler: function (newValue) {} */
  onChange: js.UndefOr[T => Callback] = js.undefined,
  /* onFocus handler: function (event) {} */
  onFocus: js.UndefOr[ReactEvent => Callback] = js.undefined,
  /* onInputChange handler: function (inputValue) {} */
  onInputChange: js.UndefOr[String => Callback] = js.undefined,
  /* onClick handler for value labels: function (value, event) {} */
  onValueClick: js.UndefOr[(ValueOption[T], ReactEvent) => Callback] = js.undefined,
  /* fires when the menu is scrolled to the bottom; can be used to paginate options */
  onMenuScrollToBottom: js.UndefOr[Callback] = js.undefined,
  /* option component to render in dropdown */
  optionComponent: js.UndefOr[JsComponent[OptionProps[T]]] = js.undefined,
  /* optionRenderer: function (option) {} */
  optionRenderer: js.UndefOr[ValueProps[T] => ReactNode] = js.undefined,
  /* array of options */
  options: js.Array[ValueOption[T]],
  /* field placeholder, displayed when there's no value */
  placeholder: js.UndefOr[ReactNode] = js.undefined,
  /* whether to enable searching feature or not */
  searchable: js.UndefOr[Boolean] = js.undefined,
  /* pass the value to onChange as a simple value (legacy pre 1.0 mode), defaults to false */
  simpleValue: js.UndefOr[Boolean] = js.undefined,
  /* optional style to apply to the control */
  style: js.UndefOr[CssProperties] = js.undefined,
  /* optional tab index of the control */
  tabIndex: js.UndefOr[String] = js.undefined,
  /* initial field value */
  value: JsCollection[T] = js.undefined,
  /* value component to render */
  valueComponent: js.UndefOr[JsComponent[ValueProps[T]]] = js.undefined,
  /* path of the label value in option objects */
  valueKey: js.UndefOr[String] = js.undefined,
  /* valueRenderer: function (option) {} */
  valueRenderer: js.UndefOr[ValueOption[T] => ReactNode] = js.undefined,
  /* optional style to apply to the component wrapper */
  wrapperStyle: js.UndefOr[CssProperties] = js.undefined) {

  def apply(): ReactComponentU_ = {
//    implicit val hackEvidence: T => js.Any = _.asInstanceOf[js.Any]

    val props = JSMacro[Select[T]](this)
    val f     = React.asInstanceOf[js.Dynamic].createFactory(js.Dynamic.global.ReactSelect)
    f(props).asInstanceOf[ReactComponentU_]
  }
}


text:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.235
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

#pragma warning disable 1591

namespace EIDSS.Reports.BaseControls.Aggregate {

    ///
    ///Represents a strongly typed in-memory cache of data.
    ///
    [global::System.Serializable()]
    [global::System.ComponentModel.DesignerCategoryAttribute("code")]
    [global::System.ComponentModel.ToolboxItem(true)]
    [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
    [global::System.Xml.Serialization.XmlRootAttribute("AggregateDataSet")]
    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
    public partial class AggregateDataSet : global::System.Data.DataSet {

        private AggregateTableDataTable tableAggregateTable;

        private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        public AggregateDataSet() {
            this.BeginInit();
            this.InitClass();
            global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            base.Tables.CollectionChanged += schemaChangedHandler;
            base.Relations.CollectionChanged += schemaChangedHandler;
            this.EndInit();
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        protected AggregateDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
                base(info, context, false) {
            if ((this.IsBinarySerialized(info, context) == true)) {
                this.InitVars(false);
                global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
                this.Tables.CollectionChanged += schemaChangedHandler1;
                this.Relations.CollectionChanged += schemaChangedHandler1;
                return;
            }
            string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
            if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
                global::System.Data.DataSet ds = new global::System.Data.DataSet();
                ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
                if ((ds.Tables["AggregateTable"] != null)) {
                    base.Tables.Add(new AggregateTableDataTable(ds.Tables["AggregateTable"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
            }
            this.GetSerializationData(info, context);
            global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            base.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        [global::System.ComponentModel.Browsable(false)]
        [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
        public AggregateTableDataTable AggregateTable {
            get {
                return this.tableAggregateTable;
            }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        [global::System.ComponentModel.BrowsableAttribute(true)]
        [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
        public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
            get {
                return this._schemaSerializationMode;
            }
            set {
                this._schemaSerializationMode = value;
            }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public new global::System.Data.DataTableCollection Tables {
            get {
                return base.Tables;
            }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public new global::System.Data.DataRelationCollection Relations {
            get {
                return base.Relations;
            }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        protected override void InitializeDerivedDataSet() {
            this.BeginInit();
            this.InitClass();
            this.EndInit();
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        public override global::System.Data.DataSet Clone() {
            AggregateDataSet cln = ((AggregateDataSet)(base.Clone()));
            cln.InitVars();
            cln.SchemaSerializationMode = this.SchemaSerializationMode;
            return cln;
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        protected override bool ShouldSerializeTables() {
            return false;
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        protected override bool ShouldSerializeRelations() {
            return false;
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
            if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
                this.Reset();
                global::System.Data.DataSet ds = new global::System.Data.DataSet();
                ds.ReadXml(reader);
                if ((ds.Tables["AggregateTable"] != null)) {
                    base.Tables.Add(new AggregateTableDataTable(ds.Tables["AggregateTable"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.ReadXml(reader);
                this.InitVars();
            }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
            global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
            this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
            stream.Position = 0;
            return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        internal void InitVars() {
            this.InitVars(true);
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        internal void InitVars(bool initTable) {
            this.tableAggregateTable = ((AggregateTableDataTable)(base.Tables["AggregateTable"]));
            if ((initTable == true)) {
                if ((this.tableAggregateTable != null)) {
                    this.tableAggregateTable.InitVars();
                }
            }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        private void InitClass() {
            this.DataSetName = "AggregateDataSet";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/AggregateDataSet.xsd";
            this.EnforceConstraints = true;
            this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
            this.tableAggregateTable = new AggregateTableDataTable();
            base.Tables.Add(this.tableAggregateTable);
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        private bool ShouldSerializeAggregateTable() {
            return false;
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
            AggregateDataSet ds = new AggregateDataSet();
            global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
            global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
            global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
            any.Namespace = ds.Namespace;
            sequence.Items.Add(any);
            type.Particle = sequence;
            global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
            if (xs.Contains(dsSchema.TargetNamespace)) {
                global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
                global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
                try {
                    global::System.Xml.Schema.XmlSchema schema = null;
                    dsSchema.Write(s1);
                    for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
                        schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
                        s2.SetLength(0);
                        schema.Write(s2);
                        if ((s1.Length == s2.Length)) {
                            s1.Position = 0;
                            s2.Position = 0;
                            for (; ((s1.Position != s1.Length)
                                        && (s1.ReadByte() == s2.ReadByte())); ) {
                                ;
                            }
                            if ((s1.Position == s1.Length)) {
                                return type;
                            }
                        }
                    }
                }
                finally {
                    if ((s1 != null)) {
                        s1.Close();
                    }
                    if ((s2 != null)) {
                        s2.Close();
                    }
                }
            }
            xs.Add(dsSchema);
            return type;
        }

        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        public delegate void AggregateTableRowChangeEventHandler(object sender, AggregateTableRowChangeEvent e);

        ///
        ///Represents the strongly named DataTable class.
        ///
        [global::System.Serializable()]
        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class AggregateTableDataTable : global::System.Data.TypedTableBase<AggregateTableRow> {

            private global::System.Data.DataColumn columnNum;

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public AggregateTableDataTable() {
                this.TableName = "AggregateTable";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            internal AggregateTableDataTable(global::System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            protected AggregateTableDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
                    base(info, context) {
                this.InitVars();
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public global::System.Data.DataColumn NumColumn {
                get {
                    return this.columnNum;
                }
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            [global::System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public AggregateTableRow this[int index] {
                get {
                    return ((AggregateTableRow)(this.Rows[index]));
                }
            }

            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event AggregateTableRowChangeEventHandler AggregateTableRowChanging;

            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event AggregateTableRowChangeEventHandler AggregateTableRowChanged;

            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event AggregateTableRowChangeEventHandler AggregateTableRowDeleting;

            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event AggregateTableRowChangeEventHandler AggregateTableRowDeleted;

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public void AddAggregateTableRow(AggregateTableRow row) {
                this.Rows.Add(row);
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public AggregateTableRow AddAggregateTableRow(string Num) {
                AggregateTableRow rowAggregateTableRow = ((AggregateTableRow)(this.NewRow()));
                object[] columnValuesArray = new object[] {
                        Num};
                rowAggregateTableRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowAggregateTableRow);
                return rowAggregateTableRow;
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public override global::System.Data.DataTable Clone() {
                AggregateTableDataTable cln = ((AggregateTableDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            protected override global::System.Data.DataTable CreateInstance() {
                return new AggregateTableDataTable();
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            internal void InitVars() {
                this.columnNum = base.Columns["Num"];
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            private void InitClass() {
                this.columnNum = new global::System.Data.DataColumn("Num", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNum);
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public AggregateTableRow NewAggregateTableRow() {
                return ((AggregateTableRow)(this.NewRow()));
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
                return new AggregateTableRow(builder);
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            protected override global::System.Type GetRowType() {
                return typeof(AggregateTableRow);
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.AggregateTableRowChanged != null)) {
                    this.AggregateTableRowChanged(this, new AggregateTableRowChangeEvent(((AggregateTableRow)(e.Row)), e.Action));
                }
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.AggregateTableRowChanging != null)) {
                    this.AggregateTableRowChanging(this, new AggregateTableRowChangeEvent(((AggregateTableRow)(e.Row)), e.Action));
                }
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.AggregateTableRowDeleted != null)) {
                    this.AggregateTableRowDeleted(this, new AggregateTableRowChangeEvent(((AggregateTableRow)(e.Row)), e.Action));
                }
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.AggregateTableRowDeleting != null)) {
                    this.AggregateTableRowDeleting(this, new AggregateTableRowChangeEvent(((AggregateTableRow)(e.Row)), e.Action));
                }
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public void RemoveAggregateTableRow(AggregateTableRow row) {
                this.Rows.Remove(row);
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
                global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
                global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
                AggregateDataSet ds = new AggregateDataSet();
                global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;
                any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs = new decimal(1);
                any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "AggregateTableDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
                if (xs.Contains(dsSchema.TargetNamespace)) {
                    global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
                    global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
                    try {
                        global::System.Xml.Schema.XmlSchema schema = null;
                        dsSchema.Write(s1);
                        for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
                            schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
                            s2.SetLength(0);
                            schema.Write(s2);
                            if ((s1.Length == s2.Length)) {
                                s1.Position = 0;
                                s2.Position = 0;
                                for (; ((s1.Position != s1.Length)
                                            && (s1.ReadByte() == s2.ReadByte())); ) {
                                    ;
                                }
                                if ((s1.Position == s1.Length)) {
                                    return type;
                                }
                            }
                        }
                    }
                    finally {
                        if ((s1 != null)) {
                            s1.Close();
                        }
                        if ((s2 != null)) {
                            s2.Close();
                        }
                    }
                }
                xs.Add(dsSchema);
                return type;
            }
        }

        ///
        ///Represents strongly named DataRow class.
        ///
        public partial class AggregateTableRow : global::System.Data.DataRow {

            private AggregateTableDataTable tableAggregateTable;

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            internal AggregateTableRow(global::System.Data.DataRowBuilder rb) :
                    base(rb) {
                this.tableAggregateTable = ((AggregateTableDataTable)(this.Table));
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public string Num {
                get {
                    try {
                        return ((string)(this[this.tableAggregateTable.NumColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Num\' in table \'AggregateTable\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableAggregateTable.NumColumn] = value;
                }
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public bool IsNumNull() {
                return this.IsNull(this.tableAggregateTable.NumColumn);
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public void SetNumNull() {
                this[this.tableAggregateTable.NumColumn] = global::System.Convert.DBNull;
            }
        }

        ///
        ///Row event argument class
        ///
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        public class AggregateTableRowChangeEvent : global::System.EventArgs {

            private AggregateTableRow eventRow;

            private global::System.Data.DataRowAction eventAction;

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public AggregateTableRowChangeEvent(AggregateTableRow row, global::System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public AggregateTableRow Row {
                get {
                    return this.eventRow;
                }
            }

            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public global::System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

#pragma warning restore 1591