text:
// *************************************************************************************
// SCICHART® Copyright SciChart Ltd. 2011-2017. All rights reserved.
//
// Web: http://www.scichart.com
//   Support: support@scichart.com
//   Sales:   sales@scichart.com
//
// ChartViewModel.cs is part of the SCICHART® Examples. Permission is hereby granted
// to modify, create derivative works, distribute and publish any part of this source
// code whether for commercial, private or personal use.
//
// The SCICHART® examples are distributed in the hope that they will be useful, but
// without any warranty. It is provided "AS IS" without warranty of any kind, either
// expressed or implied.
// *************************************************************************************
using SciChart.Charting.Model.DataSeries;
using SciChart.Charting.Visuals.Axes;
using SciChart.Examples.ExternalDependencies.Common;

namespace SciChart.Examples.Examples.UseSciChartWithMvvm.BindMultipleCharts
{
    public class ChartViewModel : BaseViewModel
    {
        private IDataSeries _chartData;
        private AutoRange _AutoRange;

        public IDataSeries ChartData
        {
            get { return _chartData; }
            set
            {
                _chartData = value;
                OnPropertyChanged("ChartData");
            }
        }

        public AutoRange AutoRange
        {
            get { return _AutoRange; }
            set
            {
                _AutoRange = value;
                OnPropertyChanged("AutoRange");
            }
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React, { PropTypes } from 'react';
import uncontrollable from 'uncontrollable';

var TAB = 'tab';
var PANE = 'pane';

var idPropType = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);

var propTypes = {
  /**
   * HTML id attribute, required if no `generateChildId` prop
   * is specified.
   */
  id: function id(props) {
    var error = null;

    if (!props.generateChildId) {
      for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
        args[_key - 1] = arguments[_key];
      }

      error = idPropType.apply(undefined, [props].concat(args));

      if (!error && !props.id) {
        error = new Error('In order to properly initialize Tabs in a way that is accessible ' + 'to assistive technologies (such as screen readers) an `id` or a ' + '`generateChildId` prop to TabContainer is required');
      }
    }

    return error;
  },

  /**
   * A function that takes an `eventKey` and `type` and returns a unique id for
   * child tab `<NavItem>`s and `<TabPane>`s. The function _must_ be a pure
   * function, meaning it should always return the _same_ id for the same set
   * of inputs. The default value requires that an `id` to be set for the
   * `<TabContainer>`.
   *
   * The `type` argument will either be `"tab"` or `"pane"`.
   *
   * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}`
   */
  generateChildId: PropTypes.func,

  /**
   * A callback fired when a tab is selected.
   *
   * @controllable activeKey
   */
  onSelect: PropTypes.func,

  /**
   * The `eventKey` of the currently active tab.
   *
   * @controllable onSelect
   */
  activeKey: PropTypes.any
};

var childContextTypes = {
  $bs_tabContainer: React.PropTypes.shape({
    activeKey: PropTypes.any,
    onSelect: PropTypes.func.isRequired,
    getTabId: PropTypes.func.isRequired,
    getPaneId: PropTypes.func.isRequired
  })
};

var TabContainer = function (_React$Component) {
  _inherits(TabContainer, _React$Component);

  function TabContainer() {
    _classCallCheck(this, TabContainer);

    return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
  }

  TabContainer.prototype.getChildContext = function getChildContext() {
    var _props = this.props;
    var activeKey = _props.activeKey;
    var onSelect = _props.onSelect;
    var generateChildId = _props.generateChildId;
    var id = _props.id;

    var getId = generateChildId || function (key, type) {
      return id ? id + '-' + type + '-' + key : null;
    };

    return {
      $bs_tabContainer: {
        activeKey: activeKey,
        onSelect: onSelect,
        getTabId: function getTabId(key) {
          return getId(key, TAB);
        },
        getPaneId: function getPaneId(key) {
          return getId(key, PANE);
        }
      }
    };
  };

  TabContainer.prototype.render = function render() {
    var _props2 = this.props;
    var children = _props2.children;

    var props = _objectWithoutProperties(_props2, ['children']);

    delete props.generateChildId;
    delete props.onSelect;
    delete props.activeKey;

    return React.cloneElement(React.Children.only(children), props);
  };

  return TabContainer;
}(React.Component);

TabContainer.propTypes = propTypes;
TabContainer.childContextTypes = childContextTypes;

export default uncontrollable(TabContainer, { activeKey: 'onSelect' });


text:
layout: books
title: One Second After
author: William R. Forstchen
date: 2018-08-08
rating: 6
---

An interesting read which is hard to put down despite some of its annoying qualities.

Set in the charming small town of Black Mountain, NC, it tells the story of the locals after an EMP renders the whole continental US off the grid and total chaos ensues.
The premise is thus really interesting and the small-town setting plays to its advantage.

**MILD SPOILER ALERT**

What I didn't like was the military aspect of it, somehow everyone seemed to be or have been to the military. Also, it struck me that the temporary town council promptly sentences a few drug addict looters to death (they stole some morpheine from a clinic), and executes them, yet the protagonist takes a hefty stash of the remaining insulin from the pharmacy and thus indirectly kills a few diabetics, but hey, it's OK because it's our hero and her daughter is also a struggling sweet diabetic. WTF?

Also, the use weed for pain relief is still out of question because it's breaking the law (this is after the execution of the druggies)...

I will likely read the sequels because it was still good read though, it was not afraid to be cruel and graphic, and it was just hard to put down in general.


text:
package org.carlspring.strongbox.services;

import org.carlspring.maven.commons.DetachedArtifact;
import org.carlspring.strongbox.resource.ConfigurationResourceResolver;
import org.carlspring.strongbox.storage.metadata.MetadataHelper;
import org.carlspring.strongbox.storage.metadata.MetadataType;
import org.carlspring.strongbox.testing.TestCaseWithArtifactGeneration;

import java.io.File;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.text.SimpleDateFormat;
import java.util.Calendar;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repository.metadata.Metadata;
import org.apache.maven.artifact.repository.metadata.Snapshot;
import org.apache.maven.artifact.repository.metadata.Versioning;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertFalse;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;

/**
 * @author stodorov
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class ArtifactMetadataServiceSnapshotsTest
        extends TestCaseWithArtifactGeneration
{

    @org.springframework.context.annotation.Configuration
    @ComponentScan(basePackages = {"org.carlspring.strongbox", "org.carlspring.logging"})
    public static class SpringConfig { }

    private static final File REPOSITORY_BASEDIR = new File(ConfigurationResourceResolver.getVaultDirectory() + "/storages/storage0/snapshots");

    private static final String[] CLASSIFIERS = { "javadoc", "sources", "source-release" };

    public static final String ARTIFACT_BASE_PATH_STRONGBOX_METADATA = "org/carlspring/strongbox/strongbox-metadata";

    private static Artifact artifact;

    private static Artifact pluginArtifact;

    private static Artifact mergeArtifact;

    @Autowired
    private ArtifactMetadataService artifactMetadataService;

    private SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd.HHmmss");

    private Calendar calendar = Calendar.getInstance();

    private static boolean initialized;

    @Before
    public void setUp()
            throws NoSuchAlgorithmException, XmlPullParserException, IOException
    {
        if (!initialized)
        {
            //noinspection ResultOfMethodCallIgnored
            REPOSITORY_BASEDIR.mkdirs();

            // Create snapshot artifacts
            artifact = createTimestampedSnapshotArtifact(REPOSITORY_BASEDIR.getAbsolutePath(),
                                                         "org.carlspring.strongbox",
                                                         "strongbox-metadata",
                                                         "2.0",
                                                         "jar",
                                                         CLASSIFIERS,
                                                         5);

            changeCreationDate(artifact);

            // Create a snapshot without a timestamp
            // artifactNoTimestamp = createSnapshot(REPOSITORY_BASEDIR.getAbsolutePath(), "org.carlspring.strongbox:strongbox-metadata-without-timestamp:2.0-SNAPSHOT:jar");

            // Create an artifact for metadata merging tests
            mergeArtifact = createTimestampedSnapshotArtifact(REPOSITORY_BASEDIR.getAbsolutePath(),
                                                              "org.carlspring.strongbox",
                                                              "strongbox-metadata-merge",
                                                              "2.0",
                                                              CLASSIFIERS);

            // Create plugin artifact
            pluginArtifact = createTimestampedSnapshotArtifact(REPOSITORY_BASEDIR.getAbsolutePath(),
                                                               "org.carlspring.strongbox.maven",
                                                               "strongbox-metadata-plugin",
                                                               "1.1",
                                                               "maven-plugin",
                                                               null);

            initialized = true;
        }
    }

    @Test
    public void testSnapshotMetadataRebuild()
            throws IOException, XmlPullParserException, NoSuchAlgorithmException
    {
        artifactMetadataService.rebuildMetadata("storage0", "snapshots", ARTIFACT_BASE_PATH_STRONGBOX_METADATA);

        Metadata metadata = artifactMetadataService.getMetadata("storage0", "snapshots", "org/carlspring/strongbox/strongbox-metadata");

        assertNotNull(metadata);

        Versioning versioning = metadata.getVersioning();

        assertEquals("Incorrect artifactId!", artifact.getArtifactId(), metadata.getArtifactId());
        assertEquals("Incorrect groupId!", artifact.getGroupId(), metadata.getGroupId());

        assertNotNull("No versioning information could be found in the metadata!", versioning.getVersions().size());
        assertEquals("Incorrect number of versions stored in metadata!", 1, versioning.getVersions().size());
    }

    @Test
    public void testDeleteVersionFromMetadata()
            throws IOException, XmlPullParserException, NoSuchAlgorithmException
    {
        // Create snapshot artifacts
        Artifact deletedArtifact = createTimestampedSnapshotArtifact(REPOSITORY_BASEDIR.getAbsolutePath(),
                                                                     "org.carlspring.strongbox",
                                                                     "deleted",
                                                                     "1.0",
                                                                     "jar",
                                                                     CLASSIFIERS,
                                                                     5);

        changeCreationDate(deletedArtifact);

        String artifactPath = "org/carlspring/strongbox/deleted";

        artifactMetadataService.rebuildMetadata("storage0", "snapshots", artifactPath);

        Metadata metadataBefore = artifactMetadataService.getMetadata("storage0", "snapshots", artifactPath);

        assertNotNull(metadataBefore);
        assertTrue("Unexpected set of versions!", MetadataHelper.containsVersion(metadataBefore, "1.0-SNAPSHOT"));

        artifactMetadataService.removeVersion("storage0",
                                              "snapshots",
                                              artifactPath,
                                              "1.0-SNAPSHOT",
                                              MetadataType.ARTIFACT_ROOT_LEVEL);

        Metadata metadataAfter = artifactMetadataService.getMetadata("storage0", "snapshots", artifactPath);

        assertNotNull(metadataAfter);
        assertFalse("Unexpected set of versions!", MetadataHelper.containsVersion(metadataAfter, "1.0-SNAPSHOT"));
    }

    @Test
    public void testAddTimestampedSnapshotVersionToMetadata()
            throws IOException, XmlPullParserException, NoSuchAlgorithmException
    {
        // Create snapshot artifacts
        Artifact addedArtifact = createTimestampedSnapshotArtifact(REPOSITORY_BASEDIR.getAbsolutePath(),
                                                                   "org.carlspring.strongbox",
                                                                   "added",
                                                                   "2.0",
                                                                   "jar",
                                                                   CLASSIFIERS,
                                                                   5);

        changeCreationDate(addedArtifact);

        String artifactPath = "org/carlspring/strongbox/added";

        artifactMetadataService.rebuildMetadata("storage0", "snapshots", artifactPath);

        String metadataPath = artifactPath + "/2.0-SNAPSHOT";

        Metadata metadataBefore = artifactMetadataService.getMetadata("storage0", "snapshots", metadataPath);

        assertTrue(MetadataHelper.containsTimestampedSnapshotVersion(metadataBefore, addedArtifact.getVersion(), null));

        String timestamp = formatter.format(calendar.getTime());
        String version = "2.0-" + timestamp + "-" + 6;

        addedArtifact = new DetachedArtifact(addedArtifact.getGroupId(),
                                             addedArtifact.getArtifactId(),
                                             version);

        artifactMetadataService.addTimestampedSnapshotVersion("storage0",
                                                              "snapshots",
                                                              artifactPath,
                                                              addedArtifact.getVersion(),
                                                              null,
                                                              "jar");

        Metadata metadataAfter = artifactMetadataService.getMetadata("storage0", "snapshots", metadataPath);

        assertNotNull(metadataAfter);
        assertTrue("Failed to add timestamped SNAPSHOT version to metadata!", MetadataHelper.containsTimestampedSnapshotVersion(metadataAfter, addedArtifact.getVersion()));
    }

    @Test
    public void testDeleteTimestampedSnapshotVersionFromMetadata()
            throws IOException, XmlPullParserException, NoSuchAlgorithmException
    {
        // Create snapshot artifacts
        Artifact deletedArtifact = createTimestampedSnapshotArtifact(REPOSITORY_BASEDIR.getAbsolutePath(),
                                                                     "org.carlspring.strongbox",
                                                                     "deleted",
                                                                     "2.0",
                                                                     "jar",
                                                                     CLASSIFIERS,
                                                                     5);

        changeCreationDate(deletedArtifact);

        String artifactPath = "org/carlspring/strongbox/deleted";

        artifactMetadataService.rebuildMetadata("storage0", "snapshots", artifactPath);

        String metadataPath = artifactPath + "/2.0-SNAPSHOT";

        Metadata metadataBefore = artifactMetadataService.getMetadata("storage0", "snapshots", metadataPath);

        assertTrue(MetadataHelper.containsTimestampedSnapshotVersion(metadataBefore, deletedArtifact.getVersion(), null));

        artifactMetadataService.removeTimestampedSnapshotVersion("storage0",
                                                                 "snapshots",
                                                                 artifactPath,
                                                                 deletedArtifact.getVersion(),
                                                                 null);

        Metadata metadataAfter = artifactMetadataService.getMetadata("storage0", "snapshots", metadataPath);

        assertNotNull(metadataAfter);
        assertFalse(MetadataHelper.containsTimestampedSnapshotVersion(metadataAfter, deletedArtifact.getVersion()));
    }

    @Test
    public void testSnapshotWithoutTimestampMetadataRebuild()
            throws IOException, XmlPullParserException, NoSuchAlgorithmException
    {
        String version = "2.0-SNAPSHOT";

        generateArtifact(REPOSITORY_BASEDIR.getAbsolutePath(), "org.carlspring.strongbox.snapshots:metadata:" + version);
        final String artifactPath = "org/carlspring/strongbox/snapshots/metadata";

        Artifact snapshotArtifact = new DetachedArtifact("org.carlspring.strongbox.snapshots", "metadata", version);

        artifactMetadataService.rebuildMetadata("storage0", "snapshots", artifactPath);

        Metadata metadata = artifactMetadataService.getMetadata("storage0", "snapshots", artifactPath);
        Metadata snapshotMetadata = artifactMetadataService.getMetadata("storage0", "snapshots", artifactPath);

        assertNotNull(metadata);

        Versioning versioning = metadata.getVersioning();
        Versioning snapshotVersioning = snapshotMetadata.getVersioning();

        assertEquals("Incorrect artifactId!", snapshotArtifact.getArtifactId(), metadata.getArtifactId());
        assertEquals("Incorrect groupId!", snapshotArtifact.getGroupId(), metadata.getGroupId());

        assertNotNull("No versioning information could be found in the metadata!", versioning.getVersions().size());
        assertEquals("Incorrect number of versions stored in metadata!", 1, versioning.getVersions().size());
        assertEquals(version, versioning.getLatest());
        assertNotNull("Failed to set lastUpdated field!", versioning.getLastUpdated());

        assertNotNull("No versioning information could be found in the metadata!", snapshotVersioning.getVersions().size());
        assertEquals("Incorrect number of versions stored in metadata!", 1, snapshotVersioning.getVersions().size());
        assertEquals(version, snapshotVersioning.getLatest());
        assertNotNull("Failed to set lastUpdated field!", snapshotVersioning.getLastUpdated());
    }

    @Test
    public void testSnapshotPluginMetadataRebuild()
            throws IOException, XmlPullParserException, NoSuchAlgorithmException
    {
        artifactMetadataService.rebuildMetadata("storage0",
                                                "snapshots",
                                                "org/carlspring/strongbox/maven/strongbox-metadata-plugin");

        Metadata metadata = artifactMetadataService.getMetadata("storage0", "snapshots", "org/carlspring/strongbox/maven/strongbox-metadata-plugin");

        assertNotNull(metadata);

        Versioning versioning = metadata.getVersioning();

        assertEquals("Incorrect artifactId!", pluginArtifact.getArtifactId(), metadata.getArtifactId());
        assertEquals("Incorrect groupId!", pluginArtifact.getGroupId(), metadata.getGroupId());
        assertNull("Incorrect latest release version!", versioning.getRelease());

        assertEquals("Incorrect number of versions stored in metadata!", 1, versioning.getVersions().size());
    }

    @Test
    public void testMetadataMerge()
            throws IOException, XmlPullParserException, NoSuchAlgorithmException
    {
        // Generate a proper maven-metadata.xml
        artifactMetadataService.rebuildMetadata("storage0", "snapshots", "org/carlspring/strongbox/strongbox-metadata-merge");

        // Generate metadata to merge
        Metadata mergeMetadata = new Metadata();
        Versioning appendVersioning = new Versioning();

        appendVersioning.addVersion("1.0-SNAPSHOT");
        appendVersioning.addVersion("1.3-SNAPSHOT");

        Snapshot snapshot = new Snapshot();
        snapshot.setTimestamp(formatter.format(calendar.getTime()));
        snapshot.setBuildNumber(1);

        appendVersioning.setRelease(null);
        appendVersioning.setSnapshot(snapshot);
        appendVersioning.setLatest("1.3-SNAPSHOT");

        mergeMetadata.setVersioning(appendVersioning);

        // Merge
        artifactMetadataService.mergeMetadata("storage0", "snapshots", mergeArtifact, mergeMetadata);

        Metadata metadata = artifactMetadataService.getMetadata("storage0", "snapshots", "org/carlspring/strongbox/strongbox-metadata-merge");

        assertNotNull(metadata);

        assertEquals("Incorrect latest release version!", "1.3-SNAPSHOT", metadata.getVersioning().getLatest());
        assertEquals("Incorrect number of versions stored in metadata!", 3, metadata.getVersioning().getVersions().size());
    }

}


text:
<!DOCTYPE html>

Published Versions of one Entity

Label

Type

Parent

Tags

State

Version

Created

Last modified


text:
#include "StreamSerialiserTests.h"
#include "OgreStreamSerialiser.h"
#include "OgreFileSystem.h"
#include "OgreException.h"
#include "OgreVector3.h"

using namespace Ogre;

// Register the suite
CPPUNIT_TEST_SUITE_REGISTRATION( StreamSerialiserTests );

void StreamSerialiserTests::setUp()
{
}
void StreamSerialiserTests::tearDown()
{
}

void StreamSerialiserTests::testWriteBasic()
{
	FileSystemArchive arch("./", "FileSystem", false);
	arch.load();

	String fileName = "testSerialiser.dat";
	Vector3 aTestVector(0.3, 15.2, -12.0);
	String aTestString = "Some text here";
	int aTestValue = 99;
	uint32 chunkID = StreamSerialiser::makeIdentifier("TEST");
	// write the data
	{

		DataStreamPtr stream = arch.create(fileName);

		StreamSerialiser serialiser(stream);

		serialiser.writeChunkBegin(chunkID);

		serialiser.write(&aTestVector);
		serialiser.write(&aTestString);
		serialiser.write(&aTestValue);
		serialiser.writeChunkEnd(chunkID);
	}

	// read it back
	{

		DataStreamPtr stream = arch.open(fileName);

		StreamSerialiser serialiser(stream);

		const StreamSerialiser::Chunk* c = serialiser.readChunkBegin();

		CPPUNIT_ASSERT_EQUAL(chunkID, c->id);
		CPPUNIT_ASSERT_EQUAL(sizeof(Vector3) + sizeof(int) + aTestString.size() + 4, (size_t)c->length);

		Vector3 inVector;
		String inString;
		int inValue;

		serialiser.read(&inVector);
		serialiser.read(&inString);
		serialiser.read(&inValue);
		serialiser.readChunkEnd(chunkID);

		CPPUNIT_ASSERT_EQUAL(aTestVector, inVector);
		CPPUNIT_ASSERT_EQUAL(aTestString, inString);
		CPPUNIT_ASSERT_EQUAL(aTestValue, inValue);

	}

	arch.remove(fileName);

	CPPUNIT_ASSERT(!arch.exists(fileName));
}


text:
*$(2a)  Auxiliary routines applicable to the CLFST

*+CHECK_AES_CLFST

       subroutine check_aes_clfst (ifile, nae_bad, status)
C      --------------------------------------------------
C
C  Checks aerial status and reports problems.
C
C  Returned:
C      IFILE     integer     sample file logical unit number
C      NAE_BAD   integer     number of problems found
C      STATUS    integer     status value
C
C  Routine to check the aerial status words and report any problems
C  to the output device.  The number of problem aerials (showing
C  gross or noisy pointing errors) is returned.  The following status
C  bits are maintained during the observing run and are investigated
C  by this routine:
C
C  Hut status word,    bit 15 : set if hut on-line and operational
C                      bit 13 : set if aerials tracking
C
C  Aerial status word, bit 12 : set if gross error in Dec
C                      bit 11 : set if gross error in RA
C                      bit 10 : set if Dec pointing noisy
C                      bit 9  : set if RA pointing noisy
C
C  The STATUS value should be zero on entry and is not changed.
C
*-
       INTEGER  IFILE, NAE_BAD, STATUS
C
       include '/mrao/post/include/control_tables.inc'
       include '/mrao/post/include/control_tab_v0.inc'
C
       INTEGER  ILIST(MAX_AES), IAE, IAE1, IAE2
       INTEGER  I, IHUT, IOUT, N
C
       IF (STATUS.NE.0) RETURN
C
       NAE_BAD=0
       CALL io_enqout(IOUT)
C
C  Check for gross pointing errors
C
       N=0
       DO IHUT=1,MAX_HUTS
         IF (BTEST(IHUTSTAT(IHUT),15).NE.0 .AND.
     :       BTEST(IHUTSTAT(IHUT),13).NE.0) THEN
           CALL ENQ_AE_HUT(IFILE,IHUT,IAE1,IAE2,STATUS)
           DO IAE=IAE1,IAE2
             IF (BTEST(IAESTAT(IAE),12).NE.0 .OR.
     :           BTEST(IAESTAT(IAE),10).NE.0) THEN
               ILIST(N+1)=IAE
               N=N+1
             ENDIF
           ENDDO
         ENDIF
       ENDDO
       NAE_BAD=NAE_BAD+N
C
       IF (N.GT.0) THEN
         WRITE(IOUT,'(X,A/(16I4))')
     :     'Gross pointing error detected, aerial:',(ILIST(I),I=1,N)
         WRITE(IOUT,*)
       ENDIF
C
C  Check for noisy or slow aerials
C
       N=0
       DO IHUT=1,MAX_HUTS
         IF (BTEST(IHUTSTAT(IHUT),15).NE.0 .AND.
     :       BTEST(IHUTSTAT(IHUT),13).NE.0) THEN
           CALL ENQ_AE_HUT(IFILE,IHUT,IAE1,IAE2,STATUS)
           DO IAE=IAE1,IAE2
             IF (BTEST(IAESTAT(IAE),11).NE.0 .OR.
     :           BTEST(IAESTAT(IAE),9).NE.0) THEN
               ILIST(N+1)=IAE
               N=N+1
             ENDIF
           ENDDO
         ENDIF
       ENDDO
       NAE_BAD=NAE_BAD+N
C
       IF (N.GT.0) THEN
         WRITE(IOUT,'(X,A/(16I4))')
     :     'Noisy or slow aerial detected:',(ILIST(I),I=1,N)
         WRITE(IOUT,*)
       ENDIF
C
       END


text:
package com.maps.paktebe;

import java.util.List;

import org.json.JSONObject;

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.GoogleMap.OnMyLocationChangeListener;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
import com.google.android.gms.maps.model.PolylineOptions;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.Color;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationManager;
import android.os.AsyncTask;
import android.os.Bundle;
import android.widget.Toast;

@SuppressLint("NewApi")
public class Direction extends Activity implements OnMyLocationChangeListener {
	private final String URL = "http://maps.googleapis.com/maps/api/directions/json?";
	private LatLng start ;
	private LatLng end;
	private String nama;
	private GoogleMap map;
	private JSONParser json;
	private ProgressDialog pDialog;
	private List<LatLng> listDirections;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_direction);
		json = new JSONParser();
		setupMapIfNeeded();
		Bundle b = getIntent().getExtras();
		if(b != null){
			start = new LatLng(b.getDouble("lat_asal"), b.getDouble("lng_asal"));
			end = new LatLng(b.getDouble("lat"), b.getDouble("lng"));
			nama = b.getString("nama");
			System.out.println("Start : "+start+"");
			System.out.println("End : "+end+"");
		}
		new AsyncTaskDirection().execute();
	}

	private void setupMapIfNeeded() {
		if (map == null){
			map = ((MapFragment)getFragmentManager().findFragmentById(R.id.mapsdirections)).getMap();
			if (map!= null){
				setupMap();
			}
		}
	}

	private void setupMap() {
		// TODO Auto-generated method stub
		map.setMyLocationEnabled(true);
		map.setOnMyLocationChangeListener(this);
		moveToMyLocation();
	}

	private void moveToMyLocation() {
		// TODO Auto-generated method stub
		LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
		Criteria criteria = new Criteria();
		Location location = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));
		if (location != null){
			map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()), 13));
		}
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		int resCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());
		if (resCode != ConnectionResult.SUCCESS){
			GooglePlayServicesUtil.getErrorDialog(resCode, this, 1);
		}
	}

	private class AsyncTaskDirection extends AsyncTask<Void, Void, Void>{
		@Override
		protected Void doInBackground(Void... params) {
			// TODO Auto-generated method stub

			String uri = URL
					+ "origin=" + start.latitude + "," + start.longitude
					+ "&destination=" + end.latitude + "," + end.longitude
					+ "&sensor=true&units=metric";
			JSONObject jObject = json.getJSONFromURL(uri);
			listDirections = json.getDirection(jObject);
			return null;
		}

		@Override
		protected void onPreExecute() {
			// TODO Auto-generated method stub
			super.onPreExecute();
			pDialog = new ProgressDialog(Direction.this);
			pDialog.setMessage("Loading ....");
			pDialog.setCancelable(true);
			pDialog.show();
		}

		@Override
		protected void onPostExecute(Void result) {
			// TODO Auto-generated method stub
			super.onPostExecute(result);
			pDialog.dismiss();
			gambarDirection();
		}

		private void gambarDirection() {
			// TODO Auto-generated method stub
			PolylineOptions line = new PolylineOptions().width(3).color(Color.BLUE);
			for (int i = 0; i< listDirections.size();i++){
				line.add(listDirections.get(i));
			}
			map.addPolyline(line);
			map.addMarker(new MarkerOptions()
					.position(end)
					.title(nama)
					.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));
		}

	}

	@Override
	public void onMyLocationChange(Location location) {
		Toast.makeText(this, "Lokasi berubah ke " + location.getLatitude() + "," + location.getLongitude(),
				Toast.LENGTH_SHORT).show();
	}
}


text:
package org.netbeans.modules.android.spi;

/**
 *
 * @author arsi
 */
public interface MainActivityConfiguration {

    String getMainActivity();

    boolean isAskBeforeLaunch();

    boolean isUseFromManifest();

    void setAskBeforeLaunch(boolean askBeforeLaunch);

    void setMainActivity(String mainActivity);

    void setUseFromManifest(boolean useFromManifest);

}


text:
<?php
namespace eMacros\Program;

use eMacros\Parser;
use eMacros\Environment\Environment;
use eMacros\GenericList;

abstract class AbstractProgram {
	/**
	 * Program internal expressions
	 * @var \eMacros\GenericList
	 */
	public $expressions;

	public function __construct($program) {
		$this->expressions = Parser::parse($program, true);
	}

	public function offsetGet($offset) {
		return $this->expressions[$offset];
	}

	public function offsetExists($offset) {
		return array_key_exists($offset, $this->expressions);
	}

	public function offsetSet($_, $__) {
		throw new \BadMethodCallException('Program object is immutable');
	}

	public function offsetUnset($_) {
		throw new \BadMethodCallException('Program object is immutable');
	}

	public function getIterator() {
		return new \ArrayIterator($this->expressions);
	}

	public function count() {
		return count($this->expressions);
	}

	public function executeWith(Environment $env, array $args) {
		array_unshift($args, $env);
		return call_user_func_array([$this, 'execute'], $args);
	}

	public abstract function execute(Environment $env);
}
?>


text:
<?xml version="1.0" encoding="UTF-8"?>
<result>
  <exist_field><![CDATA[value]]></exist_field>
  <virtual_value><![CDATA[value]]></virtual_value>
  <test><![CDATA[other-name]]></test>
</result>


text:
//$$CDS-header$$

#include "map2/map_insdel_func.h"

namespace map2 {
    CPPUNIT_TEST_SUITE_REGISTRATION( Map_InsDel_func );

    static const size_t def_nMapSize = 1000000;
    static const size_t def_nInsertThreadCount = 4;
    static const size_t def_nDeleteThreadCount = 4;
    static const size_t def_nEnsureThreadCount = 4;
    static const size_t def_nThreadPassCount = 4;
    static const size_t def_nMaxLoadFactor = 8;

    size_t  Map_InsDel_func::c_nMapSize = def_nMapSize    ;  // map size
    size_t  Map_InsDel_func::c_nInsertThreadCount = def_nInsertThreadCount;  // count of insertion thread
    size_t  Map_InsDel_func::c_nDeleteThreadCount = def_nDeleteThreadCount;  // count of deletion thread
    size_t  Map_InsDel_func::c_nEnsureThreadCount = def_nEnsureThreadCount;  // count of ensure thread
    size_t  Map_InsDel_func::c_nThreadPassCount = def_nThreadPassCount;  // pass count for each thread
    size_t  Map_InsDel_func::c_nMaxLoadFactor = def_nMaxLoadFactor;  // maximum load factor
    bool    Map_InsDel_func::c_bPrintGCState = true;

    void Map_InsDel_func::setUpParams( const CppUnitMini::TestCfg& cfg )
    {
        c_nInsertThreadCount = cfg.getULong("InsertThreadCount", def_nInsertThreadCount );
        c_nDeleteThreadCount = cfg.getULong("DeleteThreadCount", def_nDeleteThreadCount );
        c_nEnsureThreadCount = cfg.getULong("EnsureThreadCount", def_nEnsureThreadCount );
        c_nThreadPassCount = cfg.getULong("ThreadPassCount", def_nThreadPassCount );
        c_nMapSize = cfg.getULong("MapSize", def_nMapSize );
        c_nMaxLoadFactor = cfg.getULong("MaxLoadFactor", def_nMaxLoadFactor );
        c_bPrintGCState = cfg.getBool("PrintGCStateFlag", true );
    }

    void Map_InsDel_func::myRun(const char *in_name, bool invert /*= false*/)
    {
        setUpParams( m_Cfg.get( "Map_InsDel_func" ));

        run_MichaelMap(in_name, invert);
        run_SplitList(in_name, invert);
        run_SkipListMap(in_name, invert);
        run_EllenBinTreeMap(in_name, invert);
        run_BronsonAVLTreeMap(in_name, invert);
        run_StripedMap(in_name, invert);
        run_RefinableMap(in_name, invert);
        run_CuckooMap(in_name, invert);

        endTestCase();
    }
} // namespace map2


text:
@class NSMutableDictionary, NSObject<OS_dispatch_queue>, NSString;

@interface WAUploadFileMgr : MMService <WAAppTaskMgrExt, MMService>
{
    NSMutableDictionary *_dicAppID2UploadHandler;
    NSObject<OS_dispatch_queue> *_workerQueue;
}

- (void).cxx_destruct;
- (void)onAppTaskTerminate:(id)arg1;
- (void)clearUploadHandlerWithAppID:(id)arg1;
- (void)clearAllUploadHandler;
- (id)getAndNewUploadHandlerIfNotExistWithAppID:(id)arg1 appVersion:(unsigned long long)arg2;
- (void)uploadFileWithAppID:(id)arg1 appVersion:(unsigned long long)arg2 isIgnoreCheckDomain:(_Bool)arg3 url:(id)arg4 localID:(id)arg5 fileFieldName:(id)arg6 httpHeaders:(id)arg7 formFields:(id)arg8 completionHandler:(CDUnknownBlockType)arg9;
- (void)onServiceClearData;
- (void)onServiceReloadData;
- (void)onServiceInit;
- (void)dealloc;
- (id)init;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <include layout="@layout/app_bar_main" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true"
        android:scrollbarStyle="outsideOverlay"
        android:scrollbars="vertical">

        <android.support.v7.widget.AppCompatEditText
            android:id="@+id/edittext"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@null"
            android:cursorVisible="true"
            android:gravity="top|start"
            android:inputType="textMultiLine|textImeMultiLine|textNoSuggestions"
            android:textSize="13sp" />

    </ScrollView>

</LinearLayout>


text:
<?php

/* @Framework/Form/choice_widget_collapsed.html.php */
class __TwigTemplate_11c0509a598631ae41db9025f5aa0f008c41d6482154f6f9b0d4ba856eb45b8e extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $__internal_eb9a222fdb6a349868e0a0733bc7a62820561d128c7d7d731f6ea3c37f8a4593 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
        $__internal_eb9a222fdb6a349868e0a0733bc7a62820561d128c7d7d731f6ea3c37f8a4593->enter($__internal_eb9a222fdb6a349868e0a0733bc7a62820561d128c7d7d731f6ea3c37f8a4593_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Framework/Form/choice_widget_collapsed.html.php"));

        $__internal_d4ac6ded392f5b8b1d3c6affa80dd72626abd9636e31f11d08474724abb69f36 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_d4ac6ded392f5b8b1d3c6affa80dd72626abd9636e31f11d08474724abb69f36->enter($__internal_d4ac6ded392f5b8b1d3c6affa80dd72626abd9636e31f11d08474724abb69f36_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Framework/Form/choice_widget_collapsed.html.php"));

        // line 1
        echo "<select
    <?php if (\$required && null === \$placeholder && \$placeholder_in_choices === false && \$multiple === false && (!isset(\$attr['size']) || \$attr['size'] <= 1)):
        \$required = false;
    endif; ?>
    <?php echo \$view['form']->block(\$form, 'widget_attributes', array(
        'required' => \$required,
    )) ?>
    <?php if (\$multiple): ?> multiple=\"multiple\"<?php endif ?>
>
    <?php if (null !== \$placeholder): ?><option value=\"\"<?php if (\$required && empty(\$value) && '0' !== \$value): ?> selected=\"selected\"<?php endif?>><?php echo '' != \$placeholder ? \$view->escape(false !== \$translation_domain ? \$view['translator']->trans(\$placeholder, array(), \$translation_domain) : \$placeholder) : '' ?></option><?php endif; ?>
    <?php if (count(\$preferred_choices) > 0): ?>
        <?php echo \$view['form']->block(\$form, 'choice_widget_options', array('choices' => \$preferred_choices)) ?>
        <?php if (count(\$choices) > 0 && null !== \$separator): ?>
            <option disabled=\"disabled\"><?php echo \$separator ?></option>
        <?php endif ?>
    <?php endif ?>
    <?php echo \$view['form']->block(\$form, 'choice_widget_options', array('choices' => \$choices)) ?>
</select>
";

        $__internal_eb9a222fdb6a349868e0a0733bc7a62820561d128c7d7d731f6ea3c37f8a4593->leave($__internal_eb9a222fdb6a349868e0a0733bc7a62820561d128c7d7d731f6ea3c37f8a4593_prof);

        $__internal_d4ac6ded392f5b8b1d3c6affa80dd72626abd9636e31f11d08474724abb69f36->leave($__internal_d4ac6ded392f5b8b1d3c6affa80dd72626abd9636e31f11d08474724abb69f36_prof);

    }

    public function getTemplateName()
    {
        return "@Framework/Form/choice_widget_collapsed.html.php";
    }

    public function getDebugInfo()
    {
        return array (  25 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Twig_Source("<select
    <?php if (\$required && null === \$placeholder && \$placeholder_in_choices === false && \$multiple === false && (!isset(\$attr['size']) || \$attr['size'] <= 1)):
        \$required = false;
    endif; ?>
    <?php echo \$view['form']->block(\$form, 'widget_attributes', array(
        'required' => \$required,
    )) ?>
    <?php if (\$multiple): ?> multiple=\"multiple\"<?php endif ?>
>
    <?php if (null !== \$placeholder): ?><option value=\"\"<?php if (\$required && empty(\$value) && '0' !== \$value): ?> selected=\"selected\"<?php endif?>><?php echo '' != \$placeholder ? \$view->escape(false !== \$translation_domain ? \$view['translator']->trans(\$placeholder, array(), \$translation_domain) : \$placeholder) : '' ?></option><?php endif; ?>
    <?php if (count(\$preferred_choices) > 0): ?>
        <?php echo \$view['form']->block(\$form, 'choice_widget_options', array('choices' => \$preferred_choices)) ?>
        <?php if (count(\$choices) > 0 && null !== \$separator): ?>
            <option disabled=\"disabled\"><?php echo \$separator ?></option>
        <?php endif ?>
    <?php endif ?>
    <?php echo \$view['form']->block(\$form, 'choice_widget_options', array('choices' => \$choices)) ?>
</select>
", "@Framework/Form/choice_widget_collapsed.html.php", "/Applications/MAMP/htdocs/seriestv/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/choice_widget_collapsed.html.php");
    }
}


text:
package org.apache.beam.runners.flink.translation.functions;

import java.util.Collection;
import java.util.Map;
import org.apache.beam.runners.core.OldDoFn;
import org.apache.beam.sdk.options.PipelineOptions;
import org.apache.beam.sdk.transforms.windowing.BoundedWindow;
import org.apache.beam.sdk.transforms.windowing.PaneInfo;
import org.apache.beam.sdk.util.WindowedValue;
import org.apache.beam.sdk.util.WindowingStrategy;
import org.apache.beam.sdk.values.PCollectionView;
import org.apache.beam.sdk.values.TupleTag;
import org.apache.flink.api.common.functions.RuntimeContext;
import org.apache.flink.util.Collector;
import org.joda.time.Instant;

/** {@link OldDoFn.ProcessContext} for {@link FlinkDoFnFunction} with a single main output. */
class FlinkSingleOutputProcessContext<InputT, OutputT>
    extends FlinkProcessContextBase<InputT, OutputT> {

  private final Collector<WindowedValue<OutputT>> collector;

  FlinkSingleOutputProcessContext(
      PipelineOptions pipelineOptions,
      RuntimeContext runtimeContext,
      OldDoFn<InputT, OutputT> doFn,
      WindowingStrategy<?, ?> windowingStrategy,
      Map<PCollectionView<?>, WindowingStrategy<?, ?>> sideInputs,
      Collector<WindowedValue<OutputT>> collector) {
    super(pipelineOptions, runtimeContext, doFn, windowingStrategy, sideInputs);
    this.collector = collector;
  }

  @Override
  protected void outputWithTimestampAndWindow(
      OutputT value,
      Instant timestamp,
      Collection<? extends BoundedWindow> windows,
      PaneInfo pane) {
    collector.collect(WindowedValue.of(value, timestamp, windows, pane));
  }

  @Override
  public <T> void sideOutput(TupleTag<T> tag, T value) {
    throw new UnsupportedOperationException();
  }

  @Override
  public <T> void sideOutputWithTimestamp(TupleTag<T> tag, T value, Instant timestamp) {
    throw new UnsupportedOperationException();
  }
}


text:
import { combineReducers } from 'redux';

import uiReducer from './ui';
import userReducer from './user';
import searchReducer from './search';
import modelsReducer from './models';
import lookupsReducer from './lookups';
import versionReducer from './version';

export default combineReducers({
  ui      : uiReducer,
  user    : userReducer,
  search  : searchReducer,
  models  : modelsReducer,
  lookups : lookupsReducer,
  version : versionReducer,
});


text:
namespace ui {
namespace ws {

ServerWindowCompositorFrameSinkManager::ServerWindowCompositorFrameSinkManager(
    ServerWindow* window)
    : window_(window),
      waiting_for_initial_frames_(
          window_->properties().count(ui::mojom::kWaitForUnderlay_Property) >
          0) {}

ServerWindowCompositorFrameSinkManager::
    ~ServerWindowCompositorFrameSinkManager() {
}

bool ServerWindowCompositorFrameSinkManager::ShouldDraw() {
  if (!waiting_for_initial_frames_)
    return true;

  waiting_for_initial_frames_ = !IsCompositorFrameSinkReadyAndNonEmpty(
                                    mojom::CompositorFrameSinkType::DEFAULT) ||
                                !IsCompositorFrameSinkReadyAndNonEmpty(
                                    mojom::CompositorFrameSinkType::UNDERLAY);
  return !waiting_for_initial_frames_;
}

void ServerWindowCompositorFrameSinkManager::CreateCompositorFrameSink(
    mojom::CompositorFrameSinkType compositor_frame_sink_type,
    gfx::AcceleratedWidget widget,
    cc::mojom::MojoCompositorFrameSinkRequest request,
    cc::mojom::MojoCompositorFrameSinkClientPtr client) {
  cc::FrameSinkId frame_sink_id(
      WindowIdToTransportId(window_->id()),
      static_cast<uint32_t>(compositor_frame_sink_type));
  CompositorFrameSinkData& data =
      type_to_compositor_frame_sink_map_[compositor_frame_sink_type];
  cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request;
  if (data.pending_compositor_frame_sink_request.is_pending()) {
    private_request = std::move(data.pending_compositor_frame_sink_request);
  } else {
    private_request = mojo::GetProxy(&data.compositor_frame_sink);
  }

  // TODO(fsamuel): AcceleratedWidget cannot be transported over IPC for Mac or
  // Android. We should instead use GpuSurfaceTracker here on those platforms.
  window_->delegate()->GetDisplayCompositor()->CreateCompositorFrameSink(
      frame_sink_id, widget, std::move(request), std::move(private_request),
      std::move(client));

  if (window_->parent()) {
    window_->delegate()
        ->GetRootWindow(window_)
        ->GetOrCreateCompositorFrameSinkManager()
        ->AddChildFrameSinkId(mojom::CompositorFrameSinkType::DEFAULT,
                              frame_sink_id);
  }
}

void ServerWindowCompositorFrameSinkManager::AddChildFrameSinkId(
    mojom::CompositorFrameSinkType compositor_frame_sink_type,
    const cc::FrameSinkId& frame_sink_id) {
  auto it = type_to_compositor_frame_sink_map_.find(compositor_frame_sink_type);
  if (it != type_to_compositor_frame_sink_map_.end()) {
    it->second.compositor_frame_sink->AddChildFrameSink(frame_sink_id);
    return;
  }
  CompositorFrameSinkData& data =
      type_to_compositor_frame_sink_map_[compositor_frame_sink_type];
  data.pending_compositor_frame_sink_request =
      mojo::GetProxy(&data.compositor_frame_sink);
  data.compositor_frame_sink->AddChildFrameSink(frame_sink_id);
}

void ServerWindowCompositorFrameSinkManager::RemoveChildFrameSinkId(
    mojom::CompositorFrameSinkType compositor_frame_sink_type,
    const cc::FrameSinkId& frame_sink_id) {
  auto it = type_to_compositor_frame_sink_map_.find(compositor_frame_sink_type);
  DCHECK(it != type_to_compositor_frame_sink_map_.end());
  it->second.compositor_frame_sink->AddChildFrameSink(frame_sink_id);
}

bool ServerWindowCompositorFrameSinkManager::HasCompositorFrameSinkOfType(
    mojom::CompositorFrameSinkType type) const {
  return type_to_compositor_frame_sink_map_.count(type) > 0;
}

bool ServerWindowCompositorFrameSinkManager::HasAnyCompositorFrameSink() const {
  return HasCompositorFrameSinkOfType(
             mojom::CompositorFrameSinkType::DEFAULT) ||
         HasCompositorFrameSinkOfType(mojom::CompositorFrameSinkType::UNDERLAY);
}

gfx::Size ServerWindowCompositorFrameSinkManager::GetLatestFrameSize(
    mojom::CompositorFrameSinkType type) const {
  auto it = type_to_compositor_frame_sink_map_.find(type);
  if (it == type_to_compositor_frame_sink_map_.end())
    return gfx::Size();

  return it->second.latest_submitted_frame_size;
}

cc::SurfaceId ServerWindowCompositorFrameSinkManager::GetLatestSurfaceId(
    mojom::CompositorFrameSinkType type) const {
  auto it = type_to_compositor_frame_sink_map_.find(type);
  if (it == type_to_compositor_frame_sink_map_.end())
    return cc::SurfaceId();

  return it->second.latest_submitted_surface_id;
}

void ServerWindowCompositorFrameSinkManager::SetLatestSurfaceInfo(
    mojom::CompositorFrameSinkType type,
    const cc::SurfaceId& surface_id,
    const gfx::Size& frame_size) {
  CompositorFrameSinkData& data = type_to_compositor_frame_sink_map_[type];
  data.latest_submitted_surface_id = surface_id;
  data.latest_submitted_frame_size = frame_size;
}

bool ServerWindowCompositorFrameSinkManager::
    IsCompositorFrameSinkReadyAndNonEmpty(
        mojom::CompositorFrameSinkType type) const {
  auto iter = type_to_compositor_frame_sink_map_.find(type);
  if (iter == type_to_compositor_frame_sink_map_.end())
    return false;
  if (iter->second.latest_submitted_frame_size.IsEmpty())
    return false;
  const gfx::Size& latest_submitted_frame_size =
      iter->second.latest_submitted_frame_size;
  return latest_submitted_frame_size.width() >= window_->bounds().width() &&
         latest_submitted_frame_size.height() >= window_->bounds().height();
}

CompositorFrameSinkData::CompositorFrameSinkData() {}

CompositorFrameSinkData::~CompositorFrameSinkData() {}

CompositorFrameSinkData::CompositorFrameSinkData(
    CompositorFrameSinkData&& other)
    : latest_submitted_surface_id(other.latest_submitted_surface_id),
      compositor_frame_sink(std::move(other.compositor_frame_sink)) {}

CompositorFrameSinkData& CompositorFrameSinkData::operator=(
    CompositorFrameSinkData&& other) {
  latest_submitted_surface_id = other.latest_submitted_surface_id;
  compositor_frame_sink = std::move(other.compositor_frame_sink);
  return *this;
}

}  // namespace ws
}  // namespace ui


text:
package org.schedoscope.metascope.model;

import javax.persistence.*;

@Entity
public class MetascopeCategoryObject {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long categoryObjectId;

    @ManyToOne
    private MetascopeCategory category;

    @Column(columnDefinition = "text")
    private String name;

    @Column(columnDefinition = "text")
    private String description;

    public long getCategoryObjectId() {
        return categoryObjectId;
    }

    public void setCategoryObjectId(long categoryObjectId) {
        this.categoryObjectId = categoryObjectId;
    }

    public MetascopeCategory getCategory() {
        return category;
    }

    public void setCategory(MetascopeCategory category) {
        this.category = category;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}


text:
package jeffaschenk.commons.standards.statecodes;

import jeffaschenk.commons.standards.CountryCode;

/**
 * Official ISO-3166 State/Province Codes
 * <p/>
 * Country: Uruguay
 *
 * @author jeffaschenk@gmail.com
 *         Date: May 19, 2010
 *         Time: 12:12:11 PM
 */
@SuppressWarnings("unused")
public enum StateCodes_UY {
    /**
     * State Code Enumerator
     */
    UY_AR("Artigas","UY-AR","Department","18696", CountryCode.URUGUAY),
    UY_DU("Durazno","UY-DU","Department","18699",CountryCode.URUGUAY),
    UY_FS("Flores","UY-FS","Department","18695",CountryCode.URUGUAY),
    UY_FD("Florida","UY-FD","Department","18700",CountryCode.URUGUAY),
    UY_LA("Lavalleja","UY-LA","Department","18709",CountryCode.URUGUAY),
    UY_MA("Maldonado","UY-MA","Department","18701",CountryCode.URUGUAY),
    UY_MO("Montevideo","UY-MO","Department","18702",CountryCode.URUGUAY),
    UY_PA("Paysand\u0250","UY-PA","Department","18694",CountryCode.URUGUAY),
    UY_RV("Rivera","UY-RV","Department","18693",CountryCode.URUGUAY),
    UY_RO("Rocha","UY-RO","Department","18704",CountryCode.URUGUAY),
    UY_RN("R\u0237o Negro","UY-RN","Department","18703",CountryCode.URUGUAY),
    UY_SA("Salto","UY-SA","Department","18705",CountryCode.URUGUAY),
    UY_SJ("San Jos\u0233","UY-SJ","Department","18692",CountryCode.URUGUAY),
    UY_SO("Soriano","UY-SO","Department","18706",CountryCode.URUGUAY),
    UY_TA("Tacuaremb\u0243","UY-TA","Department","18691",CountryCode.URUGUAY),
    UY_TT("Treinta y Tres","UY-TT","Department","18707",CountryCode.URUGUAY),
    UY_X1("","UY-X1","Department","18697",CountryCode.URUGUAY),
    UY_X3("","UY-X3","Department","18698",CountryCode.URUGUAY),
    UY_X2("","UY-X2","Department","18708",CountryCode.URUGUAY);

    // *************************************
    // Common Enum Structure for all
    // States of the World
    private final String stateProvinceName;

    private final String stateCode;

    private final String stateProvinceType;

    private final String stateNumericCode;

    private final CountryCode countryCode;

    StateCodes_UY(String stateProvinceName, String stateCode, String stateProvinceType, String stateNumericCode, CountryCode countryCode) {
        this.stateProvinceName = stateProvinceName;
        this.stateCode = stateCode;
        this.stateProvinceType = stateProvinceType;
        this.stateNumericCode = stateNumericCode;
        this.countryCode = countryCode;
    }

    public String stateProvinceName() {
        return this.stateProvinceName;
    }

    public String stateCode() {
        return this.stateCode;
    }

    public String stateProvinceType() {
        return this.stateProvinceType;
    }

    public String stateNumericCode() {
        return this.stateNumericCode;
    }

    public CountryCode countryCode() {
        return this.countryCode;
    }

}


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/videoProgressLayout"
	android:layout_width="100dp"
	android:layout_height="5dp"
	android:layout_alignParentTop="true"
	android:layout_alignParentRight="true"
	android:layout_margin="15dp"
	android:orientation="vertical"
	android:visibility="gone">

	<ProgressBar
	    android:id="@+id/recordProgressBar"
		android:layout_width="match_parent"
		android:layout_height="5dp"
		style="@android:style/Widget.ProgressBar.Horizontal"/>

</LinearLayout>


text:
package io.quarkus.resteasy.reactive.server.deployment;

import org.jboss.resteasy.reactive.server.core.Deployment;

import io.quarkus.builder.item.SimpleBuildItem;
import io.quarkus.runtime.RuntimeValue;

public final class ResteasyReactiveDeploymentBuildItem extends SimpleBuildItem {

    private final RuntimeValue<Deployment> deployment;
    private final String applicationPath;

    public ResteasyReactiveDeploymentBuildItem(RuntimeValue<Deployment> deployment, String applicationPath) {
        this.deployment = deployment;
        this.applicationPath = applicationPath;
    }

    public RuntimeValue<Deployment> getDeployment() {
        return deployment;
    }

    public String getApplicationPath() {
        return applicationPath;
    }
}


text:
<?php

namespace DTS\eBaySDK\Trading\Enums\Test;

use DTS\eBaySDK\Trading\Enums\TokenReturnMethodCodeType;

class TokenReturnMethodCodeTypeTest extends \PHPUnit_Framework_TestCase
{
    private $obj;

    protected function setUp()
    {
        $this->obj = new TokenReturnMethodCodeType();
    }

    public function testCanBeCreated()
    {
        $this->assertInstanceOf('\DTS\eBaySDK\Trading\Enums\TokenReturnMethodCodeType', $this->obj);
    }
}


text:
/* jshint node: true */
/*
  Credit goes to ember-cli/babel-plugin-feature-flags: https://github.com/ember-cli/babel-plugin-feature-flags
 */
'use strict';
module.exports = function(options) {
  options = options || {};
  options.features = options.features || {};
  options.import = options.import || {};
  options.import.name = options.import.name || 'default';

  if (typeof options.import.module !== 'string') {
    throw new Error("options.import.module must be the name of a module, e.g. 'my-app/features'");
  }

  Object.keys(options.features).forEach(function(feature) {
    var value = options.features[feature];

    if (typeof value === 'string') {
      if (value === 'enabled') {
        options.features[feature] = true;
      } else if (value === 'disabled') {
        options.features[feature] = false;
      } else if (value === 'dynamic') {
        options.features[feature] = null;
      } else {
        throw new Error("An unknown feature state '" + value + "' was detected for '" + feature + "'. Valid values are 'enabled', 'disabled' and 'dynamic'");
      }
    }
  });

  return function(babel) {
    function acceptFeatureCall(callExpression, targetStatement, invert, file, block) {
      var callee = callExpression.get('callee');

      if (callee.referencesImport(options.import.module, options.import.name)) {
        var feature;
        var value;
        if (callExpression.node.arguments[0].elements) {
          feature = callExpression.node.arguments[0].elements[0].value;
        } else {
          feature = callExpression.node.arguments[0].value;
          file.log.warn("You should use featureFlag(['feature']) instead of featureFlag('feature') or the function won't run at runtime");
        }
        if (feature in options.features) {
          value = options.features[feature];
        } else {
          value = false;
          file.log.warn("An unknown feature '" + feature + "' was encountered and removed");
        }
        if (value === !invert) {
          var consequent = targetStatement.node.consequent;
          if (block) {
            targetStatement.replaceWithMultiple(consequent.body);
          } else {
            targetStatement.replaceWith(consequent);
          }
        } else if (value === !!invert) {
          var alternate = targetStatement.node.alternate;
          if (alternate) {
            if (block) {
              targetStatement.replaceWithMultiple(alternate.body);
            } else {
              targetStatement.replaceWith(alternate);
            }
          } else {
            if (block) {
              targetStatement.dangerouslyRemove();
            } else {
              targetStatement.replaceWith('undefined');
            }
          }
        }
      }
    }

    return new babel.Transformer('babel-plugin-feature-flags', {
      IfStatement: function(node, parent, scope, file) {
        var test = this.get('test');
        if (test.isUnaryExpression() && test.node.operator === '!') {
          var argument = test.get('argument');
          if (argument.isCallExpression()) {
            acceptFeatureCall(argument, this, true, file, true);
          }
        } else if (test.isCallExpression()) {
          acceptFeatureCall(test, this, false, file, true);
        }
      },
      ConditionalExpression: function(node, parent, scope, file) {
        var test = this.get('test');
        if (test.isUnaryExpression() && test.node.operator === '!') {
          var argument = test.get('argument');
          if (argument.isCallExpression()) {
            acceptFeatureCall(argument, this, true, file);
          }
        } else if (test.isCallExpression()) {
          acceptFeatureCall(test, this, false, file);
        }
      }
    });
  };
};


text:
class TestsTest : public QObject
{
    Q_OBJECT

public:
    TestsTest();

private Q_SLOTS:
    void initTestCase();
    void cleanupTestCase();
    void testCase1();
};

TestsTest::TestsTest()
{
}

void TestsTest::initTestCase()
{
}

void TestsTest::cleanupTestCase()
{
}

void TestsTest::testCase1()
{
    QVERIFY2(true, "Failure");
}

QTEST_MAIN(TestsTest)

#include "tst_teststest.moc"


text:
<?php

namespace Victoire\Tests\Features\Context;

use Behat\Behat\Hook\Scope\BeforeScenarioScope;
use Behat\Mink\Element\Element;
use Behat\Symfony2Extension\Context\KernelDictionary;
use Knp\FriendlyContexts\Context\MinkContext;
use Knp\FriendlyContexts\Context\RawMinkContext;

/**
 * This class gives some usefull methods for Victoire navigation.
 *
 * @property MinkContext minkContext
 */
class VictoireContext extends RawMinkContext
{
    use KernelDictionary;
    protected $minkContext;

    /** @BeforeScenario */
    public function gatherContexts(BeforeScenarioScope $scope)
    {
        $environment = $scope->getEnvironment();
        $this->minkContext = $environment->getContext('Knp\FriendlyContexts\Context\MinkContext');
    }

    /**
     * @BeforeScenario
     *
     * @param BeforeScenarioScope $scope
     */
    public function resetViewsReference(BeforeScenarioScope $scope)
    {
        $viewsReferences = $this->getContainer()->get('victoire_core.view_helper')->buildViewsReferences();
        $this->getContainer()->get('victoire_view_reference.manager')->saveReferences($viewsReferences);
    }

    /**
     * @Given I am logged in as :email
     */
    public function iAmLoggedInAsUser($email)
    {
        $this->minkContext->visit('/login');
        $this->minkContext->fillField('username', $email);
        $this->minkContext->fillField('password', 'test');
        $this->minkContext->pressButton('_submit');
    }

    /**
     * @Given I login as visitor
     */
    public function iLoginAsVisitor()
    {
        $this->getSession()->getDriver()->stop();
        $url = 'http://z6po@victoire.io:test@fr.victoire.io:8000';
        $this->minkContext->setMinkParameter('base_url', $url);
    }

    /**
     * @Given /^I visit homepage through domain "([^"]*)"$/
     */
    public function ivisitHomepageThroughDomain($domain)
    {
        $this->getSession()->getDriver()->stop();
        $url = sprintf('http://z6po@victoire.io:test@%s:8000/app_domain.php', $domain);
        $this->minkContext->setMinkParameter('base_url', $url);
        $this->minkContext->visitPath('/');
    }

    /**
     * @Then /^I fill in wysiwyg with "([^"]*)"$/
     */
    public function iFillInWysiwygOnFieldWith($arg)
    {
        $js = 'CKEDITOR.instances.victoire_widget_form_ckeditor_content.setData("'.$arg.'");';
        $this->getSession()->executeScript($js);
    }

    /**
     * @Then /^I select "([^"]*)" from the "([^"]*)" select of "([^"]*)" slot$/
     */
    public function iSelectFromTheSelectOfSlot($widget, $nth, $slot)
    {
        $slot = $this->getSession()->getPage()->find('xpath', 'descendant-or-self::*[@id="vic-slot-'.$slot.'"]');
        $selects = $slot->findAll('css', 'select[role="menu"]');
        $selects[$nth - 1]->selectOption(str_replace('\\"', '"', $widget));
    }

    /**
     * @Then /^I switch to "([^"]*)" mode$/
     */
    public function iSwitchToMode($mode)
    {
        $element = $this->findOrRetry($this->getSession()->getPage(), 'xpath', 'descendant-or-self::*[@data-mode="admin-'.$mode.'"]');

        if (null === $element) {
            $message = sprintf('Element not found in the page after 10 seconds"');
            throw new \Behat\Mink\Exception\ResponseTextException($message, $this->getSession());
        }
        $element->click();
    }

    /**
     * @Then /^I (open|close|toggle) the hamburger menu$/
     */
    public function iOpenTheHamburgerMenu()
    {
        $element = $this->findOrRetry($this->getSession()->getPage(), 'xpath', 'descendant-or-self::*[@id="vic-menu-leftnavbar-trigger"]');

        if (null === $element) {
            $message = sprintf('Element not found in the page after 10 seconds"');
            throw new \Behat\Mink\Exception\ResponseTextException($message, $this->getSession());
        }
        $element->click();
    }

    /**
     * @When I follow the tab :name
     */
    public function iFollowTheTab($name)
    {
        $element = $this->findOrRetry($this->getSession()->getPage(), 'xpath', sprintf('descendant-or-self::a[@data-toggle="vic-tab" and normalize-space(text()) = "%s"]', $name));

        if (null === $element) {
            $message = sprintf('Element not found in the page after 10 seconds"');
            throw new \Behat\Mink\Exception\ResponseTextException($message, $this->getSession());
        }
        $element->click();
    }

    /**
     * @Then /^I submit the widget$/
     * @Then /^I submit the modal$/
     */
    public function iSubmitTheWidget()
    {
        $element = $this->getSession()->getPage()->find('xpath', 'descendant-or-self::a[@data-modal="create"]');

        if (!$element) {
            $element = $this->getSession()->getPage()->find('xpath', 'descendant-or-self::a[@data-modal="update"]');
        }
        $element->click();
        $this->getSession()->wait(2000);
    }

    /**
     * @Given /^I edit an "([^"]*)" widget$/
     * @Given /^I edit the "([^"]*)" widget$/
     */
    public function iEditTheWidget($widgetType)
    {
        $selector = sprintf('.vic-widget-%s > a.vic-hover-widget', strtolower($widgetType));
        $session = $this->getSession(); // get the mink session
        $element = $this->findOrRetry($session->getPage(), 'css', $selector);

        // errors must not pass silently
        if (null === $element) {
            throw new \InvalidArgumentException(sprintf('Could not evaluate CSS selector: "%s"', $selector));
        }

        // ok, let's hover it
        $element->mouseOver();
        $element->click();
    }

    /**
     * @Then /^"([^"]*)" should precede "([^"]*)"$/
     */
    public function shouldPrecedeForTheQuery($textBefore, $textAfter)
    {
        $element = $this->getSession()->getPage()->find(
            'xpath',
            sprintf('//*[normalize-space(text()) = "%s"][preceding::*[normalize-space(text()) = "%s"]]',
                $textAfter,
                $textBefore
            )
        );
        if (null === $element) {
            $message = sprintf('"%s" does not preceed "%s"', $textBefore, $textAfter);
            throw new \Behat\Mink\Exception\ResponseTextException($message, $this->getSession());
        }
    }

    /**
     * @When /^I select the option "(?P<option>[^"]*)" in the dropdown "(?P<dropdown>[^"]*)"$/
     */
    public function iSelectTheOptionInTheDropdown($option, $dropdown)
    {
        $link = $this->getSession()->getPage()->find('css', sprintf('a.vic-dropdown-toggle[title="%s"]', $dropdown));
        $link->click();
        $optionButton = $this->getSession()->getPage()->find('css', sprintf('ul[aria-labelledby="%sDropdownMenu"] > li > a[title="%s"]', $dropdown, $option));
        $optionButton->click();
    }

    /**
     * @Then /^I attach image with id "(\d+)" to victoire field "(.+)"$/
     */
    public function attachImageToVictoireScript($imageId, $fieldId)
    {
        $script = sprintf('$("#%s input").val(%d)', $fieldId, $imageId);
        $this->getSession()->executeScript($script);
    }

    /**
     * @Then I should find css element :element with selector :selector and value :value
     */
    public function iShouldFindCssWithSelectorAndValue($element, $selector, $value)
    {
        $css = sprintf('%s[%s="%s"]', $element, $selector, $value);
        $session = $this->getSession();
        $element = $this->findOrRetry($session->getPage(), 'css', $css);

        if (null === $element) {
            $message = sprintf('Element not found. String generate: %s[%s="%s"]', $element, $selector, $value);
            throw new \Behat\Mink\Exception\ResponseTextException($message, $this->getSession());
        }
    }

    /**
     * Try to find value in element and retry for a given time.
     *
     * @param Element $element
     * @param string  $selectorType xpath|css
     * @param string  $value
     * @param int     $timeout
     */
    protected function findOrRetry(Element $element, $selectorType, $value, $timeout = 10000)
    {
        if ($timeout <= 0) {
            return;
        }

        $item = $element->find($selectorType, $value);

        if ($item) {
            return $item;
        } else {
            $this->getSession()->wait(100);

            return $this->findOrRetry($element, $selectorType, $value, $timeout - 100);
        }
    }

    /**
     * @Then I should see disable tab :name
     */
    public function iShouldSeeDisableTab($name)
    {
        $element = $this->findOrRetry($this->getSession()->getPage(), 'xpath', sprintf('descendant-or-self::li[@class="vic-disable" and normalize-space(.) = "%s"]', $name));

        if (null === $element) {
            $message = sprintf('Element not found in the page after 10 seconds"');
            throw new \Behat\Mink\Exception\ResponseTextException($message, $this->getSession());
        }
    }

    /**
     * @Then /^I move the widgetMap "(.+)" "(.+)" the widgetMap "(.*)"$/
     */
    public function iMoveWidgetUnder($widgetMapMoved, $position, $widgetMapMovedTo)
    {
        if (!$widgetMapMovedTo) {
            $widgetMapMovedTo = 'null';
        }
        $js = 'updateWidgetPosition({"parentWidgetMap": '.$widgetMapMovedTo.', "slot": "main_content", "position": "'.$position.'", "widgetMap": '.$widgetMapMoved.'})';

        $this->getSession()->executeScript($js);
    }
}


text:
import * as React from "react";
import {ComponentToViewMapService} from "../ComponentToViewMap";
import {IFormattedDocumentStyle} from "../Interfaces/IFormattedDocumentStyle";
import {FormattedDocumentComponent} from "../Components/FormattedDocumentComponent";

interface FormattedDocumentViewProps {
    value: Array<JSX.Element>;
    style?: IFormattedDocumentStyle;
}

interface FormattedDocumentViewState {
}

export class FormattedDocumentView extends React.Component<FormattedDocumentViewProps, FormattedDocumentViewState> {
    render() {
        return <div>{this.props.value}</div>;
    }
}

ComponentToViewMapService.set(FormattedDocumentComponent, FormattedDocumentView);


text:
import { NextMiddleware, NextResponse, URLPattern } from 'next/server'

export const middleware: NextMiddleware = function (request) {
  const pattern = new URLPattern({
    pathname: '/:path',
  })
  console.log(pattern.test(request.nextUrl.pathname))

  if (request.nextUrl.pathname === '/static') {
    return new NextResponse(null, {
      headers: {
        data: 'hello from middleware',
        'req-url-basepath': request.nextUrl.basePath,
        'req-url-pathname': request.nextUrl.pathname,
        'req-url-query': request.nextUrl.searchParams.get('foo') || '',
        'req-url-locale': request.nextUrl.locale,
      },
    })
  }
}


text:
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" entityID="https://xploreuat.ieee.org/shibboleth-sp">
    <md:Extensions>
      <mdrpi:RegistrationInfo registrationAuthority="http://ukfederation.org.uk"/>
    </md:Extensions>
    <md:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:1.1:protocol urn:oasis:names:tc:SAML:2.0:protocol">
      <md:KeyDescriptor>
        <ds:KeyInfo>
          <ds:X509Data>
            <ds:X509Certificate>
						MIICtjCCAZ6gAwIBAgIEUcCIQjANBgkqhkiG9w0BAQUFADAdMRswGQYDVQQDExJ4cGxvcmV1YXQu
						aWVlZS5vcmcwHhcNMTMwNjE4MTYxODEwWhcNMTYwNjE3MTYxODEwWjAdMRswGQYDVQQDExJ4cGxv
						cmV1YXQuaWVlZS5vcmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCMJ0TBsTib1e6j
						9YowCopEZ42Qa2Sie35zYvVOPBYQtPaFH8vnCvRZM83gVKxj3G8LCyu7XnHfjm8unR5jUn6tmI4N
						H+G13cIwC12p1dkot2SxPTh7H6rWMdJiQMQJ00INgpeKE3dB3D6GxcuWjwYLsts8lvk8IuhCjuIh
						5FwDrFPD0T1HNIArg3y7iE9mMAPWr6lAFwHkHfGl9fb6Ic6ihxeFyDwOfPlmSZV0ivUq7+rteEQY
						b8h4Rr2pSLkL7ZTcYMrLjXFzca8cOdlaf+oTGWFik7/vGrsCAPSdF4tZnJ1xFl+EqOBJyCsGabYi
						TlVsq0dLwi35ewh0/tgTFMiJAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAH5knWR/f9aq52LG1uQO
						YnqWj7GwU+6MT9UxPZllvUVrb0icSxiAAlQ0+PqmQtL59vOYnP/ndFMKR0cYFKBoLMKIGfuo8/4q
						aUyBHHvMbPErbc2518DH4BnD4e6nHY1+2EqispzNkohx2cyHRM/LuvQGjHEFPgV0eadjKT75rPKQ
						d10xGdIKPL1f38NkoMsALGAPI5vhXnMD3xihF1VgIk1jFV96FQh6TBY7TwRBeAwv0MsKx9njtST1
						Giru0Nun+Co7b5Wj3MMzLfAIpvVZEZSPKf7x/BO0Wht7QWpVQQ6jxe4k8oRa9Sze4gIRNPVr5p2W
						YbSvqmDBZaFbuvrNaD4=
					</ds:X509Certificate>
          </ds:X509Data>
        </ds:KeyInfo>
      </md:KeyDescriptor>
      <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://xploreuat.ieee.org/Shibboleth/Shibboleth.sso/SAML2/POST" index="1"/>
      <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign" Location="https://xploreuat.ieee.org/Shibboleth/Shibboleth.sso/SAML2/POST-SimpleSign" index="2"/>
      <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="https://xploreuat.ieee.org/Shibboleth/Shibboleth.sso/SAML2/Artifact" index="3"/>
      <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" Location="https://xploreuat.ieee.org/Shibboleth/Shibboleth.sso/SAML/POST" index="4"/>
    </md:SPSSODescriptor>
    <md:Organization>
      <md:OrganizationName xml:lang="en">The Institute of Electrical And Electronics Engineers, Incorporated</md:OrganizationName>
      <md:OrganizationDisplayName xml:lang="en">IEEE Xplore Digital Library Test SP</md:OrganizationDisplayName>
      <md:OrganizationURL xml:lang="en">http://www.ieee.org/</md:OrganizationURL>
    </md:Organization>
    <md:ContactPerson contactType="support">
      <md:GivenName>Don</md:GivenName>
      <md:SurName>Caldwell</md:SurName>
      <md:EmailAddress>mailto:d.caldwell@ieee.org</md:EmailAddress>
    </md:ContactPerson>
    <md:ContactPerson contactType="technical">
      <md:GivenName>Mehul</md:GivenName>
      <md:SurName>Trivedi</md:SurName>
      <md:EmailAddress>mailto:mh.trivedi@ieee.org</md:EmailAddress>
    </md:ContactPerson>
  </md:EntityDescriptor>


text:
module SimpleSegment
  module Operations
    class Group < Operation
      def call
        request.post('/v1/group', build_payload)
      end

      def build_payload
        raise ArgumentError, 'group_id must be present' \
          unless options[:group_id]

        base_payload.merge(
          traits: options[:traits] && isoify_dates!(options[:traits]),
          groupId: options[:group_id]
        )
      end
    end
  end
end


text:
.. automodule:: insights.parsers.containers_inspect
   :members:
   :show-inheritance:


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">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <title>To view the symbol in the DIScover Browser</title>
  <meta name="Generator" content="Cocoa HTML Writer">
  <meta name="CocoaVersion" content="1265.21">

To view the symbol in the DIScover Browser

Select a symbol within your source pane and click .

If you have the model browser open, you can toggle back and forth between it and your IDE by:

•   clicking  in Borland JBuilder

•   double-clicking an entity or file in the model browser

•   clicking  for a selected entity in Borland JBuilder


text:
package mockstomp

import (
	. "github.com/franela/goblin"
	"github.com/gmallard/stompngo"
	. "github.com/onsi/gomega"
	"testing"
)

func TestPopulator(t *testing.T) {

	g := Goblin(t)
	RegisterFailHandler(func(m string, _ ...int) { g.Fail(m) })

	g.Describe("stomp connection mock", func() {

		var headers stompngo.Headers
		var stompConnection = New()
		var message string

		g.BeforeEach(func() {
			stompConnection.Clear()

			// broker headers
			headers = stompngo.Headers{
				"accept-version", "1.1",
				"login", "admin",
				"passcode", "1234",
				"host", "localhost",
			}

			// message headers
			headers = stompngo.Headers{
				"persistent", "true",
				"destination", "/queue/dedupe",
				"asin", "b000159fau",
				"market", "us",
				"condition", "new",
				"triggered-at", "1252",
				"special_distribution", "true",
			}
			message = "Foo Bar"
		})

		g.It("should be successful with all headers present", func() {
			Expect(stompConnection.Send(headers, message)).To(BeNil())
		})

		g.It("should not be successful if the destination header is blank", func() {
			headers = headers.Delete("destination")
			Expect(stompConnection.Send(headers, message)).NotTo(BeNil())
		})

		g.It("should be able to get messages back afterwards", func() {
			// expected behavior adding to chan
			for i := 0; i < 1000; i++ {
				Expect(stompConnection.Send(headers, message)).To(BeNil())
			}

			// should be messages in the chan
			Expect(len(stompConnection.Messages)).To(Equal(1000))

			// pop the messages off of the chan and verify
			for i := 0; i < 1000; i++ {
				msg := <-stompConnection.Messages
				expectedMessage := &MockStompMessage{
					Order: i,
					Headers: []string{
						"persistent",
						"true",
						"destination",
						"/queue/dedupe",
						"asin",
						"b000159fau",
						"market",
						"us",
						"condition",
						"new",
						"triggered-at",
						"1252",
						"special_distribution",
						"true",
					},
					Message: "Foo Bar",
				}

				Expect(msg).To(Equal(*expectedMessage))
			}
		})

		g.It("should allow for a disconnect request", func() {
			err := stompConnection.Disconnect(stompngo.Headers{})
			Expect(err).NotTo(HaveOccurred())
			Expect(stompConnection.DisconnectCalled).To(BeTrue())
		})

		g.It("should allow a subscription", func() {
			sub, err := stompConnection.Subscribe(stompngo.Headers{})
			Expect(err).NotTo(HaveOccurred())
			Expect(stompConnection.Subscription).ToNot(BeNil())
			Expect(sub).To(Equal(stompConnection.Subscription))

			msg := stompngo.MessageData{
				Message: stompngo.Message{
					Body: []uint8(message),
				},
			}
			stompConnection.PutToSubscribe(msg)
			outMsg := <-sub
			Expect(outMsg.Message.BodyString()).To(Equal(message))
			Expect(string(outMsg.Message.Body)).To(Equal(message))
		})

		g.It("should allow an unsubscribe", func() {
			err := stompConnection.Unsubscribe(stompngo.Headers{})
			Expect(err).NotTo(HaveOccurred())
			Expect(stompConnection.Subscription).To(BeNil())
		})
	})
}


text:
@class UIView;

namespace flutter {
class FlutterPlatformViewsController;

/// Interface that represents an accessibility bridge for iOS.
class AccessibilityBridgeIos {
 public:
  virtual ~AccessibilityBridgeIos() = default;
  virtual UIView* view() const = 0;
  virtual UIView<UITextInput>* textInputView() = 0;
  virtual void DispatchSemanticsAction(int32_t id, flutter::SemanticsAction action) = 0;
  virtual void DispatchSemanticsAction(int32_t id,
                                       flutter::SemanticsAction action,
                                       std::vector<uint8_t> args) = 0;
  virtual FlutterPlatformViewsController* GetPlatformViewsController() const = 0;
};

}  // namespace flutter

#endif  // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_ACCESSIBILITY_BRIDGE_IOS_H_


text:
# bionode-watermill - mappers example pipeline

This example assumes that either you have completed the
[bionode-watermill tutorial](https://github.com/bionode/bionode-watermill-tutorial)
or that you are already comfortable enough to produce your own pipelines
using bionode-watermill.

## Requirements for this example

First of all, you will need to clone bionode-watermill if you haven't done it
 yet: `git clone https://github.com/bionode/bionode-watermill`

Also, you need to have installed:

1) **Node.js** version 7 or higher.
2) **[bionode-ncbi](https://github.com/bionode/bionode-ncbi)** (however, this
one is not really necessary assuming that you
run the examples from within the bionode-watermill folders).
3) **[sra-toolkit](https://www.ncbi.nlm.nih.gov/books/NBK158900/)**
4) **[bowtie2](http://bowtie-bio.sourceforge.net/bowtie2/index.shtml)**
5) **[bwa](http://bio-bwa.sourceforge.net/)**
6) **[samtools](http://samtools.sourceforge.net/)**

However, don't worry you can use [this](https://github.com/bionode/bionode-watermill-tutorial/tree/master/docker-watermill-tutorial)
docker image instead. You can also check the [docker hub repo](https://hub.docker.com/r/tiagofilipe12/bionode-watermill-tutorial/)
if you prefer.

## What for?

This example pipeline intends to download a reference genome of
_Streptococcus pneumoniae_ and the SRA accession 'ERR045788', and then map the
 reads available in this accession against the reference genome.
 Then, some other processes are suggested but you can configure this pipeline
  according to your own needs (which might be a good starting point to
  understand the mechanics of bionode-watermill).

  This example pipeline is available [here](https://github.com/bionode/bionode-watermill/blob/master/examples/pipelines/two-mappers/pipeline.js).

## The Pipeline
### Fetching sequence data

First, we will define a variable `config` that defines the **name** and
 **URL** of the reference genome of _Streptococcus pneumoniae_. Also this
 `config` also has the accession of the desired reads (`sraAccession`).

```javascript
const config = {
  name: 'Streptococcus pneumoniae',
  sraAccession: 'ERR045788',
  referenceURL: 'http://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/007/045/' +
  'GCF_000007045.1_ASM704v1/GCF_000007045.1_ASM704v1_genomic.fna.gz'
}
```

Then we will download both the reference genome as well as the sample reads.
The first one we download using the `config.referenceURL` previously defined:

```javascript
// first lets get the reference genome for our mapping
const getReference = task({
  params: { url: config.referenceURL },
  output: '*_genomic.fna.gz',
  name: 'Download reference genome for ${config.name}'
}, ({ params, dir }) => {
  const { url } = params
  const outfile = url.split('/').pop()

  // essentially curl -O
  return request(url).pipe(fs.createWriteStream(dir + '/' + outfile))
})
```

While for the second one we will use bionode-ncbi to download the reads:

```javascript
//then get samples to work with
const getSamples = task({
  params: {
    db: 'sra',
    accession: config.sraAccession
  },
  output: '**/*.sra',
  dir: process.cwd(), // Set dir to resolve input/output from
  name: 'Download SRA ${config.sraAccession}'
}, ({ params }) => `bionode-ncbi download ${params.db} ${params.accession}`
)
```

Then since the download from SRA returns a `.sra` file, we have to process with
 `fastq-dump` (sra-toolkit) it in order to get the ` .fastq.gz` files
 contained in
 this sra accession.

 ```javascript
// extract the samples from fastq.gz
const fastqDump = task({
  input: '**/*.sra',
  output: [1, 2].map(n => `*_${n}.fastq.gz`),
  name: 'fastq-dump **/*.sra'
}, ({ input }) => `fastq-dump --split-files --skip-technical --gzip ${input}`
)
```

Now, note that we are getting reference and samples in parallel using
**junction** orchestrator:

```javascript
// === PIPELINE ===

const pipeline = join(
  junction(
      getReference,
      join(getSamples,fastqDump)
  ),
  gunzipIt,
  fork(
    join(IndexReferenceBwa, bwaMapper),
    join(indexReferenceBowtie2, bowtieMapper)
  )
)
```

This means that only after both reference and samples have finished
downloading, and in the case of samples being extracted from `.sra` file, the
 remaining tasks will be executed. In this case the tasks within the **fork**
  orchestrator will be performed after the **junction**.

### Mapping

Now, in fact **fork** isn't really necessary in the above example, however,
the idea is for you to continue on your own after this example. For instance
you may try to run `samtools`  after the fork, which will render two
independent results, one for `bowtie` results and another for `bwa` results.
The pipeline would look something like this:

```javascript
// === PIPELINE ===

const pipeline = join(
  junction(
      getReference,
      join(getSamples,fastqDump)
  ),
  gunzipIt,
  fork(
    join(IndexReferenceBwa, bwaMapper),
    join(indexReferenceBowtie2, bowtieMapper)
  ),
  samtoolsStuff
)
```

But, back to mapping! In this example we set up mapping in two types of tasks:

* Reference indexing (`IndexReferenceBwa` and `indexReferenceBowtie2`).
* Mapping (`bwaMapper` and `bowtieMapper`).

Then, we 'forced' each indexing to run before each mapping approach by using
**join** orchestrator. You can check the definition of these tasks
[here](https://github.com/bionode/bionode-watermill/blob/master/examples/pipelines/two-mappers/pipeline.js#L66-L122).

### The challenge! :boom:

Now that you have tasted a simple pipeline that is able to map sequences from
 NCBI SRA against a reference genome using two different mappers, feel free
 to test some usages with the output files of the mapping.
 One useful example would be to use samtools to obtain the 'mapping depth' of
  your mapping results. Something like: `samtools faidx` --> `samtools view`
  --> `samtools sort` --> `samtools index` --> `samtools depth`.

If you run into trouble, you can find an example of this pipeline
[here](https://github.com/bionode/bionode-watermill/tree/master/examples/pipelines/two-mappers/pipeline_lazy.js).


text:
require 'polyglot'
require 'stringio'

require 'activefacts/support'
require 'activefacts/input/cql'

if (require 'activefacts/generators/ruby' rescue nil)
  module ActiveFacts
    # This class has a load method for Polyglot to tell it how to _require_ a CQL file.
    # The CQL file is parsed to a vocabulary constellation, which is generated
    # to Ruby code and eval'd, making the generated classes available.
    # To make this Loader available, simply
    #   require 'activefacts/cql'
    class CQLLoader
      def self.load(file) #:nodoc:
        trace "Loading #{file}" do
          vocabulary = ActiveFacts::Input::CQL.readfile(file)

          ruby = StringIO.new
          @dumper = ActiveFacts::Generators::RUBY.new(vocabulary.constellation)
          @dumper.generate(ruby)
          ruby.rewind
          eval ruby.read, ::TOPLEVEL_BINDING
        end
      end
    end

    Polyglot.register('cql', CQLLoader)
  end
end


text:
.margem-lista {
	border: 1px solid black;
	background: white;
}
#lista-medicamentos span {
	display: block;
}

#lista-medicamentos span:hover {
	background: whitesmoke;
	cursor: pointer;
	font-weight: bold;
}


text:
var helper = require(__dirname + '/../test/test-helper');

console.log();
console.log("testing ability to connect to '%j'", helper.config);
var pg = require(__dirname + '/../lib');
pg.connect(helper.config, function(err, client) {
  if(err !== null) {
    console.error("Recieved connection error when attempting to contact PostgreSQL:");
    console.error(err);
    process.exit(255);
  }
  console.log("Checking for existance of required test table 'person'")
  client.query("SELECT COUNT(name) FROM person", function(err, callback) {
    if(err != null) {
      console.error("Recieved error when executing query 'SELECT COUNT(name) FROM person'")
      console.error("It is possible you have not yet run the table create script under script/create-test-tables")
      console.error("Consult the postgres-node wiki under the 'Testing' section for more information")
      console.error(err);
      process.exit(255);
    }
    pg.end();
  })
})