text:
<!DOCTYPE html>
<!--
Copyright (c) 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="import" href="/base/deep_utils.html">
<link rel="import" href="/core/analysis/analysis_view.html">
<link rel="import" href="/core/test_utils.html">
<link rel="import" href="/core/selection.html">
<link rel="import" href="/core/trace_model/trace_model.html">

<script>
'use strict';

tv.b.unittest.testSuite(function() {
  var Selection = tv.c.Selection;
  var newSliceEx = tv.c.test_utils.newSliceEx;

  test('instantiate', function() {
    var slice = newSliceEx({title: 'b', start: 0, duration: 0.002});

    var ALERT_INFO_1 = new tv.c.trace_model.EventInfo(
        'Alert 1', 'Critical alert',
        [{
          label: 'Project Page',
          textContent: 'Trace-Viewer Github Project',
          href: 'https://github.com/google/trace-viewer/'
        }]);

    var alert = new tv.c.trace_model.Alert(ALERT_INFO_1, 5, [slice]);

    var selection = new tv.c.Selection();
    selection.push(alert);

    var subView = document.createElement('tv-c-a-alert-sub-view');
    subView.selection = selection;
    this.addHTMLOutput(subView);

    var table = tv.b.findDeepElementMatching(
        subView, 'tracing-analysis-nested-table');

    var rows = table.tableRows;
    var columns = table.tableColumns;
    assert.lengthOf(rows, 4);
    assert.lengthOf(columns, 2);
  });
});
</script>


text:
1. PE master stop/start

  - Stop all PE services :

  ```
  service puppet stop
  service pe-puppetserver stop
  service pe-puppetdb stop
  service pe-console-services stop
  service pe-orchestration-services stop
  service pe-nginx stop
  ```

  - Start all PE services :

  ```
  service puppet start
  service pe-puppetserver start
  service pe-puppetdb start
  service pe-console-services start
  service pe-orchestration-services start
  service pe-nginx start
  ```

2. Puppet agent stop/start

  - Stop agent
  ```
  service puppet stop
  ```
  - Start agent
  ```
  service puppet start
  ```

### Important files/folders locations for PE :

1. Default folders used by a PE installation :

  ```
  /etc/puppetlabs/      : All configs and puppet code.
  /opt/puppetlabs/      : All binaries/modules for running Puppet itself. ( Not for users )
  /var/log/puppetlabs/  : PE logs folder.

  /var/log/puppetlabs/installer : Installation logs
  /etc/puppetlabs/enterprise/   : Configs used during installation
  ```

2. Default puppet code location :

  ```
  /etc/puppetlabs/code/environments/<your env name>/

  All modules should go inside this directory, unless you change the defaults.
  ```

  - Global manifests location

    You can define global manifests which would be applied to all nodes in the environment. ( unless you put some condition in the manifest itself to apply only to certain nodes of the environment. )

    ```
    /etc/puppetlabs/code/environments/<your env name>/manifests/

    Note : all the files in this directory are "global manifests" and will be executed in alphabetical order.
    ```

3. Location for external facts :

  Any of these are good -

  ```
  /opt/puppetlabs/facter/facts.d/
  /etc/puppetlabs/facter/facts.d/
  /etc/facter/facts.d/
  ```

  ( Note : you can even keep them inside any module under a "facts.d" directory. More here : <https://www.puppetcookbook.com/posts/deploying-external-facts-in-modules.html> )

4. License file location :

  ```
  /etc/puppetlabs/license.key
  ```

### Puppet useful commands :

#### Module related

- To generate a module :

  ```
    puppet module generate <author name>-<module name>
  ```

( Note : creates the structure in the current directory )

- List all installed modules :

  ```
  puppet module list
  ```

#### Agent related

- Manually trigger agent runs :

  [On Agent]
  ```
  puppet agent -t ( from the agent )
     OR
  From the console, go to the node and click "Run puppet"
  ```

- Execute agent run in "--noop" mode. (Meaning do not make changes, but tell me what the agent run would do.)

  [On Agent]
  ```
  puppet agent --noop -t
      OR
  From the console, go to the node and click "Run puppet" with the "noop" check box ticked.
  ```

- Get a list of all the classes that are being applied to a node :

  [On Agent]
  ```
  cat `puppet agent --configprint classfile` | grep -Ev "puppet_enterprise|pe_|default|settings" | sort -u

  # Explanation : The file path returned by env variable "classfile" contains the list of classes.
  # You can ignore all "puppet_enterprise", "pe_", "default" and "settings" classes, they for the running Puppet itself.
  # Also, note that the "classfile" is actually a cache of the classes attached to the node during last puppet agent run.
  # Which basically means if you attach a new class from Console, it won't show up in the "classfile" till a puppet agent run happens on the node.

  OR ( easier and most up-to-date way )

  Go to the console. Click on the node and "Classes" tab.

  ```

#### Master related

- Removing a node from the Puppet setup :

    [On Master]

    ```
    puppet node purge <node name>
    ```

    ( you can find the exact name using command 'puppet cert list --all')

    [On Agent]

    Copy the ./puppet-enterprise-uninstaller onto the agent ( from the PE tarball ) and run the uninstaller as root.

- Run puppet agent run on multiple nodes at a time :

    [On Master]

    ```
    puppet access login --lifetime 1h (generates an access token for 1 hr, for a PE Console user. It asks you the PE console userID/pwd)

    puppet job run --nodes <node names separated by commas and NO spaces> --environment <the environment, nodes belong to>
    ```

#### Modules related

A puppet module is just a collection of files and directories. Ideally, you would write the modules/puppet code on the master and then apply the classes to node groups via the PE Console. There are other ways, of course. Also there is nothing that stops you from keeping puppet code on an agent, but it defeats the purpose of being able to apply the code on all nodes.

Copying your particular module directory ( with any dependency modules ) _is same as_ installing a module.

- Installing a module

  To install a module from forge, the module page in forge gives the exact command. But the general command is

  ```
  puppet module install <author_name>-<module>
  ```

- Creating a module

  To generate a module template while creating a new module,

  ```
  puppet module generate <authorname>-<module>
  ```

- Module directory structure

  1. **manifests/** : all the puppet code goes here.
  2. **examples/** : gives examples of how to use the puppet classes in the module.
  3. **files/** : any static files ( usually plain text ) that is going to be used in your module.
  4. **templates/** : all epp or erb templates goes here.
  5. metadata.json : has all the metadata about the module. ( puts the data from your inputs during "puppet module generate" command)

- Testing/applying the puppet code locally

  * Check syntax of the puppet code
    ```
    puppet parser validate <filename>.pp

    # No output means everything is syntactically fine.
    ```

  * puppet apply

     Once you have written your puppet code in .pp file ( with or without a class ), below _puppet apply_ command would apply the code locally.

     Run a puppet code without class :

     ```
     puppet apply <file_name>.pp  # if the code is written without a class
     ```

     Run a puppet code with class definition :

     ```
     puppet apply -e "include <your class name>"  # if the code has a class you have to _include_ the class to run it.

     # Note : If your class has parameters then you have pass that as well, unless all have some defaults.

     OR

     echo "include <your class name>" > test_class.pp
     puppet apply test_class.pp  # calling a file is more useful when you want to pass parameters to the class while testing.
     ```
     Note : ```--noop``` works with puppet apply too. It'll tell you what the code would do, but won't actually make the changes.

### Miscellaneous :

1. Console URL : <https://master_hostname>

  - To reset the Console "admin" user password, run the below command on puppet master - with new password as the last argument :

  ```

  sudo /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/server/data/enterprise/modules/pe_install/files/set_console_admin_password.rb <the new pasword>

  ```

2. To get sample template of puppet code or see how a resource would look if expressed in puppet language :

  - puppet resource command

    ```
    puppet resource <resource type> <resource name>
    eg. puppet resource user root
       puppet resource file /etc/hosts
       puppet resource file /etc
       puppet resource service httpd
    ```

3. External facts - debugging

    ```
    puppet facts --debug # gives a detailed output of all that happened during facts gathering.
    ```

4. Puppet forge URL : <https://forge.puppet.com/>

   Order of preference should be Puppet supported, Puppet approved and then the rest.

    - Supported modules link : <https://forge.puppet.com/supported>
    - Approved modules link :<https://forge.puppet.com/approved>

5. Other puppet commands :

    * Check puppet version :
      ```
      puppet -V
      ```
      Note : The version is the component "puppet" 's version and not PE version. For PE version, the easiest way is to look at the PE console's bottom-left-most text. It should show something like _v2016.4.2_.

      If you do a ```puppet -V```, you can get the rest of the component versions from here. ( https://docs.puppet.com/pe/latest/overview_version_table.html )

      ![Puppet version](https://github.com/shyamgovind/puppet-cheat-sheets/blob/master/img/PE_version_2016.4.2.jpg)

    * List all the facts of any node

      [On the node]
      ```
      facter -p  # lists all the facts including external facts.

      OR

      Go to the node from PE console. Click on Facts tab.
      ```

      To search for a particular fact :

      [On the node]
      ```
      facter -p os   # Gives a tree of values inside fact "os".
      facter -p os.release.major # to get value of a fact down the tree.
      ```

    * Sign node certificates when a new node checks in

      ```
      PE Console > Nodes > Unsigned Certificates. Accept the ones you want to accept.

      OR

      On the master,
      puppet cert list # shows the list of unsigned certificates
      puppet cert sign <node name from the list>
        #or puppet cert sign -i --all  # will interactively go through all the certificate requests.

      ```

    * Puppet command help docs

      ```
      puppet help   # gives the entire list of all help docs for puppet command and its sub-commands.

      # you can then do something like
        puppet help cert
      # or
        puppet help node purge
      # etc. to get more details.
      ```

### Useful links :

  - Puppet Enterprise 2016.4 documentation : <https://docs.puppet.com/pe/2016.4/>

#### General info :
  - Puppet 2016.4.2 tarball downloads : <https://puppet.com/misc/pe-files/previous-releases>
  - Component versions in any version of PE : https://docs.puppet.com/pe/latest/overview_version_table.html
  - PE support cycle dates : https://puppet.com/misc/puppet-enterprise-lifecycle
  - PE support plans details : https://puppet.com/content/puppet-enterprise-support-plans

#### Installation related :

  - Port requirements for a monolithic setup : <https://docs.puppet.com/pe/2016.4/sys_req_sysconfig.html#for-monolithic-installs>
    - Few more ports while installing : <https://docs.puppet.com/pe/2016.4/sys_req_sysconfig.html#additional-port-usage-for-all-installation-types>

#### Puppet concepts :

  - Creating Environment node groups & Classification node groups : <https://docs.puppet.com/pe/2016.4/console_classes_groups.html#creating-environment-node-groups>

#### Misc & other puppet topics :
   - LDAP concepts in short : <http://stackoverflow.com/questions/18756688/what-are-cn-ou-dc-in-an-ldap-search>
   - How to add custom certificate for PE console : https://docs.puppet.com/pe/latest/custom_console_cert.html

redpajama_set_name: RedPajamaGithub


text:
/**
 * Tests for ECDH implementations of Web Crypto API.
 */
goog.provide('wycheproof.webcryptoapi.ECDH');
goog.require('goog.testing.TestCase');
goog.require('goog.testing.asserts');
goog.require('goog.testing.jsunit');
goog.require('wycheproof.BigInteger');
goog.require('wycheproof.TestUtil');
goog.require('wycheproof.webcryptoapi.RsaUtil');

var TestUtil = wycheproof.TestUtil;
var RsaUtil = wycheproof.webcryptoapi.RsaUtil;
var BigInteger = wycheproof.BigInteger;

// Test vector files
var ECDH_VECTOR_FILE = '../../testvectors/ecdh_webcrypto_test.json';

/** ECDH wrapper */
var Ecdh = function() {};

/**
 * Generates an ECDH key pair using the given curve name.
 * @param {!string} curveName The curve name
 *
 * @return {!Promise}
 */
Ecdh.generateKey = function(curveName) {
  return window.crypto.subtle.generateKey(
    {
        name: 'ECDH',
        namedCurve: curveName,
    },
    true,
    ['deriveKey', 'deriveBits']
  );
};

/**
 * Imports a ECDH key from the given key data.
 * @param {!JSONObject} keyData The key data in JWK format
 * @param {!Array<string>} usages The usages of the key
 *
 * @return {!Promise}
 */
Ecdh.importKey = function(keyData, usages) {
  return window.crypto.subtle.importKey(
    "jwk",
    keyData,
    {
        name: 'ECDH',
        namedCurve: keyData['crv'],
    },
    true,
    usages
  );
};

/**
 * Exports the given ECDSA key as a JSON object.
 * @param {!CryptoKey} key The ECDH key to be exported
 *
 * @return {!Promise}
 */
Ecdh.exportKey = function(key) {
  return window.crypto.subtle.exportKey("jwk", key);
};

/**
 * Derives bits from a public key and a private key.
 * @param {!CryptoKey} pubKey The public key
 * @param {!CryptoKey} privKey The private key
 * @param {number} bitLen The number of bits to be derived
 *
 * @return {!Promise}
 */
Ecdh.deriveBits = function(pubKey, privKey, bitLen) {
  return window.crypto.subtle.deriveBits(
    {
        name: 'ECDH',
        public: pubKey,
    },
    privKey,
    bitLen
  );
};

/**
 * Tests ECDH key derivation. The test case's parameters are passed
 * to 'this' variable of the function.
 *
 * @return {!Promise}
 */
Ecdh.testKeyDerivation = function() {
  tc = this;
  var sk, pk;
  var promise = new Promise(function(resolve, reject){
    Ecdh.importKey(tc.privKeyData, ['deriveBits']).then(function(key){
      sk = key;
      Ecdh.importKey(tc.pubKeyData, []).then(function(key){
        pk = key;
        Ecdh.deriveBits(pk, sk, tc.sharedKeyLen).then(function(sharedKey){
          if (tc.result == 'invalid') {
            reject('Failed on test case ' + tc.id);
          }
          var hexSharedKey = TestUtil.arrayBufferToHex(sharedKey);
          if (hexSharedKey != tc.sharedKey) {
            reject('Failed on test case ' + tc.id);
          }
          resolve();
        }).catch(function(err) {
          if (tc.result == 'valid') {
            reject('Unexpected exception on test case ' + tc.id + ": " + err);
          }
          resolve();
        });
      }).catch(function(err) {
        if (tc.result == 'valid') {
          reject('Failed to import public key: ' + err);
        }
        resolve();
      });
    }).catch(function(err) {
      // Allow skipping P-256K curve since this curve is not yet supported
      // by most implementations.
      if (tc.privKeyData['crv'] == 'P-256K') {
        resolve();
      }
      reject('Failed to import private key ' +tc.id + ":"  + err);
    });
  });
  return promise;
};

/**
 * Parameters of a ECDH key derivation test.
 * @param {!number} id Test case's id
 * @param {!JSONObject} privKeyData The private key's data in JWK format
 * @param {!JSONObject} pubKeyData The public key's data in JWK format
 * @param {!string} sharedKey The expected shared key
 * @param {!string} result The expected result of the test case
 */
var EcdhTestCase = function(id, privKeyData, pubKeyData, sharedKey, result) {
  this.id = id;
  this.privKeyData = privKeyData;
  this.pubKeyData = pubKeyData;
  this.sharedKey = sharedKey;
  this.sharedKeyLen = sharedKey.length/2*8;
  this.result = result;
};

/**
 * Tests ECDH key derivation with a number of test vectors.
 *
 * @return {!Promise}
 */
function testEcdhVectors() {
  var tv = TestUtil.readJsonTestVectorsFromFile(ECDH_VECTOR_FILE);
  var testCase = new goog.testing.TestCase();
  for (var i = 0; i < tv['testGroups'].length; i++) {
    tg = tv['testGroups'][i];
    for (var j = 0; j < tg['tests'].length; j++) {
      tc = tg['tests'][j];
      var test = new EcdhTestCase(tc['tcId'], tc['private'], tc['public'],
          tc['shared'], tc['result']);
      testCase.addNewTest(tc['tcId'], Ecdh.testKeyDerivation, test);
    }
  }
  return testCase.runTestsReturningPromise().then(TestUtil.checkTestCaseResult);
}


text:
<?php
namespace TYPO3\Flow\Tests\Unit\Validation\Validator;

require_once('AbstractValidatorTestcase.php');

/**
 * Testcase for the collection validator
 *
 */
class CollectionValidatorTest extends \TYPO3\Flow\Tests\Unit\Validation\Validator\AbstractValidatorTestcase
{
    protected $validatorClassName = \TYPO3\Flow\Validation\Validator\CollectionValidator::class;

    protected $mockValidatorResolver;

    public function setUp()
    {
        parent::setUp();
        $this->mockValidatorResolver = $this->getMockBuilder(\TYPO3\Flow\Validation\ValidatorResolver::class)->setMethods(array('createValidator', 'buildBaseValidatorConjunction'))->getMock();
        $this->validator->_set('validatorResolver', $this->mockValidatorResolver);
    }

    /**
     * @test
     */
    public function collectionValidatorReturnsNoErrorsForANullValue()
    {
        $this->assertFalse($this->validator->validate(null)->hasErrors());
    }

    /**
     * @test
     */
    public function collectionValidatorFailsForAValueNotBeingACollection()
    {
        $this->assertTrue($this->validator->validate(new \StdClass())->hasErrors());
    }

    /**
     * @test
     */
    public function collectionValidatorValidatesEveryElementOfACollectionWithTheGivenElementValidator()
    {
        $this->validator->_set('options', array('elementValidator' => 'EmailAddress', 'elementValidatorOptions' => []));
        $this->mockValidatorResolver->expects($this->exactly(4))->method('createValidator')->with('EmailAddress')->will($this->returnValue(new \TYPO3\Flow\Validation\Validator\EmailAddressValidator()));

        $arrayOfEmailAddresses = array(
            'andreas@neos.io',
            'not a valid address',
            'robert@neos.io',
            'also not valid'
        );

        $result = $this->validator->validate($arrayOfEmailAddresses);

        $this->assertTrue($result->hasErrors());
        $this->assertEquals(2, count($result->getFlattenedErrors()));
    }

    /**
     * @test
     */
    public function collectionValidatorValidatesNestedObjectStructuresWithoutEndlessLooping()
    {
        $classNameA = 'A' . md5(uniqid(mt_rand(), true));
        eval('class ' . $classNameA . '{ public $b = array(); public $integer = 5; }');
        $classNameB = 'B' . md5(uniqid(mt_rand(), true));
        eval('class ' . $classNameB . '{ public $a; public $c; public $integer = "Not an integer"; }');
        $A = new $classNameA();
        $B = new $classNameB();
        $A->b = array($B);
        $B->a = $A;
        $B->c = array($A);

        $this->mockValidatorResolver->expects($this->any())->method('createValidator')->with('Integer')->will($this->returnValue(new \TYPO3\Flow\Validation\Validator\IntegerValidator()));
        $this->mockValidatorResolver->expects($this->any())->method('buildBaseValidatorConjunction')->will($this->returnValue(new \TYPO3\Flow\Validation\Validator\GenericObjectValidator()));

        // Create validators
        $aValidator = new \TYPO3\Flow\Validation\Validator\GenericObjectValidator(array());
        $this->validator->_set('options', array('elementValidator' => 'Integer', 'elementValidatorOptions' => []));
        $integerValidator = new \TYPO3\Flow\Validation\Validator\IntegerValidator(array());

        // Add validators to properties
        $aValidator->addPropertyValidator('b', $this->validator);
        $aValidator->addPropertyValidator('integer', $integerValidator);

        $result = $aValidator->validate($A)->getFlattenedErrors();
        $this->assertEquals('A valid integer number is expected.', $result['b.0'][0]->getMessage());
    }

    /**
     * @test
     */
    public function collectionValidatorIsValidEarlyReturnsOnUnitializedDoctrinePersistenceCollections()
    {
        $entityManager = $this->getMockBuilder(\Doctrine\ORM\EntityManager::class)->disableOriginalConstructor()->getMock();
        $persistentCollection = new \Doctrine\ORM\PersistentCollection($entityManager, new \Doctrine\ORM\Mapping\ClassMetadata(''), new \Doctrine\Common\Collections\ArrayCollection());
        \TYPO3\Flow\Reflection\ObjectAccess::setProperty($persistentCollection, 'initialized', false, true);

        $this->mockValidatorResolver->expects($this->never())->method('createValidator');

        $this->validator->validate($persistentCollection);
    }

    /**
     * @test
     */
    public function collectionValidatorTransfersElementValidatorOptionsToTheElementValidator()
    {
        $elementValidatorOptions = ['minimum' => 5];
        $this->validator->_set('options', ['elementValidator' => 'NumberRange', 'elementValidatorOptions' => $elementValidatorOptions]);
        $this->mockValidatorResolver->expects($this->any())->method('createValidator')->with('NumberRange', $elementValidatorOptions)->will($this->returnValue(new \TYPO3\Flow\Validation\Validator\NumberRangeValidator($elementValidatorOptions)));

        $result = $this->validator->validate([5, 6, 1]);

        $this->assertCount(1, $result->getFlattenedErrors());
    }
}


text:
import Modal from 'flarum/components/Modal';
import Button from 'flarum/components/Button';

export default class FlagPostModal extends Modal {
  constructor(...args) {
    super(...args);

    this.reason = m.prop('');
    this.reasonDetail = m.prop('');
  }

  className() {
    return 'FlagPostModal Modal--small';
  }

  title() {
    return 'Flag Post';
  }

  content() {
    return (

            Choose a Reason

                <input type="radio" name="reason" checked={this.reason() === 'off_topic'} value="off_topic" onclick={m.withAttr('value', this.reason)}/>
                Off-topic

                <input type="radio" name="reason" checked={this.reason() === 'inappropriate'} value="inappropriate" onclick={m.withAttr('value', this.reason)}/>
                Inappropriate

                <input type="radio" name="reason" checked={this.reason() === 'spam'} value="spam" onclick={m.withAttr('value', this.reason)}/>
                Spam

                <input type="radio" name="reason" checked={this.reason() === 'other'} value="other" onclick={m.withAttr('value', this.reason)}/>
                Other
                {this.reason() === 'other' ? (
                  <textarea className="FormControl" value={this.reasonDetail()} oninput={m.withAttr('value', this.reasonDetail)}></textarea>
                ) : ''}

            <Button
              className="Button Button--primary"
              type="submit"
              loading={this.loading}
              disabled={!this.reason()}>
              Flag Post
            </Button>

    );
  }

  onsubmit(e) {
    e.preventDefault();

    this.loading = true;

    app.store.createRecord('flags').save({
      reason: this.reason() === 'other' ? null : this.reason(),
      reasonDetail: this.reasonDetail(),
      relationships: {
        user: app.session.user,
        post: this.props.post
      }
    }).then(
      () => this.hide(),
      () => {
        this.loading = false;
        m.redraw();
      }
    );
  }
}


text:
/* SQL Server: Query to check connections on port 1433 or other ports */

SELECT c.session_id, c.local_tcp_port, s.login_name, s.host_name, s.program_name
FROM sys.dm_exec_connections AS c INNER JOIN
            sys.dm_exec_sessions AS s on c.session_id = s.session_id
-- WHERE c.local_tcp_port <> 1433 -- Not equal to port '1433' --
WHERE c.local_tcp_port = 1433 -- Equal to port '1433' --


text:
@retrofit2.internal.EverythingIsNonNull
package retrofit2.adapter.rxjava;


text:
// <copyright file="ActionSequence.cs" company="WebDriver Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you 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>

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

namespace OpenQA.Selenium.Interactions
{
    /// <summary>
    /// Represents a sequence of actions to be performed in the target browser.
    /// </summary>
    public class ActionSequence
    {
        private List<Interaction> interactions = new List<Interaction>();
        private InputDevice device;

        /// <summary>
        /// Initializes a new instance of the <see cref="ActionSequence"/> class.
        /// </summary>
        /// <param name="device">The input device that executes this sequence of actions.</param>
        /// <param name="initialSize">the initial size of the sequence.</param>
        public ActionSequence(InputDevice device, int initialSize)
        {
            if (device == null)
            {
                throw new ArgumentNullException("device", "Input device cannot be null.");
            }

            this.device = device;

            for (int i = 0; i < initialSize; i++)
            {
                this.AddAction(new PauseInteraction(device, TimeSpan.Zero));
            }
        }

        /// <summary>
        /// Gets the count of actions in the sequence.
        /// </summary>
        public int Count
        {
            get { return this.interactions.Count; }
        }

        /// <summary>
        /// Adds an action to the sequence.
        /// </summary>
        /// <param name="interactionToAdd">The action to add to the sequence.</param>
        /// <returns>A self-reference to this sequence of actions.</returns>
        public ActionSequence AddAction(Interaction interactionToAdd)
        {
            if (interactionToAdd == null)
            {
                throw new ArgumentNullException("interactionToAdd", "Interaction to add to sequence must not be null");
            }

            if (!interactionToAdd.IsValidFor(this.device.DeviceKind))
            {
                throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Interaction {0} is invalid for device type {1}.", interactionToAdd.GetType(), this.device.DeviceKind), "interactionToAdd");
            }

            this.interactions.Add(interactionToAdd);
            return this;
        }

        /// <summary>
        /// Converts this action sequence into an object suitable for serializing across the wire.
        /// </summary>
        /// <returns>A <see cref="Dictionary{TKey, TValue}"/> containing the actions in this sequence.</returns>
        public Dictionary<string, object> ToDictionary()
        {
            Dictionary<string, object> toReturn = this.device.ToDictionary();

            List<object> encodedActions = new List<object>();
            foreach (Interaction action in this.interactions)
            {
                encodedActions.Add(action.ToDictionary());
            }

            toReturn["actions"] = encodedActions;

            return toReturn;
        }

        /// <summary>
        /// Returns a string that represents the current <see cref="ActionSequence"/>.
        /// </summary>
        /// <returns>A string that represents the current <see cref="ActionSequence"/>.</returns>
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder("Action sequence - ").Append(this.device.ToString());
            foreach (Interaction action in this.interactions)
            {
                builder.AppendLine();
                builder.AppendFormat("    {0}", action.ToString());
            }

            return builder.ToString();
        }
    }
}


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

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

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

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

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.androidthings.imageclassifier">
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.CAMERA"/>

    <uses-permission android:name="com.google.android.things.permission.USE_PERIPHERAL_IO"/>
    <uses-permission android:name="com.google.android.things.permission.MANAGE_INPUT_DRIVERS" />

    <application
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
        <!-- Launch activity as default from Android Studio -->
        <activity android:name=".ImageClassifierActivity"
            android:screenOrientation="landscape"
            android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>


text:
<!DOCTYPE>

    <meta charset="UTF-8" />
    <title>jQuery Router Demos</title>

Static paths

    Test

    Settings

    Quit

Dynamic paths

    Book1

    Book2

    Note1

    Note2

Query strings

    Test

    Book1

    Note1

Output


text:
Please put plugin file of hk\_sub\_ on this directory.

If you make plugin, please run ``ruby main.rb --generate``.Make plugin template file by hk\_sub\_.


text:
import { lstat as lstatRaw } from 'fs';
import { promisify } from 'util';
import { Output } from './output';
import chalk from 'chalk';
import { homedir } from 'os';
import confirm from './input/confirm';
import { prependEmoji, emoji } from './emoji';
import toHumanPath from './humanize-path';

const stat = promisify(lstatRaw);

/**
 * A helper function to validate the `rootDirectory` input.
 */
export async function validateRootDirectory(
  output: Output,
  cwd: string,
  path: string,
  errorSuffix: string
) {
  const pathStat = await stat(path).catch(() => null);
  const suffix = errorSuffix ? ` ${errorSuffix}` : '';

  if (!pathStat) {
    output.print(
      `${chalk.red('Error!')} The provided path ${chalk.cyan(
        `"${toHumanPath(path)}"`
      )} does not exist.${suffix}\n`
    );
    return false;
  }

  if (!pathStat.isDirectory()) {
    output.print(
      `${chalk.red('Error!')} The provided path ${chalk.cyan(
        `"${toHumanPath(path)}"`
      )} is a file, but expected a directory.${suffix}\n`
    );
    return false;
  }

  if (!path.startsWith(cwd)) {
    output.print(
      `${chalk.red('Error!')} The provided path ${chalk.cyan(
        `"${toHumanPath(path)}"`
      )} is outside of the project.${suffix}\n`
    );
    return false;
  }

  return true;
}

export default async function validatePaths(
  output: Output,
  paths: string[]
): Promise<
  | { valid: true; path: string; isFile: boolean }
  | { valid: false; exitCode: number }
> {
  // can't deploy more than 1 path
  if (paths.length > 1) {
    output.print(`${chalk.red('Error!')} Can't deploy more than one path.\n`);
    return { valid: false, exitCode: 1 };
  }

  const path = paths[0];

  // can only deploy a directory
  const pathStat = await stat(path).catch(() => null);

  if (!pathStat) {
    output.print(
      `${chalk.red('Error!')} Could not find ${chalk.cyan(
        `"${toHumanPath(path)}"`
      )}\n`
    );
    return { valid: false, exitCode: 1 };
  }

  const isFile = pathStat && !pathStat.isDirectory();
  if (isFile) {
    output.print(
      `${prependEmoji(
        'Deploying files with Vercel is deprecated (https://vercel.link/faq-deploy-file)',
        emoji('warning')
      )}\n`
    );
  }

  // ask confirmation if the directory is home
  if (path === homedir()) {
    const shouldDeployHomeDirectory = await confirm(
      `You are deploying your home directory. Do you want to continue?`,
      false
    );

    if (!shouldDeployHomeDirectory) {
      output.print(`Aborted\n`);
      return { valid: false, exitCode: 0 };
    }
  }

  return { valid: true, path, isFile };
}


text:
<component name="DependencyValidationManager">
  <scope name="All Tests" pattern="file[exedore]:src//*.test.js||file[exedore]:src//*examples.js" />
</component>


text:
(function ($) {
define([
	'text!elements/upfront-posts/tpl/views.html',
	'elements/upfront-posts/js/post-list-views',
	'elements/upfront-posts/js/post-list-settings'
], function(tpl, Views, PostsSettings) {

var l10n = Upfront.Settings.l10n.posts_element;
var $template = $(tpl);

var PostsModel = Upfront.Models.ObjectModel.extend({
	init: function () {
		var properties = Upfront.data.upfront_posts
			? _.clone(Upfront.data.upfront_posts)
			: {}
		;
		properties.element_id = Upfront.Util.get_unique_id(properties.id_slug + '-object');
		this.init_properties(properties);
	}
});

var PostsView = Upfront.Views.ObjectView.extend({

	init: function () {
		this.listenTo(Upfront.Events, 'csseditor:open', this.on_csseditor_open);
		this.listenTo(Upfront.Events, 'csseditor:closed', this.on_csseditor_closed);
	},

	on_render: function () {
		var type = this.model.get_property_value_by_name("display_type");
		this.render_type_view(type);
	},

	render_type_view: function (type) {
		type = type || Views.DEFAULT;
		var me = this,
			view = Views[type]
			? new Views[type]({model: this.model})
			: new Views[Views.DEFAULT]({model: this.model})
		;
		view.element = this;
		view.render();
		this.$el.find(".upfront-object-content").empty().append(view.$el);
		if ( view._posts_load ){
			view._posts_load.success(function(){
				me.adjust_featured_images();
			});
		}
	},

	on_csseditor_open: function (id) {
		if ( id != this.model.get_element_id() )
			return;
		this.listenTo(Upfront.Application.cssEditor, 'updateStyles', this.adjust_featured_images);
	},

	on_csseditor_closed: function (id) {
		if ( id != this.model.get_element_id() )
			return;
		this.stopListening(Upfront.Application.cssEditor, 'updateStyles');
	},

	adjust_featured_images: function () {
		console.log('adjust featured images...')
		this.$el.find('.thumbnail').each(function(){
			var height = $(this).height(),
				width = $(this).width(),
				$img = $(this).find('img'),
				img_h, img_w;
			if ( $(this).attr('data-resize') == "1" ) {
				$img.css({ height: "", width: "" });
				img_h = $img.height();
				img_w = $img.width();
				if ( height/width > img_h/img_w )
					$img.css({ height: '100%', width: 'auto', marginLeft: (width-Math.round(height/img_h*img_w))/2, marginTop: "" });
				else
					$img.css({ height: 'auto', width: '100%', marginLeft: "", marginTop: (height-Math.round(width/img_w*img_h))/2 });
			}
			else {
				img_h = $img.height();
				if ( height != img_h )
					$img.css('margin-top', (height-img_h)/2);
			}
		});
	}
});

var PostsElement = Upfront.Views.Editor.Sidebar.Element.extend({

	render: function () {
		this.$el.addClass('upfront-icon-element upfront-icon-element-posts');
		this.$el.html(l10n.element_name);
	},

	add_element: function () {

		var object = new PostsModel(),
			module = new Upfront.Models.Module({
				name: "",
				properties: [
					{"name": "element_id", "value": Upfront.Util.get_unique_id("module")},
					{"name": "class", "value": "c24 upfront-posts_module"},
					{"name": "has_settings", "value": 0},
					{"name": "row", "value": Upfront.Util.height_to_row(210)}
				],
				objects: [object]
			})
		;
		this.add_module(module);
	}
});

Upfront.Application.LayoutEditor.add_object("Uposts", {
	"Model": PostsModel,
	"View": PostsView,
	"Element": PostsElement,
	"Settings": PostsSettings,
	cssSelectors: {
		'.uposts-object ul': {label: l10n.css.container_label, info: l10n.css.container_info},
		'.uposts-object li': {label: l10n.css.post_label, info: l10n.css.post_info},
		'.uposts-object li .date_posted': {label: l10n.css.date_label, info: l10n.css.date_info},
		'.uposts-object li .author': {label: l10n.css.author_label, info: l10n.css.author_info},
		'.uposts-object li .post_categories': {label: l10n.css.categories_label, info: l10n.css.categories_info},
		'.uposts-object li .comment_count': {label: l10n.css.comment_count_label, info: l10n.css.comment_count_info},
		'.uposts-object li .content': {label: l10n.css.content_label, info: l10n.css.content_info},
		'.uposts-object li .gravatar': {label: l10n.css.gravatar_label, info: l10n.css.gravatar_info},
		'.uposts-object li .read_more': {label: l10n.css.read_more_label, info: l10n.css.read_more_info},
		'.uposts-object li .post_tags': {label: l10n.css.post_tags_label, info: l10n.css.post_tags_info},
		'.uposts-object li .thumbnail': {label: l10n.css.thumbnail_label, info: l10n.css.thumbnail_info},
		'.uposts-object li .title': {label: l10n.css.title_label, info: l10n.css.title_info},
	},
	cssSelectorsId: Upfront.data.upfront_posts.type
});
Upfront.Models.PostsModel = PostsModel;
Upfront.Views.PostsView = PostsView;

});
}(jQuery));


text:
#ifndef INTERFACE_ROBOTPOSEGUI_H
#define INTERFACE_ROBOTPOSEGUI_H

#include "ResourceGUI.h"
#include "View/RobotPoseWidget.h"
#include "View/ObjectPoseWidget.h"
#include "Control/Sensor.h"
#include <KrisLibrary/utils/apputils.h>
#include <fstream>

using namespace Math3D;
using namespace GLDraw;

#define GLUT_LEFT_BUTTON 0
#define GLUT_MIDDLE_BUTTON 1
#define GLUT_RIGHT_BUTTON 2

/** @brief Contains the functionality for the RobotPose program
 *
 * Accepts button toggle messages:
 * - draw_geom
 * - draw_bbs
 * - draw_com
 * - draw_frame
 * - draw_poser
 * - draw_sensors
 *
 * Accepts commands (in addition to ResourceGUIBackend and WorldGUIBackend):
 * - pose_mode: next clicks will pose the robot's joints
 * - undo_pose: undoes the last robot pose
 * - constrain_link_mode: next clicks will add constraints to a link
 * - constrain_point_mode: next clicks will add point constraints
 * - delete_constraint_mode: next clicks will delete constraints
 * - set_link(link): sets the selected link
 * - set_link_value(value): sets the value of the selected link
 * - set_driver(link): sets the selected driver
 * - set_driver_value(value): sets the value of the selected driver
 * - poser_to_resource type: Takes the poser and converts it to a resource
 *   of the given type (can be Config, IKGoal, Stance, Grasp)
 * - poser_to_resource_overwrite: Uses the poser to overwrite the current
 *   resource.
 * - resource_to_poser: Takes the current resource and sends it to the poser
 *   (can be Config, IKGoal, Stance, Grasp)
 * - create_path: creates a path given the current resource.  If it's a
 *   Config, creates a path from the config to the poser's config.
 *   If it's a Configs, creates a path between those milestones (possibly
 *   obeying the IKGoals)
 * - discretize_path num: creates a set of Configs by discretizing the
 *   selected LinearPath, MultiPath, or Configs into the given number of
 *   evenly spaced milestones.
 * - optimize_path: optimizes the current LinearPath, MultiPath, Configs
 *   resource.
 * - split_path: splits the current LinearPath or MultiPath at the current
 *   time into two paths.
 * - store_flat_contacts [xtol]: gets the stance for the robot standing on
 *   flat ground and adds it as a new resource
 * - get_flat_contacts [xtol]: gets the stance for the robot standing on
 *   flat ground and stores it in the current Stance resource.
 * - get_nearby_contacts [xtol]: gets the stance for the robot touching the
 *   environment with the given position tolerance, and stores it in the
 *   current Stance resource.
 * - clean_contacts [xtol] [ntol]: cleans up the current Stance or Hold
 *   resource. Points and normals within xtol and ntol, respectively, will
 *   be merged.
 * - resample res: resamples geomery with the given resolution.
 */
class RobotPoseBackend : public ResourceGUIBackend
{
 public:
  AppUtils::ProgramSettings settings;
  Robot* robot;
  int cur_link,cur_driver;
  vector<bool> self_colliding, env_colliding;

  int pose_objects;
  vector<RobotPoseWidget> robotWidgets;
  vector<RigidObjectPoseWidget> objectWidgets;
  WidgetSet allWidgets;
  GLDraw::Widget* lastActiveWidget;
  int draw_geom,draw_poser,draw_bbs,draw_com,draw_frame,draw_sensors;
  //temp: sensors storage
  RobotSensors robotSensors;

  RobotPoseBackend(RobotWorld* world,ResourceManager* library);
  virtual void Start();
  void UpdateConfig();
  virtual void RenderWorld();
  virtual bool OnButtonPress(const string& button);
  virtual bool OnButtonToggle(const string& button,int checked);
  virtual bool OnCommand(const string& cmd,const string& args);
  virtual void DoPassiveMouseMove(int x, int y);
  virtual void BeginDrag(int x,int y,int button,int modifiers);
  virtual void EndDrag(int x,int y,int button,int modifiers);
  virtual void DoFreeDrag(int dx,int dy,int button);
  void SetDrawExpanded(int value);

  Stance GetFlatStance(Real tolerance=0);
  Stance GetNearbyStance(Real tolerance=0);
  void CleanContacts(Hold&,Real xtol=0,Real ntol=0);
  ResourcePtr PoserToResource(const string& type);
};

#endif //INTERFACE_ROBOTPOSEGUI_H


text:
// Copyright (c) MOSA Project. Licensed under the New BSD License.

namespace Mosa.Compiler.Framework.IR
{
	/// <summary>
	///
	/// </summary>
	public static class IRInstruction
	{
		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction AddFloat = new AddFloat();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction AddSigned = new AddSigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction AddUnsigned = new AddUnsigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction AddressOf = new AddressOf();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction ArithmeticShiftRight = new ArithmeticShiftRight();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Break = new Break();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction DivFloat = new DivFloat();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction DivSigned = new DivSigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction DivUnsigned = new DivUnsigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Epilogue = new Epilogue();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction FloatCompare = new FloatCompare();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction FloatToIntegerConversion = new FloatToIntegerConversion();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction IntegerCompareBranch = new IntegerCompareBranch();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction IntegerCompare = new IntegerCompare();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction IntegerToFloatConversion = new IntegerToFloatConversion();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Jmp = new Jmp();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Load = new Load();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction CompoundLoad = new CompoundLoad();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction LoadZeroExtended = new LoadZeroExtended();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction LoadSignExtended = new LoadSignExtended();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction LogicalAnd = new LogicalAnd();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction LogicalNot = new LogicalNot();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction LogicalOr = new LogicalOr();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction LogicalXor = new LogicalXor();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Move = new Move();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction CompoundMove = new CompoundMove();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction MulFloat = new MulFloat();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction MulSigned = new MulSigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction MulUnsigned = new MulUnsigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Phi = new Phi();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Prologue = new Prologue();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction RemFloat = new RemFloat();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction RemSigned = new RemSigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction RemUnsigned = new RemUnsigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Return = new Return();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction InternalCall = new InternalCall();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction InternalReturn = new InternalReturn();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction ShiftRight = new ShiftRight();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction ShiftLeft = new ShiftLeft();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction SignExtendedMove = new SignExtendedMove();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Store = new Store();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction CompoundStore = new CompoundStore();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction SubFloat = new SubFloat();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction SubSigned = new SubSigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction SubUnsigned = new SubUnsigned();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction ZeroExtendedMove = new ZeroExtendedMove();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Call = new Call();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Nop = new Nop();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Switch = new Switch();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Throw = new Throw();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction TryStart = new TryStart();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction ExceptionStart = new ExceptionStart();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction FinallyStart = new FinallyStart();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction TryEnd = new TryEnd();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction ExceptionEnd = new ExceptionEnd();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction FinallyEnd = new FinallyEnd();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction FinallyReturn = new FinallyReturn();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction IntrinsicMethodCall = new IntrinsicMethodCall();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction BlockEnd = new BlockEnd();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction BlockStart = new BlockStart();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Gen = new Gen();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Kill = new Kill();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction KillAll = new KillAll();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction KillAllExcept = new KillAllExcept();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction CallFinally = new CallFinally();

		/// <summary>
		///
		/// </summary>
		public static readonly BaseIRInstruction Flow = new Flow();
	}
}


text:
package io.github.mzmine.modules.visualization.twod;

import io.github.mzmine.parameters.Parameter;
import io.github.mzmine.parameters.impl.SimpleParameterSet;
import io.github.mzmine.parameters.parametertypes.ComboParameter;
import io.github.mzmine.parameters.parametertypes.WindowSettingsParameter;
import io.github.mzmine.parameters.parametertypes.ranges.MZRangeParameter;
import io.github.mzmine.parameters.parametertypes.selectors.RawDataFilesParameter;
import io.github.mzmine.parameters.parametertypes.selectors.ScanSelection;
import io.github.mzmine.parameters.parametertypes.selectors.ScanSelectionParameter;
import javafx.collections.FXCollections;

/**
 * 2D visualizer parameter set
 */
public class TwoDVisualizerParameters extends SimpleParameterSet {

  public static final ComboParameter<PlotType> plotType =
      new ComboParameter<>("Type of plot", "Resampled data -> fast. Raw data -> slow.",
          FXCollections.observableArrayList(PlotType.values()));

  public static final RawDataFilesParameter dataFiles = new RawDataFilesParameter(1, 1);

  public static final ScanSelectionParameter scanSelection =
      new ScanSelectionParameter(new ScanSelection(1));

  public static final MZRangeParameter mzRange = new MZRangeParameter();

  public static final FeatureThresholdParameter featureThresholdSettings = new FeatureThresholdParameter();

  /**
   * Windows size and position
   */
  public static final WindowSettingsParameter windowSettings = new WindowSettingsParameter();

  public TwoDVisualizerParameters() {
    super(new Parameter[] {plotType, dataFiles, scanSelection, mzRange, featureThresholdSettings,
        windowSettings});
  }

}


text:
package com.vaadin.tests.layouts.layouttester.VLayout;

import com.vaadin.tests.layouts.layouttester.BaseCaption;
import com.vaadin.ui.VerticalLayout;

/**
 *
 * @since
 * @author Vaadin Ltd
 */

public class VCaption extends BaseCaption {

    public VCaption() {
        super(VerticalLayout.class);
        // TODO Auto-generated constructor stub
    }

}


text:
/* ###
 * IP: GHIDRA
 * REVIEWED: YES
 *
 * 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.
 */
package ghidra.pcodeCPort.context;

import ghidra.pcodeCPort.error.*;
import ghidra.sleigh.grammar.Location;

public class SleighError extends LowlevelError {

    public final Location location;

	public SleighError( String string, Location location ) {
		super( string );
		this.location = location;
	}

}


text:
require 'braille_ueb/constants'
require 'braille_ueb/char'
require 'braille_ueb/token'
require 'braille_ueb/word'

module BrailleUEB

  def self.translate(input)
    words = input.scan(/[0-9A-Za-z_.!?,,]+/)
    translated = words.map { |w| Token.new(w).translate }
    translated.join(' ')
  end

end


text:
class ClassyEnumGenerator < Rails::Generators::NamedBase
  desc "Generate a ClassyEnum definition in app/enums/"

  argument :name, type: :string, required: true, banner: 'EnumName'
  argument :values, type: :array, default: [], banner: 'value1 value2 value3 etc...'

  source_root File.expand_path("../templates", __FILE__)

  def copy_files # :nodoc:
    template "enum.rb", "app/enums/#{file_name}.rb"
  end

  hook_for :test_framework
end


text:
@interface WeekBarView ()

@end

@implementation WeekBarView

-(void)layoutSubviews{

    [super layoutSubviews];

    CGFloat itemWidth = (self.width - (self.config.horizontalSpacingInWeekBar * 6) - self.config.weekBarFrontAndBackMargin)/7;
    CGFloat itemHeigth = self.height;

    CGFloat margin= self.config.weekBarFrontAndBackMargin/2.0;

    if(self.subviews.count > 0){

        NSInteger count = self.subviews.count;

        // 刷新布局
        for (NSInteger i=0; i < count; i++) {

            if([self.subviews[i] isKindOfClass:[UILabel class]]){

                UILabel *label = (UILabel *)self.subviews[i];
                label.frame = CGRectMake(margin + i*(itemWidth+self.config.horizontalSpacingInWeekBar), 0, itemWidth, itemHeigth - self.config.weekBarBottomLineWidth);
            }
        }

        return;
    }

    self.backgroundColor = self.config.weekLineBetweenColor;

    NSArray *weekList = @[@"周日",@"周一",@"周二",@"周三",@"周四",@"周五",@"周六"];
    if(self.config.weekBarTextList){
        weekList = self.config.weekBarTextList;
    }

    for (NSInteger i=0; i<7; i++) {

        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(margin + i*(itemWidth+self.config.horizontalSpacingInWeekBar), 0, itemWidth, itemHeigth - self.config.weekBarBottomLineWidth)];

        label.textAlignment = NSTextAlignmentCenter;
        label.text = weekList[i];
        label.font = self.config.weekFont;
        label.textColor = self.config.weekFontColor;
        label.backgroundColor = self.config.weekBackgroundColor;
        [self addSubview:label];
    }

}

- (void)drawRect:(CGRect)rect{

    CGContextRef ctx = UIGraphicsGetCurrentContext();

    // 低部边线
    CGContextSetLineWidth(ctx,self.config.weekBarBottomLineWidth);                          // 线宽
    CGContextSetRGBStrokeColor(ctx, 218.0/255.0, 218.0/255.0, 218.0/255.0, 1);
    CGContextMoveToPoint(ctx, 0,self.frame.size.height - self.config.weekBarBottomLineWidth/2.0);
    CGContextAddLineToPoint(ctx,self.frame.size.width,self.frame.size.height - self.config.weekBarBottomLineWidth/2.0);
    CGContextStrokePath(ctx);

    // 渲染到view上
    CGContextStrokePath(ctx);

}

-(void)selectWeekWithIndex:(NSInteger)index{

    UILabel *temp =nil;

    for (int i = 0; i < 7; i++) {
        if (i == index) {
            temp =  ((UILabel *)self.subviews[i]);
            temp.font = [UIFont boldSystemFontOfSize:13.0f];
             temp.textColor = [UIColor colorWithWhite:0.200 alpha:1.000];

        }else{
            temp =  ((UILabel *)self.subviews[i]);
            temp.font = [UIFont systemFontOfSize:13.0f];
            temp.textColor = [UIColor colorWithWhite:0.600 alpha:1.000];
        }
    }

}

@end


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

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>App Engine PHP SDK: google\appengine\api\log\RequestLog Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="common.css" rel="stylesheet" type="text/css"/>

App Engine PHP SDK
    v1 rev.445

The PHP runtime is available as an experimental Preview feature.

google

appengine

api

log

RequestLog

Public Member Functions |
List of all members

google\appengine\api\log\RequestLog Class Reference

Public Member Functions

 	__construct (\google\appengine\RequestLog $pb)

 	getAppId ()

 	getAppLogs ()

 	getCombined ()

 	getStartTimeUsec ()

 	getStartDateTime ()

 	getEndTimeUsec ()

 	getEndDateTime ()

 	getHost ()

 	getHttpVersion ()

 	getInstanceKey ()

 	getIp ()

 	getLatencyUsec ()

 	getMethod ()

 	getNickname ()

 	getOffset ()

 	getPendingTimeUsec ()

 	getReferrer ()

 	getInstanceIndex ()

 	getRequestId ()

 	getResource ()

 	getResponseSize ()

 	getStatus ()

 	getTaskName ()

 	getTaskQueueName ()

 	getUrlMapEntry ()

 	getUserAgent ()

 	getVersionId ()

 	getModuleId ()

 	isFinished ()

 	isLoadingRequest ()

 	getAppEngineRelease ()

Detailed Description

Represents the details of a single request and may optionally contain application logs written during the request using the syslog function.

Member Function Documentation

          google\appengine\api\log\RequestLog::getAppEngineRelease
          (
          	)

Returns

string App Engine Release, e.g. "1.8.4"

          google\appengine\api\log\RequestLog::getAppId
          (
          	)

Returns

string The application ID that handled this request.

          google\appengine\api\log\RequestLog::getAppLogs
          (
          	)

Returns

AppLogLine[] The AppLogLines added during this request.

          google\appengine\api\log\RequestLog::getCombined
          (
          	)

Returns

string The Apache-format combined log entry for this request. While the information in this field can be constructed from the rest of this message, we include this method for convenience.

          google\appengine\api\log\RequestLog::getEndDateTime
          (
          	)

Returns

DateTime The same value as getEndTimeUsec() as a DateTime instance accurate to the second. For greater accuracy use getEndTimeUsec().

          google\appengine\api\log\RequestLog::getEndTimeUsec
          (
          	)

Returns

double The time at which the request finished processing, in microseconds since the Unix epoch.

          google\appengine\api\log\RequestLog::getHost
          (
          	)

Returns

string The Internet host and port number of the resource being requested.

          google\appengine\api\log\RequestLog::getHttpVersion
          (
          	)

Returns

string The HTTP version of this request.

          google\appengine\api\log\RequestLog::getInstanceIndex
          (
          	)

Returns

integer The module instance that handled the request if manual_scaling or basic_scaling is configured or -1 for automatic_scaling.

          google\appengine\api\log\RequestLog::getInstanceKey
          (
          	)

Returns

string Mostly-unique identifier for the instance that handled the request, or the empty string.

          google\appengine\api\log\RequestLog::getIp
          (
          	)

Returns

string The origin IP address of this request. App Engine uses an origin IP address from the 0.0.0.0/8 range when the request is to a web hook. Some examples of web hooks are task queues, cron jobs and warming requests.

          google\appengine\api\log\RequestLog::getLatencyUsec
          (
          	)

Returns

double The time required to process this request in microseconds.

          google\appengine\api\log\RequestLog::getMethod
          (
          	)

Returns

string The request's HTTP method (e.g., GET, PUT, POST).

          google\appengine\api\log\RequestLog::getModuleId
          (
          	)

Returns

string The version of the application that handled this request.

          google\appengine\api\log\RequestLog::getNickname
          (
          	)

Returns

string The nickname of the user that made the request. An empty string is returned if the user is not logged in.

          google\appengine\api\log\RequestLog::getOffset
          (
          	)

Returns

string A url safe value that may be used as an option to LogService::fetch($options) to continue reading after this log.

          google\appengine\api\log\RequestLog::getPendingTimeUsec
          (
          	)

Returns

double The time, in microseconds, that this request spent in the pending request queue, if it was pending at all.

          google\appengine\api\log\RequestLog::getReferrer
          (
          	)

Returns

string The referrer URL of this request.

          google\appengine\api\log\RequestLog::getRequestId
          (
          	)

Returns

string A globally unique identifier for a request, based on the request's starting time.

          google\appengine\api\log\RequestLog::getResource
          (
          	)

Returns

string The resource path on the server requested by the client. Contains only the path component of the request URL.

          google\appengine\api\log\RequestLog::getResponseSize
          (
          	)

Returns

integer The size (in bytes) of the response sent back to the client.

          google\appengine\api\log\RequestLog::getStartDateTime
          (
          	)

Returns

DateTime The same value as getStartTimeUsec() as a DateTime instance accurate to the second. For greater accuracy use getStartTimeUsec().

          google\appengine\api\log\RequestLog::getStartTimeUsec
          (
          	)

Returns

double The time at which this request began processing, in microseconds since the Unix epoch.

          google\appengine\api\log\RequestLog::getStatus
          (
          	)

Returns

integer The HTTP response status of this request.

          google\appengine\api\log\RequestLog::getTaskName
          (
          	)

Returns

string The request's task name, if this request was generated via the Task Queue API.

          google\appengine\api\log\RequestLog::getTaskQueueName
          (
          	)

Returns

string The request's queue name, if this request was generated via the Task Queue API.

          google\appengine\api\log\RequestLog::getUrlMapEntry
          (
          	)

Returns

string The file or class within the URL mapping used for this request. Useful for tracking down the source code which was responsible for managing the request, especially for multiply mapped handlers.

          google\appengine\api\log\RequestLog::getUserAgent
          (
          	)

Returns

string The user agent used to make this request.

          google\appengine\api\log\RequestLog::getVersionId
          (
          	)

Returns

string The version of the application that handled this request.

          google\appengine\api\log\RequestLog::isFinished
          (
          	)

Returns

boolean Whether or not this request has finished processing. If not, this request is still active.

          google\appengine\api\log\RequestLog::isLoadingRequest
          (
          	)

Returns

boolean Whether or not this request was a loading request.

The documentation for this class was generated from the following file:

code/googleappengine-read-only/python/php/sdk/google/appengine/api/log/RequestLog.php

<address class="footer">
    Maintained by tzmartin
</address>


text:
package com.pitchedapps.facebook.frost.exampleFragments;

import android.graphics.Paint;
import android.os.Bundle;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import com.pitchedapps.facebook.frost.R;
import com.sromku.simple.fb.SimpleFacebook;
import com.sromku.simple.fb.actions.Cursor;
import com.sromku.simple.fb.entities.Page;
import com.sromku.simple.fb.listeners.OnPagesListener;
import com.sromku.simple.fb.utils.Utils;

import java.util.List;

public class GetMusicFragment extends BaseFragment {

    private final static String EXAMPLE = "Get music";

    private TextView mResult;
    private Button mGetButton;
    private TextView mMore;
    private String mAllPages = "";

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

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_example_action, container, false);
        mResult = (TextView) view.findViewById(R.id.result);
        mMore = (TextView) view.findViewById(R.id.load_more);
        mMore.setPaintFlags(mMore.getPaint().getFlags() | Paint.UNDERLINE_TEXT_FLAG);
        mGetButton = (Button) view.findViewById(R.id.button);
        mGetButton.setText(EXAMPLE);
        mGetButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mAllPages = "";
                mResult.setText(mAllPages);

                SimpleFacebook.getInstance().getMusic(new OnPagesListener() {

                    @Override
                    public void onThinking() {
                        showDialog();
                    }

                    @Override
                    public void onException(Throwable throwable) {
                        hideDialog();
                        mResult.setText(throwable.getMessage());
                    }

                    @Override
                    public void onFail(String reason) {
                        hideDialog();
                        mResult.setText(reason);
                    }

                    @Override
                    public void onComplete(List<Page> response) {
                        hideDialog();
                        // make the result readable.
                        mAllPages += "\u25B7\u25B7\u25B7 (paging) #" + getPageNum() + " \u25C1\u25C1\u25C1
";
                        mAllPages += Utils.join(response.iterator(), "
", new Utils.Process<Page>() {
                            @Override
                            public String process(Page page) {
                                return "\u25CF " + page.getName() + " \u25CF";
                            }
                        });
                        mAllPages += "
";
                        mResult.setText(Html.fromHtml(mAllPages));

                        // check if more pages exist
                        if (hasNext()) {
                            enableLoadMore(getCursor());
                        } else {
                            disableLoadMore();
                        }
                    }
                });
            }
        });
        return view;
    }

    private void enableLoadMore(final Cursor<List<Page>> cursor) {
        mMore.setVisibility(View.VISIBLE);
        mMore.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View arg0) {
                mAllPages += "
";
                cursor.next();
            }
        });
    }

    private void disableLoadMore() {
        mMore.setOnClickListener(null);
        mMore.setVisibility(View.INVISIBLE);
    }
}


text:
.class public Lcom/google/android/gms/location/internal/zzc;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/os/Parcelable$Creator;

# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/os/Parcelable$Creator",
        "<",
        "Lcom/google/android/gms/location/internal/ClientIdentity;",
        ">;"
    }
.end annotation

# direct methods
.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static zza(Lcom/google/android/gms/location/internal/ClientIdentity;Landroid/os/Parcel;I)V
    .registers 7

    invoke-static {p1}, Lcom/google/android/gms/common/internal/safeparcel/zzb;->zzaq(Landroid/os/Parcel;)I

    move-result v0

    const/4 v1, 0x1

    iget v2, p0, Lcom/google/android/gms/location/internal/ClientIdentity;->uid:I

    invoke-static {p1, v1, v2}, Lcom/google/android/gms/common/internal/safeparcel/zzb;->zzc(Landroid/os/Parcel;II)V

    const/16 v1, 0x3e8

    invoke-virtual {p0}, Lcom/google/android/gms/location/internal/ClientIdentity;->getVersionCode()I

    move-result v2

    invoke-static {p1, v1, v2}, Lcom/google/android/gms/common/internal/safeparcel/zzb;->zzc(Landroid/os/Parcel;II)V

    const/4 v1, 0x2

    iget-object v2, p0, Lcom/google/android/gms/location/internal/ClientIdentity;->packageName:Ljava/lang/String;

    const/4 v3, 0x0

    invoke-static {p1, v1, v2, v3}, Lcom/google/android/gms/common/internal/safeparcel/zzb;->zza(Landroid/os/Parcel;ILjava/lang/String;Z)V

    invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/safeparcel/zzb;->zzI(Landroid/os/Parcel;I)V

    return-void
.end method

# virtual methods
.method public synthetic createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
    .registers 3
    .param p1, "x0"    # Landroid/os/Parcel;

    .prologue
    invoke-virtual {p0, p1}, Lcom/google/android/gms/location/internal/zzc;->zzeF(Landroid/os/Parcel;)Lcom/google/android/gms/location/internal/ClientIdentity;

    move-result-object v0

    return-object v0
.end method

.method public synthetic newArray(I)[Ljava/lang/Object;
    .registers 3
    .param p1, "x0"    # I

    .prologue
    invoke-virtual {p0, p1}, Lcom/google/android/gms/location/internal/zzc;->zzgX(I)[Lcom/google/android/gms/location/internal/ClientIdentity;

    move-result-object v0

    return-object v0
.end method

.method public zzeF(Landroid/os/Parcel;)Lcom/google/android/gms/location/internal/ClientIdentity;
    .registers 8

    const/4 v1, 0x0

    invoke-static {p1}, Lcom/google/android/gms/common/internal/safeparcel/zza;->zzap(Landroid/os/Parcel;)I

    move-result v3

    const/4 v0, 0x0

    move v2, v1

    :goto_7
    invoke-virtual {p1}, Landroid/os/Parcel;->dataPosition()I

    move-result v4

    if-ge v4, v3, :cond_2b

    invoke-static {p1}, Lcom/google/android/gms/common/internal/safeparcel/zza;->zzao(Landroid/os/Parcel;)I

    move-result v4

    invoke-static {v4}, Lcom/google/android/gms/common/internal/safeparcel/zza;->zzbM(I)I

    move-result v5

    sparse-switch v5, :sswitch_data_50

    invoke-static {p1, v4}, Lcom/google/android/gms/common/internal/safeparcel/zza;->zzb(Landroid/os/Parcel;I)V

    goto :goto_7

    :sswitch_1c
    invoke-static {p1, v4}, Lcom/google/android/gms/common/internal/safeparcel/zza;->zzg(Landroid/os/Parcel;I)I

    move-result v1

    goto :goto_7

    :sswitch_21
    invoke-static {p1, v4}, Lcom/google/android/gms/common/internal/safeparcel/zza;->zzg(Landroid/os/Parcel;I)I

    move-result v2

    goto :goto_7

    :sswitch_26
    invoke-static {p1, v4}, Lcom/google/android/gms/common/internal/safeparcel/zza;->zzp(Landroid/os/Parcel;I)Ljava/lang/String;

    move-result-object v0

    goto :goto_7

    :cond_2b
    invoke-virtual {p1}, Landroid/os/Parcel;->dataPosition()I

    move-result v4

    if-eq v4, v3, :cond_4a

    new-instance v0, Lcom/google/android/gms/common/internal/safeparcel/zza$zza;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Overread allowed size end="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lcom/google/android/gms/common/internal/safeparcel/zza$zza;-><init>(Ljava/lang/String;Landroid/os/Parcel;)V

    throw v0

    :cond_4a
    new-instance v3, Lcom/google/android/gms/location/internal/ClientIdentity;

    invoke-direct {v3, v2, v1, v0}, Lcom/google/android/gms/location/internal/ClientIdentity;-><init>(IILjava/lang/String;)V

    return-object v3

    :sswitch_data_50
    .sparse-switch
        0x1 -> :sswitch_1c
        0x2 -> :sswitch_26
        0x3e8 -> :sswitch_21
    .end sparse-switch
.end method

.method public zzgX(I)[Lcom/google/android/gms/location/internal/ClientIdentity;
    .registers 3

    new-array v0, p1, [Lcom/google/android/gms/location/internal/ClientIdentity;

    return-object v0
.end method


text:
package com.txusballesteros.testing.view.internal.di;

import com.txusballesteros.testing.presentation.MainPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class ViewModule {
    private MainPresenter.View mainPresenterView;

    public ViewModule(MainPresenter.View view) {
        this.mainPresenterView = view;
    }

    @Provides
    MainPresenter.View provideMainPresenterView() {
        return mainPresenterView;
    }
}


text:
package spare.n52.yadarts.entity;

/**
 * Interface representing a Player
 */
public interface Player {

	public String getName();

}


text:
import java.util.Scanner;

public class Ex02Max {

    public static void main(String args[]){

        Scanner arg = new Scanner(args[0]);
        int N = arg.nextInt(); // Number of elements to scan

        int temp;
        Scanner input = new Scanner(System.in);
        int max = input.nextInt();
        int indexMax = 0;

        for(int i = 1; i < N; i++){
            temp = input.nextInt();

            if (temp > max){
                max = temp;
                indexMax = i;
            }
        }

        System.out.println("Maior nº é o " + max + ", no índice " + indexMax);

    }
}


text:
@protocol HPTag;
@protocol HPBasicBlock;
@protocol HPSegment;
@protocol HPCallReference;
@protocol HPMethodSignature;
@protocol CPUContext;

@protocol HPProcedure

- (BOOL)bpBasedFrame;
- (int32_t)savedRegistersSize;
- (int32_t)framePointerOffset;
- (int32_t)purgedBytes;
- (int32_t)localsSize;

- (NSUInteger)basicBlockCount;
- (nullable NSObject<HPBasicBlock> *)firstBasicBlock;
- (nullable NSObject<HPBasicBlock> *)basicBlockStartingAt:(Address)address;
- (nullable NSObject<HPBasicBlock> *)basicBlockContainingInstructionAt:(Address)address;
- (nullable NSObject<HPBasicBlock> *)basicBlockAtIndex:(NSUInteger)index;

- (nonnull NSObject<HPSegment> *)segment;

- (Address)entryPoint;
- (nullable NSArray<NSObject<HPBasicBlock> *> *)allExitBlocks;

// Stack
- (int32_t)stackPointerOffsetAt:(Address)address;

// Local Labels
- (BOOL)hasLocalLabelAtAddress:(Address)address;
- (nullable NSString *)localLabelAtAddress:(Address)address;
- (void)setLocalLabel:(nullable NSString *)name atAddress:(Address)address;
- (nonnull NSString *)declareLocalLabelAt:(Address)address;
- (void)removeLocalLabelAtAddress:(Address)address;
- (Address)addressOfLocalLabel:(nonnull NSString *)name;

// Rename register
- (void)renameRegisterOfClass:(RegClass)regCls andIndex:(NSUInteger)regIndex to:(nullable NSString *)name;
- (nullable NSString *)nameOverrideForRegisterOfClass:(RegClass)regCls andIndex:(NSUInteger)regIndex;
- (void)clearNameOverrideForRegisterOfClass:(RegClass)regCls andIndex:(NSUInteger)regIndex;

// Call Graph
- (nullable NSArray<NSObject<HPCallReference> *> *)allCallers;
- (nullable NSArray<NSObject<HPCallReference> *> *)allCallees;

- (nullable NSArray<NSObject<HPProcedure> *> *)allCalleeProcedures;
- (nullable NSArray<NSObject<HPProcedure> *> *)allCallerProcedures;

// Variables
- (nullable NSString *)variableNameForDisplacement:(int64_t)disp;
- (BOOL)setVariableName:(nullable NSString *)name forDisplacement:(int64_t)disp;
- (nullable NSString *)resolvedVariableNameForDisplacement:(int64_t)disp usingCPUContext:(nonnull NSObject<CPUContext> *)cpuContext;

// Signature
- (nullable NSObject<HPMethodSignature> *)signature;
- (void)setSignature:(nullable NSObject<HPMethodSignature> *)signature reason:(SignatureCreationReason)reason;
- (void)setSignature:(nullable NSObject<HPMethodSignature> *)signature propagatingSignature:(BOOL)propagateSignature reason:(SignatureCreationReason)reason;
- (CallingConvention)callingConvention;
- (CallingConvention)resolvedCallingConvention;
- (void)setCallingConvention:(CallingConvention)cc;

// Tags
- (void)addTag:(nonnull NSObject<HPTag> *)tag;
- (void)removeTag:(nonnull NSObject<HPTag> *)tag;
- (BOOL)hasTag:(nonnull NSObject<HPTag> *)tag;

@end


text:
<?php

declare(strict_types=1);

namespace Humbug\PhpScoper\PhpParser\NodeVisitor;

use Humbug\PhpScoper\PhpParser\NodeVisitor\AttributeAppender\ParentNodeAppender;
use Humbug\PhpScoper\PhpParser\StringNodePrefixer;
use PhpParser\Node;
use PhpParser\Node\Expr\Eval_;
use PhpParser\Node\Scalar\String_;
use PhpParser\NodeVisitorAbstract;

final class EvalPrefixer extends NodeVisitorAbstract
{
    public function __construct(private readonly StringNodePrefixer $stringPrefixer)
    {
    }

    public function enterNode(Node $node): Node
    {
        if ($node instanceof String_
            && ParentNodeAppender::findParent($node) instanceof Eval_
        ) {
            $this->stringPrefixer->prefixStringValue($node);
        }

        return $node;
    }
}


text:
package au.com.angela.guessthenumber.domain;

import org.junit.Before;
import org.junit.Test;

import static junit.framework.Assert.assertEquals;

public class GuessTheNumberTest {

    private GuessTheNumber guessTheNumber;

    @Test
    public void testEdgeSmall(){
        guessTheNumber = new GuessTheNumber();
        guessTheNumber.setCorrectNumber(1);
        assertEquals(1, guessTheNumber.onGuess(50));                // 1 for 50 > 1
        assertEquals(1, guessTheNumber.getGuessCount().intValue()); //count increased by 1
        assertEquals(50, guessTheNumber.getCurrentMax().intValue());
        assertEquals(0, guessTheNumber.getCurrentMin().intValue());
        assertEquals(1000, guessTheNumber.getCurrentScore());

        assertEquals(1, guessTheNumber.onGuess(70));                //70 > prev max
        assertEquals(1, guessTheNumber.getGuessCount().intValue()); //count doesn't increase
        assertEquals(50, guessTheNumber.getCurrentMax().intValue());
        assertEquals(0, guessTheNumber.getCurrentMin().intValue());

        assertEquals(1, guessTheNumber.onGuess(25));
        assertEquals(2, guessTheNumber.getGuessCount().intValue()); // < max, count increase
        assertEquals(25, guessTheNumber.getCurrentMax().intValue());
        assertEquals(0, guessTheNumber.getCurrentMin().intValue());

        assertEquals(-1, guessTheNumber.onGuess(0));                // -1 for 0 < than 1
        assertEquals(2, guessTheNumber.getGuessCount().intValue()); // min is 0, guess is not > min, count doesn't increase
        assertEquals(25, guessTheNumber.getCurrentMax().intValue());
        assertEquals(0, guessTheNumber.getCurrentMin().intValue());
        assertEquals(500, guessTheNumber.getCurrentScore());

        assertEquals(0, guessTheNumber.onGuess(1));
        assertEquals(3, guessTheNumber.getGuessCount().intValue());
        assertEquals(333, guessTheNumber.getScore().intValue());
    }

    @Test
    public void testEdgeLarge(){
        guessTheNumber = new GuessTheNumber();
        guessTheNumber.setCorrectNumber(99);
        assertEquals(-1, guessTheNumber.onGuess(50));
        assertEquals(1, guessTheNumber.getGuessCount().intValue());
        assertEquals(100, guessTheNumber.getCurrentMax().intValue());
        assertEquals(50, guessTheNumber.getCurrentMin().intValue());

        assertEquals(-1, guessTheNumber.onGuess(75));
        assertEquals(2, guessTheNumber.getGuessCount().intValue());
        assertEquals(100, guessTheNumber.getCurrentMax().intValue());
        assertEquals(75, guessTheNumber.getCurrentMin().intValue());

        assertEquals(1, guessTheNumber.onGuess(100));
        assertEquals(2, guessTheNumber.getGuessCount().intValue());
        assertEquals(100, guessTheNumber.getCurrentMax().intValue());
        assertEquals(75, guessTheNumber.getCurrentMin().intValue());

        assertEquals(-1, guessTheNumber.onGuess(80));
        assertEquals(100, guessTheNumber.getCurrentMax().intValue());
        assertEquals(80, guessTheNumber.getCurrentMin().intValue());

        assertEquals(0, guessTheNumber.onGuess(99));
        assertEquals(4, guessTheNumber.getGuessCount().intValue());
        assertEquals(250, guessTheNumber.getScore().intValue());
    }
}


text:
package org.ongawa.peru.chlorination.persistence.elements;

import org.apache.commons.lang.NullArgumentException;

/**
 *
 * @author kiko
 *
 */
public class CatchmentDesinfection extends ElementDesinfection{

	private Catchment catchment;

	public CatchmentDesinfection(Catchment catchment, Desinfection desinfection, int count, double chlorineQty, double demandSpoons, double retentionTime) {
		super(desinfection, count, chlorineQty, demandSpoons, retentionTime);
		if(catchment == null)
			throw new NullArgumentException("catchment");

		this.catchment = catchment;
	}

	public Catchment getCatchment(){
		return this.catchment;
	}
}


text:
<?xml version="1.0" encoding="utf-8"?>

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

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

<title>MediaTypes.Application Class Members</title>

Documentation Project

MediaTypes.Application Class Members

Fields

Collapse All

Application-specific media types.

Declaring type: MediaTypes.Application

Namespace: Sasa.Mime

Assembly: Sasa.Mime

Public Fields

<col width="7%" />
<col width="38%" />
<col width="55%" />

Name
Description

MicrosoftExcel
Media type for Microsoft Excel documents.

MicrosoftPowerpoint
Media type for Microsoft Powerpoint documents.

MicrosoftWord
Media type for Microsoft Word documents.

Octet
Media type for a binary file.

Pdf
Media type for PDF files.

Postscript
Media type for Postscript documents.

Rtf
Media type for RTF Df files.

Soap
Media type for SOAP messages.

Zip
Media type for ZIP files.

Top

Generated by ImmDoc .NET.


text:
  <button type="button" class="btn btn-default" uib-dropdown-toggle ng-disabled="vm.isLoading">
    {{ vm.pageSize }}
  </button>

      {{ pageSize }}


text:
package com.upyun.sdk.vo;

import java.util.Date;

public class FileVo {
    private String name;
    private String isFile;
    private Long size;
    private Date updatedAt;

    private String type;
    private Date createdAt;

    public String getName() {
        return name;
    }

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

    public String getIsFile() {
        return isFile;
    }

    public void setIsFile(String isFile) {
        this.isFile = isFile;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

}


text:
namespace archie
{
  namespace test
  {
    struct resource {
      using value_type = int;
      static int get_id()
      {
        static int id = 0;
        return id++;
      };
      explicit resource(value_type i) : ptr(new value_type(i)), id_(get_id()) {}
      resource() : resource(0) {}
      resource(resource const& r) : resource(*(r.ptr)) {}
      resource(resource&& r) : ptr(r.ptr), id_(get_id()) { r.ptr = nullptr; }
      resource& operator=(resource const& r)
      {
        *ptr = *r.ptr;
        return *this;
      }
      resource& operator=(resource&& r)
      {
        using std::swap;
        swap(ptr, r.ptr);
        return *this;
      }
      ~resource()
      {
        if (ptr) delete ptr;
      }
      explicit operator bool() const { return ptr != nullptr; }
      operator value_type() const { return *ptr; }
      int id() const { return id_; }
      value_type value() const { return *ptr; }
      bool operator==(resource const& r) const { return *ptr == *r.ptr; }
      bool operator!=(resource const& r) const { return !(*this == r); }
    private:
      value_type* ptr = nullptr;
      int id_ = 0;
    };
  }
}


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

<title>org.apache.cassandra.hadoop Class Hierarchy (apache-cassandra API)</title>
<meta name="date" content="2016-04-13">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Hierarchy For Package org.apache.cassandra.hadoop

Package Hierarchies:

All Packages

Class Hierarchy

java.lang.Object

org.apache.cassandra.hadoop.ConfigHelper

org.apache.cassandra.hadoop.HadoopCompat

org.apache.hadoop.mapreduce.InputSplit

org.apache.cassandra.hadoop.ColumnFamilySplit (implements org.apache.hadoop.mapred.InputSplit, org.apache.hadoop.io.Writable)

org.apache.hadoop.mapreduce.StatusReporter

org.apache.cassandra.hadoop.ReporterWrapper (implements org.apache.hadoop.mapred.Reporter)

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Copyright © 2016 The Apache Software Foundation


text:
<?php

namespace Victoire\Bundle\WidgetMapBundle\Exception;

class WidgetMapNotFoundException extends \Exception
{
}


text:
struct local_apic_register {

	unsigned long reserved0[4];

	//RW
	unsigned int local_apic_id;

	unsigned int aligned0[3];

	//RO
	unsigned int local_apic_version;
	unsigned int aligned1[3];

	unsigned long reserved1[8];

	//RW
	unsigned int task_priority;
	unsigned int aligned2[3];

	//RO
	unsigned int arbitration_priority;
	unsigned int aligned3[3];

	//RO
	unsigned int processor_priority;
	unsigned int aligned4[3];

	//WO
	unsigned int eoi;
	unsigned int aligned5[3];

	//RO
	unsigned int remote_read;
	unsigned int aligned6[3];

	//RW
	unsigned int logical_destination;
	unsigned int aligned7[3];

	//RW
	unsigned int destination_format;
	unsigned int aligned8[3];

	//RW
	unsigned int spurious_interrupt_vecter;
	unsigned int aligned9[3];

	//RO
	unsigned int in_service0;
	unsigned int aligned10[3];

	unsigned int in_service1;
	unsigned int aligned11[3];

	unsigned int in_service2;
	unsigned int aligned12[3];

	unsigned int in_service3;
	unsigned int aligned13[3];

	unsigned int in_service4;
	unsigned int aligned14[3];

	unsigned int in_service5;
	unsigned int aligned15[3];

	unsigned int in_service6;
	unsigned int aligned16[3];

	unsigned int in_service7;
	unsigned int aligned17[3];

	//RO
	unsigned int trigger_mode0;
	unsigned int aligned18[3];

	unsigned int trigger_mode1;
	unsigned int aligned19[3];

	unsigned int trigger_mode2;
	unsigned int aligned20[3];

	unsigned int trigger_mode3;
	unsigned int aligned21[3];

	unsigned int trigger_mode4;
	unsigned int aligned22[3];

	unsigned int trigger_mode5;
	unsigned int aligned23[3];

	unsigned int trigger_mode6;
	unsigned int aligned24[3];

	unsigned int trigger_mode7;
	unsigned int aligned25[3];

	//RO
	unsigned int interrupt_request0;
	unsigned int aligned26[3];

	unsigned int interrupt_request1;
	unsigned int aligned27[3];

	unsigned int interrupt_request2;
	unsigned int aligned28[3];

	unsigned int interrupt_request3;
	unsigned int aligned29[3];

	unsigned int interrupt_request4;
	unsigned int aligned30[3];

	unsigned int interrupt_request5;
	unsigned int aligned31[3];

	unsigned int interrupt_request6;
	unsigned int aligned32[3];

	unsigned int interrupt_request7;
	unsigned int aligned33[3];

	//RO
	unsigned int error_status;
	unsigned int aligned34[3];

	unsigned long reserved2[12];

	//RW
	unsigned int lvt_cmci;
	unsigned int aligned35[3];

	//RW
	unsigned int interrupt_command0;
	unsigned int aligned36[3];

	unsigned int interrupt_command1;
	unsigned int aligned37[3];

	//RW
	unsigned int lvt_timer;
	unsigned int aligned38[3];

	//RW
	unsigned int lvt_thermal_sensor;
	unsigned int aligned39[3];

	//RW
	unsigned int lvt_performance_monitoring_counters;
	unsigned int aligned40[3];

	//RW
	unsigned int lvt_lint0;
	unsigned int aligned41[3];

	//RW
	unsigned int lvt_lint1;
	unsigned int aligned42[3];

	//RW
	unsigned int lvt_error;
	unsigned int aligned43[3];

	//RW
	unsigned int initial_count;
	unsigned int aligned44[3];

	//RO
	unsigned int current_count;
	unsigned int aligned45[3];

	unsigned long reserved3[8];

	//RW
	unsigned int divide_configuration;
	unsigned int aligned46[3];

	unsigned long reserved4[2];

} __attribute__((packed));

extern class apic apic;

class apic final {

private:

	void ioapic_write(unsigned int selecter, unsigned long value);

public:

	struct local_apic_register *local_apic_register;

	void apic_init();

	//IOAPICのリダイレクションテーブルにベクタ番号を登録
	void ioapic_set_redirect_table(int irq, unsigned long data);

	unsigned int inline get_local_apic_id() {

		return local_apic_register->local_apic_id >> 24;
	}

	//APICの割り込み完了通知
	void apic_eoi() {

		local_apic_register->eoi = 0;
	}

};


text:
'''
Fetch simplified WKT boundaries for 2014 congressional districts and
save in CSV format:
    state,district,polygon

'''
import requests
import csv

BASE_URL = "https://gis.govtrack.us"
CD_2014_URL = "/boundaries/cd-2014/?limit=500"

# get meta boundary
r = requests.get(BASE_URL + CD_2014_URL)
j = r.json()

boundaries = j['objects']

with open('cb_2014_districts.csv', 'w') as f:
    writer = csv.writer(f)
    writer.writerow(['state', 'district', 'polygon'])

    for b in boundaries:
        p = str.split(b['name'], '-')
        r = requests.get(BASE_URL + b['url'] + 'simple_shape?format=wkt')
        wkt = r.text
        writer.writerow([p[0], p[1], wkt])


text:
#ifndef ALIITSU_H
#define ALIITSU_H

/* $Id: AliITSU.h */

////////////////////////////////////////////////////////////////////////
//           Manager class for set: ITS Upgrade                       //
////////////////////////////////////////////////////////////////////////

#include <TObjArray.h> // used in inline function GetChip.
#include "AliITSUGeomTGeo.h"
#include "AliDetector.h"

class TString;
class TTree;
class AliITSMFTSDigit;
class AliITSMFTSimulation;
class AliITSMFTSegmentationPix;
class AliITSCalibration;
class AliITSMFTHit;
class AliITSMFTDigitPix;
class AliDigitizationInput;
class AliITSMFTSensMap;
class AliITSMFTSimuParam;
class AliITSMFTParamList;
class AliITSUChip;

class AliITSU : public AliDetector {

 public:
  //
  // number detector types
  enum {kNChipTypes = AliITSMFTAux::kNChipTypes};
  //
  //================= Standard Classes ===============================
  AliITSU();  // Default creator.
  AliITSU(const char *title, Int_t nlayers); // extended standard Creator
  virtual ~AliITSU(); // destructor
  virtual Int_t IsVersion() const {return 11;}

  //===================== Simulation Geometry ========================
  // get geometry version - detailed (major) or coarse (minor)
  virtual Int_t GetMajorVersion() const {return -1;}
  virtual Int_t GetMinorVersion() const {return -1;}
  virtual void  GetGeometryVersion(Int_t &a,Int_t &b) const {a = GetMajorVersion();b=GetMinorVersion();return;}
  virtual void  SetEUCLID(Bool_t euclid=kTRUE) {fEuclidOut = euclid;}
  virtual Bool_t GetEUCLID()const {return fEuclidOut;}
  //-------------------- Geometry Transformations --------------------

  // ITS geometry functions From Simulation
  AliITSUGeomTGeo* GetITSGeomTGeo() const {return fGeomTGeo;}
  //RS  AliITSgeom* GetITSgeom() const {return fChipTypeSim->GetITSgeom();}
  //RS  void   SetITSgeom(AliITSgeom *geom) {fChipTypeSim->SetITSgeom(geom);}
  // return pointer to the array of chips

  AliITSUChip   * GetChip(Int_t index) {return (AliITSUChip*)fChipHits->UncheckedAt(index);}
  AliITSMFTSimuParam* GetSimuParam() const {return fSimuParam;}

  //================ Necessary general Classes =======================
  virtual void Init();
  virtual AliLoader* MakeLoader(const char* topfoldername);
  virtual void MakeBranch(Option_t *opt=" ");
  virtual void MakeBranchS(const char* fl);
  virtual void MakeBranchD(const char* file);
  virtual void MakeBranchInTreeD(TTree* treeD, const char* file=0);
  virtual void SetTreeAddress();
  virtual AliITSMFTSimulation*   GetSimulationModel(Int_t lr)   {return fSimModelLr[lr];}
  virtual AliITSMFTSegmentationPix*  GetSegmentation(Int_t lr)  {return fSegModelLr[lr];}
  virtual AliITSMFTParamList*    GetResponseParam(Int_t lr)     {return fResponseLr[lr];}
  //=================== Hits =========================================
  virtual void StepManager() {} // See Step Manager for specific geometry.
  //------------ sort hits by chip for Digitisation ----------------
  virtual void FillChips(Int_t bgrev, Option_t *opt, const char *filename);
  virtual void FillChips(TTree *treeH, Int_t mask = 0);
  virtual void ClearChips();
  virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits);
  void         InitSimulation();
  //
  // Trigger
  //  virtual AliTriggerDetector* CreateTriggerDetector() const;

  AliDigitizer* CreateDigitizer(AliDigitizationInput* manager) const;
  virtual void SDigits2Digits();
  virtual void Hits2Digits();
  virtual void Hits2SDigits();
  virtual void Hits2Digits(Int_t evNumber,Int_t bgrev,Option_t *option, const char *filename);
  virtual void Hits2SDigits(Int_t evNumber,Int_t bgrev,Option_t *option,const char *filename);

  virtual void ResetSDigits()       {if (fSDigits) fSDigits->Clear();}
  virtual void ResetDigits();
  virtual void ResetDigits(Int_t branch);
  virtual void AddSumDigit(AliITSMFTSDigit &sdig);
  virtual void AddSimDigit(Int_t branch, AliITSMFTDigitPix *d);
  virtual void AddSimDigit(Int_t branch,Float_t phys,Int_t* digits,Int_t* tracks,Int_t *hits,Float_t* trkcharges,Int_t sigexpanded=-1000);
  TObjArray*   GetDigits()                const {return fDetDigits;}
  TClonesArray *DigitsAddress(Int_t id)  {return fDetDigits ? (TClonesArray*)fDetDigits->At(id) : 0;}
  //Fast simulation
  virtual void  Hits2FastRecPoints(Int_t bgrev,Option_t *opr, const char *filename);
  virtual Int_t Hits2Clusters(TTree *in, TTree *out);
  virtual void  CheckLabels(Int_t lab[3]) const;

  //===================== Raw Data IO ================================
  // Write digits into raw data format
  virtual void   Digits2Raw();
  virtual Bool_t Raw2SDigits(AliRawReader*);

  //===================== FO signals ================================
  // Write FO signals in UserInfo of SDigits/Digits tree
  void    WriteFOSignals();

  void    SetRunNumber(Int_t rn=0)        {fRunNumber = rn;}
  Int_t   GetNLayers()              const {return fNLayers;}
  Int_t   GetRunNumber()            const {return fRunNumber;}
  Bool_t  IsSimInitDone()           const {return fSimInitDone;}

 protected:
  void        InitArrays();
  const char* GetChipTypeName(Int_t i);
  const char* GetDigitClassName(Int_t i);

 protected:
  //================== Data Members ==================================
  Bool_t                fEuclidOut;      // Flag to write geometry in euclid format
  Int_t                 fNLayers;        // the number of layers
  Int_t                *fIdSens;         //[fNLayers] layer identifier
  TString              *fLayerName;      //[fNLayers] layer identifier
  Bool_t                fTiming;         // flag to turn on/off timers.
  AliITSUGeomTGeo*      fGeomTGeo;       //  access to geometry details
  AliITSMFTSimuParam*     fSimuParam;      //!simulation parameters
  TClonesArray**        fModA;           //! Used by Raw2SDigits (one TC per chip)
  TClonesArray*         fpSDigits;       //! Branch address to build SD from raw data
  TClonesArray*         fSDigits;        //! Branch address to build SD
  TClonesArray*         fDetHits;        //! array of full detector hits
  TObjArray*            fChipHits;       //! chip's hits container in (pointers on the fDetHits)
  TObjArray*            fDetDigits;      //! AliDetector has TClonesArray fDigits, avoid same name
  AliITSMFTSensMap*       fSensMap;        //! sensor map for digitization
  //
  AliITSMFTSimulation    **fSimModelLr;     //! simulation objects per layer
  AliITSMFTSegmentationPix   **fSegModelLr;     //! segmentation objects per layar
  AliITSMFTParamList     **fResponseLr;     //! response parameters for each layer
  TObjArray            *fCalibration;    //! calibration objects
  Int_t                 fRunNumber;      //! run number
  Bool_t                fSimInitDone;    //! flag initialized simulation
  Bool_t                fUseALPIDESim;   //! use the ALPIDE chip simulation

 private:
  AliITSU(const AliITSU &source); // copy constructor. Not to be used!
  AliITSU& operator=(const AliITSU &source); // = operator. Not to be used!
  ClassDef(AliITSU,2) // Base class for ITS
};

#endif