text:
<?php

namespace Drupal\webform_ui\Form;

use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\RendererInterface;
use Drupal\webform\Form\WebformDialogFormTrait;
use Drupal\webform\WebformEntityElementsValidatorInterface;
use Drupal\webform\WebformInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Webform for deleting a webform element.
 */
class WebformUiElementDeleteForm extends ConfirmFormBase {

  use WebformDialogFormTrait;

  /**
   * The renderer.
   *
   * @var \Drupal\Core\Render\RendererInterface
   */
  protected $renderer;

  /**
   * Webform element validator.
   *
   * @var \Drupal\webform\WebformEntityElementsValidator
   */
  protected $elementsValidator;

  /**
   * The webform containing the webform handler to be deleted.
   *
   * @var \Drupal\webform\WebformInterface
   */
  protected $webform;

  /**
   * A webform element.
   *
   * @var \Drupal\webform\Plugin\WebformElementInterface
   */
  protected $webformElement;

  /**
   * The webform element key.
   *
   * @var string
   */
  protected $key;

  /**
   * The webform element.
   *
   * @var array
   */
  protected $element;

  /**
   * Constructs a WebformUiElementDeleteForm.
   *
   * @param \Drupal\Core\Render\RendererInterface $renderer
   *   The renderer.
   * @param \Drupal\webform\WebformEntityElementsValidatorInterface $elements_validator
   *   Webform element validator.
   */
  public function __construct(RendererInterface $renderer, WebformEntityElementsValidatorInterface $elements_validator) {
    $this->renderer = $renderer;
    $this->elementsValidator = $elements_validator;
  }

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container) {
    return new static(
      $container->get('renderer'),
      $container->get('webform.elements_validator')
    );
  }

  /**
   * {@inheritdoc}
   */
  public function getDescription() {
    $t_args = [
      '%element' => $this->getElementTitle(),
      '%webform' => $this->webform->label(),
    ];

    $build = [];
    if ($this->webformElement->isContainer($this->element)) {
      $build['warning'] = [
        '#markup' => $this->t('This will immediately delete the %element container and all nested elements within %element from the %webform webform. This cannot be undone.', $t_args),
      ];
    }
    else {
      $build['warning'] = [
        '#markup' => $this->t('This will immediately delete the %element element from the %webform webform. This cannot be undone.', $t_args),
      ];
    }

    if ($this->element['#webform_children']) {
      $build['elements'] = $this->getDeletedElementsItemList($this->element['#webform_children']);
      $build['elements']['#title'] = t('The below nested elements will be also deleted.');
    }

    return $this->renderer->renderPlain($build);
  }

  /**
   * Get deleted elements as item list.
   *
   * @param array $children
   *   An array child key.
   *
   * @return array
   *   A render array representing an item list of elements.
   */
  protected function getDeletedElementsItemList(array $children) {
    if (empty($children)) {
      return [];
    }

    $items = [];
    foreach ($children as $key) {
      $element = $this->webform->getElement($key);
      if (isset($element['#title'])) {
        $title = new FormattableMarkup('@title (@key)', ['@title' => $element['#title'], '@key' => $key]);
      }
      else {
        $title = $key;
      }
      $items[$key]['title'] = ['#markup' => $title];
      if ($element['#webform_children']) {
        $items[$key]['items'] = $this->getDeletedElementsItemList($element['#webform_children']);
      }
    }

    return [
      '#theme' => 'item_list',
      '#items' => $items,
    ];
  }

  /**
   * {@inheritdoc}
   */
  public function getQuestion() {
    return $this->t('Are you sure you want to delete the %title element from the %webform webform?', ['%webform' => $this->webform->label(), '%title' => $this->getElementTitle()]);
  }

  /**
   * {@inheritdoc}
   */
  public function getConfirmText() {
    return $this->t('Delete');
  }

  /**
   * {@inheritdoc}
   */
  public function getCancelUrl() {
    return $this->webform->toUrl('edit-form');
  }

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'webform_ui_element_delete_form';
  }

  /**
   * {@inheritdoc}
   */
  public function buildForm(array $form, FormStateInterface $form_state, WebformInterface $webform = NULL, $key = NULL) {
    $this->webform = $webform;
    $this->key = $key;
    $this->element = $webform->getElement($key);

    if ($this->element === NULL) {
      throw new NotFoundHttpException();
    }

    /** @var \Drupal\webform\Plugin\WebformElementManagerInterface $element_manager */
    $element_manager = \Drupal::service('plugin.manager.webform.element');
    $plugin_id = $element_manager->getElementPluginId($this->element);
    $this->webformElement = $element_manager->createInstance($plugin_id, $this->element);

    $form = parent::buildForm($form, $form_state);
    $form = $this->buildDialogConfirmForm($form, $form_state);
    return $form;
  }

  /**
   * {@inheritdoc}
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->webform->deleteElement($this->key);
    $this->webform->save();

    drupal_set_message($this->t('The webform element %title has been deleted.', ['%title' => $this->getElementTitle()]));
    $form_state->setRedirectUrl($this->webform->toUrl('edit-form'));
  }

  /**
   * Get the webform element's title or key.
   *
   * @return string
   *   The webform element's title or key,
   */
  protected function getElementTitle() {
    return (!empty($this->element['#title'])) ? $this->element['#title'] : $this->key;
  }

}


text:
namespace FluentMigrator
{
    /// <summary>
    /// The constraint type as supported by SQL Anywhere
    /// </summary>
    public enum SqlAnywhereConstraintType
    {
        /// <summary>
        /// The index/unique constraint should be clustered
        /// </summary>
        Clustered,

        /// <summary>
        /// The index/unique constraint should not be clustered
        /// </summary>
        NonClustered
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.hazelcast.core.server;

import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;

import static com.hazelcast.internal.nio.IOUtil.closeResource;

/**
 * Starts a Hazelcast Member.
 */
public final class HazelcastMemberStarter {

    private HazelcastMemberStarter() {
    }

    /**
     * Creates a server instance of Hazelcast.
     * <p>
     * If user sets the system property "print.port", the server writes the port number of the Hazelcast instance to a file.
     * The file name is the same as the "print.port" property.
     *
     * @param args none
     */
    public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException {
        System.setProperty("hazelcast.tracking.server", "true");
        HazelcastInstance hz = Hazelcast.newHazelcastInstance();
        printMemberPort(hz);
    }

    private static void printMemberPort(HazelcastInstance hz) throws FileNotFoundException, UnsupportedEncodingException {
        String printPort = System.getProperty("print.port");
        if (printPort != null) {
            PrintWriter printWriter = null;
            try {
                printWriter = new PrintWriter("ports" + File.separator + printPort, "UTF-8");
                printWriter.println(hz.getCluster().getLocalMember().getAddress().getPort());
            } finally {
                closeResource(printWriter);
            }
        }
    }
}


text:
define([
    'backbone',
    'find/app/page/search/filters/parametric/parametric-select-modal-view'
], function(Backbone, ParametricSelectModalView) {
    'use strict';

    describe('Parametric Select Modal View', function() {
        beforeEach(function() {
            this.selectedParametricValues = new Backbone.Collection([
                {field: 'AUTHOR', displayName: 'Author', value: 'Matthew', displayValue: 'Matthew', type: 'Parametric'}
            ]);

            const queryModel = new Backbone.Model({
                indexes: ['WIKIPEDIA'],
                autoCorrect: false,
                queryText: 'cat',
                fieldText: null,
                minScore: 50,
                stateTokens: []
            });

            queryModel.getIsoDate = jasmine.createSpy('getIsoDate').and.returnValue(null);

            this.view = new ParametricSelectModalView({
                queryModel: queryModel,
                initialField: 'CATEGORY',
                selectedParametricValues: this.selectedParametricValues,
                indexesCollection: new Backbone.Collection([
                    {name: 'BROADCAST'},
                    {name: 'WIKIPEDIA'}
                ]),
                parametricFieldsCollection: new Backbone.Collection([
                    {id: 'AUTHOR', displayName: 'Author', type: 'Parametric'},
                    {id: 'PLACE', displayName: 'Place', type: 'Parametric'},
                    {id: 'CATEGORY', displayName: 'Category', type: 'Parametric'}
                ])
            });

            this.view.render();
        });

        afterEach(function() {
            this.view.remove();
        });

        it('renders each field as a tab', function() {
            const $tabs = this.view.$('.fields-list a');
            expect($tabs).toHaveLength(3);
            expect($tabs.eq(0)).toContainText('Author');
            expect($tabs.eq(1)).toContainText('Place');
            expect($tabs.eq(2)).toContainText('Category');
        });

        it('selects the initialField', function() {
            expect(this.view.$('.fields-list [data-field="CATEGORY"]')).toHaveClass('active');

            expect(this.view.$('.fields-list [data-field="AUTHOR"]')).not.toHaveClass('active');
            expect(this.view.$('.fields-list [data-field="PLACE"]')).not.toHaveClass('active');
        });

        it('creates a list view for each field', function() {
            expect(this.view.$('.values-list .tab-pane')).toHaveLength(3);
        });

        describe('when a different field tab is clicked', function() {
            beforeEach(function() {
                this.view.$('.fields-list [data-field="AUTHOR"] a').click();
            });

            it('selects the new field', function() {
                expect(this.view.$('.fields-list [data-field="AUTHOR"]')).toHaveClass('active');

                expect(this.view.$('.fields-list [data-field="CATEGORY"]')).not.toHaveClass('active');
                expect(this.view.$('.fields-list [data-field="PLACE"]')).not.toHaveClass('active');
            });
        });
    });
});


text:
package getFile;

import es.bsc.compss.types.annotations.Constraints;
import es.bsc.compss.types.annotations.Parameter;
import es.bsc.compss.types.annotations.parameter.Type;
import es.bsc.compss.types.annotations.parameter.Direction;
import es.bsc.compss.types.annotations.task.Method;

public interface GetFileItf {

    @Constraints(computingUnits = "1")
    @Method(declaringClass = "getFile.GetFileImpl")
    void writeInFile(@Parameter(type = Type.FILE, direction = Direction.INOUT) String file,
        @Parameter(direction = Direction.IN) int i);

    @Constraints(computingUnits = "1")
    @Method(declaringClass = "getFile.GetFileImpl")
    void readInFile(@Parameter(type = Type.FILE, direction = Direction.IN) String file);

}


text:
//
// File: AggregateValueConverter.cs
// Author: Casper Sørensen
//
//   Copyright 2017 Casper Sørensen
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.
//
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace SimplyMail.WPF.Views.Converters
{
    class AggregateValueConverter : List<IValueConverter>, IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return this.Aggregate(value, (current, converter) => converter.Convert(current, targetType, parameter, culture));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}


text:
//  Copyright (c) 2005, Regents of the University of California
//  All rights reserved.
//
//  Redistribution and use in source and binary forms, with or without
//  modification, are permitted provided that the following conditions are
//  met:
//
//    * Redistributions of source code must retain the above copyright notice,
//  this list of conditions and the following disclaimer.
//    * Redistributions in binary form must reproduce the above copyright
//  notice, this list of conditions and the following disclaimer in the
//  documentation and/or other materials provided with the distribution.
//    * Neither the name of the University of California, San Diego (UCSD) nor
//  the names of its contributors may be used to endorse or promote products
//  derived from this software without specific prior written permission.
//
//  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
//  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
//  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
//  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
//  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
//  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
//  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
//  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
//  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
//  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
//  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//
//  FILE
//  RemoteRandomAccessFile.java  -  edu.sdsc.grid.io.RemoteRandomAccessFile
//
//  CLASS HIERARCHY
//  java.lang.Object
//      |
//      +-.GeneralRandomAccessFile
//          |
//          +-.RemoteRandomAccessFile
//
//  PRINCIPAL AUTHOR
//  Lucas Gilbert, SDSC/UCSD
//
//
package edu.sdsc.grid.io;

import java.io.IOException;

/**
 * An abstract class which extends GeneralRandomAccessFile to create remote
 * random access files.
 *
 * @author Lucas Gilbert
 * @since JARGON1.0
 */
public abstract class RemoteRandomAccessFile extends GeneralRandomAccessFile {

	/**
	 * Doesn't really do much, perhaps in the future. Instead @see
	 * GeneralRandomAccessFile or the subclass which called this constructor.
	 *
	 * @throws IOException
	 *             if the file is a directory rather than a regular file, or
	 *             cannot be opened or created for any other reason
	 */
	protected RemoteRandomAccessFile(RemoteFile file, String mode)
			throws IOException {
		super(file, mode);
	}

}


text:
using DiscUtils.Streams;
using System.Linq;
using Xunit;

namespace LibraryTests.Buffers
{
    public class BufferTest
    {
        [Fact]
        public void SparseMemoryBufferClear()
        {
            SparseMemoryBuffer memoryBuffer = new SparseMemoryBuffer(10);
            byte[] buffer = new byte[20];

            memoryBuffer.Write(0, buffer, 0, 20);
            Assert.Equal(2, memoryBuffer.AllocatedChunks.Count());
            memoryBuffer.Clear(0, 20);
            Assert.Equal(0, memoryBuffer.AllocatedChunks.Count());

            memoryBuffer.Write(0, buffer, 0, 15);
            Assert.Equal(2, memoryBuffer.AllocatedChunks.Count());
            memoryBuffer.Clear(0, 15);
            Assert.Equal(1, memoryBuffer.AllocatedChunks.Count());
        }
    }
}


text:
<?php
/**
 * @file
 * Contains RoboFileDrupalDeploy.
 *
 * Defines the methods which must be implemented to be compatible with the
 * University of Adelaide build server.
 */

/**
 * Interface RoboFileDrupalDeploy.
 */
interface RoboFileDrupalDeployInterface {
  /**
   * Perform a build for automated deployments.
   *
   * Don't install anything, just build the code base.
   */
  public function distributionBuild();

  /**
   * Install a brand new site for a given environment.
   */
  public function environmentBuild();

  /**
   * Rebuild the environment image.
   *
   * I.e. Deploy a new release.
   */
  public function environmentRebuild();

}


text:
using System;
#endregion
namespace SimpleFramework.Xml.Core {
   /// <summary>
   /// The <c>ClassInstance</c> object is used to create an object
   /// by using a <c>Class</c> to determine the type. If the given
   /// class can not be instantiated then this throws an exception when
   /// the instance is requested. For performance an instantiator is
   /// given as it contains a reflection cache for constructors.
   /// </summary>
   class ClassInstance : Instance {
      /// <summary>
      /// This is the instantiator used to create the objects.
      /// </summary>
      private Instantiator creator;
      /// <summary>
      /// This represents the value of the instance if it is set.
      /// </summary>
      private Object value;
      /// <summary>
      /// This is the type of the instance that is to be created.
      /// </summary>
      private Class type;
      /// <summary>
      /// Constructor for the <c>ClassInstance</c> object. This is
      /// used to create an instance of the specified type. If the given
      /// type can not be instantiated then an exception is thrown.
      /// </summary>
      /// <param name="creator">
      /// this is the creator used for the instantiation
      /// </param>
      /// <param name="type">
      /// this is the type that is to be instantiated
      /// </param>
      public ClassInstance(Instantiator creator, Class type) {
         this.creator = creator;
         this.type = type;
      }
      /// <summary>
      /// This method is used to acquire an instance of the type that
      /// is defined by this object. If for some reason the type can
      /// not be instantiated an exception is thrown from this.
      /// </summary>
      /// <returns>
      /// an instance of the type this object represents
      /// </returns>
      public Object Instance {
         get {
            if(value == null) {
               value = creator.GetObject(type);
            }
            return value;
         }
      }
      //public Object GetInstance() {
      //   if(value == null) {
      //      value = creator.GetObject(type);
      //   }
      //   return value;
      //}
      /// This method is used acquire the value from the type and if
      /// possible replace the value for the type. If the value can
      /// not be replaced then an exception should be thrown. This
      /// is used to allow primitives to be inserted into a graph.
      /// </summary>
      /// <param name="value">
      /// this is the value to insert as the type
      /// </param>
      /// <returns>
      /// an instance of the type this object represents
      /// </returns>
      public Object SetInstance(Object value) {
         return this.value = value;
      }
      /// <summary>
      /// This is the type of the object instance that will be created
      /// by the <c>getInstance</c> method. This allows the
      /// deserialization process to perform checks against the field.
      /// </summary>
      /// <returns>
      /// the type of the object that will be instantiated
      /// </returns>
      public Class Type {
         get {
            return type;
         }
      }
      //public Class GetType() {
      //   return type;
      //}
      /// This is used to determine if the type is a reference type.
      /// A reference type is a type that does not require any XML
      /// deserialization based on its annotations. Values that are
      /// references could be substitutes objects or existing ones.
      /// </summary>
      /// <returns>
      /// this returns true if the object is a reference
      /// </returns>
      public bool IsReference() {
         return false;
      }
   }
}


text:
package com.google.cloud.datacatalog.v1.samples;

// [START datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_Policytag_sync]
import com.google.cloud.datacatalog.v1.PolicyTag;
import com.google.cloud.datacatalog.v1.PolicyTagManagerClient;

public class SyncUpdatePolicyTagPolicytag {

  public static void main(String[] args) throws Exception {
    syncUpdatePolicyTagPolicytag();
  }

  public static void syncUpdatePolicyTagPolicytag() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
      PolicyTag policyTag = PolicyTag.newBuilder().build();
      PolicyTag response = policyTagManagerClient.updatePolicyTag(policyTag);
    }
  }
}
// [END datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_Policytag_sync]


text:
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>W28787_text</title>
        <link rel="stylesheet" type="text/css" href="style.css" />

                «

    <p class="styleSans732.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">AREA OF DISTURBANCE —- 8.8 ACRESi REVISED: 11—13—2012

See Continental Resourc Far Pit Spacing
5 § § D. é 5
ALL INDICATED ESTEMATED EARTH QUANTIllES CONTINENTAL RESOURCES INC. CUTS & FILLS
TO —SOIL~ 6,480 CUBIC RD ARE STAKED PO BOX 258870 SUIE—SOIL' 43.703 CUBIC KRDE GRADE ELEVAOKLAHOMA ClTY, OKLAHOMA 73126 W "CNS TOTAL CUT: 50353 CUBIC YARDS BACKSLOPES
TOTAL FILL: 35.034 CUBIC YARDS ASSUMED
DRILIfigigLJEwg-lz-EAHYOUT Use excess materials in access road fill A1— 1 1 2 : 1 %
DNSIEEngguég "8% +35%" Ground Elevation at Well Head: 2430.5 ft. ASL '" K FInished Rig Grade Elevation: 2424.0 ft. ASL
DRAFT: HEDGE SCALE 1 = 100 DATE: 11—13-2012 PROJECT NO. 12—10


text:
int sudoku_generate(int * grid);
int sudoku_solve(int * grid);
int sudoku_classic(int * grid, int empty);


text:
/*
 * wizard methods unit tests
 */

(function( $ ) {

module( "wizard: methods", {
	setup: function() {
		$w = $( "#wizard" ).wizard();
	}
});

test( "backward", function() {
	expect( 4 );

	$w.wizard( "select", -1 );

	equal( $w.wizard( "backward" ).wizard( "stepIndex" ), 6, "Backward" );
	equal( $w.wizard( "backward", $.Event( "click" ) ).wizard( "stepIndex" ), 5,
		"Backward, event as first argument" );
	equal( $w.wizard( "backward", 2 ).wizard( "stepIndex" ), 3, "Backward, multiple steps" );
	equal( $w.wizard( "backward", 99 ).wizard( "stepIndex" ), 0,
		"Backward, multiple steps, normalized to first step" );
});

test( "branch", function() {
	expect( 3 );

	equal( $w.wizard( "branch" ).attr( "id" ), "form", "Current branch" );
	equal( $w.wizard( "branch", "branch-1" ).attr( "id" ), "branch-1",
		"Find a specific branch via branch label" );
	equal( $w.wizard( "branch", 0 ).attr( "id" ), "form",
		"Find a specific branch via branch index" );
});

test( "branches", function() {
	expect( 2 );

	equal( $w.wizard( "branches" ).length, 4, "Wizard has 4 branches" );
	equal( $w.wizard( "branches", "branch-1" ).length, 1, "Found 1 branch inside 'branch-1'" );
});

test( "branchesActivated", function() {
	expect( 3 );

	equal( $w.wizard( "branchesActivated" ).length, 1, "One branch has been activated" );
	equal( $w.wizard( "forward" ).wizard( "branchesActivated" ).length, 2,
		"Two branches have been activated" );
	equal( $w.wizard( "select", -1 ).wizard( "branchesActivated" ).length, 4,
		"All branches have been activated" );
});

test( "destroy", function() {
	expect( 2 );

	ok( $w.hasClass( "wizard" ) && $w.data( "kf-wizard" ), "Wizard has been created" );
	ok( !$w.wizard( "destroy" ).hasClass( "wizard" ) && !$w.data( "kf-wizard" ),
		"Wizard has been destroyed" );
});

test( "form", function() {
	expect( 3 );

	equal( $w.wizard( "form" )[0].tagName, "FORM", "#wizard has a form" );
	equal( $( "#wizard2" ).wizard().wizard( "form" )[0].tagName, "FORM", "#wizard2 has a form" );
	equal( $( "#wizard3" ).wizard().wizard( "form" )[0].tagName, "FORM", "#wizard3 has a form" );
});

test( "forward", function() {
	expect( 5 );

	equal( $w.wizard( "forward" ).wizard( "stepIndex" ), 1, "Forward" );
	equal( $w.wizard( "forward", $.Event( "click" ) ).wizard( "stepIndex" ), 2,
		"Forward, event as first argument" );
	equal( $w.wizard( "forward", 2 ).wizard( "stepIndex" ), 4, "Forward, multiple steps" );
	equal( $w.wizard( "forward", 99 ).wizard( "stepIndex" ), 7,
		"Forward, multiple steps, normalized to last step" );
	equal( $w.wizard( "select", 0 )
		.wizard( "forward", 3, false )
		.wizard( "stepsActivated" ).length, 2,
		"Forward, multiple steps, no history" );
});

test( "isValidStep", function() {
	expect( 6 );

	ok( $w.wizard( "isValidStep", 0 ), "Validate step by index" );
	ok( $w.wizard( "isValidStep", "finish" ), "Validate step by ID" );
	ok( $w.wizard( "isValidStep", $( "#finish" ) ), "Validate step by jQuery object" );
	ok( !$w.wizard( "isValidStep", $( "#wizard2 .step" ).eq( 0 ) ),
		"Invalidates a step that is not in the wizard" );
	ok( !$w.wizard( "isValidStep", 8 ), "Invalidates a faulty step index" );
	ok( $w.wizard( "isValidStep", -2 ), "Negative step indexes may be used" );
});

test( "isValidStepIndex", function() {
	expect( 5 );

	ok( $w.wizard( "isValidStepIndex", 0 ) );
	ok( $w.wizard( "isValidStepIndex", 7 ) );
	ok( !$w.wizard( "isValidStepIndex", 8 ), "Step index does not exist in wizard" );
	ok( !$w.wizard( "isValidStepIndex", -1 ), "Negative indexes are invalid" );
	ok( !$w.wizard( "isValidStepIndex", "string" ), "Invalid because index is not a number" );
});

test( "stepCount", function() {
	var $wizard = $( ".wizard" );

	expect( $wizard.length );

	$wizard.each(function() {
		var $this = $( this );

		ok( $this.wizard().wizard( "stepCount" ) > 0,
			"Found steps in wizard '" + $this.attr( "id" ) + "'" );
	});
});

test( "select", function() {
	expect( 7 );

	equal( $w.wizard( "select", 1 ).wizard( "stepIndex" ), 1, "Select step by index" );
	equal( $w.wizard( "select", -1 ).wizard( "stepIndex" ), 7, "Select step with negative index" );
	equal( $w.wizard( "select", "finish" ).wizard( "stepIndex" ), 7, "Select a step by ID" );
	equal( $w.wizard( "select", "branch-1" ).wizard( "stepIndex" ), 1,
		"Select a step by branch ID" );
	equal( $w.wizard( "select", "branch-1", 1 ).wizard( "stepIndex" ), 2,
		"Select a step relative to a branch" );
	equal( $w.wizard( "select", -2, true ).wizard( "stepIndex" ), 0,
		"Select a step relative to the current step" );
	equal( $w.wizard( "select", 2, true, false ).wizard( "stepsActivated" ).length, 2,
		"Select a step without keeping history" );
});

test( "state", function() {
	expect( 4 );

	equal( $w.wizard( "state" ).stepIndex, 0, "Current state" );
	equal( $w.wizard( "state", 1 ).stepIndex, 1, "State for step index 1" );
	equal( $w.wizard( "state", 2 ).stepsActivated.length, 2,
		"State for step index 2, without history" );
	equal( $w.wizard( "state", 2, [ 0, 1, 2 ] ).stepsActivated.length, 3,
		"State for step index 2, with history" );
});

test( "step", function() {
	expect( 15 );

	ok( $w.wizard( "step" ).length, "Find current step" );
	ok( $w.wizard( "step", 1 ).length, "Find a step by index" );
	ok( $w.wizard( "step", -1 ).length, "Find a step by negative index" );
	ok( $w.wizard( "step", "finish" ).length, "Find a step by ID" );
	ok( $w.wizard( "step", $( "#finish" ) ).length, "Find a step by jQuery object" );
	ok( $w.wizard( "step", $( "#finish" )[0] ).length, "Find a step by DOM element" );
	ok( $w.wizard( "step", "branch-1" ).length, "Find a step by branch ID" );
	ok( $w.wizard( "step", $( "#branch-1" ) ).length, "Find a step by branch jQuery object" );
	ok( $w.wizard( "step", $( "#branch-1" )[0] ).length, "Select a step by branch DOM element" );
	ok( $w.wizard( "step", "branch-1", 1 ).length, "Find a step within a branch" );
	ok( $w.wizard( "step", 1, "branch-1" ).length, "Alternative way to find a step within a branch" );

	ok( !$w.wizard( "step", 99 ).length, "Step index is not valid" );
	ok( !$w.wizard( "step", null ).length, "Null is not valid" );
	ok( !$w.wizard( "step", undefined ).length, "Undefined is not valid" );
	ok( !$w.wizard( "step", "doesnotexist" ).length, "ID is not valid" );
});

test( "stepIndex", function() {
	expect( 4 );

	equal( $w.wizard( "stepIndex" ), 0, "Index of current step" );
	equal( $w.wizard( "stepIndex", 1 ), 1, "Index of step 1" );
	equal( $w.wizard( "stepIndex", "branch-1", 1 ), 2,
		"The index of the second step in branch 'branch-1'" );
	equal( $w.wizard( "stepIndex", "branch-1", 1, true ), 1,
		"The index of the second step in branch 'branch-1' relative to the branch" );
});

test( "steps", function() {
	expect( 2 );

	equal( $w.wizard( "steps" ).length, 8, "Get all of the steps in the wizard" );
	equal( $w.wizard( "steps", "branch-1" ).length, 2,
		"Get all of the steps in the 'branch-1' branch" );
});

test( "stepsActivated", function() {
	expect( 3 );

	equal( $w.wizard( "stepsActivated" ).length, 1, "One step has been activated" );
	equal( $w.wizard( "forward" ).wizard( "stepsActivated" ).length, 2,
		"Two steps have been activated" );
	equal( $w.wizard( "select", -1 ).wizard( "stepsActivated" ).length, 8,
		"All steps have been activated" );
});

test( "submit", function() {
	expect( 1 );

	$w.wizard( "form" ).submit(function() {
		ok( true, "Form submission was successful" );
		return false;
	});

	$w.wizard( "submit" );
});

})( jQuery );


text:
<!doctype html>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="/_resources/css/reset.css"/>
<link rel="stylesheet"
      type="text/css"
      href="/_resources/css/normalize.css"/>
<link rel="stylesheet"
      href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"/>
<link rel="stylesheet"
      href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.css"/>
<link rel="stylesheet"
      href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
<link rel="stylesheet" type="text/css" href="/_resources/css/vusn2.css"/>
<link rel="stylesheet"
      type="text/css"
      href="/_resources/css/print.css"
      media="print"/>
<link rel="stylesheet" href="/_resources/css/animate.css"/>
<link rel="stylesheet" href="/_resources/css/small-menu-style.css"/>

<title>ASN to MSN | MSN | School of Nursing | Vanderbilt University</title>

<meta name="Description"
      content="Vanderbilt University School of Nursing ASN to MSN Entry."/>
<meta name="Keywords"
      content="nursing, nurse, BSN, MSN, vanderbilt university, nashville, tennessee, vanderbilt, ASN to MSN Entry"/>

         Menu

<button class="navbar-toggle collapsed" data-toggle="collapse" data-target="#topnav" aria-expanded="false" aria-controls="navbar"> Toggle navigation       </button>

STUDENTS

 Prospective

 Admitted

 Current

ACCESS

 Brightspace

 Clinical Log

 Digital Library

 Ovid

 YES

RESOURCES

 Career Services

FACULTY & STAFF

 Our Faculty & Staff

 Resources

DIRECTORIES

 Administration

 Faculty Directory

 Emeriti Faculty

 Faculty by Specialty

 Staff Directory

EMPLOYMENT OPPORTUNITIES

 Faculty Recruitment/Openings

NEWS

QUICK LINKS

GENERAL

 Vmail

ACCESS

 Brightspace

 SLATE (Administrator)

 SLATE (Evaluator)

 YES

CONTACT

 VUSN Administration

 People Finder

 VUconnect

CALENDARS

ACADEMIC CALENDARS

 MSN and DNP

 PhD

OTHER CALENDARS / SCHEDULES

FIT Calendar

 Simulation Lab Calendar [PDF]

 Block Schedules

 Classroom Schedules [PDF]

 Diversity Calendar [PDF]

 FNIC Computer Lab [PDF]

EVENTS

 VUSN Events

 VU Events

TECH TOOLS

RESOURCES

 Tech Tools

 Tech Knowledge Base

 Brightspace Navigation (Students)

 Brightspace Navigation (Faculty)

 Technology Overview

 Technology Requirements

 Technology Descriptions

 Support Services Directory

 Support Forms

PRODUCT SUPPORT

 Computer Support

 Course Management

 Digital Libraries

 Email / VUNet ID

 Remote Proctor

 Kaseya [PDF]

 TeamViewer

ALUMNI

 Welcome

 Mission/Board of Directors

 Geographical Distribution

 Meet the Team

RESOURCES

 Alumni Benefits

 Networking/Job Postings

 Eskind Library Access

 Transcripts

 Getting Involved

 Nursing Organizations

ALUMNI MEDIA

 Alumni in the News

 Class Notes

 Publications

 Social Media

 Reunion

 Alumni Awards

 Giving Opportunities

VISIT

 Welcome

PLAN YOUR VISIT

 Driving Directions

 Parking Info

 Campus Map [PDF]

 Interactive Map

 Hotel Accommodations

ABOUT NASHVILLE

 Hometown Nashville

 Nashville Is...

GIVING

 Make a Difference

 Ways to Give

 Julia Hereford Society

 Give Now

 VUSN Annual Fund

                    <form class="navbar-form navbar-right" role="search" method="get" action="https://searchvu.vanderbilt.edu/search">
                    <input type="hidden" name="sitesearch" value="https://nursing.vanderbilt.edu" />
                    <input type="hidden" name="site" value="default_collection"/>
                     <input type="hidden" name="client" value="default_frontend"/>
                     <input type="hidden" name="proxystylesheet" value="default_frontend"/>
                     <input type="hidden" name="output" value="xml_no_dtd"/>

                        <input name="q" type="text" class="form-control" placeholder="Search VUSN" />

                      <button type="submit" class="btn btn-default">   </button>
                    </form>

 ABOUT

Dean's Message

 Welcome Prospective Students

 Mission Statement

 Diversity At VUSN

 Our History

 Contact Us

 PROGRAMS

 Academic Programs

 Master of Science in Nursing

 Doctor of Nursing Practice

 PhD in Nursing Science

 Post-Master's Certificate

 Postdoctoral Program

 Special (Non-Degree) Students

 ADMISSIONS

 Admissions Information

 MSN Admissions

 DNP Admissions

 PhD Admissions

 Post-Master's Certificates

 Postdoctoral Admissions

 Special (Non-Degree) Students

 RESEARCH &
SCHOLARSHIP

 Research & Scholarly Activity

 Center for Research Development (CRDS)

 CRDS Behavorial Labs

 Services for Researchers

 Scholarly Practice Program

 Scholarship in Teaching & Learning Program

 Scholarly Nurse

 Research Faculty

 PRACTICE

 Preparing For Practice

 Faculty Practice Network

 Practice Network Directory

 Credentialing Process

 Faculty Practice History

 Vanderbilt Nurse-Midwifery Faculty Practice

 What is Advanced Practice Nursing?

 VANDERBILT
ADVANTAGE

 The Vanderbilt Advantage

 Making A Difference

 Informatics

 Global Health

 Organizations

 Veterans/Military

               MSN

               ASN to MSN

ASN to MSN Entry

ASN to MSN

Meet ASN - MSN Director:

                        Sarah Fogel

ASN to MSN Resources

                        ASN to MSN ENTRY
                        Block Schedules

                           Curriculum Plans

                                Full-Time

                                Part-Time

Vanderbilt's Advanced Nursing Practice Specialties

                        Adult-Gerontology Acute Care Nurse Practitioner
                        Adult-Gerontology Primary Care Nurse Practitioner
                        Emergency Nurse Practitioner — Dual Focus FNP/AGACNP
                        Family Nurse Practitioner
                        Healthcare Leadership (Online)
                        Nursing Informatics
                        Neonatal Nurse Practitioner
                        Nurse-Midwifery
                        Nurse-Midwifery/Family Nurse Practitioner - Dual Focus
                        Pediatric Nurse Practitioner - Acute Care
                        Pediatric Nurse Practitioner - Primary Care
                        Psychiatric-Mental Health Nurse Practitioner (Lifespan)
                        Women's Health Nurse Practitioner
                        Women's Health/AGPCNP — Dual Focus

Other Entry Options

                        ASN to MSN Level
                        PreSpecialty Level

Dual Degrees

                        MSN/MDiv & MSN/MTS Dual Degree

Recent News

                          ASK ADMISSIONS

                          APPLY NOW

                          REQUEST INFO

                          MEET FACULTY

ASN to MSN entry for ASN and Diploma Graduates

Do you have a goal of expanding your career potential by earning a Master of Science in Nursing degree and becoming an advanced practice nurse? Vanderbilt offers a flexible, accelerated RN PreSpecialty program that helps you reach your goals within two calendar years.
Through our modified class schedules and distributed course delivery formats, you can learn from where you live without relocating or giving up your employment.

Admission Requirements

The best ways to learn about the Vanderbilt School of Nursing Admissions process and requirements are to join us for Open House in October or March or attend one of the weekly MSN information sessions. Information Sessions are on Tuesdays from 10-11am and on Fridays from 2-3 pm. Please call the Admissions Office at 615-322-3800 or 888-333-9192 to schedule yourself for one of these sessions. You can get started by visiting Admissions Requirements on our website to learn more.

Prerequisite Courses

                     78 semester hours or 120 quarter hours of transferable college credit which must include:

6 semester hours of English

9 semester hours of Social Science

6 semester hours of Humanities

3 semester hours of Lifespan Development

11 semester hours of Natural Science (must include Human Anatomy & Physiology and Microbiology)

3 semester hours of Statistics

2–3 semester hours of Nutrition

38 semester hours of remaining credit from an accredited college/university

Learn from Where You Live

                     Our modified class schedule offers flexible formats and distributed/distance course delivery

Vanderbilt School of Nursing is committed to career mobility for ASN and diploma nursing graduates. During your PreSpecialty year, you do not have to relocate to Vanderbilt or give up your employment to be enrolled as a full-time or part-time student.

Instead, Vanderbilt lets you learn from where you live with PreSpecialty course content that is delivered in a modified learning (block) format:

Courses offered in concentrated blocks of time on campus, including weekends, up to four times per semester

On-line conferencing

Recorded lecture delivery and distributed learning methods which allow for continued faculty contact between sessions.

In addition, clinical placement may be arranged in your home area provided a suitable agency and preceptor are available. Sites and preceptors are subject to Vanderbilt School of Nursing faculty approval.

Due to Certain Board of Education and/or Board of Nursing restrictions, the School of Nursing is not able to accommodate clinical placements in all locations.

CONNECT WITH #VUSN

LINKS

HOME

REQUEST INFO

APPLY

EMPLOYMENT

CAREER SERVICES

CONTACT US

PRIVACY POLICY

VANDERBILT UNIVERSITY

VANDERBILT UNIVERSITY MEDICAL CENTER

DIRECTIONS

DISTINCTIONS

         © Vanderbilt University School of Nursing   |  461 21st Ave South, Nashville, TN 37240  |  615-322-4400   |  Webmaster

        SITE DEVELOPMENT: VUSN Informatics and University Web Communications

		  <form class="navbar-form" role="search" method="get" action="https://searchvu.vanderbilt.edu/search">
                    <input type="hidden" name="sitesearch" value="https://nursing.vanderbilt.edu" />
                    <input type="hidden" name="site" value="default_collection"/>
                     <input type="hidden" name="client" value="default_frontend"/>
                     <input type="hidden" name="proxystylesheet" value="default_frontend"/>
                     <input type="hidden" name="output" value="xml_no_dtd"/>

                        <input name="q" type="text" class="form-control" placeholder="Search VUSN" />

                      <button type="submit" class="btn btn-default">   </button>
                    </form>

 MAIN MENU

 HOME

 ABOUT

Dean's Message

 Welcome Prospective Students

 Mission Statement

 Diversity At VUSN

 Our History

 Contact Us

 PROGRAMS

 Academic Programs

 Master of Science in Nursing

 Doctor of Nursing Practice

 PhD in Nursing Science

 Post-Master's Certificate

 Postdoctoral Program

 Special (Non-Degree) Students

 ADMISSIONS

 Admissions Information

 MSN Admissions

 DNP Admissions

 PhD Admissions

 Post-Master's Certificates

 Postdoctoral Admissions

 Special (Non-Degree) Students

 RESEARCH & SCHOLARSHIP

 Research & Scholarly Activity

 Center for Research Development (CRDS)

 CRDS Behavorial Labs

 Services for Researchers

 Scholarly Practice Program

 Scholarship in Teaching & Learning Program

 Scholarly Nurse

 Research Faculty

 PRACTICE

 Preparing For Practice

 Faculty Practice Network

 Practice Network Directory

 Credentialing Process

 Faculty Practice History

 Vanderbilt Nurse-Midwifery Faculty Practice

 What is Advanced Practice Nursing?

 VANDERBILT ADVANTAGE

 The Vanderbilt Advantage

 Making A Difference

 Informatics

 Global Health

 Organizations

 Veterans/Military

 RESOURCES

 STUDENTS

 Prospective

 Admitted

 Current

ACCESS

 Brightspace

 Clinical Log

 Digital Library

 Ovid

 YES

RESOURCES

 Career Services

 FACULTY & STAFF

 Our Faculty & Staff

 Resources

DIRECTORIES

 Administration

 Faculty Directory

 Emeriti Faculty

 Faculty by Specialty

 Staff Directory

EMPLOYMENT OPPORTUNITIES

 Faculty Recruitment/Openings

 NEWS

 QUICK LINKS

GENERAL

 Vmail

ACCESS

 Brightspace

 SLATE (Administrator)

 SLATE (Evaluator)

 YES

CONTACT

 VUSN Administration

 People Finder

 VUconnect

 CALENDARS

ACADEMIC CALENDARS

 MSN and DNP

 PhD

OTHER CALENDARS / SCHEDULES

FIT Calendar

 Simulation Lab Calendar [PDF]

 Block Schedules

 Classroom Schedules [PDF]

 Diversity Calendar [PDF]

 FNIC Computer Lab [PDF]

EVENTS

 VUSN Events

 VU Events

 TECH TOOLS

RESOURCES

 Tech Tools

 Tech Knowledge Base

 Brightspace Navigation (Students)

 Brightspace Navigation (Faculty)

 Technology Overview

 Technology Requirements

 Technology Descriptions

 Support Services Directory

 Support Forms

PRODUCT SUPPORT

 Computer Support

 Course Management

 Digital Libraries

 Email / VUNet ID

 Remote Proctor

 Kaseya [PDF]

 TeamViewer

 ALUMNI

 Welcome

 Mission/Board of Directors

 Geographical Distribution

 Meet the Team

RESOURCES

 Alumni Benefits

 Networking/Job Postings

 Eskind Library Access

 Transcripts

 Getting Involved

 Nursing Organizations

ALUMNI MEDIA

 Alumni in the News

 Class Notes

 Publications

 Social Media

 Reunion

 Alumni Awards

 Giving Opportunities

 VISIT

 Welcome

PLAN YOUR VISIT

 Driving Directions

 Parking Info

 Campus Map [PDF]

 Interactive Map

 Hotel Accommodations

ABOUT NASHVILLE

 Hometown Nashville

 Nashville Is...

 GIVING

 Make a Difference

 Ways to Give

 Julia Hereford Society

 Give Now

 VUSN Annual Fund


text:
package org.syntax.jedit.tokenmarker;

import org.syntax.jedit.*;
import javax.swing.text.Segment;

/**
 * C++ token marker.
 *
 * @author Slava Pestov
 * @version $Id: CCTokenMarker.java,v 1.6 1999/12/13 03:40:29 sp Exp $
 */
public class CCTokenMarker extends CTokenMarker
{
	public CCTokenMarker()
	{
		super(true,getKeywords());
	}

	public static KeywordMap getKeywords()
	{
		if(ccKeywords == null)
		{
			ccKeywords = new KeywordMap(false);

			ccKeywords.add("and", Token.KEYWORD3);
			ccKeywords.add("and_eq", Token.KEYWORD3);
			ccKeywords.add("asm", Token.KEYWORD2);         //
			ccKeywords.add("auto", Token.KEYWORD1);        //
			ccKeywords.add("bitand", Token.KEYWORD3);
			ccKeywords.add("bitor", Token.KEYWORD3);
			ccKeywords.add("bool",Token.KEYWORD3);
			ccKeywords.add("break", Token.KEYWORD1);	   //
			ccKeywords.add("case", Token.KEYWORD1);		   //
			ccKeywords.add("catch", Token.KEYWORD1);
			ccKeywords.add("char", Token.KEYWORD3);		   //
			ccKeywords.add("class", Token.KEYWORD3);
			ccKeywords.add("compl", Token.KEYWORD3);
			ccKeywords.add("const", Token.KEYWORD1);	   //
			ccKeywords.add("const_cast", Token.KEYWORD3);
			ccKeywords.add("continue", Token.KEYWORD1);	   //
			ccKeywords.add("default", Token.KEYWORD1);	   //
			ccKeywords.add("delete", Token.KEYWORD1);
			ccKeywords.add("do",Token.KEYWORD1);           //
			ccKeywords.add("double" ,Token.KEYWORD3);	   //
			ccKeywords.add("dynamic_cast", Token.KEYWORD3);
			ccKeywords.add("else", 	Token.KEYWORD1);	   //
			ccKeywords.add("enum",  Token.KEYWORD3);	   //
			ccKeywords.add("explicit", Token.KEYWORD1);
			ccKeywords.add("export", Token.KEYWORD2);
			ccKeywords.add("extern", Token.KEYWORD2);	   //
			ccKeywords.add("false", Token.LITERAL2);
			ccKeywords.add("float", Token.KEYWORD3);	   //
			ccKeywords.add("for", Token.KEYWORD1);		   //
			ccKeywords.add("friend", Token.KEYWORD1);
			ccKeywords.add("goto", Token.KEYWORD1);        //
			ccKeywords.add("if", Token.KEYWORD1);		   //
			ccKeywords.add("inline", Token.KEYWORD1);
			ccKeywords.add("int", Token.KEYWORD3);		   //
			ccKeywords.add("long", Token.KEYWORD3);		   //
			ccKeywords.add("mutable", Token.KEYWORD3);
			ccKeywords.add("namespace", Token.KEYWORD2);
			ccKeywords.add("new", Token.KEYWORD1);
			ccKeywords.add("not", Token.KEYWORD3);
			ccKeywords.add("not_eq", Token.KEYWORD3);
			ccKeywords.add("operator", Token.KEYWORD3);
			ccKeywords.add("or", Token.KEYWORD3);
			ccKeywords.add("or_eq", Token.KEYWORD3);
			ccKeywords.add("private", Token.KEYWORD1);
			ccKeywords.add("protected", Token.KEYWORD1);
			ccKeywords.add("public", Token.KEYWORD1);
			ccKeywords.add("register", Token.KEYWORD1);
			ccKeywords.add("reinterpret_cast", Token.KEYWORD3);
			ccKeywords.add("return", Token.KEYWORD1);      //
			ccKeywords.add("short", Token.KEYWORD3);	   //
			ccKeywords.add("signed", Token.KEYWORD3);	   //
			ccKeywords.add("sizeof", Token.KEYWORD1);	   //
			ccKeywords.add("static", Token.KEYWORD1);	   //
			ccKeywords.add("static_cast", Token.KEYWORD3);
			ccKeywords.add("struct", Token.KEYWORD3);	   //
			ccKeywords.add("switch", Token.KEYWORD1);	   //
			ccKeywords.add("template", Token.KEYWORD3);
			ccKeywords.add("this", Token.LITERAL2);
			ccKeywords.add("throw", Token.KEYWORD1);
			ccKeywords.add("true", Token.LITERAL2);
			ccKeywords.add("try", Token.KEYWORD1);
			ccKeywords.add("typedef", Token.KEYWORD3);	   //
			ccKeywords.add("typeid", Token.KEYWORD3);
			ccKeywords.add("typename", Token.KEYWORD3);
			ccKeywords.add("union", Token.KEYWORD3);	   //
			ccKeywords.add("unsigned", Token.KEYWORD3);	   //
			ccKeywords.add("using", Token.KEYWORD2);
			ccKeywords.add("virtual", Token.KEYWORD1);
			ccKeywords.add("void", Token.KEYWORD1);		   //
			ccKeywords.add("volatile", Token.KEYWORD1);	   //
			ccKeywords.add("wchar_t", Token.KEYWORD3);
			ccKeywords.add("while", Token.KEYWORD1);	   //
			ccKeywords.add("xor", Token.KEYWORD3);
			ccKeywords.add("xor_eq", Token.KEYWORD3);

			// non ANSI keywords
			ccKeywords.add("NULL", Token.LITERAL2);
		}
		return ccKeywords;
	}

	// private members
	private static KeywordMap ccKeywords;
}


text:
using System;

namespace Facade
{
    public class TachometerController : ITachometerController
    {
        private int _rpm;

        public int Rpm
        {
            get { return _rpm; }
            set
            {
                _rpm = value;
                Console.WriteLine("RPM: {0}", _rpm);
            }
        }

        public int Limit { get; private set; }

        public TachometerController()
        {
            Limit = 6000;
        }
    }
}


text:
package org.springframework.messaging.simp.annotation.support;

import java.lang.annotation.Annotation;
import java.security.Principal;
import java.util.Map;

import org.springframework.core.MethodParameter;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.MessageHeaders;
import org.springframework.messaging.handler.DestinationPatternsMessageCondition;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.messaging.handler.annotation.support.DestinationVariableMethodArgumentResolver;
import org.springframework.messaging.handler.invocation.HandlerMethodReturnValueHandler;
import org.springframework.messaging.simp.SimpMessageHeaderAccessor;
import org.springframework.messaging.simp.SimpMessageSendingOperations;
import org.springframework.messaging.simp.SimpMessageType;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.messaging.simp.annotation.SendToUser;
import org.springframework.messaging.simp.user.DestinationUserNameProvider;
import org.springframework.messaging.support.MessageHeaderInitializer;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
import org.springframework.util.PropertyPlaceholderHelper;
import org.springframework.util.PropertyPlaceholderHelper.PlaceholderResolver;
import org.springframework.util.StringUtils;

/**
 * A {@link HandlerMethodReturnValueHandler} for sending to destinations specified in a
 * {@link SendTo} or {@link SendToUser} method-level annotations.
 *
 *
The value returned from the method is converted, and turned to a {@link Message} and
 * sent through the provided {@link MessageChannel}. The message is then enriched with the
 * session id of the input message as well as the destination from the annotation(s).
 * If multiple destinations are specified, a copy of the message is sent to each destination.
 *
 * @author Rossen Stoyanchev
 * @author Sebastien Deleuze
 * @since 4.0
 */
public class SendToMethodReturnValueHandler implements HandlerMethodReturnValueHandler {

	private final SimpMessageSendingOperations messagingTemplate;

	private final boolean annotationRequired;

	private String defaultDestinationPrefix = "/topic";

	private String defaultUserDestinationPrefix = "/queue";

	private PropertyPlaceholderHelper placeholderHelper = new PropertyPlaceholderHelper("{", "}", null, false);

	private MessageHeaderInitializer headerInitializer;

	public SendToMethodReturnValueHandler(SimpMessageSendingOperations messagingTemplate, boolean annotationRequired) {
		Assert.notNull(messagingTemplate, "messagingTemplate must not be null");
		this.messagingTemplate = messagingTemplate;
		this.annotationRequired = annotationRequired;
	}

	/**
	 * Configure a default prefix to add to message destinations in cases where a method
	 * is not annotated with {@link SendTo @SendTo} or does not specify any destinations
	 * through the annotation's value attribute.
	 *
By default, the prefix is set to "/topic".
	 */
	public void setDefaultDestinationPrefix(String defaultDestinationPrefix) {
		this.defaultDestinationPrefix = defaultDestinationPrefix;
	}

	/**
	 * Return the configured default destination prefix.
	 * @see #setDefaultDestinationPrefix(String)
	 */
	public String getDefaultDestinationPrefix() {
		return this.defaultDestinationPrefix;
	}

	/**
	 * Configure a default prefix to add to message destinations in cases where a
	 * method is annotated with {@link SendToUser @SendToUser} but does not specify
	 * any destinations through the annotation's value attribute.
	 *
By default, the prefix is set to "/queue".
	 */
	public void setDefaultUserDestinationPrefix(String prefix) {
		this.defaultUserDestinationPrefix = prefix;
	}

	/**
	 * Return the configured default user destination prefix.
	 * @see #setDefaultUserDestinationPrefix(String)
	 */
	public String getDefaultUserDestinationPrefix() {
		return this.defaultUserDestinationPrefix;
	}

	/**
	 * Configure a {@link MessageHeaderInitializer} to apply to the headers of all
	 * messages sent to the client outbound channel.
	 *
By default this property is not set.
	 */
	public void setHeaderInitializer(MessageHeaderInitializer headerInitializer) {
		this.headerInitializer = headerInitializer;
	}

	/**
	 * @return the configured header initializer.
	 */
	public MessageHeaderInitializer getHeaderInitializer() {
		return this.headerInitializer;
	}

	@Override
	public boolean supportsReturnType(MethodParameter returnType) {
		return (returnType.hasMethodAnnotation(SendTo.class) ||
				AnnotatedElementUtils.hasAnnotation(returnType.getDeclaringClass(), SendTo.class) ||
				returnType.hasMethodAnnotation(SendToUser.class) ||
				AnnotatedElementUtils.hasAnnotation(returnType.getDeclaringClass(), SendToUser.class) ||
				!this.annotationRequired);
	}

	@Override
	public void handleReturnValue(Object returnValue, MethodParameter returnType, Message<?> message) throws Exception {
		if (returnValue == null) {
			return;
		}

		MessageHeaders headers = message.getHeaders();
		String sessionId = SimpMessageHeaderAccessor.getSessionId(headers);
		PlaceholderResolver varResolver = initVarResolver(headers);
		Object annotation = findAnnotation(returnType);

		if (annotation != null && annotation instanceof SendToUser) {
			SendToUser sendToUser = (SendToUser) annotation;
			boolean broadcast = sendToUser.broadcast();
			String user = getUserName(message, headers);
			if (user == null) {
				if (sessionId == null) {
					throw new MissingSessionUserException(message);
				}
				user = sessionId;
				broadcast = false;
			}
			String[] destinations = getTargetDestinations(sendToUser, message, this.defaultUserDestinationPrefix);
			for (String destination : destinations) {
				destination = this.placeholderHelper.replacePlaceholders(destination, varResolver);
				if (broadcast) {
					this.messagingTemplate.convertAndSendToUser(
							user, destination, returnValue, createHeaders(null, returnType));
				}
				else {
					this.messagingTemplate.convertAndSendToUser(
							user, destination, returnValue, createHeaders(sessionId, returnType));
				}
			}
		}
		else {
			SendTo sendTo = (SendTo) annotation;
			String[] destinations = getTargetDestinations(sendTo, message, this.defaultDestinationPrefix);
			for (String destination : destinations) {
				destination = this.placeholderHelper.replacePlaceholders(destination, varResolver);
				this.messagingTemplate.convertAndSend(destination, returnValue, createHeaders(sessionId, returnType));
			}
		}
	}

	private Object findAnnotation(MethodParameter returnType) {
		Annotation[] anns = new Annotation[4];
		anns[0] = AnnotatedElementUtils.findMergedAnnotation(returnType.getMethod(), SendToUser.class);
		anns[1] = AnnotatedElementUtils.findMergedAnnotation(returnType.getMethod(), SendTo.class);
		anns[2] = AnnotatedElementUtils.findMergedAnnotation(returnType.getDeclaringClass(), SendToUser.class);
		anns[3] = AnnotatedElementUtils.findMergedAnnotation(returnType.getDeclaringClass(), SendTo.class);

		if (anns[0] != null && !ObjectUtils.isEmpty(((SendToUser) anns[0]).value())) {
			return anns[0];
		}
		if (anns[1] != null && !ObjectUtils.isEmpty(((SendTo) anns[1]).value())) {
			return anns[1];
		}
		if (anns[2] != null && !ObjectUtils.isEmpty(((SendToUser) anns[2]).value())) {
			return anns[2];
		}
		if (anns[3] != null && !ObjectUtils.isEmpty(((SendTo) anns[3]).value())) {
			return anns[3];
		}

		for (int i=0; i < 4; i++) {
			if (anns[i] != null) {
				return anns[i];
			}
		}

		return null;
	}

	@SuppressWarnings("unchecked")
	private PlaceholderResolver initVarResolver(MessageHeaders headers) {
		String name = DestinationVariableMethodArgumentResolver.DESTINATION_TEMPLATE_VARIABLES_HEADER;
		Map<String, String> vars = (Map<String, String>) headers.get(name);
		return new DestinationVariablePlaceholderResolver(vars);
	}

	protected String getUserName(Message<?> message, MessageHeaders headers) {
		Principal principal = SimpMessageHeaderAccessor.getUser(headers);
		if (principal != null) {
			return (principal instanceof DestinationUserNameProvider ?
					((DestinationUserNameProvider) principal).getDestinationUserName() : principal.getName());
		}
		return null;
	}

	protected String[] getTargetDestinations(Annotation annotation, Message<?> message, String defaultPrefix) {
		if (annotation != null) {
			String[] value = (String[]) AnnotationUtils.getValue(annotation);
			if (!ObjectUtils.isEmpty(value)) {
				return value;
			}
		}
		String name = DestinationPatternsMessageCondition.LOOKUP_DESTINATION_HEADER;
		String destination = (String) message.getHeaders().get(name);
		if (!StringUtils.hasText(destination)) {
			throw new IllegalStateException("No lookup destination header in " + message);
		}

		return (destination.startsWith("/") ?
				new String[] {defaultPrefix + destination} : new String[] {defaultPrefix + '/' + destination});
	}

	private MessageHeaders createHeaders(String sessionId, MethodParameter returnType) {
		SimpMessageHeaderAccessor headerAccessor = SimpMessageHeaderAccessor.create(SimpMessageType.MESSAGE);
		if (getHeaderInitializer() != null) {
			getHeaderInitializer().initHeaders(headerAccessor);
		}
		if (sessionId != null) {
			headerAccessor.setSessionId(sessionId);
		}
		headerAccessor.setHeader(SimpMessagingTemplate.CONVERSION_HINT_HEADER, returnType);
		headerAccessor.setLeaveMutable(true);
		return headerAccessor.getMessageHeaders();
	}

	@Override
	public String toString() {
		return "SendToMethodReturnValueHandler [annotationRequired=" + annotationRequired + "]";
	}

	private static class DestinationVariablePlaceholderResolver implements PlaceholderResolver {

		private final Map<String, String> vars;

		public DestinationVariablePlaceholderResolver(Map<String, String> vars) {
			this.vars = vars;
		}

		@Override
		public String resolvePlaceholder(String placeholderName) {
			return (this.vars != null ? this.vars.get(placeholderName) : null);
		}
	}

}


text:
#ifndef __SOT_GRADIENTASCENT_H__
#define __SOT_GRADIENTASCENT_H__

/* --------------------------------------------------------------------- */
/* --- INCLUDE --------------------------------------------------------- */
/* --------------------------------------------------------------------- */

#include <dynamic-graph/entity.h>
#include <dynamic-graph/signal-ptr.h>
#include <dynamic-graph/signal-time-dependent.h>

#include <sot/core/config.hh>

namespace dynamicgraph {
namespace sot {

/* --------------------------------------------------------------------- */
/* --- TRACER ---------------------------------------------------------- */
/* --------------------------------------------------------------------- */

using dynamicgraph::Entity;
using dynamicgraph::SignalPtr;
using dynamicgraph::SignalTimeDependent;

class SOT_CORE_DLLAPI GradientAscent : public Entity {
  DYNAMIC_GRAPH_ENTITY_DECL();

 public:
  SignalPtr<dynamicgraph::Vector, int> gradientSIN;
  SignalPtr<double, int> learningRateSIN;
  SignalTimeDependent<int, int> refresherSINTERN;
  SignalTimeDependent<dynamicgraph::Vector, int> valueSOUT;

 public:
  GradientAscent(const std::string &n);
  virtual ~GradientAscent(void);

 protected:
  dynamicgraph::Vector &update(dynamicgraph::Vector &res, const int &inTime);

  dynamicgraph::Vector value;

  double alpha;
  bool init;
};

} /* namespace sot */
} /* namespace dynamicgraph */

#endif /* #ifndef __SOT_TRACER_H__ */


text:
<?php

namespace CultuurNet\UDB3\Calendar;

use CultuurNet\UDB3\CalendarInterface;

interface CalendarConverterInterface
{
    /**
     * @param CalendarInterface $calendar
     * @return \CultureFeed_Cdb_Data_Calendar $cdbCalendar
     */
    public function toCdbCalendar(CalendarInterface $calendar);
}


text:
#region Apache License

//-----------------------------------------------------------------------
// <copyright file="DocumentService.cs" company="StrixIT">
// Copyright 2015 StrixIT. Author R.G. Schurgers MA MSc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
//-----------------------------------------------------------------------

#endregion Apache License

using StrixIT.Platform.Core;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

namespace StrixIT.Platform.Modules.Cms
{
    public class DocumentService : EntityService<DocumentViewModel>, IDocumentService
    {
        #region Private Fields

        private IFileManager _fileManager;

        #endregion Private Fields

        #region Public Constructors

        public DocumentService(IPlatformDataSource dataSource, IEntityManager entityManager, ITaxonomyManager taxonomyManager, IFileManager fileManager, ICacheService cache)
            : base(dataSource, entityManager, taxonomyManager, cache)
        {
            this._fileManager = fileManager;
        }

        #endregion Public Constructors

        #region Public Methods

        public IList<DocumentViewModel> CreateMany(IList<DocumentViewModel> models)
        {
            if (models == null)
            {
                throw new ArgumentNullException("models");
            }

            var nextSortOrder = this.Manager.GetNextSortOrder<Document>();

            var results = new List<DocumentViewModel>();

            foreach (var model in models)
            {
                model.SortOrder = nextSortOrder;
                results.Add(this.Save(model, false).Map<DocumentViewModel>());
                nextSortOrder++;
            }

            this.SaveChanges();

            return results;
        }

        public DocumentViewModel GetForDownload(string url)
        {
            var document = this.Manager.Get<Document>(url, StrixPlatform.CurrentCultureCode, "File");

            if (document == null)
            {
                return null;
            }

            var filePath = string.Format("{0}.{1}", System.IO.Path.Combine(document.File.Folder, document.File.Path, document.File.FileName), document.File.Extension);

            var canAccess = this._fileManager.CheckAccessFile(filePath);

            if (!canAccess)
            {
                return null;
            }

            document.DownloadCount++;
            this.SaveChanges();
            Logger.LogToAnalytics("DocumentDownload", document.Id.ToString());
            return document.Map<DocumentViewModel>();
        }

        public override IEnumerable List(FilterOptions filter)
        {
            IEnumerable list = null;
            var documentTypeField = filter != null ? filter.ExtractField("DocumentType") : null;

            if (documentTypeField != null)
            {
                filter.TraverseListPropertyName = "EntityId";
                var extEnum = Enum.Parse(typeof(DocumentType), documentTypeField.Value);
                var extensions = this._fileManager.GetExtensions(extEnum.ToString());
                var culture = StrixPlatform.CurrentCultureCode.ToLower();
                list = this.Manager.Query<Document>().Where(d => d.Culture.ToLower() == culture && d.IsCurrentVersion && extensions.Contains(d.File.Extension.ToLower())).Filter(filter).Map<DocumentListModel>();
                return list;
            }
            else
            {
                list = base.List(filter);
            }

            foreach (var model in list.Cast<DocumentListModel>())
            {
                this.SetDocumentType(model);
            }

            return list;
        }

        #endregion Public Methods

        #region Protected Methods

        protected override EntityViewModel Get(Type modelType, Guid? id, string url, string culture, int versionNumber, string relationsToInclude, bool useFallBack = false)
        {
            var model = base.Get(modelType, id, url, culture, versionNumber, relationsToInclude, useFallBack) as DocumentViewModel;
            this.SetDocumentType(model);
            return model;
        }

        #endregion Protected Methods

        #region Private Methods

        private void SetDocumentType(dynamic model)
        {
            if (model != null && model.File != null)
            {
                model.DocumentType = this._fileManager.GetDocumentType(model.File.Extension);
            }
        }

        #endregion Private Methods
    }
}


text:
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**emailMessagesCount** | **Number** | The count of email messages related to the organization | [optional]
**peopleCount** | **Number** | The count of persons related to the organization | [optional]
**activitiesCount** | **Number** | The count of activities related to the organization | [optional]
**doneActivitiesCount** | **Number** | The count of done activities related to the organization | [optional]
**undoneActivitiesCount** | **Number** | The count of undone activities related to the organization | [optional]
**filesCount** | **Number** | The count of files related to the organization | [optional]
**notesCount** | **Number** | The count of notes related to the organization | [optional]
**followersCount** | **Number** | The count of followers related to the organization | [optional]


text:
#region Using

using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Security.Principal;

using PPWCode.Vernacular.Persistence.I.Dao;

#endregion

namespace PPWCode.Kit.Tasks.API_I
{
    /// <summary>
    /// Convenience class for clients that use the remote Tasks API.
    /// Clients are advised to use a subclass of this class instead
    /// of instances of type <see cref="ITasksDao"/> directly.
    /// </summary>
    /// <remarks>
    /// <para>The remote Actua API, expressed in <see cref="ITasksDao"/>
    /// offers all functionality needed to work with the Tasks server.
    /// Instances of this class wrap around an instance of <see cref="ITasksDao"/>
    /// to offer that functionality in even easier ways to client users.
    /// This obviously only contains code that is applicable to all or most
    /// clients. (Actually, this class would better be put in a separate
    /// assembly, away from the API assembly, since it is irrelevant to the server,
    /// but that would be overdoing it a bit).</para>
    /// <para>Clients are advised not to use this class directly, but to create
    /// a subclass, where client specific helper methods for communication with
    /// the Tasks back-end can be added.</para>
    /// <para>Contracts of these methods do not define ensures clauses
    /// formally completely. A part is only described in comments.
    /// In most cases, execution of the ensures clauses would mean another call to the server,
    /// and that is not workable.</para>
    /// </remarks>
    public class ClientTasksDao :
        ClientCrudDao
    {
        #region Invariant

        [ContractInvariantMethod]
        // ReSharper disable UnusedMember.Local
        private void ObjectInvariant()
        {
            Contract.Invariant(TasksDao != null);
        }

        // ReSharper restore UnusedMember.Local

        #endregion

        #region Constructors

        public ClientTasksDao(ITasksDao tasksDao)
            : base(tasksDao)
        {
            Contract.Requires(tasksDao != null);
            Contract.Ensures(TasksDao == tasksDao);
            Contract.Ensures(WindowsIdentity == null);
        }

        public ClientTasksDao(ITasksDao tasksDao, WindowsIdentity windowsIdentity)
            : base(tasksDao, windowsIdentity)
        {
            Contract.Requires(tasksDao != null);
            Contract.Requires(windowsIdentity == null
                              || (windowsIdentity.IsAuthenticated
                                  && (windowsIdentity.ImpersonationLevel == TokenImpersonationLevel.Impersonation
                                      || windowsIdentity.ImpersonationLevel == TokenImpersonationLevel.Delegation)));
            Contract.Ensures(TasksDao == tasksDao);
            Contract.Ensures(WindowsIdentity == windowsIdentity);
        }

        #endregion

        #region Properties

        [Pure]
        public ITasksDao TasksDao
        {
            get
            {
                CheckObjectAlreadyDisposed();

                return (ITasksDao)Obj;
            }
        }

        #endregion

        #region Methods

        /// <inheritdoc cref="ITasksDao.FindTasks"/>
        public FindTasksResult FindTasks(string taskType, IDictionary<string, string> searchAttributes, TaskStateEnum? taskState)
        {
            Contract.Ensures(Contract.Result<FindTasksResult>() != null);

            IEnumerable<string> taskTypes = string.IsNullOrEmpty(taskType)
                ? Enumerable.Empty<string>()
                : new[] { taskType };
            return FindTasks(taskTypes, searchAttributes, taskState);
        }

        public FindTasksResult FindTasks(IEnumerable<string> taskTypes, IDictionary<string, string> searchAttributes, TaskStateEnum? taskState)
        {
            Contract.Ensures(Contract.Result<FindTasksResult>() != null);

            CheckObjectAlreadyDisposed();
            if (WindowsIdentity != null)
            {
                using (WindowsIdentity.Impersonate())
                {
                    return TasksDao.FindTasks(taskTypes, searchAttributes, taskState);
                }
            }
            return TasksDao.FindTasks(taskTypes, searchAttributes, taskState);
        }

        public void UpdateTaskAttributes(IEnumerable<string> taskTypes, IDictionary<string, string> searchAttributes, IDictionary<string, string> replaceAttributes)
        {
            CheckObjectAlreadyDisposed();
            if (WindowsIdentity != null)
            {
                using (WindowsIdentity.Impersonate())
                {
                    TasksDao.UpdateTaskAttributes(taskTypes, searchAttributes, replaceAttributes);
                    return;
                }
            }
            TasksDao.UpdateTaskAttributes(taskTypes, searchAttributes, replaceAttributes);
        }

        #endregion
    }
}


text:
### Tablet:

### Used Libraries:

Image & Caching

[Picasso](https://square.github.io/picasso/)
[Picasso Palette](https://github.com/florent37/PicassoPalette)
[Picasso Transformations](https://github.com/wasabeef/picasso-transformations)

Http-Client & JSON Deserialization

[Gson](https://github.com/google/gson)
[Retrofit](https://github.com/square/retrofit)
[Retrofit Converter](https://github.com/square/retrofit/tree/master/retrofit-converters)

Rxjava

[RxJava](https://github.com/ReactiveX/RxJava) [RxAndroid](https://github.com/ReactiveX/RxAndroid)
[RxBinding](https://github.com/JakeWharton/RxBinding)


text:
package com.nhpatt.smilesdemoproject;

import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v4.app.Fragment;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import com.liferay.mobile.android.http.UnsafeOkHttpClient;
import com.liferay.mobile.screens.auth.BasicAuthMethod;
import com.liferay.mobile.screens.auth.login.LoginListener;
import com.liferay.mobile.screens.auth.login.interactor.LoginBasicInteractor;
import com.liferay.mobile.screens.context.LiferayScreensContext;
import com.liferay.mobile.screens.context.User;
import com.liferay.mobile.screens.util.LiferayLogger;

public class MainActivity extends AppCompatActivity
	implements NavigationView.OnNavigationItemSelectedListener, LoginListener {

	private NavigationView navigationView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		UnsafeOkHttpClient.changeOkHttpClientToUNSAFE();

		Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
		setSupportActionBar(toolbar);

		DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
		ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.navigation_drawer_open,
			R.string.navigation_drawer_close);
		drawer.setDrawerListener(toggle);
		toggle.syncState();

		navigationView = (NavigationView) findViewById(R.id.nav_view);
		navigationView.setNavigationItemSelectedListener(this);

		LiferayScreensContext.init(this);

		LoginBasicInteractor loginBasicInteractor = new LoginBasicInteractor();
		loginBasicInteractor.onScreenletAttached(this);
		loginBasicInteractor.start(getResources().getString(R.string.liferay_user),
			getResources().getString(R.string.liferay_password), BasicAuthMethod.EMAIL);
	}

	@Override
	public void onBackPressed() {
		DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
		if (drawer.isDrawerOpen(GravityCompat.START)) {
			drawer.closeDrawer(GravityCompat.START);
		} else {
			super.onBackPressed();
		}
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();

		//noinspection SimplifiableIfStatement
		if (id == R.id.action_settings) {
			return true;
		}

		return super.onOptionsItemSelected(item);
	}

	@SuppressWarnings("StatementWithEmptyBody")
	@Override
	public boolean onNavigationItemSelected(MenuItem item) {
		// Handle navigation view item clicks here.
		int id = item.getItemId();

		Fragment fragment = getFragment(id);
		getSupportFragmentManager().beginTransaction().replace(R.id.placeholder, fragment).commit();

		DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
		drawer.closeDrawer(GravityCompat.START);
		return true;
	}

	private Fragment getFragment(int id) {
		if (id == R.id.list) {
			return AssetListFragment.newInstance();
		} else if (id == R.id.grid) {
			return AssetGridFragment.newInstance();
		} else {
			return AssetSlideshowFragment.newInstance();
		}
	}

	@Override
	public void onLoginSuccess(User user) {
		navigationView.getMenu().performIdentifierAction(R.id.list, 0);
	}

	@Override
	public void onLoginFailure(Exception e) {
		LiferayLogger.e(e.toString(), e);
	}
}


text:
<?php

namespace RValin\InfoBipBundle\Object;

class SmsLog
{
    private $_message;

    private $_send;

    private $_originalTo;

    private $_intercept = false;

    /**
     * SmsLog constructor.
     * @param $message
     */
    public function __construct($message)
    {
        $this->_message = $message;
    }

    /**
     * @return mixed
     */
    public function getMessage()
    {
        return $this->_message;
    }

    /**
     * @param mixed $message
     * @return SmsLog
     */
    public function setMessage($message)
    {
        $this->_message = $message;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getSend()
    {
        return $this->_send;
    }

    /**
     * @param mixed $send
     * @return SmsLog
     */
    public function setSend($send)
    {
        $this->_send = $send;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getOriginalTo()
    {
        return $this->_originalTo;
    }

    /**
     * @param mixed $originalTo
     * @return SmsLog
     */
    public function setOriginalTo($originalTo)
    {
        $this->_originalTo = $originalTo;
        return $this;
    }

    /**
     * @return bool
     */
    public function isIntercept()
    {
        return $this->_intercept;
    }

    /**
     * @param bool $intercept
     * @return SmsLog
     */
    public function setIntercept($intercept)
    {
        $this->_intercept = $intercept;
        return $this;
    }
}


text:
namespace SceneEngine
{
    using namespace RenderCore;
    using namespace RenderCore::Metal;

    TransparencyTargetsBox::Desc::Desc(unsigned width, unsigned height, bool storeColour)
    {
        _width = width; _height = height;
        _storeColour = storeColour;
    }

    TransparencyTargetsBox::TransparencyTargetsBox(const Desc& desc)
    : _desc(desc)
    {
        using namespace RenderCore;
        using namespace RenderCore::Metal;
        using namespace BufferUploads;

        auto& uploads = GetBufferUploads();
        auto textureIdsDesc = BuildRenderTargetDesc(
            BindFlag::UnorderedAccess|BindFlag::ShaderResource,
            BufferUploads::TextureDesc::Plain2D(desc._width, desc._height, NativeFormat::R32_UINT),
            "Trans");
        auto fragmentIdsTexture = uploads.Transaction_Immediate(textureIdsDesc)->AdoptUnderlying();

        BufferUploads::BufferDesc nodeListBufferDesc;
        nodeListBufferDesc._type = BufferUploads::BufferDesc::Type::LinearBuffer;
        nodeListBufferDesc._bindFlags = BindFlag::UnorderedAccess|BindFlag::StructuredBuffer|BindFlag::ShaderResource;
        nodeListBufferDesc._cpuAccess = 0;
        nodeListBufferDesc._gpuAccess = GPUAccess::Read|GPUAccess::Write;
        nodeListBufferDesc._allocationRules = 0;
        nodeListBufferDesc._linearBufferDesc._structureByteSize = (desc._storeColour)?(sizeof(float)*3):(sizeof(float)*2);
        nodeListBufferDesc._linearBufferDesc._sizeInBytes = 16*1024*1024*nodeListBufferDesc._linearBufferDesc._structureByteSize;
        auto nodeListBuffer = uploads.Transaction_Immediate(nodeListBufferDesc)->AdoptUnderlying();

        RenderCore::Metal::UnorderedAccessView fragmentIdsTextureUAV(fragmentIdsTexture.get());
        RenderCore::Metal::UnorderedAccessView nodeListBufferUAV(nodeListBuffer.get(),
            RenderCore::Metal::UnorderedAccessView::Flags::AttachedCounter);

        RenderCore::Metal::ShaderResourceView fragmentIdsTextureSRV(fragmentIdsTexture.get());
        RenderCore::Metal::ShaderResourceView nodeListBufferSRV(nodeListBuffer.get());

        _fragmentIdsTexture      = std::move(fragmentIdsTexture);
        _nodeListBuffer          = std::move(nodeListBuffer);
        _fragmentIdsTextureUAV   = std::move(fragmentIdsTextureUAV);
        _nodeListBufferUAV       = std::move(nodeListBufferUAV);
        _fragmentIdsTextureSRV   = std::move(fragmentIdsTextureSRV);
        _nodeListBufferSRV       = std::move(nodeListBufferSRV);
    }

    TransparencyTargetsBox::~TransparencyTargetsBox() {}

    void OrderIndependentTransparency_ClearAndBind(
        RenderCore::Metal::DeviceContext* context,
        TransparencyTargetsBox& transparencyTargets,
        const RenderCore::Metal::ShaderResourceView& depthBufferDupe)
    {
        SavedTargets prevTargets(context);

        ID3D::UnorderedAccessView* uavs[] = {
            transparencyTargets._fragmentIdsTextureUAV.GetUnderlying(),
            transparencyTargets._nodeListBufferUAV.GetUnderlying() };
        UINT initialCounts[] = { 0, 0 };

        UINT clearValues[4] = { UINT(~0), UINT(~0), UINT(~0), UINT(~0) };
        context->Clear(transparencyTargets._fragmentIdsTextureUAV, clearValues);

        context->GetUnderlying()->OMSetRenderTargetsAndUnorderedAccessViews(
            1, prevTargets.GetRenderTargets(), prevTargets.GetDepthStencilView(),
            1, dimof(uavs), uavs, initialCounts);

        context->BindPS(MakeResourceList(11, depthBufferDupe));
    }

    void OrderIndependentTransparency_Prepare(RenderCore::Metal::DeviceContext* context, LightingParserContext&, const ShaderResourceView& depthBufferDupe)
    {
        ViewportDesc mainViewport(*context);

        auto& transparencyTargets = Techniques::FindCachedBox<TransparencyTargetsBox>(
            TransparencyTargetsBox::Desc(unsigned(mainViewport.Width), unsigned(mainViewport.Height), true));

            //
            //      We need to bind the uav for transparency sorting to
            //      the pixel shader output pipeline. Transparency shaders
            //      will write to the uav (instead of the normal render target)
            //

        OrderIndependentTransparency_ClearAndBind(context, transparencyTargets, depthBufferDupe);

            //
            //      Bind some resources required by the glass shader
            //

        auto box5   = ::Assets::GetAssetDep<RenderCore::Assets::DeferredShaderResource>("game/xleres/refltexture/boxc_5.dds").GetShaderResource();
        auto box12  = ::Assets::GetAssetDep<RenderCore::Assets::DeferredShaderResource>("game/xleres/refltexture/boxc_12.dds").GetShaderResource();
        auto box34  = ::Assets::GetAssetDep<RenderCore::Assets::DeferredShaderResource>("game/xleres/refltexture/boxc_34.dds").GetShaderResource();
        context->BindPS(MakeResourceList(8, box12, box34, box5));

        auto& perlinNoiseRes = Techniques::FindCachedBox<PerlinNoiseResources>(PerlinNoiseResources::Desc());
        context->BindPS(MakeResourceList(12, perlinNoiseRes._gradShaderResource, perlinNoiseRes._permShaderResource));

            //
            //      We need to disable multisample antialiasing while rendering
            //      order independent transparency stuff... it just gets to weird
            //      and expensive if MSAA is enabled while doing this. We can still
            //      render to an MSAA buffer... We just need to disable the rasterizer
            //      state flag (so that every pixel write is complete coverage)
            //
    }

    void OrderIndependentTransparency_Resolve(  RenderCore::Metal::DeviceContext* context,
                                                LightingParserContext& parserContext,
                                                const ShaderResourceView& originalDepthStencilSRV)
    {
        ViewportDesc mainViewport(*context);
        SavedTargets savedTargets(context);

        auto metricsUAV = parserContext.GetMetricsBox()->_metricsBufferUAV.GetUnderlying();
        context->GetUnderlying()->OMSetRenderTargetsAndUnorderedAccessViews(
            1, savedTargets.GetRenderTargets(), nullptr,
            1, 1, &metricsUAV, nullptr);

        TRY {
            auto skyTexture = parserContext.GetSceneParser()->GetGlobalLightingDesc()._skyTexture;
            if (skyTexture[0]) {
                SkyTexture_BindPS(context, parserContext, skyTexture, 7);
            }

            auto& transparencyTargets = Techniques::FindCachedBox<TransparencyTargetsBox>(
                TransparencyTargetsBox::Desc(unsigned(mainViewport.Width), unsigned(mainViewport.Height), true));

            context->BindPS(MakeResourceList(
                transparencyTargets._fragmentIdsTextureSRV, transparencyTargets._nodeListBufferSRV, originalDepthStencilSRV));
            context->Bind(Metal::BlendState(
                Metal::BlendOp::Add, Metal::Blend::One, Metal::Blend::InvSrcAlpha));
            context->Bind(Metal::DepthStencilState(false));
            auto& resolveShader = ::Assets::GetAssetDep<Metal::ShaderProgram>(
                "game/xleres/basic2D.vsh:fullscreen:vs_*",
                "game/xleres/forward/transparency/resolve.psh:main:ps_*");
            context->Bind(resolveShader);
            SetupVertexGeneratorShader(context);
            context->Draw(4);

            context->UnbindPS<Metal::ShaderResourceView>(0, 3);
        }
        CATCH(const ::Assets::Exceptions::InvalidAsset& e) { parserContext.Process(e); }
        CATCH(const ::Assets::Exceptions::PendingAsset& e) { parserContext.Process(e); }
        CATCH_END

        savedTargets.ResetToOldTargets(context);
    }

}


text:
package de.d4k.tinkerforge.stromui.main;

public interface BackgroundTaskView {

	public void cancelBackgroundTask();

}


text:
<template name="loading">

</template>


text:
package main

import (
	"encoding/json"
	"io/ioutil"
	"testing"
)

type LagTestData struct {
	OcrData            hostData `json:"ocrData"`
	TestStartTimestamp int64    `json:"testStartTimestamp"`
	CameraStartupDelay int64    `json:"cameraStartupDelay"`
	KeyPressTimestamp  []int64  `json:"keyPressTimestamp"`
	ExpectedLag        []int64  `json:"expectedLag"`
}

func TestCalculateLag(t *testing.T) {
	file, err := ioutil.ReadFile("calculateLag_test_data.json")
	if err != nil {
		t.Fatal("Unable to read ocr-data.json:", err)
	}
	var lagTestData LagTestData
	err = json.Unmarshal([]byte(file), &lagTestData)

	if err != nil {
		t.Fatal("Unable to read ocr-data.json:", err)
	}

	lagResultCalculated := calculateLag(lagTestData.OcrData, lagTestData.TestStartTimestamp, lagTestData.KeyPressTimestamp, lagTestData.CameraStartupDelay)

	for i := 0; i < 10; i++ {
		if lagTestData.ExpectedLag[i] != lagResultCalculated[i] {
			t.Errorf("Lag result incorrect, got: %d, want: %d", lagResultCalculated[i], lagTestData.ExpectedLag[i])
		}
	}
}


text:
// ********************************************************************************************************
// Product Name: DotSpatial.Tools.FeaturesetElement
// Description:  Featureset Element for use in the tool dialog
//
// ********************************************************************************************************
// The contents of this file are subject to the MIT License (MIT)
// you may not use this file except in compliance with the License. You may obtain a copy of the License at
// http://dotspatial.codeplex.com/license
//
// Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
// ANY KIND, either expressed or implied. See the License for the specific language governing rights and
// limitations under the License.
//
// The Original Code is Toolbox.dll for the DotSpatial 4.6/6 ToolManager project
//
// The Initial Developer of this Original Code is Brian Marchionni. Created in Nov, 2008.
//
// Contributor(s): (Open source contributors should list themselves and their modifications here).
//
// ********************************************************************************************************

using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using DotSpatial.Data;
using DotSpatial.Data.Forms;
using DotSpatial.Modeling.Forms.Parameters;

namespace DotSpatial.Modeling.Forms.Elements
{
    /// <summary>
    /// Feature Set element
    /// </summary>
    public class FeatureSetElement : DialogElement
    {
        #region Class Variables

        private DataSetArray _addedFeatureSet;
        private List<DataSetArray> _dataSets;
        private bool _refreshCombo = true;
        private Button btnAddData;
        private ComboBox comboFeatures;

        #endregion

        #region Constructors

        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="inputParam">The parameter this element represents</param>
        /// <param name="dataSets">An array of available data</param>
        public FeatureSetElement(FeatureSetParam inputParam, List<DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

            //We save the parameters passed in
            Param = inputParam;

            _dataSets = dataSets;

            //Saves the label
            GroupBox.Text = Param.Name;

            DoRefresh();
        }

        #endregion

        #region methods

        private void DoRefresh()
        {
            //Disable the combo box temporarily
            _refreshCombo = false;

            //We set the combo boxes status to empty to start
            base.Status = ToolStatus.Empty;
            LightTipText = ModelingMessageStrings.FeaturesetMissing;
            comboFeatures.Items.Clear();

            //If the user added a feature set
            if (_addedFeatureSet != null)
            {
                comboFeatures.Items.Add(_addedFeatureSet);
                if (Param != null)
                {
                    if (Param.Value != null && Param.DefaultSpecified)
                    {
                        if (_addedFeatureSet.DataSet == Param.Value)
                        {
                            comboFeatures.SelectedItem = _addedFeatureSet;
                            base.Status = ToolStatus.Ok;
                            LightTipText = ModelingMessageStrings.FeaturesetValid;
                        }
                    }
                }
            }

            //Add all the dataSets back to the combo box
            if (_dataSets != null)
            {
                foreach (DataSetArray dsa in _dataSets)
                {
                    IFeatureSet aFeatureSet = (dsa.DataSet as IFeatureSet);
                    if (aFeatureSet != null)
                    {
                        //If the featureset is the correct type and isn't already in the combo box we add it
                        if (comboFeatures.Items.Contains(dsa) == false)
                        {
                            comboFeatures.Items.Add(dsa);
                            if (Param != null)
                            {
                                if (Param.Value != null && Param.DefaultSpecified)
                                {
                                    if (dsa.DataSet == Param.Value)
                                    {
                                        comboFeatures.SelectedItem = dsa;
                                        base.Status = ToolStatus.Ok;
                                        LightTipText = ModelingMessageStrings.FeaturesetValid;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            _refreshCombo = true;
        }

        /// <summary>
        /// updates the param if something's been changed
        /// </summary>
        public override void Refresh()
        {
            DoRefresh();
        }

        #endregion

        #region Events

        /// <summary>
        /// This fires when the selected value in the combo box is changed
        /// </summary>
        private void comboFeature_SelectedValueChanged(object sender, EventArgs e)
        {
            if (_refreshCombo)
            {
                DataSetArray dsa = comboFeatures.SelectedItem as DataSetArray;
                if (dsa != null)
                {
                    Param.ModelName = dsa.Name;
                    Param.Value = dsa.DataSet;
                    return;
                }
            }
        }

        /// <summary>
        /// Adds a new entry to the drop down list from data provider
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddData_Click(object sender, EventArgs e)
        {
            /////////////////////////////////
            //Replace with something that uses the default data provider
            IFeatureSet tempFeatureSet = DataManager.DefaultDataManager.OpenVector();

            //If the feature is null don't do anything the user probably hit cancel on the dialog
            if (tempFeatureSet == null)
                return;

            //If its good add the feature set and save it
            _addedFeatureSet = new DataSetArray(Path.GetFileNameWithoutExtension(tempFeatureSet.Filename), tempFeatureSet);
            Param.ModelName = _addedFeatureSet.Name;
            Param.Value = _addedFeatureSet.DataSet;
        }

        #endregion

        #region Windows Form Designer generated code

        private void InitializeComponent()
        {
            this.btnAddData = new Button();
            this.comboFeatures = new ComboBox();
            this.GroupBox.SuspendLayout();
            this.SuspendLayout();
            //
            // groupBox1
            //
            this.GroupBox.Controls.Add(this.comboFeatures);
            this.GroupBox.Controls.Add(this.btnAddData);
            this.GroupBox.Size = new Size(492, 46);
            this.GroupBox.Text = "Caption";
            this.GroupBox.Controls.SetChildIndex(this.btnAddData, 0);
            this.GroupBox.Controls.SetChildIndex(this.comboFeatures, 0);
            this.GroupBox.Controls.SetChildIndex(this.StatusLabel, 0);
            //
            // btnAddData
            //
            this.btnAddData.Image = Images.AddLayer;
            this.btnAddData.Location = new Point(460, 14);
            this.btnAddData.Name = "btnAddData";
            this.btnAddData.Size = new Size(26, 26);
            this.btnAddData.TabIndex = 4;
            this.btnAddData.UseVisualStyleBackColor = true;
            this.btnAddData.Click += new EventHandler(this.btnAddData_Click);
            //
            // comboFeatures
            //
            this.comboFeatures.DropDownStyle = ComboBoxStyle.DropDownList;
            this.comboFeatures.FormattingEnabled = true;
            this.comboFeatures.Location = new Point(44, 17);
            this.comboFeatures.Name = "comboFeatures";
            this.comboFeatures.Size = new Size(410, 21);
            this.comboFeatures.TabIndex = 5;
            this.comboFeatures.SelectedValueChanged += new EventHandler(this.comboFeature_SelectedValueChanged);
            this.comboFeatures.Click += new EventHandler(base.DialogElement_Click);
            //
            // FeatureSetElement
            //
            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.Name = "FeatureSetElement";
            this.Size = new Size(492, 46);
            this.GroupBox.ResumeLayout(false);
            this.ResumeLayout(false);
        }

        #endregion
    }
}